@turquoisehealth/pit-viper 2.81.0 → 2.81.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.pv-chart-loading[data-v-98f8e317]{position:absolute;text-align:center;justify-content:center;align-items:center;top:0;left:0;width:100%;height:100%;opacity:1;background-color:#fff;z-index:4}.pv-chart-loading-icon[data-v-98f8e317]{color:#16696d;animation:pulse-98f8e317 1.5s infinite ease-in-out}@keyframes pulse-98f8e317{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-cda1af8c]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}.pv-menu-item-disabled[data-v-f0f5eb5f]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-f0f5eb5f]{cursor:pointer}.pv-table-row-count{position:absolute;right:12px;top:6px;opacity:1;background-color:#f7f8f8;transition:opacity .3s ease}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{padding:8px 12px 8px 0;text-align:center;color:#89989b}.focus-button{opacity:0;transition:opacity .2s ease;position:absolute;right:0;top:50%;transform:translateY(-50%)}.option-label:hover .focus-button{opacity:1;background-color:#e8f2f4}.suggested-label[data-v-7f711413]:hover{color:#16696d}.ag-custom-header-cell[data-v-08855a14]{height:100%;align-items:center}.ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.pv-table-row-number[data-v-706ed5a9]{padding:8px 12px 8px 0;text-align:center;color:#89989b}.pv-text-tertiary[data-v-a5c1e2d6]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-f23d0721]{display:flex;align-items:center;position:relative;width:100%;background:#f7f8f8;padding:.25rem;border-radius:.5rem;border:2px solid transparent;font-size:.75rem;min-height:2.25rem;cursor:text}.pv-query-builder-input[data-v-f23d0721]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-f23d0721]{border:none;background:transparent;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-f23d0721]:focus-within{border:2px solid #36c5ba}.pv-table-overlay{position:absolute;z-index:2;background:#fff;width:100%;height:calc(100% - 40px);top:80px;pointer-events:none}.ag-header-cell-resize{border:none!important}.ag-row-group-leaf-indent{padding-left:7px;margin-left:0}.ag-custom-loading-cell{width:100%;height:40%;margin:15px;background-color:#ccc;border-radius:4px}.ag-group-value{width:100%}.ag-menu-option:hover{background-color:#f7f8f8}.ag-menu-option:active{background-color:#e8f2f4}.ag-menu-option-text{font-family:Inter,sans-serif}.pv-text-tertiary[data-v-08e3ce8f]{color:#89989b}.pv-button-placeholder[data-v-08e3ce8f]{height:24px;width:24px}.pv-sort-option[data-v-08e3ce8f]{--flex-gap: 4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-08e3ce8f]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-08e3ce8f]{transition:background-color .2s ease}.pv-placeholder-dropzone[data-v-08e3ce8f]{padding:8px 4px;border-style:dashed!important;border-color:#e3e7ea!important;justify-content:center;align-items:center;transition:all .2s ease}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-08e3ce8f]{border-color:#16696d!important;background:#f0f9f9}.sort-divider-container[data-v-08e3ce8f]{display:flex}.sort-divider[data-v-08e3ce8f]{position:relative;border-top:1px solid #e3e7ea;margin:1rem 0;flex:1}.sort-divider[data-v-08e3ce8f]:after{content:attr(data-label);display:inline-block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;padding:0 .5em;font-size:inherit;white-space:nowrap}.pv-menu-nested[data-v-3502bb6d]:after{content:"›"}.pv-tooltip a[data-v-3502bb6d]{color:inherit}.pv-chart-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.ag-charts-tooltip{background-color:#fffffff2}.ag-charts-floating-toolbar{display:none!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.pv-chart-loading[data-v-0b683b8e]{position:absolute;text-align:center;justify-content:center;align-items:center;top:0;left:0;width:100%;height:100%;opacity:1;background-color:#fff;z-index:4}.pv-chart-loading-icon[data-v-0b683b8e]{color:#16696d;animation:pulse-0b683b8e 1.5s infinite ease-in-out}@keyframes pulse-0b683b8e{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-cda1af8c]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-fc3c1104]{--inset-size: 2px 2px;min-height:20px;max-height:20px;min-width:20px;font-weight:500}.pv-badge-sm[data-v-fc3c1104]{--inset-size: 0 2px;min-height:16px;max-height:16px;min-width:16px;font-weight:500}.pv-surface-lighten-5[data-v-fc3c1104]{background-color:#e0e5e4}.pv-text-secondary[data-v-fc3c1104]{color:#4b595c}.pv-menu-item-disabled[data-v-f0f5eb5f]{pointer-events:none;background:#ececec}.pv-menu-item[data-v-f0f5eb5f]{cursor:pointer}.pv-table-row-count{position:absolute;right:12px;top:6px;opacity:1;background-color:#f7f8f8;transition:opacity .3s ease}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{padding:8px 12px 8px 0;text-align:center;color:#89989b}.focus-button{opacity:0;transition:opacity .2s ease;position:absolute;right:0;top:50%;transform:translateY(-50%)}.option-label:hover .focus-button{opacity:1;background-color:#e8f2f4}.suggested-label[data-v-7f711413]:hover{color:#16696d}.ag-custom-header-cell[data-v-08855a14]{height:100%;align-items:center}.ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-08855a14]{opacity:1}.pv-table-row-number[data-v-706ed5a9]{padding:8px 12px 8px 0;text-align:center;color:#89989b}.pv-text-tertiary[data-v-a5c1e2d6]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-f23d0721]{display:flex;align-items:center;position:relative;width:100%;background:#f7f8f8;padding:.25rem;border-radius:.5rem;border:2px solid transparent;font-size:.75rem;min-height:2.25rem;cursor:text}.pv-query-builder-input[data-v-f23d0721]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-f23d0721]{border:none;background:transparent;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-f23d0721]:focus-within{border:2px solid #36c5ba}.pv-table-overlay{position:absolute;z-index:2;background:#fff;width:100%;height:calc(100% - 40px);top:80px;pointer-events:none}.ag-header-cell-resize{border:none!important}.ag-row-group-leaf-indent{padding-left:7px;margin-left:0}.ag-custom-loading-cell{width:100%;height:40%;margin:15px;background-color:#ccc;border-radius:4px}.ag-group-value{width:100%}.ag-menu-option:hover{background-color:#f7f8f8}.ag-menu-option:active{background-color:#e8f2f4}.ag-menu-option-text{font-family:Inter,sans-serif}.pv-text-tertiary[data-v-08e3ce8f]{color:#89989b}.pv-button-placeholder[data-v-08e3ce8f]{height:24px;width:24px}.pv-sort-option[data-v-08e3ce8f]{--flex-gap: 4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-08e3ce8f]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-08e3ce8f]{transition:background-color .2s ease}.pv-placeholder-dropzone[data-v-08e3ce8f]{padding:8px 4px;border-style:dashed!important;border-color:#e3e7ea!important;justify-content:center;align-items:center;transition:all .2s ease}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-08e3ce8f]{border-color:#16696d!important;background:#f0f9f9}.sort-divider-container[data-v-08e3ce8f]{display:flex}.sort-divider[data-v-08e3ce8f]{position:relative;border-top:1px solid #e3e7ea;margin:1rem 0;flex:1}.sort-divider[data-v-08e3ce8f]:after{content:attr(data-label);display:inline-block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;padding:0 .5em;font-size:inherit;white-space:nowrap}.pv-menu-nested[data-v-3502bb6d]:after{content:"›"}.pv-tooltip a[data-v-3502bb6d]{color:inherit}.pv-chart-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.ag-charts-tooltip{background-color:#fffffff2}.ag-charts-floating-toolbar{display:none!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  (function(Zl,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],m):(Zl=typeof globalThis<"u"?globalThis:Zl||self,m(Zl.PvComponentsVueTables={},Zl.Vue))})(this,function(Zl,m){"use strict";var EK=Object.defineProperty,M2=(e,t)=>{for(var i in t)EK(e,i,{get:t[i],enumerable:!0})},he={};M2(he,{error:()=>k2,errorOnce:()=>OK,log:()=>FK,logGroup:()=>GK,reset:()=>BK,table:()=>NK,warn:()=>WM,warnOnce:()=>mm});var $M=new Set;function FK(...e){console.log(...e)}function WM(e,...t){console.warn(`AG Charts - ${e}`,...t)}function k2(e,...t){typeof e=="object"?console.error("AG Charts error",e,...t):console.error(`AG Charts - ${e}`,...t)}function NK(...e){console.table(...e)}function A2(e,t,i){let o;e instanceof Error?o=e.message:typeof e=="string"?o=e:typeof e=="object"?o=JSON.stringify(e):o=String(e);const s=`${t}: ${o}`;$M.has(s)||(i(e),$M.add(s))}function mm(e,...t){A2(e,"Logger.warn",i=>WM(i,...t))}function OK(e,...t){A2(e,"Logger.error",i=>k2(i,...t))}function BK(){$M.clear()}function GK(e,t){console.groupCollapsed(e);try{return t()}finally{console.groupEnd()}}var $s={};M2($s,{detectChartDefinition:()=>$K,getAxisModule:()=>WK,getPresetModule:()=>jK,getSeriesModule:()=>UK,hasModule:()=>_K,listModulesByType:()=>HK,register:()=>I2,registerMany:()=>zK,reset:()=>VK});var sC=(e=>(e.Axis="axis",e.Chart="chart",e.Preset="preset",e.Plugin="plugin",e.Series="series",e))(sC||{}),Ka=new Map;function I2(e,t){const{def:i,version:o}=Ka.get(e.name)??{};if(!i){Ka.set(e.name,{def:e,version:t});return}if(!i.enterprise&&e.enterprise&&t===o){Ka.set(e.name,{def:e,version:t});return}if(o===t){WM([`AG Charts - Module '${e.name}' already registered,',
3
3
  'ignoring (version: ${o}).`,"Check your code for duplicate loading of charts NPM modules."].join(" "));return}throw new Error([`AG Charts - Module '${e.name}' already registered with different version:`,`${o} vs ${t}`,"","Check your package.json for conflicting dependencies - depending on your package manager","one of these commands may help:","- npm ls ag-charts-community","- yarn why ag-charts-community"].join(`
4
4
  `))}function zK(e,t){for(const i of e)I2(i,t)}function VK(){Ka.clear()}function _K(e){return Ka.has(e)}function*HK(e){for(const t of Ka.values())ym(e,t.def)&&(yield t.def)}function $K(e){for(const t of Ka.values())if(ym("chart",t.def)&&t.def.detect(e))return t.def;throw new Error("AG Charts - Unknown chart type; Check options are correctly structured and series types are specified")}function WK(e){const t=Ka.get(e);if(ym("axis",t?.def))return t?.def}function jK(e){const t=Ka.get(e);if(ym("preset",t?.def))return t?.def}function UK(e){const t=Ka.get(e);if(ym("series",t?.def))return t?.def}function ym(e,t){return t?.type===e}var sa=class{constructor(){this.events=new Map}on(e,t){return this.events.has(e)||this.events.set(e,new Set),this.events.get(e)?.add(t),()=>this.off(e,t)}off(e,t){const i=this.events.get(e);i&&(i.delete(t),i.size===0&&this.events.delete(e))}emit(e,t){this.events.get(e)?.forEach(i=>i(t))}clear(e){e?this.events.delete(e):this.events.clear()}},Ya={};typeof window<"u"?Ya.window=window:typeof global<"u"&&(Ya.window=global.window),typeof document<"u"?Ya.document=document:typeof global<"u"&&(Ya.document=global.document);function Xa(e){return e?Ya.document?.[e]:Ya.document}function Mt(e){return e?Ya.window?.[e]:Ya.window}function KK(e){Ya.document=e}function YK(e){Ya.window=e}function He(e,t,i){const o=Xa().createElement(e);if(typeof t=="object"&&(i=t,t=void 0),t)for(const s of t.split(" "))o.classList.add(s);return i&&Object.assign(o.style,i),o}function Hi(e){return Xa().createElementNS("http://www.w3.org/2000/svg",e)}function XK(e,t){const i=Xa("body"),o=He("a",{display:"none"});o.href=e,o.download=t,i.appendChild(o),o.click(),setTimeout(()=>i.removeChild(o))}function Gt(e,t,i,o){return e.addEventListener(t,i,o),()=>e.removeEventListener(t,i,o)}var nC;function ZK(e){if(nC==null){const t=Mt("Option");nC=new t().style}return nC.color=e,nC.color||null}function $i(e){return e!=null}function Ct(e){return Array.isArray(e)}function qK(e){return typeof e=="boolean"}function Za(e){return e instanceof Date}function zp(e){return Za(e)&&!isNaN(Number(e))}function QK(e){return e instanceof RegExp}function ql(e){return typeof e=="function"}function at(e){return typeof e=="object"&&e!==null&&!Ct(e)}function rC(e){return Ct(e)||Rt(e)}function Rt(e){return typeof e=="object"&&e!==null&&e.constructor?.name==="Object"}function jM(e){if(typeof e!="object"||e===null)return!1;for(const t in e)return!1;return!0}function yo(e){return typeof e=="string"}function eo(e){return typeof e=="number"}function St(e){return Number.isFinite(e)}function JK(e){return typeof window<"u"&&e instanceof HTMLElement}function aC(e){return typeof e=="symbol"}function eY(e){return yo(e)&&(e==="none"||ZK(e)!=null)}function tY(e,t){return e in t}function iY(e,t=0,i){const{leading:o=!1,trailing:s=!0,maxWait:n=1/0}={};let r,a;if(n<t)throw new Error("Value of maxWait cannot be lower than waitMs.");function l(...c){if(o&&!a){a=Date.now(),r=setTimeout(()=>a=null,t),e(...c);return}let d=t;if(n!==1/0&&a){const u=Date.now()-a;t>n-u&&(d=n-u)}clearTimeout(r),a??(a=Date.now()),r=setTimeout(()=>{a=null,s&&e(...c)},d)}return Object.assign(l,{cancel(){clearTimeout(r),a=null}})}function T2(e,t,i){const{leading:o=!0,trailing:s=!0}=i??{};let n,r,a=!1;function l(){s&&r?(n=setTimeout(l,t),e(...r)):a=!1,r=null}function c(...d){a?r=d:(a=!0,n=setTimeout(l,t),o?e(...d):r=d)}return Object.assign(c,{cancel(){clearTimeout(n),a=!1,r=null}})}function R2(e,t,i=""){try{return e(...t)}catch(o){const s=i?` \`${i}\``:"";mm(`Uncaught exception in user callback${s}`,o)}}function vm(e,t="and",i=String,o=1/0){if(e.length===0)return"";if(e.length===1)return i(e[0]);e=e.map(i);const s=e.pop();if(e.length>=o){const n=e.length-(o-1);return`${e.slice(0,o-1).join(", ")}, and ${n} more ${t} ${s}`}return`${e.join(", ")} ${t} ${s}`}function UM(e,t=1/0){if(typeof e=="number"){if(isNaN(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity"}const i=JSON.stringify(e)??typeof e;return i.length>t?`${i.slice(0,t)}... (+${i.length-t} characters)`:i}function oY(e){let t=1;for(let i=0;i<e.length;i++)e.charCodeAt(i)===10&&t++;return t}function sY(e,t){if(e===t)return 0;const[i,o]=e.length<t.length?[e,t]:[t,e],s=i.length,n=o.length;let r=new Array(s+1).fill(0).map((l,c)=>c),a=new Array(s+1);for(let l=1;l<=n;l++){a[0]=l;for(let c=1;c<=s;c++){const d=o[l-1]===i[c-1]?0:1;a[c]=Math.min(r[c]+1,a[c-1]+1,r[c-1]+d)}[r,a]=[a,r]}return r[s]}function nY(e){return e.replace(rY,(t,i)=>(i>0?"-":"")+t.toLowerCase())}var rY=/[A-Z]+(?![a-z])|[A-Z]/g;function KM(e){return Ct(e)?e.map(t=>t.text).join(""):e??""}var Pn=Symbol("description"),L2=Symbol("required"),lC=Symbol("marked"),P2=Symbol("undocumented"),cC=Symbol("union"),aY=[["placement","position"],["padding","spacing","gap"],["color","fill","stroke"],["whisker","wick"],["nodeClick","seriesNodeClick"],["nodeDoubleClick","seriesNodeDoubleClick"],["src","url"]].reduce((e,t)=>{for(const i of t)e.set(i.toLowerCase(),new Set(t.filter(o=>o!==i)));return e},new Map),YM=(e=>(e.Invalid="invalid",e.Required="required",e.Unknown="unknown",e))(YM||{});function bm(e,t){return St(t)?`${e}[${t}]`:e?`${e}.${t}`:t}var sd=class{constructor(e,t,i,o,s){this.type=e,this.description=t,this.value=i,this.path=o,this.key=s}setUnionType(e,t){if(this.path.startsWith(t)){const i=this.path.slice(t.length);this.altPath=`${t}[type=${e}]${i}`}}getPrefix(){const{altPath:e=this.path,key:t}=this;return!e&&!t?"Value":`Option \`${t?bm(e,t):e}\``}toString(){const{description:e="unknown",type:t,value:i}=this;return t==="required"&&i==null?`${this.getPrefix()} is required and has not been provided; expecting ${e}, ignoring.`:`${this.getPrefix()} cannot be set to \`${UM(i,50)}\`; expecting ${e}, ignoring.`}},XM=class extends sd{constructor(e,t,i,o){super("unknown",void 0,t,i,o),this.suggestions=e,this.key=o}getPrefix(){return`Unknown option \`${bm(this.altPath??this.path,this.key)}\``}getPostfix(){const e=vm(lY(this.key,this.suggestions),"or",t=>`\`${t}\``);return e?`; Did you mean ${e}? Ignoring.`:", ignoring."}toString(){return`${this.getPrefix()}${this.getPostfix()}`}};function Jo(e,t,i=""){if(!at(e))return{cleared:null,invalid:[new sd("required","an object",e,i)]};const o={},s=[],n=new Set(Object.keys(e)),r=[];if(cC in t){const a=Object.keys(t),l=t[cC];if(e.type!=null&&a.includes(e.type)||e.type==null&&l!=null){const{type:c=l,...d}=e,u=Jo(d,t[c],i);Object.assign(o,{type:c},u.cleared);for(const h of u.invalid)h.setUnionType(c,i);s.push(...u.invalid)}else{const c=vm(a,"or",d=>`'${d}'`);s.push(new sd("required",`a keyword such as ${c}`,e.type,i,"type"))}return{cleared:o,invalid:s}}for(const a of Object.keys(t)){const l=t[a],c=l[L2],d=e[a];if(n.delete(a),typeof d>"u"&&(l[P2]||r.push(a),!c))continue;const u=bm(i,a);if(ql(l)){const p=l(d,{options:e,path:u});if(typeof p=="object"){if(s.push(...p.invalid),p.valid){o[a]=p.cleared;continue}else if(Vp(p.invalid,u))continue}else if(p){o[a]=d;continue}s.push(new sd(c?"required":"invalid",l[Pn],d,i,a))}else{const h=Jo(d,l,u);h.cleared!=null&&(o[a]=h.cleared),s.push(...h.invalid)}}for(const a of n){const l=e[a];typeof l>"u"||s.push(new XM(r,l,i,a))}return{cleared:o,invalid:s}}function lY(e,t,i=2){const o=[],s=e.toLowerCase(),n=aY.get(s);for(const r of t){const a=r.toLowerCase();(n?.has(r)||a.includes(s)||sY(s,a)<=i)&&o.push(r)}return o}function kt(e,t){if(ql(e)){let i=function(o,s){return e(o,s)};return i[Pn]=t,i}else return{...e,[Pn]:t}}function ee(e){return Object.assign(ql(e)?(t,i)=>e(t,i):Si(e),{[L2]:!0,[Pn]:e[Pn]})}function Oe(e){return Object.assign(ql(e)?(t,i)=>e(t,i):Si(e),{[P2]:!0,[Pn]:e[Pn]})}var Si=(e,t="an object")=>kt((i,o)=>{const s=Jo(i,e,o.path);return{valid:!Vp(s.invalid,o.path),cleared:s.cleared,invalid:s.invalid}},t),Ou=(e,t,i)=>({...e,[Pn]:t,[cC]:i}),zt=(...e)=>kt((t,i)=>{const o=[];for(const s of e){const n=s(t,i);if(typeof n=="object"){if(o.push(...n.invalid),!n.valid)return{valid:!1,cleared:t,invalid:o};t=n.cleared}else if(!n)return!1}return{valid:!0,cleared:t,invalid:o}},e.map(t=>t[Pn]).filter(Boolean).join(" and ")),$e=(...e)=>kt((t,i)=>{for(const o of e){const s=o(t,i);if(typeof s=="object"?s.valid:s)return s}return!1},e.map(t=>t[Pn]).filter(Boolean).join(" or ")),dC=e=>St(e)||zp(e),cY=e=>Za(e)||(St(e)||yo(e))&&zp(new Date(e)),na=kt(Ct,"an array"),U=kt(qK,"a boolean"),Vt=kt(ql,"a function"),ke=kt(eY,"a color string"),nd=kt(cY,"a date"),We=kt($i,"a defined value"),ne=kt(St,"a number"),uC=kt(at,"an object"),H=kt(yo,"a string"),E2=kt(e=>typeof HTMLElement>"u"||e instanceof HTMLElement,"an html element"),rd=(e,t=1/0)=>{let i;return t===1/0?i=`an array of at least ${e} items`:e===t?i=`an array of exactly ${e} items`:e===0?i=`an array of no more than ${t} items`:i=`an array of at least ${e} and no more than ${t} items`,kt(o=>Ct(o)&&o.length>=e&&o.length<=t,i)},F2=(e,t=1/0)=>{let i;return t===1/0?i=`a string of at least ${e} characters`:e===t?i=`an string of exactly ${e} characters`:i=`an string of at least ${e} and no more than ${t} characters`,kt(o=>yo(o)&&o.length>=e&&o.length<=t,i)},N2=(e,t=!0)=>kt(i=>St(i)&&(i>e||t&&i===e),`a number greater than ${t?"or equal to ":""}${e}`),O2=(e,t)=>kt(i=>St(i)&&i>=e&&i<=t,`a number between ${e} and ${t} inclusive`),Y=N2(0),Cm=N2(0,!1),Ee=O2(0,1),dr=e=>kt((t,{options:i})=>!dC(t)||!dC(i[e])||t<i[e],`the value to be less than \`${e}\``),ur=e=>kt((t,{options:i})=>!dC(t)||!dC(i[e])||t>i[e],`the value to be greater than \`${e}\``);function ve(...e){at(e[0])&&(e=Object.values(e[0]));const t=vm(e,"or",i=>`'${i}'`);return kt(i=>e.includes(i),`a keyword such as ${t}`)}var je=e=>kt(t=>e===t,`the value ${JSON.stringify(e)}`),_e=(e,t,i=!0)=>kt((o,s)=>{if(!Ct(o))return!1;let n=i;const r=[],a=[],l=c=>n=i?n&&c:n||c;if(o.length===0)return{valid:!0,cleared:r,invalid:a};for(let c=0;c<o.length;c++){const d=o[c],u=e(d,{options:d,path:`${s.path}[${c}]`});typeof u=="object"?(n=l(u.valid),a.push(...u.invalid),u.cleared!=null&&r.push(u.cleared)):(n=l(u),u&&r.push(d))}return{valid:n,cleared:n||!i?r:null,invalid:a}},t??`${e[Pn]} array`),to=(e,t="an object array")=>kt((i,o)=>{if(!Ct(i))return!1;const s=[],n=[];for(let r=0;r<i.length;r++){const a=`${o.path}[${r}]`,l=Jo(i[r],e,a);Vp(l.invalid,a)||s.push(l.cleared),n.push(...l.invalid)}return{valid:!0,cleared:s,invalid:n}},t),Bu=(e,t)=>kt((i,o)=>ql(i)?lC in i?!0:{valid:!0,cleared:Object.assign((...n)=>{const r=R2(i,n);if(r==null)return;const a=e(r,{options:r,path:""});if(typeof a=="object"){if(a.invalid.forEach(B2(o,e[Pn])),a.valid)return a.cleared}else{if(a)return r;mm(`Callback \`${o.path}\` returned an invalid value \`${UM(r,50)}\`; expecting ${e[Pn]}, ignoring.`)}},{[lC]:!0}),invalid:[]}:!1,"a function"),ti=(e,t="an object")=>kt((i,o)=>ql(i)?lC in i?!0:{valid:!0,cleared:Object.assign((...n)=>{const r=R2(i,n,o.path);if(r==null)return;const a=Jo(r,e);return a.invalid.forEach(B2(o,t)),a.cleared},{[lC]:!0}),invalid:[]}:!1,"a function");function Vp(e,t){return e.some(i=>i.type==="required"&&i.path===t)}function B2(e,t){return i=>{if(i instanceof XM)return mm(`Callback \`${e.path}\` returned an unknown property \`${bm(i.path,i.key)}\`${i.getPostfix()}`);const o=UM(i.value,50);mm(i.key?`Callback \`${e.path}\` returned an invalid property \`${bm(i.path,i.key)}\`: \`${o}\`; expecting ${i.description}, ignoring.`:`Callback \`${e.path}\` returned an invalid value \`${o}\`; expecting ${t??i.description}, ignoring.`)}}var hC=e=>{if(!at(e))return!1;const t=Object.keys(e);return t.length===1&&t[0].startsWith("$")},dY=Si({color:ke,stop:Ee},""),G2=kt(e=>{let t=-1/0;for(const i of e)if(i?.stop!=null){if(i.stop<t)return!1;t=i.stop}return!0},"color stops to be defined in ascending order"),ZM=zt(rd(2),_e(dY),G2),qM=ve("axis","item","series"),QM=Si({type:ee(je("gradient")),colorStops:ee(ZM),rotation:ne,gradient:Oe(ve("linear","radial","conic")),bounds:Oe(qM),reverse:Oe(U)},"a gradient object with color stops"),xe={stroke:ke,strokeWidth:Y,strokeOpacity:Ee},pC=Si({type:ee(je("gradient")),gradient:ee(ve("linear","radial","conic")),bounds:ee(qM),colorStops:ee($e(ZM,zt(rd(2),_e(ke)))),rotation:ee(ne),reverse:ee(U)}),gC=Si({type:ee(je("pattern")),pattern:ee(ve("vertical-lines","horizontal-lines","forward-slanted-lines","backward-slanted-lines","circles","squares","triangles","diamonds","stars","hearts","crosses")),path:F2(2),width:ee(Y),height:ee(Y),fill:ee(ke),fillOpacity:ee(Ee),backgroundFill:ee(ke),backgroundFillOpacity:ee(Ee),padding:ee(Y),rotation:ee(ne),scale:ee(Y),stroke:ee(ke),strokeWidth:ee(Y),strokeOpacity:ee(Ee)}),fC=Si({type:ee(je("image")),url:H,width:Y,height:Y,rotation:ee(ne),backgroundFill:ee(ke),backgroundFillOpacity:Ee,fit:ee(ve("stretch","contain","cover")),repeat:ee(ve("repeat","repeat-x","repeat-y","no-repeat"))}),uY=Ou({gradient:{colorStops:ZM,rotation:ne,gradient:Oe(ve("linear","radial","conic")),bounds:Oe(qM),reverse:Oe(U)},pattern:{pattern:ve("vertical-lines","horizontal-lines","forward-slanted-lines","backward-slanted-lines","circles","squares","triangles","diamonds","stars","hearts","crosses"),path:F2(2),width:Y,height:Y,rotation:ne,scale:Y,fill:ke,fillOpacity:Ee,backgroundFill:ke,backgroundFillOpacity:Ee,...xe,padding:Oe(Y)},image:{url:ee(H),backgroundFill:ke,backgroundFillOpacity:Ee,width:Y,height:Y,fit:ve("stretch","contain","cover","none"),repeat:ve("repeat","repeat-x","repeat-y","no-repeat"),rotation:ne}},"a color object"),hr=$e(ke,Si(uY,"a color object")),Re={fill:hr,fillOpacity:Ee};Re.fillGradientDefaults=Oe(pC),Re.fillPatternDefaults=Oe(gC),Re.fillImageDefaults=Oe(fC);var Ne={lineDash:_e(Y),lineDashOffset:ne},qa={...Re,...xe,...Ne,opacity:Ee,cornerRadius:Y},Gu={...xe,...Ne,opacity:Ee},ai={...Re,...xe,...Ne,opacity:Ee};function z2(e){return{enabled:U,range:ve("tooltip","node"),highlightedItem:e,unhighlightedItem:e}}function Wi(e,t){return{enabled:U,range:ve("tooltip","node"),highlightedItem:e,unhighlightedItem:e,highlightedSeries:t,unhighlightedSeries:t,bringToFront:U}}var V2=Si({googleFont:H},"google font"),JM=$e(H,hC,V2,_e($e(H,V2))),$t={color:ke,fontFamily:JM,fontSize:Y,fontStyle:ve("normal","italic","oblique"),fontWeight:$e(Y,ve("normal","bold","bolder","lighter"))},hY=Si({top:ne,right:ne,bottom:ne,left:ne},"padding object"),mC=$e(ne,hY),yC={enabled:U,stroke:ke,strokeWidth:Y,strokeOpacity:Ee},ra={border:{...yC},cornerRadius:ne,padding:mC,...Re};function pY(e,t,i=1/0){const o=t,s=i,n=e%180*(Math.PI/180),r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));if(r===0)return{width:o,height:s};if(a===0)return{width:s,height:o};if(!isFinite(s)){const c=a/r,d=o/(a+c*r);return{width:d,height:c*d}}const l=a*a-r*r;if(l===0){const c=Math.min(o,s)/Math.SQRT2;return{width:c,height:c}}return{width:Math.abs((o*a-s*r)/l),height:Math.abs((s*a-o*r)/l)}}function vC(e){return typeof e>"u"?[]:Array.isArray(e)?e:[e]}function e1(e){return Array.from(new Set(e))}function t1(e,t){return e.reduce((i,o)=>{const s=t(o);return i[s]??(i[s]=[]),i[s].push(o),i},{})}function pr(e,t){if(e==null||t==null||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(Array.isArray(e[i])&&Array.isArray(t[i])){if(!pr(e[i],t[i]))return!1}else if(e[i]!==t[i])return!1;return!0}function Qa(e,t,i=0){if(e.length===0)return[];const o=[];for(let s=0;s<t;s++)o.push(e.at((s+i)%e.length));return o}function gY(e,t){const i=new Map;return t.forEach((o,s)=>{i.set(o,s)}),e.sort((o,s)=>{const n=i.get(o)??1/0,r=i.get(s)??1/0;return n-r})}function fY(e,t){let i=0;for(;i<e.length&&t(e[i]);)i+=1;const o=i;o!==0&&e.splice(0,o)}function mY(e,t){let i=e.length-1;for(;i>=0&&t(e[i]);)i-=1;const o=e.length-1-i;o!==0&&e.splice(e.length-o,o)}var i1=class{constructor(){this.queue=[]}await(e=50){return new Promise(t=>{const i=()=>{clearTimeout(s),t(!0)},s=setTimeout(()=>{const n=this.queue.indexOf(i);n<0||(this.queue.splice(n,1),t(!1))},e);this.queue.push(i)})}notify(){this.queue.splice(0).forEach(e=>e())}};function _2(e=0){return new Promise(t=>{setTimeout(t,e)})}function*zu(...e){for(const t of e)yield*t}function yY(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e?e:[e]}function Sm(e){for(const t of e)return t;throw new Error("AG Charts - no first() value found")}function*hi(e){const t=[void 0,void 0];for(const i of Object.keys(e))t[0]=i,t[1]=e[i],yield t}function ad(e){return e==="true"}function vY(e){return Number(e)}function En(e){return e}var bY={role:En,"aria-checked":ad,"aria-controls":En,"aria-describedby":En,"aria-disabled":ad,"aria-expanded":ad,"aria-haspopup":En,"aria-hidden":ad,"aria-label":En,"aria-labelledby":En,"aria-live":En,"aria-orientation":En,"aria-selected":ad,"data-focus-override":ad,"data-focus-visible-override":ad,"data-preventdefault":ad,class:En,for:En,id:En,tabindex:vY,title:En,placeholder:En};function ut(e,t,i){i==null||i===""||i===""?e?.removeAttribute(t):e?.setAttribute(t,i.toString())}function Ja(e,t){if(t!=null)for(const[i,o]of hi(t))i!=="class"&&ut(e,i,o)}function _p(e,t,i){if(!(e instanceof HTMLElement))return;const o=e.getAttribute(t);return o===null?i:bY[t]?.(o)??void 0}function el(e,t,i){e!=null&&(i==null?e.style.removeProperty(t):e.style.setProperty(t,i.toString()))}function CY(e,t){for(const[i,o]of hi(t))el(e,i,o)}function H2(e,t,i,o,s){return t<e.x+e.width&&t+o>e.x&&i<e.y+e.height&&i+s>e.y}function o1(e,t,i,o=0,s=0){return t>=e.x&&t+o<=e.x+e.width&&i>=e.y&&i+s<=e.y+e.height}function SY(e){return e==null||e.height===0||e.width===0||isNaN(e.height)||isNaN(e.width)}function xY(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vu(e,t,i){if(e>t)return;let o;for(;t>=e;){const s=Math.floor((t+e)/2);i(s)?(o=s,e=s+1):t=s-1}return o}function xm(e,t,i){if(e>t)return;let o;for(;t>=e;){const s=Math.floor((t+e)/2);i(s)?(o=s,t=s-1):e=s+1}return o}function $2(e,t,i){if(e>t)return;let o;for(;t>=e;){const s=Math.floor((t+e)/2),n=i(s);n==null?t=s-1:(o=n,e=s+1)}return o}var wY=class{constructor(e){this.getter=e}get(){let e=this.result?.deref();return e||(e=this.getter(),this.result=new WeakRef(e),e)}clear(){this.result=void 0}},qt=class{constructor(){this.callbacks=new Set}flush(){for(const e of this.callbacks)e();this.callbacks.clear()}merge(e){for(const t of e.callbacks)this.callbacks.add(t)}register(...e){for(const t of e)t&&this.callbacks.add(t)}};function DY(e,t){const i=Math.max(e.length,t.length),o=new Set,s=new Set;for(let n=0;n<i;n++){const r=e[n],a=t[n];r!==a&&(s.has(a)?s.delete(a):a&&o.add(a),o.has(r)?o.delete(r):r&&s.add(r))}return{changed:o.size>0||s.size>0,added:o,removed:s}}function Be(e,t,i){return Math.min(i,Math.max(e,t))}function MY(e,t,i=1e-10){return e>=t[0]-i&&e<=t[1]+i}function _t(e,t,i=1e-10){return e===t||Math.abs(e-t)<i}function s1(e){return Math.sign(e)===-1||Object.is(e,-0)}function kY(e){return e%1===0}function n1(e,t=2){const i=10**t;return Math.round(e*i)/i}function AY(e,t){return Math.floor(e%t+(e<0?Math.abs(t):0))}function wm(e){if(Math.floor(e)===e)return 0;let t=String(e),i=0;if(e<1e-6||e>=1e21){let s;[t,s]=t.split("e"),s!=null&&(i=Number(s))}const o=t.split(".")[1]?.length??0;return Math.max(o-i,0)}function W2(e){return Array.isArray(e)&&e.length>=2&&e.every(St)}function bC(e){return Array.isArray(e)&&e.length>=2&&e.every(W2)}function IY(e){const t=e[0],i=e[e.length-1];return _t(t[0],i[0],.001)&&_t(t[1],i[1],.001)}function j2(e){return Array.isArray(e)&&e.every(bC)&&e.every(IY)}function U2(e){if(e===null)return!0;if(!at(e)||e.type==null)return!1;const{type:t,coordinates:i}=e;switch(t){case"GeometryCollection":return Array.isArray(e.geometries)&&e.geometries.every(U2);case"MultiPolygon":return Array.isArray(i)&&i.every(j2);case"Polygon":return j2(i);case"MultiLineString":return Array.isArray(i)&&i.every(bC);case"LineString":return bC(i);case"MultiPoint":return bC(i);case"Point":return W2(i);default:return!1}}function TY(e){return at(e)&&e.type==="Feature"&&U2(e.geometry)}function RY(e){return at(e)&&e.type==="FeatureCollection"&&Array.isArray(e.features)&&e.features.every(TY)}var Hp=kt(RY,"a GeoJSON object"),LY=class{constructor(e,t){this._vertexCount=0,this.pendingProcessingEdgesFrom=[],this.pendingProcessingEdgesTo=[],this.cachedNeighboursEdge=e,this.processedEdge=t}clear(){this._vertexCount=0,this.pendingProcessingEdgesFrom=[],this.pendingProcessingEdgesTo=[]}addVertex(e){const t=new PY(e);return this._vertexCount++,t}addEdge(e,t,i){i===this.cachedNeighboursEdge?e.updateCachedNeighbours().set(t.value,t):i===this.processedEdge&&(this.pendingProcessingEdgesFrom.push(e),this.pendingProcessingEdgesTo.push(t));const{edges:o}=e,s=o.get(i);s?s.indexOf(t)===-1&&s.push(t):o.set(i,[t])}removeVertex(e){this._vertexCount--;const t=e.edges;if(t){for(const[i,o]of t)this._vertexCount-=o.length;e.clear()}}removeEdge(e,t){for(const[i,o]of e.edges){const s=o.indexOf(t);o.splice(s,1),o.length===0&&e.edges.delete(i)}}removeEdges(e,t){e.edges.delete(t)}getVertexValue(e){return e.value}*neighbours(e){for(const[t,i]of e.edges)for(const o of i)yield o}*neighboursAndEdges(e){for(const[t,i]of e.edges)for(const o of i)yield[o,t]}neighboursWithEdgeValue(e,t){return e.edges.get(t)}findNeighbour(e,t){return e.edges.get(t)?.[0]}findNeighbourValue(e,t){const i=this.findNeighbour(e,t);if(i)return this.getVertexValue(i)}findNeighbourWithValue(e,t,i){const o=i==null?this.neighbours(e):this.neighboursWithEdgeValue(e,i);if(o){for(const s of o)if(this.getVertexValue(s)===t)return s}}findVertexAlongEdge(e,t,i){if(i===this.cachedNeighboursEdge){let s;for(const n of t)if(s=(s??e).readCachedNeighbours()?.get(n),!s)return;return s}if(t.length===0)return;let o=e;for(const s of t){const n=o?this.neighboursWithEdgeValue(o,i):void 0;if(!n)return;o=n.find(r=>r.value===s)}return o}adjacent(e,t){for(const[i,o]of e.edges)if(o.includes(t))return!0;return!1}},PY=class{constructor(e){this.value=e,this.edges=new Map}readCachedNeighbours(){return this._cachedNeighbours}updateCachedNeighbours(){return this._cachedNeighbours??(this._cachedNeighbours=new Map),this._cachedNeighbours}clear(){this.edges.clear(),this._cachedNeighbours?.clear()}},K2=new Map,EY=1;function es(e){const t=e.constructor,i=Object.hasOwn(t,"className")?t.className:t.name;if(!i)throw new Error(`The ${t} is missing the 'className' property.`);const o=(K2.get(i)??0)+1;return K2.set(i,o),`${i}-${o}`}function _u(){return`ag-charts-${EY++}`}function CC(){return crypto.randomUUID?.()??FY()}function FY(){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t="";for(let i=0;i<e.length;i++)(i===4||i===6||i===8||i===10)&&(t+="-"),t+=e[i].toString(16).padStart(2,"0");return t}var Y2=(e,t,i)=>{let o=e,s=o;for(const n of t)if(o==null||i(o.value,n)>0)o={value:n,next:o},s=o;else{for(s=s;s.next!=null&&i(s.next.value,n)<=0;)s=s.next;s.next={value:n,next:s.next}}return o},X2=/^(?:(.)?([<>=^]))?([+\-( ])?([$€£¥₣₹#])?(0)?(\d+)?(,)?(?:\.(\d+))?(~)?([%a-z])?$/i,Z2=/^((?:[^#]|#[^{])*)#{([^}]+)}(.*)$/;function NY(e){if(!yo(e))return!1;const t=Z2.exec(e);return X2.test(t?t[2]:e)}function r1(e){let t,i;const o=Z2.exec(e);o&&([,t,e,i]=o);const s=X2.exec(e);if(!s){he.warnOnce(`The number formatter is invalid: ${e}`);return}const[,n,r,a,l,c,d,u,h,p,g]=s;return{fill:n,align:r,sign:a,symbol:l,zero:c,width:parseInt(d),comma:u,precision:parseInt(h),trim:!!p,type:g,prefix:t,suffix:i}}function q2(e){const t=typeof e=="string"?r1(e):e;if(t==null)return;const{fill:i,align:o,sign:s="-",symbol:n,zero:r,width:a,comma:l,type:c,prefix:d="",suffix:u="",precision:h}=t;let{trim:p}=t;const g=h==null||isNaN(h);let f;if(!c)f=gr.g,p=!0;else if(c in gr&&c in $p)f=g?$p[c]:gr[c];else if(c in gr)f=gr[c];else if(c in $p)f=$p[c];else throw new Error(`The number formatter type is invalid: ${c}`);const y=c?6:12;let v;return g||(v=h),(b,C)=>{let x=f(b,v??C??y);return p&&(x=GY(x)),l&&(x=zY(x,l)),x=_Y(b,x,s),n&&n!=="#"&&(x=`${n}${x}`),n==="#"&&c==="x"&&(x=`0x${x}`),c==="s"&&(x=`${x}${VY(b)}`),(c==="%"||c==="p")&&(x=`${x}%`),a!=null&&!isNaN(a)&&(x=HY(x,a,i??r,o)),x=`${d}${x}${u}`,x}}var $p={b:e=>SC(e).toString(2),c:e=>String.fromCharCode(e),d:e=>Math.round(Math.abs(e)).toFixed(0),o:e=>SC(e).toString(8),x:e=>SC(e).toString(16),X:e=>$p.x(e).toUpperCase(),n:e=>$p.d(e),"%":e=>`${SC(e*100).toFixed(0)}`},gr={e:(e,t)=>Math.abs(e).toExponential(t),E:(e,t)=>gr.e(e,t).toUpperCase(),f:(e,t)=>Math.abs(e).toFixed(t),F:(e,t)=>gr.f(e,t).toUpperCase(),g:(e,t)=>{if(e===0)return"0";const i=Math.abs(e),o=Math.floor(Math.log10(i));return o>=-4&&o<t?i.toFixed(t-1-o):i.toExponential(t-1)},G:(e,t)=>gr.g(e,t).toUpperCase(),n:(e,t)=>gr.g(e,t),p:(e,t)=>gr.r(e*100,t),r:(e,t)=>{if(e===0)return"0";const i=Math.abs(e),s=Math.floor(Math.log10(i))-(t-1);if(s<=0)return i.toFixed(-s);const n=10**s;return(Math.round(i/n)*n).toFixed()},s:(e,t)=>{const i=eF(e);return gr.r(e/10**i,t)},"%":(e,t)=>gr.f(e*100,t)},Q2=-24,J2=24,OY={[Q2]:"y",[-21]:"z",[-18]:"a",[-15]:"f",[-12]:"p",[-9]:"n",[-6]:"µ",[-3]:"m",0:"",3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",[J2]:"Y"},BY="−";function SC(e){return Math.floor(Math.abs(e))}function GY(e){if(!e.endsWith("0")||e.indexOf(".")===-1)return e;let t=e.length-1;for(;t>0;)if(e[t]=="0")t-=1;else if(e[t]=="."){t-=1;break}else break;return e.substring(0,t+1)}function zY(e,t){let i=e.indexOf(".");i<0&&(i=e.length);const o=e.substring(0,i).split(""),s=e.substring(i);for(let n=o.length-3;n>0;n-=3)o.splice(n,0,t);return`${o.join("")}${s}`}function VY(e){return OY[eF(e)]}function eF(e){return Be(Q2,e?Math.floor(Math.log10(Math.abs(e))/3)*3:0,J2)}function _Y(e,t,i=""){if(i==="(")return e>=0?t:`(${t})`;const o=i==="+"?"+":"";return`${e>=0?o:BY}${t}`}function HY(e,t,i=" ",o=">"){let s=e;if(o===">"||!o)s=s.padStart(t,i);else if(o==="<")s=s.padEnd(t,i);else if(o==="^"){const n=Math.max(0,t-s.length),r=Math.ceil(n/2),a=Math.floor(n/2);s=s.padStart(r+s.length,i),s=s.padEnd(a+s.length,i)}return s}var tF=Object.defineProperty,$Y=Object.getOwnPropertyDescriptor,tl=(e,t)=>{for(var i in t)tF(e,i,{get:t[i],enumerable:!0})},I=(e,t,i,o)=>{for(var s=o>1?void 0:o?$Y(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(s=(o?r(t,i,s):r(s))||s);return o&&s&&tF(t,i,s),s},xC=class{constructor(){this.cleanup=new qt}destroy(){this.cleanup.flush()}},WY=class{constructor(){this.modules=[],this.dependencies=new Map,this.modulesByOptionKey=new Map}register(...t){for(const i of t){this.registerDependencies(i);const o=this.modules.find(s=>i.type===s.type&&("optionsKey"in i&&"optionsKey"in s?i.optionsKey===s.optionsKey:!0)&&i.identifier===s.identifier);if(o){if(i.packageType==="enterprise"&&o.packageType==="community"){const s=this.modules.indexOf(o);this.modules.splice(s,1,i),"optionsKey"in i&&this.modulesByOptionKey.set(i.optionsKey,i)}}else this.modules.push(i),"optionsKey"in i&&this.modulesByOptionKey.set(i.optionsKey,i)}}hasEnterpriseModules(){return this.modules.some(t=>t.packageType==="enterprise")}*byType(...t){const i=new Set,o=this.modules.filter(r=>t.includes(r.type)),s=r=>{const a=this.dependencies.get(r);return a?.flatMap(s).concat(a)??[]},n=[];for(const r of o){const a="optionsKey"in r?r.optionsKey:r.contextKey;if(!i.has(a)){for(const l of s(a)){if(i.has(l))continue;const c=this.modulesByOptionKey.get(l);if(!c){n.push(l);continue}t.includes(c.type)&&(yield c,i.add(l))}yield r,i.add(a)}}if(n.length>0)throw new Error(`Could not resolve module dependencies: ${n}`)}registerDependencies(t){if(t.dependencies==null||t.dependencies.length===0)return;const i="optionsKey"in t?t.optionsKey:t.contextKey;this.dependencies.set(i,t.dependencies)}},il=new WY,wC=Symbol("interpolate"),DC=e=>e[wC]!=null;function MC(e,t,i,o=1/0){const s={nearest:void 0,distanceSquared:o};for(const n of i){const r=n.distanceSquared(e,t);if(r===0)return{nearest:n,distanceSquared:0};r<s.distanceSquared&&(s.nearest=n,s.distanceSquared=r)}return s}function jY(e,t,i,o=1/0){const{x:s=e,y:n=t}=i.transformPoint?.(e,t)??{},r={nearest:void 0,distanceSquared:o};for(const a of i.children){const{nearest:l,distanceSquared:c}=a.nearestSquared(s,n,r.distanceSquared);if(c===0)return{nearest:l,distanceSquared:c};c<r.distanceSquared&&(r.nearest=l,r.distanceSquared=c)}return r}var Dm=class gm{constructor(t,i,o,s){this.x=t,this.y=i,this.width=o,this.height=s}static fromDOMRect({x:t,y:i,width:o,height:s}){return new gm(t,i,o,s)}static merge(t){let i=1/0,o=1/0,s=-1/0,n=-1/0;for(const r of t)r.x<i&&(i=r.x),r.y<o&&(o=r.y),r.x+r.width>s&&(s=r.x+r.width),r.y+r.height>n&&(n=r.y+r.height);return new gm(i,o,s-i,n-o)}static nearestBox(t,i,o){return MC(t,i,o)}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(){const{x:t,y:i,width:o,height:s}=this;return new gm(t,i,o,s)}equals(t){return xY(this,t)}containsPoint(t,i){return o1(this,t,i)}intersection(t){if(!this.collidesBBox(t))return;const i=Be(t.x,this.x,t.x+t.width),o=Be(t.y,this.y,t.y+t.height),s=Be(t.x,this.x+this.width,t.x+t.width),n=Be(t.y,this.y+this.height,t.y+t.height);return new gm(i,o,s-i,n-o)}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,i){if(this.containsPoint(t,i))return 0;const o=t-Be(this.x,t,this.x+this.width),s=i-Be(this.y,i,this.y+this.height);return o*o+s*s}shrink(t,i){if(typeof t=="number")this.applyMargin(t,i);else for(const o of Object.keys(t)){const s=t[o];typeof s=="number"&&this.applyMargin(s,o)}return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this}grow(t,i){if(typeof t=="number")this.applyMargin(-t,i);else for(const o of Object.keys(t)){const s=t[o];typeof s=="number"&&this.applyMargin(-s,o)}return this}applyMargin(t,i){switch(i){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,i){return this.x+=t,this.y+=i,this}[wC](t,i){return new gm(this.x*(1-i)+t.x*i,this.y*(1-i)+t.y*i,this.width*(1-i)+t.width*i,this.height*(1-i)+t.height*i)}};Dm.zero=Object.freeze(new Dm(0,0,0,0)),Dm.NaN=Object.freeze(new Dm(NaN,NaN,NaN,NaN));var Ie=Dm,UY=2e3,iF=Date.now(),KY=()=>{const e=Date.now()-iF;if(e>UY){const t=(Math.floor(e/100)/10).toFixed(1);he.log(`**** ${t}s since last log message ****`)}iF=Date.now()},rt={create(...e){return Object.assign((...i)=>{rt.check(...e)&&(typeof i[0]=="function"&&(i=vC(i[0]())),KY(),he.log(...i))},{check:()=>rt.check(...e),group:(i,o)=>rt.check(...e)?he.logGroup(i,o):o()})},check(...e){return e.length===0&&e.push(!0),vC(Mt("agChartsDebug")).some(i=>e.includes(i))},inDevelopmentMode(e){if(rt.check("dev"))return e()}};function oF({context:e,pixelRatio:t,width:i,height:o}){e.save();try{e.resetTransform(),e.clearRect(0,0,Math.ceil(i*t),Math.ceil(o*t))}finally{e.restore()}}function sF(e){if(rt.check("canvas")){const t=e.save.bind(e),i=e.restore.bind(e);let o=0;Object.assign(e,{save(){t(),o++},restore(){if(o===0)throw new Error("AG Charts - Unable to restore() past depth 0");i(),o--},verifyDepthZero(){if(o!==0)throw new Error(`AG Charts - Save/restore depth is non-zero: ${o}`)}})}}function nF(e,t,i){return[Math.floor(e*i),Math.floor(t*i)]}var a1=class{constructor(e){const{width:t,height:i,pixelRatio:o,willReadFrequently:s=!1}=e;this.width=t,this.height=i,this.pixelRatio=o;const[n,r]=nF(t,i,o);this.canvas=new OffscreenCanvas(n,r),this.context=this.canvas.getContext("2d",{willReadFrequently:s}),this.context.setTransform(o,0,0,o,0,0),sF(this.context)}drawImage(e,t=0,i=0){return e.drawImage(this.canvas,t,i)}transferToImageBitmap(){return this.canvas.transferToImageBitmap()}resize(e,t,i){if(!(e>0&&t>0))return;const{canvas:o,context:s}=this;if(e!==this.width||t!==this.height||i!==this.pixelRatio){const[n,r]=nF(e,t,i);o.width=n,o.height=r}s.setTransform(i,0,0,i,0,0),this.width=e,this.height=t,this.pixelRatio=i}clear(){oF(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)}},l1=Symbol("BREAK"),Mm="__decorator_config",kC="__decorator_accessors";function YY(e,t){c1(e,t).optional=!0}function c1(e,t){if(Object.getOwnPropertyDescriptor(e,Mm)==null&&Object.defineProperty(e,Mm,{value:{}}),Object.getOwnPropertyDescriptor(e,kC)==null){const d=Object.getPrototypeOf(e)?.[kC]?.slice()??[];Object.defineProperty(e,kC,{value:d})}const i=e[Mm],o=t.toString();if(i[o]!=null)return i[o];i[o]={setters:[],getters:[],observers:[]};const s=Object.getOwnPropertyDescriptor(e,t);let n=s?.get,r=s?.set;if(n==null||r==null){const c=e[kC];let d=c.indexOf(t);d===-1&&(d=c.push(t)-1),n??(n=function(){let u=this.__accessors;return u==null&&(u=c.slice().fill(void 0),Object.defineProperty(this,"__accessors",{value:u})),u[d]}),r??(r=function(u){let h=this.__accessors;h==null&&(h=c.slice().fill(void 0),Object.defineProperty(this,"__accessors",{value:h})),h[d]=u})}return Object.defineProperty(e,t,{set:function(c){const{setters:d,observers:u}=i[o];let h;d.some(p=>p.length>2)&&(h=n.call(this));for(const p of d)if(c=p(this,t,c,h),c===l1)return;r.call(this,c);for(const p of u)p(this,c,h)},get:function(){let c=n.call(this);for(const d of i[o].getters)if(c=d(this,t,c),c===l1)return;return c},enumerable:!0,configurable:!1}),i[o]}function Hu(e,t,i){return(o,s)=>{const n=c1(o,s);n.setters.push(e),t&&n.getters.unshift(t),i&&Object.assign(n,i)}}function rF(e){return(t,i)=>{c1(t,i).observers.push(e)}}function AC(e){return typeof e<"u"&&Mm in e}function ld(e){const t=new Set;for(;AC(e);)t.add(e?.[Mm]),e=Object.getPrototypeOf(e);return Array.from(t).flatMap(i=>Object.keys(i))}function aF(e){return ld(e).reduce((t,i)=>(t[String(i)]=e[i]??null,t),{})}function Ws(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every((i,o)=>Ws(i,t[o])):Rt(e)?Rt(t)?d1(e,t,Ws):!1:e===t}function d1(e,t,i){if(Object.is(e,t))return!0;for(const o of Object.keys(t))if(!(o in e))return!1;for(const o of Object.keys(e))if(!(o in t)||!i(e[o],t[o]))return!1;return!0}function Lt(...e){const t={};for(const i of e){if(!at(i))continue;const o=AC(i)?ld(i):Object.keys(i);for(const s of o)Rt(t[s])&&Rt(i[s])?t[s]=Lt(t[s],i[s]):t[s]??(t[s]=i[s])}return t}function km(...e){const t={};for(const i of e){if(!at(i))continue;const o=AC(i)?ld(i):Object.keys(i);for(const s of o)Rt(t[s])&&Rt(i[s])?t[s]=km(t[s],i[s]):s in t||(t[s]??(t[s]=i[s]))}return t}function lF(e,...t){return t&&Ct(e)?e.map(i=>Lt(i,...t)):e}function cF(e,t){const i={};for(const[o,s]of hi(e))i[o]=t(s,o,e);return i}function Ae(e,t){const i={...e};for(const o of t)delete i[o];return i}function u1(e,t){if(e==null)return;const i={};for(const o of t)Object.hasOwn(e,o)&&(i[o]=e[o]);return i}function h1(e,t){return(Ct(t)?t:t.split(".")).reduce((o,s)=>o[s],e)}var p1=new Set(["__proto__","constructor","prototype"]);function g1(e,t,i){const o=Ct(t)?t.slice():t.split("."),s=o.pop();if(o.some(r=>p1.has(r)))return;const n=o.reduce((r,a)=>r[a],e);return n[s]=i,n[s]}function f1(e,t,i){if(i===void 0)return t;for(const o of e){const s=i[o];s!==void 0&&(t[o]=s)}return t}function Ql(e){return e==null||typeof e!="object"||!Rt(e)||(Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t];i!==null&&(typeof i=="object"||typeof i=="function")&&!Object.isFrozen(i)&&Ql(i)})),e}function dF(e,t){return Rt(e)&&t in e}function XY(e,t){return dF(e,t)&&typeof e[t]=="string"}var uF=(e,t)=>e===t;function Ce(e){return function(t,i){const o=`__${i}`;t[i]||ZY(t,i,o,e)}}function hF(e){return Ce(e)}function Fn(e){return Ce(e)}function m1(e){const t=e??{};return t.equals=pr,Ce(e)}function ZY(e,t,i,o){const{changeCb:s,convertor:n,checkDirtyOnAssignment:r=!1}=o??{},a={changeCb:s,checkDirtyOnAssignment:r,convertor:n},l=JY(i,QY(qY(eX(i,a),a),a),a);Object.defineProperty(e,t,{set:l,get:function(){return this[i]},enumerable:!0,configurable:!0})}function qY(e,t){const{convertor:i}=t;return i?function(o){e.call(this,i(o))}:e}var pF=Symbol("no-change");function QY(e,t){const{changeCb:i}=t;return i?function(o){const s=e.call(this,o);return s!==pF&&i.call(this,this),s}:e}function JY(e,t,i){const{checkDirtyOnAssignment:o}=i;return o?function(s){const n=t.call(this,s);return s?._dirty===!0&&this.markDirty(e),n}:t}function eX(e,t){const{equals:i=uF}=t;return function(o){const s=this[e];return i(o,s)?pF:(this[e]=o,this.onChangeDetection(e),o)}}var y1=(e,t)=>Math.sign(e-t);function gF(e,t){if(typeof e=="number"&&typeof t=="number")return y1(e,t);const i=typeof e=="number"?[e]:e,o=typeof t=="number"?[t]:t,s=Math.min(i.length,o.length);for(let n=0;n<s;n+=1){const r=y1(i[n],o[n]);if(r!==0)return r}return y1(i.length,o.length)}var fF=(e=>(e[e.All=0]="All",e[e.None=1]="None",e))(fF||{}),tX=5,Am=class m2{constructor(t){this.serialNumber=m2._nextSerialNumber++,this.childNodeCounts={groups:0,nonGroups:0,thisComplexity:0,complexity:0},this.id=es(this),this.name=void 0,this.transitionOut=void 0,this.pointerEvents=0,this._datum=void 0,this._previousDatum=void 0,this.scene=void 0,this._debugDirtyProperties=void 0,this.parentNode=void 0,this.cachedBBox=void 0,this.isContainerNode=!1,this.visible=!0,this.zIndex=0,this.batchLevel=0,this.batchDirty=!1,this.name=t?.name,this.tag=t?.tag??NaN,this.zIndex=t?.zIndex??0,this.scene=t?.scene,(t?.debugDirty??m2._debugEnabled)&&(this._debugDirtyProperties=new Map([["__first__",[]]]))}static toSVG(t,i,o){const s=t?.toSVG();if(s==null||!s.elements.length&&!s.defs?.length)return;const n=Hi("svg");if(n.setAttribute("width",String(i)),n.setAttribute("height",String(o)),n.setAttribute("viewBox",`0 0 ${i} ${o}`),n.setAttribute("overflow","visible"),s.defs?.length){const r=Hi("defs");r.append(...s.defs),n.append(r)}return n.append(...s.elements),n.outerHTML}static*extractBBoxes(t,i){for(const o of t)if(!i||o.visible&&!o.transitionOut){const s=o.getBBox();s&&(yield s)}}get datum(){return this._datum}set datum(t){this._datum!==t&&(this._previousDatum=this._datum,this._datum=t)}get previousDatum(){return this._previousDatum}get layerManager(){return this.scene?.layersManager}get imageLoader(){return this.scene?.imageLoader}closestDatum(){for(const{datum:t}of this.traverseUp(!0))if(t!=null)return t}preRender(t,i=1){if(this.childNodeCounts.groups=0,this.childNodeCounts.nonGroups=1,this.childNodeCounts.complexity=i,this.childNodeCounts.thisComplexity=i,this.batchLevel>0||this.batchDirty)throw new Error("AG Charts - illegal rendering state; batched update in progress");return this.childNodeCounts}isolatedRender(t){t.ctx.save();try{this.render(t)}catch(i){const o=i.errorCount??1;if(o>=tX)throw i.errorCount=o,i;he.warnOnce("Error during rendering",i,i.stack)}finally{t.ctx.restore()}}render(t){const{stats:i}=t;if(this.debugDirtyProperties(),t.debugNodeSearch){const o=this.name??this.id;t.debugNodeSearch.some(s=>typeof s=="string"?s===o:s.test(o))&&(t.debugNodes[this.name??this.id]=this)}i&&(i.nodesRendered++,i.opsPerformed+=this.childNodeCounts.thisComplexity)}setScene(t){this.scene=t}*traverseUp(t){let i=this;for(t&&(yield i);i=i.parentNode;)yield i}isRoot(){return!this.parentNode}removeChild(t){throw new Error(`AG Charts - internal error, unknown child node ${t.name??t.id} in $${this.name??this.id}`)}remove(){this.parentNode?.removeChild(this)}destroy(){this.parentNode?.removeChild(this)}batchedUpdate(t){this.batchLevel++,t(),this.batchLevel--,this.batchLevel===0&&this.batchDirty&&(this.markDirty(),this.batchDirty=!1)}setProperties(t){return this.batchLevel++,Object.assign(this,t),this.batchLevel--,this.batchLevel===0&&this.batchDirty&&(this.markDirty(),this.batchDirty=!1),this}containsPoint(t,i){return!1}pickNode(t,i){if(this.containsPoint(t,i))return this}pickNodes(t,i,o=[]){return this.containsPoint(t,i)&&o.push(this),o}getBBox(){return this.cachedBBox??(this.cachedBBox=Object.freeze(this.computeBBox())),this.cachedBBox}computeBBox(){}onChangeDetection(t){this.markDirty(t)}markDirtyChildrenOrder(){this.cachedBBox=void 0}markDirty(t){if(this.batchLevel>0){this.batchDirty=!0;return}t!=null&&this._debugDirtyProperties&&this.markDebugProperties(t),this.cachedBBox=void 0,this.parentNode?.markDirty()}markDebugProperties(t){const i=this._debugDirtyProperties?.get(t)??[],o=new Error().stack?.split(`
@@ -23,7 +23,7 @@ ${n.join(`
23
23
  `),n=Gye.getMeasurer({font:o}),r=i.interval.values??e.ticks({nice:!1,interval:i.interval.step,minTickCount:0,maxTickCount:6,tickCount:5})?.ticks??[],l=(s??r?.map(c=>Vv(this.id,this.ctx,this.labelDatum(o,c))??"")).reduce((c,d)=>{const{width:u}=n.measureText(d);return Math.max(c,u)},0);return o.spacing+l}createNodeData(){const{id:e,properties:t,horizontal:i,scale:o,seriesRect:s}=this,{value:n,segmentation:r,thickness:a,cornerRadius:l,cornerMode:c,bar:d,scale:u,label:h}=t;o.domain=[u.min,u.max],o.range=i?[0,s.width]:[s.height,0];let p,g;i?(g=1,p=Math.PI/2):u.label.placement==="before"?(g=1,p=0):(g=-1,p=0);const f=p-Math.PI/2;let y,v,b,C;i?(y=0,v=s.width,b=(s.height-a)/2,C=b+a,h.placement==="outside-start"?y+=this.horizontalLabelInset():h.placement==="outside-end"&&(v-=this.horizontalLabelInset())):(y=(s.width-a)/2,v=y+a,C=0,b=s.height,h.placement==="outside-start"?b-=this.verticalLabelInset():h.placement==="outside-end"&&(C+=this.verticalLabelInset())),this.gaugeRect=new cu(Math.min(y,v),Math.min(b,C),Math.abs(v-y),Math.abs(C-b));const x=0,D=0;o.domain=[u.min,u.max],o.range=i?[y,v]:[b,C];const{ticks:k}=this.tickGenerator.generateTicks({domain:o.domain,range:this.range,reverse:!1,primaryTickCount:void 0,defaultTickMinSpacing:0,visibleRange:[0,1],niceMode:Wye.Off,labelX:0,parallelFlipRotation:p,regularFlipRotation:f,sideFlag:g,sizeLimit:void 0,removeOverflowLabels:!1}).tickData,A=this.getTargets(),w=[],M=[],T=[],L=[],[N,O]=o.range,F=Math.abs(O-N),E=i?o.convert(n):v,G=i?C:o.convert(n),B=r.enabled?r.spacing/2:0,z=i?B:0,V=i?0:B,$=Math.min(d.thickness??Math.round(d.thicknessRatio*a),a),_=-(a-$)/2,W=i?0:_,j=i?_:0,X=c==="item",q=Math.ceil(F);let Q=r.enabled?r.interval.getSegments(o,q):void 0;const ue=d.fill??this.createLinearGradient(o,d.fills,d.fillMode),de=u.fill??(d.enabled&&u.fills.length===0?u.defaultFill:void 0)??this.createLinearGradient(o,u.fills,u.fillMode);if(Q==null&&X){const se=Math.min(...o.domain),ie=Math.max(...o.domain),le={value:n,segmentStart:se,segmentEnd:ie};if(d.enabled){const ce=Math.min(l,$/2,F/2)*1,be=i?ce:0,oe=i?0:ce;w.push({series:this,itemId:"value",datum:le,datumIndex:{type:0},type:0,x0:x+y-be-W,y0:D+b-oe-j,x1:x+E+be+W,y1:D+G+oe+j,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:l,topRightCornerRadius:l,bottomRightCornerRadius:l,bottomLeftCornerRadius:l,fill:ue,horizontalInset:z,verticalInset:V})}const Me=Math.min(l,a/2,F/2)*1,De=i?Me:0,fe=i?0:Me;L.push({series:this,itemId:"scale",datum:le,datumIndex:{type:0},type:0,x0:x+y-De,y0:D+b-fe,x1:x+v+De,y1:D+C+fe,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:l,topRightCornerRadius:l,bottomRightCornerRadius:l,bottomLeftCornerRadius:l,fill:de,horizontalInset:z,verticalInset:V})}else{Q??(Q=o.domain);const se=x+y-W,ie=D+b-j,le=x+E+W,ye=D+G+j;for(let Me=0;Me<Q.length-1;Me+=1){const De=Q[Me+0],fe=Q[Me+1],Ge={value:n,segmentStart:De,segmentEnd:fe},ce=Me===0,be=Me===Q.length-2,oe=o.convert(De),pe=o.convert(fe),we=X||ce?l:0,ze=X||be?l:0,Ye=i?we:ze,dt=ze,ct=i?ze:we,bt=we;d.enabled&&w.push({series:this,itemId:`value-${Me}`,datum:Ge,datumIndex:{type:0},type:0,x0:x+(i?oe:y),y0:D+(i?b:oe),x1:x+(i?pe:v),y1:D+(i?C:pe),clipX0:se,clipY0:ie,clipX1:le,clipY1:ye,topLeftCornerRadius:Ye,topRightCornerRadius:dt,bottomRightCornerRadius:ct,bottomLeftCornerRadius:bt,fill:ue,horizontalInset:z,verticalInset:V}),L.push({series:this,itemId:`scale-${Me}`,datum:Ge,datumIndex:{type:0},type:0,x0:x+(i?oe:y),y0:D+(i?b:oe),x1:x+(i?pe:v),y1:D+(i?C:pe),clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:Ye,topRightCornerRadius:dt,bottomRightCornerRadius:ct,bottomLeftCornerRadius:bt,fill:de,horizontalInset:z,verticalInset:V})}}h.enabled&&T.push(this.labelDatum(h,n));const te=i?qye:Qye;for(let se=0;se<A.length;se+=1){const ie=A[se],{value:le,text:ye,shape:Me,size:De,fill:fe,fillOpacity:Ge,stroke:ce,strokeWidth:be,strokeOpacity:oe,lineDash:pe,lineDashOffset:we}=ie,ze=this.getTargetPoint(ie),Ye=eH(ie.rotation+te[ie.placement]);M.push({series:this,itemId:`target-${se}`,midPoint:ze,datum:{value:le},datumIndex:{type:1,index:se},type:1,value:le,text:ye,x:ze.x,y:ze.y,shape:Me,size:De,rotation:Ye,fill:fe,fillOpacity:Ge,stroke:ce,strokeOpacity:oe,strokeWidth:be,lineDash:pe,lineDashOffset:we,label:this.getTargetLabel(ie)})}return{itemId:e,nodeData:w,tickData:k,targetData:M,labelData:T,scaleData:L}}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}){const{datumSelection:t,labelSelection:i,targetSelection:o,targetLabelSelection:s,scaleSelection:n,highlightTargetSelection:r,tickSelection:a}=this;this.seriesRect=e??cu.NaN;const l=this.checkResize(e);this.updateSelections(l),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();const c=this.contextNodeData?.nodeData??[],d=this.contextNodeData?.labelData??[],u=this.contextNodeData?.targetData??[],h=this.contextNodeData?.scaleData??[],p=this.contextNodeData?.tickData??[],g=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:h,scaleSelection:n}),this.updateScaleNodes({scaleSelection:n}),this.targetSelection=this.updateTargetSelection({targetData:u,targetSelection:o}),this.updateTargetNodes({targetSelection:o,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:u,targetLabelSelection:s}),this.updateTargetLabelNodes({targetLabelSelection:s}),this.datumSelection=this.updateDatumSelection({nodeData:c,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:d,labelSelection:i}),this.updateLabelNodes({labelSelection:i}),this.highlightTargetSelection=this.updateTargetSelection({targetData:g!=null?[g]:[],targetSelection:r}),this.updateTargetNodes({targetSelection:r,isHighlight:!0}),this.tickSelection=this.updateTickSelection({tickData:p,tickSelection:a}),this.updateTickNodes({tickSelection:a}),l&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>J8(e.nodeData.length,t.itemId))}updateDatumNodes(e){const{datumSelection:t}=e,{ctx:i,properties:o}=this,{bar:s}=o,{fillOpacity:n,stroke:r,strokeOpacity:a,lineDash:l,lineDashOffset:c}=s,d=s.strokeWidth,u=i.animationManager.isSkipped(),h=this.getShapeFillBBox();t.each((p,g)=>{const{topLeftCornerRadius:f,topRightCornerRadius:y,bottomRightCornerRadius:v,bottomLeftCornerRadius:b,fill:C}=g;p.fill=C,p.fillBBox=h,p.fillOpacity=n,p.stroke=r,p.strokeOpacity=a,p.strokeWidth=d,p.lineDash=l,p.lineDashOffset=c,p.topLeftCornerRadius=f,p.topRightCornerRadius=y,p.bottomRightCornerRadius=v,p.bottomLeftCornerRadius=b,p.pointerEvents=this.properties.bar.enabled?R.PointerEvents.All:R.PointerEvents.None,(u||p.previousDatum==null)&&p.setProperties(Sw(p,g))}),this.datumUnion.update(t,this.itemGroup,R.Rect,(p,g,f)=>{p.pointerEvents=R.PointerEvents.None,p.clipBBox??(p.clipBBox=new cu(NaN,NaN,NaN,NaN)),p.x=g.x,p.y=g.y,p.clipBBox.x=g.clipBBox?.x??g.x,p.clipBBox.y=g.clipBBox?.y??g.y,this.horizontal?(p.height=p.clipBBox.height=f.height,p.width=f===g?f.width:f.x+f.width,p.clipBBox.width=p.width-(f.width-(f.clipBBox?.width??f.width)),p.topLeftCornerRadius=g.topLeftCornerRadius,p.bottomLeftCornerRadius=g.bottomLeftCornerRadius,p.topRightCornerRadius=f.topRightCornerRadius,p.bottomRightCornerRadius=f.bottomRightCornerRadius):(p.width=p.clipBBox.width=f.width,p.height=f===g?f.height:f.x+f.height,p.clipBBox.height=p.height-(f.height-(f.clipBBox?.height??f.height)),p.topLeftCornerRadius=g.topLeftCornerRadius,p.topRightCornerRadius=g.topRightCornerRadius,p.bottomLeftCornerRadius=f.bottomLeftCornerRadius,p.bottomRightCornerRadius=f.bottomRightCornerRadius)})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>J8(e.scaleData.length,t.itemId))}updateScaleNodes(e){const{scaleSelection:t}=e,{scale:i}=this.properties,{fillOpacity:o,stroke:s,strokeOpacity:n,strokeWidth:r,lineDash:a,lineDashOffset:l}=i,c=this.getShapeFillBBox();t.each((d,u)=>{const{topLeftCornerRadius:h,topRightCornerRadius:p,bottomRightCornerRadius:g,bottomLeftCornerRadius:f,fill:y}=u;d.fill=y,d.fillBBox=c,d.fillOpacity=o,d.stroke=s,d.strokeOpacity=n,d.strokeWidth=r,d.lineDash=a,d.lineDashOffset=l,d.topLeftCornerRadius=h,d.topRightCornerRadius=p,d.bottomRightCornerRadius=g,d.bottomLeftCornerRadius=f,d.setProperties(Sw(d,u))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){const{targetSelection:t,isHighlight:i}=e;t.each((o,s)=>{const{x:n,y:r,shape:a,size:l,rotation:c,fill:d,fillOpacity:u,stroke:h,strokeOpacity:p,strokeWidth:g,lineDash:f,lineDashOffset:y}=s,v=this.getHighlightStyle(i,s.datumIndex),b=Xye(v,{fill:d,fillOpacity:u,stroke:h,strokeOpacity:p,strokeWidth:g,lineDash:f,lineDashOffset:y,opacity:1});Zye(o,b),o.size=l,o.shape=a==="line"?j8:a,o.translationX=n,o.translationY=r,o.rotation=c})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData)}updateTargetLabelNodes(e){const{targetLabelSelection:t}=e;t.each((i,o)=>{const{x:s,y:n,text:r}=o,{offsetX:a,offsetY:l,fill:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p,textAlign:g,textBaseline:f}=o.label;i.visible=!0,i.x=s+a,i.y=n+l,i.text=r,i.fill=c,i.fontStyle=d,i.fontWeight=u,i.fontSize=h,i.fontFamily=p,i.textAlign=g,i.textBaseline=f})}updateTickSelection(e){return e.tickSelection.update(e.tickData,void 0,t=>t.tickId)}updateTickNodes(e){const{gaugeRect:t,properties:i}=this,o=i.defaultScale,{enabled:s,color:n,fontFamily:r=o.label.fontFamily,fontSize:a=o.label.fontSize,fontStyle:l,fontWeight:c=o.label.fontWeight,spacing:d}=i.scale.label;let{placement:u}=i.scale.label;const h=eH(i.scale.label.rotation??0);let p,g,f,y;this.horizontal?(u??(u="after"),p="center",g=u==="before"?"bottom":"top",y=this.originY+t.y+(u==="before"?-d:t.height+d)):(u??(u="before"),p=u==="before"?"end":"start",g="middle",f=this.originX+t.x+(u==="before"?-d:t.width+d)),e.tickSelection.each((v,b)=>{if(!s){v.visible=!1;return}const C=f??b.translation,x=y??b.translation;v.visible=!0,v.text=b.tickLabel,v.fill=n,v.fontFamily=r,v.fontSize=a,v.fontStyle=l,v.fontWeight=c,v.textBaseline=g,v.textAlign=p,v.x=C,v.y=x,v.rotationCenterX=C,v.rotationCenterY=x,v.rotation=h})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>"primary")}updateLabelNodes(e){const{labelSelection:t}=e,i=this.ctx.animationManager.isSkipped();t.each((o,s)=>{o.fill=s.fill,o.fontStyle=s.fontStyle,o.fontWeight=s.fontWeight,o.fontFamily=s.fontFamily}),(i||this.labelsHaveExplicitText())&&this.formatLabelText()}labelsHaveExplicitText(){for(const{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){const{labelSelection:t,horizontal:i,scale:o,seriesRect:s,gaugeRect:n}=this,{x:r,y:a,width:l,height:c}=n,d=e?.label??this.properties.value;let u;if(i){const g=o.convert(d);u=new cu(r,a,g-r,c)}else{const g=o.convert(d);u=new cu(r,g,l,c-g)}const h={seriesRect:s,gaugeRect:n,barRect:u},{margin:p}=this.properties;Nye(this,this.ctx,t,{padding:p,horizontal:i},h,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),Oye([this.datumSelection],Sw),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){const{animationManager:t}=this.ctx;let i=0,o=0;if(this.labelSelection.each((s,n)=>{s.opacity=1,i=s.previousDatum?.value??e.from??n.value,o=n.value}),!this.labelsHaveExplicitText())if(i===o)this.formatLabelText({label:o});else{const s=`${this.id}_labels`;t.animate({id:s,groupId:"label",from:{label:i},to:{label:o},phase:e.phase??"update",ease:jye.easeOut,onUpdate:n=>this.formatLabelText(n),onStop:()=>this.formatLabelText({label:o})})}}animateEmptyUpdateReady(){const{animationManager:e}=this.ctx,{node:t}=q8(!0,this.horizontal);qR(this.id,"node",e,[this.datumSelection],t,(i,o)=>o.itemId),qR(this.id,"label",e,[this.labelSelection],$8,()=>"primary"),this.animateLabelText({from:0,phase:"initial"})}animateWaitingUpdateReady(){const{animationManager:e}=this.ctx,{node:t}=q8(!1,this.horizontal);qR(this.id,"node",e,[this.datumSelection],t,(i,o)=>o.itemId),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}getSeriesDomain(){return[0,1]}dataCount(){return NaN}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}getTooltipContent(e){const{id:t,properties:i}=this,{tooltip:o}=i;let s,n;if(e.type===0?(s=i.value,n=i.label.text):{value:s,text:n}=i.targets[e.index],s!=null)return this.formatTooltipWithContext(o,{data:[{label:n,fallbackLabel:"Value",value:this.formatLabel(s)}]},{seriesId:t,title:void 0,datum:void 0,value:s})}pickNodeClosestDatum(e){return U8(this,e)}pickFocus(e){return K8(this,e)}getCaptionText(){return this.formatLabel(this.properties.value)}getCategoryValue(e){}datumIndexForCategoryValue(e){}hasItemStylers(){return!1}};xw.className="LinearGaugeSeries",xw.type="linear-gauge";var eve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"linear-gauge",moduleFactory:e=>new xw(e),themeTemplate:{minWidth:200,minHeight:200,tooltip:{enabled:!1},series:{thickness:50,defaultColorRange:{$if:[{$eq:[{$palette:"type"},"inbuilt"]},{$interpolate:[{$palette:"secondDivergingColors"},5]},R.SAFE_RANGE2_OPERATION]},scale:{defaultFill:{$path:["/1",{$palette:"fill"},{$palette:"hierarchyColors"}]},stroke:{$path:["/2",R.SAFE_STROKE_FILL_OPERATION,{$palette:"hierarchyColors"}]},strokeWidth:{$isUserOption:["./stroke",2,0]},label:{spacing:11}},bar:{strokeWidth:{$isUserOption:["./stroke",2,0]}},segmentation:{enabled:!1,interval:{},spacing:1},defaultTarget:{fill:{$ref:"foregroundColor"},stroke:{$ref:"foregroundColor"},size:10,shape:"triangle",placement:"after",spacing:5,label:{enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},spacing:5}},defaultScale:{label:{fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"}}},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,placement:"inside-start",fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},fontSize:{$rem:2},minimumFontSize:R.FONT_SIZE.SMALL,spacing:18,color:{$ref:"chartBackgroundColor"}},margin:4,tooltip:{range:{$path:["/tooltip/range",10]}}}}},tve={type:"series",name:"linear-gauge",chartType:"standalone",enterprise:!0,options:R.linearGaugeSeriesOptionsDef,create:e=>new xw(e)},$v={zoom:{axes:"xy",anchorPointX:"pointer",anchorPointY:"pointer",buttons:{anchorPointX:"middle",anchorPointY:"middle"}},legend:{enabled:!1},gradientLegend:{enabled:!1,...R.LEGEND_CONTAINER_THEME}};function Bs(e){const t=R.deepClone(e);return R.jsonWalk(t,i=>{typeof i=="object"&&"$palette"in i&&(i.$mapPalette=i.$palette,delete i.$palette)}),t}var ive=1e-9;function oH(e,t,i,o){const[s,n]=e,[r,a]=t,l=r-s,c=a-n,d=l*l+c*c;let u,h;if(Math.abs(d)<ive)u=s,h=n;else{let f=((i-s)*l+(o-n)*c)/d;f=Math.max(0,Math.min(1,f)),u=s+f*(r-s),h=n+f*(a-n)}const p=i-u,g=o-h;return p*p+g*g}function sH(e,t,i){let o=1/0,s=e[e.length-1];for(const n of e)o=Math.min(o,oH(s,n,t,i)),s=n;return Math.sqrt(o)}function QR(e){let[t,i]=e[0],o=0;for(let s=1;s<e.length;s+=1){const[n,r]=e[s],a=Math.hypot(n-t,r-i);o+=a,t=n,i=r}return o}function ww(e){if(e.length===0)return;const t=QR(e)/2;let[i,o]=e[0],s=0;for(let n=1;n<e.length;n+=1){const[r,a]=e[n],l=Math.hypot(r-i,a-o),c=s+l;if(c>t){const d=(t-s)/l,u=[i+(r-i)*d,o+(a-o)*d],h=Math.atan2(a-o,r-i);return{point:u,angle:h}}s=c,i=r,o=a}}var{LonLatBBox:ove}=R;function np(e,t){return e.forEach(i=>{const[o,s]=i;t=ove.extend(t,o,s,o,s)}),t}function sve(e){if(e.length===0)return;let t=0,i=0,o=0,[s,n]=e[e.length-1];for(const[r,a]of e){const l=s*a-r*n;o+=l,t+=(s+r)*l,i+=(n+a)*l,s=r,n=a}return o*=3,[t/o,i/o]}function Dw(e,t,i){let o=!1,s=1/0;for(const n of e){let r=n[n.length-1],[a,l]=r;for(const c of n){const[d,u]=c;u>i!=l>i&&t<(a-d)*(i-u)/(l-u)+d&&(o=!o),s=Math.min(s,oH(r,c,t,i)),r=c,a=d,l=u}}return(o?-1:1)*Math.sqrt(s)}var{Path:nve,ExtendedPath2D:rve,BBox:ave,SceneChangeDetection:lve,SceneObjectChangeDetection:cve,objectsEqual:dve}=R,Rf=class extends nve{constructor(){super(...arguments),this.projectedGeometry=void 0,this.renderMode=3,this.strokePath=new rve}computeBBox(){return(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1),this.bbox?.clone()}updatePath(){const{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){const{projectedGeometry:i}=this;return i==null||!this.getBBox().containsPoint(e,t)?!1:this.geometryDistance(i,e,t)<=0}distanceSquared(e,t){const{projectedGeometry:i}=this;if(i==null)return 1/0;const o=this.geometryDistance(i,e,t);return o>0?o*o:0}geometryDistance(e,t,i){const{renderMode:o,strokeWidth:s}=this,n=(o&1)!==0,r=(o&2)!==0,a=Math.max(s/2,1)+1;switch(e.type){case"GeometryCollection":return e.geometries.reduce((l,c)=>Math.min(l,this.geometryDistance(c,t,i)),1/0);case"MultiPolygon":return n?e.coordinates.reduce((l,c)=>Math.min(l,Math.max(Dw(c,t,i),0)),1/0):1/0;case"Polygon":return n?Math.max(Dw(e.coordinates,t,i),0):1/0;case"MultiLineString":return r?e.coordinates.reduce((l,c)=>Math.min(l,Math.max(sH(c,t,i)-a,0)),1/0):1/0;case"LineString":return r?Math.max(sH(e.coordinates,t,i)-a,0):1/0;case"MultiPoint":case"Point":default:return 1/0}}drawGeometry(e,t){const{renderMode:i,path:o,strokePath:s}=this,n=(i&1)!==0,r=(i&2)!==0;switch(e.type){case"GeometryCollection":e.geometries.forEach(a=>{t=this.drawGeometry(a,t)});break;case"MultiPolygon":n&&e.coordinates.forEach(a=>{t=this.drawPolygon(o,a,t)});break;case"Polygon":n&&(t=this.drawPolygon(o,e.coordinates,t));break;case"LineString":r&&(t=this.drawLineString(s,e.coordinates,t,!1));break;case"MultiLineString":r&&e.coordinates.forEach(a=>{t=this.drawLineString(s,a,t,!1)});break}return t}drawPolygon(e,t,i){if(t.length<1)return i;i=this.drawLineString(e,t[0],i,!0);for(let o=1;o<t.length;o+=1){const s=t[o];this.drawLineString(e,s,void 0,!0)}return i}drawLineString(e,t,i,o){if(t.length<2)return i;const s=o?t.length-1:t.length;for(let n=0;n<s;n+=1){const[r,a]=t[n];if(n===0?e.moveTo(r,a):e.lineTo(r,a),i==null)i=new ave(r,a,0,0);else{const{x:l,y:c}=i,d=l+i.width,u=c+i.height;i.x=Math.min(l,r),i.y=Math.min(c,a),i.width=Math.max(d,r)-i.x,i.height=Math.max(u,a)-i.y}}return o&&e.closePath(),i}};S([cve({equals:dve})],Rf.prototype,"projectedGeometry"),S([lve()],Rf.prototype,"renderMode");var{LonLatBBox:JR}=R;function Lf(e,t){if(e.bbox!=null){const[i,o,s,n]=e.bbox;return t=JR.extend(t,i,o,s,n),t}switch(e.type){case"GeometryCollection":e.geometries.forEach(i=>{t=Lf(i,t)});break;case"MultiPolygon":e.coordinates.forEach(i=>{i.length>0&&(t=np(i[0],t))});break;case"Polygon":e.coordinates.length>0&&(t=np(e.coordinates[0],t));break;case"MultiLineString":e.coordinates.forEach(i=>{t=np(i,t)});break;case"LineString":t=np(e.coordinates,t);break;case"MultiPoint":e.coordinates.forEach(i=>{const[o,s]=i;t=JR.extend(t,o,s,o,s)});break;case"Point":{const[i,o]=e.coordinates;t=JR.extend(t,i,o,i,o);break}}return t}function Mw(e){switch(e.type){case"GeometryCollection":{let t,i;return e.geometries.forEach(o=>{const s=Mw(o);if(s==null)return;const n=np(s[0],void 0);if(n==null)return;const r=Math.abs(n.lat1-n.lat0)*Math.abs(n.lon1-n.lon0);(t==null||r>t)&&(t=r,i=s)}),i}case"MultiPolygon":{let t,i;return e.coordinates.forEach(o=>{const s=np(o[0],void 0);if(s==null)return;const n=Math.abs(s.lat1-s.lat0)*Math.abs(s.lon1-s.lon0);(t==null||n>t)&&(t=n,i=o)}),i}case"Polygon":return e.coordinates;case"MultiLineString":case"LineString":case"MultiPoint":case"Point":return}}function kw(e){switch(e.type){case"GeometryCollection":{let t,i;return e.geometries.forEach(o=>{const s=kw(o);if(s==null)return;const n=QR(s);n!=null&&(t==null||n>t)&&(t=n,i=s)}),i}case"MultiLineString":{let t=0,i;return e.coordinates.forEach(o=>{const s=QR(o);s>t&&(t=s,i=o)}),i}case"LineString":return e.coordinates;case"MultiPolygon":case"Polygon":case"MultiPoint":case"Point":return}}function eL(e,t){if(e==null)return!1;switch(e.type){case"GeometryCollection":return e.geometries.some(i=>eL(i,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 du(e,t){switch(e.type){case"GeometryCollection":return{type:"GeometryCollection",geometries:e.geometries.map(i=>du(i,t))};case"Polygon":return{type:"Polygon",coordinates:tL(e.coordinates,t)};case"MultiPolygon":return{type:"MultiPolygon",coordinates:uve(e.coordinates,t)};case"MultiLineString":return{type:"MultiLineString",coordinates:tL(e.coordinates,t)};case"LineString":return{type:"LineString",coordinates:iL(e.coordinates,t)};case"MultiPoint":return{type:"MultiPoint",coordinates:iL(e.coordinates,t)};case"Point":return{type:"Point",coordinates:t.convert(e.coordinates)}}}function uve(e,t){return e.map(i=>tL(i,t))}function tL(e,t){return e.map(i=>iL(i,t))}function iL(e,t){return e.map(i=>t.convert(i))}function hve(){return{fromFn:(i,o,s)=>s==="removed"?{scalingX:1,scalingY:1}:i.previousDatum==null?{scalingX:0,scalingY:0}:{scalingX:i.scalingX,scalingY:i.scalingY},toFn:(i,o,s)=>s==="removed"?{scalingX:0,scalingY:0}:{scalingX:1,scalingY:1}}}function nH(e,t){const i=e.contextNodeData?.nodeData[t.datumIndex];if(i!==void 0){for(const o of e.datumSelection.nodes())if(o.datum===i)return o}}(class extends R.SeriesProperties{});var Wv=class extends R.DataModelSeries{addChartEventListeners(){this.cleanup.register(this.ctx.eventsHub.on("legend:item-click",e=>{this.onLegendItemClick(e)}),this.ctx.eventsHub.on("legend:item-double-click",e=>{this.onLegendItemDoubleClick(e)}))}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}},{Property:Fi,SeriesProperties:pve,makeSeriesTooltip:gve,Label:fve}=R,vi=class extends pve{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 fve,this.tooltip=gve()}};S([Fi],vi.prototype,"topology"),S([Fi],vi.prototype,"title"),S([Fi],vi.prototype,"legendItemName"),S([Fi],vi.prototype,"idKey"),S([Fi],vi.prototype,"topologyIdKey"),S([Fi],vi.prototype,"idName"),S([Fi],vi.prototype,"labelKey"),S([Fi],vi.prototype,"labelName"),S([Fi],vi.prototype,"sizeKey"),S([Fi],vi.prototype,"sizeName"),S([Fi],vi.prototype,"colorKey"),S([Fi],vi.prototype,"colorName"),S([Fi],vi.prototype,"sizeDomain"),S([Fi],vi.prototype,"colorRange"),S([Fi],vi.prototype,"maxStrokeWidth"),S([Fi],vi.prototype,"stroke"),S([Fi],vi.prototype,"strokeOpacity"),S([Fi],vi.prototype,"strokeWidth"),S([Fi],vi.prototype,"lineDash"),S([Fi],vi.prototype,"lineDashOffset"),S([Fi],vi.prototype,"itemStyler"),S([Fi],vi.prototype,"label"),S([Fi],vi.prototype,"tooltip");var{getMissCount:mve,getLabelStyles:yve,createDatumId:rH,SeriesNodePickMode:aH,valueProperty:jv,CachedTextMeasurerPool:vve,ColorScale:bve,LinearScale:Cve,Selection:oL,Text:Sve,Transformable:xve}=R,Aw=class extends Wv{constructor(e){super({moduleCtx:e,categoryKey:void 0,propertyKeys:{size:["colorKey"],color:["colorKey"],label:["labelKey"]},propertyNames:{size:["sizeName"],color:["colorName"],label:["labelName"]},pickModes:[aH.EXACT_SHAPE_MATCH,aH.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new vi,this._chartTopology=void 0,this.colorScale=new bve,this.sizeScale=new Cve,this.datumSelection=oL.select(this.contentGroup,()=>this.nodeFactory()),this.labelSelection=oL.select(this.labelGroup,Sve),this.highlightDatumSelection=oL.select(this.highlightGroup,()=>this.nodeFactory()),this._previousDatumMidPoint=void 0}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){const e=new Rf;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e}async processData(e){if(this.data==null)return;const{data:t,topology:i,sizeScale:o,colorScale:s}=this,{topologyIdKey:n,idKey:r,sizeKey:a,colorKey:l,labelKey:c,sizeDomain:d,colorRange:u}=this.properties,h=new Map;i?.features.forEach(C=>{const x=C.properties?.[n];x==null||!eL(C.geometry,2)||h.set(x,C)});const p=this.sizeScale.type,g=this.colorScale.type,f=this.scale?.type,{dataModel:y,processedData:v}=await this.requestDataModel(e,t,{props:[jv(r,f,{id:"idValue",includeProperty:!1}),jv(r,f,{id:"featureValue",includeProperty:!1,processor:()=>C=>h.get(C)}),...c!=null?[jv(c,"category",{id:"labelValue"})]:[],...a!=null?[jv(a,p,{id:"sizeValue"})]:[],...l!=null?[jv(l,g,{id:"colorValue"})]:[]]}),b=y.resolveColumnById(this,"featureValue",v);if(this.topologyBounds=b.reduce((C,x)=>{const D=x?.geometry;return D==null?C:Lf(D,C)},void 0),a!=null){const C=y.resolveProcessedDataIndexById(this,"sizeValue"),x=v.domain.values[C]??[];o.domain=d??x}if(u!=null&&this.isColorScaleValid()){const C=y.resolveProcessedDataIndexById(this,"colorValue");s.domain=v.domain.values[C],s.range=u,s.update()}i==null&&he.warnOnce("no topology was provided for [MapLineSeries]; nothing will be rendered.")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=mve(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelDatum(e,t,i,o){if(t==null||i==null)return;const s=kw(i);if(s==null)return;const{idKey:n,idName:r,sizeKey:a,sizeName:l,colorKey:c,colorName:d,labelKey:u,labelName:h,label:p}=this.properties;if(u==null||!p.enabled)return;const g=this.getLabelText(t,e,u,"label",[],p,{value:t,datum:e,idKey:n,idName:r,sizeKey:a,sizeName:l,colorKey:c,colorName:d,labelKey:u,labelName:h});if(g==null)return;const f=o.measureText(String(g)),y=ww(s);if(y==null)return;const[v,b]=y.point,{width:C,height:x}=f;return{point:{x:v,y:b,size:0},label:{width:C,height:x,text:g},anchor:void 0,placement:void 0}}createNodeData(){const{id:e,dataModel:t,processedData:i,sizeScale:o,properties:s,scale:n}=this,{idKey:r,sizeKey:a,colorKey:l,labelKey:c,label:d,legendItemName:u}=s;if(t==null||i==null)return;const h=t.resolveColumnById(this,"idValue",i),p=t.resolveColumnById(this,"featureValue",i),g=c!=null?t.resolveColumnById(this,"labelValue",i):void 0,f=a!=null?t.resolveColumnById(this,"sizeValue",i):void 0,y=l!=null?t.resolveColumnById(this,"colorValue",i):void 0,v=s.maxStrokeWidth??s.strokeWidth;o.range=[Math.min(s.strokeWidth,v),v];const b=vve.getMeasurer({font:d}),C=new Map;i.dataSources.get(this.id)?.forEach((M,T)=>{const L=h[T],N=p[T]?.geometry??void 0,O=N!=null&&n!=null?du(N,n):void 0;L!=null&&O!=null&&C.set(L,O)});const x=[],D=[],k=[];(i.dataSources.get(this.id)??[]).forEach((M,T)=>{const L=h[T],N=y?.[T],O=f?.[T],F=g?.[T],E=C.get(L);E==null&&k.push(L);const G=this.getLabelDatum(M,F,E,b);G!=null&&D.push(G),x.push({series:this,itemId:r,datum:M,datumIndex:T,idValue:L,labelValue:F,colorValue:N,sizeValue:O,projectedGeometry:E,legendItemName:u})});const w=10;if(k.length>w){const M=k.length-w;k.length=w,k.push(`(+${M} more)`)}return k.length>0&&he.warnOnce("some data items do not have matches in the provided topology",k),{itemId:e,nodeData:x,labelData:D}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e,highlightDatumSelection:t}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;let i=this.ctx.highlightManager?.getActiveHighlight();const{legendItemName:o}=this.properties,s=o!=null&&i?.datum==null&&o===i?.legendItemName;i!=null&&(i.series!==this&&!s||i.datum==null)&&(i=void 0);const n=this.contextNodeData?.nodeData??[];this.datumSelection=this.updateDatumSelection({nodeData:n,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:i!=null?[i]:[],datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>rH(t.idValue))}getItemBaseStyle(e,t){const{properties:i}=this,o=this.getHighlightStyle(e,t?.datumIndex);return{stroke:o?.stroke??i.stroke,strokeWidth:o?.strokeWidth??i.strokeWidth,strokeOpacity:o?.strokeOpacity??i.strokeOpacity,lineDash:o?.lineDash??i.lineDash,lineDashOffset:o?.lineDashOffset??i.lineDashOffset,opacity:o?.opacity??1}}getItemStyleOverrides(e,t,i,o,s,n,r){const{id:a,properties:l,colorScale:c,sizeScale:d}=this,{colorRange:u,itemStyler:h}=l;let p;if(!n&&i!=null&&(p??(p={}),p.stroke=this.isColorScaleValid()?c.convert(i):u?.[0]??l.stroke),o!=null&&(p??(p={}),p.strokeWidth=d.convert(o,{clamp:!0})),h!=null){const g=this.cachedDatumCallback(rH(e,n?"highlight":"node"),()=>{const f=this.ctx.highlightManager?.getActiveHighlight(),y=this.getHighlightStateString(f,n,r);return this.callWithContext(h,{seriesId:a,datum:t,highlighted:n,highlightState:y,...s,...p})});p??(p={}),Object.assign(p,g)}return p}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e;t.each((o,s)=>{const{datum:n,datumIndex:r,colorValue:a,sizeValue:l,projectedGeometry:c}=s;if(c==null){o.visible=!1,o.projectedGeometry=void 0;return}const d=this.getItemBaseStyle(i,s),u=this.getItemStyleOverrides(String(r),n,a,l,d,i,r);o.visible=!0,o.projectedGeometry=c,o.stroke=u?.stroke??d.stroke,o.strokeWidth=u?.strokeWidth??d.strokeWidth,o.strokeOpacity=u?.strokeOpacity??d.strokeOpacity,o.lineDash=u?.lineDash??d.lineDash,o.lineDashOffset=u?.lineDashOffset??d.lineDashOffset})}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=R.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){e.labelSelection.each((t,{x:i,y:o,width:s,height:n,text:r},a)=>{const l=yve(this,void 0,this.properties,this.properties.label),{color:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p}=l;t.visible=!0,t.x=i+s/2,t.y=o+n/2,t.text=r,t.fill=c,t.fontStyle=d,t.fontWeight=u,t.fontSize=h,t.fontFamily=p,t.textAlign="center",t.textBaseline="middle",t.fillOpacity=this.getHighlightStyle(!1,a).opacity??1,t.setBoxing(l)})}resetAnimation(){}getLabelData(){return this.isLabelEnabled()?this.contextNodeData?.labelData??[]:[]}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}datumMidPoint(e){const{_previousDatumMidPoint:t}=this;if(t?.datum===e)return t.point;const i=e.projectedGeometry,o=i!=null?kw(i):void 0,s=o!=null?ww(o)?.point:void 0,n=s!=null?{x:s[0],y:s[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:n},n}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{strokeWidth:s,strokeOpacity:n,lineDash:r}=o;let{stroke:a}=o;if(e!=null&&this.isColorScaleValid()){const c=t.resolveColumnById(this,"colorValue",i)[e];a=this.colorScale.convert(c)}return{marker:{fill:void 0,fillOpacity:0,stroke:void 0,strokeWidth:0,strokeOpacity:0,lineDash:[0],lineDashOffset:0,enabled:!1},line:{stroke:a,strokeWidth:s,strokeOpacity:n,lineDash:r}}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idKey:a,idName:l,colorKey:c,colorRange:d,showInLegend:u}=this.properties;if(e==="gradient"&&c!=null&&d!=null){const h=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,series:this.getFormatterContext("color"),colorRange:d,colorDomain:h}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??l??a},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!u}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s,ctx:{formatManager:n}}=this,{idKey:r,idName:a,colorKey:l,colorName:c,sizeKey:d,sizeName:u,labelKey:h,labelName:p,title:g,legendItemName:f,tooltip:y}=s;if(!i||!o)return;const v=o.dataSources.get(this.id)?.[e],b=i.resolveColumnById(this,"idValue",o),C=d!=null?i.resolveColumnById(this,"sizeValue",o)[e]:void 0,x=l!=null?i.resolveColumnById(this,"colorValue",o)[e]:void 0,D=[];if(this.isLabelEnabled()&&h!=null&&h!==r){const A=i.resolveColumnById(this,"labelValue",o)[e],w=n.format(this.callWithContext.bind(this),{type:"category",value:A,datum:v,seriesId:t,legendItemName:f,key:h,source:"tooltip",property:"label",domain:[],boundSeries:this.getFormatterContext("label")});D.push({label:p,fallbackLabel:h,value:w??A})}if(C!=null&&d!=null){const A=i.getDomain(this,"sizeValue","value",o),w=n.format(this.callWithContext.bind(this),{type:"number",value:C,datum:v,seriesId:t,legendItemName:f,key:d,source:"tooltip",property:"size",domain:A,boundSeries:this.getFormatterContext("size"),fractionDigits:void 0});D.push({label:u,fallbackLabel:d,value:w??String(C)})}if(x!=null&&l!=null){const A=i.getDomain(this,"colorValue","value",o),w=n.format(this.callWithContext.bind(this),{type:"number",value:x,datum:v,seriesId:t,legendItemName:f,key:l,source:"tooltip",property:"color",domain:A,boundSeries:this.getFormatterContext("color"),fractionDigits:void 0});D.push({label:c,fallbackLabel:l,value:w??String(x)})}const k=this.getItemBaseStyle(!1);return Object.assign(k,this.getItemStyleOverrides(String(e),e,x,C,k,!1,e)),this.formatTooltipWithContext(y,{heading:b[e],title:g??f,symbol:this.legendItemSymbol(e),data:D},{seriesId:t,datum:v,title:g,idKey:r,idName:a,colorKey:l,colorName:c,sizeKey:d,sizeName:u,labelKey:h,labelName:p,...k})}computeFocusBounds(e){const t=nH(this,e);return t?xve.toCanvas(this.contentGroup,t.getBBox()):void 0}hasItemStylers(){return this.properties.itemStyler!=null}};Aw.className="MapLineSeries",Aw.type="map-line";var{commonSeriesOptionsDefs:wve,mapLineSeriesThemeableOptionsDef:Dve,without:Mve}=R,lH={...Mve(wve,["highlightStyle","highlight"]),...Dve,type:ee(je("map-line")),idKey:ee(H),sizeKey:H,colorKey:H,labelKey:H,idName:H,sizeName:H,colorName:H,labelName:H,topology:Hp,topologyIdKey:H,legendItemName:H,title:H};lH.colorRange=Oe(zt(_e(ke),rd(1)));var kve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line",moduleFactory:e=>new Aw(e),themeTemplate:{...$v,series:{stroke:Bs(R.SAFE_STROKE_FILL_OPERATION),colorRange:{$if:[{$eq:[{$mapPalette:"type"},"inbuilt"]},{$mapPalette:"divergingColors"},Bs(R.SAFE_RANGE2_OPERATION)]},strokeWidth:1,maxStrokeWidth:3,lineDash:[0],lineDashOffset:0,label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},highlight:Bs(R.multiSeriesHighlightStyle(!1))},tooltip:{range:"exact"}}},Ave={type:"series",name:"map-line",chartType:"topology",enterprise:!0,options:lH,create:e=>new Aw(e)},{Property:rp,SeriesProperties:Ive,makeSeriesTooltip:Tve}=R,uu=class extends Ive{constructor(){super(...arguments),this.topology=void 0,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=Tve()}};S([rp],uu.prototype,"topology"),S([rp],uu.prototype,"stroke"),S([rp],uu.prototype,"strokeOpacity"),S([rp],uu.prototype,"strokeWidth"),S([rp],uu.prototype,"lineDash"),S([rp],uu.prototype,"lineDashOffset"),S([rp],uu.prototype,"tooltip");var{createDatumId:Rve,Group:Lve,Selection:Pve,PointerEvents:cH}=R,Iw=class extends Wv{constructor(e){super({moduleCtx:e,categoryKey:void 0,pickModes:[]}),this.properties=new uu,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new Lve({name:"itemGroup"})),this.datumSelection=Pve.select(this.itemGroup,()=>this.nodeFactory()),this.itemGroup.pointerEvents=cH.None}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get focusable(){return!1}setOptionsData(){}setChartData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0}nodeFactory(){const e=new Rf;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e.pointerEvents=cH.None,e}processData(){const{topology:e}=this;this.topologyBounds=e?.features.reduce((t,i)=>{const o=i.geometry;return o==null?t:Lf(o,t)},void 0),e==null&&he.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){const{id:e,topology:t,scale:i}=this;if(t==null)return;const o=[],s=[];return t.features.forEach((n,r)=>{const{geometry:a}=n,l=a!=null&&i!=null?du(a,i):void 0;l!=null&&o.push({series:this,itemId:r,datum:n,datumIndex:0,index:r,projectedGeometry:l})}),{itemId:e,nodeData:o,labelData:s}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;const{nodeData:t=[]}=this.contextNodeData??{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Rve(t.index))}updateDatumNodes(e){const{properties:t}=this,{datumSelection:i}=e,{stroke:o,strokeOpacity:s,lineDash:n,lineDashOffset:r}=t,a=t.strokeWidth;i.each((l,c)=>{const{projectedGeometry:d}=c;if(d==null){l.visible=!1,l.projectedGeometry=void 0;return}l.visible=!0,l.projectedGeometry=d,l.stroke=o,l.strokeWidth=a,l.strokeOpacity=s,l.lineDash=n,l.lineDashOffset=r})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}computeFocusBounds(e){}hasItemStylers(){return!1}};Iw.className="MapLineBackgroundSeries",Iw.type="map-line-background";var{mapLineBackgroundSeriesThemeableOptionsDef:Eve}=R,Fve={...Eve,type:ee(je("map-line-background")),topology:Hp},Nve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line-background",moduleFactory:e=>new Iw(e),themeTemplate:{...$v,series:{stroke:{$path:["/1",{$mapPalette:"stroke"},{$mapPalette:"secondHierarchyColors"}]},strokeWidth:1,lineDash:[0],lineDashOffset:0}}},Ove={type:"series",name:"map-line-background",chartType:"topology",enterprise:!0,options:Fve,create:e=>new Iw(e)};function dH(e,t,i){const o=np(e[0],void 0);if(o==null)return;const s=(o.lon0+o.lon1)/2,n=(o.lat0+o.lat1)/2,r=Math.abs(o.lon1-o.lon0),a=Math.abs(o.lat1-o.lat0),l=sve(e[0]),[c,d]=l,u=-Dw(e,c,d);let h;const p=(D,k)=>{const w=Math.max(k-u,0);return D-.5*w},g=(D,k,A)=>{const{distance:w,maxDistance:M}=i(e,D,k,A),T=Math.hypot(c-D,d-k),L=Math.min(Math.max(c,D-A/2),D+A/2),N=Math.min(Math.max(d,k-A/2),k+A/2),O=Math.hypot(c-L,d-N),F=p(w,T),E=p(M,O);return{distance:w,maxDistance:M,value:F,maxValue:E,x:D,y:k,stride:A}},f=(D,k,A,w)=>{const M=g(k,A,w);M.maxDistance>=0&&D.push(M)},y=Math.min(r,a)/2;let v={value:g(s,n,y),next:null};for(;v!=null;){const D=v.value,{distance:k,value:A,maxValue:w,x:M,y:T,stride:L}=D;if(v=v.next,k>0&&(h==null||A>h.value)&&(h=D),h!=null&&w-h.value<=t)continue;const N=L/2,O=[];f(O,M-N,T-N,N),f(O,M+N,T-N,N),f(O,M-N,T+N,N),f(O,M+N,T+N,N),O.sort(uH),v=Y2(v,O,uH)}if(h==null)return;const{distance:b,x:C,y:x}=h;return{x:C,y:x,distance:b}}var uH=(e,t)=>t.maxValue-e.maxValue;function sL(e,t){const i=dH(e,t,(n,r,a,l)=>{const c=-Dw(n,r,a),d=c+l*Math.SQRT2;return{distance:c,maxDistance:d}});if(i==null)return;const{x:o,y:s}=i;return[o,s]}function hH(e,t){let i;switch(e.type){case"GeometryCollection":return e.geometries.flatMap(o=>hH(o,t));case"MultiPoint":return e.coordinates;case"Point":return[e.coordinates];case"MultiPolygon":{const o=Mw(e);i=o!=null?sL(o,t):void 0;break}case"Polygon":{const o=e.coordinates;i=o!=null?sL(o,t):void 0;break}case"MultiLineString":{const o=kw(e);i=o!=null?ww(o)?.point:void 0;break}case"LineString":{const o=e.coordinates;i=ww(o)?.point;break}}return i!=null?[i]:[]}var{BBox:Bve}=R;function pH(e){if(!e)return;const{range:t}=e,i=t[0][0],o=t[0][1],s=t[1][0]-i,n=t[1][1]-o,r=new Bve(i,o,s,n);return{series:r,axis:r}}var{FillGradientDefaults:Gve,FillPatternDefaults:zve,FillImageDefaults:Vve,Property:At,SeriesProperties:_ve,makeSeriesTooltip:Hve,Label:$ve}=R,gH=class extends $ve{constructor(){super(...arguments),this.placement="bottom"}};S([At],gH.prototype,"placement");var It=class extends _ve{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.fillGradientDefaults=new Gve,this.fillPatternDefaults=new zve,this.fillImageDefaults=new Vve,this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.label=new gH,this.tooltip=Hve()}getStyle(){const{size:e,shape:t,fill:i,fillOpacity:o,stroke:s,strokeWidth:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}=this;return{size:e,shape:t,fill:i,fillOpacity:o,opacity:1,stroke:s,strokeWidth:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}}};S([At],It.prototype,"topology"),S([At],It.prototype,"title"),S([At],It.prototype,"legendItemName"),S([At],It.prototype,"idKey"),S([At],It.prototype,"topologyIdKey"),S([At],It.prototype,"idName"),S([At],It.prototype,"latitudeKey"),S([At],It.prototype,"latitudeName"),S([At],It.prototype,"longitudeKey"),S([At],It.prototype,"longitudeName"),S([At],It.prototype,"labelKey"),S([At],It.prototype,"labelName"),S([At],It.prototype,"sizeKey"),S([At],It.prototype,"sizeName"),S([At],It.prototype,"colorKey"),S([At],It.prototype,"colorName"),S([At],It.prototype,"colorRange"),S([At],It.prototype,"shape"),S([At],It.prototype,"size"),S([At],It.prototype,"maxSize"),S([At],It.prototype,"sizeDomain"),S([At],It.prototype,"fill"),S([At],It.prototype,"fillGradientDefaults"),S([At],It.prototype,"fillPatternDefaults"),S([At],It.prototype,"fillImageDefaults"),S([At],It.prototype,"fillOpacity"),S([At],It.prototype,"stroke"),S([At],It.prototype,"strokeWidth"),S([At],It.prototype,"strokeOpacity"),S([At],It.prototype,"lineDash"),S([At],It.prototype,"lineDashOffset"),S([At],It.prototype,"itemStyler"),S([At],It.prototype,"label"),S([At],It.prototype,"tooltip");var{CachedTextMeasurerPool:Wve,fromToMotion:jve,StateMachine:Uve,getMissCount:Kve,createDatumId:fH,SeriesNodePickMode:mH,valueProperty:ap,computeMarkerFocusBounds:Yve,ColorScale:Xve,LinearScale:Zve,Group:qve,Selection:nL,Text:Qve,Marker:rL,applyShapeStyle:Jve,getShapeStyle:aL,getLabelStyles:ebe,LonLatBBox:tbe,mergeDefaults:yH}=R,Tw=class extends Wv{constructor(e){super({moduleCtx:e,categoryKey:void 0,propertyKeys:{size:["colorKey"],color:["colorKey"],label:["labelKey"]},propertyNames:{size:["sizeName"],color:["colorName"],label:["labelName"]},pickModes:[mH.EXACT_SHAPE_MATCH,mH.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new It,this._chartTopology=void 0,this.colorScale=new Xve,this.sizeScale=new Zve,this.markerGroup=this.contentGroup.appendChild(new qve({name:"markerGroup"})),this.labelSelection=nL.select(this.labelGroup,Qve,!1),this.markerSelection=nL.select(this.markerGroup,rL,!1),this.highlightMarkerSelection=nL.select(this.highlightGroup,rL),this.animationState=new Uve("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(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){const 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)}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[3,e],this.highlightGroup.zIndex=[4,e],!0}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}async processData(e){if(this.data==null)return;const{data:t,topology:i,sizeScale:o,colorScale:s}=this,{topologyIdKey:n,idKey:r,latitudeKey:a,longitudeKey:l,sizeKey:c,colorKey:d,labelKey:u,sizeDomain:h,colorRange:p}=this.properties,g=new Map;i?.features.forEach(w=>{const M=w.properties?.[n];M!=null&&g.set(M,w)});const f=this.sizeScale.type,y=this.colorScale.type,v=this.scale?.type,b=a!=null&&l!=null,{dataModel:C,processedData:x}=await this.requestDataModel(e,t,{props:[...r!=null?[ap(r,v,{id:"idValue",includeProperty:!1}),ap(r,v,{id:"featureValue",includeProperty:!1,processor:()=>w=>g.get(w)})]:[],...b?[ap(a,v,{id:"latValue"}),ap(l,v,{id:"lonValue"})]:[],...u?[ap(u,"category",{id:"labelValue"})]:[],...c?[ap(c,f,{id:"sizeValue"})]:[],...d?[ap(d,y,{id:"colorValue"})]:[]]}),D=r!=null?C.resolveColumnById(this,"featureValue",x):void 0,k=b?C.resolveColumnById(this,"latValue",x):void 0,A=b?C.resolveColumnById(this,"lonValue",x):void 0;if(this.topologyBounds=x.dataSources.get(this.id)?.reduce((w,M,T)=>{const N=D?.[T]?.geometry;if(N!=null&&(w=Lf(N,w)),k!=null&&A!=null){const O=A[T],F=k[T];w=tbe.extend(w,O,F,O,F)}return w},void 0),c!=null){const w=C.resolveProcessedDataIndexById(this,"sizeValue"),M=x.domain.values[w]??[];o.domain=h??M}if(p!=null&&this.isColorScaleValid()){const w=C.resolveProcessedDataIndexById(this,"colorValue");s.domain=x.domain.values[w],s.range=p,s.update()}this.animationState.transition("updateData")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=Kve(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelDatum(e,t,i,o,s,n){if(t==null)return;const{idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,sizeKey:h,sizeName:p,colorKey:g,colorName:f,labelKey:y,labelName:v,label:b,shape:C}=this.properties;if(y==null||!b.enabled)return;const{placement:x}=b,D=this.getLabelText(t,e,y,"label",[],b,{value:t,datum:e,idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,sizeKey:h,sizeName:p,colorKey:g,colorName:f,labelKey:y,labelName:v});if(D==null)return;const{width:k,height:A}=n.measureText(String(D)),w=rL.anchor(C);return{point:{x:i,y:o,size:s},label:{width:k,height:A,text:D},anchor:w,placement:x}}createNodeData(){const{id:e,dataModel:t,processedData:i,sizeScale:o,properties:s,scale:n}=this,{idKey:r,latitudeKey:a,longitudeKey:l,sizeKey:c,colorKey:d,labelKey:u,label:h,legendItemName:p}=s;if(t==null||i==null||n==null)return;const g=a!=null&&l!=null,f=r!=null?t.resolveColumnById(this,"idValue",i):void 0,y=r!=null?t.resolveColumnById(this,"featureValue",i):void 0,v=g?t.resolveColumnById(this,"latValue",i):void 0,b=g?t.resolveColumnById(this,"lonValue",i):void 0,C=u!=null?t.resolveColumnById(this,"labelValue",i):void 0,x=c!=null?t.resolveColumnById(this,"sizeValue",i):void 0,D=d!=null?t.resolveColumnById(this,"colorValue",i):void 0,k=s.maxSize??s.size;o.range=[Math.min(s.size,k),k];const A=Wve.getMeasurer({font:h});let w;f!=null&&y!=null&&(w=new Map,i.dataSources.get(this.id)?.forEach((F,E)=>{const G=f[E],B=y[E]?.geometry??void 0,z=B!=null&&n!=null?du(B,n):void 0;G!=null&&z!=null&&w.set(G,z)}));const M=[],T=[],L=[];(i.dataSources.get(this.id)??[]).forEach((F,E)=>{const G=f?.[E],B=b?.[E],z=v?.[E],V=D?.[E],$=x?.[E],_=C?.[E],W=$!=null?o.convert($,{clamp:!0}):s.size,j=G!=null?w?.get(G):void 0;if(G!=null&&du==null&&L.push(G),B!=null&&z!=null){const[X,q]=n.convert([B,z]),Q=this.getLabelDatum(F,_,X,q,W,A);Q&&T.push(Q),M.push({series:this,itemId:a,datum:F,datumIndex:E,index:-1,idValue:G,lonValue:B,latValue:z,labelValue:_,sizeValue:$,colorValue:V,point:{x:X,y:q,size:W},midPoint:{x:X,y:q},legendItemName:p})}else j!=null&&hH(j,1).forEach(([X,q],Q)=>{const ue=this.getLabelDatum(F,_,X,q,W,A);ue&&T.push(ue),M.push({series:this,itemId:a,datum:F,datumIndex:E,index:Q,idValue:G,lonValue:B,latValue:z,labelValue:_,sizeValue:$,colorValue:V,point:{x:X,y:q,size:W},midPoint:{x:X,y:q},legendItemName:p})})});const O=10;if(L.length>O){const F=L.length-O;L.length=O,L.push(`(+${F} more)`)}return L.length>0&&he.warnOnce("some data items do not have matches in the provided topology",L),{itemId:e,nodeData:M,labelData:T}}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}){const t=this.checkResize(e),i=this.checkScaleChange(),{markerSelection:o,highlightMarkerSelection:s}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;let n=this.ctx.highlightManager?.getActiveHighlight();const{legendItemName:r}=this.properties,a=r!=null&&n?.datum==null&&r===n?.legendItemName;n!=null&&(n.series!==this&&!a||n.datum==null)&&(n=void 0);const l=this.contextNodeData?.nodeData??[];this.markerSelection=this.updateMarkerSelection({markerData:l,markerSelection:o}),this.updateMarkerNodes({markerSelection:o,isHighlight:!1,highlightedDatum:n}),this.highlightMarkerSelection=this.updateMarkerSelection({markerData:n!=null?[n]:[],markerSelection:s}),this.updateMarkerNodes({markerSelection:s,isHighlight:!0,highlightedDatum:n}),(i||t)&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=R.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){e.labelSelection.each((t,{x:i,y:o,width:s,height:n,text:r},a)=>{const l=ebe(this,void 0,this.properties,this.properties.label),{color:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p}=l;t.visible=!0,t.x=i+s/2,t.y=o+n/2,t.text=r,t.fill=c,t.fontStyle=d,t.fontWeight=u,t.fontSize=h,t.fontFamily=p,t.textAlign="center",t.textBaseline="middle",t.fillOpacity=this.getHighlightStyle(!1,a).opacity??1,t.setBoxing(l)})}updateMarkerSelection(e){const{markerData:t,markerSelection:i}=e;return i.update(t,void 0,o=>fH([o.index,o.idValue,o.lonValue,o.latValue]))}getMarkerItemStyle({datumIndex:e,datum:t,colorValue:i,sizeValue:o},s){const{id:n,properties:r,colorScale:a,sizeScale:l}=this,{colorRange:c,itemStyler:d,fillGradientDefaults:u,fillPatternDefaults:h,fillImageDefaults:p}=r,g=this.getHighlightStyle(s,e),f=yH(g,r.getStyle());!s&&i!=null&&(f.fill=this.isColorScaleValid()?a.convert(i):c?.[0]??f.fill),o!=null&&(f.size=l.convert(o,{clamp:!0}));let y=aL(f,u,h,p);if(d!=null&&e!=null){const v=this.cachedDatumCallback(fH(e,s?"highlight":"node"),()=>{const b=this.ctx.highlightManager?.getActiveHighlight(),C=this.getHighlightStateString(b,s,e);return this.callWithContext(d,{seriesId:n,datum:t,highlighted:s,highlightState:C,...y})});v&&(y=aL(yH(v,f),u,h,p))}return y}updateMarkerNodes(e){const{markerSelection:t,isHighlight:i,highlightedDatum:o}=e,s=pH(this.scale);t.each((n,r)=>{const{datum:a,point:l}=r,c=this.getMarkerItemStyle(r,i);n.shape=c.shape,n.size=c.size,Jve(n,c,s),n.x=l.x,n.y=l.y,n.scalingCenterX=l.x,n.scalingCenterY=l.y,n.zIndex=!i&&o!=null&&a===o.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(){const{animationManager:e}=this.ctx,t=hve();jve(this.id,"markers",e,[this.markerSelection,this.highlightMarkerSelection],t)}getLabelData(){return this.isLabelEnabled()?this.contextNodeData?.labelData??[]:[]}pickNodeClosestDatum(e){const{x:t,y:i}=e;let o=1/0,s;return this.contextNodeData?.nodeData.forEach(n=>{const{x:r,y:a,size:l}=n.point,c=Math.max(Math.abs(r-t)-l,0),d=Math.max(Math.abs(a-i)-l,0),u=c*c+d*d;u<o&&(o=u,s=n)}),s!=null?{datum:s,distance:Math.sqrt(o)}:void 0}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{shape:s,fillOpacity:n,stroke:r,strokeWidth:a,strokeOpacity:l,lineDash:c,lineDashOffset:d}=o;let{fill:u}=o;if(e!=null&&this.isColorScaleValid()){const p=t.resolveColumnById(this,"colorValue",i)[e];u=this.colorScale.convert(p)}return{marker:aL({shape:s,fill:u,fillOpacity:n,stroke:r,strokeWidth:a,strokeOpacity:l,lineDash:c,lineDashOffset:d},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults)}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idName:a,idKey:l,colorKey:c,colorRange:d,showInLegend:u}=this.properties;if(e==="gradient"&&c!=null&&d!=null){const h=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,series:this.getFormatterContext("color"),colorRange:d,colorDomain:h}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??a??l??o},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!u}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s,ctx:{formatManager:n}}=this,{idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,colorKey:h,colorName:p,sizeKey:g,sizeName:f,labelKey:y,labelName:v,title:b,legendItemName:C,tooltip:x}=s;if(!i||!o)return;const D=o.dataSources.get(this.id)?.[e],k=g!=null?i.resolveColumnById(this,"sizeValue",o)[e]:void 0,A=h!=null?i.resolveColumnById(this,"colorValue",o)[e]:void 0,w=[];if(this.isLabelEnabled()&&y!=null&&y!==r){const L=i.resolveColumnById(this,"labelValue",o)[e],N=n.format(this.callWithContext.bind(this),{type:"category",value:L,datum:D,seriesId:t,legendItemName:C,key:y,source:"tooltip",property:"label",domain:[],boundSeries:this.getFormatterContext("label")});w.push({label:v,fallbackLabel:y,value:N??L})}if(g!=null&&k!=null){const L=i.getDomain(this,"sizeValue","value",o),N=n.format(this.callWithContext.bind(this),{type:"number",value:k,datum:D,seriesId:t,legendItemName:C,key:g,source:"tooltip",property:"size",domain:L,boundSeries:this.getFormatterContext("size"),fractionDigits:void 0});w.push({label:f,fallbackLabel:g,value:N??String(k)})}if(h!=null&&A!=null){const L=i.getDomain(this,"colorValue","value",o),N=n.format(this.callWithContext.bind(this),{type:"number",value:A,datum:D,seriesId:t,legendItemName:C,key:h,source:"tooltip",property:"color",domain:L,boundSeries:this.getFormatterContext("color"),fractionDigits:void 0});w.push({label:p,fallbackLabel:h,value:N??String(A)})}let M;if(r!=null)M=i.resolveColumnById(this,"idValue",o)[e];else if(l!=null&&d!=null){const L=i.resolveColumnById(this,"latValue",o)[e],N=i.resolveColumnById(this,"lonValue",o)[e];M=`${Math.abs(L).toFixed(4)}° ${L>=0?"N":"S"}, ${Math.abs(N).toFixed(4)}° ${N>=0?"W":"E"}`}const T=this.getMarkerItemStyle({datumIndex:e,datum:D,colorValue:A,sizeValue:k},!1);return this.formatTooltipWithContext(x,{heading:M,title:b??C,symbol:this.legendItemSymbol(e),data:w},{seriesId:t,datum:D,title:b,idKey:r,idName:a,latitudeKey:l,latitudeName:c,longitudeKey:d,longitudeName:u,colorKey:h,colorName:p,sizeKey:g,sizeName:f,labelKey:y,labelName:v,...T})}getFormattedMarkerStyle(e){const t=this.getMarkerItemStyle(e,!1);return{size:t.size,shape:t.shape}}computeFocusBounds(e){return Yve(this,e)}hasItemStylers(){return this.properties.itemStyler!=null}};Tw.className="MapMarkerSeries",Tw.type="map-marker";var{commonSeriesOptionsDefs:ibe,mapMarkerSeriesThemeableOptionsDef:obe,without:sbe}=R,nbe={...sbe(ibe,["highlightStyle","highlight"]),...obe,type:ee(je("map-marker")),idKey:H,latitudeKey:H,longitudeKey:H,sizeKey:H,colorKey:H,labelKey:H,idName:H,latitudeName:H,longitudeName:H,sizeName:H,colorName:H,labelName:H,topology:Hp,topologyIdKey:H,legendItemName:H,title:H},rbe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-marker",moduleFactory:e=>new Tw(e),themeTemplate:{...$v,series:{shape:"circle",maxSize:30,fill:{$mapPalette:"fill"},stroke:{$mapPalette:"stroke"},colorRange:{$if:[{$eq:[{$mapPalette:"type"},"inbuilt"]},{$mapPalette:"divergingColors"},Bs(R.SAFE_RANGE2_OPERATION)]},fillGradientDefaults:Bs(R.FILL_GRADIENT_RADIAL_REVERSED_DEFAULTS),fillPatternDefaults:Bs(R.FILL_PATTERN_DEFAULTS),fillImageDefaults:Bs(R.FILL_IMAGE_DEFAULTS),fillOpacity:.5,label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},highlight:Bs(R.multiSeriesHighlightStyle())},tooltip:{range:"exact"}}},abe={type:"series",name:"map-marker",chartType:"topology",enterprise:!0,options:nbe,create:e=>new Tw(e),validate(e,t,i){const o=Jo(e,t,i),{cleared:s,invalid:n}=o;if(s?.idKey==null&&(s?.latitudeKey==null||s?.longitudeKey==null)){const r=l=>i?`${i}.${l}`:l,a=`Either \`${r("idKey")}\` or both \`${r("latitudeKey")}\` and \`${r("longitudeKey")}\` are required.`;n.push(new sd("required",a,null,i))}return o}};function lbe(e,{aspectRatio:t,precision:i}){const o=dH(e,i,(l,c,d,u)=>{const h=dbe(l,c,d,t),p=h+2*u*t,g=h*Math.SQRT2,f=p*Math.SQRT2;return{distance:g,maxDistance:f}});if(o==null)return;const{x:s,y:n,distance:r}=o,a=r/Math.SQRT2;return{x:s,y:n,maxWidth:a}}function cbe(e,t,i,o,s){const[n,r]=e,[a,l]=t,c=1/s,d=a-n,u=l-r,[h,p]=r<=l?e:t,[g,f]=n<=a?e:t,[y,v]=r<=l?t:e,[b,C]=n<=a?t:e;let x=1/0;if(d!==0){const T=u/d;for(let L=0;L<=1;L+=1){const N=L===0?c:-c,O=(T*n-r-N*i+o)/(T-N);if(O>=g&&O<=b){const F=Math.abs(i-O)*2;x=Math.min(x,F)}}}else for(let T=0;T<=1;T+=1){const N=(T===0?c:-c)*(n-i)+o;if(N>=p&&N<=v){const F=Math.abs(o-N)*2*s;x=Math.min(x,F)}}const D=s,k=Math.abs((h-i)/(p-o)),A=Math.abs((y-i)/(v-o));if(v<o&&A<D){const L=Math.abs(o-v)*2*s;x=Math.min(x,L)}else if(p>o&&k<D){const L=Math.abs(o-p)*2*s;x=Math.min(x,L)}const w=Math.abs((f-o)/(g-i)),M=Math.abs((C-o)/(b-i));if(b<i&&M<c){const T=Math.abs(i-b)*2;x=Math.min(x,T)}else if(g>i&&w<c){const T=Math.abs(i-g)*2;x=Math.min(x,T)}return x}function dbe(e,t,i,o){let s=!1,n=1/0;for(const r of e){let a=r[r.length-1],[l,c]=a;for(const d of r){const[u,h]=d;h>i!=c>i&&t<(l-u)*(i-h)/(c-h)+u&&(s=!s);const p=cbe(a,d,t,i,o);n=Math.min(n,p),a=d,l=u,c=h}}return(s?1:-1)*n}function Rw(e,t,i){i>=t&&(e.maxX=Math.min(e.maxX,i-t)),i<=t&&(e.minX=Math.max(e.minX,i-t))}function ube(e,t,i,o,s,n){const r=s-n/2,a=s+n/2,[l,c]=t,[d,u]=i,h=d-l,p=u-c,[g,f]=l<=d?t:i,[y,v]=l<=d?i:t;if(h!==0){const b=p/h;for(let C=0;C<=1;C+=1){const D=((C===0?r:a)-c)/b+l;D>=g&&D<=y&&Rw(e,o,D)}}else Math.max(r,Math.min(c,u))<=Math.min(a,Math.max(c,u))&&Rw(e,o,l);return y<o&&v>=r&&v<=a?Rw(e,o,y):g>o&&f>=r&&f<=a&&Rw(e,o,g),e}function hbe(e,t,i,o){const s={minX:-1/0,maxX:1/0};for(const a of e){let l=a[a.length-1];for(const c of a)ube(s,l,c,t,i,o),l=c}const{minX:n,maxX:r}=s;return Number.isFinite(n)&&Number.isFinite(r)?{x:t+(n+r)/2,width:r-n}:{x:t,width:0}}var{Property:ui,SeriesProperties:pbe,makeSeriesTooltip:gbe,FillGradientDefaults:fbe,FillPatternDefaults:mbe,FillImageDefaults:ybe}=R,ri=class extends pbe{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.fillGradientDefaults=new fbe,this.fillPatternDefaults=new mbe,this.fillImageDefaults=new ybe,this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.padding=0,this.label=new Rv,this.tooltip=gbe()}getStyle(){const{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r}=this;return{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,opacity:1}}};S([ui],ri.prototype,"topology"),S([ui],ri.prototype,"title"),S([ui],ri.prototype,"legendItemName"),S([ui],ri.prototype,"idKey"),S([ui],ri.prototype,"idName"),S([ui],ri.prototype,"topologyIdKey"),S([ui],ri.prototype,"labelKey"),S([ui],ri.prototype,"labelName"),S([ui],ri.prototype,"colorKey"),S([ui],ri.prototype,"colorName"),S([ui],ri.prototype,"colorRange"),S([ui],ri.prototype,"fill"),S([ui],ri.prototype,"fillGradientDefaults"),S([ui],ri.prototype,"fillPatternDefaults"),S([ui],ri.prototype,"fillImageDefaults"),S([ui],ri.prototype,"fillOpacity"),S([ui],ri.prototype,"stroke"),S([ui],ri.prototype,"strokeOpacity"),S([ui],ri.prototype,"strokeWidth"),S([ui],ri.prototype,"lineDash"),S([ui],ri.prototype,"lineDashOffset"),S([ui],ri.prototype,"padding"),S([ui],ri.prototype,"itemStyler"),S([ui],ri.prototype,"label"),S([ui],ri.prototype,"tooltip");var{getMissCount:vbe,createDatumId:vH,SeriesNodePickMode:bH,valueProperty:Lw,CachedTextMeasurerPool:bbe,TextUtils:CH,ColorScale:Cbe,Group:SH,Selection:lL,Text:Sbe,PointerEvents:xbe,applyShapeStyle:wbe,getShapeStyle:cL,getLabelStyles:Dbe,mergeDefaults:xH}=R,wH=R.MercatorScale.fixedScale(),Pw=class extends Wv{constructor(e){super({moduleCtx:e,categoryKey:void 0,propertyKeys:{color:["colorKey"],label:["labelKey"]},propertyNames:{color:["colorName"],label:["labelName"]},pickModes:[bH.EXACT_SHAPE_MATCH,bH.NEAREST_NODE]}),this.properties=new ri,this._chartTopology=void 0,this.colorScale=new Cbe,this.itemGroup=this.contentGroup.appendChild(new SH({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new SH({name:"itemLabelGroup"})),this.datumSelection=lL.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=lL.select(this.itemLabelGroup,Sbe),this.highlightDatumSelection=lL.select(this.highlightGroup,()=>this.nodeFactory()),this.previousLabelLayouts=void 0,this._previousDatumMidPoint=void 0,this.itemLabelGroup.pointerEvents=xbe.None}getNodeData(){return this.contextNodeData?.nodeData}get topology(){return this.properties.topology??this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){const e=new Rf;return e.renderMode=1,e.lineJoin="round",e}async processData(e){if(this.data==null)return;const{data:t,topology:i,colorScale:o}=this,{topologyIdKey:s,idKey:n,colorKey:r,labelKey:a,colorRange:l}=this.properties,c=new Map;i?.features.forEach(f=>{const y=f.properties?.[s];y==null||!eL(f.geometry,1)||c.set(y,f)});const d=this.colorScale.type,u=this.scale?.type,{dataModel:h,processedData:p}=await this.requestDataModel(e,t,{props:[Lw(n,u,{id:"idValue",includeProperty:!1}),Lw(n,u,{id:"featureValue",includeProperty:!1,processor:()=>f=>c.get(f)}),...a?[Lw(a,"category",{id:"labelValue"})]:[],...r?[Lw(r,d,{id:"colorValue"})]:[]]}),g=h.resolveColumnById(this,"featureValue",p);if(this.topologyBounds=g.reduce((f,y)=>{const v=y?.geometry;return v==null?f:Lf(v,f)},void 0),l!=null&&this.isColorScaleValid()){const f=h.resolveProcessedDataIndexById(this,"colorValue");o.domain=p.domain.values[f],o.range=l,o.update()}i==null&&he.warnOnce("no topology was provided for [MapShapeSeries]; nothing will be rendered.")}isColorScaleValid(){const{colorKey:e}=this.properties;if(!e)return!1;const{dataModel:t,processedData:i}=this;if(!t||!i)return!1;const o=t.resolveProcessedDataIndexById(this,"colorValue"),s=i.input.count,n=vbe(this,i.defs.values[o].missing);return!(s===0||s===n)}getLabelLayout(e,t,i,o,s){if(t==null||o==null)return;const{idKey:n,idName:r,colorKey:a,colorName:l,labelKey:c,labelName:d,padding:u,label:h}=this.properties;if(c==null||!h.enabled)return;const p=this.getLabelText(t,e,c,"label",[],h,{value:t,datum:e,idKey:n,idName:r,colorKey:a,colorName:l,labelKey:c,labelName:d});if(p==null)return;const g=i.measureText(String(p)),f=p.split(`
24
24
  `).length,y=(g.width+2*u)/(f*CH.getLineHeight(h.fontSize)+2*u);if(s?.geometry===o&&s?.labelText===p&&s?.aspectRatio===y)return s;const v=du(o,wH),b=Mw(v);if(b==null)return;const C=lbe(b,{aspectRatio:y,precision:.001});if(C==null)return;const{x,y:D,maxWidth:k}=C;return{geometry:o,labelText:p,aspectRatio:y,x,y:D,maxWidth:k,fixedPolygon:b}}getLabelDatum(e,t){const{scale:i}=this;if(i==null)return;const{padding:o,label:s}=this.properties,{labelText:n,aspectRatio:r,x:a,y:l,maxWidth:c,fixedPolygon:d}=e,u={width:Math.ceil(c*t),height:Math.ceil(c*t/r),meta:a},h=Iv(n,s,{padding:o},(x,D)=>{if(!D)return u;const k=hbe(d,a,l,x/t);return{width:k.width*t,height:x,meta:k.x}});if(h==null)return;const[{text:p,fontSize:g,lineHeight:f,width:y},v]=h;if(p===CH.EllipsisChar)return;const b=y<u.width?a:v,C=this.scale.convert(wH.invert([b,l]));return{x:C[0],y:C[1],text:p,fontSize:g,lineHeight:f}}createNodeData(){const{id:e,dataModel:t,processedData:i,properties:o,scale:s,previousLabelLayouts:n}=this,{idKey:r,colorKey:a,labelKey:l,label:c,legendItemName:d}=o;if(t==null||i==null)return;const u=s!=null?(s.range[1][0]-s.range[0][0])/s.bounds.width:NaN,h=t.resolveColumnById(this,"idValue",i),p=t.resolveColumnById(this,"featureValue",i),g=l!=null?t.resolveColumnById(this,"labelValue",i):void 0,f=a!=null?t.resolveColumnById(this,"colorValue",i):void 0,y=bbe.getMeasurer({font:c}),v=new Map;this.previousLabelLayouts=v;const b=[],C=[],x=[];(i.dataSources.get(this.id)??[]).forEach((A,w)=>{const M=h[w],T=f?.[w],L=g?.[w],N=p[w]?.geometry??void 0;N==null&&x.push(M);const O=this.getLabelLayout(A,L,y,N,n?.get(M));O!=null&&v.set(M,O);const F=O!=null&&s!=null?this.getLabelDatum(O,u):void 0;F!=null&&C.push(F);const E=N!=null&&s!=null?du(N,s):void 0;b.push({series:this,itemId:r,datum:A,datumIndex:w,idValue:M,colorValue:T,labelValue:L,projectedGeometry:E,legendItemName:d})});const k=10;if(x.length>k){const A=x.length-k;x.length=k,x.push(`(+${A} more)`)}return x.length>0&&he.warnOnce("some data items do not have matches in the provided topology",x),{itemId:e,nodeData:b,labelData:C}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e,labelSelection:t,highlightDatumSelection:i}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;let o=this.ctx.highlightManager?.getActiveHighlight();const{legendItemName:s}=this.properties,n=s!=null&&o?.datum==null&&s===o?.legendItemName;o!=null&&(o.series!==this&&!n||o.datum==null)&&(o=void 0);const r=this.contextNodeData?.nodeData??[],a=this.contextNodeData?.labelData??[];this.datumSelection=this.updateDatumSelection({nodeData:r,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:a,labelSelection:t}),this.updateLabelNodes({labelSelection:t}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:o!=null?[o]:[],datumSelection:i}),this.updateDatumNodes({datumSelection:i,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>vH(t.idValue))}getItemStyle({datumIndex:e,datum:t,colorValue:i},o){const{id:s,properties:n,colorScale:r}=this,{colorRange:a,itemStyler:l}=n,c=this.getHighlightStyle(o,e),d=xH(c,n.getStyle());!o&&i!=null&&(d.fill=this.isColorScaleValid()?r.convert(i):a?.[0]??d.fill);let u=cL(d,this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults);if(l!=null&&e!=null){const h=this.cachedDatumCallback(vH(e,o?"highlight":"node"),()=>{const p=this.ctx.highlightManager?.getActiveHighlight(),g=this.getHighlightStateString(p,o,e);return this.callWithContext(l,{seriesId:s,datum:t,highlighted:o,highlightState:g,...u})});h&&(u=cL(xH(h,u),this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults))}return u}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,o=pH(this.scale);t.each((s,n)=>{const{projectedGeometry:r}=n;if(r==null){s.visible=!1,s.projectedGeometry=void 0;return}const a=this.getItemStyle(n,i);s.visible=!0,s.projectedGeometry=r,wbe(s,a,o)})}updateLabelSelection(e){const t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){e.labelSelection.each((t,{x:i,y:o,text:s,fontSize:n,lineHeight:r},a)=>{const l=Dbe(this,void 0,this.properties,this.properties.label),{color:c,fontStyle:d,fontWeight:u,fontFamily:h}=l;t.visible=!0,t.x=i,t.y=o,t.text=s,t.fill=c,t.fontStyle=d,t.fontWeight=u,t.fontSize=n,t.lineHeight=r,t.fontFamily=h,t.textAlign="center",t.textBaseline="middle",t.fillOpacity=this.getHighlightStyle(!1,a).opacity??1,t.setBoxing(l)})}resetAnimation(){}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}datumMidPoint(e){const{_previousDatumMidPoint:t}=this;if(t?.datum===e)return t.point;const i=e.projectedGeometry,o=i!=null?Mw(i):void 0,s=o!=null?sL(o,2):void 0,n=s!=null?{x:s[0],y:s[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:n},n}legendItemSymbol(e){const{dataModel:t,processedData:i,properties:o}=this,{fillOpacity:s,stroke:n,strokeWidth:r,strokeOpacity:a,lineDash:l,lineDashOffset:c}=o;let{fill:d}=o;if(e!=null&&this.isColorScaleValid()){const h=t.resolveColumnById(this,"colorValue",i)[e];d=this.colorScale.convert(h)}return{marker:cL({fill:d,fillOpacity:s,stroke:n,strokeWidth:r,strokeOpacity:a,lineDash:l,lineDashOffset:c},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults)}}getLegendData(e){const{processedData:t,dataModel:i}=this;if(t==null||i==null)return[];const{id:o,visible:s}=this,{title:n,legendItemName:r,idKey:a,idName:l,colorKey:c,colorRange:d,showInLegend:u}=this.properties;if(e==="gradient"&&c!=null&&d!=null){const h=t.domain.values[i.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:s,seriesId:o,series:this.getFormatterContext("color"),colorRange:d,colorDomain:h}]}else return e==="category"?[{legendType:"category",id:o,itemId:o,seriesId:o,enabled:s,label:{text:r??n??l??a},symbol:this.legendItemSymbol(),legendItemName:r,hideInLegend:!u}]:[]}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s,ctx:{formatManager:n}}=this,{idKey:r,idName:a,colorKey:l,colorName:c,labelKey:d,labelName:u,legendItemName:h,title:p,tooltip:g}=s;if(!i||!o)return;const f=o.dataSources.get(this.id)?.[e],y=i.resolveColumnById(this,"idValue",o)[e],v=l!=null?i.resolveColumnById(this,"colorValue",o)[e]:void 0,b=[];if(this.isLabelEnabled()&&d!=null&&d!==r){const x=i.resolveColumnById(this,"labelValue",o)[e],D=n.format(this.callWithContext.bind(this),{type:"category",value:x,datum:f,seriesId:t,legendItemName:h,key:d,source:"tooltip",property:"label",domain:[],boundSeries:this.getFormatterContext("label")});b.push({label:u,fallbackLabel:d,value:D??x})}if(v!=null){const x=i.getDomain(this,"colorValue","value",o),D=n.format(this.callWithContext.bind(this),{type:"number",value:v,datum:f,seriesId:t,legendItemName:h,key:l,source:"tooltip",property:"color",domain:x,boundSeries:this.getFormatterContext("color"),fractionDigits:void 0});b.push({label:c,fallbackLabel:l,value:D??String(v)})}const C=this.getItemStyle({datum:f,datumIndex:e,colorValue:v},!1);return this.formatTooltipWithContext(g,{heading:y,title:p??h,symbol:this.legendItemSymbol(e),data:b},{seriesId:t,datum:f,title:p,idKey:r,idName:a,colorKey:l,colorName:c,labelKey:d,labelName:u,...C})}computeFocusBounds(e){return nH(this,e)}hasItemStylers(){return this.properties.itemStyler!=null}};Pw.className="MapShapeSeries",Pw.type="map-shape";var{commonSeriesOptionsDefs:Mbe,mapShapeSeriesThemeableOptionsDef:kbe,without:Abe}=R,Ibe={...Abe(Mbe,["highlightStyle","highlight"]),...kbe,type:ee(je("map-shape")),idKey:ee(H),colorKey:H,labelKey:H,idName:H,colorName:H,labelName:H,topology:Hp,topologyIdKey:H,legendItemName:H,title:H},Tbe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape",moduleFactory:e=>new Pw(e),themeTemplate:{...$v,series:{fill:{$mapPalette:"fill"},stroke:{$ref:"chartBackgroundColor"},colorRange:{$if:[{$eq:[{$mapPalette:"type"},"inbuilt"]},{$mapPalette:"divergingColors"},Bs(R.SAFE_RANGE2_OPERATION)]},fillGradientDefaults:Bs(R.FILL_GRADIENT_LINEAR_DEFAULTS),fillPatternDefaults:Bs(R.FILL_PATTERN_DEFAULTS),fillImageDefaults:Bs(R.FILL_IMAGE_DEFAULTS),fillOpacity:1,strokeWidth:1,lineDash:[0],lineDashOffset:0,padding:2,label:{...R.LABEL_BOXING_DEFAULTS,color:{$ref:"chartBackgroundColor"},fontFamily:{$ref:"fontFamily"},fontSize:{$ref:"fontSize"},fontWeight:"bold",overflowStrategy:"hide"},highlight:Bs(R.multiSeriesHighlightStyle(!0))},tooltip:{range:"exact"}}},Rbe={type:"series",name:"map-shape",chartType:"topology",enterprise:!0,options:Ibe,create:e=>new Pw(e)},{FillGradientDefaults:Lbe,FillPatternDefaults:Pbe,FillImageDefaults:Ebe,Property:jr,SeriesProperties:Fbe,makeSeriesTooltip:Nbe}=R,Jn=class extends Fbe{constructor(){super(...arguments),this.topology=void 0,this.fill="black",this.fillGradientDefaults=new Lbe,this.fillPatternDefaults=new Pbe,this.fillImageDefaults=new Ebe,this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=Nbe()}};S([jr],Jn.prototype,"topology"),S([jr],Jn.prototype,"fill"),S([jr],Jn.prototype,"fillGradientDefaults"),S([jr],Jn.prototype,"fillPatternDefaults"),S([jr],Jn.prototype,"fillImageDefaults"),S([jr],Jn.prototype,"fillOpacity"),S([jr],Jn.prototype,"stroke"),S([jr],Jn.prototype,"strokeOpacity"),S([jr],Jn.prototype,"strokeWidth"),S([jr],Jn.prototype,"lineDash"),S([jr],Jn.prototype,"lineDashOffset"),S([jr],Jn.prototype,"tooltip");var{createDatumId:Obe,Selection:Bbe,Group:Gbe,PointerEvents:DH,getShapeStyle:zbe}=R,Ew=class extends Wv{constructor(e){super({moduleCtx:e,categoryKey:void 0,pickModes:[]}),this.properties=new Jn,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new Gbe({name:"itemGroup"})),this.datumSelection=Bbe.select(this.itemGroup,()=>this.nodeFactory()),this.itemGroup.pointerEvents=DH.None}get topology(){return this.properties.topology??this._chartTopology}get focusable(){return!1}setOptionsData(){}setChartData(){}getNodeData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0}nodeFactory(){const e=new Rf;return e.renderMode=1,e.lineJoin="round",e.pointerEvents=DH.None,e}processData(){const{topology:e}=this;this.topologyBounds=e?.features.reduce((t,i)=>{const o=i.geometry;return o==null?t:Lf(o,t)},void 0),e==null&&he.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){const{id:e,topology:t,scale:i}=this;if(t==null)return;const o=[],s=[];return t.features.forEach((n,r)=>{const{geometry:a}=n,l=a!=null&&i!=null?du(a,i):void 0;l!=null&&o.push({series:this,itemId:r,datum:n,datumIndex:0,index:r,projectedGeometry:l})}),{itemId:e,nodeData:o,labelData:s}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){const{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.labelGroup.visible=this.visible;const{nodeData:t=[]}=this.contextNodeData??{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Obe(t.index))}updateDatumNodes(e){const{properties:t}=this,{datumSelection:i}=e,{fill:o,fillOpacity:s,stroke:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}=t,c=t.strokeWidth;i.each((d,u)=>{const{projectedGeometry:h}=u;if(h==null){d.visible=!1,d.projectedGeometry=void 0;return}d.visible=!0,d.projectedGeometry=h;const p=zbe({fill:o,fillOpacity:s,stroke:n,strokeWidth:c,strokeOpacity:r,lineDash:a,lineDashOffset:l},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults);d.setProperties(p)})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}pickFocus(){}computeFocusBounds(e){}hasItemStylers(){return!1}};Ew.className="MapShapeBackgroundSeries",Ew.type="map-shape-background";var{commonSeriesOptionsDefs:Vbe,mapShapeBackgroundSeriesThemeableOptionsDef:_be}=R,Hbe={..._be,...Vbe,type:ee(je("map-shape-background")),topology:Hp},$be={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape-background",moduleFactory:e=>new Ew(e),themeTemplate:{...$v,series:{fill:{$path:["/1",{$mapPalette:"fill"},{$mapPalette:"hierarchyColors"}]},stroke:{$ref:"chartBackgroundColor"},strokeWidth:1,fillGradientDefaults:Bs(R.FILL_GRADIENT_LINEAR_HIERARCHY_DEFAULTS),fillPatternDefaults:Bs(R.FILL_PATTERN_HIERARCHY_DEFAULTS),fillImageDefaults:Bs(R.FILL_IMAGE_DEFAULTS)}}},Wbe={type:"series",name:"map-shape-background",chartType:"topology",enterprise:!0,options:Hbe,create:e=>new Ew(e)},{DEFAULT_POLAR_DIRECTION_KEYS:jbe,DEFAULT_POLAR_DIRECTION_NAMES:Ube,ChartAxisDirection:El,PolarAxis:Kbe,diff:Ybe,fixNumericExtent:Xbe,groupAccumulativeValueProperty:MH,keyProperty:Zbe,normaliseGroupTo:qbe,resetLabelFn:Qbe,seriesLabelFadeInAnimation:Jbe,seriesLabelFadeOutAnimation:eCe,valueProperty:tCe,animationValidation:iCe,createDatumId:kH,SeriesNodePickMode:AH,normalizeAngle360:IH,CategoryScale:oCe,motion:TH,applyShapeStyle:sCe,isGradientFill:nCe,getShapeStyle:dL,updateLabelNode:rCe,mergeDefaults:RH}=R,aCe=class extends R.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},LH=class extends R.PolarSeries{constructor(e,{animationResetFns:t}){super({moduleCtx:e,categoryKey:"angleValue",propertyKeys:jbe,propertyNames:Ube,canHaveAxes:!0,pickModes:[AH.NEAREST_NODE,AH.EXACT_SHAPE_MATCH],animationResetFns:{...t,label:Qbe}}),this.NodeEvent=aCe,this.groupScale=new oCe,this.circleCache={r:0,cx:0,cy:0}}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===El.Angle)return t.getDomain(this,"angleValue","key",i);{const o=t.getDomain(this,"radiusValue-end","value",i),s=Number.isFinite(o[1]-o[0])?[o[0]>0?0:o[0],o[1]<0?0:o[1]]:[];return Xbe(s)}}async processData(e){const{angleKey:t,radiusKey:i,normalizedTo:o}=this.properties,s=!this.ctx.animationManager.isSkipped(),n=this.getStackId(),r=`${n}-trailing`,a=[];$i(o)&&a.push(qbe([n,r],Math.abs(o))),s&&this.processedData&&a.push(Ybe(this.id,this.processedData)),s&&a.push(iCe());const l=this.visible?{}:{forceValue:0},c=this.axes[El.Radius]?.scale.type,d=this.axes[El.Angle]?.scale.type;await this.requestDataModel(e,this.data,{props:[Zbe(t,d,{id:"angleValue"}),tCe(i,c,{id:"radiusValue-raw",invalidValue:null,...l}),...MH(i,"normal","current",{id:"radiusValue-end",rangeId:"radiusValue-range",invalidValue:null,groupId:n,separateNegative:!0,...l},c),...MH(i,"trailing","current",{id:"radiusValue-start",invalidValue:null,groupId:r,separateNegative:!0,...l},c),...a],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e!==o.r||t!==o.cx||i!==o.cy?(this.circleCache={r:e,cx:t,cy:i},!0):!1}isRadiusAxisReversed(){return this.axes[El.Radius]?.isReversed()}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){const e=this.axes[El.Radius];return e instanceof Kbe?this.radius*e.innerRadiusRatio:0}createNodeData(){const{processedData:e,dataModel:t,groupScale:i}=this;if(!t||!e||e.type!=="grouped")return;const o=this.axes[El.Angle],s=this.axes[El.Radius],n=o?.scale,r=s?.scale;if(!n||!r)return;const a=t.resolveKeysById(this,"angleValue",e),l=t.resolveColumnById(this,"radiusValue-start",e),c=t.resolveColumnById(this,"radiusValue-end",e),d=t.resolveColumnById(this,"radiusValue-raw",e),u=t.resolveProcessedDataIndexById(this,"radiusValue-range");let h=0,p=0;o instanceof Gd&&(h=o.groupPaddingInner,p=o.paddingInner);const f=(n.bandwidth??0)*(1-p),{index:y,visibleGroupCount:v}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);i.domain=Array.from({length:v}).map((B,z)=>String(z)),i.range=[-f/2,f/2],i.paddingInner=v>1?h:0;const b=this.isRadiusAxisReversed(),C=b?this.radius:this.getAxisInnerRadius(),x=b?this.getAxisInnerRadius():this.radius,D=x+C,{angleKey:k,radiusKey:A,angleName:w,radiusName:M,label:T}=this.properties,L=this.getSeriesDomain(El.Radius),N=(B,z,V,$)=>{const _=this.getLabelText(z,B,A,"radius",L,T,{value:z,datum:B,angleKey:k,radiusKey:A,angleName:w,radiusName:M});if(_)return{x:V,y:$,text:_,textAlign:"center",textBaseline:"middle"}},O=[],F={itemId:A,nodeData:O,labelData:O};if(!this.visible)return F;const{dataSources:E}=e,G=E.get(this.id)??[];for(const{datumIndex:B,group:z}of t.forEachGroupDatum(this,e)){const V=G[B],$=a[B];if($==null)return;const _=d[B],W=_>=0&&!Object.is(_,-0),j=l[B],X=c[B],q=z.aggregation[u][W?1:0]??0,Q=W===b;if(j===void 0||X===void 0)return;let ue,de;if(G.length===1)ue=-.5*Math.PI,de=1.5*Math.PI;else{const be=n.convert($);ue=IH(be+i.convert(String(y))),de=IH(ue+i.bandwidth)}const te=ue+i.bandwidth/2,se=D-r.convert(j),ie=D-r.convert(X),le=(se+ie)/2,ye=D-r.convert(0),Me=D-r.convert(q),De=Math.cos(te)*le,fe=Math.sin(te)*le,Ge=this.properties.label.enabled?N(V,_,De,fe):void 0,ce=this.getColumnWidth(ue,de);O.push({series:this,datum:V,datumIndex:B,point:{x:De,y:fe,size:0},midPoint:{x:De,y:fe},label:Ge,angleValue:$,radiusValue:_,negative:Q,innerRadius:se,outerRadius:ie,stackInnerRadius:ye,stackOuterRadius:Me,startAngle:ue,endAngle:de,midAngle:te,axisInnerRadius:C,axisOuterRadius:x,columnWidth:ce,index:B})}return{itemId:A,nodeData:O,labelData:O}}getColumnWidth(e,t){return NaN}update({seriesRect:e}){const 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")}getItemStyle(e,t){const{id:i,properties:o}=this,{angleKey:s,radiusKey:n,itemStyler:r,fillGradientDefaults:a,fillPatternDefaults:l,fillImageDefaults:c}=o,d=this.getHighlightStyle(t,e.datumIndex),u=RH(d,o.getStyle());let h=dL(u,a,l,c);if(r!=null&&e!=null){const p=this.cachedDatumCallback(kH(this.getDatumId(e),t?"highlight":"node"),()=>{const g=this.ctx.highlightManager?.getActiveHighlight(),f=this.getHighlightStateString(g,t,e.datumIndex);return this.callWithContext(r,{seriesId:i,datum:e.datum,highlighted:t,highlightState:f,angleKey:s,radiusKey:n,...h})});p&&(h=dL(RH(p,h),a,l,c))}return h}updateSectorSelection(e,t){let i=[];if(t){const a=this.ctx.highlightManager?.getActiveHighlight();a?.datum&&a.series===this&&i.push(a)}else i=this.nodeData;const o=this.isRadiusAxisReversed(),s=o?this.radius:this.getAxisInnerRadius(),n=o?this.getAxisInnerRadius():this.radius,r=this.getShapeFillBBox();e.update(i,void 0,a=>this.getDatumId(a)).each((a,l)=>{const{midPoint:c}=l,d=this.getItemStyle(l,t),u=d.fill,p=nCe(u)&&u.bounds==="item"?{centerX:c?.x??0,centerY:c?.y??0}:{centerX:0,centerY:0,innerRadius:s,outerRadius:n};this.updateItemPath(a,l,t),sCe(a,d,r,p),a.cornerRadius=d.cornerRadius,a.lineJoin="round"})}updateLabels(){const e=this.ctx.highlightManager?.getActiveHighlight();this.labelSelection.update(this.nodeData).each((t,i)=>{const o=this.getHighlightStateString(e,!1,i.datumIndex);rCe(this,t,this.properties,this.properties.label,i.label,!1,o),t.fillOpacity=this.getHighlightStyle(!1,i.datumIndex).opacity??1})}animateEmptyUpdateReady(){const{labelSelection:e}=this,t=this.getColumnTransitionFunctions();TH.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),Jbe(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){const{itemSelection:e}=this,{animationManager:t}=this.ctx,i=this.getColumnTransitionFunctions();TH.fromToMotion(this.id,"datums",t,[e],i),eCe(this,"labels",t,this.labelSelection)}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d}=n,u=s[El.Angle],h=s[El.Radius],p=this.nodeData?.[e];if(!i||!o||!u||!h||!p)return;const g=o.dataSources.get(this.id)?.[e],f=i.resolveKeysById(this,"angleValue",o)[e],y=i.resolveColumnById(this,"radiusValue-raw",o)[e];if(f==null)return;const v=this.getItemStyle(p,!1);return this.formatTooltipWithContext(d,{heading:this.getAxisValueText(u,"tooltip",f,g,r,void 0),symbol:this.legendItemSymbol(),data:[{label:c,fallbackLabel:l,value:this.getAxisValueText(h,"tooltip",y,g,l,void 0)}]},{seriesId:t,datum:g,title:a,angleKey:r,angleName:a,radiusKey:l,radiusName:c,...v})}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){const{fill:e,stroke:t,fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r,fillGradientDefaults:a,fillPatternDefaults:l,fillImageDefaults:c}=this.properties,d=dL({fill:e??"rgba(0, 0, 0, 0)",stroke:t??"rgba(0, 0, 0, 0)",fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r},a,l,c);return R.isGradientFill(d.fill)&&(d.fill={...d.fill,gradient:"linear",rotation:0,reverse:!1}),{marker:d}}getLegendData(e){if(e!=="category")return[];const{id:t,visible:i}=this,{radiusKey:o,radiusName:s,showInLegend:n}=this.properties;return[{legendType:"category",id:t,itemId:o,seriesId:t,enabled:i,label:{text:s??o},symbol:this.legendItemSymbol(),hideInLegend:!n}]}getDatumId(e){return kH(e.angleValue)}computeLabelsBBox(){return null}},{SeriesProperties:lCe,FillGradientDefaults:cCe,FillPatternDefaults:dCe,FillImageDefaults:uCe,makeSeriesTooltip:hCe,Property:co,Label:pCe}=R,Ni=class extends lCe{constructor(){super(...arguments),this.fill="black",this.fillGradientDefaults=new cCe,this.fillPatternDefaults=new dCe,this.fillImageDefaults=new uCe,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 pCe,this.tooltip=hCe()}getStyle(){const{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,cornerRadius:a}=this;return{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,cornerRadius:a,opacity:1}}};S([co],Ni.prototype,"angleKey"),S([co],Ni.prototype,"angleName"),S([co],Ni.prototype,"radiusKey"),S([co],Ni.prototype,"radiusName"),S([co],Ni.prototype,"fill"),S([co],Ni.prototype,"fillGradientDefaults"),S([co],Ni.prototype,"fillPatternDefaults"),S([co],Ni.prototype,"fillImageDefaults"),S([co],Ni.prototype,"fillOpacity"),S([co],Ni.prototype,"stroke"),S([co],Ni.prototype,"strokeWidth"),S([co],Ni.prototype,"strokeOpacity"),S([co],Ni.prototype,"lineDash"),S([co],Ni.prototype,"lineDashOffset"),S([co],Ni.prototype,"cornerRadius"),S([co],Ni.prototype,"itemStyler"),S([co],Ni.prototype,"rotation"),S([co],Ni.prototype,"stackGroup"),S([co],Ni.prototype,"normalizedTo"),S([co],Ni.prototype,"label"),S([co],Ni.prototype,"tooltip");var{motion:gCe}=R;function PH(){const e={startAngle:new Map,endAngle:new Map},t=["startAngle","endAngle"],i=(r,a,l)=>{t.forEach(c=>{const d=e[c];let u=(l==="removed"||l==="updated"?r:a)[c],h=(l==="removed"?r:a)[c];isNaN(h)&&(h=r.previousDatum?.[c]??NaN);const p=u-h;Math.abs(p)>Math.PI&&(u-=Math.sign(p)*2*Math.PI),d.set(a,{from:u,to:h})})},o=(r,a)=>({startAngle:e.startAngle.get(r)[a],endAngle:e.endAngle.get(r)[a]});return{calculate:i,from:r=>o(r,"from"),to:r=>o(r,"to")}}function EH(e,t,i){if(i==="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 i==="added"&&e.previousDatum!=null?"updated":i}function fCe(e){const t=PH();return{toFn:(s,n,r)=>{const{startAngle:a,endAngle:l}=t.to(n);let c,d,u,h,p;return r==="removed"?(c=s.innerRadius,d=s.innerRadius,u=s.columnWidth,h=s.axisInnerRadius,p=s.axisOuterRadius):(c=isNaN(n.innerRadius)?e:n.innerRadius,d=isNaN(n.outerRadius)?e:n.outerRadius,u=isNaN(n.columnWidth)?s.columnWidth:n.columnWidth,h=n.axisInnerRadius,p=n.axisOuterRadius),{innerRadius:c,outerRadius:d,columnWidth:u,axisInnerRadius:h,axisOuterRadius:p,startAngle:a,endAngle:l}},fromFn:(s,n,r)=>{r=EH(s,n,r),t.calculate(s,n,r);const{startAngle:a,endAngle:l}=t.from(n);let c,d,u,h,p;r==="removed"||r==="updated"?(c=s.innerRadius,d=s.outerRadius,u=s.columnWidth,h=s.axisInnerRadius,p=s.axisOuterRadius):(c=e,d=e,u=n.columnWidth,h=n.axisInnerRadius,p=n.axisOuterRadius);const g=gCe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[r];return{innerRadius:c,outerRadius:d,columnWidth:u,axisInnerRadius:h,axisOuterRadius:p,startAngle:a,endAngle:l,phase:g}}}}function mCe(e,{innerRadius:t,outerRadius:i,columnWidth:o,axisInnerRadius:s,axisOuterRadius:n,startAngle:r,endAngle:a}){return{innerRadius:t,outerRadius:i,columnWidth:o,axisInnerRadius:s,axisOuterRadius:n,startAngle:r,endAngle:a}}var{SectorBox:Fw,motion:yCe}=R;function uL(e){const{negative:t,innerRadius:i,outerRadius:o,stackInnerRadius:s,stackOuterRadius:n}=e;return{innerRadius:t?n:s,outerRadius:t?s:n,clipInnerRadius:t?o:i,clipOuterRadius:t?i:o}}function vCe(e){const t=PH();return{toFn:(s,n,r)=>{const{startAngle:a,endAngle:l}=t.to(n);let c,d,u;if(r==="removed")c=e,d=e,u=new Fw(a,l,c,d);else{let h,p;({innerRadius:c,outerRadius:d,clipInnerRadius:h,clipOuterRadius:p}=uL(n)),isNaN(c)&&(c=e),isNaN(d)&&(d=e),isNaN(h)&&(h=e),isNaN(p)&&(p=e),u=new Fw(a,l,h,p)}return{innerRadius:c,outerRadius:d,startAngle:a,endAngle:l,clipSector:u}},fromFn:(s,n,r)=>{r=EH(s,n,r),t.calculate(s,n,r);const{startAngle:a,endAngle:l}=t.from(n);let c,d,u;r==="removed"||r==="updated"?(c=s.innerRadius,d=s.outerRadius,u=s.clipSector):(c=e,d=e),u??(u=new Fw(a,l,c,d));const h=yCe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[r];return{innerRadius:c,outerRadius:d,startAngle:a,endAngle:l,clipSector:u,phase:h}}}}function bCe(e,t){const{startAngle:i,endAngle:o}=t,{innerRadius:s,outerRadius:n,clipInnerRadius:r,clipOuterRadius:a}=uL(t),l=new Fw(i,o,r,a);return{innerRadius:s,outerRadius:n,startAngle:i,endAngle:o,clipSector:l}}var{Sector:CCe,SectorBox:SCe,PolarZIndexMap:hL}=R,Nw=class extends LH{constructor(e){super(e,{animationResetFns:{item:bCe}}),this.properties=new Ni}setZIndex(e){return super.setZIndex(e),this.contentGroup.zIndex=[0,hL.FOREGROUND,e],this.highlightGroup.zIndex=[0,hL.HIGHLIGHT,e],this.labelGroup.zIndex=[0,hL.LABEL,e],!0}getStackId(){return`nightingale-stack-${this.seriesGrouping?.groupIndex??this.id}-yValues`}nodeFactory(){return new CCe}updateItemPath(e,t,i){const{negative:o}=t;if(e.centerX=0,e.centerY=0,e.startOuterCornerRadius=o?0:this.properties.cornerRadius,e.endOuterCornerRadius=o?0:this.properties.cornerRadius,e.startInnerCornerRadius=o?this.properties.cornerRadius:0,e.endInnerCornerRadius=o?this.properties.cornerRadius:0,i){const{startAngle:s,endAngle:n}=t,{innerRadius:r,outerRadius:a,clipInnerRadius:l,clipOuterRadius:c}=uL(t);e.innerRadius=r,e.outerRadius=a,e.startAngle=s,e.endAngle=n,e.clipSector=new SCe(s,n,l,c)}}getColumnTransitionFunctions(){const e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return vCe(e)}hasItemStylers(){return this.properties.itemStyler!=null}};Nw.className="NightingaleSeries",Nw.type="nightingale";var{commonSeriesOptionsDefs:xCe,nightingaleSeriesThemeableOptionsDef:wCe}=R,DCe={...xCe,...wCe,type:ee(je("nightingale")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H,grouped:U,stacked:U,stackGroup:H,normalizedTo:ne},{ThemeConstants:{POLAR_AXIS_TYPE:FH,POLAR_AXIS_SHAPE:NH}}=R,MCe={series:{fill:{$palette:"fill"},stroke:{$if:[{$eq:[{$palette:"type"},"inbuilt"]},{$ref:"chartBackgroundColor"},{$palette:"stroke"}]},fillGradientDefaults:R.FILL_GRADIENT_RADIAL_SERIES_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,strokeWidth:1,label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},highlight:R.multiSeriesHighlightStyle()},axes:{[FH.ANGLE_CATEGORY]:{shape:{$findFirstSiblingNotOperation:NH.CIRCLE},groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[FH.RADIUS_NUMBER]:{shape:{$findFirstSiblingNotOperation:NH.CIRCLE}}}},{ThemeConstants:{POLAR_AXIS_TYPE:OH}}=R,kCe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"nightingale",moduleFactory:e=>new Nw(e),defaultAxes:[{type:OH.ANGLE_CATEGORY},{type:OH.RADIUS_NUMBER}],themeTemplate:MCe,stackable:!0,groupable:!0,stackedByDefault:!0},ACe={type:"series",name:"nightingale",chartType:"polar",enterprise:!0,options:DCe,create:e=>new Nw(e)},{SeriesProperties:ICe,FillGradientDefaults:TCe,FillPatternDefaults:RCe,FillImageDefaults:LCe,makeSeriesTooltip:PCe,Property:Oi,Label:BH,DropShadow:ECe}=R,FCe=class extends BH{},pL=class extends BH{constructor(){super(...arguments),this.spacing=0}};S([Oi],pL.prototype,"spacing"),S([Oi],pL.prototype,"placement");var Zi=class extends ICe{constructor(){super(...arguments),this.fills=[],this.fillGradientDefaults=new TCe,this.fillPatternDefaults=new RCe,this.fillImageDefaults=new LCe,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 ECe().set({enabled:!1}),this.label=new FCe,this.stageLabel=new pL,this.tooltip=PCe()}getStyle(e=0){const{fills:t,strokes:i,fillOpacity:o,strokeWidth:s,strokeOpacity:n,lineDash:r,lineDashOffset:a}=this;return{fill:t[e%t.length],fillOpacity:o,stroke:i[e%i.length],strokeWidth:s,strokeOpacity:n,lineDash:r,lineDashOffset:a,opacity:1}}};S([Oi],Zi.prototype,"stageKey"),S([Oi],Zi.prototype,"valueKey"),S([Oi],Zi.prototype,"fills"),S([Oi],Zi.prototype,"fillGradientDefaults"),S([Oi],Zi.prototype,"fillPatternDefaults"),S([Oi],Zi.prototype,"fillImageDefaults"),S([Oi],Zi.prototype,"fillOpacity"),S([Oi],Zi.prototype,"strokes"),S([Oi],Zi.prototype,"strokeWidth"),S([Oi],Zi.prototype,"strokeOpacity"),S([Oi],Zi.prototype,"lineDash"),S([Oi],Zi.prototype,"lineDashOffset"),S([Oi],Zi.prototype,"direction"),S([Oi],Zi.prototype,"reverse"),S([Oi],Zi.prototype,"spacing"),S([Oi],Zi.prototype,"aspectRatio"),S([Oi],Zi.prototype,"itemStyler"),S([Oi],Zi.prototype,"shadow"),S([Oi],Zi.prototype,"label"),S([Oi],Zi.prototype,"stageLabel"),S([Oi],Zi.prototype,"tooltip");function GH(e,{x:t,y:i,top:o,right:s,bottom:n,left:r}){e.x0=t-o/2,e.x1=t+o/2,e.x2=t+n/2,e.x3=t-n/2,e.y0=i-r/2,e.y1=i-s/2,e.y2=i+s/2,e.y3=i+r/2}function NCe(e){return{fromFn:(s,n)=>{const{x:r,y:a}=n;let{top:l,right:c,bottom:d,left:u}=n;return e==="vertical"?(l=0,d=0):(u=0,c=0),{x:r,y:a,top:l,right:c,bottom:d,left:u}},toFn:(s,n)=>{const{x:r,y:a,top:l,right:c,bottom:d,left:u}=n;return{x:r,y:a,top:l,right:c,bottom:d,left:u}},applyFn:GH}}var{StateMachine:OCe,valueProperty:zH,SeriesNodePickMode:VH,CachedTextMeasurerPool:BCe,TextUtils:GCe,createDatumId:zCe,BBox:gL,Group:fL,Selection:Ow,Text:_H,PointerEvents:HH,applyShapeStyle:VCe,mergeDefaults:$H,fromToMotion:_Ce,seriesLabelFadeInAnimation:HCe,getShapeStyle:mL,getLabelStyles:$Ce}=R,Bw=class extends R.DataModelSeries{constructor(e){super({moduleCtx:e,categoryKey:void 0,pickModes:[VH.EXACT_SHAPE_MATCH,VH.NEAREST_NODE]}),this.properties=new Zi,this.itemGroup=this.contentGroup.appendChild(new fL({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new fL({name:"itemLabelGroup"})),this.stageLabelGroup=this.contentGroup.appendChild(new fL({name:"stageLabelGroup"})),this.datumSelection=Ow.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=Ow.select(this.itemLabelGroup,_H),this.stageLabelSelection=Ow.select(this.stageLabelGroup,_H),this.highlightDatumSelection=Ow.select(this.highlightGroup,()=>this.nodeFactory()),this.animationState=new OCe("empty",{empty:{update:{target:"ready",action:()=>this.animateEmptyUpdateReady()},reset:"empty",skip:"ready"},ready:{clear:"empty",reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable()),this.itemLabelGroup.pointerEvents=HH.None,this.stageLabelGroup.pointerEvents=HH.None}addChartEventListeners(){this.cleanup.register(this.ctx.eventsHub.on("legend:item-click",e=>this.onLegendItemClick(e)))}nodeFactory(){return new Pl}getNodeData(){return this.contextNodeData?.nodeData}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}async processData(e){if(this.data==null)return;const{id:t,visible:i,ctx:{legendManager:o}}=this,{stageKey:s,valueKey:n}=this.properties,r="category",a="number",l=(d,u,h)=>i&&o.getItemEnabled({seriesId:t,itemId:h}),c=this.visible?{}:{forceValue:0};await this.requestDataModel(e,this.data,{props:[zH(s,r,{id:"xValue"}),zH(n,a,{id:"yValue",...c,validation:l,invalidValue:0})]})}createNodeData(){const{id:e,dataModel:t,processedData:i,properties:o,visible:s,ctx:{legendManager:n}}=this,{stageKey:r,valueKey:a,direction:l,reverse:c=l==="horizontal",spacing:d,aspectRatio:u,label:h,stageLabel:p}=o;if(t==null||i==null)return;const g=l==="horizontal",f=t.resolveColumnById(this,"xValue",i),y=t.resolveColumnById(this,"yValue",i),v=t.getDomain(this,"xValue","value",i),b=t.getDomain(this,"yValue","value",i),C=BCe.getMeasurer({font:p});let x,D;g?(x="center",D=p.placement==="before"?"bottom":"top"):(x=p.placement==="after"?"left":"right",D="middle");const k=p.enabled?[]:void 0;let A=0,w=0,M=0;const T=i.dataSources.get(this.id)??[];T.forEach((W,j)=>{const X=f[j],q=y[j],Q=s&&n.getItemEnabled({seriesId:e,itemId:j});if(M+=q,k==null)return;const ue=this.getLabelText(X,W,r,"x",v,this.properties.stageLabel,{datum:W,value:q,stageKey:r,valueKey:a}),{width:de}=C.measureText(ue),te=ue.split(`
25
25
  `).length*GCe.getLineHeight(h.fontSize);A=Math.max(A,de),w=Math.max(w,te),k.push({x:NaN,y:NaN,text:ue,textAlign:x,textBaseline:D,visible:Q})});const L=this._nodeDataDependencies?.seriesRectWidth??0,N=this._nodeDataDependencies?.seriesRectHeight??0,O=d*(i.input.count-1);let F;if(g){const W=w+p.spacing;F=new gL(0,p.placement==="before"?W:0,L,N-W)}else{const W=A+p.spacing;F=new gL(p.placement==="after"?0:W,0,L-W,N)}if(u!=null&&u!==0){const W=l==="horizontal"?1/u:u,j=Math.min(F.width,F.height*W),X=j/W;F=new gL(F.x+(F.width-j)/2,F.y+(F.height-X)/2,j,X)}let E,G;g?G=p.placement==="before"?F.y-p.spacing:F.y+F.height+p.spacing:E=p.placement==="after"?F.x+F.width+p.spacing:F.x-p.spacing;const B=F.width-(g?O:0),z=F.height-(g?0:O);if(B<0||z<0)return;const V=[],$=[];let _=0;return T.forEach((W,j)=>{const X=f[j],q=y[j],Q=s&&n.getItemEnabled({seriesId:e,itemId:j}),ue=_+q,de=(_+ue)/(2*M),te=(ue-_)/M,se=g?B*de+d*j:B*.5,ie=g?z*.5:z*de+d*j,le=F.x+se,ye=F.y+ie;if(k!=null){const oe=k[j];oe.x=E??le,oe.y=G??ye}let Me,De,fe,Ge;if(g){const oe=B*te;Me=oe,fe=oe;const pe=(se+oe/2)*(z/F.width),we=(se-oe/2)*(z/F.width);De=c?F.height-pe:pe,Ge=c?F.height-we:we}else{const oe=z*te;De=oe,Ge=oe;const pe=(ie-oe/2)*(B/F.height),we=(ie+oe/2)*(B/F.height);Me=c?F.width-pe:pe,fe=c?F.width-we:we}const ce=this.getLabelText(q,W,a,"y",b,h,{datum:W,value:q,stageKey:r,valueKey:a}),be={x:le,y:ye,text:ce,textAlign:"center",textBaseline:"middle",visible:Q};$.push(be),V.push({series:this,itemId:a,datum:W,datumIndex:j,index:j,xValue:X,yValue:q,x:le,y:ye,top:Me,right:De,bottom:fe,left:Ge,label:be,enabled:Q,midPoint:{x:le,y:ye}}),_=ue}),{itemId:e,nodeData:V,labelData:$,stageLabelData:k,bounds:F}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update({seriesRect:e}){this.checkResize(e);const{datumSelection:t,labelSelection:i,stageLabelSelection:o,highlightDatumSelection:s}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let n=this.ctx.highlightManager?.getActiveHighlight();n!=null&&(n.series!==this||n.datum==null)&&(n=void 0);const r=this.contextNodeData?.nodeData??[],a=this.contextNodeData?.labelData??[],l=this.contextNodeData?.stageLabelData??[];this.datumSelection=this.updateDatumSelection({nodeData:r,datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:a,labelSelection:i}),this.updateLabelNodes({labelSelection:i,labelProperties:this.properties.label}),this.stageLabelSelection=this.updateStageLabelSelection({stageLabelData:l,stageLabelSelection:o}),this.updateLabelNodes({labelSelection:o,labelProperties:this.properties.stageLabel}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:n!=null?[n]:[],datumSelection:s}),this.updateDatumNodes({datumSelection:s,isHighlight:!0}),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData)}getItemStyle({datumIndex:e,datum:t},i){const{id:o,properties:s}=this,{stageKey:n,valueKey:r,itemStyler:a,fillGradientDefaults:l,fillPatternDefaults:c,fillImageDefaults:d}=s,u=this.getHighlightStyle(i,e),h=$H(u,s.getStyle(e));let p=mL(h,l,c,d);if(a!=null&&e!=null){const g=this.ctx.highlightManager?.getActiveHighlight(),f=this.cachedDatumCallback(zCe(e,i?"highlight":"node"),()=>{const y=this.getHighlightStateString(g,i,e);return this.callWithContext(a,{seriesId:o,datum:t,stageKey:n,valueKey:r,highlighted:i,highlightState:y,...p})});f&&(p=mL($H(f,p),l,c,d))}return p}updateDatumNodes(e){const{datumSelection:t,isHighlight:i}=e,{properties:o}=this,{shadow:s}=o,n=this.contextNodeData?.bounds,r=n?{series:n,axis:n}:void 0;t.each((a,l)=>{const c=this.getItemStyle(l,i);VCe(a,c,r),GH(a,l),a.fillShadow=s})}updateLabelSelection(e){return e.labelSelection.update(this.properties.label.enabled?e.labelData:[])}updateStageLabelSelection(e){return e.stageLabelSelection.update(e.stageLabelData)}updateLabelNodes(e){e.labelSelection.each((t,i,o)=>{const{visible:s,x:n,y:r,text:a,textAlign:l,textBaseline:c}=i,d=$Ce(this,void 0,this.properties,e.labelProperties),{color:u,fontSize:h,fontStyle:p,fontWeight:g,fontFamily:f}=d;t.visible=s,t.x=n,t.y=r,t.text=a,t.fill=u,t.fillOpacity=this.getHighlightStyle(!1,o).opacity??1,t.fontStyle=p,t.fontWeight=g,t.fontSize=h,t.fontFamily=f,t.textAlign=l,t.textBaseline=c,t.setBoxing(d)})}computeFocusBounds(e){const t=this.getNodeData()?.[e.datumIndex];if(t!==void 0){for(const i of this.datumSelection)if(i.datum===t)return i.node}}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,properties:s}=this,{stageKey:n,valueKey:r,tooltip:a}=s;if(!i||!o)return;const l=o.dataSources.get(this.id)?.[e],c=i.resolveColumnById(this,"xValue",o)[e],d=i.resolveColumnById(this,"yValue",o)[e];if(c==null)return;const u=this.getLabelText(c,l,n,"x",i.getDomain(this,"xValue","value",o),this.properties.stageLabel,{datum:l,value:c,stageKey:n,valueKey:r}),h=this.getLabelText(d,l,r,"y",i.getDomain(this,"yValue","value",o),this.properties.stageLabel,{datum:l,value:d,stageKey:n,valueKey:r}),p=this.getItemStyle({datumIndex:e,datum:l},!1);return this.formatTooltipWithContext(a,{symbol:this.legendItemSymbol(e),data:[{label:u,value:h}]},{seriesId:t,datum:l,title:void 0,stageKey:n,valueKey:r,...p})}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}pickNodeClosestDatum({x:e,y:t}){let i=1/0,o;return this.datumSelection.each((s,n)=>{const r=s.distanceSquared(e,t);r<i&&(i=r,o=n)}),o!=null?{datum:o,distance:Math.sqrt(i)}:void 0}legendItemSymbol(e){const{fills:t,strokes:i,strokeWidth:o,fillOpacity:s,strokeOpacity:n,lineDash:r,lineDashOffset:a}=this.properties,l=t[e%t.length]??"black",c=i[e%i.length]??"black";return{marker:mL({fill:l,fillOpacity:s,stroke:c,strokeWidth:o,strokeOpacity:n,lineDash:r,lineDashOffset:a},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults)}}getLegendData(e){const{processedData:t,dataModel:i,id:o,ctx:{legendManager:s},visible:n}=this;if(!i||!t||e!=="category")return[];const{showInLegend:r}=this.properties,a=[],l=i.resolveColumnById(this,"xValue",t);return(t.dataSources.get(this.id)??[]).forEach((d,u)=>{const h=l[u];a.push({legendType:"category",id:o,itemId:u,seriesId:o,enabled:n&&s.getItemEnabled({seriesId:o,itemId:u}),label:{text:h},symbol:this.legendItemSymbol(u),hideInLegend:!r})}),a}animateReset(){this.ctx.animationManager.skipCurrentBatch(),this.ctx.animationManager.stopByAnimationGroupId(this.id)}animateEmptyUpdateReady(){const{datumSelection:e,labelSelection:t,properties:i}=this,o=NCe(i.direction);_Ce(this.id,"nodes",this.ctx.animationManager,[e],o),HCe(this,"labels",this.ctx.animationManager,t)}hasItemStylers(){return this.properties.itemStyler!=null}};Bw.className="PyramidSeries",Bw.type="pyramid";var{commonSeriesOptionsDefs:WCe,pyramidSeriesThemeableOptionsDef:jCe}=R,UCe={...jCe,...WCe,type:ee(je("pyramid")),stageKey:ee(H),valueKey:ee(H)},{ThemeSymbols:{DEFAULT_SHADOW_COLOUR:KCe}}=R,YCe={series:{direction:"vertical",strokeWidth:{$isUserOption:["./strokes/0",2,0]},spacing:2,fills:{$palette:"fills"},strokes:{$palette:"strokes"},fillGradientDefaults:R.FILL_GRADIENT_LINEAR_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"chartBackgroundColor"}},stageLabel:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"},spacing:12},shadow:{enabled:!1,color:KCe,xOffset:3,yOffset:3,blur:5},highlight:R.singleSeriesHighlightStyle()}},XCe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"pyramid",moduleFactory:e=>new Bw(e),solo:!0,themeTemplate:YCe},ZCe={type:"series",name:"pyramid",chartType:"standalone",enterprise:!0,options:UCe,create:e=>new Bw(e)},{ThemeConstants:{POLAR_AXIS_TYPE:qCe}}=R,WH={series:{stroke:{$palette:"stroke"},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},marker:{enabled:!0,fill:{$palette:"fill"},stroke:{$palette:"stroke"},fillGradientDefaults:R.FILL_GRADIENT_RADIAL_REVERSED_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,fillOpacity:1,shape:"circle",size:6,strokeOpacity:1,strokeWidth:{$isUserOption:["./stroke",1,0]}},highlight:R.multiSeriesHighlightStyle(),tooltip:{range:{$path:["/tooltip/range","nearest"]}}},axes:{[qCe.ANGLE_CATEGORY]:{label:{spacing:10}}}},QCe=R.mergeDefaults({series:{stroke:R.SAFE_STROKE_FILL_OPERATION,strokeWidth:2}},WH),JCe=R.mergeDefaults({series:{fill:{$palette:"fill"},fillGradientDefaults:R.FILL_GRADIENT_LINEAR_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,fillOpacity:.8,strokeWidth:2,marker:{enabled:!1}}},WH),{Label:e0e,SeriesMarker:t0e,SeriesProperties:i0e,makeSeriesTooltip:o0e,Property:xn}=R,Gs=class extends i0e{constructor(){super(...arguments),this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.rotation=0,this.marker=new t0e,this.label=new e0e,this.tooltip=o0e(),this.connectMissingData=!1}};S([xn],Gs.prototype,"angleKey"),S([xn],Gs.prototype,"radiusKey"),S([xn],Gs.prototype,"angleName"),S([xn],Gs.prototype,"radiusName"),S([xn],Gs.prototype,"stroke"),S([xn],Gs.prototype,"strokeWidth"),S([xn],Gs.prototype,"strokeOpacity"),S([xn],Gs.prototype,"lineDash"),S([xn],Gs.prototype,"lineDashOffset"),S([xn],Gs.prototype,"rotation"),S([xn],Gs.prototype,"marker"),S([xn],Gs.prototype,"label"),S([xn],Gs.prototype,"tooltip"),S([xn],Gs.prototype,"connectMissingData");var{DEFAULT_POLAR_DIRECTION_KEYS:s0e,DEFAULT_POLAR_DIRECTION_NAMES:n0e,ChartAxisDirection:Ur,PolarAxis:r0e,SeriesNodePickMode:jH,valueProperty:UH,fixNumericExtent:a0e,seriesLabelFadeInAnimation:l0e,markerFadeInAnimation:c0e,resetMarkerFn:d0e,animationValidation:u0e,computeMarkerFocusBounds:h0e,extent:p0e,BBox:g0e,Group:f0e,Path:m0e,PointerEvents:y0e,Selection:KH,Text:v0e,Marker:b0e,mergeDefaults:C0e,getShapeStyle:S0e,updateLabelNode:x0e}=R,w0e=class extends R.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},yL=class extends R.PolarSeries{constructor(e){super({moduleCtx:e,categoryKey:"angleValue",propertyKeys:s0e,propertyNames:n0e,pickModes:[jH.NEAREST_NODE,jH.EXACT_SHAPE_MATCH],canHaveAxes:!0,animationResetFns:{item:d0e},clipFocusBox:!1}),this.properties=new Gs,this.NodeEvent=w0e,this.lineGroup=this.contentGroup.appendChild(new f0e({name:"radar-line"})),this.lineSelection=KH.select(this.lineGroup,m0e),this.resetInvalidToZero=!1,this.circleCache={r:0,cx:0,cy:0},this.lineGroup.zIndex=0,this.itemGroup.zIndex=1}nodeFactory(){return new b0e}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===Ur.Angle)return t.getDomain(this,"angleValue","value",i);{const o=t.getDomain(this,"radiusValue","value",i),s=p0e(o.length===0?o:[0].concat(o));return a0e(s)}}async processData(e){const{angleKey:t,radiusKey:i}=this.properties,o=[];this.ctx.animationManager.isSkipped()||o.push(u0e());const s=this.axes[Ur.Radius]?.scale.type,n=this.axes[Ur.Angle]?.scale.type;await this.requestDataModel(e,this.data,{props:[UH(t,n,{id:"angleValue"}),UH(i,s,{id:"radiusValue",invalidValue:void 0}),...o]}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e===o.r&&t===o.cx&&i===o.cy?!1:(this.circleCache={r:e,cx:t,cy:i},!0)}getAxisInnerRadius(){const e=this.axes[Ur.Radius];return e instanceof r0e?this.radius*e.innerRadiusRatio:0}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}createNodeData(){const{processedData:e,dataModel:t}=this;if(!e||!t)return;const{angleKey:i,radiusKey:o,angleName:s,radiusName:n,marker:r,label:a}=this.properties,l=this.axes[Ur.Angle]?.scale,c=this.axes[Ur.Radius]?.scale;if(!l||!c)return;const d=t.resolveColumnById(this,"angleValue",e),u=t.resolveColumnById(this,"radiusValue",e),h=this.getAxisInnerRadius(),p=this.getSeriesDomain(Ur.Radius),f=(e.dataSources.get(this.id)??[]).map((y,v)=>{const b=d[v],C=u[v],x=l.convert(b),D=this.radius+h-c.convert(C),k=Math.cos(x),A=Math.sin(x),w=k*D,M=A*D;let T;if(a.enabled){const L=this.getLabelText(C,y,o,"radius",p,a,{value:C,datum:y,angleKey:i,radiusKey:o,angleName:s,radiusName:n});if(L){let N="right";_t(k,0)?N="center":k>0&&(N="left");let O="bottom";_t(A,0)?O="middle":A>0&&(O="top"),T={x:w+k*r.size,y:M+A*r.size,text:L,textAlign:N,textBaseline:O}}}return{series:this,datum:y,datumIndex:v,index:v,point:{x:w,y:M,size:r.size},midPoint:{x:w,y:M},label:T,angleValue:b,radiusValue:C,missing:!St(x)||!St(D)}});return{itemId:o,nodeData:f,labelData:f}}update({seriesRect:e}){const t=this.checkResize(e),i=!this.ctx.animationManager.isSkipped(),{series:o}=this.ctx.highlightManager?.getActiveHighlight()??{};this.highlightGroup.visible=(i||this.visible)&&o===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.updatePathNodes(),this.updateMarkers(this.itemSelection,!1),this.updateMarkers(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePathSelections(){const e=this.visible?[!0]:[];this.lineSelection.update(e)}updateMarkerSelection(){this.properties.marker.isDirty()&&(this.itemSelection.clear(),this.itemSelection.cleanup(),this.itemSelection=KH.select(this.itemGroup,()=>this.nodeFactory(),!1)),this.itemSelection.update(this.properties.marker.enabled?this.nodeData:[])}getMarkerFill(e){return e?.fill??this.properties.marker.fill}getDatumStylerProperties(e){const{id:t,properties:i}=this,{angleKey:o,radiusKey:s}=i;return{seriesId:t,datum:e,angleKey:o,radiusKey:s}}updateMarkers(e,t){const{visible:i}=this,{marker:o,stroke:s,strokeWidth:n,strokeOpacity:r}=this.properties;let a=[];if(i&&o.shape&&o.enabled)if(t){const c=this.ctx.highlightManager?.getActiveHighlight();c?.datum&&(a=[c])}else a=this.nodeData;const l=this.getShapeFillBBox();e.update(a).each((c,d)=>{const u=this.getMarkerStyle(o,d,this.getDatumStylerProperties(d),t,void 0,{stroke:s,strokeWidth:n,strokeOpacity:r});this.applyMarkerStyle(u,c,d.point,l)})}updateLabels(){this.labelSelection.update(this.nodeData).each((e,t)=>{if(t.label){e.fillOpacity=this.getHighlightStyle(!1,t.datumIndex).opacity??1;const o=this.ctx.highlightManager?.getActiveHighlight(),s=this.getHighlightStateString(o,!1,t.datumIndex);x0e(this,e,this.properties,this.properties.label,t.label,!1,s)}})}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d,marker:u}=n,h=s[Ur.Angle],p=s[Ur.Radius];if(!i||!o||!h||!p)return;const g=o.dataSources.get(this.id)?.[e],f=i.resolveColumnById(this,"angleValue",o)[e],y=i.resolveColumnById(this,"radiusValue",o)[e];if(f==null)return;const v=this.getMarkerStyle(u,{datum:g,datumIndex:e},this.getDatumStylerProperties(g),!1);return this.formatTooltipWithContext(d,{heading:this.getAxisValueText(h,"tooltip",f,g,r,void 0),symbol:this.legendItemSymbol(),data:[{label:c,fallbackLabel:l,value:this.getAxisValueText(p,"tooltip",y,g,l,void 0)}]},{seriesId:t,datum:g,title:a,angleKey:r,radiusKey:l,angleName:a,radiusName:c,...v})}legendItemSymbol(){const{stroke:e,strokeWidth:t,strokeOpacity:i,lineDash:o,marker:s}=this.properties;return{marker:S0e({shape:s.shape,enabled:s.enabled||t<=0,fill:this.getMarkerFill()??s.stroke??e??"rgba(0, 0, 0, 0)",stroke:s.stroke??e??"rgba(0, 0, 0, 0)",fillOpacity:s.fillOpacity,strokeOpacity:s.strokeOpacity,strokeWidth:s.strokeWidth,lineDash:s.lineDash,lineDashOffset:s.lineDashOffset},s.fillGradientDefaults,s.fillPatternDefaults,s.fillImageDefaults),line:{stroke:e,strokeOpacity:i,strokeWidth:t,lineDash:o}}}getLegendData(e){if(e!=="category")return[];const{id:t,ctx:{legendManager:i},visible:o}=this,{radiusKey:s,radiusName:n,showInLegend:r}=this.properties;return[{legendType:"category",id:t,itemId:s,seriesId:t,enabled:o&&i.getItemEnabled({seriesId:t,itemId:s}),label:{text:n??s},symbol:this.legendItemSymbol(),hideInLegend:!r}]}pickNodeClosestDatum(e){const{nodeData:t,centerX:i,centerY:o}=this,{x:s,y:n}=e,r=this.radius;if(Math.sqrt((s-i)**2+(n-o)**2)>r+this.properties.marker.size)return;let l=1/0,c;for(const d of t){const{point:{x:u=NaN,y:h=NaN}={}}=d;if(isNaN(u)||isNaN(h))continue;const p=Math.sqrt((e.x-u-i)**2+(e.y-h-o)**2);p<l&&(l=p,c=d)}if(c){const d=Math.max(l-(c.point?.size??0),0);return{datum:c,distance:d}}}computeLabelsBBox(){const{label:e}=this.properties;this.maybeRefreshNodeData();const t=[],i=new v0e;return this.nodeData.forEach(o=>{if(!e.enabled||!o.label)return;i.text=o.label.text,i.x=o.label.x,i.y=o.label.y,i.setFont(e),i.setAlign(o.label);const s=i.getBBox();t.push(s)}),t.length===0?null:g0e.merge(t)}getLineNode(){return this.lineSelection?.at(0)}beforePathAnimation(){this.updatePathNodes()}updatePathNodes(){const e=this.getLineNode();if(!e)return;const{strokeWidth:t,stroke:i,strokeOpacity:o,lineDash:s,lineDashOffset:n,opacity:r}=C0e(this.getHighlightStyle(),this.properties);e.setProperties({fill:void 0,lineJoin:"round",lineCap:"round",pointerEvents:y0e.None,opacity:r,stroke:i,strokeWidth:t,strokeOpacity:o,lineDash:s,lineDashOffset:n})}getLinePoints(){const{nodeData:e,resetInvalidToZero:t}=this,{connectMissingData:i}=this.properties;if(e.length===0)return[];const o=this.axes[Ur.Radius],n=this.axes[Ur.Angle]?.isReversed(),a=o?.isReversed()&&!n?[...e].reverse():e,l=[];let c=!1,d;return a.forEach((u,h)=>{let{x:p,y:g}=u.point;const f=isNaN(p)||isNaN(g);f||(d??(d=u)),f&&!i&&(p=0,g=0);const y=h===0||!t&&!i&&(f||c);l.push({x:p,y:g,moveTo:y}),c=f}),d!==void 0&&l.push({x:d.point.x,y:d.point.y,moveTo:!1}),l}animateSinglePath(e,t,i){const{path:o}=e;o.clear(!0);const s=this.getAxisInnerRadius(),n=this.axes[Ur.Radius],a=n?.isReversed()?this.radius+s-n?.scale.convert(0):s;t.forEach(l=>{const{x:c,y:d,arc:u,radius:h=0,startAngle:p=0,endAngle:g=0,moveTo:f}=l,y=Math.atan2(d,c),v=a*Math.cos(y),b=a*Math.sin(y),C=i,x=v*(1-C)+c*C,D=b*(1-C)+d*C;u?o.arc(c,d,h,p,g):f?o.moveTo(x,D):o.lineTo(x,D)}),e.checkPathDirty()}animatePaths(e){const t=this.getLinePoints(),i=this.getLineNode();i&&this.animateSinglePath(i,t,e)}animateEmptyUpdateReady(){const{itemSelection:e,labelSelection:t}=this,{animationManager:i}=this.ctx;this.beforePathAnimation(),i.animate({id:`${this.id}_'path`,groupId:this.id,from:0,to:1,phase:"initial",collapsable:!1,onUpdate:o=>this.animatePaths(o),onStop:()=>this.animatePaths(1)}),c0e(this,i,"added",e),l0e(this,"labels",i,t)}animateWaitingUpdateReady(e){super.animateWaitingUpdateReady(e),this.resetPaths()}animateReadyResize(e){super.animateReadyResize(e),this.resetPaths()}resetPaths(){const e=this.getLineNode();if(e){const{path:t}=e,i=this.getLinePoints();e.fill=void 0,e.stroke=this.properties.stroke,e.strokeWidth=this.properties.strokeWidth,e.strokeOpacity=this.properties.strokeOpacity,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset,t.clear(!0);for(const{x:o,y:s,moveTo:n}of i)n?t.moveTo(o,s):t.lineTo(o,s);e.checkPathDirty()}}getFormattedMarkerStyle(e){const{angleKey:t,radiusKey:i}=this.properties;return this.getMarkerStyle(this.properties.marker,e,{angleKey:t,radiusKey:i},!0)}computeFocusBounds(e){return h0e(this,e)}};yL.className="RadarSeries";var{FillGradientDefaults:D0e,FillPatternDefaults:M0e,FillImageDefaults:k0e,Property:Uv}=R,Pf=class extends Gs{constructor(){super(...arguments),this.fill="black",this.fillGradientDefaults=new D0e,this.fillPatternDefaults=new M0e,this.fillImageDefaults=new k0e,this.fillOpacity=1}};S([Uv],Pf.prototype,"fill"),S([Uv],Pf.prototype,"fillGradientDefaults"),S([Uv],Pf.prototype,"fillPatternDefaults"),S([Uv],Pf.prototype,"fillImageDefaults"),S([Uv],Pf.prototype,"fillOpacity");var{Group:A0e,Path:I0e,PointerEvents:T0e,Selection:R0e,ChartAxisDirection:YH,applyShapeStyle:XH,getShapeFill:L0e,getShapeStyle:P0e,mergeDefaults:E0e}=R,Gw=class extends yL{constructor(e){super(e),this.properties=new Pf,this.areaGroup=this.contentGroup.appendChild(new A0e({name:"radar-area"})),this.areaSelection=R0e.select(this.areaGroup,I0e),this.resetInvalidToZero=!0,this.areaGroup.zIndex=-1}updatePathSelections(){const e=this.visible?[!0]:[];this.areaSelection.update(e),super.updatePathSelections()}getAreaNode(){return this.areaSelection.at(0)}getMarkerFill(e){return e?.fill??this.properties.marker.fill??this.properties.fill}updatePathNodes(){super.updatePathNodes();const{fill:e,fillOpacity:t,opacity:i}=E0e(this.getHighlightStyle(),this.properties),{fill:o,fillOpacity:s}=P0e({fill:e,fillOpacity:t},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults),n=this.getAreaNode();n&&(XH(n,{fill:o,fillOpacity:s,stroke:void 0},this.getShapeFillBBox()),n.setProperties({lineJoin:"round",pointerEvents:T0e.None,opacity:i}))}animatePaths(e){super.animatePaths(e);const t=this.getAreaNode();t&&this.animateSinglePath(t,this.getAreaPoints(),e)}getAreaPoints(){const e=this.getLinePoints(),t=r=>{const a=this.axes[r];return a instanceof R.PolarAxis?a:void 0},i=t(YH.Radius),o=t(YH.Angle);if(!i?.isReversed())return e;const n=o?.getAxisLinePoints()?.points??[];return e.concat(...n)}hasItemStylers(){return this.properties.marker.itemStyler!=null||this.properties.label.itemStyler!=null}resetPaths(){super.resetPaths();const e=this.getAreaNode();if(e){const{path:t}=e,i=this.getAreaPoints(),o=L0e(this.properties.fill,this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults),s=this.getShapeFillBBox();XH(e,{fill:o,stroke:void 0,fillOpacity:this.properties.fillOpacity,lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset},s),e.lineJoin=e.lineCap="round",t.clear(!0),i.forEach(({x:n,y:r,moveTo:a,arc:l,radius:c=0,startAngle:d=0,endAngle:u=0})=>{l?t.arc(n,r,c,d,u):a?t.moveTo(n,r):t.lineTo(n,r)}),t.closePath(),e.checkPathDirty()}}};Gw.className="RadarAreaSeries",Gw.type="radar-area";var{commonSeriesOptionsDefs:F0e,radarAreaSeriesThemeableOptionsDef:N0e}=R,O0e={...F0e,...N0e,type:ee(je("radar-area")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H},{ThemeConstants:{POLAR_AXIS_TYPE:ZH}}=R,B0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-area",moduleFactory:e=>new Gw(e),defaultAxes:[{type:ZH.ANGLE_CATEGORY},{type:ZH.RADIUS_NUMBER}],themeTemplate:JCe},G0e={type:"series",name:"radar-area",chartType:"polar",enterprise:!0,options:O0e,create:e=>new Gw(e)},zw=class extends yL{hasItemStylers(){return this.properties.marker.itemStyler!=null||this.properties.label.itemStyler!=null}updatePathSelections(){this.lineSelection.update(this.visible?[!0]:[])}};zw.className="RadarLineSeries",zw.type="radar-line";var{commonSeriesOptionsDefs:z0e,radarLineSeriesThemeableOptionsDef:V0e}=R,_0e={...z0e,...V0e,type:ee(je("radar-line")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H},{POLAR_AXIS_TYPE:qH}=R.ThemeConstants,H0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-line",moduleFactory:e=>new zw(e),defaultAxes:[{type:qH.ANGLE_CATEGORY},{type:qH.RADIUS_NUMBER}],themeTemplate:QCe},$0e={type:"series",name:"radar-line",chartType:"polar",enterprise:!0,options:_0e,create:e=>new zw(e)},{SeriesProperties:W0e,FillGradientDefaults:j0e,FillPatternDefaults:U0e,FillImageDefaults:K0e,makeSeriesTooltip:Y0e,Property:uo,Label:X0e}=R,qi=class extends W0e{constructor(){super(...arguments),this.fill="black",this.fillGradientDefaults=new j0e,this.fillPatternDefaults=new U0e,this.fillImageDefaults=new K0e,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 X0e,this.tooltip=Y0e()}getStyle(){const{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,cornerRadius:a}=this;return{fill:e,fillOpacity:t,stroke:i,strokeWidth:o,strokeOpacity:s,lineDash:n,lineDashOffset:r,cornerRadius:a,opacity:1}}};S([uo],qi.prototype,"angleKey"),S([uo],qi.prototype,"radiusKey"),S([uo],qi.prototype,"angleName"),S([uo],qi.prototype,"radiusName"),S([uo],qi.prototype,"fill"),S([uo],qi.prototype,"fillGradientDefaults"),S([uo],qi.prototype,"fillPatternDefaults"),S([uo],qi.prototype,"fillImageDefaults"),S([uo],qi.prototype,"fillOpacity"),S([uo],qi.prototype,"stroke"),S([uo],qi.prototype,"strokeWidth"),S([uo],qi.prototype,"strokeOpacity"),S([uo],qi.prototype,"lineDash"),S([uo],qi.prototype,"lineDashOffset"),S([uo],qi.prototype,"cornerRadius"),S([uo],qi.prototype,"itemStyler"),S([uo],qi.prototype,"rotation"),S([uo],qi.prototype,"stackGroup"),S([uo],qi.prototype,"normalizedTo"),S([uo],qi.prototype,"label"),S([uo],qi.prototype,"tooltip");var{SectorBox:QH,motion:Z0e}=R;function q0e(e,t,i){if(i==="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 i==="added"&&e.previousDatum!=null?"updated":i}function JH(e){return{toFn:(o,s,n)=>{let r,a,l,c,d;return n==="removed"?(r=e,a=e,l=s.innerRadius,c=s.outerRadius,d=new QH(r,a,l,c)):(r=s.startAngle,a=s.endAngle,l=isNaN(s.innerRadius)?o.innerRadius:s.innerRadius,c=isNaN(s.outerRadius)?o.outerRadius:s.outerRadius,d=s.clipSector),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,clipSector:d}},fromFn:(o,s,n)=>{n=q0e(o,s,n);let r,a,l,c,d;n==="removed"||n==="updated"?(r=o.startAngle,a=o.endAngle,l=o.innerRadius,c=o.outerRadius,d=o.clipSector):(r=e,a=e,l=s.innerRadius,c=s.outerRadius),d??(d=new QH(r,a,l,c));const u=Z0e.NODE_UPDATE_STATE_TO_PHASE_MAPPING[n];return{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,clipSector:d,phase:u}}}}function Q0e(e,t){return{centerX:0,centerY:0,innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle,clipSector:t.clipSector}}var{DEFAULT_POLAR_DIRECTION_KEYS:J0e,DEFAULT_POLAR_DIRECTION_NAMES:eSe,ChartAxisDirection:Ra,PolarAxis:tSe,diff:iSe,groupAccumulativeValueProperty:e9,keyProperty:oSe,normaliseGroupTo:sSe,valueProperty:nSe,fixNumericExtent:rSe,resetLabelFn:aSe,seriesLabelFadeInAnimation:lSe,seriesLabelFadeOutAnimation:cSe,animationValidation:dSe,angleBetween:uSe,createDatumId:t9,CategoryScale:hSe,Sector:pSe,SectorBox:gSe,motion:i9,isGradientFill:fSe,applyShapeStyle:mSe,getShapeStyle:vL,updateLabelNode:ySe,mergeDefaults:o9}=R,vSe=class extends R.SeriesNodeEvent{constructor(e,t,i,o){super(e,t,i,o),this.angleKey=o.properties.angleKey,this.radiusKey=o.properties.radiusKey}},Vw=class extends R.PolarSeries{constructor(e){super({moduleCtx:e,categoryKey:"radiusValue",propertyKeys:J0e,propertyNames:eSe,canHaveAxes:!0,animationResetFns:{item:Q0e,label:aSe}}),this.properties=new qi,this.NodeEvent=vSe,this.groupScale=new hSe,this.circleCache={r:0,cx:0,cy:0}}get defaultShapeStyle(){const e=this.axes[Ra.Angle]?.scale;return{...this.properties.fillGradientDefaults.toJson(),rotation:R.toDegrees(e.range[0])+90}}nodeFactory(){return new pSe}getSeriesDomain(e){const{dataModel:t,processedData:i}=this;if(!i||!t)return[];if(e===Ra.Angle){const o=t.getDomain(this,"angleValue-end","value",i),s=[o[0]>0?0:o[0],o[1]<0?0:o[1]];return rSe(s)}else return t.getDomain(this,"radiusValue","key",i)}async processData(e){const{angleKey:t,radiusKey:i,normalizedTo:o}=this.properties,s=!this.ctx.animationManager.isSkipped(),n=this.getStackId(),r=`${n}-trailing`,a=[];$i(o)&&a.push(sSe([n,r],Math.abs(o))),s&&(this.processedData&&a.push(iSe(this.id,this.processedData)),a.push(dSe()));const l=this.visible?{}:{forceValue:0},c=this.axes[Ra.Radius]?.scale.type,d=this.axes[Ra.Angle]?.scale.type;await this.requestDataModel(e,this.data,{props:[oSe(i,c,{id:"radiusValue"}),nSe(t,d,{id:"angleValue-raw",invalidValue:null,...l}),...e9(t,"normal","current",{id:"angleValue-end",rangeId:"angleValue-range",invalidValue:null,groupId:n,separateNegative:!0,...l},d),...e9(t,"trailing","current",{id:"angleValue-start",invalidValue:null,groupId:r,separateNegative:!0,...l},d),...a],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}didCircleChange(){const e=this.radius,t=this.centerX,i=this.centerY,o=this.circleCache;return e===o.r&&t===o.cx&&i===o.cy?!1:(this.circleCache={r:e,cx:t,cy:i},!0)}maybeRefreshNodeData(){if(!this.didCircleChange()&&!this.nodeDataRefresh)return;const{nodeData:t=[]}=this.createNodeData()??{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){const e=this.axes[Ra.Radius];return e instanceof tSe?this.radius*e.innerRadiusRatio:0}createNodeData(){const{processedData:e,dataModel:t}=this;if(!t||!e||e.type!=="grouped")return;const i=this.axes[Ra.Angle],o=this.axes[Ra.Radius],s=i?.scale,n=o?.scale;if(!s||!n)return;const r=t.resolveKeysById(this,"radiusValue",e),a=t.resolveColumnById(this,"angleValue-start",e),l=t.resolveColumnById(this,"angleValue-end",e),c=t.resolveColumnById(this,"angleValue-raw",e),d=t.resolveProcessedDataIndexById(this,"angleValue-range");let u=0;o instanceof zd&&(u=o.groupPaddingInner);const{groupScale:h}=this,{index:p,visibleGroupCount:g}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);h.domain=Array.from({length:g}).map((G,B)=>String(B)),h.range=[0,Math.abs(n.bandwidth??0)],h.paddingInner=g>1?u:0;const f=h.bandwidth>=1?h.bandwidth:h.rawBandwidth,y=i.isReversed(),v=o.isReversed(),b=v?this.radius:this.getAxisInnerRadius(),x=(v?this.getAxisInnerRadius():this.radius)+b,D=this.getSeriesDomain(Ra.Angle),{angleKey:k,radiusKey:A,angleName:w,radiusName:M,label:T}=this.properties,L=(G,B,z,V)=>{const $=this.getLabelText(B,G,k,"angle",D,T,{value:B,datum:G,angleKey:k,radiusKey:A,angleName:w,radiusName:M});if($)return{x:z,y:V,text:$,textAlign:"center",textBaseline:"middle"}},N=[],O={itemId:A,nodeData:N,labelData:N};if(!this.visible)return O;const{dataSources:F}=e,E=F.get(this.id)??[];for(const{datumIndex:G,group:B}of t.forEachGroupDatum(this,e)){const z=E[G],V=r[G];if(V==null)return;const $=c[G],_=a[G],W=l[G],j=$>=0&&!Object.is($,-0),X=B.aggregation[d][j?1:0],q=j===y;let Q=s.convert(_,{clamp:!0}),ue=s.convert(W,{clamp:!0}),de=s.convert(0,{clamp:!0}),te=s.convert(X,{clamp:!0});q&&([de,te]=[te,de],[Q,ue]=[ue,Q]);const ie=x-n.convert(V)+h.convert(String(p)),le=ie+f,ye=(ie+le)/2,Me=Q+uSe(Q,ue)/2,De=Math.cos(Me)*ye,fe=Math.sin(Me)*ye,Ge=this.properties.label.enabled?L(z,$,De,fe):void 0,ce=new gSe(Q,ue,ie,le);N.push({series:this,datum:z,datumIndex:G,point:{x:De,y:fe,size:0},midPoint:{x:De,y:fe},label:Ge,angleValue:$,radiusValue:V,innerRadius:ie,outerRadius:le,startAngle:de,endAngle:te,clipSector:ce,reversed:q,index:G})}return O}update({seriesRect:e}){const 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")}getItemStyle(e,t){const{id:i,properties:o}=this,{angleKey:s,radiusKey:n,itemStyler:r,fillGradientDefaults:a,fillPatternDefaults:l,fillImageDefaults:c}=o,d=this.getHighlightStyle(t,e.datumIndex),u=o9(d,o.getStyle());let h=vL(u,a,l,c);if(r!=null&&e!=null){const p=this.cachedDatumCallback(t9(this.getDatumId(e),t?"highlight":"node"),()=>{const g=this.ctx.highlightManager?.getActiveHighlight(),f=this.getHighlightStateString(g,t,e.datumIndex);return this.callWithContext(r,{seriesId:i,datum:e.datum,highlighted:t,highlightState:f,angleKey:s,radiusKey:n,...h})});p&&(h=vL(o9(p,h),a,l,c))}return h}updateSectorSelection(e,t){let i=[];if(t){const s=this.ctx.highlightManager?.getActiveHighlight();s?.datum&&s.series===this&&i.push(s)}else i=this.nodeData;const o=this.getShapeFillBBox();e.update(i,void 0,s=>this.getDatumId(s)).each((s,n)=>{const r=xv(n);if(r==null)return;const a=this.getItemStyle(n,t),l=a.cornerRadius,c=a.fill,d=R.isGradientFill(c)&&c.bounds!=="item"?{centerX:0,centerY:0}:void 0;mSe(s,a,o,d),s.lineJoin="round",s.inset=s.stroke!=null?s.strokeWidth/2:0,s.startInnerCornerRadius=r.reversed?l:0,s.startOuterCornerRadius=r.reversed?l:0,s.endInnerCornerRadius=r.reversed?0:l,s.endOuterCornerRadius=r.reversed?0:l,t&&(s.startAngle=n.startAngle,s.endAngle=n.endAngle,s.clipSector=n.clipSector,s.innerRadius=n.innerRadius,s.outerRadius=n.outerRadius)})}updateLabels(){this.labelSelection.update(this.nodeData).each((e,t)=>{const o=this.ctx.highlightManager?.getActiveHighlight(),s=this.getHighlightStateString(o,!1,t.datumIndex);ySe(this,e,this.properties,this.properties.label,t.label,!1,s),e.fillOpacity=this.getHighlightStyle(!1,t.datumIndex).opacity??1})}getBarTransitionFunctions(){const e=this.axes[Ra.Angle]?.scale;let t=0;if(!e)return JH(t);const i=Math.min(e.domain[0],e.domain[1]),o=Math.max(e.domain[0],e.domain[1]);return i<=0&&o>=0&&(t=e.convert(0)),JH(t)}animateEmptyUpdateReady(){const{labelSelection:e}=this,t=this.getBarTransitionFunctions();i9.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),lSe(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){const{itemSelection:e}=this,{animationManager:t}=this.ctx,i=this.getBarTransitionFunctions();i9.fromToMotion(this.id,"datums",t,[e],i),cSe(this,"labels",t,this.labelSelection)}getTooltipContent(e){const{id:t,dataModel:i,processedData:o,axes:s,properties:n}=this,{angleKey:r,angleName:a,radiusKey:l,radiusName:c,tooltip:d}=n,u=s[Ra.Angle],h=s[Ra.Radius],p=this.nodeData?.[e];if(!i||!o||!u||!h||!p)return;const g=o.dataSources.get(this.id)?.[e],f=i.resolveKeysById(this,"radiusValue",o)[e],y=i.resolveColumnById(this,"angleValue-raw",o)[e];if(f==null)return;const v=this.getItemStyle(p,!1);return this.formatTooltipWithContext(d,{heading:this.getAxisValueText(h,"tooltip",f,g,l,void 0),symbol:this.legendItemSymbol(),data:[{label:a,fallbackLabel:r,value:this.getAxisValueText(u,"tooltip",y,g,r,void 0)}]},{seriesId:t,datum:g,title:a,angleKey:r,angleName:a,radiusKey:l,radiusName:c,...v})}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){const{fill:e,stroke:t,fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r,fillPatternDefaults:a,fillImageDefaults:l}=this.properties,c=vL({fill:e??"rgba(0, 0, 0, 0)",stroke:t??"rgba(0, 0, 0, 0)",fillOpacity:i,strokeOpacity:o,strokeWidth:s,lineDash:n,lineDashOffset:r},this.defaultShapeStyle,a,l);return fSe(c.fill)&&(c.fill={...c.fill,gradient:"linear",rotation:0,reverse:!1}),{marker:c}}getLegendData(e){if(e!=="category")return[];const{id:t,visible:i}=this,{angleKey:o,angleName:s,showInLegend:n}=this.properties;return[{legendType:"category",id:t,itemId:o,seriesId:t,enabled:i,label:{text:s??o},symbol:this.legendItemSymbol(),hideInLegend:!n}]}getDatumId(e){return t9(e.radiusValue)}computeLabelsBBox(){return null}getStackId(){return`radialBar-stack-${this.seriesGrouping?.groupIndex??this.id}-xValues`}hasItemStylers(){return this.properties.itemStyler!=null}};Vw.className="RadialBarSeries",Vw.type="radial-bar";var{commonSeriesOptionsDefs:bSe,radialBarSeriesThemeableOptionsDef:CSe}=R,SSe={...bSe,...CSe,type:ee(je("radial-bar")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H,grouped:U,stacked:U,stackGroup:H,normalizedTo:ne},{ThemeConstants:{POLAR_AXIS_TYPE:xSe}}=R,wSe={series:{fill:{$palette:"fill"},stroke:{$palette:"stroke"},fillGradientDefaults:R.FILL_GRADIENT_CONIC_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,strokeWidth:{$isUserOption:["./stroke",1,0]},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"chartBackgroundColor"}},highlight:R.multiSeriesHighlightStyle()},axes:{[xSe.RADIUS_CATEGORY]:{innerRadiusRatio:.2,groupPaddingInner:.2,paddingInner:.2,paddingOuter:.1}}},{POLAR_AXIS_TYPE:s9}=R.ThemeConstants,DSe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-bar",moduleFactory:e=>new Vw(e),defaultAxes:[{type:s9.ANGLE_NUMBER},{type:s9.RADIUS_CATEGORY}],themeTemplate:wSe,stackable:!0,groupable:!0},MSe={type:"series",name:"radial-bar",chartType:"polar",enterprise:!0,options:SSe,create:e=>new Vw(e)},{Property:n9}=R,bL=class extends Ni{};S([n9],bL.prototype,"columnWidthRatio"),S([n9],bL.prototype,"maxColumnWidthRatio");var{ChartAxisDirection:kSe,PolarAxis:ASe,RadialColumnShape:ISe,getRadialColumnWidth:TSe}=R,_w=class extends LH{constructor(e){super(e,{animationResetFns:{item:mCe}}),this.properties=new bL}getStackId(){return`radarColumn-stack-${this.seriesGrouping?.groupIndex??this.id}-yValues`}nodeFactory(){return new ISe}getColumnTransitionFunctions(){const e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return fCe(e)}isRadiusAxisCircle(){const e=this.axes[kSe.Radius];return e instanceof ASe?e.shape==="circle":!1}updateItemPath(e,t,i){e.isBeveled=this.isRadiusAxisCircle(),e.isRadiusAxisReversed=this.isRadiusAxisReversed(),i&&(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){const{columnWidthRatio:i=.5,maxColumnWidthRatio:o=.5}=this.properties;return TSe(e,t,this.radius,i,o)}hasItemStylers(){return this.properties.itemStyler!=null}};_w.className="RadialColumnSeries",_w.type="radial-column";var{commonSeriesOptionsDefs:RSe,radialColumnSeriesThemeableOptionsDef:LSe}=R,PSe={...RSe,...LSe,type:ee(je("radial-column")),angleKey:ee(H),radiusKey:ee(H),angleName:H,radiusName:H,grouped:U,stacked:U,stackGroup:H,normalizedTo:ne},{ThemeConstants:{POLAR_AXIS_TYPE:r9,POLAR_AXIS_SHAPE:a9}}=R,ESe={series:{fill:{$palette:"fill"},stroke:{$palette:"stroke"},fillGradientDefaults:R.FILL_GRADIENT_RADIAL_SERIES_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,columnWidthRatio:.5,maxColumnWidthRatio:.5,strokeWidth:{$isUserOption:["./stroke",1,0]},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!1,fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"}},highlight:R.multiSeriesHighlightStyle()},axes:{[r9.ANGLE_CATEGORY]:{shape:{$findFirstSiblingNotOperation:a9.CIRCLE},groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[r9.RADIUS_NUMBER]:{shape:{$findFirstSiblingNotOperation:a9.CIRCLE},innerRadiusRatio:.5}}},{POLAR_AXIS_TYPE:l9}=R.ThemeConstants,FSe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-column",moduleFactory:e=>new _w(e),defaultAxes:[{type:l9.ANGLE_CATEGORY},{type:l9.RADIUS_NUMBER}],themeTemplate:ESe,stackable:!0,groupable:!0},NSe={type:"series",name:"radial-column",chartType:"polar",enterprise:!0,options:PSe,create:e=>new _w(e)},{SvgPath:OSe,Rotatable:BSe,Translatable:GSe,Scalable:zSe}=R,CL=class extends BSe(zSe(GSe(OSe))){constructor(){super(...arguments),this.scalingCenterX=.5,this.scalingCenterY=.5,this.rotationCenterX=.5,this.rotationCenterY=.5}};CL.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{BaseProperties:Kv,makeSeriesTooltip:VSe,SeriesProperties:_Se,PropertiesArray:SL,AxisLabel:HSe,Property:Fe,Label:$Se}=R,c9=class extends $Se{};S([Fe],c9.prototype,"spacing");var bs=class extends Kv{constructor(){super(...arguments),this.label=new c9}};S([Fe],bs.prototype,"text"),S([Fe],bs.prototype,"value"),S([Fe],bs.prototype,"shape"),S([Fe],bs.prototype,"placement"),S([Fe],bs.prototype,"spacing"),S([Fe],bs.prototype,"size"),S([Fe],bs.prototype,"rotation"),S([Fe],bs.prototype,"fill"),S([Fe],bs.prototype,"fillOpacity"),S([Fe],bs.prototype,"stroke"),S([Fe],bs.prototype,"strokeWidth"),S([Fe],bs.prototype,"strokeOpacity"),S([Fe],bs.prototype,"lineDash"),S([Fe],bs.prototype,"lineDashOffset"),S([Fe],bs.prototype,"label");var La=class extends Kv{constructor(){super(...arguments),this.enabled=!0,this.fills=new SL(R.StopProperties),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};S([Fe],La.prototype,"enabled"),S([Fe],La.prototype,"fills"),S([Fe],La.prototype,"fillMode"),S([Fe],La.prototype,"fill"),S([Fe],La.prototype,"fillOpacity"),S([Fe],La.prototype,"stroke"),S([Fe],La.prototype,"strokeWidth"),S([Fe],La.prototype,"strokeOpacity"),S([Fe],La.prototype,"lineDash"),S([Fe],La.prototype,"lineDashOffset");var Yv=class extends Kv{constructor(){super(...arguments),this.values=void 0,this.step=void 0,this.minSpacing=0,this.maxSpacing=1e3}};S([Fe],Yv.prototype,"values"),S([Fe],Yv.prototype,"step"),S([Fe],Yv.prototype,"minSpacing"),S([Fe],Yv.prototype,"maxSpacing");var WSe=class extends HSe{},Qs=class extends Kv{constructor(){super(...arguments),this.min=0,this.max=1,this.fills=new SL(R.StopProperties),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.defaultFill="black",this.interval=new Yv,this.label=new WSe}};S([Fe],Qs.prototype,"min"),S([Fe],Qs.prototype,"max"),S([Fe],Qs.prototype,"fills"),S([Fe],Qs.prototype,"fillMode"),S([Fe],Qs.prototype,"fill"),S([Fe],Qs.prototype,"fillOpacity"),S([Fe],Qs.prototype,"stroke"),S([Fe],Qs.prototype,"strokeWidth"),S([Fe],Qs.prototype,"strokeOpacity"),S([Fe],Qs.prototype,"lineDash"),S([Fe],Qs.prototype,"lineDashOffset"),S([Fe],Qs.prototype,"defaultFill"),S([Fe],Qs.prototype,"interval"),S([Fe],Qs.prototype,"label");var Pa=class extends Kv{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}};S([Fe],Pa.prototype,"enabled"),S([Fe],Pa.prototype,"radiusRatio"),S([Fe],Pa.prototype,"spacing"),S([Fe],Pa.prototype,"fill"),S([Fe],Pa.prototype,"fillOpacity"),S([Fe],Pa.prototype,"stroke"),S([Fe],Pa.prototype,"strokeWidth"),S([Fe],Pa.prototype,"strokeOpacity"),S([Fe],Pa.prototype,"lineDash"),S([Fe],Pa.prototype,"lineDashOffset");var d9=class extends Rl{};S([Fe],d9.prototype,"text");var u9=class extends Rv{};S([Fe],u9.prototype,"text");var ho=class extends _Se{constructor(){super(...arguments),this.startAngle=0,this.endAngle=0,this.segmentation=new _v,this.defaultColorRange=[],this.targets=new SL(bs),this.defaultTarget=new bs,this.outerRadiusRatio=1,this.innerRadiusRatio=1,this.cornerRadius=0,this.cornerMode="container",this.spacing=0,this.scale=new Qs,this.bar=new La,this.needle=new Pa,this.label=new d9,this.secondaryLabel=new u9,this.tooltip=VSe()}};S([Fe],ho.prototype,"value"),S([Fe],ho.prototype,"startAngle"),S([Fe],ho.prototype,"endAngle"),S([Fe],ho.prototype,"segmentation"),S([Fe],ho.prototype,"defaultColorRange"),S([Fe],ho.prototype,"targets"),S([Fe],ho.prototype,"defaultTarget"),S([Fe],ho.prototype,"outerRadiusRatio"),S([Fe],ho.prototype,"innerRadiusRatio"),S([Fe],ho.prototype,"outerRadius"),S([Fe],ho.prototype,"innerRadius"),S([Fe],ho.prototype,"cornerRadius"),S([Fe],ho.prototype,"cornerMode"),S([Fe],ho.prototype,"spacing"),S([Fe],ho.prototype,"scale"),S([Fe],ho.prototype,"bar"),S([Fe],ho.prototype,"needle"),S([Fe],ho.prototype,"label"),S([Fe],ho.prototype,"secondaryLabel"),S([Fe],ho.prototype,"tooltip");var{SectorBox:xL}=R;function jSe(e){const{startAngle:t,endAngle:i,clipStartAngle:o,clipEndAngle:s,innerRadius:n,outerRadius:r}=e;if(!(o==null||s==null))return new xL(Math.max(o,t),Math.min(s,i),n,r)}function h9(e,t,i){return Math.max(e,i.startAngle)<=Math.min(t,i.endAngle)}function wL(e){return e.clipStartAngle!=null&&e.clipEndAngle!=null}function DL(e,t){const{clipStartAngle:i,clipEndAngle:o,innerRadius:s,outerRadius:n}=e;return new xL(i,t?i:o,s,n)}function p9(e,t){const i=e?"initial":"update";return{node:{fromFn(n,r){const a=n.previousDatum;let{startAngle:l,endAngle:c}=a??r;const d=a!=null&&wL(a)?DL(a,e):void 0,u=wL(r)?DL(r,e):void 0;let h;return d!=null&&u!=null?h=d:d==null&&u!=null?(h=u,l=r.startAngle,c=r.endAngle):d!=null&&u==null?(h=void 0,l=r.startAngle,c=r.endAngle):e&&(c=l),{startAngle:l,endAngle:c,clipSector:h,phase:i}},toFn(n,r){const{startAngle:a,endAngle:l}=r;let c;return wL(r)&&(c=DL(r,!1)),{startAngle:a,endAngle:l,clipSector:c}},applyFn(n,r){const{startAngle:a,endAngle:l}=r;let{clipSector:c}=r;c!=null&&(c=new xL(Math.max(a,c.startAngle),Math.min(l,c.endAngle),c.innerRadius,c.outerRadius));const d=c==null||h9(a,l,c);n.startAngle=a,n.endAngle=l,n.clipSector=c,n.visible=d}},needle:{fromFn(n){let{angle:r}=n.previousDatum??n.datum;return e&&(r=t),{rotation:r,phase:i}},toFn(n,r){const{angle:a}=r;return{rotation:a}}}}}function ML(e,t){const{startAngle:i,endAngle:o}=t,s=jSe(t),n=s==null||h9(i,o,s);return{startAngle:i,endAngle:o,clipSector:s,visible:n}}function g9(e,t){const{angle:i}=t;return{rotation:i}}var USe={top:0,middle:.5,bottom:1};function KSe(e,t,i,o,s,n){const{padding:r,textAlign:a,verticalAlign:l}=o;let c,d;if(i.each((D,k)=>{k.label==="primary"?c=k:k.label==="secondary"&&(d=k)}),c==null)return;const u=Vv(e.id,t,c,n?.label);if(u==null)return;const h=d!=null?Vv(e.id,t,d,n?.secondaryLabel):void 0,p={padding:r},g=a==="center"?2:1,f=l==="middle"?2:1,y=D=>({width:Math.sqrt(Math.max(s**2-(D/f)**2,0))*g,height:Math.min(D,f*s),meta:null});let v,b,C;if(d!=null&&h!=null){const D=EV(u,c,h,d,p,y);v=D?.label,b=D?.secondaryLabel,C=D?.height??0}else{const D=Iv(u,c,p,y);v=D?.[0],b=void 0,C=D?.[0].height??0}const x=C*USe[l];i.each((D,k)=>{let A;if(k.label==="primary"?A=v:k.label==="secondary"&&(A=b),A==null){D.visible=!1;return}D.visible=!0,D.text=A.text,D.fontSize=A.fontSize,D.lineHeight=A.lineHeight,D.textAlign=a,D.textBaseline="middle";const w=k.label==="primary"?A.height/2:C-A.height/2;D.y=k.centerY+w-x,D.x=k.centerX})}var{fromToMotion:Xv,resetMotion:f9,CachedTextMeasurerPool:YSe,SeriesNodePickMode:m9,StateMachine:XSe,createDatumId:kL,normalizeAngle360:y9,normalizeAngle360Inclusive:AL,isBetweenAngles:Hw,sectorBox:ZSe,toDegrees:qSe,toRadians:$w,BBox:QSe,Group:hu,PointerEvents:Ww,Selection:pu,Sector:JSe,SectorBox:exe,Text:v9,Marker:txe,getColorStops:ixe,tickFormat:oxe,applyShapeStyle:sxe,mergeDefaults:nxe}=R,rxe={inside:90,middle:0,outside:-90},axe=[{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"},{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"}],lxe=[{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"},{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"}],jw=class extends R.Series{constructor(e){super({moduleCtx:e,pickModes:[m9.EXACT_SHAPE_MATCH,m9.NEAREST_NODE]}),this.centerX=0,this.centerY=0,this.radius=0,this.textAlign="center",this.verticalAlign="middle",this.properties=new ho,this.scale=new Y5,this.scaleGroup=this.contentGroup.appendChild(new hu({name:"scaleGroup"})),this.itemGroup=this.contentGroup.appendChild(new hu({name:"itemGroup"})),this.itemNeedleGroup=this.contentGroup.appendChild(new hu({name:"itemNeedleGroup"})),this.itemTargetGroup=this.contentGroup.appendChild(new hu({name:"itemTargetGroup"})),this.itemTargetLabelGroup=this.contentGroup.appendChild(new hu({name:"itemTargetLabelGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new hu({name:"itemLabelGroup"})),this.highlightTargetGroup=this.highlightGroup.appendChild(new hu({name:"itemTargetLabelGroup"})),this.tickGroup=this.contentGroup.appendChild(new hu({name:"tickGroup"})),this.scaleSelection=pu.select(this.scaleGroup,()=>this.nodeFactory()),this.datumSelection=pu.select(this.itemGroup,()=>this.nodeFactory()),this.needleSelection=pu.select(this.itemNeedleGroup,CL),this.targetSelection=pu.select(this.itemTargetGroup,()=>this.markerFactory()),this.targetLabelSelection=pu.select(this.itemTargetLabelGroup,v9),this.labelSelection=pu.select(this.itemLabelGroup,v9),this.highlightTargetSelection=pu.select(this.highlightTargetGroup,()=>this.markerFactory()),this.tickSelection=pu.select(this.tickGroup,R.TransformableText),this.datumUnion=new H8,this.animationState=new XSe("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.scaleGroup.pointerEvents=Ww.None,this.tickGroup.pointerEvents=Ww.None,this.itemNeedleGroup.pointerEvents=Ww.None,this.itemLabelGroup.pointerEvents=Ww.None}get hasData(){return this.properties.value!=null}nodeFactory(){return new JSe}markerFactory(){const e=new txe;return e.size=1,e}processData(){this.nodeDataRefresh=!0,this.animationState.transition("updateData")}formatLabel(e){const{min:t,max:i}=this.properties.scale;return W8(e,{min:t,max:i})}layoutScale(){const{scale:e,properties:t}=this,{seriesRectWidth:i,seriesRectHeight:o}=this.nodeDataDependencies,{scale:s,outerRadius:n}=this.properties,{min:r,max:a,label:l,interval:c}=s,d=$w(t.startAngle-90),u=$w(t.endAngle-90),p=AL(u-d)>Math.PI,g=p||Hw(1.5*Math.PI,d,u),f=p||Hw(0*Math.PI,d,u),y=p||Hw(.5*Math.PI,d,u),v=p||Hw(1*Math.PI,d,u);let b;v&&!f?b="right":!v&&f?b="left":b="center";let C;g&&!y?C="bottom":!g&&y?C="top":C="middle";const x=ZSe({startAngle:d,endAngle:u,innerRadius:0,outerRadius:.5}),D=-(x.x+x.width/2)*2,k=-(x.y+x.height/2)*2,A=Math.min(i/x.width,o/x.height);e.domain=[r,a],e.range=[d,u],e.arcLength=A/2;const{maxSpacing:w,minSpacing:M}=c,{arcLength:T}=e,L=w?Math.floor(T/w):1,N=M?Math.floor(T/M):1/0,O=Math.floor(4/Math.PI*Math.abs(e.range[0]-e.range[1])),F=Math.max(L,Math.min(N,O)),E=c.values??e.ticks({nice:!1,interval:c.step,minTickCount:L,maxTickCount:N,tickCount:F})?.ticks??[],G=oxe(E,typeof l.format=="string"?l.format:void 0),B=YSe.getMeasurer({font:l}),z=E.map((X,q)=>{let Q;if(l.formatter&&(Q=Gv(this.ctx,l.formatter,{value:X,index:q,domain:e.domain,boundSeries:void 0})),Q??(Q=G?.(X)),Q==null)return;const{width:ue,height:de}=B.measureText(Q);return{index:q,value:X,text:Q,width:ue,height:de}}).filter(X=>X!=null),V=z.reduce((X,q)=>Math.max(X,q.width),0),$=z.reduce((X,q)=>Math.max(X,q.height),0),_=l.enabled?Math.max(V,$)+l.spacing:0,W=Math.max(.5*A-_,0),j=n??W;return this.centerX=i/2+D*j,this.centerY=o/2+k*j,this.radius=j,this.textAlign=b,this.verticalAlign=C,z}createConicGradient(e,t){const{scale:i}=this,{domain:o,range:s}=i,[n,r]=s,{defaultColorRange:a}=this.properties,l=y9((n+r)/2+Math.PI),c=AL(r-n);return{type:"gradient",gradient:"conic",colorSpace:"oklch",colorStops:ixe(e,a,o,t).map(({color:u,stop:h})=>(h=Math.min(Math.max(h,0),1),h=(n+c*h-l)/(2*Math.PI),h=(h%1+1)%1,{stop:h,color:u})),rotation:qSe(l)+90}}getShapeFillBBox(){const{centerX:e,centerY:t,radius:i}=this;return new QSe(e-i,t-i,2*i,2*i)}getTargets(){const{properties:e}=this,t=e.defaultTarget;return Array.from(e.targets).map(i=>{const{text:o=t.text,value:s=t.value??0,shape:n=t.shape??"triangle",rotation:r=t.rotation??0,strokeWidth:a=t.strokeWidth??0,placement:l=t.placement??"middle",spacing:c=t.spacing??0,size:d=t.size??0,fill:u=t.fill??"black",fillOpacity:h=t.fillOpacity??1,stroke:p=t.stroke??"black",strokeOpacity:g=t.strokeOpacity??1,lineDash:f=t.lineDash??[0],lineDashOffset:y=t.lineDashOffset??0}=i,{enabled:v=t.label.enabled,color:b=t.label.color??"black",fontStyle:C=t.label.fontStyle??"normal",fontWeight:x=t.label.fontWeight??"normal",fontSize:D=t.label.fontSize,fontFamily:k=t.label.fontFamily,spacing:A=t.label.spacing??0}=i.label;return{text:o,value:s,shape:n,placement:l,spacing:c,size:d,rotation:r,fill:u,fillOpacity:h,stroke:p,strokeWidth:a,strokeOpacity:g,lineDash:f,lineDashOffset:y,label:{enabled:v,color:b,fontStyle:C,fontWeight:x,fontSize:D,fontFamily:k,spacing:A}}})}getTargetRadius(e){const{radius:t,properties:i}=this,{innerRadiusRatio:o,outerRadiusRatio:s}=i,{placement:n,spacing:r,size:a}=e,l=t*s,c=t*o;switch(n){case"inside":return Math.max(c-r-a/2,0);case"outside":return l+r+a/2;default:return(c+l)/2}}getTargetLabel(e){const{scale:t}=this,{value:i,size:o,placement:s,label:n}=e,{spacing:r,color:a,fontStyle:l,fontWeight:c,fontSize:d,fontFamily:u}=n,h=void 0,p=t.convert(i),g=y9(p)/(Math.PI/2)|0,f=o/2+r;let y,v,b,C;switch(s){case"outside":({textAlign:y,textBaseline:v}=axe[g]),b=f*Math.cos(p),C=f*Math.sin(p);break;case"inside":({textAlign:y,textBaseline:v}=lxe[g]),b=-f*Math.cos(p),C=-f*Math.sin(p);break;default:y="center",v="bottom",b=0,C=-f;break}return{offsetX:b,offsetY:C,fill:a,textAlign:y,textBaseline:v,fontStyle:l,fontWeight:c,fontSize:d,fontFamily:u,lineHeight:h}}createNodeData(){const e=this.layoutScale(),{id:t,scale:i,properties:o,radius:s,centerX:n,centerY:r}=this,{value:a,innerRadiusRatio:l,outerRadiusRatio:c,segmentation:d,cornerRadius:u,cornerMode:h,needle:p,bar:g,scale:f,label:y,secondaryLabel:v}=o,{outerRadius:b=s*c,innerRadius:C=s*l}=o,x=this.getTargets(),D=[],k=[],A=[],w=[],M=[],T=h==="item",L=i.convert(i.domain[0]),N=i.convert(a),O=Math.ceil(AL(N-L)*s);let F=d.enabled?d.interval.getSegments(i,O):void 0;const E=g.enabled?g.fill??this.createConicGradient(g.fills,g.fillMode):"rgba(0,0,0,0)",G=f.fill??(g.enabled&&f.fills.length===0?f.defaultFill:void 0)??this.createConicGradient(f.fills,f.fillMode);if(F==null&&T){const B=Math.min(...i.domain),z=Math.max(...i.domain),V={value:a,segmentStart:B,segmentEnd:z},_=Math.min(u,(b-C)/2)/((C+b)/2);D.push({series:this,itemId:"value",datum:V,datumIndex:{type:0},type:0,centerX:n,centerY:r,outerRadius:b,innerRadius:C,startAngle:L-_,endAngle:N+_,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:u,endCornerRadius:u,fill:E}),M.push({series:this,itemId:"scale",datum:V,datumIndex:{type:0},type:0,centerX:n,centerY:r,outerRadius:b,innerRadius:C,startAngle:i.range[0]-_,endAngle:i.range[1]+_,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:u,endCornerRadius:u,fill:G})}else{F??(F=i.domain);for(let B=0;B<F.length-1;B++){const z=F[B],V=F[B+1],$={value:a,segmentStart:z,segmentEnd:V},_=B===0,W=B===F.length-2,j=i.convert(z),X=i.convert(V);D.push({series:this,itemId:`value-${B}`,datum:$,datumIndex:{type:0},type:0,centerX:n,centerY:r,outerRadius:b,innerRadius:C,startAngle:j,endAngle:X,clipStartAngle:L,clipEndAngle:N,startCornerRadius:T||_?u:0,endCornerRadius:T||W?u:0,fill:E}),M.push({series:this,itemId:`scale-${B}`,datum:$,datumIndex:{type:0},type:0,centerX:n,centerY:r,outerRadius:b,innerRadius:C,startAngle:j,endAngle:X,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:T||_?u:0,endCornerRadius:T||W?u:0,fill:G})}}if(!p.enabled&&y.enabled){const{text:B,color:z,fontSize:V,minimumFontSize:$,fontStyle:_,fontWeight:W,fontFamily:j,lineHeight:X,formatter:q=Q=>this.formatLabel(Q.value)}=y;w.push({label:"primary",centerX:n,centerY:r,text:B,value:a,fill:z,fontSize:V,minimumFontSize:$,fontStyle:_,fontWeight:W,fontFamily:j,lineHeight:X,formatter:q})}if(!p.enabled&&v.enabled){const{text:B,color:z,fontSize:V,minimumFontSize:$,fontStyle:_,fontWeight:W,fontFamily:j,lineHeight:X,formatter:q}=v;w.push({label:"secondary",centerX:n,centerY:r,text:B,value:a,fill:z,fontSize:V,minimumFontSize:$,fontStyle:_,fontWeight:W,fontFamily:j,lineHeight:X,formatter:q})}if(p.enabled){let B=p.radiusRatio!=null?s*p.radiusRatio:C;B=Math.max(B-p.spacing,0);const z=i.convert(a);A.push({centerX:n,centerY:r,radius:B,angle:z,series:this})}for(let B=0;B<x.length;B+=1){const z=x[B],{value:V,text:$,size:_,shape:W,fill:j,fillOpacity:X,stroke:q,strokeWidth:Q,strokeOpacity:ue,lineDash:de,lineDashOffset:te}=z;if(V<Math.min(...i.domain)||V>Math.max(...i.domain))continue;const se=this.getTargetRadius(z),ie=i.convert(V),le=$w(z.rotation+rxe[z.placement]);k.push({series:this,itemId:`target-${B}`,midPoint:{x:se*Math.cos(ie)+n,y:se*Math.sin(ie)+r},datum:{value:V},datumIndex:{type:1,index:B},type:1,value:V,text:$,centerX:n,centerY:r,shape:W,radius:se,angle:ie,rotation:le,size:_,fill:j,fillOpacity:X,stroke:q,strokeOpacity:ue,strokeWidth:Q,lineDash:de,lineDashOffset:te,label:this.getTargetLabel(z)})}return{itemId:t,nodeData:D,needleData:A,targetData:k,labelData:w,scaleData:M,tickData:e}}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}){const{datumSelection:t,labelSelection:i,needleSelection:o,targetSelection:s,targetLabelSelection:n,scaleSelection:r,highlightTargetSelection:a,tickSelection:l}=this,c=this.checkResize(e);this.updateSelections(c),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();const d=this.contextNodeData?.nodeData??[],u=this.contextNodeData?.labelData??[],h=this.contextNodeData?.needleData??[],p=this.contextNodeData?.targetData??[],g=this.contextNodeData?.scaleData??[],f=this.contextNodeData?.tickData??[],y=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:g,scaleSelection:r}),this.updateScaleNodes({scaleSelection:r}),this.needleSelection=this.updateNeedleSelection({needleData:h,needleSelection:o}),this.updateNeedleNodes({needleSelection:o}),this.targetSelection=this.updateTargetSelection({targetData:p,targetSelection:s}),this.updateTargetNodes({targetSelection:s,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:p,targetLabelSelection:n}),this.updateTargetLabelNodes({targetLabelSelection:n}),this.datumSelection=this.updateDatumSelection({nodeData:d,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:u,labelSelection:i}),this.updateLabelNodes({labelSelection:i}),this.highlightTargetSelection=this.updateTargetSelection({targetData:y!=null?[y]:[],targetSelection:a}),this.updateTargetNodes({targetSelection:a,isHighlight:!0}),this.tickSelection=this.updateTickSelection({tickData:f,tickSelection:l}),this.updateTickNodes({tickSelection:l}),c&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>kL(e.nodeData.length,t.itemId))}updateDatumNodes(e){const{datumSelection:t}=e,{ctx:i,properties:o}=this,{bar:s,segmentation:n}=o,r=n.spacing??0,{fillOpacity:a,stroke:l,strokeOpacity:c,lineDash:d,lineDashOffset:u}=s,h=s.strokeWidth,p=i.animationManager.isSkipped(),g=this.getShapeFillBBox();t.each((f,y)=>{const{centerX:v,centerY:b,innerRadius:C,outerRadius:x,startCornerRadius:D,endCornerRadius:k,fill:A}=y;f.centerX=v,f.centerY=b,f.innerRadius=C,f.outerRadius=x,f.pointerEvents=this.properties.bar.enabled?R.PointerEvents.All:R.PointerEvents.None,f.fill=A,f.fillBBox=g,f.fillOpacity=a,f.stroke=l,f.strokeOpacity=c,f.strokeWidth=h,f.lineDash=d,f.lineDashOffset=u,f.startOuterCornerRadius=D,f.startInnerCornerRadius=D,f.endOuterCornerRadius=k,f.endInnerCornerRadius=k,f.radialEdgeInset=(r+f.strokeWidth)/2,f.concentricEdgeInset=f.strokeWidth/2,(p||f.previousDatum==null)&&f.setProperties(ML(f,y))}),this.datumUnion.update(t,this.itemGroup,R.Sector,(f,y,v)=>{f.clipSector??(f.clipSector=new exe(NaN,NaN,NaN,NaN)),f.centerX=y.centerX,f.centerY=y.centerY,f.outerRadius=f.clipSector.outerRadius=y.outerRadius,f.innerRadius=f.clipSector.innerRadius=y.innerRadius,f.startAngle=f.clipSector.startAngle=y.startAngle,f.startInnerCornerRadius=y.startInnerCornerRadius,f.startOuterCornerRadius=y.startOuterCornerRadius,f.endAngle=v.endAngle,f.clipSector.endAngle=v.clipSector?.endAngle??v.endAngle,f.endInnerCornerRadius=v.endInnerCornerRadius,f.endOuterCornerRadius=v.endOuterCornerRadius,f.pointerEvents=R.PointerEvents.None})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>kL(e.scaleData.length,t.itemId))}updateScaleNodes(e){const{scaleSelection:t}=e,{scale:i,segmentation:o}=this.properties,s=o.spacing??0,{fillOpacity:n,stroke:r,strokeOpacity:a,strokeWidth:l,lineDash:c,lineDashOffset:d}=i,u=this.getShapeFillBBox();t.each((h,p)=>{const{centerX:g,centerY:f,innerRadius:y,outerRadius:v,startCornerRadius:b,endCornerRadius:C,fill:x}=p;h.centerX=g,h.centerY=f,h.innerRadius=y,h.outerRadius=v,h.fill=x,h.fillBBox=u,h.fillOpacity=n,h.stroke=r,h.strokeOpacity=a,h.strokeWidth=l,h.lineDash=c,h.lineDashOffset=d,h.startOuterCornerRadius=b,h.startInnerCornerRadius=b,h.endOuterCornerRadius=C,h.endInnerCornerRadius=C,h.radialEdgeInset=(s+h.strokeWidth)/2,h.concentricEdgeInset=h.strokeWidth/2,h.setProperties(ML(h,p))})}updateNeedleSelection(e){return e.needleSelection.update(e.needleData,void 0,()=>kL([]))}updateNeedleNodes(e){const{needleSelection:t}=e,{fill:i,fillOpacity:o,stroke:s,strokeOpacity:n,strokeWidth:r,lineDash:a,lineDashOffset:l}=this.properties.needle,c=this.ctx.animationManager.isSkipped();t.each((d,u)=>{const{centerX:h,centerY:p,radius:g}=u,f=g*2;d.d=CL.defaultPathData,d.fill=i,d.fillOpacity=o,d.stroke=s,d.strokeOpacity=n,d.strokeWidth=r/f,d.lineDash=a.map(y=>y/f),d.lineDashOffset=l/f,d.translationX=h,d.translationY=p,d.scalingX=f,d.scalingY=f,c&&d.setProperties(g9(d,u))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){const{targetSelection:t,isHighlight:i}=e;t.each((o,s)=>{const{centerX:n,centerY:r,angle:a,radius:l,shape:c,size:d,rotation:u,fill:h,fillOpacity:p,stroke:g,strokeOpacity:f,strokeWidth:y,lineDash:v,lineDashOffset:b}=s,C=this.getHighlightStyle(i,s.datumIndex),x=nxe(C,{fill:h,fillOpacity:p,stroke:g,strokeOpacity:f,strokeWidth:y,lineDash:v,lineDashOffset:b,opacity:1});sxe(o,x),o.size=d,o.shape=c==="line"?j8:c,o.translationX=n+l*Math.cos(a),o.translationY=r+l*Math.sin(a),o.rotation=a+u})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetLabelNodes(e){const{targetLabelSelection:t}=e;t.each((i,o)=>{const{centerX:s,centerY:n,radius:r,angle:a,text:l}=o,{offsetX:c,offsetY:d,fill:u,fontStyle:h,fontWeight:p,fontSize:g,fontFamily:f,textAlign:y,textBaseline:v}=o.label;if(l==null){i.visible=!1;return}i.visible=!0,i.x=s+r*Math.cos(a)+c,i.y=n+r*Math.sin(a)+d,i.text=l,i.fill=u,i.fontStyle=h,i.fontWeight=p,i.fontSize=g,i.fontFamily=f,i.textAlign=y,i.textBaseline=v})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>t.label)}updateLabelNodes(e){const{labelSelection:t}=e,i=this.ctx.animationManager.isSkipped();t.each((o,s)=>{o.fill=s.fill,o.fontStyle=s.fontStyle,o.fontWeight=s.fontWeight,o.fontFamily=s.fontFamily}),(i||this.labelsHaveExplicitText())&&this.formatLabelText()}updateTickSelection(e){return e.tickSelection.update(e.tickData,void 0,t=>t.index)}updateTickNodes(e){const{scale:t,radius:i,centerX:o,centerY:s,properties:n}=this,{enabled:r,color:a,fontFamily:l,fontSize:c,fontStyle:d,fontWeight:u,spacing:h}=n.scale.label,p=$w(n.scale.label.rotation??0);e.tickSelection.each((g,f)=>{if(!r){g.visible=!1;return}g.visible=!0,g.text=f.text,g.fill=a,g.fontFamily=l,g.fontSize=c,g.fontStyle=d,g.fontWeight=u,g.textAlign="center",g.textBaseline="middle";const y=t.convert(f.value),{width:v,height:b}=f,C=Math.abs(i*Math.cos(y)),x=Math.abs(i*Math.sin(y)),D=Math.min(Math.max(Math.abs(i/Math.tan(y)),C-v/2),C+v/2),k=Math.min(Math.max(Math.abs(i*Math.tan(y)),x-b/2),x+b/2),A=Math.hypot(D,k),w=o+(A+h)*Math.cos(y),M=s+(A+h)*Math.sin(y);g.x=w,g.y=M,g.rotationCenterX=w,g.rotationCenterY=M,g.rotation=p})}labelsHaveExplicitText(){for(const{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){const{labelSelection:t,radius:i,textAlign:o,verticalAlign:s}=this,{spacing:n,innerRadiusRatio:r}=this.properties;KSe(this,this.ctx,t,{padding:n,textAlign:o,verticalAlign:s},i*r,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),f9([this.datumSelection],ML),f9([this.needleSelection],g9),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){const{animationManager:t}=this.ctx;let i,o,s,n;if(this.labelSelection.each((r,a)=>{r.opacity=1,a.label==="primary"?(i=r.previousDatum?.value??e.from??a.value,o=a.value):a.label==="secondary"&&(s=r.previousDatum?.value??e.from??a.value,n=a.value)}),!this.labelsHaveExplicitText())if(o==null||n==null)this.formatLabelText();else if(i===o&&s===n)this.formatLabelText({label:o,secondaryLabel:n});else{const r=`${this.id}_labels`;t.animate({id:r,groupId:"label",from:{label:i,secondaryLabel:s},to:{label:o,secondaryLabel:n},phase:e.phase??"update",onUpdate:a=>this.formatLabelText(a),onStop:()=>this.formatLabelText({label:o,secondaryLabel:n})})}}animateEmptyUpdateReady(){const{animationManager:e}=this.ctx,{node:t,needle:i}=p9(!0,this.scale.range[0]);Xv(this.id,"node",e,[this.datumSelection],t,(o,s)=>s.itemId),Xv(this.id,"needle",e,[this.needleSelection],i,()=>"needle"),Xv(this.id,"label",e,[this.labelSelection],$8,(o,s)=>s.label),this.animateLabelText({from:this.properties.scale.min,phase:"initial"})}animateWaitingUpdateReady(){const{animationManager:e}=this.ctx,{node:t,needle:i}=p9(!1,this.scale.range[0]);Xv(this.id,"node",e,[this.datumSelection],t,(o,s)=>s.itemId),Xv(this.id,"needle",e,[this.needleSelection],i,()=>"needle"),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}dataCount(){return NaN}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}getTooltipContent(e){const{id:t,properties:i}=this,{tooltip:o}=i;let s,n;if(e.type===0?(s=i.value,n=i.label.text):{value:s,text:n}=i.targets[e.index],s!=null)return this.formatTooltipWithContext(o,{data:[{label:n,fallbackLabel:"Value",value:this.formatLabel(s)}]},{seriesId:t,title:void 0,datum:void 0,value:s})}pickNodeClosestDatum(e){return U8(this,e)}pickFocus(e){return K8(this,e)}getCaptionText(){const{value:e}=this.properties,t=[];return t.push(this.formatLabel(e)),this.labelSelection.each((i,o)=>{const s=Vv(this.id,this.ctx,o);s!=null&&t.push(s)}),t.join(". ")}getCategoryValue(e){}datumIndexForCategoryValue(e){}hasItemStylers(){return!1}};jw.className="RadialGaugeSeries",jw.type="radial-gauge";var{FONT_SIZE_RATIO:cxe}=R,dxe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"radial-gauge",moduleFactory:e=>new jw(e),themeTemplate:{minWidth:200,minHeight:200,tooltip:{enabled:!1},series:{outerRadiusRatio:1,innerRadiusRatio:.8,startAngle:270,endAngle:450,defaultColorRange:{$if:[{$eq:[{$palette:"type"},"inbuilt"]},{$interpolate:[{$palette:"secondDivergingColors"},5]},R.SAFE_RANGE2_OPERATION]},scale:{defaultFill:{$path:["/1",{$palette:"fill"},{$palette:"hierarchyColors"}]},stroke:{$path:["/2",R.SAFE_STROKE_FILL_OPERATION,{$palette:"hierarchyColors"}]},strokeWidth:{$isUserOption:["./stroke",2,0]},label:{fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},spacing:12}},bar:{strokeWidth:{$isUserOption:["./stroke",2,0]}},segmentation:{enabled:!1,interval:{},spacing:2},defaultTarget:{fill:{$ref:"foregroundColor"},stroke:{$ref:"foregroundColor"},size:10,shape:"triangle",placement:"outside",spacing:5,label:{enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"},spacing:5}},needle:{enabled:!1,fill:{$ref:"foregroundColor"},spacing:10},label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:56,minimumFontSize:18/56,fontFamily:{$ref:"fontFamily"},color:{$ref:"textColor"}},secondaryLabel:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,fontWeight:{$ref:"fontWeight"},fontSize:{$rem:cxe.LARGE},minimumFontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},color:{$ref:"subtleTextColor"}},tooltip:{range:{$path:["/tooltip/range",10]}}}}},uxe={type:"series",name:"radial-gauge",chartType:"standalone",enterprise:!0,options:R.radialGaugeSeriesOptionsDef,create:e=>new jw(e)};function b9(e){e.nodes.sort((t,i)=>Math.round((t.datum.y-i.datum.y)*100)/100||-(t.datum.size-i.datum.size))}function hxe({nodes:e,size:t},{seriesRectHeight:i,nodeSpacing:o,sizeScale:s}){const n=i*t*s;let r=(i-(n+o*(e.length-1)))/2;e.forEach(({datum:a})=>{const l=i*a.size*s;a.y=r,a.height=l,r+=l+o})}function pxe(e,t){const{nodes:i}=e,{seriesRectHeight:o,nodeSpacing:s}=t;b9(e);let n=0,r=0;for(const{datum:c}of i){const d=Math.max(r-c.y,0);c.y+=d,n+=d,r=c.y+c.height+s}if(r-s<o)return n>0;let l=o;for(let c=i.length-1;c>=0;c-=1){const{datum:d}=i[c],u=d.y+d.height,h=Math.min(l-u,0);d.y+=h,n+=h,l=d.y-s}return!0}function IL(e,t,i,o,s,n,r,a){const l=(i-e)/(o-t),c=(r-s)/(a-n),d=((n-t)*(l*c)+e*c-s*l)/(c-l);return e<i?d>e&&d<Math.min(i,r):d<e&&d>Math.max(i,r)}function C9(e,t){let i=!1;const o=e.nodes.filter(n=>t(n).length===1);let s=!0;for(let n=0;s&&n<o.length;n+=1){s=!1;for(let r=0;r<o.length-1;r+=1){const{datum:a}=o[r],l=t(o[r])[0].node.datum,{datum:c}=o[r+1],d=t(o[r+1])[0].node.datum;if(!(IL(a.x,a.y,l.x,l.y,c.x,c.y,d.x,d.y)||IL(a.x,a.y+a.height/2,l.x,l.y+l.height/2,c.x,c.y+c.height/2,d.x,d.y+d.height/2)||IL(a.x,a.y+a.height,l.x,l.y+l.height,c.x,c.y+c.height,d.x,d.y+d.height)))continue;const h=o[r];o[r]=o[r+1],o[r+1]=h;const p=a.y;a.y=c.y+c.height-a.height,c.y=p,i=!0,s=!0}}return i}function gxe(e){let t=!1;return b9(e),t=C9(e,i=>i.linksBefore)||t,t=C9(e,i=>i.linksAfter)||t,t}function fxe(e){if(e.length===0)return;let t=0,i=0;for(const{node:{datum:o}}of e)t+=o.y*o.size,i+=o.size;return t/i}function S9(e,t,i,o){return e.nodes.forEach(({datum:s,linksBefore:n,linksAfter:r})=>{const a=o===1?n:r,l=o===1?r:n,c=fxe(a);if(c!=null){const d=l.length!==0?i:1;s.y=s.y+(c-s.y)*d}}),pxe(e,t)}function x9(e,t,i){let o=!1;for(const s of e)o=S9(s,t,i,1)||o;return o}function mxe(e,t,i){let o=!1;for(let s=e.length-1;s>=0;s-=1)o=S9(e[s],t,i,-1)||o;return o}function w9(e){let t=!1;for(let i=e.length-1;i>=0;i-=1)t=gxe(e[i])||t;return t}function yxe(e,t){e.forEach(o=>{hxe(o,t)});let i=!1;for(let o=0;o<6;o+=1){const s=x9(e,t,1);i=mxe(e,t,.5);const n=w9(e);if(!s&&!i&&!n)break}i&&(x9(e,t,1),w9(e))}var{BBox:vxe,Path:bxe,SceneChangeDetection:Ef,splitBezier2D:Cxe}=R;function Uw(e,t,i,o,s,n,r,a,l,c){let d,u;if(s!==i&&l!==r){const k=-(o-t)/(s-i),A=-(a-n)/(l-r);d=(r-i+k*t-A*n)/(k-A),u=k*(d-t)+i}else if(s===i&&l!==r)d=t,u=-(a-n)/(l-r)*(d-a)+l;else if(s!==i&&l===r)d=a,u=-(o-t)/(s-i)*(d-t)+i;else throw new Error("Offsetting flat bezier curve");const h=Math.hypot(i-u,t-d),p=(h+c)/h,g=Math.hypot(l-u,a-d),f=(g+c)/g,y=d+(o-d)*p,v=u+(s-u)*p,b=d+(n-d)*f,C=u+(r-u)*f,x=d+(a-d)*f,D=u+(l-u)*f;e.cubicCurveTo(y,v,b,C,x,D)}var lp=class extends bxe{constructor(){super(...arguments),this.x1=0,this.x2=0,this.y1=0,this.y2=0,this.height=0,this.inset=0}computeBBox(){const e=Math.min(this.x1,this.x2),t=Math.max(this.x1,this.x2)-e,i=Math.min(this.y1,this.y2),o=Math.max(this.y1,this.y2)-i+this.height;return new vxe(e,i,t,o)}updatePath(){const{path:e,inset:t}=this;e.clear();const i=this.x1+t,o=this.x2-t,s=this.y1+t,n=this.y2+t,r=this.height-2*t;if(r<0||i>o)return;const a=i,l=s+r/2,c=(i+o)/2,d=s+r/2,u=(i+o)/2,h=n+r/2,p=o,g=n+r/2;if(e.moveTo(a,l-r/2),Math.abs(this.y2-this.y1)<1||this.x2-this.x1<this.height*Math.SQRT2)e.cubicCurveTo(c,d-r/2,u,h-r/2,p,g-r/2),e.lineTo(p,g+r/2),e.cubicCurveTo(u,h+r/2,c,d+r/2,a,l+r/2);else{const[f,y]=Cxe(a,l,c,d,u,h,p,g,.5),v=(n>s?1:-1)*r/2;Uw(e,f[0].x,f[0].y,f[1].x,f[1].y,f[2].x,f[2].y,f[3].x,f[3].y,v),Uw(e,y[0].x,y[0].y,y[1].x,y[1].y,y[2].x,y[2].y,y[3].x,y[3].y,-v),e.lineTo(p,g+r/2),Uw(e,y[3].x,y[3].y,y[2].x,y[2].y,y[1].x,y[1].y,y[0].x,y[0].y,v),Uw(e,f[3].x,f[3].y,f[2].x,f[2].y,f[1].x,f[1].y,f[0].x,f[0].y,-v)}e.closePath()}};S([Ef()],lp.prototype,"x1"),S([Ef()],lp.prototype,"x2"),S([Ef()],lp.prototype,"y1"),S([Ef()],lp.prototype,"y2"),S([Ef()],lp.prototype,"height"),S([Ef()],lp.prototype,"inset");var{BaseProperties:D9,FillGradientDefaults:Sxe,FillPatternDefaults:xxe,FillImageDefaults:wxe,makeSeriesTooltip:Dxe,SeriesProperties:Mxe,Property:ht,Label:kxe}=R,M9=class extends kxe{constructor(){super(...arguments),this.spacing=1}};S([ht],M9.prototype,"spacing");var Wc=class extends D9{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}};S([ht],Wc.prototype,"fill"),S([ht],Wc.prototype,"fillOpacity"),S([ht],Wc.prototype,"stroke"),S([ht],Wc.prototype,"strokeOpacity"),S([ht],Wc.prototype,"strokeWidth"),S([ht],Wc.prototype,"lineDash"),S([ht],Wc.prototype,"lineDashOffset"),S([ht],Wc.prototype,"itemStyler");var Kr=class extends D9{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}};S([ht],Kr.prototype,"spacing"),S([ht],Kr.prototype,"width"),S([ht],Kr.prototype,"alignment"),S([ht],Kr.prototype,"fill"),S([ht],Kr.prototype,"fillOpacity"),S([ht],Kr.prototype,"stroke"),S([ht],Kr.prototype,"strokeOpacity"),S([ht],Kr.prototype,"strokeWidth"),S([ht],Kr.prototype,"lineDash"),S([ht],Kr.prototype,"lineDashOffset"),S([ht],Kr.prototype,"itemStyler");var po=class extends Mxe{constructor(){super(),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.fillGradientDefaults=new Sxe,this.fillPatternDefaults=new xxe,this.fillImageDefaults=new wxe,this.defaultColorRange=[],this.defaultPatternFills=[],this.fills=[],this.strokes=[],this.label=new M9,this.link=new Wc,this.node=new Kr,this.tooltip=Dxe(),this.highlightStyle.deprecated=!1}getStyle(e,t,i,o){const{fillOpacity:s,strokeWidth:n,strokeOpacity:r,lineDash:a,lineDashOffset:l,fill:c=t[o%t.length],stroke:d=i[o%t.length]}=e?this.link:this.node;return{fill:c,fillOpacity:s,stroke:d,strokeWidth:n,strokeOpacity:r,lineDash:a,lineDashOffset:l}}};S([ht],po.prototype,"nodes"),S([ht],po.prototype,"fromKey"),S([ht],po.prototype,"toKey"),S([ht],po.prototype,"idKey"),S([ht],po.prototype,"idName"),S([ht],po.prototype,"labelKey"),S([ht],po.prototype,"labelName"),S([ht],po.prototype,"sizeKey"),S([ht],po.prototype,"sizeName"),S([ht],po.prototype,"fillGradientDefaults"),S([ht],po.prototype,"fillPatternDefaults"),S([ht],po.prototype,"fillImageDefaults"),S([ht],po.prototype,"defaultColorRange"),S([ht],po.prototype,"defaultPatternFills"),S([ht],po.prototype,"fills"),S([ht],po.prototype,"strokes"),S([ht],po.prototype,"label"),S([ht],po.prototype,"link"),S([ht],po.prototype,"node"),S([ht],po.prototype,"tooltip");var{Transformable:Axe,applyShapeStyle:k9,SeriesNodePickMode:A9,CachedTextMeasurerPool:Ixe,TextWrapper:I9,TextUtils:T9,createDatumId:Kw,getShapeStyle:TL,getLabelStyles:Txe,Rect:R9,BBox:L9,mergeDefaults:Yw}=R,Xw=class extends m8{constructor(e){super({moduleCtx:e,pickModes:[A9.NEAREST_NODE,A9.EXACT_SHAPE_MATCH]}),this.properties=new po}isLabelEnabled(){return(this.properties.labelKey!=null||this.nodes==null)&&this.properties.label.enabled}linkFactory(){return new lp}nodeFactory(){return new R9}createNodeData(){const{id:e,_nodeDataDependencies:{seriesRectWidth:t,seriesRectHeight:i}={seriesRectWidth:0,seriesRectHeight:0}}=this,{fromKey:o,toKey:s,sizeKey:n,labelKey:r,label:{spacing:a},node:{spacing:l,width:c,alignment:d}}=this.properties,{nodeGraph:u,links:h,maxPathLength:p}=this.getNodeGraph(w=>({...w,x:NaN,y:NaN,width:c,height:NaN}),w=>({...w,x1:NaN,x2:NaN,y1:NaN,y2:NaN,height:NaN}),{includeCircularReferences:!1}),g=u,f=this.isLabelEnabled()?(t-c)*(1-p/(p+1)):0,y=(t-c-2*f)/(p-1),v=[];for(let w=0;w<p;w+=1){const M=f+w*y;v.push({index:w,size:0,nodes:[],x:M})}g.forEach(w=>{const{datum:M,linksBefore:T,linksAfter:L,maxPathLengthBefore:N,maxPathLengthAfter:O}=w,F=Math.max(T.reduce((z,{link:V})=>z+V.size,0),L.reduce((z,{link:V})=>z+V.size,0));if(T.length===0&&L.length===0||F===0){w.columnIndex=-1;return}let E;switch(d){case"left":E=v[N];break;case"right":E=v[p-1-O];break;case"center":{if(T.length!==0)E=v[N];else if(L.length!==0){const z=L.reduce((V,$)=>Math.min(V,$.node.maxPathLengthBefore),p)-1;E=v[z]}else E=v[0];break}case"justify":{E=L.length===0?v[p-1]:v[N];break}}M.x=E.x,M.size=F;const{label:G}=this.properties,B=G.enabled?this.getLabelText(M.label,M.datum,r,"label",[],this.properties.label,{datum:M.datum,value:M.label,fromKey:o,toKey:s,sizeKey:n,size:F}):void 0;M.label=B,E.nodes.push(w),E.size+=F,w.columnIndex=E.index}),g.forEach(w=>{let M=1/0,T=0;w.linksAfter.forEach(L=>{const N=L.node,{columnIndex:O}=N;O<M?(M=O,T=N.datum.size):O===M&&(T=Math.max(T,N.datum.size))}),w.closestColumnIndex=M,w.maxSizeOfClosestNodesAfter=T});const b=v.reduce((w,{size:M,nodes:T})=>{const L=(1-(T.length-1)*(l/i))/M;return Math.min(w,L)},1/0);for(let w=v.length-1;w>=0;w-=1)v[w].nodes.sort((T,L)=>T.closestColumnIndex-L.closestColumnIndex||T.maxSizeOfClosestNodesAfter-L.maxSizeOfClosestNodesAfter||T.datum.size-L.datum.size);yxe(v,{seriesRectHeight:i,nodeSpacing:l,sizeScale:b});let C=!1;if(g.forEach(({datum:w,linksBefore:M,linksAfter:T})=>{C||(C=w.height<0);const L=w.y+w.height,N=E=>E.sort((G,B)=>{const z=G.node.datum,V=B.node.datum,$=z.y+z.height,_=V.y+V.height,W=Math.atan2(z.y-w.y,Math.abs(z.x-w.x))-Math.atan2(V.y-w.y,Math.abs(V.x-w.x)),j=Math.atan2($-L,Math.abs(z.x-w.x))-Math.atan2(_-L,Math.abs(V.x-w.x));return W+j});let O=w.y;N(M).forEach(({link:E})=>{E.y2=O,O+=E.size*i*b});let F=w.y;N(T).forEach(({link:E})=>{E.y1=F,F+=E.size*i*b})}),C){he.warnOnce("There was insufficient space to display the Sankey Series. Reduce the node spacing, or provide a larger container.");return}const x=[],D=[],{fontSize:k}=this.properties.label,A=Ixe.getMeasurer({font:this.properties.label});return v.forEach((w,M)=>{const T=M===0,L=M===v.length-1;let N=-1/0;w.nodes.sort((O,F)=>O.datum.y-F.datum.y),w.nodes.forEach(({datum:O})=>{if(O.midPoint={x:O.x+O.width/2,y:O.y+O.height/2},x.push(O),O.label==null)return;const F=T?O.x-a:O.x+O.width+a,E=O.y+O.height/2;let G;if(!T&&!L){const $=E-T9.getLineHeight(k),_=E+T9.getLineHeight(k);let W=t;g.forEach(({datum:X})=>{X.x>O.x&&Math.max(X.y,$)<=Math.min(X.y+X.height,_)&&(W=Math.min(W,X.x-a))});const j=W-O.x-2*a;G=I9.wrapText(O.label,{maxWidth:j,maxHeight:O.height,font:this.properties.label,textWrap:"never",overflow:"hide"})}if(G==null||G===""){const $=T||L?a:a*2;G=I9.wrapText(O.label,{maxWidth:y-$,maxHeight:O.height,font:this.properties.label,textWrap:"never"})}if(G==="")return;const{height:B}=A.measureText(G),z=E-B/2,V=E+B/2;z>=N&&(D.push({x:F,y:E,leading:T,text:G,size:O.size}),N=V)})}),h.forEach(w=>{const{fromNode:M,toNode:T,size:L}=w;w.height=i*L*b,w.x1=M.x+c,w.x2=T.x,w.midPoint={x:(w.x1+w.x2)/2,y:(w.y1+w.y2)/2+w.height/2},x.push(w)}),{itemId:e,nodeData:x,labelData:D}}updateLabelSelection(e){const t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){e.labelSelection.each((t,i)=>{const{x:o,y:s,leading:n,text:r}=i,l=Txe(this,void 0,i,this.properties.label),{color:c,fontStyle:d,fontWeight:u,fontSize:h,fontFamily:p}=l;t.visible=!0,t.x=o,t.y=s,t.text=r,t.fill=c,t.fontStyle=d,t.fontWeight=u,t.fontSize=h,t.fontFamily=p,t.textAlign=n?"right":"left",t.textBaseline="middle",t.setBoxing(l)})}updateNodeSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Kw([t.type,t.id]))}getNodeStyle({datumIndex:e,datum:t,size:i=0,label:o},s,n){const{id:r,properties:a}=this,{fills:l,strokes:c,defaultColorRange:d,defaultPatternFills:u,fillGradientDefaults:h,fillPatternDefaults:p,fillImageDefaults:g}=a,{itemStyler:f}=a.node,y=d[s%d.length].map(k=>({color:k})),v=u[s%u.length],b=this.getHighlightStyle(n,e),C=Yw(b,a.getStyle(!1,l,c,s)),x=a.node.fill!=null;let D=TL(C,x?h:{...h.toJson(),colorStops:y},x?p:{...p.toJson(),fill:v,stroke:v},g);if(f!=null&&e!=null){const k=this.cachedDatumCallback(Kw(e.index,"link",n?"highlight":"node"),()=>{const A=this.ctx.highlightManager?.getActiveHighlight(),w=this.getHighlightStateString(A,n,e);return this.callWithContext(f,{seriesId:r,datum:t,highlighted:n,highlightState:w,...D,size:i,label:o})});k&&(D=TL(Yw(k,D),{...h.toJson(),colorStops:y},{...p.toJson(),fill:v,stroke:v},g))}return D.opacity=1,D}updateNodeNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getShapeFillBBox();t.each((s,n)=>{const{datumIndex:r}=n,a=this.getNodeStyle(n,r.index,i);s.x=n.x,s.y=n.y,s.width=Math.max(n.width,0),s.height=Math.max(n.height,0),k9(s,a,o)})}getShapeFillBBox(){const e=this._nodeDataDependencies?.seriesRectWidth??0,t=this._nodeDataDependencies?.seriesRectHeight??0,i=new L9(0,0,e,t);return{series:i,axis:i}}updateLinkSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Kw([t.type,t.index,t.fromNode.id,t.toNode.id]))}getLinkStyle({datumIndex:e,datum:t},i,o){const{id:s,properties:n}=this,{fills:r,strokes:a,defaultColorRange:l,defaultPatternFills:c,fillGradientDefaults:d,fillPatternDefaults:u,fillImageDefaults:h}=n,{itemStyler:p}=n.link,g=l[i%l.length].map(x=>({color:x})),f=c[i%c.length],y=this.getHighlightStyle(o,e),v=Yw(y,n.getStyle(!0,r,a,i)),b=n.link.fill!=null;let C=TL(v,b?d:{...d.toJson(),colorStops:g},b?u:{...u.toJson(),fill:f,stroke:f},h);if(p!=null&&e!=null){const x=this.cachedDatumCallback(Kw(e.index,"link",o?"highlight":"node"),()=>{const D=this.ctx.highlightManager?.getActiveHighlight(),k=this.getHighlightStateString(D,o,e);return this.callWithContext(p,{seriesId:s,datum:t,highlighted:o,highlightState:k,...C})});x&&(C=Yw(C,x,{...d.toJson(),colorStops:g},{...u.toJson(),fill:f,stroke:f},h))}return C.opacity=1,C}updateLinkNodes(e){const{datumSelection:t,isHighlight:i}=e,o=this.getShapeFillBBox();t.each((s,n)=>{const r=n.fromNode.datumIndex.index,a=this.getLinkStyle(n,r,i);s.x1=n.x1,s.y1=n.y1,s.x2=n.x2,s.y2=n.y2,s.height=n.height,k9(s,a,o),s.inset=s.strokeWidth/2})}getTooltipContent(e){const{id:t,linksProcessedData:i,nodesProcessedData:o,properties:s,ctx:{formatManager:n}}=this,{fromKey:r,toKey:a,sizeKey:l,sizeName:c,tooltip:d}=s,u=this.contextNodeData?.nodeData.find(b=>b.datumIndex.type===e.type&&b.datumIndex.index===e.index);if(u==null)return;const h=u.type===0?u.fromNode.index:u.index,p=u.type===0?`${u.fromNode.label} - ${u.toNode.label}`:u.label,g=e.type===0?i?.dataSources.get(this.id)?.[e.index]:o?.dataSources.get(this.id)?.[e.index],f=u.size;let y;if(u.type===0){const b=u.fromNode.datumIndex;y=this.getLinkStyle({datumIndex:e,datum:g},b.index,!1)}else y=this.getNodeStyle({datumIndex:e,datum:g},e.index,!1);const v=[];if(l!=null){const b=n.format(this.callWithContext.bind(this),{type:"number",value:f,datum:g,seriesId:t,legendItemName:void 0,key:l,source:"tooltip",property:"size",domain:[],boundSeries:this.getFormatterContext("size"),fractionDigits:void 0});v.push({label:c,fallbackLabel:l,value:b??String(f)})}return this.formatTooltipWithContext(d,{title:p,symbol:this.legendItemSymbol(u.type,h,y),data:v},{seriesId:t,datum:g,title:p,fromKey:r,toKey:a,sizeKey:l,sizeName:c,size:f,...y})}computeFocusBounds(e){if(e instanceof R9){const{x:t,y:i,width:o,height:s}=e,n=new L9(t,i,o,s);return Axe.toCanvas(this.contentGroup,n)}return e}hasItemStylers(){return this.properties.node.itemStyler!=null||this.properties.link.itemStyler!=null}};Xw.className="SankeySeries",Xw.type="sankey";var{commonSeriesOptionsDefs:Rxe,sankeySeriesThemeableOptionsDef:Lxe}=R,Ff={...Lxe,...Rxe,type:ee(je("sankey")),fromKey:ee(H),toKey:ee(H),sizeKey:H,sizeName:H};Ff.fillGradientDefaults=Oe(pC),Ff.fillPatternDefaults=Oe(gC),Ff.fillImageDefaults=Oe(fC),Ff.defaultColorRange=Oe(_e(_e(ke))),Ff.defaultPatternFills=Oe(_e(ke));var Pxe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],solo:!0,identifier:"sankey",moduleFactory:e=>new Xw(e),themeTemplate:{seriesArea:{padding:{top:10,bottom:10}},series:{fills:{$palette:"fills"},strokes:{$palette:"strokes"},fillGradientDefaults:R.FILL_GRADIENT_LINEAR_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,defaultColorRange:{$palette:"gradients"},defaultPatternFills:R.SAFE_FILLS_OPERATION,highlightStyle:{series:{dimOpacity:.2}},highlight:{...R.singleSeriesHighlightStyle()},label:{...R.LABEL_BOXING_DEFAULTS,fontFamily:{$ref:"fontFamily"},fontSize:{$ref:"fontSize"},fontWeight:{$ref:"fontWeight"},color:{$ref:"textColor"},spacing:10},node:{spacing:20,width:10,strokeWidth:{$isUserOption:["./stroke",2,0]}},link:{fillOpacity:.5,strokeWidth:{$isUserOption:["./stroke",2,0]}}},legend:{enabled:!1,toggleSeries:!1}}},Exe={type:"series",name:"sankey",chartType:"standalone",enterprise:!0,options:Ff,create:e=>new Xw(e)},{HierarchySeriesProperties:Fxe,HighlightStyle:Nxe,makeSeriesTooltip:Oxe,Property:go}=R,gu=class extends Nxe{constructor(){super(!1),this.label=new Rl,this.secondaryLabel=new Rl}};S([go],gu.prototype,"fill"),S([go],gu.prototype,"fillOpacity"),S([go],gu.prototype,"stroke"),S([go],gu.prototype,"strokeWidth"),S([go],gu.prototype,"strokeOpacity"),S([go],gu.prototype,"label"),S([go],gu.prototype,"secondaryLabel");var Js=class extends Fxe{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=0,this.strokeOpacity=1,this.cornerRadius=0,this.highlightStyle=new gu,this.label=new Rl,this.secondaryLabel=new Rv,this.tooltip=Oxe()}getStyle(e){const{fills:t,strokes:i,fillOpacity:o,strokeWidth:s,strokeOpacity:n}=this;return{fill:t[e%t.length],fillOpacity:o,stroke:i[e%i.length],strokeWidth:s,strokeOpacity:n,opacity:1}}};S([go],Js.prototype,"sizeName"),S([go],Js.prototype,"labelKey"),S([go],Js.prototype,"secondaryLabelKey"),S([go],Js.prototype,"fillOpacity"),S([go],Js.prototype,"strokeWidth"),S([go],Js.prototype,"strokeOpacity"),S([go],Js.prototype,"cornerRadius"),S([go],Js.prototype,"sectorSpacing"),S([go],Js.prototype,"padding"),S([go],Js.prototype,"itemStyler"),S([go],Js.prototype,"highlightStyle"),S([go],Js.prototype,"label"),S([go],Js.prototype,"secondaryLabel"),S([go],Js.prototype,"tooltip");var{fromToMotion:Bxe,normalizeAngle360:Gxe,createDatumId:zxe,PointerEvents:Vxe,Sector:P9,Group:Zw,ScalableGroup:_xe,Selection:RL,TransformableText:LL,BBox:E9,applyShapeStyle:Hxe,getShapeStyle:PL,mergeDefaults:F9}=R,$xe=class extends R.HierarchyNode{constructor(){super(...arguments),this.label=void 0,this.secondaryLabel=void 0,this.contentHeight=0,this.bbox=void 0,this.startAngle=0,this.endAngle=0}};function N9(e,t=0,i=2*Math.PI/e.sumSize){for(const o of e.children){const s=t+o.sumSize*i;o.startAngle=t,o.endAngle=s,N9(o,t,i),t=s}}var qw=class extends R.HierarchySeries{constructor(e){super(e),this.NodeClass=$xe,this.properties=new Js,this.scalingGroup=this.contentGroup.appendChild(new _xe),this.sectorGroup=this.scalingGroup.appendChild(new Zw),this.sectorLabelGroup=this.scalingGroup.appendChild(new Zw),this.highlightSectorGroup=this.scalingGroup.appendChild(new Zw),this.datumSelection=RL.select(this.sectorGroup,P9),this.labelSelection=RL.select(this.sectorLabelGroup,Zw),this.highlightSelection=RL.select(this.highlightSectorGroup,P9),this.sectorLabelGroup.pointerEvents=Vxe.None}processData(){super.processData(),N9(this.rootNode)}updateSelections(){const e=this.ctx.highlightManager?.getActiveHighlight();if(this.highlightSelection.update(e!=null?[e]:[],void 0,n=>this.getDatumId(n)),!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;const{chart:t}=this;if(t==null||t.seriesRect==null)return;const o=Array.from(this.rootNode),s=n=>{n.append([new LL({tag:0}),new LL({tag:1})])};this.datumSelection.update(o,void 0,n=>this.getDatumId(n)),this.labelSelection.update(o,s,n=>this.getDatumId(n))}getItemStyle(e,t){const{id:i,properties:o,colorScale:s}=this,{itemStyler:n,fillGradientDefaults:r,fillPatternDefaults:a,fillImageDefaults:l}=o,c=e.datumIndex?.[0]??0,d=t?o.highlightStyle:void 0,u=F9(d,o.getStyle(c));!t&&e.colorValue!=null&&(u.fill=s.convert(e.colorValue));let h=PL(u,r,a,l);if(n!=null&&e!=null){const p=this.ctx.highlightManager?.getActiveHighlight(),g=this.cachedDatumCallback(zxe(this.getDatumId(e),t?"highlight":"node"),()=>{const f=this.getHighlightStateString(p,t,e.datumIndex);return this.callWithContext(n,{seriesId:i,datum:e.datum,depth:e.depth??0,highlighted:t,highlightState:f,...h})});g&&(h=PL(F9(g,h),r,a,l))}return h}updateNodes(){const{chart:e,data:t,maxDepth:i}=this;if(e==null||t==null)return;const{width:o,height:s}=e.seriesRect,{sectorSpacing:n=0,padding:r=0,cornerRadius:a,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g}=this.properties;this.contentGroup.translationX=o/2,this.contentGroup.translationY=s/2;const f=n*.5,y=Math.min(o,s)/2,v=y/(i+1),b=-Math.PI/2,C={series:new E9(-y,-y,2*y,2*y),axis:new E9(-y,-y,2*y,2*y)};this.rootNode?.walk(A=>{const{startAngle:w,endAngle:M}=A;if(A.depth!=null){const T=(w+M)/2+b,L=(A.depth+.5)*v;A.midPoint.x=Math.cos(T)*L,A.midPoint.y=Math.sin(T)*L}}),this.rootNode?.walk(A=>{const{datum:w,depth:M,startAngle:T,endAngle:L,parent:N,sumSize:O}=A;A.label=void 0,A.secondaryLabel=void 0,A.contentHeight=0;let F;if(w!=null&&M!=null&&u!=null){const ce=w[u];F=this.getLabelText(ce,w,u,"label",[],this.properties.label,{depth:M,datum:w,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g,value:ce})}F===""&&(F=void 0);let E;if(w!=null&&M!=null&&h!=null){const ce=w[h];E=this.getLabelText(ce,w,h,"secondaryLabel",[],this.properties.secondaryLabel,{depth:M,datum:w,childrenKey:l,colorKey:c,colorName:d,labelKey:u,secondaryLabelKey:h,sizeKey:p,sizeName:g,value:ce})}if(E===""&&(E=void 0),M==null)return;const G=M*v+f,B=(M+1)*v-f,z=G>f?f/G:f,V=B>f?f/B:f,$=T+z,W=L+z-$,j=T+V,q=L+V-j,Q=ce=>{if(M===0&&N?.sumSize===O)return{width:2*Math.sqrt(B**2-(ce*.5)**2),height:ce,meta:0};const oe=ce,pe=2*Math.sqrt(B**2-(G+oe)**2),we=W<Math.PI?2*G*Math.tan(W*.5):1/0,ze=Math.min(pe,we),Ye=Math.PI/4;let dt,ct;return M===0?(dt=ce,ct=Math.sqrt(B**2-(dt/2)**2)-ce/(2*Math.tan(q*.5))):Gxe(W)<Ye?(dt=2*G*Math.tan(W*.5),ct=Math.sqrt(B**2-(dt/2)**2)-G):(ct=0,dt=0),ze>=ct?{width:ze,height:oe,meta:1}:{width:ct,height:dt,meta:2}},ue=dR(F,this.properties.label,E,this.properties.secondaryLabel,{padding:r},Q);if(ue==null)return;const{width:de,height:te,meta:se,label:ie,secondaryLabel:le}=ue,ye=b+(T+L)/2,Me=Math.sin(ye)>=0,De=Math.cos(ye)>=0,fe=(Me?3:12)&(De?6:9);let Ge;switch(se){case 0:Ge=0;break;case 1:{const be=B-(v-te)*.58,oe=Math.sqrt((B-r)**2-(de/2)**2);Ge=Math.min(be,oe);break}case 2:if(M===0){const ce=te/(2*Math.tan(W*.5))+de*.5,be=Math.sqrt(B**2-(te*.5)**2)-de*.5;Ge=(ce+be)*.5}else Ge=(G+B)*.5;break}if(ie!=null){const{fontStyle:ce="normal",fontFamily:be,fontWeight:oe="normal",color:pe="black"}=this.properties.label;A.label={...ie,fontStyle:ce,fontFamily:be,fontWeight:oe,color:pe,labelPlacement:se,circleQuarter:fe,radius:Ge,theta:ye}}if(le!=null){const{fontStyle:ce="normal",fontFamily:be,fontWeight:oe="normal",color:pe="black"}=this.properties.secondaryLabel;A.secondaryLabel={...le,fontStyle:ce,fontFamily:be,fontWeight:oe,color:pe,labelPlacement:se,circleQuarter:fe,radius:Ge,theta:ye}}A.contentHeight=ue.height});const x=(A,w,M)=>{const{depth:T,startAngle:L,endAngle:N}=A;if(T==null){w.visible=!1;return}w.visible=!0;const O=this.getItemStyle(A,M),F=O.fill,E=O.strokeWidth,G=R.isGradientFill(F)&&F.bounds!=="item"?C:void 0;Hxe(w,O,G),w.centerX=0,w.centerY=0,w.innerRadius=T*v,w.outerRadius=(T+1)*v,w.startAngle=L+b,w.endAngle=N+b,w.inset=f+E*.5,w.cornerRadius=a};this.datumSelection.each((A,w)=>{x(w,A,!1)}),this.highlightSelection.each((A,w)=>{x(w,A,!0)});const D=(A,w,M,T)=>{const{depth:L,contentHeight:N}=A,O=M===0,F=O?A.label:A.secondaryLabel;if(L==null||F==null){w.visible=!1;return}const{labelPlacement:E,circleQuarter:G,radius:B,theta:z}=F;let V;switch(T&&(V=(O?this.properties.highlightStyle.label:this.properties.highlightStyle.secondaryLabel).color),w.text=F.text,w.fontSize=F.fontSize,w.lineHeight=F.lineHeight,w.fontStyle=F.fontStyle,w.fontFamily=F.fontFamily,w.fontWeight=F.fontWeight,w.fill=V??F.color,w.fillOpacity=this.getHighlightStyle(T,A.datumIndex)?.opacity??1,E){case 0:w.textAlign="center",w.textBaseline="top",w.translationX=0,w.translationY=(O?0:N-F.height)-N*.5,w.rotation=0;break;case 1:{const $=(G&3)!==0,_=O===!$?B:B-(N-F.height);w.textAlign="center",w.textBaseline=$?"bottom":"top",w.translationX=Math.cos(z)*_,w.translationY=Math.sin(z)*_,w.rotation=$?z-Math.PI*.5:z+Math.PI*.5;break}case 2:{const $=(G&6)!==0,_=O===!$?(N-F.height)*.5:(F.height-N)*.5;w.textAlign="center",w.textBaseline="middle",w.translationX=Math.cos(z)*B+Math.cos(z+Math.PI/2)*_,w.translationY=Math.sin(z)*B+Math.sin(z+Math.PI/2)*_,w.rotation=$?z:z+Math.PI;break}}w.visible=!0},k=this.ctx.highlightManager?.getActiveHighlight();this.labelSelection.selectByClass(LL).forEach(A=>{const w=A.closestDatum();D(w,A,A.tag,w===k)})}getTooltipContent(e){const{id:t,properties:i}=this,{labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,tooltip:d}=i,u=e.reduce((x,D)=>x?.children[D],this.rootNode);if(u==null)return;const{datum:h,depth:p}=u;if(h==null||p==null)return;const g=[],f=r!=null?h[r]:void 0;f!=null&&g.push({label:a,fallbackLabel:r,value:f});const y=l!=null?h[l]:void 0;y!=null&&g.push({label:c,fallbackLabel:l,value:y});const v=this.getItemStyle({...u,colorValue:y??u.colorValue},!1),b=v.fill,C=PL({shape:"square",fill:b,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1,lineDash:[0],lineDashOffset:0},i.fillGradientDefaults,i.fillPatternDefaults,i.fillImageDefaults);return R.isGradientFill(C.fill)&&(C.fill={...C.fill,gradient:"linear",rotation:0,reverse:!1}),this.formatTooltipWithContext(d,{title:o!=null?h[o]:void 0,symbol:{marker:C},data:g},{seriesId:t,datum:h,title:void 0,depth:p,labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,...v})}createNodeData(){}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.datumSelection.nodes())}animateEmptyUpdateReady(){Bxe(this.id,"nodes",this.ctx.animationManager,[this.scalingGroup],{toFn(){return{scalingX:1,scalingY:1}},fromFn(){return{scalingX:0,scalingY:0}}})}computeFocusBounds(e){return e}hasItemStylers(){return this.properties.itemStyler!=null}};qw.className="SunburstSeries",qw.type="sunburst";var{commonSeriesOptionsDefs:Wxe,sunburstSeriesThemeableOptionsDef:jxe,without:Uxe}=R,Kxe={...jxe,...Uxe(Wxe,["highlightStyle","highlight","showInLegend"]),type:ee(je("sunburst")),labelKey:H,secondaryLabelKey:H,childrenKey:H,sizeKey:H,colorKey:H,sizeName:H,colorName:H},{BASE_FONT_SIZE:O9,FONT_SIZE_RATIO:B9}=R,Yxe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"sunburst",moduleFactory:e=>new qw(e),solo:!0,themeTemplate:{series:{fills:{$palette:"fills"},strokes:{$palette:"strokes"},colorRange:{$palette:"divergingColors"},fillGradientDefaults:R.FILL_GRADIENT_RADIAL_REVERSED_SERIES_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,strokeWidth:{$isUserOption:["./strokes/0",2,0]},label:{...R.LABEL_BOXING_DEFAULTS,fontFamily:{$ref:"fontFamily"},fontSize:{$rem:B9.LARGE},minimumFontSize:{$rem:9/O9},fontWeight:{$ref:"fontWeight"},color:{$ref:"chartBackgroundColor"},overflowStrategy:"ellipsis",wrapping:"never",spacing:2},secondaryLabel:{...R.LABEL_BOXING_DEFAULTS,fontFamily:{$ref:"fontFamily"},fontSize:{$rem:B9.SMALLEST},minimumFontSize:{$rem:7/O9},fontWeight:{$ref:"fontWeight"},color:{$ref:"chartBackgroundColor"},overflowStrategy:"ellipsis",wrapping:"never"},sectorSpacing:2,padding:3,highlightStyle:{label:{color:{$ref:"chartBackgroundColor"}},secondaryLabel:{color:{$ref:"chartBackgroundColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}},gradientLegend:{enabled:!0,...R.LEGEND_CONTAINER_THEME}}},Xxe={type:"series",name:"sunburst",chartType:"standalone",enterprise:!0,options:Kxe,create:e=>new qw(e)},{BaseProperties:Qw,HierarchySeriesProperties:Zxe,HighlightStyle:qxe,makeSeriesTooltip:Qxe,Property:qe,Label:Jxe}=R,G9=class extends Jxe{constructor(){super(...arguments),this.spacing=0}};S([qe],G9.prototype,"spacing");var Yr=class extends Qw{constructor(){super(...arguments),this.fill=void 0,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 G9}};S([qe],Yr.prototype,"fill"),S([qe],Yr.prototype,"fillOpacity"),S([qe],Yr.prototype,"stroke"),S([qe],Yr.prototype,"strokeWidth"),S([qe],Yr.prototype,"strokeOpacity"),S([qe],Yr.prototype,"cornerRadius"),S([qe],Yr.prototype,"textAlign"),S([qe],Yr.prototype,"gap"),S([qe],Yr.prototype,"padding"),S([qe],Yr.prototype,"interactive"),S([qe],Yr.prototype,"label");var er=class extends Qw{constructor(){super(...arguments),this.fill=void 0,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 Rl,this.secondaryLabel=new Rv}};S([qe],er.prototype,"fill"),S([qe],er.prototype,"fillOpacity"),S([qe],er.prototype,"stroke"),S([qe],er.prototype,"strokeWidth"),S([qe],er.prototype,"strokeOpacity"),S([qe],er.prototype,"cornerRadius"),S([qe],er.prototype,"textAlign"),S([qe],er.prototype,"verticalAlign"),S([qe],er.prototype,"gap"),S([qe],er.prototype,"padding"),S([qe],er.prototype,"label"),S([qe],er.prototype,"secondaryLabel");var cp=class extends Qw{constructor(){super(...arguments),this.label=new Rl}};S([qe],cp.prototype,"fill"),S([qe],cp.prototype,"fillOpacity"),S([qe],cp.prototype,"stroke"),S([qe],cp.prototype,"strokeWidth"),S([qe],cp.prototype,"strokeOpacity"),S([qe],cp.prototype,"label");var fu=class extends Qw{constructor(){super(...arguments),this.label=new Rl,this.secondaryLabel=new Rv}};S([qe],fu.prototype,"fill"),S([qe],fu.prototype,"fillOpacity"),S([qe],fu.prototype,"stroke"),S([qe],fu.prototype,"strokeWidth"),S([qe],fu.prototype,"strokeOpacity"),S([qe],fu.prototype,"label"),S([qe],fu.prototype,"secondaryLabel");var EL=class extends qxe{constructor(){super(!1),this.group=new cp,this.tile=new fu}getStyle(e){return e?this.tile:this.group}};S([qe],EL.prototype,"group"),S([qe],EL.prototype,"tile");var Ea=class extends Zxe{constructor(){super(...arguments),this.highlightStyle=new EL,this.tooltip=Qxe(),this.group=new Yr,this.tile=new er,this.undocumentedGroupFills=[],this.undocumentedGroupStrokes=[]}getStyle(e,t,i,o){const{fillOpacity:s,strokeWidth:n,strokeOpacity:r,fill:a=e?t[o%t.length]:t[Math.min(o,t.length)],stroke:l=e?i[o%t.length]:i[Math.min(o,i.length)]}=e?this.tile:this.group;return{fill:a,fillOpacity:s,stroke:l,strokeWidth:n,strokeOpacity:r,opacity:1}}};S([qe],Ea.prototype,"sizeName"),S([qe],Ea.prototype,"labelKey"),S([qe],Ea.prototype,"secondaryLabelKey"),S([qe],Ea.prototype,"itemStyler"),S([qe],Ea.prototype,"highlightStyle"),S([qe],Ea.prototype,"tooltip"),S([qe],Ea.prototype,"group"),S([qe],Ea.prototype,"tile"),S([qe],Ea.prototype,"undocumentedGroupFills"),S([qe],Ea.prototype,"undocumentedGroupStrokes");var{TextUtils:ewe,TextWrapper:twe,createDatumId:iwe,Rect:z9,Group:V9,BBox:Nf,Selection:FL,Text:Jw,Transformable:owe,applyShapeStyle:swe,getShapeStyle:NL,getLabelStyles:nwe,mergeDefaults:_9}=R,rwe=class extends R.HierarchyNode{constructor(){super(...arguments),this.labelValue=void 0,this.secondaryLabelValue=void 0,this.label=void 0,this.secondaryLabel=void 0,this.bbox=void 0,this.padding=void 0}},H9=new Jw;function awe(e,t){const{fontStyle:i,fontWeight:o,fontSize:s,fontFamily:n}=t;H9.setProperties({text:e,fontStyle:i,fontWeight:o,fontSize:s,fontFamily:n,textAlign:"left",textBaseline:"top"});const{width:r,height:a}=H9.getBBox();return{width:r,height:a}}function mu(e){return e.children.length>0?e.sumSize-e.sizeValue:e.sizeValue}var $9={left:0,center:.5,right:1},lwe={top:0,middle:.5,bottom:1};(class extends R.Group{distanceSquared(e,t){return this.getBBox().distanceSquared(e,t)}});var eD=class extends R.HierarchySeries{constructor(){super(...arguments),this.NodeClass=rwe,this.properties=new Ea,this.rectGroup=this.contentGroup.appendChild(new V9),this.datumSelection=FL.select(this.rectGroup,z9),this.labelSelection=FL.select(this.labelGroup,V9),this.highlightSelection=FL.select(this.rectGroup,z9)}groupTitleHeight(e,t){const{labelValue:i}=e,{label:o}=this.properties.group,s=3;if(i!=null){if(o.fontSize>t.width/s||o.fontSize>t.height/s)return;{const{height:n}=awe(i,o);return Math.max(n,o.fontSize)}}}getNodePadding(e,t){if(e.parent==null)return{top:0,right:0,bottom:0,left:0};if(e.children.length===0){const{padding:r}=this.properties.tile;return{top:r,right:r,bottom:r,left:r}}const{label:{spacing:i},padding:o}=this.properties.group,s=this.groupTitleHeight(e,t),n=s!=null?s+i:0;return{top:o+n,right:o,bottom:o,left:o}}sortChildren({children:e}){const t=Array.from(e,(o,s)=>s).filter(o=>mu(e[o])>0).sort((o,s)=>mu(e[s])-mu(e[o]));return{sortedChildrenIndices:t,childAt:o=>{const s=t[o];return e[s]}}}squarify(e,t){const{datum:i,children:o}=e;if(t.width<=0||t.height<=0){e.bbox=void 0,e.padding=void 0,e.midPoint.x=NaN,e.midPoint.y=NaN;return}const s=i!=null?this.getNodePadding(e,t):{top:0,right:0,bottom:0,left:0};e.parent==null?(e.bbox=void 0,e.padding=void 0,e.midPoint.x=NaN,e.midPoint.y=NaN):(e.bbox=t,e.padding=s,e.midPoint.x=t.x+t.width/2,e.midPoint.y=t.y);const{sortedChildrenIndices:n,childAt:r}=this.sortChildren(e),a=n.every(D=>o[D].children.length===0),l=1,c=t.width-s.left-s.right,d=t.height-s.top-s.bottom;if(c<=0||d<=0)return;const u=n.length;let h=0,p=0,g=1/0,f=n.reduce((D,k)=>D+mu(o[k]),0);const y=new Nf(t.x+s.left,t.y+s.top,c,d),v=y.clone();let b=0;for(;b<u;){const D=mu(r(b)),k=mu(r(p)),A=v.width<v.height;h+=D;const w=A?v.height:v.width,M=A?v.width:v.height,T=M*k/h;let L=w*h/f;const N=Math.max(T,L)/Math.min(T,L),O=Math.abs(l-N);if(O<g){g=O,b++;continue}h-=D,L=w*h/f;let F=A?v.x:v.y;for(let E=p;E<b;E++){const G=r(E),B=mu(G),z=A?F:v.x,V=A?v.y:F,$=M*B/h,_=A?$:L,W=A?L:$,j=new Nf(z,V,_,W);this.applyGap(y,j,a),this.squarify(G,j),f-=B,F+=$}A?(v.y+=L,v.height-=L):(v.x+=L,v.width-=L),p=b,h=0,g=1/0}const C=v.width<v.height;let x=C?v.x:v.y;for(let D=p;D<u;D++){const k=r(D),A=C?x:v.x,w=C?v.y:x,M=mu(k)/f,T=v.width*(C?M:1),L=v.height*(C?1:M),N=new Nf(A,w,T,L);this.applyGap(y,N,a),this.squarify(k,N),x+=C?T:L}}applyGap(e,t,i){const o=i?this.properties.tile.gap*.5:this.properties.group.gap*.5,s=l=>({left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height}),n=s(e),r=s(t);["top","right","bottom","left"].forEach(l=>{_t(n[l],r[l])||t.shrink(o,l)})}createNodeData(){}getItemStyle(e,t,i){const{id:o,properties:s,colorScale:n,ctx:r}=this,{itemStyler:a,fillGradientDefaults:l,fillPatternDefaults:c,fillImageDefaults:d}=s,u=e.datumIndex?.[0]??0,h=t?s.fills:s.undocumentedGroupFills,p=t?s.strokes:s.undocumentedGroupStrokes,g=t?u:e.depth??-1,f=i?s.highlightStyle.getStyle(t):void 0,y=_9(f,s.getStyle(t,h,p,g));!i&&t&&e.colorValue!=null&&(y.fill=n.convert(e.colorValue));let v=NL(y,l,c,d);if(a!=null&&e!=null){const b=this.cachedDatumCallback(iwe(this.getDatumId(e),i?"highlight":"node"),()=>{const C=r.highlightManager?.getActiveHighlight(),x=this.getHighlightStateString(C,i,e.datumIndex);return this.callWithContext(a,{seriesId:o,datum:e.datum,depth:e.depth??-1,highlighted:i,highlightState:x,...v})});b&&(v=NL(_9(b,v),l,c,d))}return v}updateSelections(){let e=this.ctx.highlightManager?.getActiveHighlight();if(e!=null&&!this.properties.group.interactive&&e.children.length!==0&&(e=void 0),this.highlightSelection.update(e!=null?[e]:[],void 0,s=>this.getDatumId(s)),!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;const{seriesRect:t}=this.chart??{};if(!t)return;const i=Array.from(this.rootNode),o=s=>{s.append([new Jw({tag:0}),new Jw({tag:1})])};this.datumSelection.update(i,void 0,s=>this.getDatumId(s)),this.labelSelection.update(i,o,s=>this.getDatumId(s))}updateNodes(){const{rootNode:e,data:t}=this,{childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,highlightStyle:c,tile:d,group:u}=this.properties,{seriesRect:h}=this.chart??{};if(!h||!t)return;this.rootNode?.walk(C=>{const{datum:x,depth:D,children:k}=C,A=k.length===0,w=A?d.label:u.label;let M;if(w.enabled&&x!=null&&D!=null&&n!=null){const L=x[n];M=this.getLabelText(L,x,n,"label",[],w,{depth:D,datum:x,childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,value:L})}M===""&&(M=void 0);let T;if(d.secondaryLabel.enabled&&A&&x!=null&&D!=null&&r!=null){const L=x[r];T=this.getLabelText(L,x,r,"secondaryLabel",[],d.secondaryLabel,{depth:D,datum:x,childrenKey:i,colorKey:o,colorName:s,labelKey:n,secondaryLabelKey:r,sizeKey:a,sizeName:l,value:L})}T===""&&(T=void 0),C.labelValue=M,C.secondaryLabelValue=T});const{width:p,height:g}=h;this.squarify(e,new Nf(0,0,p,g)),this.rootNode?.walk(C=>{const{bbox:x,children:D,labelValue:k,secondaryLabelValue:A}=C;if(C.label=void 0,C.secondaryLabel=void 0,x!=null)if(D.length===0){const w={width:x.width,height:x.height,meta:null},M=dR(k,this.properties.tile.label,A,this.properties.tile.secondaryLabel,{padding:d.padding},()=>w);if(M==null)return;const{height:T,label:L,secondaryLabel:N}=M,{textAlign:O,verticalAlign:F,padding:E}=d,G=$9[O]??.5,B=x.x+E+(x.width-2*E)*G,z=lwe[F]??.5,V=x.y+E+T*.5+(x.height-2*E-T)*z;if(L!=null){const{fontStyle:$="normal",fontFamily:_,fontWeight:W="normal",color:j="black"}=this.properties.tile.label;C.label={text:L.text,fontSize:L.fontSize,lineHeight:L.lineHeight,fontStyle:$,fontFamily:_,fontWeight:W,color:j,textAlign:O,verticalAlign:"middle",x:B,y:V-(T-L.height)*.5}}if(N!=null){const{fontStyle:$="normal",fontFamily:_,fontWeight:W="normal",color:j="black"}=this.properties.tile.secondaryLabel;C.secondaryLabel={text:N.text,fontSize:N.fontSize,lineHeight:N.fontSize,fontStyle:$,fontFamily:_,fontWeight:W,color:j,textAlign:O,verticalAlign:"middle",x:B,y:V+(T-N.height)*.5}}}else{if(k==null)return;{const{padding:w,textAlign:M}=u,T=this.groupTitleHeight(C,x);if(T==null)return;const L=x.width-2*w,N=twe.wrapText(k,{maxWidth:x.width-2*w,font:u.label,textWrap:"never"}),O=$9[M]??.5,{fontStyle:F="normal",fontFamily:E,fontWeight:G="normal",color:B="black"}=this.properties.group.label;C.label={text:N,fontSize:u.label.fontSize,lineHeight:ewe.getLineHeight(u.label.fontSize),fontStyle:F,fontFamily:E,fontWeight:G,color:B,textAlign:M,verticalAlign:"middle",x:x.x+w+L*O,y:x.y+w+T*.5}}}});const f={series:new Nf(0,0,p,g),axis:new Nf(0,0,p,g)},y=(C,x,D)=>{const{bbox:k}=C;if(k==null){x.visible=!1;return}const{depth:A=-1}=C,w=C.children.length===0,M=this.getItemStyle(C,w,D);x.crisp=!0,swe(x,M,f),x.cornerRadius=w?d.cornerRadius:u.cornerRadius,x.zIndex=[0,A,D?1:0];const T=C.parent?.children.every(O=>O.children.length===0),L=C.parent!=null?C.parent.bbox:void 0,N=C.parent!=null?C.parent.padding:void 0;T===!0&&L!=null&&N!=null?(x.clipBBox=k,x.x=L.x+N.left,x.y=L.y+N.top,x.width=L.width-(N.left+N.right),x.height=L.height-(N.top+N.bottom)):(x.clipBBox=void 0,x.x=k.x,x.y=k.y,x.width=k.width,x.height=k.height),x.visible=!0};this.datumSelection.each((C,x)=>y(x,C,!1)),this.highlightSelection.each((C,x)=>{y(x,C,!0)});const v=(C,x,D,k)=>{const A=C.children.length===0,w=D===0?C.label:C.secondaryLabel;if(w==null){x.visible=!1;return}const M=D===0?d.label:d.secondaryLabel;let T;if(k){const{tile:E,group:G}=c;T=E.secondaryLabel.color,A?D===0&&(T=E.label.color):T=G.label.color}const L={childrenKey:this.properties.childrenKey,colorKey:this.properties.colorKey,colorName:this.properties.colorName??this.properties.colorKey,depth:C.depth??NaN,labelKey:this.properties.labelKey,secondaryLabelKey:this.properties.secondaryLabelKey,sizeKey:this.properties.sizeKey,sizeName:this.properties.sizeName??this.properties.sizeKey},N=this.ctx.highlightManager?.getActiveHighlight(),O=this.getHighlightStateString(N,k,C.datumIndex),F=nwe(this,C,L,M,k,O);x.text=w.text,x.fontSize=w.fontSize,x.lineHeight=w.lineHeight,x.fontStyle=w.fontStyle,x.fontFamily=w.fontFamily,x.fontWeight=w.fontWeight,x.fill=T??w.color,x.fillOpacity=this.getHighlightStyle(k,C.datumIndex)?.opacity??1,x.textAlign=w.textAlign,x.textBaseline=w.verticalAlign,x.x=w.x,x.y=w.y,x.setBoxing(F),x.visible=!0,x.zIndex=1},b=this.ctx.highlightManager?.getActiveHighlight();this.labelSelection.selectByClass(Jw).forEach(C=>{const x=C.closestDatum();v(x,C,C.tag,x===b)})}pickNodesExactShape(e){const t=super.pickNodesExactShape(e);return t.sort((i,o)=>o.datumIndex.length-i.datumIndex.length),t}pickNodeClosestDatum(e){const t=this.pickNodesExactShape(e);return t.length!==0?{datum:t[0],distance:0}:this.pickNodeNearestDistantObject(e,this.datumSelection.nodes())}getTooltipContent(e){const{id:t,properties:i}=this,{labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,tooltip:d}=i,u=e.reduce((A,w)=>A?.children[w],this.rootNode);if(u==null)return;const{datum:h,depth:p,children:g}=u;if(h==null||p==null)return;const f=g.length===0,y=[],v=r!=null?h[r]:void 0;v!=null&&y.push({label:a,fallbackLabel:r,value:v});const b=l!=null?h[l]:void 0;b!=null&&y.push({label:c,fallbackLabel:l,value:b});const C=this.getItemStyle({...u,colorValue:b??u.colorValue},f,!1),x=C.fill,D=NL({shape:"square",fill:x,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1,lineDash:[0],lineDashOffset:0},this.properties.fillGradientDefaults,this.properties.fillPatternDefaults,this.properties.fillImageDefaults);R.isGradientFill(D.fill)&&(D.fill={...D.fill,gradient:"linear",rotation:0,reverse:!1});const k=f?{marker:D}:void 0;return this.formatTooltipWithContext(d,{title:o!=null?h[o]:void 0,symbol:k,data:y},{seriesId:t,datum:h,title:void 0,depth:p,labelKey:o,secondaryLabelKey:s,childrenKey:n,sizeKey:r,sizeName:a,colorKey:l,colorName:c,...C})}computeFocusBounds(e){return owe.toCanvas(this.contentGroup,e.getBBox())}hasItemStylers(){return this.properties.itemStyler!=null}};eD.className="TreemapSeries",eD.type="treemap";var{commonSeriesOptionsDefs:cwe,treemapSeriesThemeableOptionsDef:dwe,without:uwe}=R,Of={...dwe,...uwe(cwe,["highlightStyle","highlight","showInLegend"]),type:ee(je("treemap")),labelKey:H,secondaryLabelKey:H,childrenKey:H,sizeKey:H,colorKey:H,sizeName:H,colorName:H};Of.fillGradientDefaults=Oe(pC),Of.fillPatternDefaults=Oe(gC),Of.fillImageDefaults=Oe(fC),Of.undocumentedGroupFills=Oe(_e(ke)),Of.undocumentedGroupStrokes=Oe(_e(ke));var{FONT_SIZE_RATIO:W9}=R,hwe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"treemap",moduleFactory:e=>new eD(e),solo:!0,themeTemplate:{series:{fills:{$palette:"fills"},strokes:{$palette:"strokes"},colorRange:{$palette:"divergingColors"},fillGradientDefaults:R.FILL_GRADIENT_LINEAR_DEFAULTS,fillPatternDefaults:R.FILL_PATTERN_DEFAULTS,fillImageDefaults:R.FILL_IMAGE_DEFAULTS,undocumentedGroupFills:{$palette:"hierarchyColors"},undocumentedGroupStrokes:{$palette:"secondHierarchyColors"},group:{label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,color:{$ref:"textColor"},fontStyle:void 0,fontWeight:{$ref:"fontWeight"},fontSize:{$ref:"fontSize"},fontFamily:{$ref:"fontFamily"},spacing:4},fill:void 0,stroke:void 0,strokeWidth:1,padding:4,gap:2,textAlign:"left"},tile:{label:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,color:{$ref:"chartBackgroundColor"},fontStyle:void 0,fontWeight:{$ref:"fontWeight"},fontSize:{$rem:1.5},minimumFontSize:{$rem:W9.SMALLER},fontFamily:{$ref:"fontFamily"},wrapping:"on-space",overflowStrategy:"ellipsis",spacing:2},secondaryLabel:{...R.LABEL_BOXING_DEFAULTS,enabled:!0,color:{$ref:"chartBackgroundColor"},fontStyle:void 0,fontWeight:void 0,fontSize:{$ref:"fontSize"},minimumFontSize:{$rem:W9.SMALLER},fontFamily:{$ref:"fontFamily"},wrapping:"never",overflowStrategy:"ellipsis"},fill:void 0,stroke:void 0,strokeWidth:{$isUserOption:["../strokes/0",2,{$isUserOption:["./stroke",2,0]}]},padding:3,gap:1},highlightStyle:{group:{label:{color:{$ref:"textColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2},tile:{label:{color:{$ref:"chartBackgroundColor"}},secondaryLabel:{color:{$ref:"chartBackgroundColor"}},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}}},gradientLegend:{enabled:!0,...R.LEGEND_CONTAINER_THEME}}},pwe={type:"series",name:"treemap",chartType:"standalone",enterprise:!0,options:Of,create:e=>new eD(e)};R.ModuleRegistry;var gwe=[ffe,gV,RV,iye,xye,HV,WV,d_,S_,A_],fwe=[mfe,yfe,vfe,bfe,ACe,G0e,$0e,MSe,NSe],mwe=[wfe,ZCe,tve,uxe,Xxe,pwe,hme,Exe],ywe=[Ife,Ave,Ove,abe,Rbe,Wbe],vwe=[...gwe,...fwe,...mwe,...ywe,Vfe,_fe,Hfe],bwe=`.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,PHN2ZyB3aWR0aD0iMjU4IiBoZWlnaHQ9IjQwIiB2aWV3Qm94PSIwIDAgMjU4IDQwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMjUuNzc5IDI4LjY1N0gxMy4zNTlMMTEuMTczIDM0LjAxMkg1LjY3Mjk3TDE3LjE4MiA3LjA1OTk5SDIxLjk1M0wzMy40NjIgMzQuMDEySDI3Ljk2MkwyNS43NzYgMjguNjU3SDI1Ljc3OVpNMjQuMDY4IDI0LjM5N0wxOS41ODggMTMuNDM0TDE1LjEwNyAyNC4zOTdIMjQuMDY4Wk02Mi4wOTIgMTguODIzSDQ5LjgxN1YyMy4wODZINTYuNzc1QzU2LjU1NSAyNS4yMjIgNTUuNzU1IDI2LjkyNyA1NC4zNzIgMjguMjAyQzUyLjk4OSAyOS40NzYgNTEuMTY2IDMwLjExNSA0OC45MDkgMzAuMTE1QzQ3LjYyMiAzMC4xMTUgNDYuNDUgMjkuODg1IDQ1LjM5MyAyOS40MjNDNDQuMzU4MyAyOC45NzgxIDQzLjQzMjYgMjguMzEzOCA0Mi42OCAyNy40NzZDNDEuOTI3IDI2LjYzOSA0MS4zNDQgMjUuNjMxIDQwLjkzMSAyNC40NTNDNDAuNTE5IDIzLjI3NSA0MC4zMTEgMjEuOTcgNDAuMzExIDIwLjUzN0M0MC4zMTEgMTkuMTA1IDQwLjUxNiAxNy44IDQwLjkzMSAxNi42MjFDNDEuMzQ0IDE1LjQ0MyA0MS45MjcgMTQuNDM2IDQyLjY4IDEzLjU5OEM0My40Mzc2IDEyLjc1NzcgNDQuMzY5NiAxMi4wOTMyIDQ1LjQxMSAxMS42NTFDNDYuNDc4IDExLjE4OSA0Ny42NTYgMTAuOTYgNDguOTQ2IDEwLjk2QzUxLjYxMiAxMC45NiA1My42MzcgMTEuNjAyIDU1LjAyIDEyLjg4NUw1OC4zIDkuNjA0OTlDNTUuODE3IDcuNjY5OTkgNTIuNjc2IDYuNjk5OTkgNDguODcyIDYuNjk5OTlDNDYuNzYgNi42OTk5OSA0NC44NTMgNy4wMzQ5OSA0My4xNTQgNy43MDA5OUM0MS40NTUgOC4zNjc5OSAzOS45OTggOS4zMDM5OSAzOC43ODMgMTAuNTA0QzM3LjU2NyAxMS43MDcgMzYuNjM0IDEzLjE1OCAzNS45NzcgMTQuODU3QzM1LjMxOSAxNi41NTYgMzQuOTk0IDE4LjQ1MSAzNC45OTQgMjAuNTRDMzQuOTk0IDIyLjYzIDM1LjMyOSAyNC40OTQgMzUuOTk1IDI2LjIwNUMzNi42NjIgMjcuOTE2IDM3LjYwNSAyOS4zNzQgMzguODE3IDMwLjU3N0M0MC4wMzIgMzEuNzggNDEuNDg2IDMyLjcxMyA0My4xODggMzMuMzgzQzQ0Ljg4OCAzNC4wNDkgNDYuNzgyIDM0LjM4NCA0OC44NzIgMzQuMzg0QzUwLjk2MSAzNC4zODQgNTIuNzUgMzQuMDQ5IDU0LjM5IDMzLjM4M0M1Ni4wMzEgMzIuNzE2IDU3LjQyNiAzMS43OCA1OC41NzkgMzAuNTc3QzU5LjczMyAyOS4zNzQgNjAuNjE5IDI3LjkxNiA2MS4yMzkgMjYuMjA1QzYxLjg2IDI0LjQ5NCA2Mi4xNyAyMi42MDUgNjIuMTcgMjAuNTRDNjIuMTY5NiAxOS45Njg4IDYyLjE0NDUgMTkuMzk4IDYyLjA5NSAxOC44MjlMNjIuMDkyIDE4LjgyM1pNMTUxLjgxIDE2Ljk4MUMxNTMuNDEgMTQuNjA5IDE1Ny40MTkgMTQuMzU4IDE1OS4wMjIgMTQuMzU4VjE4LjkxQzE1Ni45NTcgMTguOTEgMTU0Ljk4NSAxOC45OTYgMTUzLjc1NyAxOS44OTJDMTUyLjUyOSAyMC43OTIgMTUxLjkxOSAyMS45ODIgMTUxLjkxOSAyMy40NjRWMzMuOTlIMTQ2Ljk2NFYxNC4zNThIMTUxLjczNkwxNTEuODEgMTYuOTgxWk0xNDMuMDExIDE0LjM2MVYzNC4wMzFIMTM4LjI0TDEzOC4xMzEgMzEuMDQ1QzEzNy40NjYgMzIuMDc2IDEzNi41NTEgMzIuOTIxOSAxMzUuNDcxIDMzLjUwNEMxMzQuMzc2IDM0LjA5OSAxMzMuMDY4IDM0LjM5NiAxMzEuNTM2IDM0LjM5NkMxMzAuMiAzNC4zOTYgMTI4Ljk2MyAzNC4xNTIgMTI3LjgyMiAzMy42NjhDMTI2LjcgMzMuMTk2NCAxMjUuNjg5IDMyLjQ5NSAxMjQuODU1IDMxLjYwOUMxMjQuMDE4IDMwLjcyMiAxMjMuMzU0IDI5LjY2MiAxMjIuODcxIDI4LjQyMkMxMjIuMzg0IDI3LjE4NSAxMjIuMTQyIDI1LjgxMSAxMjIuMTQyIDI0LjMwNEMxMjIuMTQyIDIyLjc5OCAxMjIuMzg0IDIxLjM3OCAxMjIuODcxIDIwLjExNkMxMjMuMzU3IDE4Ljg1NCAxMjQuMDE4IDE3Ljc3MiAxMjQuODU1IDE2Ljg3M0MxMjUuNjg4IDE1Ljk3NjQgMTI2LjY5OCAxNS4yNjM2IDEyNy44MjIgMTQuNzhDMTI4Ljk2MyAxNC4yODEgMTMwLjIwMyAxNC4wMzMgMTMxLjUzNiAxNC4wMzNDMTMzLjA0MyAxNC4wMzMgMTM0LjMzIDE0LjMxOCAxMzUuMzk3IDE0Ljg4OEMxMzYuNDYyIDE1LjQ1ODkgMTM3LjM3NSAxNi4yNzggMTM4LjA1NyAxNy4yNzZWMTQuMzYxSDE0My4wMTFaTTEzMi42MzEgMzAuMTMzQzEzNC4yNTYgMzAuMTMzIDEzNS41NjcgMjkuNTk0IDEzNi41NjUgMjguNTEyQzEzNy41NjEgMjcuNDMgMTM4LjA2IDI1Ljk5MSAxMzguMDYgMjQuMTk2QzEzOC4wNiAyMi40MDEgMTM3LjU2MSAyMC45OSAxMzYuNTY1IDE5Ljg5OUMxMzUuNTcgMTguODA3IDEzNC4yNTkgMTguMjU4IDEzMi42MzEgMTguMjU4QzEzMS4wMDMgMTguMjU4IDEyOS43MjkgMTguODA0IDEyOC43MzQgMTkuODk5QzEyNy43MzggMjAuOTkzIDEyNy4yMzkgMjIuNDM4IDEyNy4yMzkgMjQuMjMzQzEyNy4yMzkgMjYuMDI4IDEyNy43MzUgMjcuNDMzIDEyOC43MzQgMjguNTE1QzEyOS43MjkgMjkuNTk0IDEzMS4wMjggMzAuMTM2IDEzMi42MzEgMzAuMTM2VjMwLjEzM1pNOTMuNjk4IDI3Ljg3NkM5My41Nzk1IDI4LjAwMjUgOTMuNDU2NCAyOC4xMjQ2IDkzLjMyOSAyOC4yNDJDOTEuOTQ3IDI5LjUxNiA5MC4xMjMgMzAuMTU1IDg3Ljg2NiAzMC4xNTVDODYuNTggMzAuMTU1IDg1LjQwOCAyOS45MjYgODQuMzUgMjkuNDY0QzgzLjMxNTUgMjkuMDE4OSA4Mi4zODk4IDI4LjM1NDYgODEuNjM3IDI3LjUxN0M4MC44ODQgMjYuNjc5IDgwLjMwMSAyNS42NzIgNzkuODg5IDI0LjQ5NEM3OS40NzYgMjMuMzE1IDc5LjI2OSAyMi4wMSA3OS4yNjkgMjAuNTc4Qzc5LjI2OSAxOS4xNDUgNzkuNDczIDE3Ljg0IDc5Ljg4OSAxNi42NjJDODAuMzAxIDE1LjQ4NCA4MC44ODQgMTQuNDc2IDgxLjYzNyAxMy42MzlDODIuMzk0OSAxMi43OTg3IDgzLjMyNzMgMTIuMTM0MiA4NC4zNjkgMTEuNjkyQzg1LjQzNiAxMS4yMyA4Ni42MTQgMTEgODcuOTAzIDExQzkwLjU3IDExIDkyLjU5NSAxMS42NDIgOTMuOTc3IDEyLjkyNkw5Ny4yNTggOS42NDQ5OUM5NC43NzQgNy43MTA5OSA5MS42MzMgNi43Mzk5OSA4Ny44MjkgNi43Mzk5OUM4NS43MTggNi43Mzk5OSA4My44MTEgNy4wNzQ5OSA4Mi4xMTIgNy43NDE5OUM4MC40MTMgOC40MDc5OSA3OC45NTYgOS4zNDQ5OSA3Ny43NCAxMC41NDVDNzYuNTI1IDExLjc0NyA3NS41OTIgMTMuMTk5IDc0LjkzNCAxNC44OThDNzQuMjc3IDE2LjU5NyA3My45NTEgMTguNDkxIDczLjk1MSAyMC41ODFDNzMuOTUxIDIyLjY3IDc0LjI4NiAyNC41MzQgNzQuOTUzIDI2LjI0NUM3NS42MTkgMjcuOTU3IDc2LjU2MiAyOS40MTQgNzcuNzc0IDMwLjYxN0M3OC45OSAzMS44MiA4MC40NDQgMzIuNzUzIDgyLjE0NiAzMy40MjNDODMuODQ1IDM0LjA5IDg1LjczOSAzNC40MjQgODcuODI5IDM0LjQyNEM4OS45MTkgMzQuNDI0IDkxLjcwOCAzNC4wOSA5My4zNDggMzMuNDIzQzk0LjcxOCAzMi44NjUgOTUuOTE4IDMyLjEyMSA5Ni45NDggMzEuMTkxQzk3LjE0OSAzMS4wMDggOTcuMzQ4IDMwLjgxNSA5Ny41MzcgMzAuNjJMOTMuNzAxIDI3Ljg4NUw5My42OTggMjcuODc2Wk0xMTAuODAyIDE0LjAxNUMxMDkuMTk5IDE0LjAxNSAxMDYuODM2IDE0LjQ3MSAxMDUuNjExIDE2LjE1OEwxMDUuNTM3IDYuMDE1OTlIMTAwLjc2NVYzMy45MzlIMTA1LjcyVjIyLjY0MUMxMDUuNzcxIDIxLjQ2MDcgMTA2LjI4OCAyMC4zNDg4IDEwNy4xNTcgMTkuNTQ4OUMxMDguMDI3IDE4Ljc0OTEgMTA5LjE3OCAxOC4zMjY2IDExMC4zNTggMTguMzc0QzExMy4zOTcgMTguMzc0IDExNC4yNjggMjEuMTU5IDExNC4yNjggMjIuNjQxVjMzLjkzOUgxMTkuMjIzVjIxLjA1OUMxMTkuMjIzIDIxLjA1OSAxMTkuMTQyIDE0LjAxNSAxMTAuODAyIDE0LjAxNVpNMTczLjc2MyAxNC4zNThIMTY5Ljk5OVY4LjcxNDk5SDE2NS4wNDhWMTQuMzU4SDE2MS4yODRWMTguOTE2SDE2NS4wNDhWMzQuMDAzSDE2OS45OTlWMTguOTE2SDE3My43NjNWMTQuMzU4Wk0xOTAuNzg3IDI1LjI2MkMxOTAuMTI5IDI0LjUwMTQgMTg5LjMwNyAyMy44OTk0IDE4OC4zODQgMjMuNTAxQzE4Ny40ODggMjMuMTE3IDE4Ni4zMzEgMjIuNzMyIDE4NC45NDggMjIuMzY0QzE4NC4xNjUgMjIuMTQzOSAxODMuMzkgMjEuODk3OCAxODIuNjIzIDIxLjYyNkMxODIuMTYzIDIxLjQ2MjEgMTgxLjc0MSAyMS4yMDY2IDE4MS4zODMgMjAuODc1QzE4MS4yMzUgMjAuNzQyMSAxODEuMTE4IDIwLjU3ODkgMTgxLjAzOSAyMC4zOTY0QzE4MC45NjEgMjAuMjE0IDE4MC45MjIgMjAuMDE2NiAxODAuOTI3IDE5LjgxOEMxODAuOTI3IDE5LjI3MiAxODEuMTU2IDE4Ljg0NCAxODEuNjI1IDE4LjUxQzE4Mi4xMjEgMTguMTU2IDE4Mi44NjIgMTcuOTc2IDE4My44MjYgMTcuOTc2QzE4NC43OSAxNy45NzYgMTg1LjU4NyAxOC4yMDkgMTg2LjE0OCAxOC42NjhDMTg2LjcwNiAxOS4xMjQgMTg3LjAwNyAxOS43MjUgMTg3LjA3MiAyMC41TDE4Ny4wOTQgMjAuNzgySDE5MS42MzNMMTkxLjYxNyAyMC40NkMxOTEuNTIxIDE4LjQ4NSAxOTAuNzcxIDE2LjkgMTg5LjM4NSAxNS43NUMxODguMDEyIDE0LjYxMiAxODYuMTg1IDE0LjAzMyAxODMuOTYyIDE0LjAzM0MxODIuNDc3IDE0LjAzMyAxODEuMTQxIDE0LjI4NyAxNzkuOTk0IDE0Ljc4NkMxNzguODMxIDE1LjI5MSAxNzcuOTI2IDE1Ljk5NSAxNzcuMjk2IDE2Ljg4MkMxNzYuNjczIDE3Ljc0NTUgMTc2LjMzOCAxOC43ODQgMTc2LjM0MSAxOS44NDlDMTc2LjM0MSAyMS4xNjcgMTc2LjY5OCAyMi4yNDkgMTc3LjM5OSAyMy4wNjRDMTc4LjA2IDIzLjg0MzIgMTc4Ljg5OCAyNC40NTM0IDE3OS44NDIgMjQuODQ0QzE4MC43NDQgMjUuMjE2IDE4MS45MjggMjUuNjA3IDE4My4zNjEgMjZDMTg0LjgwNiAyNi40MSAxODUuODcyIDI2Ljc4NSAxODYuNTMgMjcuMTIzQzE4Ny4xIDI3LjQxNCAxODcuMzc5IDI3Ljg0NSAxODcuMzc5IDI4LjQ0NEMxODcuMzc5IDI5LjA0MiAxODcuMTIyIDI5LjQ2NyAxODYuNTk1IDI5LjgzOUMxODYuMDQzIDMwLjIyNiAxODUuMjM3IDMwLjQyNSAxODQuMjAxIDMwLjQyNUMxODMuMTY2IDMwLjQyNSAxODIuMzk0IDMwLjE3NCAxODEuNzQ5IDI5LjY3NEMxODEuMTEzIDI5LjE4MSAxODAuNzcyIDI4LjU4OSAxODAuNzEgMjcuODY0TDE4MC42ODUgMjcuNTgySDE3Ni4wMTNMMTc2LjAyNSAyNy45MDFDMTc2LjA2NyAyOS4wOTU1IDE3Ni40NzIgMzAuMjQ4NyAxNzcuMTg4IDMxLjIwNkMxNzcuOTA3IDMyLjE4IDE3OC44OTMgMzIuOTU4IDE4MC4xMTggMzMuNTE5QzE4MS4zMzYgMzQuMDc3IDE4Mi43MzIgMzQuMzYyIDE4NC4yNjYgMzQuMzYyQzE4NS44MDEgMzQuMzYyIDE4Ny4xMDkgMzQuMTA4IDE4OC4yMzggMzMuNjA5QzE4OS4zNzYgMzMuMTA0IDE5MC4yNzIgMzIuMzk0IDE5MC45MDEgMzEuNDk0QzE5MS41MzQgMzAuNTkyIDE5MS44NTMgMjkuNTU0IDE5MS44NTMgMjguNDAzQzE5MS44MjggMjcuMTEgMTkxLjQ2NiAyNi4wNTMgMTkwLjc3NyAyNS4yNjJIMTkwLjc4N1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTI0MS45ODIgMjUuNjU4MlYxNy43MTE3SDIyOC40NDFMMjIwLjQ5NCAyNS42NTgySDI0MS45ODJaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yNTcuMjM5IDUuOTUwODFIMjQwLjI2NUwyMzIuMjU1IDEzLjg5NzNIMjU3LjIzOVY1Ljk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjEyLjYxMSAzMy42MDQ4TDIxNi42OCAyOS41MzYxSDIzMC40MTJWMzcuNDgyN0gyMTIuNjExVjMzLjYwNDhaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yMTUuNTk5IDIxLjc4MDNIMjI0LjM3MkwyMzIuMzgyIDEzLjgzMzdIMjE1LjU5OVYyMS43ODAzWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjA2IDMzLjYwNDdIMjEyLjYxMUwyMjAuNDk0IDI1LjY1ODJIMjA2VjMzLjYwNDdaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0yNDAuMjY1IDUuOTUwODFMMjM2LjE5NyAxMC4wMTk0SDIxMC4yNTlWMi4wNzI4OEgyNDAuMjY1VjUuOTUwODFaIiBmaWxsPSIjOUI5QjlCIi8+Cjwvc3ZnPgo=);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:var(--ag-charts-chrome-font-size-large)}.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:calc(var(--ag-charts-spacing) * 2)}.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-panel-subtle-text-color);margin-bottom:-1px;padding:var(--input-padding) calc(var(--input-padding) / 2)}.ag-charts-dialog__tab-button:hover{background:none}.ag-charts-dialog__tab-button--active{border-color:var(--ag-charts-accent-color);color:inherit}.ag-charts-dialog__drag-handle+.ag-charts-dialog__tab-button{margin-left:calc(var(--ag-charts-spacing) * -2)}.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-spacing) * 4);margin:0 calc(var(--ag-charts-spacing) * 4);padding:calc(var(--ag-charts-spacing) * 4) 0}.ag-charts-dialog__tab-panel--active{display:flex}.ag-charts-dialog__input-group-line{display:flex;gap:16px 18px;flex-wrap:wrap}.ag-charts-dialog__input-group{align-items:center;display:flex;font-size:var(--ag-charts-chrome-font-size)}.ag-charts-dialog__input-group-label{color:var(--ag-charts-panel-subtle-text-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-button-focus-background-color);border-color:var(--ag-charts-input-focus-border-color);color:var(--ag-charts-input-focus-text-color);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;cursor:default;--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:calc(var(--ag-charts-border-radius) * 1.5);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:calc(var(--ag-charts-border-radius) * 99);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::-moz-range-thumb,.ag-charts-color-picker__alpha-input::-moz-range-thumb{appearance:none;width:var(--thumb-size);height:var(--thumb-size);border-radius:calc(var(--ag-charts-border-radius) * 99);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__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:calc(var(--ag-charts-border-radius) * 99);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::-moz-range-thumb{background:hsl(var(--h),100%,50%)}.ag-charts-color-picker__hue-input::-webkit-slider-thumb{background:hsl(var(--h),100%,50%)}.ag-charts-color-picker__alpha-input::-moz-range-thumb{background:transparent}.ag-charts-color-picker__alpha-input::-webkit-slider-thumb{background:transparent}.ag-charts-color-picker__alpha-input--opaque::-moz-range-thumb{background:var(--color)}.ag-charts-color-picker__alpha-input--opaque::-webkit-slider-thumb{background:var(--color)}.ag-charts-color-picker__hue-input:focus-visible::-moz-range-thumb,.ag-charts-color-picker__alpha-input:focus-visible::-moz-range-thumb{outline:var(--ag-charts-focus-border);box-shadow:var(--box-shadow),var(--ag-charts-focus-border-shadow)}.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::-moz-range-track,.ag-charts-color-picker__alpha-input::-moz-range-track{position:absolute;content:"";display:block;top:calc(50% - var(--track-height) / 2);left:var(--inset);right:var(--inset);height:var(--track-height);border-radius:calc(var(--ag-charts-border-radius) * 99);box-shadow:inset 0 0 0 1px #0003}.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:calc(var(--ag-charts-border-radius) * 99);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:calc(var(--ag-charts-border-radius) * 99);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::-moz-range-track{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__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::-moz-range-track{background:linear-gradient(to right,transparent,var(--color)),var(--checker) top left / 4px 4px}.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:var(--ag-charts-border-radius);overflow:hidden}.ag-charts-color-picker__color-field:has(:focus-visible){border-color:var(--ag-charts-accent-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:calc(var(--ag-charts-border-radius) / 2);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{border-top-left-radius:0;border-top-right-radius:0;.ag-charts-menu__row:first-child{border-radius:0}}.ag-charts-annotations__text-size-menu{--item-padding: 4px 8px;min-width:34px;text-align:center}.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__stroke-width-button:before{background:var(--ag-charts-foreground-color);content:"";margin-right:var(--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__axis-button--hidden{display:none}.ag-charts-annotations__axis-button{background-color:var(--ag-charts-crosshair-label-background-color);border-radius:calc(var(--ag-charts-border-radius) / 2);border:none;box-sizing:border-box;color:var(--ag-charts-crosshair-label-text-color);cursor:pointer;font-family:var(--ag-charts-button-font-family);font-size:var(--ag-charts-button-font-size);font-weight:var(--ag-charts-button-font-weight);left:0;line-height:16px;overflow:hidden;padding:0;position:absolute;top:0;user-select:none;white-space:nowrap;z-index:var(--ag-charts-layer-annotations)}.ag-charts-annotations__axis-button:hover{opacity:.8;color:var(--ag-charts-background-color)}.ag-charts-dialog--annotation-settings{min-height:233px;width:289px}.ag-charts-dialog--annotation-settings .ag-charts-textarea{height:calc(10px * 2 + var(--textarea-line-height) * 1em * 3 + 2px);overflow-y:auto;resize:vertical}.ag-charts-context-menu{font-family:var(--ag-charts-chrome-font-family);font-size:var(--ag-charts-chrome-font-size);font-weight:var(--ag-charts-chrome-font-weight);z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-context-menu__cover{position:fixed;left:0;top:0}.ag-charts-context-menu__menu{background:var(--ag-charts-menu-background-color);border-radius:var(--ag-charts-border-radius);border:var(--ag-charts-menu-border);box-shadow:var(--ag-charts-popup-shadow);color:var(--ag-charts-menu-text-color);display:flex;flex-direction:column;padding:.5em 0;transition:transform .1s ease;white-space:nowrap}.ag-charts-context-menu__menu:focus{outline:none}.ag-charts-context-menu__item{align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;font:inherit;justify-content:space-between;text-align:left;width:100%;-webkit-appearance:none;-moz-appearance:none}.ag-charts-context-menu__icon>img{width:var(--ag-charts-icon-size);height:var(--ag-charts-icon-size)}.ag-charts-context-menu__icon,.ag-charts-context-menu__cell{display:flex;align-items:center;flex-shrink:0}.ag-charts-context-menu__cell{flex-grow:1}.ag-charts-context-menu__cellpadding{padding:.5em 1em}.ag-charts-context-menu__icon{padding-right:0}.ag-charts-context-menu__item[data-focus-override=true],.ag-charts-context-menu__item:focus,.ag-charts-context-menu__item:active{background:var(--ag-charts-focus-color)}.ag-charts-context-menu__item[data-focus-override=false]{background:inherit}.ag-charts-context-menu__item[data-focus-visible-override=true]:focus,.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[data-focus-visible-override=false]{outline:inherit;box-shadow:inherit;z-index:inherit}.ag-charts-context-menu__item[aria-disabled=true]{border:none;color:color-mix(in srgb,var(--ag-charts-input-text-color) 50%,transparent)}.ag-charts-context-menu__item[aria-disabled=true]:focus{background:inherit;cursor:inherit}.ag-charts-context-menu__divider{padding:5px 0}.ag-charts-context-menu__divider:after{content:"";display:block;border-top:1px solid var(--ag-charts-border-color)}.ag-charts-crosshair-label{position:absolute;left:0;top:0;user-select:none;pointer-events:none;font-family:var(--ag-charts-font-family);font-size:var(--ag-charts-font-size);font-weight:var(--ag-charts-font-weight);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:calc(var(--ag-charts-border-radius) / 2);line-height:calc(var(--ag-charts-font-size) + 8px);background-color:var(--ag-charts-crosshair-label-background-color);color:var(--ag-charts-crosshair-label-text-color)}.ag-charts-crosshair-label--hidden{visibility:hidden!important}.ag-charts-text-input{position:absolute}.ag-charts-text-input__textarea{--placeholder-text-color: var(--ag-charts-input-placeholder-text-color);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(--placeholder-text-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(--toolbar-button-padding) calc(var(--toolbar-button-padding) * 1.5)}.ag-charts-zoom-buttons{align-items:center;display:flex;height:44px;justify-content:center;overflow:hidden;padding-bottom:10px;pointer-events:none;width:100%;.ag-charts-toolbar{--toolbar-size: 24px;--toolbar-button-padding: 1px;display:flex;font-size:var(--ag-charts-chrome-font-size);height:var(--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-border-radius);border-top-left-radius:var(--ag-charts-border-radius)}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-border-radius);border-top-right-radius:var(--ag-charts-border-radius)}.ag-charts-toolbar__label{padding-left:var(--ag-charts-spacing);padding-right:var(--ag-charts-spacing)}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{padding-left:0}.ag-charts-toolbar__button--gap{margin-left:var(--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(--toolbar-gap);.ag-charts-toolbar__button{border-radius:var(--ag-charts-border-radius);margin:0}}
26
- `;R.ModuleRegistry.registerMany(vwe,Qp);function Cwe(){R.moduleRegistry.register(Qse,one,Pne,fle,xle,pce,tde,Hde,ume,tye,Sye,yue,Ble,Hle,Zle,Ple,qle,dce,eve,kve,Nve,rbe,Tbe,$be,Wpe,cge,lfe,hue,kCe,une,B0e,H0e,DSe,FSe,Ine,dxe,Lne,epe,hhe,qpe,XCe,Pxe,Jpe,Yxe,yge,hwe,Ppe,Gge),R.enterpriseModule.isEnterprise=!0,R.enterpriseModule.styles=bwe,R.enterpriseModule.licenseManager=e=>new Zg(e.container?.ownerDocument??(typeof document>"u"?void 0:document)),R.enterpriseModule.injectWatermark=cfe}Cwe();var Swe={setLicenseKey(e){Zg.setLicenseKey(e)}};Rr.create.bind(Rr),Rr.__createSparkline.bind(Rr),Zg.setGridContext.bind(Zg),Zg.setLicenseKey.bind(Zg);function OL(e){const t=e.value?.value!=null?e.value.value:e.value;return t==null||t===""?"":t}function BL(e,t){const i=Number(e);return isFinite(i)?i.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:t}):String(e)}function j9(e){return typeof e!="number"?2:Math.min(Math.max(0,e),20)}function U9(e,t){const i=OL(e);return i===""?"":"$"+BL(i,j9(t))}function xwe(e,t){return OL(e)===""?"":BL(e.value*100,j9(t))+"%"}function wwe(e){const t=OL(e);return t===""?"":BL(t,0)}function Dwe(e,t){return e.value}const tD=123e-6,Mwe={key:0,class:"pv-flex pv-chart-loading"},kwe=m.defineComponent({__name:"PvChart",props:{options:{},seriesFormatType:{default:"none"},isLoading:{type:Boolean,default:!1},enableFocusView:{type:Boolean,default:!1},minHeight:{default:450},translateNullValues:{type:Boolean,default:!0}},emits:["series-visibility-change"],setup(e,{expose:t,emit:i}){const o=e,s=i;Swe.setLicenseKey("Using_this_{AG_Charts}_Enterprise_key_{AG-087886}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Charts}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{9_May_2026}____[v3]_[02]_MTc3ODI4MTIwMDAwMA==b240799c3daa50107bb7f3adff911d8f");const r={seriesVisibilityChange:f=>{s("series-visibility-change",f)}},a=m.ref(null),l=m.computed(()=>(g.value?.series||[]).some(y=>y.type==="map-shape")),c=m.computed(()=>{const f=g.value?.series||[];let y=!1;return f.forEach(v=>{v.type==="bar"&&v.direction==="horizontal"&&(y=!0)}),y}),d=f=>{const y=f.xName,v=f.yKey,b=f.datum[v];if(console.log("tooltip",b),b==null||b===tD)return{heading:y,data:[]};let C=String(b)||"";const D=g.value?.series?.find(k=>k.yKey===v);if(D&&D?.label?.formatter){const k=D?.label?.formatter;C=k({value:b})||C}return{heading:y,data:[{label:f.yName,value:C}]}},u=f=>{if(!f||!o.translateNullValues)return f;const y=new Set;return f.forEach(v=>{Object.keys(v).forEach(b=>y.add(b))}),f.map(v=>{const b={...v};return y.forEach(C=>{C in b?b[C]===null&&(b[C]=tD):b[C]=tD}),b})},h=f=>f&&f.map(y=>{const v={...y};return v.tooltip||(v.tooltip={}),v.tooltip.renderer||(v.tooltip.renderer=d),v}),p=m.computed(()=>{if(o.seriesFormatType==="currency")return U9;if(o.seriesFormatType==="percent")return 0}),g=m.computed(()=>{const f={...o.options};return f.theme||(f.theme=Tse),f.data=u(f.data),f.series=h(f.series),f.overlays||(f.overlays={noData:{text:"No data to display"},noVisibleSeries:{text:"No visible series"}}),f.axes||(f.axes=[{type:"category",position:c.value?"left":"bottom"},{type:"number",position:c.value?"bottom":"left",label:{formatter:p.value}}]),f.contextMenu||(f.contextMenu={enabled:!1}),f.listeners={...f.listeners||{},...r},f});return t({getChartImageDataURL:f=>a.value?.chart?.getImageDataURL({width:f?.width,height:f?.height})}),(f,y)=>(m.openBlock(),m.createElementBlock("div",null,[m.createVNode(m.unref(Ise),{ref_key:"chartRef",ref:a,style:m.normalizeStyle([{height:"100%"},l.value?"":`min-height: ${f.minHeight}px`]),options:g.value},null,8,["style","options"]),f.isLoading?(m.openBlock(),m.createElementBlock("div",Mwe,[m.createVNode(BS,{size:"xl"})])):m.createCommentVNode("",!0)]))}}),wn=(e,t)=>{const i=e.__vccOpts||e;for(const[o,s]of t)i[o]=s;return i},GL=wn(kwe,[["__scopeId","data-v-98f8e317"]]);var jc=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let s=o.get(e);return!s&&i&&(s=new Set,o.set(e,s)),s}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),o.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const o=(a,l)=>a.forEach(c=>{if(!l.has(c))return;const d=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(d):d()}),s=this.getListeners(i,t,!1)??new Set,n=new Set(s);n.size>0&&o(n,s),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(i,e)):()=>a(i,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function Awe(e,t){return t}function zL(e){return e?.getLocaleTextFunc()??Awe}function Xr(e,t,i){i==null||typeof i=="string"&&i==""?VL(e,t):Zr(e,t,i)}function Zr(e,t,i){e.setAttribute(K9(t),i.toString())}function VL(e,t){e.removeAttribute(K9(t))}function K9(e){return`aria-${e}`}function zs(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Iwe(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function Twe(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Rwe(e){return e.getAttribute("aria-label")}function tr(e,t){Xr(e,"label",t)}function Bf(e,t){Xr(e,"labelledby",t)}function _L(e,t){Xr(e,"describedby",t)}function Y9(e,t){Xr(e,"live",t)}function Lwe(e,t){Xr(e,"atomic",t)}function Pwe(e,t){Xr(e,"relevant",t)}function X9(e,t){Xr(e,"level",t)}function Z9(e,t){Xr(e,"disabled",t)}function q9(e,t){Xr(e,"hidden",t)}function Fl(e,t){Zr(e,"expanded",t)}function Ewe(e){VL(e,"expanded")}function Q9(e,t){Zr(e,"setsize",t)}function J9(e,t){Zr(e,"posinset",t)}function Fwe(e,t){Zr(e,"multiselectable",t)}function Nwe(e,t){Zr(e,"rowcount",t)}function e6(e,t){Zr(e,"rowindex",t)}function Owe(e,t){Zr(e,"colcount",t)}function t6(e,t){Zr(e,"colindex",t)}function Bwe(e,t){Zr(e,"colspan",t)}function Gwe(e,t){Zr(e,"sort",t)}function zwe(e){VL(e,"sort")}function HL(e,t){Xr(e,"selected",t)}function i6(e,t){Zr(e,"checked",t===void 0?"mixed":t)}function Vwe(e,t){Xr(e,"controls",t.id),Bf(t,e.id)}function _we(e,t){Xr(e,"haspopup",t===!1?null:t)}function o6(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var $L,WL,jL,UL,KL,YL,XL;function iD(){return $L===void 0&&($L=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),$L}function ZL(){return WL===void 0&&(WL=/(firefox)/i.test(navigator.userAgent)),WL}function s6(){return jL===void 0&&(jL=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),jL}function dp(){return UL===void 0&&(UL=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),UL}function n6(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!ZL())?null:t.toString()}function Hwe(){if(XL!==void 0)return XL;if(!document.body)return-1;let e=1e6;const t=ZL()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const o=e*2;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return document.body.removeChild(i),XL=e,e}function $we(){return YL==null&&r6(),YL}function r6(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.parentNode.removeChild(t),i!=null&&(YL=i,KL=i===0)}function a6(){return KL==null&&r6(),KL}function l6(e,t,i){const o=e.parentElement;let s=o&&o.firstChild;for(;s;)t&&s.classList.toggle(t,s===e),s=s.nextSibling}var Wwe="[tabindex], input, select, button, textarea, [href]",c6="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function qL(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),s=t.call(e,c6),n=ir(e);return o&&!s&&n}function Ue(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||q9(e,!t)}function jwe(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||q9(e,!t)}function Zv(e,t){const i="disabled",o=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const n of s)o(n)}function up(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++o>i)break}else if(e===i)break}return!1}function Gf(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:g,boxSizing:f}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(d||"0"),marginTop:parseFloat(u||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(g||"0"),boxSizing:f}}function oD(e){const t=Gf(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function qv(e){const t=Gf(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function d6(e){const{height:t,marginBottom:i,marginTop:o}=Gf(e);return Math.floor(t+i+o)}function sD(e){const{width:t,marginLeft:i,marginRight:o}=Gf(e);return Math.floor(t+i+o)}function u6(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:n}=Gf(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function nD(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function rD(e,t,i){i&&(t*=-1),e.scrollLeft=t}function en(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function qr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function h6(e){return!!e.offsetParent}function ir(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!h6(e)||window.getComputedStyle(e).visibility!=="visible")}function aD(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function p6(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function g6(e,t){for(let i=0;i<t.length;i++){const o=t[i],s=e.children[i];s!==o&&e.insertBefore(o,s)}}function Uwe(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function Qv(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i||!i.length||o==null)continue;const s=Uwe(i),n=o.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function Kwe(e){return e.clientWidth<e.scrollWidth}function Ywe(e){return e.clientHeight<e.scrollHeight}function lD(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Nl(e,t)}function Nl(e,t){t=QL(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Jv(e,t){t=QL(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function QL(e){return typeof e=="number"?`${e}px`:e}function cD(e){return e instanceof Node||e instanceof HTMLElement}function zf(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function yu(e,t,i){const s=R6(e).ResizeObserver,n=s?new s(i):null;return n?.observe(t),()=>n?.disconnect()}function Xwe(e){const t=Hf(e),i="getSelection"in t?t.getSelection():null,o=[];for(let s=0;s<(i?.rangeCount??0);s++){const n=i?.getRangeAt(s);n&&o.push(n)}return{selection:i,ranges:o}}function f6(e,t){if(!e.gos.get("enableCellTextSelection")||!ZL()&&!iD())return t();const{selection:o,ranges:s}=Xwe(e);t(),o?.removeAllRanges();for(const n of s)o?.addRange(n)}function Fa(e,t){const i=R6(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var m6="data-ref",JL;function y6(){return JL??(JL=document.createTextNode(" ")),JL.cloneNode()}function Kt(e){const{attrs:t,children:i,cls:o,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),s&&a.setAttribute(m6,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const c of i)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):(l&&(a.appendChild(y6()),l=!1),a.append(Kt(c)),a.appendChild(y6())))}return a}function tn(e){return e==null||e===""?null:e}function Te(e){return e!=null&&e!==""}function Jt(e){return!Te(e)}function Uc(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function eb(e,t){const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o}function dD(e,t,i=!1){const o=e==null,s=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&s)return 0;if(o)return-1;if(s)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!i)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var v6="https://www.ag-grid.com",b6={};function eP(e,t){b6[t]||(e(),b6[t]=!0)}function tb(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function ib(e,...t){eP(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Vf(e,...t){eP(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Zwe={pending:!1,funcs:[]},qwe={pending:!1,funcs:[]};function tP(e,t="setTimeout",i){const o=t==="raf"?qwe:Zwe;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1,n.forEach(r=>r())};t==="raf"?Fa(i,s):window.setTimeout(s,0)}function on(e,t,i){let o;return function(...s){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,s)},i)}}function C6(e,t){let i=0;return function(...o){const s=this,n=Date.now();n-i<t||(i=n,e.apply(s,o))}}function S6(e,t,i=100,o){const s=Date.now();let n=null,r=!1;const a=()=>{const l=Date.now()-s>i;(e()||l)&&(t(),r=!0,n!=null&&(window.clearInterval(n),n=null))};a(),r||(n=window.setInterval(a,10))}var Qe="33.2.4",x6=2e3,w6=100,D6="_version_",M6=null,hp=`${v6}/javascript-data-grid`;function Qwe(e){M6=e}function Jwe(e){hp=e}function k6(e,t,i){return M6?.getConsoleMessage(e,t)??[oDe(e,t,i)]}function iP(e,t,i,o){e(`error #${t}`,...k6(t,i,o))}function eDe(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function tDe(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=eDe(e)),t}function uD(e){return e===void 0?"undefined":e===null?"null":e}function oP(e,t){return`${e}?${t.toString()}`}function iDe(e,t,i){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let s=oP(e,t);for(const[n,r]of o){if(n===D6)continue;const a=s.length-i;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>w6?r.slice(0,r.length-c)+l:r.slice(0,w6)+l;t.set(n,d),s=oP(e,t)}return s}function A6(e,t){const i=new URLSearchParams;if(i.append(D6,Qe),t)for(const n of Object.keys(t))i.append(n,tDe(t[n]));const o=`${hp}/errors/${e}`,s=oP(o,i);return s.length<=x6?s:iDe(o,i,x6)}var oDe=(e,t,i)=>{const o=A6(e,t);return`${i?i+`
26
+ `;R.ModuleRegistry.registerMany(vwe,Qp);function Cwe(){R.moduleRegistry.register(Qse,one,Pne,fle,xle,pce,tde,Hde,ume,tye,Sye,yue,Ble,Hle,Zle,Ple,qle,dce,eve,kve,Nve,rbe,Tbe,$be,Wpe,cge,lfe,hue,kCe,une,B0e,H0e,DSe,FSe,Ine,dxe,Lne,epe,hhe,qpe,XCe,Pxe,Jpe,Yxe,yge,hwe,Ppe,Gge),R.enterpriseModule.isEnterprise=!0,R.enterpriseModule.styles=bwe,R.enterpriseModule.licenseManager=e=>new Zg(e.container?.ownerDocument??(typeof document>"u"?void 0:document)),R.enterpriseModule.injectWatermark=cfe}Cwe();var Swe={setLicenseKey(e){Zg.setLicenseKey(e)}};Rr.create.bind(Rr),Rr.__createSparkline.bind(Rr),Zg.setGridContext.bind(Zg),Zg.setLicenseKey.bind(Zg);function OL(e){const t=e.value?.value!=null?e.value.value:e.value;return t==null||t===""?"":t}function BL(e,t){const i=Number(e);return isFinite(i)?i.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:t}):String(e)}function j9(e){return typeof e!="number"?2:Math.min(Math.max(0,e),20)}function U9(e,t){const i=OL(e);return i===""?"":"$"+BL(i,j9(t))}function xwe(e,t){return OL(e)===""?"":BL(e.value*100,j9(t))+"%"}function wwe(e){const t=OL(e);return t===""?"":BL(t,0)}function Dwe(e,t){return e.value}const tD=123e-6,Mwe={key:0,class:"pv-flex pv-chart-loading"},kwe=m.defineComponent({__name:"PvChart",props:{options:{},seriesFormatType:{default:"none"},isLoading:{type:Boolean,default:!1},enableFocusView:{type:Boolean,default:!1},minHeight:{default:450},translateNullValues:{type:Boolean,default:!0}},emits:["series-visibility-change"],setup(e,{expose:t,emit:i}){const o=e,s=i;Swe.setLicenseKey("Using_this_{AG_Charts}_Enterprise_key_{AG-087886}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Charts}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{9_May_2026}____[v3]_[02]_MTc3ODI4MTIwMDAwMA==b240799c3daa50107bb7f3adff911d8f");const r={seriesVisibilityChange:f=>{s("series-visibility-change",f)}},a=m.ref(null),l=m.computed(()=>(g.value?.series||[]).some(y=>y.type==="map-shape")),c=m.computed(()=>{const f=g.value?.series||[];let y=!1;return f.forEach(v=>{v.type==="bar"&&v.direction==="horizontal"&&(y=!0)}),y}),d=f=>{const y=f.xName,v=f.yKey,b=f.datum[v];if(b==null||b===tD)return{heading:y,data:[]};let C=String(b)||"";const D=g.value?.series?.find(k=>k.yKey===v);if(D&&D?.label?.formatter){const k=D.label.formatter;C=k({value:b,datum:f.datum})||C}return{heading:y,data:[{label:f.yName,value:C}]}},u=f=>{if(!f||!o.translateNullValues)return f;const y=new Set;return f.forEach(v=>{Object.keys(v).forEach(b=>y.add(b))}),f.map(v=>{const b={...v};return y.forEach(C=>{C in b?b[C]===null&&(b[C]=tD):b[C]=tD}),b})},h=f=>f&&f.map(y=>{const v={...y};return v.tooltip||(v.tooltip={}),v.tooltip.renderer||(v.tooltip.renderer=d),v}),p=m.computed(()=>{if(o.seriesFormatType==="currency")return U9;if(o.seriesFormatType==="percent")return 0}),g=m.computed(()=>{const f={...o.options};return f.theme||(f.theme=Tse),f.data=u(f.data),f.series=h(f.series),f.overlays||(f.overlays={noData:{text:"No data to display"},noVisibleSeries:{text:"No visible series"}}),f.axes||(f.axes=[{type:"category",position:c.value?"left":"bottom"},{type:"number",position:c.value?"bottom":"left",label:{formatter:p.value}}]),f.contextMenu||(f.contextMenu={enabled:!1}),f.listeners={...f.listeners||{},...r},f});return t({getChartImageDataURL:f=>a.value?.chart?.getImageDataURL({width:f?.width,height:f?.height})}),(f,y)=>(m.openBlock(),m.createElementBlock("div",null,[m.createVNode(m.unref(Ise),{ref_key:"chartRef",ref:a,style:m.normalizeStyle([{height:"100%"},l.value?"":`min-height: ${f.minHeight}px`]),options:g.value},null,8,["style","options"]),f.isLoading?(m.openBlock(),m.createElementBlock("div",Mwe,[m.createVNode(BS,{size:"xl"})])):m.createCommentVNode("",!0)]))}}),wn=(e,t)=>{const i=e.__vccOpts||e;for(const[o,s]of t)i[o]=s;return i},GL=wn(kwe,[["__scopeId","data-v-0b683b8e"]]);var jc=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let s=o.get(e);return!s&&i&&(s=new Set,o.set(e,s)),s}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),o.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const o=(a,l)=>a.forEach(c=>{if(!l.has(c))return;const d=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(d):d()}),s=this.getListeners(i,t,!1)??new Set,n=new Set(s);n.size>0&&o(n,s),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(i,e)):()=>a(i,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function Awe(e,t){return t}function zL(e){return e?.getLocaleTextFunc()??Awe}function Xr(e,t,i){i==null||typeof i=="string"&&i==""?VL(e,t):Zr(e,t,i)}function Zr(e,t,i){e.setAttribute(K9(t),i.toString())}function VL(e,t){e.removeAttribute(K9(t))}function K9(e){return`aria-${e}`}function zs(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Iwe(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function Twe(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Rwe(e){return e.getAttribute("aria-label")}function tr(e,t){Xr(e,"label",t)}function Bf(e,t){Xr(e,"labelledby",t)}function _L(e,t){Xr(e,"describedby",t)}function Y9(e,t){Xr(e,"live",t)}function Lwe(e,t){Xr(e,"atomic",t)}function Pwe(e,t){Xr(e,"relevant",t)}function X9(e,t){Xr(e,"level",t)}function Z9(e,t){Xr(e,"disabled",t)}function q9(e,t){Xr(e,"hidden",t)}function Fl(e,t){Zr(e,"expanded",t)}function Ewe(e){VL(e,"expanded")}function Q9(e,t){Zr(e,"setsize",t)}function J9(e,t){Zr(e,"posinset",t)}function Fwe(e,t){Zr(e,"multiselectable",t)}function Nwe(e,t){Zr(e,"rowcount",t)}function e6(e,t){Zr(e,"rowindex",t)}function Owe(e,t){Zr(e,"colcount",t)}function t6(e,t){Zr(e,"colindex",t)}function Bwe(e,t){Zr(e,"colspan",t)}function Gwe(e,t){Zr(e,"sort",t)}function zwe(e){VL(e,"sort")}function HL(e,t){Xr(e,"selected",t)}function i6(e,t){Zr(e,"checked",t===void 0?"mixed":t)}function Vwe(e,t){Xr(e,"controls",t.id),Bf(t,e.id)}function _we(e,t){Xr(e,"haspopup",t===!1?null:t)}function o6(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var $L,WL,jL,UL,KL,YL,XL;function iD(){return $L===void 0&&($L=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),$L}function ZL(){return WL===void 0&&(WL=/(firefox)/i.test(navigator.userAgent)),WL}function s6(){return jL===void 0&&(jL=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),jL}function dp(){return UL===void 0&&(UL=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),UL}function n6(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return t===-1&&(i===null||i===""&&!ZL())?null:t.toString()}function Hwe(){if(XL!==void 0)return XL;if(!document.body)return-1;let e=1e6;const t=ZL()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const o=e*2;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return document.body.removeChild(i),XL=e,e}function $we(){return YL==null&&r6(),YL}function r6(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;i===0&&t.clientWidth===0&&(i=null),t.parentNode&&t.parentNode.removeChild(t),i!=null&&(YL=i,KL=i===0)}function a6(){return KL==null&&r6(),KL}function l6(e,t,i){const o=e.parentElement;let s=o&&o.firstChild;for(;s;)t&&s.classList.toggle(t,s===e),s=s.nextSibling}var Wwe="[tabindex], input, select, button, textarea, [href]",c6="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function qL(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),s=t.call(e,c6),n=ir(e);return o&&!s&&n}function Ue(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||q9(e,!t)}function jwe(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||q9(e,!t)}function Zv(e,t){const i="disabled",o=t?n=>n.setAttribute(i,""):n=>n.removeAttribute(i);o(e);const s=e.querySelectorAll("input")??[];for(const n of s)o(n)}function up(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof i=="number"){if(++o>i)break}else if(e===i)break}return!1}function Gf(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:s,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:p,marginLeft:g,boxSizing:f}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(i||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(s||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(r||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(d||"0"),marginTop:parseFloat(u||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(g||"0"),boxSizing:f}}function oD(e){const t=Gf(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function qv(e){const t=Gf(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function d6(e){const{height:t,marginBottom:i,marginTop:o}=Gf(e);return Math.floor(t+i+o)}function sD(e){const{width:t,marginLeft:i,marginRight:o}=Gf(e);return Math.floor(t+i+o)}function u6(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:s,borderBottomWidth:n}=Gf(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(s||0),bottom:t.bottom+(n||0)}}function nD(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function rD(e,t,i){i&&(t*=-1),e.scrollLeft=t}function en(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function qr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function h6(e){return!!e.offsetParent}function ir(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!h6(e)||window.getComputedStyle(e).visibility!=="visible")}function aD(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function p6(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function g6(e,t){for(let i=0;i<t.length;i++){const o=t[i],s=e.children[i];s!==o&&e.insertBefore(o,s)}}function Uwe(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function Qv(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i||!i.length||o==null)continue;const s=Uwe(i),n=o.toString(),r=n.replace(/\s*!important/g,""),a=r.length!=n.length?"important":void 0;e.style.setProperty(s,r,a)}}function Kwe(e){return e.clientWidth<e.scrollWidth}function Ywe(e){return e.clientHeight<e.scrollHeight}function lD(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Nl(e,t)}function Nl(e,t){t=QL(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Jv(e,t){t=QL(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function QL(e){return typeof e=="number"?`${e}px`:e}function cD(e){return e instanceof Node||e instanceof HTMLElement}function zf(e,t,i){i==null||i===""?e.removeAttribute(t):e.setAttribute(t,i.toString())}function yu(e,t,i){const s=R6(e).ResizeObserver,n=s?new s(i):null;return n?.observe(t),()=>n?.disconnect()}function Xwe(e){const t=Hf(e),i="getSelection"in t?t.getSelection():null,o=[];for(let s=0;s<(i?.rangeCount??0);s++){const n=i?.getRangeAt(s);n&&o.push(n)}return{selection:i,ranges:o}}function f6(e,t){if(!e.gos.get("enableCellTextSelection")||!ZL()&&!iD())return t();const{selection:o,ranges:s}=Xwe(e);t(),o?.removeAllRanges();for(const n of s)o?.addRange(n)}function Fa(e,t){const i=R6(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var m6="data-ref",JL;function y6(){return JL??(JL=document.createTextNode(" ")),JL.cloneNode()}function Kt(e){const{attrs:t,children:i,cls:o,ref:s,role:n,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),s&&a.setAttribute(m6,s),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if(typeof i=="string")a.textContent=i;else{let l=!0;for(const c of i)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):(l&&(a.appendChild(y6()),l=!1),a.append(Kt(c)),a.appendChild(y6())))}return a}function tn(e){return e==null||e===""?null:e}function Te(e){return e!=null&&e!==""}function Jt(e){return!Te(e)}function Uc(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function eb(e,t){const i=e?JSON.stringify(e):null,o=t?JSON.stringify(t):null;return i===o}function dD(e,t,i=!1){const o=e==null,s=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&s)return 0;if(o)return-1;if(s)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!i)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var v6="https://www.ag-grid.com",b6={};function eP(e,t){b6[t]||(e(),b6[t]=!0)}function tb(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function ib(e,...t){eP(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Vf(e,...t){eP(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Zwe={pending:!1,funcs:[]},qwe={pending:!1,funcs:[]};function tP(e,t="setTimeout",i){const o=t==="raf"?qwe:Zwe;if(o.funcs.push(e),o.pending)return;o.pending=!0;const s=()=>{const n=o.funcs.slice();o.funcs.length=0,o.pending=!1,n.forEach(r=>r())};t==="raf"?Fa(i,s):window.setTimeout(s,0)}function on(e,t,i){let o;return function(...s){const n=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(n,s)},i)}}function C6(e,t){let i=0;return function(...o){const s=this,n=Date.now();n-i<t||(i=n,e.apply(s,o))}}function S6(e,t,i=100,o){const s=Date.now();let n=null,r=!1;const a=()=>{const l=Date.now()-s>i;(e()||l)&&(t(),r=!0,n!=null&&(window.clearInterval(n),n=null))};a(),r||(n=window.setInterval(a,10))}var Qe="33.2.4",x6=2e3,w6=100,D6="_version_",M6=null,hp=`${v6}/javascript-data-grid`;function Qwe(e){M6=e}function Jwe(e){hp=e}function k6(e,t,i){return M6?.getConsoleMessage(e,t)??[oDe(e,t,i)]}function iP(e,t,i,o){e(`error #${t}`,...k6(t,i,o))}function eDe(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))typeof e[i]!="object"&&typeof e[i]!="function"&&(t[i]=e[i]);return JSON.stringify(t)}function tDe(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=eDe(e)),t}function uD(e){return e===void 0?"undefined":e===null?"null":e}function oP(e,t){return`${e}?${t.toString()}`}function iDe(e,t,i){const o=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let s=oP(e,t);for(const[n,r]of o){if(n===D6)continue;const a=s.length-i;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>w6?r.slice(0,r.length-c)+l:r.slice(0,w6)+l;t.set(n,d),s=oP(e,t)}return s}function A6(e,t){const i=new URLSearchParams;if(i.append(D6,Qe),t)for(const n of Object.keys(t))i.append(n,tDe(t[n]));const o=`${hp}/errors/${e}`,s=oP(o,i);return s.length<=x6?s:iDe(o,i,x6)}var oDe=(e,t,i)=>{const o=A6(e,t);return`${i?i+`
27
27
  `:""}Visit ${o}${i?"":`
28
28
  Alternatively register the ValidationModule to see the full message in the console.`}`};function me(...e){iP(ib,e[0],e[1])}function nt(...e){iP(Vf,e[0],e[1])}function sP(e,t,i){iP(Vf,e,t,i)}function sDe(e,t){const i=t[0];return`error #${i} `+k6(i,t[1],e).join(" ")}function vu(...e){return sDe(void 0,e)}function I6(e,t){return e.get("rowModelType")===t}function Na(e,t){return I6(e,"clientSide")}function or(e,t){return I6(e,"serverSide")}function Vs(e,t){return e.get("domLayout")===t}function Ol(e){return fD(e)!==void 0}function nP(e){return typeof e.get("getRowHeight")=="function"}function nDe(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Qr(e,t,i=!1,o){const{gos:s,environment:n}=e;if(o==null&&(o=n.getDefaultRowHeight()),nP(s)){if(i)return{height:o,estimated:!0};const l={node:t,data:t.data},c=s.getCallback("getRowHeight")(l);if(rP(c))return c===0&&me(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&s.get("masterDetail"))return rDe(s);const r=s.get("rowHeight");return{height:r&&rP(r)?r:o,estimated:!1}}function rDe(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return rP(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function bu(e){const{environment:t,gos:i}=e,o=i.get("rowHeight");if(!o||Jt(o))return t.getDefaultRowHeight();const s=t.refreshRowHeightVariable();return s!==-1?s:(me(24),t.getDefaultRowHeight())}function rP(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function T6(e,t,i){const o=t[e.getDomDataKey()];return o?o[i]:void 0}function _f(e,t,i,o){const s=e.getDomDataKey();let n=t[s];Jt(n)&&(n={},t[s]=n),n[i]=o}function Bi(e){const{gos:t,eGridDiv:i}=e;let o=null;const s=t.get("getDocument");return s&&Te(s)?o=s():i&&(o=i.ownerDocument),o&&Te(o)?o:document}function R6(e){return Bi(e).defaultView||window}function Hf(e){return e.eGridDiv.getRootNode()}function ei(e){return Hf(e).activeElement}function aP(e){let t=null,i=null;try{t=Bi(e).fullscreenElement}catch{}finally{t||(t=Hf(e));const o=t.querySelector("body");o?i=o:t instanceof ShadowRoot?i=t:t instanceof Document?i=t?.documentElement:i=t}return i}function aDe(e){return aP(e)?.clientWidth??(window.innerHeight||-1)}function lDe(e){return aP(e)?.clientHeight??(window.innerHeight||-1)}function cDe(e,t,i){const s=e.getBoundingClientRect().height,n=aDe(i)-2,r=lDe(i)-2;if(!e.offsetParent)return;const l=u6(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-s/2,h=d-l.left-10;const p=Bi(i),g=p.defaultView||window,f=g.pageYOffset||p.documentElement.scrollTop,y=g.pageXOffset||p.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+y&&(h=n+y-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+f&&(u=r+f-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}function ob(e){const t=Bi(e),i=ei(e);return i===null||i===t.body}function $f(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function hD(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Vs(e,"print"))}function Oa(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function sb(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function lP(e){return e.get("grandTotalRow")}function Wf(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function cP(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function pD(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function nb(e){const t=e.getCallback("getRowId");return t===void 0?t:i=>{let o=t(i);return typeof o!="string"&&(me(25,{id:o}),o=String(o)),o}}function dDe(e,t){const i=e.get("groupHideParentOfSingleChild");return!!(i===!0||i==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function uDe(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function hDe(e,t){const i=e.get("suppressGroupChangesColumnVisibility");if(i===!0||t&&i==="suppressHideOnGroup"||!t&&i==="suppressShowOnUngroup")return!1;const o=e.get("suppressRowGroupHidesColumns");if(t&&o===!0)return!1;const s=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&s===!0)}function pp(e){return e?.checkboxes??!0}function gD(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function rb(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function dP(e){return e?.hideDisabledCheckboxes??!1}function L6(e){return typeof e.get("rowSelection")!="string"}function gp(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function P6(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const i=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return i&&o?!1:i?"enableDeselection":o?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function pDe(e){const t=P6(e);return t===!0||t==="enableSelection"}function gDe(e){const t=P6(e);return t===!0||t==="enableDeselection"}function uP(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function fD(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function fp(e){return fD(e)==="multiRow"}function fDe(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function E6(e){const t=e.get("rowSelection");if(typeof t=="string"){const i=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return i&&o?"filteredDescendants":i?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function F6(e,t=!0){const i=e.get("rowSelection");return typeof i!="object"?t?"all":void 0:i.mode==="multiRow"?i.selectAll:"all"}function ab(e){const t=E6(e);return t==="descendants"||t==="filteredDescendants"}function hP(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function qo(e){return e.get("columnMenu")==="legacy"}function N6(e){return!qo(e)}function pP(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function mDe(e,t,i){typeof e!="object"&&(e={});const o={...e};return i.forEach(s=>{const n=t[s];typeof n<"u"&&(o[s]=n)}),o}function yDe(e,t){if(!e)return;const i={};let o=!1;if(Object.keys(e).forEach(r=>{i[r]=e[r],o=!0}),!o)return;const s={type:"gridOptionsChanged",options:i};t.dispatchEvent(s);const n={type:"componentStateChanged",...i};t.dispatchEvent(n)}function Ke(e,t){return e.addGridCommonParams(t)}function O6(e){return e.get("treeData")?e.get("treeDataParentIdField")?"treeSelfRef":e.get("treeDataChildrenField")?"treeNested":"treePath":"group"}var B6="__ag_Grid_Stop_Propagation",vDe=["touchstart","touchend","touchmove","touchcancel","scroll"],bDe=["wheel"],gP={};function Kc(e){e[B6]=!0}function Ba(e){return e[B6]===!0}var G6=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof gP[i]=="boolean")return gP[i];const o=document.createElement(e[i]||"div");return i="on"+i,gP[i]=i in o}})();function z6(e,t,i){let o=t;for(;o;){const s=T6(e,o,i);if(s)return s;o=o.parentElement}return null}function fP(e,t){return!t||!e?!1:SDe(t).indexOf(e)>=0}function CDe(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function SDe(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():CDe(t)}function xDe(e,t,i,o){const s=V6(i);let n;s!=null&&(n={passive:s}),e&&e.addEventListener&&e.addEventListener(t,i,o,n)}var V6=e=>{const t=vDe.includes(e),i=bDe.includes(e);if(t)return!0;if(i)return!1},re=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,i){this.localEventService||(this.localEventService=new jc),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService?.removeEventListener(e,t,i)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const i=[];for(const o of Object.keys(t)){const s=t[o];s&&i.push(this._setupListener(e,o,s))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;let o;return wDe(e)?(e.__addEventListener(t,i),o=()=>(e.__removeEventListener(t,i),null)):(e instanceof HTMLElement?xDe(this.beans.frameworkOverrides,e,t,i):e.addEventListener(t,i),o=()=>(e.removeEventListener(t,i),null)),this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}setupGridOptionListener(e,t){const{gos:i}=this;i.addPropertyEventListener(e,t);const o=()=>(i.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const i=e.join("-")+this.propertyListenerId++,o=s=>{if(s.changeSet){if(s.changeSet&&s.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=s.changeSet.id}const n={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};t(n)};e.forEach(s=>this.setupGridOptionListener(s,o))}getLocaleTextFunc(){return zL(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function wDe(e){return e.__addEventListener!==void 0}var _6=new Set(["__proto__","constructor","prototype"]);function DDe(e,t){if(e!=null){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(const i of Object.keys(e))t(i,e[i])}}function Cs(e,t,i=!0,o=!1){Te(t)&&DDe(t,(s,n)=>{if(_6.has(s))return;let r=e[s];r!==n&&(o&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[s]=r),H6(n)&&H6(r)&&!Array.isArray(r)?Cs(r,n,i,o):(i||n!==void 0)&&(e[s]=n))})}function lb(e,t,i){if(!t||!e)return;if(!i)return e[t];const o=t.split(".");let s=e;for(let n=0;n<o.length;n++){if(s==null)return;s=s[o[n]]}return s}function H6(e){return typeof e=="object"&&e!==null}var MDe=/[&<>"']/g,kDe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Jr(e,t){if(e==null)return null;const i=e.toString().toString();return t?i:i.replace(MDe,o=>kDe[o])}var ADe={resizable:!0,sortable:!0},IDe=0;function $6(){return IDe++}function Bl(e){return e instanceof mD}var mD=class extends re{constructor(e,t,i,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=o,this.isColumn=!0,this.instanceId=$6(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new jc,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Jr(i)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:i,colFlex:o}}=this;t?.initCol(this);const s=e.hide;s!==void 0?this.visible=!s:this.visible=!e.initialHide,i?.initCol(this),o?.initCol(this)}setColDef(e,t,i){const o=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),o&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",i)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:i}}=this,o=e.get("suppressFieldDotNotation");this.fieldContainsDots=Te(t)&&t.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=Te(i)&&i.indexOf(".")>=0&&!o}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const i=e.width,o=e.initialWidth;return i!=null?t=i:o!=null?t=o:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const i=this.frameworkEventListenerService?.wrap(t)??t;this.colEventSvc.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(t)??t;this.colEventSvc.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return Ke(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable(this,e)??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??ADe[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const i=this.createColumnFunctionCallbackParams(e);return t(i)}return!1}createColumnEvent(e,t){return Ke(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Jt(this.sort)}isSorting(){return Te(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return me(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const i=e===!0;this.visible!==i&&(this.visible=i,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return Ke(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Jt(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)}getRowSpan(e){if(Jt(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)}setActualWidth(e,t,i=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),i||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,i){const o=this.createColumnEvent(e,t);i&&Cs(o,i),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function _o(e){return e instanceof cb}var cb=class extends re{constructor(e,t,i,o){super(),this.colGroupDef=e,this.groupId=t,this.padding=i,this.level=o,this.isColumn=!1,this.expandable=!1,this.instanceId=$6(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(e){this.children&&this.children.forEach(t=>{Bl(t)?e.push(t):_o(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.__addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.__removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,i=!1;const o=this.findChildrenRemovingPadding();for(let n=0,r=o.length;n<r;n++){const a=o[n];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,i=!0):l==="closed"?(t=!0,i=!0):(e=!0,t=!0)}const s=e&&t&&i;this.expandable!==s&&(this.expandable=s,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=i=>{i.forEach(o=>{_o(o)&&o.isPadding()?t(o.children):e.push(o)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},TDe={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},RDe=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=Uc(e);let i=0;for(;;){let o=e??t;if(o?i!==0&&(o+="_"+i):o=i,!this.existingKeys[o])return this.existingKeys[o]=!0,String(o);i++}}},mP=Object.freeze([]);function wt(e){if(e?.length)return e[e.length-1]}function ea(e,t,i){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((o,s)=>i?i(o,t[s]):t[s]===o)}function yD(e,t){if(e)for(const i of e)t(i)}function sn(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function W6(e,t,i){for(let o=0;o<t.length;o++)sn(e,t[o]);for(let o=t.length-1;o>=0;o--)e.splice(i,0,t[o])}var mp="ag-Grid-AutoColumn",j6="ag-Grid-SelectionColumn",LDe="ag-Grid-RowNumbersColumn";function yP(e){const t=[],i=o=>{for(let s=0;s<o.length;s++){const n=o[s];Bl(n)?t.push(n):_o(n)&&i(n.getChildren())}};return i(e),t}function jf(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}function Cu(e,t,i){const o={};if(!t)return;Xc(null,t,n=>{o[n.getInstanceId()]=n}),i&&Xc(null,i,n=>{o[n.getInstanceId()]=null});const s=Object.values(o).filter(n=>n!=null);e.context.destroyBeans(s)}function vD(e){return e.getId().startsWith(mp)}function Yc(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(j6)??!1}function db(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(LDe)??!1}function bD(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function U6(e,t){return ea(e,t,(i,o)=>i.getColId()===o.getColId())}function K6(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function yp(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function vP(e,t){const i=e===t,o=e.getColDef()===t,s=e.getColId()==t;return i||o||s}var PDe=(e,t)=>(i,o)=>{const s={value1:void 0,value2:void 0};let n=!1;return e&&(e[i]!==void 0&&(s.value1=e[i],n=!0),Te(o)&&e[o]!==void 0&&(s.value2=e[o],n=!0)),!n&&t&&(t[i]!==void 0&&(s.value1=t[i]),Te(o)&&t[o]!==void 0&&(s.value2=t[o])),s};function Y6(e,t=null,i,o,s){const n=new RDe,{existingCols:r,existingGroups:a,existingColKeys:l}=EDe(o);n.addExistingKeys(l);const c=X6(e,t,0,i,r,n,a,s),{colGroupSvc:d}=e,u=d?.findMaxDepth(c,0)??0,h=d?d.balanceColumnTree(c,0,u,n):c;return Xc(null,h,(g,f)=>{_o(g)&&g.setupExpandable(),g.originalParent=f}),{columnTree:h,treeDept:u}}function EDe(e){const t=[],i=[],o=[];return e&&Xc(null,e,s=>{if(_o(s)){const n=s;i.push(n)}else{const n=s;o.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:i,existingColKeys:o}}function X6(e,t,i,o,s,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let d=0;d<c.length;d++){const u=t[d];l&&zDe(u)?c[d]=l.createProvidedColumnGroup(o,u,i,s,n,r,a):c[d]=FDe(e,o,u,s,n,a)}return c}function FDe(e,t,i,o,s,n){const r=ODe(i,o);r&&o?.splice(r.idx,1);let a=r?.column;if(a){const l=CD(e,i,a.getColId());a.setColDef(l,i,n),NDe(e,a,l,n)}else{const l=s.getUniqueKey(i.colId,i.field),c=CD(e,i,l);a=new mD(c,i,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function Z6(e,t,i,o,s,n,r,a){const{sortSvc:l,pinnedCols:c,colFlex:d}=e;i!==void 0&&t.setVisible(!i,a),l&&(l.updateColSort(t,o,a),s!==void 0&&l.setColSortIndex(t,s)),n!==void 0&&c?.setColPinned(t,n),r!==void 0&&d?.setColFlex(t,r)}function NDe(e,t,i,o){Z6(e,t,i.hide,i.sort,i.sortIndex,i.pinned,i.flex,o);const s=t.getFlex();if(!(s!=null&&s>0))if(i.width!=null)t.setActualWidth(i.width,o);else{const n=t.getActualWidth();t.setActualWidth(n,o)}}function ODe(e,t){if(t)for(let i=0;i<t.length;i++){const o=t[i].getUserProvidedColDef();if(!o)continue;if(e.colId!=null){if(t[i].getId()===e.colId)return{idx:i,column:t[i]};continue}if(e.field!=null){if(o.field===e.field)return{idx:i,column:t[i]};continue}if(o===e)return{idx:i,column:t[i]}}}function CD(e,t,i,o){const{gos:s,dataTypeSvc:n,validation:r}=e,a={},l=s.get("defaultColDef");Cs(a,l,!1,!0);const c=BDe(e,a,t,i);c&&GDe(e,c,a),Cs(a,t,!1,!0);const d=s.get("autoGroupColumnDef"),u=Oa(s);return t.rowGroup&&d&&u&&Cs(a,{sort:d.sort,initialSort:d.initialSort},!1,!0),n?.validateColDef(a),r?.validateColDef(a,i,o),a}function BDe(e,t,i,o){const s=e.dataTypeSvc?.updateColDefAndGetColumnType(t,i,o),n=i.type??s??t.type;return t.type=n,n?bD(n):void 0}function GDe(e,t,i){if(!t.length)return;const o=Object.assign({},TDe),s=e.gos.get("columnTypes")||{};for(const n of Object.keys(s)){const r=s[n];n in o?me(34,{key:n}):(r.type&&me(35),o[n]=r)}t.forEach(n=>{const r=o[n.trim()];r?Cs(i,r,!1,!0):me(36,{t:n})})}function zDe(e){return e.children!==void 0}function Xc(e,t,i){if(t)for(let o=0;o<t.length;o++){const s=t[o];_o(s)&&Xc(s,s.getChildren(),i),i(s,e)}}function q6(e,t){const i=[],o=[],s=[];return e.forEach(r=>{const a=r.getColDef().lockPosition;a==="right"?s.push(r):a==="left"||a===!0?i.push(r):o.push(r)}),t.get("enableRtl")?[...s,...o,...i]:[...i,...o,...s]}function Q6(e,t){let i=!0;return Xc(null,t,o=>{if(!_o(o))return;const s=o,n=s.getColGroupDef();if(!(n&&n.marryChildren))return;const a=[];s.getLeafColumns().forEach(h=>{const p=e.indexOf(h);a.push(p)});const l=Math.max.apply(Math,a),c=Math.min.apply(Math,a),d=l-c,u=s.getLeafColumns().length-1;d>u&&(i=!1)}),i}function J6(e,t){if(!e||e.length==0)return;const i=t(e[0]);for(let o=1;o<e.length;o++)if(i!==t(e[o]))return;return i}function e7(e,t,i){if(!t.length)return;const o=t.length===1?t[0]:null,s=J6(t,n=>n.getPinned());e.dispatchEvent({type:"columnPinned",pinned:s??null,columns:t,column:o,source:i})}function VDe(e,t,i){if(!t.length)return;const o=t.length===1?t[0]:null,s=J6(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:s,columns:t,column:o,source:i})}function t7(e,t,i,o){e.dispatchEvent({type:t,columns:i,column:i&&i.length==1?i[0]:null,source:o})}function SD(e,t,i,o,s=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:s,finished:i,source:o})}function Dn(e,t,i){const{colModel:o,rowGroupColsSvc:s,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:c,pivotResultCols:d,environment:u,valueColsSvc:h,eventSvc:p,gos:g}=e,f=o.getColDefCols()||[];if(!f?.length)return!1;if(t?.state&&!t.state.forEach)return me(32),!1;const y=(x,D,k,A,w)=>{if(!x)return;const M=PDe(D,t.defaultState),T=M("flex").value1;if(Z6(e,x,M("hide").value1,M("sort").value1,M("sortIndex").value1,M("pinned").value1,T,i),T==null){const L=M("width").value1;if(L!=null){const N=x.getColDef().minWidth??u.getDefaultColumnMinWidth();N!=null&&L>=N&&x.setActualWidth(L,i)}}w||!x.isPrimary()||(h?.syncColumnWithState(x,i,M),s?.syncColumnWithState(x,i,M,k),n?.syncColumnWithState(x,i,M,A))},v=(x,D,k)=>{const A=o7(e,i),w=D.slice(),M={},T={},L=[],N=[],O=[];let F=0;const E=s?.columns.slice()??[],G=n?.columns.slice()??[];x.forEach(V=>{const $=V.colId;if($.startsWith(mp)){L.push(V),O.push(V);return}if(Yc($)){N.push(V),O.push(V);return}const W=k($);W?(y(W,V,M,T,!1),sn(w,W)):(O.push(V),F+=1)});const B=V=>y(V,null,M,T,!1);w.forEach(B),s?.sortColumns(n7.bind(s,M,E)),n?.sortColumns(n7.bind(n,T,G)),o.refreshCols(!1);const z=(V,$,_=[])=>{$.forEach(W=>{const j=V(W.colId);sn(_,j),y(j,W,null,null,!0)}),_.forEach(B)};return z(V=>r?.getColumn(V)??null,L,r?.getColumns()?.slice()),z(V=>a?.getColumn(V)??null,N,a?.getColumns()?.slice()),_De(t,o,g),c.refresh(i),p.dispatchEvent({type:"columnEverythingChanged",source:i}),A(),{unmatchedAndAutoStates:O,unmatchedCount:F}};l?.start();let{unmatchedAndAutoStates:b,unmatchedCount:C}=v(t.state||[],f,x=>o.getColDefCol(x));if(b.length>0||Te(t.defaultState)){const x=d?.getPivotResultCols()?.list??[];C=v(b,x,D=>d?.getPivotResultCol(D)??null).unmatchedCount}return l?.finish(),C===0}function i7(e,t){const{colModel:i,autoColSvc:o,selectionColSvc:s}=e,n=i.getColDefCols();if(!n?.length)return;const r=i.getColDefColTree(),a=yP(r),l=[];let c=1e3,d=1e3;const u=y=>{const v=s7(y);Jt(v.rowGroupIndex)&&v.rowGroup&&(v.rowGroupIndex=c++),Jt(v.pivotIndex)&&v.pivot&&(v.pivotIndex=d++),l.push(v)};o?.getColumns()?.forEach(u),s?.getColumns()?.forEach(u),a?.forEach(u),Dn(e,{state:l},t);const h=o?.getColumns()??[],f=[...s?.getColumns()??[],...h,...n].map(y=>({colId:y.colId}));Dn(e,{state:f,applyOrder:!0},t)}function o7(e,t){const{rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:s,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:i?.columns.slice()??[],pivotColumns:o?.columns.slice()??[],valueColumns:s?.columns.slice()??[]},c=ub(e),d={};return c.forEach(u=>{d[u.colId]=u}),()=>{const u=(k,A,w,M)=>{const T=A.map(M),L=w.map(M);if(ea(T,L))return;const O=new Set(A);w.forEach(E=>{O.delete(E)||O.add(E)});const F=[...O];a.dispatchEvent({type:k,columns:F,column:F.length===1?F[0]:null,source:t})},h=k=>{const A=[];return n.forAllCols(w=>{const M=d[w.getColId()];M&&k(M,w)&&A.push(w)}),A},p=k=>k.getColId();u("columnRowGroupChanged",l.rowGroupColumns,i?.columns??[],p),u("columnPivotChanged",l.pivotColumns,o?.columns??[],p);const f=h((k,A)=>{const w=k.aggFunc!=null,M=w!=A.isValueActive(),T=w&&k.aggFunc!=A.getAggFunc();return M||T});f.length>0&&t7(a,"columnValueChanged",f,t),SD(a,h((k,A)=>k.width!=A.getActualWidth()),!0,t),e7(a,h((k,A)=>k.pinned!=A.getPinned()),t),VDe(a,h((k,A)=>k.hide==A.isVisible()),t);const x=h((k,A)=>k.sort!=A.getSort()||k.sortIndex!=A.getSortIndex());x.length>0&&r?.dispatchSortChangedEvents(t,x);const D=ub(e);$De(c,D,t,n,a)}}function ub(e){const{colModel:t,rowGroupColsSvc:i,pivotColsSvc:o}=e,s=t.getColDefCols();if(Jt(s)||!t.isAlive())return[];const n=i?.columns,r=o?.columns,a=[],l=d=>{const u=d.isRowGroupActive()&&n?n.indexOf(d):null,h=d.isPivotActive()&&r?r.indexOf(d):null,p=d.isValueActive()?d.getAggFunc():null,g=d.getSort()!=null?d.getSort():null,f=d.getSortIndex()!=null?d.getSortIndex():null;a.push({colId:d.getColId(),width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:g,sortIndex:f,aggFunc:p,rowGroup:d.isRowGroupActive(),rowGroupIndex:u,pivot:d.isPivotActive(),pivotIndex:h,flex:d.getFlex()??null})};t.forAllCols(d=>l(d));const c=new Map(t.getCols().map((d,u)=>[d.getColId(),u]));return a.sort((d,u)=>{const h=c.has(d.colId)?c.get(d.colId):-1,p=c.has(u.colId)?c.get(u.colId):-1;return h-p}),a}function s7(e){const t=(g,f)=>g??f??null,i=e.getColDef(),o=t(i.sort,i.initialSort),s=t(i.sortIndex,i.initialSortIndex),n=t(i.hide,i.initialHide),r=t(i.pinned,i.initialPinned),a=t(i.width,i.initialWidth),l=t(i.flex,i.initialFlex);let c=t(i.rowGroupIndex,i.initialRowGroupIndex),d=t(i.rowGroup,i.initialRowGroup);c==null&&(d==null||d==!1)&&(c=null,d=null);let u=t(i.pivotIndex,i.initialPivotIndex),h=t(i.pivot,i.initialPivot);u==null&&(h==null||h==!1)&&(u=null,h=null);const p=t(i.aggFunc,i.initialAggFunc);return{colId:e.getColId(),sort:o,sortIndex:s,hide:n,pinned:r,width:a,flex:l,rowGroup:d,rowGroupIndex:c,pivot:h,pivotIndex:u,aggFunc:p}}function _De(e,t,i){if(!e.applyOrder||!e.state)return;const o=[];e.state.forEach(s=>{s.colId!=null&&o.push(s.colId)}),HDe(t.cols,o,t,i)}function HDe(e,t,i,o){if(e==null)return;let s=[];const n={};t.forEach(a=>{if(n[a])return;const l=e.map[a];l&&(s.push(l),n[a]=!0)});let r=0;if(e.list.forEach(a=>{const l=a.getColId();if(n[l]!=null)return;l.startsWith(mp)?s.splice(r++,0,a):s.push(a)}),s=q6(s,o),!Q6(s,i.getColTree())){me(39);return}e.list=s}function $De(e,t,i,o,s){const n={};t.forEach(d=>n[d.colId]=d);const r={};e.forEach(d=>{n[d.colId]&&(r[d.colId]=!0)});const a=e.filter(d=>r[d.colId]),l=t.filter(d=>r[d.colId]),c=[];l.forEach((d,u)=>{const h=a&&a[u];if(h&&h.colId!==d.colId){const p=o.getCol(h.colId);p&&c.push(p)}}),c.length&&s.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:i})}var n7=(e,t,i,o)=>{const s=e[i.getId()],n=e[o.getId()],r=s!=null,a=n!=null;if(r&&a)return s-n;if(r)return-1;if(a)return 1;const l=t.indexOf(i),c=t.indexOf(o),d=l>=0,u=c>=0;return d&&u?l-c:d?-1:1},WDe=class extends re{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],e=>this.refreshAll(yp(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),yp(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:i,colAutosize:o,rowGroupColsSvc:s,pivotColsSvc:n,valueColsSvc:r,visibleCols:a,colViewport:l,eventSvc:c}=t,d=this.colDefs?o7(t,e):void 0;i?.expire();const u=this.colDefCols?.list,h=this.colDefCols?.tree,p=Y6(t,this.colDefs,!0,h,e);Cu(t,this.colDefCols?.tree,p.columnTree);const g=p.columnTree,f=p.treeDept,y=yP(g),v={};y.forEach(b=>v[b.getId()]=b),this.colDefCols={tree:g,treeDepth:f,list:y,map:v},s?.extractCols(e,u),n?.extractCols(e,u),r?.extractCols(e,u),this.ready=!0,this.refreshCols(!0),a.refresh(e),l.checkViewportColumns(),c.dispatchEvent({type:"columnEverythingChanged",source:e}),d&&(this.changeEventsDispatching=!0,d(),this.changeEventsDispatching=!1),c.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&o?.applyAutosizeStrategy()}refreshCols(e){if(!this.colDefCols)return;const t=this.cols?.tree;this.saveColOrder();const{autoColSvc:i,selectionColSvc:o,rowNumbersSvc:s,quickFilter:n,pivotResultCols:r,showRowGroupCols:a,rowAutoHeight:l,visibleCols:c,colViewport:d,eventSvc:u}=this.beans,h=this.selectCols(r,this.colDefCols);this.createColumnsForService([i,o,s],h);const p=nDe(this.gos,this.showingPivotResult);(!e||p)&&this.restoreColOrder(h),this.positionLockedCols(h),a?.refresh(),n?.refreshCols(),this.setColSpanActive(),l?.setAutoHeightActive(h),c.clear(),d.clear(),!ea(t,this.cols.tree)&&u.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t){for(const i of e)i&&(i.createColumns(t,o=>{this.lastOrder=o(this.lastOrder),this.lastPivotOrder=o(this.lastPivotOrder)}),i.addColumns(t))}selectCols(e,t){const i=e?.getPivotResultCols()??null;this.showingPivotResult=i!=null;const{map:o,list:s,tree:n,treeDepth:r}=i??t;return this.cols={list:s.slice(),map:{...o},tree:n.slice(),treeDepth:r},i&&(i.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const e=this.isPivotMode()&&!this.showingPivotResult,t=this.beans.valueColsSvc?.columns;return this.cols.list.filter(o=>{const s=vD(o);if(e){const n=t?.includes(o);return s||n}else return s||o.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,i){Dn(this.beans,{state:e.map(o=>({colId:typeof o=="string"?o:o.getColId(),hide:!t}))},i)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const i=new Map(t.map((c,d)=>[c,d]));if(!e.list.some(c=>i.has(c)))return;const s=new Map(e.list.map(c=>[c,!0])),n=t.filter(c=>s.has(c)),r=new Map(n.map(c=>[c,!0])),a=e.list.filter(c=>!r.has(c)),l=n.slice();a.forEach(c=>{let d=c.getOriginalParent();if(!d){l.push(c);return}const u=[];for(;!u.length&&d;)d.getLeafColumns().forEach(f=>{const y=l.indexOf(f)>=0,v=u.indexOf(f)<0;y&&v&&u.push(f)}),d=d.getOriginalParent();if(!u.length){l.push(c);return}const h=u.map(g=>l.indexOf(g)),p=Math.max(...h);l.splice(p+1,0,c)}),e.list=l}positionLockedCols(e){e.list=q6(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(){return this.colDefCols?this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[]):void 0}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1);const{visibleCols:i,eventSvc:o}=this.beans;i.refresh(t),o.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=yp(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){Cu(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:i,selectionColSvc:o}=this.beans;yD(this.colDefCols?.list,e),yD(i?.columns?.list,e),yD(o?.columns?.list,e),yD(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColFromCollection(e,t){if(t==null)return null;const{map:i,list:o}=t;if(typeof e=="string"&&i[e])return i[e];for(let s=0;s<o.length;s++)if(vP(o[s],e))return o[s];return this.beans.autoColSvc?.getColumn(e)??this.beans.selectionColSvc?.getColumn(e)??null}},bP=class extends re{constructor(){super(...arguments),this.dispatchColumnChangedEvent=t7,this.columns=[],this.columnIndexMap={},this.updateIndexMap=()=>{this.columnIndexMap={},this.columns.forEach((e,t)=>this.columnIndexMap[e.getId()]=t)}}wireBeans(e){this.colModel=e.colModel,this.aggFuncSvc=e.aggFuncSvc,this.visibleCols=e.visibleCols}sortColumns(e){this.columns.sort(e),this.updateIndexMap()}setColumns(e,t){this.setColList(e,this.columns,this.eventName,!0,!0,this.columnProcessors.set,t)}addColumns(e,t){this.updateColList(e,this.columns,!0,!0,this.columnProcessors.add,this.eventName,t)}removeColumns(e,t){this.updateColList(e,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,t)}getColumnIndex(e){return this.columnIndexMap[e]}setColList(e=[],t,i,o,s,n,r){const a=this.colModel.getCols();if(!a||a.length===0)return;const l=new Map;t.forEach((d,u)=>l.set(d,u)),t.length=0,Te(e)&&e.forEach(d=>{const u=this.colModel.getColDefCol(d);u&&t.push(u)}),t.forEach((d,u)=>{const h=l.get(d);if(h===void 0){l.set(d,0);return}o&&h!==u||l.delete(d)}),this.updateIndexMap(),(this.colModel.getColDefCols()||[]).forEach(d=>{const u=t.indexOf(d)>=0;n(d,u,r)}),s&&this.colModel.refreshCols(!1),this.visibleCols.refresh(r),this.dispatchColumnChangedEvent(this.eventSvc,i,[...l.keys()],r)}updateColList(e=[],t,i,o,s,n,r){if(!e||e.length===0)return;let a=!1;const l=new Set;if(e.forEach(d=>{if(!d)return;const u=this.colModel.getColDefCol(d);if(u){if(l.add(u),i){if(t.indexOf(u)>=0)return;t.push(u)}else{const h=t.indexOf(u);if(h<0)return;for(let p=h+1;p<t.length;p++)l.add(t[p]);sn(t,u)}s(u,i,r),a=!0}}),!a)return;this.updateIndexMap(),o&&this.colModel.refreshCols(!1),this.visibleCols.refresh(r);const c=Array.from(l);this.eventSvc.dispatchEvent({type:n,columns:c,column:c.length===1?c[0]:null,source:r})}extractCols(e,t=[]){const i=this.columns,o=[],s=[],{setFlagFunc:n,getIndexFunc:r,getInitialIndexFunc:a,getValueFunc:l,getInitialValueFunc:c}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(p=>{const g=t.indexOf(p)<0,f=p.getColDef(),y=l(f),v=c(f),b=r(f),C=a(f);let x;y!==void 0?x=y:b!==void 0?b===null?x=!1:x=b>=0:g?v!==void 0?x=v:C!==void 0?x=C!=null&&C>=0:x=!1:x=i.indexOf(p)>=0,x&&((g?b!=null||C!=null:b!=null)?o.push(p):s.push(p))});const u=p=>{const g=r(p.getColDef()),f=a(p.getColDef());return g??f};o.sort((p,g)=>{const f=u(p),y=u(g);return f===y?0:f<y?-1:1});const h=[].concat(o);return i.forEach(p=>{s.indexOf(p)>=0&&h.push(p)}),s.forEach(p=>{h.indexOf(p)<0&&h.push(p)}),i.forEach(p=>{h.indexOf(p)<0&&n(p,!1,e)}),h.forEach(p=>{i.indexOf(p)<0&&n(p,!0,e)}),this.columns=h,this.updateIndexMap(),this.columns}restoreColumnOrder(e,t){const i=this.columns,o=this.colModel.getColDefCols();if(!i.length||!o)return e;const s=Object.keys(t),n=new Set(s),r=new Set(s),a=new Set(i.map(C=>{const x=C.getColId();return r.delete(x),x}).concat(s)),l=[],c={};let d=0;for(let C=0;C<o.length;C++){const x=o[C].getColId();a.has(x)&&(l.push(x),c[x]=d++)}let u=1e3,h=!1,p=0;const g=this.columnOrdering.enableProp,f=this.columnOrdering.initialEnableProp,y=this.columnOrdering.indexProp,v=this.columnOrdering.initialIndexProp,b=C=>{const x=c[C];for(let D=p;D<x;D++){const k=l[D];r.has(k)&&(t[k][y]=u++,r.delete(k))}p=x};return i.forEach(C=>{const x=C.getColId();if(n.has(x))b(x),t[x][y]=u++;else{const D=C.getColDef();(D[y]===null||D[y]===void 0&&D[v]==null)&&(h||(D[g]||D[g]===void 0&&D[f]?b(x):(r.forEach(w=>{t[w][y]=u+c[w]}),u+=l.length,h=!0)),e[x]||(e[x]={colId:x}),e[x][y]=u++)}}),e}},r7=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let i;return typeof t!="number"?i=0:i=t+1,this.existingIds[e]=i,i}};function hb(e,t,i){return i&&e.addDestroyFunc(()=>t.destroyBean(i)),i??e}var a7=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){this.addOrRemoveCssClass(e,!0)}removeCssClass(e){this.addOrRemoveCssClass(e,!1)}containsCssClass(e){const t=this.getGui();return t?t.classList.contains(e):!1}addOrRemoveCssClass(e,t){if(!e)return;if(e.indexOf(" ")>=0){const o=(e||"").split(" ");if(o.length>1){o.forEach(s=>this.addOrRemoveCssClass(s,t));return}}if(this.cssClassStates[e]!==t&&e.length){const o=this.getGui();o&&o.classList.toggle(e,t),this.cssClassStates[e]=t}}},jDe=0,ge=null,Je=class extends re{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=jDe++,this.cssClassManager=new a7(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(i=>[i.selector,i])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;this.css?.forEach(t=>this.beans.environment.addGlobalCSS(t,e))}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(m6):null}applyElementsToComponent(e,t,i,o=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const s=this[t];if(s===ge)this[t]=o??e;else{const n=i&&i[t];if(!this.suppressDataRefValidation&&!n)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${s}`)}}}createChildComponentsFromTags(e,t){const i=[];for(const o of e.childNodes??[])i.push(o);i.forEach(o=>{if(!(o instanceof HTMLElement))return;const s=this.createComponentFromElement(o,n=>{const r=n.getGui();if(r)for(const a of o.attributes??[])r.setAttribute(a.name,a.value)},t);if(s){if(s.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);const n=Array.prototype.slice.call(o.children);s.addItems(n)}this.swapComponentForNode(s,e,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)})}createComponentFromElement(e,t,i){const o=e.nodeName,s=this.getDataRefAttribute(e),n=o.indexOf("AG-")===0,r=n?this.componentSelectors.get(o):null;let a=null;if(r){const l=i&&s?i[s]:void 0;a=new r.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(n)throw new Error(`selector: ${o}`);return this.applyElementsToComponent(e,s,i,a),a}swapComponentForNode(e,t,i){const o=e.getGui();t.replaceChild(o,i),t.insertBefore(document.createComment(i.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(i=>i.setAttribute("tabindex",t.toString()))}setTemplate(e,t,i){let o;typeof e=="string"||e==null?o=aD(e):o=Kt(e),this.setTemplateFromElement(o,t,i)}setTemplateFromElement(e,t,i,o=!1){if(this.eGui=e,this.suppressDataRefValidation=o,t)for(let s=0;s<t.length;s++){const n=t[s];this.componentSelectors.set(n.selector,n)}this.wireTemplate(e,i)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let i=t;return e==null?null:(i||(i=this.eGui),cD(e)?{element:e,parent:i}:{element:e.getGui(),parent:i})}prependChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.insertAdjacentElement("afterbegin",i)}appendChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.appendChild(i)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:i}=t;jwe(this.eGui,e,{skipAriaHidden:i})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:i}=t;Ue(this.eGui,e,{skipAriaHidden:i});const o={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(o)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,i){this.eGui.addEventListener(e,t,i),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCssClass(e){this.cssClassManager.addCssClass(e)}removeCssClass(e){this.cssClassManager.removeCssClass(e)}containsCssClass(e){return this.cssClassManager.containsCssClass(e)}addOrRemoveCssClass(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}},pt=class oC{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(i=>this.onDone(i),i=>this.onReject(i))}static all(t){return t.length?new oC(i=>{let o=t.length;const s=new Array(o);t.forEach((n,r)=>{n.then(a=>{s[r]=a,o--,o===0&&i(s)})})}):oC.resolve()}static resolve(t=null){return new oC(i=>i(t))}then(t){return new oC(i=>{this.status===1?i(t(this.resolution)):this.waiters.push(o=>i(t(o)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(i=>i(t))}onReject(t){}};function UDe(e){return e?e.prototype&&"getGui"in e.prototype:!1}function l7(e,t,i,o){const{name:s}=i;let n,r,a,l,c,d;if(t){const u=t,h=u[s+"Selector"],p=h?h(o):null,g=f=>{typeof f=="string"?n=f:f!=null&&f!==!0&&(e.isFrameworkComponent(f)?a=f:r=f)};p?(g(p.component),l=p.params,c=p.popup,d=p.popupPosition):g(u[s])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:d}}var KDe=class extends re{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,i,o=!1){return this.getCompDetails(this.gridOptions,e,t,i,o)}getCompDetails(e,t,i,o,s=!1){const{name:n,cellRenderer:r}=t;let{compName:a,jsComp:l,fwComp:c,paramsFromSelector:d,popupFromSelector:u,popupPositionFromSelector:h}=l7(this.beans.frameworkOverrides,e,t,o),p;const g=b=>{const C=this.registry.getUserComponent(n,b);C&&(l=C.componentFromFramework?void 0:C.component,c=C.componentFromFramework?C.component:void 0,p=C.params)};if(a!=null&&g(a),l==null&&c==null&&i!=null&&g(i),l&&r&&!UDe(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:b}=this.beans;s&&(a!==i||!i)?a?b?.isProvidedUserComp(a)||nt(50,{compName:a}):i?b||nt(260,{...this.gos.getModuleErrorParams(),propName:n,compName:i}):nt(216,{name:n}):i&&!b&&nt(146,{comp:i});return}const f=this.mergeParams(e,t,o,d,p),y=l==null,v=l??c;return{componentFromFramework:y,componentClass:v,params:f,type:t,popupFromSelector:u,popupPositionFromSelector:h,newAgStackInstance:()=>this.newAgStackInstance(v,y,f,t)}}newAgStackInstance(e,t,i,o){const s=!t;let n;s?n=new e:n=this.frameworkCompWrapper.wrap(e,o.mandatoryMethods,o.optionalMethods,o),this.createBean(n);const r=n.init?.(i);return r==null?pt.resolve(n):r.then(()=>n)}mergeParams(e,t,i,o=null,s){const n={...i,...s},r=e,a=r&&r[t.name+"Params"];if(typeof a=="function"){const l=a(i);Cs(n,l)}else typeof a=="object"&&Cs(n,a);return Cs(n,o),n}},YDe={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},XDe={name:"headerComponent",optionalMethods:["refresh"]},ZDe={name:"innerHeaderComponent"},qDe={name:"innerHeaderGroupComponent"},QDe={name:"headerGroupComponent"},JDe={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},eMe={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},tMe={name:"loadingCellRenderer",cellRenderer:!0},iMe={name:"loadingOverlayComponent",optionalMethods:["refresh"]},oMe={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},sMe={name:"tooltipComponent"},CP={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},nMe={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},rMe={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},aMe={name:"loadingCellRenderer",cellRenderer:!0},lMe={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},cMe={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function dMe(e,t){return e.getCompDetailsFromGridOptions(YDe,"agDragAndDropImage",t,!0)}function xD(e,t,i){return e.getCompDetails(t,JDe,void 0,i)}function uMe(e,t,i){return e.getCompDetails(t,XDe,"agColumnHeader",i)}function hMe(e,t,i){return e.getCompDetails(t,ZDe,void 0,i)}function pMe(e,t){const i=t.columnGroup.getColGroupDef();return e.getCompDetails(i,QDe,"agColumnGroupHeader",t)}function gMe(e,t,i){return e.getCompDetails(t,qDe,void 0,i)}function fMe(e,t){return e.getCompDetailsFromGridOptions(rMe,void 0,t,!0)}function mMe(e,t){return e.getCompDetailsFromGridOptions(aMe,"agLoadingCellRenderer",t,!0)}function yMe(e,t){return e.getCompDetailsFromGridOptions(lMe,"agGroupRowRenderer",t,!0)}function vMe(e,t){return e.getCompDetailsFromGridOptions(cMe,"agDetailCellRenderer",t,!0)}function Uf(e,t,i){return e.getCompDetails(t,eMe,void 0,i)}function bMe(e,t,i){return e.getCompDetails(t,tMe,"agSkeletonCellRenderer",i,!0)}function c7(e,t,i,o){return e.getCompDetails(t,CP,o,i,!0)}function CMe(e,t){return e.getCompDetailsFromGridOptions(iMe,"agLoadingOverlay",t,!0)}function SMe(e,t){return e.getCompDetailsFromGridOptions(oMe,"agNoRowsOverlay",t,!0)}function xMe(e,t){return e.getCompDetails(t.colDef,sMe,"agTooltipComponent",t,!0)}function d7(e,t,i,o){return e.getCompDetails(t,nMe,o,i)}function wMe(e,t){return l7(e,t,CP)}function DMe(e,t,i){return e.mergeParams(t,CP,i)}function u7(e){const t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var h7=new Set,wD={},Kf={},DD,p7=!1,MMe=!1;function kMe(e){const[t,i]=e.version.split(".")||[],[o,s]=DD.split(".")||[];return t===o&&i===s}function AMe(e){DD||(DD=e.version);const t=i=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${i} Please update all modules to the same version.`;if(e.version?kMe(e)||Vf(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${DD}.`)):Vf(t(`'${e.moduleName}' is incompatible.`)),e.validate){const i=e.validate();i.isValid||Vf(`${i.message}`)}}function pb(e,t){AMe(e);const i=e.rowModels??["all"];h7.add(e);let o;t!==void 0?(p7=!0,Kf[t]===void 0&&(Kf[t]={}),o=Kf[t]):o=wD,i.forEach(s=>{o[s]===void 0&&(o[s]={}),o[s][e.moduleName]=e}),e.dependsOn&&e.dependsOn.forEach(s=>pb(s,t))}function IMe(e){delete Kf[e]}function g7(e,t,i){const o=s=>!!wD[s]?.[e]||!!Kf[t]?.[s]?.[e];return o(i)||o("all")}function SP(){return p7}function TMe(e,t){const i=Kf[e]??{};return[...Object.values(wD.all??{}),...Object.values(i.all??{}),...Object.values(wD[t]??{}),...Object.values(i[t]??{})]}function RMe(){return new Set(h7)}function LMe(){return MMe}var f7=class{static register(e){pb(e,void 0)}static registerModules(e){e.forEach(t=>pb(t,void 0))}},PMe=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];e.beanClasses.forEach(t=>{const i=new t;i.beanName?this.beans[i.beanName]=i:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(i)}),e.derivedBeans?.forEach(t=>{const{beanName:i,bean:o}=t(this);this.beans[i]=o,this.createdBeans.push(o)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("null bean");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(i=>{i.preWireBeans?.(this.beans),i.wireBeans?.(this.beans)}),e.forEach(i=>i.preConstruct?.()),t&&e.forEach(t),e.forEach(i=>i.postConstruct?.())}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},EMe=class extends PMe{init(e){this.gridId=e.gridId,this.beans.context=this,this.destroyCallback=e.destroyCallback,super.init(e)}destroy(){super.destroy(),IMe(this.gridId),this.destroyCallback?.()}getGridId(){return this.gridId}},FMe="ag-column-first",NMe="ag-column-last";function m7(e,t,i,o){return Jt(e)?[]:b7(e.headerClass,e,t,i,o)}function y7(e,t,i,o){return Jt(e)?[]:b7(e.toolPanelClass,e,t,i,o)}function v7(e,t,i){e.addOrRemoveCssClass(FMe,i.isColAtEdge(t,"first")),e.addOrRemoveCssClass(NMe,i.isColAtEdge(t,"last"))}function OMe(e,t,i,o){return Ke(t,{colDef:e,column:i,columnGroup:o})}function b7(e,t,i,o,s){if(Jt(e))return[];let n;if(typeof e=="function"){const r=OMe(t,i,o,s);n=e(r)}else n=e;return typeof n=="string"?[n]:Array.isArray(n)?[...n]:[]}var Z={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"},xP=!1,MD=0;function BMe(e){MD>0||(e.addEventListener("keydown",kD),e.addEventListener("mousedown",kD))}function GMe(e){MD>0||(e.removeEventListener("keydown",kD),e.removeEventListener("mousedown",kD))}function kD(e){const t=xP,i=e.type==="keydown";i&&(e.ctrlKey||e.metaKey||e.altKey)||t!==i&&(xP=i)}function zMe(e){const t=Bi(e);return BMe(t),MD++,()=>{MD--,GMe(t)}}function C7(){return xP}function VMe(e,t,i){t.addManagedElementListeners(i,{keydown:o=>{if(!o.defaultPrevented&&o.key===Z.TAB){const s=o.shiftKey;Gl(e,i,!1,s)||Cp(e,s)&&o.preventDefault()}}})}function vp(e,t,i=!1){const o=Wwe;let s=c6;t&&(s+=", "+t),i&&(s+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(o)).filter(l=>ir(l)),r=Array.prototype.slice.apply(e.querySelectorAll(s));return r.length?((l,c)=>l.filter(d=>c.indexOf(d)===-1))(n,r):n}function ta(e,t=!1,i=!1,o=!1){const s=vp(e,o?".ag-tab-guard":null,i),n=t?wt(s):s[0];return n?(n.focus({preventScroll:!0}),!0):!1}function Gl(e,t,i,o){const s=vp(t,i?':not([tabindex="-1"])':null),n=ei(e);let r;i?r=s.findIndex(l=>l.contains(n)):r=s.indexOf(n);const a=r+(o?-1:1);return a<0||a>=s.length?null:s[a]}function wP(e,t=5){let i=0;for(;e&&n6(e)===null&&++i<=t;)e=e.parentElement;return n6(e)===null?null:e}function _Me(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function bp(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function DP(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function Cp(e,t,i=!1){const o=e.ctrlsSvc.get("gridCtrl");return!i&&o.focusNextInnerContainer(t)?!0:((i||!t&&!o.isDetailGrid())&&o.forceFocusOutOfContainer(t),!1)}function HMe(e,t=!1){return e===Z.DELETE?!0:!t&&e===Z.BACKSPACE?s6():!1}var $Me=class extends re{constructor(e,t,i,o){super(),this.cellCtrl=e,this.rowNode=i,this.rowCtrl=o,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case Z.ENTER:this.onEnterKeyDown(e);break;case Z.F2:this.onF2KeyDown(e);break;case Z.ESCAPE:this.onEscapeKeyDown(e);break;case Z.TAB:this.onTabKeyDown(e);break;case Z.BACKSPACE:case Z.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case Z.DOWN:case Z.UP:case Z.RIGHT:case Z.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){if(!this.cellCtrl.editing){if(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const i=this.cellCtrl.getFocusedCellPosition();this.beans.navigation?.navigateToNextCell(e,t,i,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:i}=this.beans;if(!t)return;const o=t.extendLatestRangeInDirection(e);o&&i?.ensureCellVisible(o)}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:i,beans:o,rowNode:s}=this,{gos:n,rangeSvc:r,eventSvc:a}=o;if(!i.editing){if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),HMe(e,n.get("enableCellEditingOnBackspace"))){if(r&&gp(n))r.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(i.isCellEditable()){const{column:l}=i,c=this.beans.valueSvc.getDeleteValue(l,s);s.setDataValue(l,c,"cellClear")}}else o.editSvc?.startRowOrCellEdit(i,e,t);a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){const{cellCtrl:t,beans:i}=this;if(t.editing||this.rowCtrl.editing)this.beans.editSvc?.stopRowOrCellEdit(t,!1,!1,e.shiftKey);else if(i.gos.get("enterNavigatesVertically")){const o=e.shiftKey?Z.UP:Z.DOWN;i.navigation?.navigateToNextCell(null,o,t.cellPosition,!1)}else i.editSvc?.startRowOrCellEdit(t,Z.ENTER,e),t.editing&&e.preventDefault()}onF2KeyDown(e){const{cellCtrl:t,beans:i}=this;t.editing||i.editSvc?.startRowOrCellEdit(t,Z.F2,e)}onEscapeKeyDown(e){const{cellCtrl:t,beans:i}=this;t.editing&&i.editSvc?.stopRowOrCellEdit(t,!0)}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.editing)return;const o=e.key;o===Z.SPACE?this.onSpaceKeyDown(e):this.beans.editSvc?.startRowOrCellEdit(this.cellCtrl,o,e)&&e.preventDefault()}onSpaceKeyDown(e){const{gos:t}=this.beans;!this.cellCtrl.editing&&Ol(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,this.rowNode,"spaceKey"),e.preventDefault()}destroy(){super.destroy()}},WMe=class extends re{constructor(e,t,i){super(),this.cellCtrl=e,this.column=i,this.beans=t}onMouseEvent(e,t){if(!Ba(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:i,gos:o,editSvc:s}=this.beans,n=e.ctrlKey||e.metaKey;i&&n&&i.getCellRangeCount(this.cellCtrl.cellPosition)>1&&i.intersectLastRange(!0);const r=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(r);const a=this.column.getColDef();a.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{a.onCellClicked(r)})},0),(o.get("singleClickEdit")||a.singleClickEdit)&&!o.get("suppressClickEdit")&&!(e.shiftKey&&i?.getCellRanges().length!=0)&&s?.startRowOrCellEdit(this.cellCtrl,void 0,e)}onCellDoubleClicked(e){const{column:t,beans:i,cellCtrl:o}=this,{eventSvc:s,frameworkOverrides:n,gos:r,editSvc:a}=i,l=t.getColDef(),c=o.createEvent(e,"cellDoubleClicked");s.dispatchEvent(c),typeof l.onCellDoubleClicked=="function"&&window.setTimeout(()=>{n.wrapOutgoing(()=>{l.onCellDoubleClicked(c)})},0),!r.get("singleClickEdit")&&!r.get("suppressClickEdit")&&a?.startRowOrCellEdit(o,null,e)}onMouseDown(e){const{ctrlKey:t,metaKey:i,shiftKey:o}=e,s=e.target,{cellCtrl:n,beans:r}=this,{eventSvc:a,rangeSvc:l,rowNumbersSvc:c,focusSvc:d,gos:u}=r;if(this.isRightClickInExistingRange(e))return;const h=l&&!l.isEmpty(),p=this.containsWidget(s),{cellPosition:g}=n,f=db(g.column);if(c&&f&&!c.handleMouseDownOnCell(g,e)){l&&e.preventDefault(),e.stopImmediatePropagation();return}if(!o||!h){const v=u.get("enableCellTextSelection")&&e.defaultPrevented,b=(iD()||v)&&!n.editing&&!qL(s)&&!p;n.focusCell(b)}if(o&&h&&!d.isCellFocused(g)){e.preventDefault();const y=d.getFocusedCell();if(y){const{column:v,rowIndex:b,rowPinned:C}=y,D=r.rowRenderer.getRowByPosition({rowIndex:b,rowPinned:C})?.getCellCtrl(v);D?.editing&&D.stopEditing(),d.setFocusedCell({column:v,rowIndex:b,rowPinned:C,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!p){if(l)if(f&&e.preventDefault(),o)l.extendLatestRangeToCell(g);else{const y=t||i;l.setRangeToCell(g,y)}a.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const i=t.isCellInAnyRange(this.cellCtrl.cellPosition),o=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(i&&o)return!0}return!1}containsWidget(e){return up(e,"ag-selection-checkbox",3)||up(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),i?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),i?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,i=t.contains(e.target),o=t.contains(e.relatedTarget);return i&&o}destroy(){super.destroy()}},jMe=class extends re{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e&&(this.refreshSpanHeight(e),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:this.refreshSpanHeight.bind(this,e),recalculateRowBounds:this.refreshSpanHeight.bind(this,e)}))}refreshSpanHeight(e){const t=e.getCellHeight();t!=null&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();ea(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,i=e.getColSpan(t),o=[];if(i===1)o.push(e);else{let s=e;const n=e.getPinned();for(let r=0;s&&r<i&&(o.push(s),s=this.beans.visibleCols.getColAfter(s),!(!s||Jt(s)||n!==s.getPinned()));r++);}return o}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=wt(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,i=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const o=t.bodyWidth;return i+o+(e||0)}return i+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const i=bu(this.beans)*this.rowSpan;this.eContent.style.height=`${i}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},UMe="ag-cell",KMe="ag-cell-auto-height",YMe="ag-cell-normal-height",XMe="ag-cell-focus",ZMe="ag-cell-first-right-pinned",qMe="ag-cell-last-left-pinned",QMe="ag-cell-not-inline-editing",JMe="ag-cell-wrap-text",AD="cellCtrl";function S7(e,t){return z6(e,t,AD)}var e1e=0,ID=class extends re{constructor(e,t,i,o){super(),this.column=e,this.rowNode=t,this.rowCtrl=o,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.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.beans=i;const{colId:s,colIdSanitised:n}=e;this.instanceId=s+"-"+e1e++,this.colIdSanitised=n,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new jMe(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this,e),this.mouseListener=new WMe(this,e,this.column),this.keyboardListener=new $Me(this,e,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();const{rangeSvc:t}=e;t&&gp(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(e,this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(e,t,i,o,s,n,r){this.comp=e,this.eGui=t,this.printLayout=s,r??(r=this),this.addDomData(r),this.addFeatures(),r.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(o,r),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),n&&this.isCellEditable()?this.beans.editSvc?.startEditing(this):this.showValue(!1,!0),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(a=>a()),this.onCompAttachedFuncs=[])}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(e,t){const{beans:i,column:o,rowNode:s,rangeFeature:n}=this,{userCompFactory:r}=i,a=this.getValueToDisplay();let l;const c=s.stub&&s.groupData?.[o.getId()]==null,d=o.getColDef();if(c||this.isCellRenderer()){const u=this.createCellRendererParams();!c||db(o)?l=Uf(r,d,u):l=bMe(r,d,u)}if(!l&&!c&&i.findSvc?.isMatch(s,o)){const u=this.createCellRendererParams();l=Uf(r,{...o.getColDef(),cellRenderer:"agFindCellRenderer"},u)}this.comp.setRenderDetails(l,a,e),!t&&n&&Fa(i,()=>n?.refreshHandle())}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e)),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(e){return this.rowNode.rowPinned!=null?!1:typeof e=="function"||e===!0}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:i}=this.beans.gridOptions,o=rb(t),s=Yc(this.column);return i==="custom"&&o!=="selectionColumn"&&s?!1:e.checkboxSelection||s&&typeof t=="object"&&pp(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e)),i=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource),s=this.isAutoHeight!=this.column.isAutoHeight();return t||i||o||s}onPopupEditorClosed(){this.editing&&this.beans.editSvc?.stopRowOrCellEdit(this)}stopEditing(e=!1){return this.beans.editSvc?.stopEditing(this,e)??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:i,rowNode:o,comp:s,eGui:n,beans:{valueSvc:r,gos:a}}=this;return Ke(a,{value:e,valueFormatted:t,getValue:()=>r.getValueForDisplay(i,o),setValue:c=>r.setValue(o,i,c),formatValue:this.formatValue.bind(this),data:o.data,node:o,pinned:i.getPinned(),colDef:i.getColDef(),column:i,refreshCell:this.refreshCell.bind(this),eGridCell:n,eParentOfValue:s.getParentOfValue(),registerRowDragger:(c,d,u,h)=>this.registerRowDragger(c,d,h),setTooltip:(c,d)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(c,d),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e)}refreshCell(e){if(this.suppressRefreshCell||this.editing)return;const t=this.column.getColDef(),i=e!=null&&!!e.newData,o=e!=null&&!!e.suppressFlash,s=t.field==null&&t.valueGetter==null&&t.showRowGroup==null,n=e&&e.forceRefresh||s||i,r=!!this.comp,a=this.updateAndFormatValue(r),l=n||a;if(r){if(l){this.showValue(i,!1);const c=this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering();!o&&!c&&t.enableCellChangeFlash&&this.beans.cellFlashSvc?.flashCell(this),this.customStyleFeature?.applyUserStyles(),this.customStyleFeature?.applyClassesFromColDef()}this.tooltipFeature?.refreshTooltip(),this.customStyleFeature?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,i=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=i:!0}valuesAreEqual(e,t){const i=this.column.getColDef();return i.equals?i.equals(e,t):e===t}addDomData(e){const t=this.eGui;_f(this.beans.gos,t,AD,this),e.addDestroyFunc(()=>_f(this.beans.gos,t,AD,null))}createEvent(e,t){const{rowNode:i,column:o,value:s,beans:n}=this;return Ke(n.gos,{type:t,node:i,data:i.data,value:s,column:o,colDef:o.getColDef(),rowPinned:i.rowPinned,event:e,rowIndex:i.rowIndex})}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:i}=this;v7(e,t,i.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);t6(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1){this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e})}restoreFocus(e=!1){if(!this.comp||this.editing||!this.isCellFocused()||!this.beans.focusSvc.shouldTakeFocus())return;const t=()=>{if(!this.isAlive())return;const i=this.comp.getFocusableElement();this.isCellFocused()&&i.focus({preventScroll:!0})};if(e){setTimeout(t,0);return}t()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(db(this.column)&&(e=!0),zf(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass(ZMe,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass(qMe,e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(DP(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const i=this.isCellFocused();if(this.comp.addOrRemoveCssClass(XMe,i),i&&e&&e.forceBrowserFocus){let s=this.comp.getFocusableElement();if(this.editing){const n=vp(s,null,!0);n.length&&(s=n[0])}s.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}const o=t.gos.get("editType")==="fullRow";!i&&!o&&this.editing&&t.editSvc?.stopRowOrCellEdit(this),i&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:tn(t),column:this.column}}setInlineEditingCss(){this.beans.editSvc?.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){const{comp:e}=this;e.addOrRemoveCssClass(UMe,!0),e.addOrRemoveCssClass(QMe,!0);const t=this.column.isAutoHeight()==!0;e.addOrRemoveCssClass(KMe,t),e.addOrRemoveCssClass(YMe,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?this.beans.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.addOrRemoveCssClass(JMe,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),i=this.createEvent(e,"cellContextMenu"),{beans:o}=this;o.eventSvc.dispatchEvent(i),t.onCellContextMenu&&window.setTimeout(()=>{o.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(i)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(ei(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,i){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const o=this.createRowDragComp(e,t,i);o&&(this.customRowDragComp=o,this.addDestroyFunc(()=>{this.beans.context.destroyBean(o),this.customRowDragComp=null}))}createRowDragComp(e,t,i){const o=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,i);if(o)return this.beans.context.createBean(o),o}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(e=>e()),this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}},x7="__ag_grid_instance";function w7(e,t){t[x7]=e.gridInstanceId}function gb(e,t){return t1e(e,t.target)}function t1e(e,t){let i=t;for(;i;){const o=i[x7];if(Te(o))return o===e.gridInstanceId;i=i.parentElement}return!1}function i1e(e,t){return S7(e,t.target)?.getFocusedCellPosition()??null}var TD=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(TD||{}),o1e=class extends re{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.dragSvc=e.dragSvc,this.environment=e.environment,this.userCompFactory=e.userCompFactory}addDragSource(e,t=!1){const i={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:i,dragSource:e}),this.dragSvc.addDragSource(i)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){const{dragSourceAndParamsList:t,dragSvc:i}=this,o=t.find(s=>s.dragSource===e);o&&(i.removeDragSource(o.params),sn(t,o))}destroy(){const{dragSourceAndParamsList:e,dragSvc:t,dropTargets:i}=this;e.forEach(o=>t.removeDragSource(o.params)),e.length=0,i.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=e.getDragItem(),e.onDragStarted?.(),this.createDragAndDropImageComponent()}onDragStop(e){this.dragSource?.onDragStopped?.();const{lastDropTarget:t}=this;if(t?.onDragStop){const i=this.createDropTargetEvent(t,e,null,null,!1);t.onDragStop(i)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t}=this;e?.onDragCancelled?.(),t?.onDragCancel&&t.onDragCancel(this.createDropTargetEvent(t,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){const i=this.getHorizontalDirection(e),o=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const s=this.dropTargets.filter(d=>this.isMouseOnDropTarget(e,d)),n=this.findCurrentDropTarget(e,s),{lastDropTarget:r,dragSource:a,dragAndDropImageComp:l,dragItem:c}=this;if(n!==r){if(this.leaveLastTargetIfExists(e,i,o,t),r!==null&&n===null&&a?.onGridExit?.(c),r===null&&n!==null&&a?.onGridEnter?.(c),this.enterDragTargetIfExists(n,e,i,o,t),n&&l){const{comp:d,promise:u}=l;d?d.setIcon(n.getIconName?n.getIconName():null,!1):u.then(h=>{h&&h.setIcon(n.getIconName?n.getIconName():null,!1)})}this.lastDropTarget=n}else if(n&&n.onDragging){const d=this.createDropTargetEvent(n,e,i,o,t);n.onDragging(d)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,i=[[e.getContainer()]];return t?i.concat(t):i}isMouseOnDropTarget(e,t){const i=this.getAllContainersFromDropTarget(t);let o=!1;const s=(a,l)=>{for(const c of l){const{width:d,height:u,left:h,right:p,top:g,bottom:f}=c.getBoundingClientRect();if(d===0||u===0)return!1;const y=a.clientX>=h&&a.clientX<p,v=a.clientY>=g&&a.clientY<f;if(!y||!v)return!1}return!0};for(const a of i)if(s(e,a)){o=!0;break}const{eElement:n,type:r}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(n)?!1:o&&t.isInterestedIn(r,n)}findCurrentDropTarget(e,t){const i=t.length;if(i===0)return null;if(i===1)return t[0];const s=Hf(this.beans).elementsFromPoint(e.clientX,e.clientY);for(const n of s)for(const r of t)if(this.getAllContainersFromDropTarget(r).flatMap(l=>l).indexOf(n)!==-1)return r;return null}enterDragTargetIfExists(e,t,i,o,s){if(e&&e.onDragEnter){const n=this.createDropTargetEvent(e,t,i,o,s);e.onDragEnter(n)}}leaveLastTargetIfExists(e,t,i,o){const{lastDropTarget:s}=this;if(!s)return;if(s.onDragLeave){const r=this.createDropTargetEvent(s,e,t,i,o);s.onDragLeave(r)}const n=this.getDragAndDropImageComponent();n&&n.setIcon(null,!1)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(i=>i.external).find(i=>i.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){const i=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:o}=e;return i.contains(o)}getHorizontalDirection(e){const t=this.eventLastTime?.clientX,i=e.clientX;return t===i?null:t>i?"left":"right"}getVerticalDirection(e){const t=this.eventLastTime?.clientY,i=e.clientY;return t===i?null:t>i?"up":"down"}createDropTargetEvent(e,t,i,o,s){const n=e.getContainer(),r=n.getBoundingClientRect(),{dragItem:a,dragSource:l,gos:c}=this,d=t.clientX-r.left,u=t.clientY-r.top;return Ke(c,{event:t,x:d,y:u,vDirection:o,hDirection:i,dragSource:l,fromNudge:s,dragItem:a,dropZoneTarget:n})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();t&&cDe(t.getGui(),e,this.beans)}removeDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;if(e){const{comp:t}=e;if(t){const i=t.getGui();this.dragAndDropImageParent?.removeChild(i),this.destroyBean(t)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e,gos:t,userCompFactory:i}=this;if(!e)return;const o=dMe(i,Ke(t,{dragSource:e}));if(!o)return;const s=o.newAgStackInstance();this.dragAndDropImageComp={promise:s},s.then(n=>{!n||!this.isAlive()||(this.processDragAndDropImageComponent(n),this.dragAndDropImageComp.comp=n)})}processDragAndDropImageComponent(e){const{dragSource:t,environment:i}=this;if(!t)return;const o=e.getGui();o.style.setProperty("position","absolute"),o.style.setProperty("z-index","9999"),w7(this.gos,o),i.applyThemeClasses(o),e.setIcon(null,!1);let{dragItemName:s}=t;typeof s=="function"&&(s=s()),e.setLabel(s||""),o.style.top="20px",o.style.left="20px";const n=aP(this.beans);this.dragAndDropImageParent=n,n?n.appendChild(o):me(54)}registerGridDropTarget(e,t){const i={getContainer:e,isInterestedIn:o=>o===1||o===0,getIconName:()=>"notAllowed"};this.addDropTarget(i),t.addDestroyFunc(()=>this.removeDropTarget(i))}},s1e=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const i=t||this.shouldSkipVerticalScroll();if(i&&this.shouldSkipHorizontalScroll())return;const o=this.scrollContainer.getBoundingClientRect(),s=this.scrollByTick;this.tickLeft=e.clientX<o.left+s,this.tickRight=e.clientX>o.right-s,this.tickUp=e.clientY<o.top+s&&!i,this.tickDown=e.clientY>o.bottom-s&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function n1e(e,t){const i=e.column===t.column,o=e.rowPinned===t.rowPinned,s=e.rowIndex===t.rowIndex;return i&&o&&s}function r1e(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(Te(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function a1e(e){let t=0,i;const{pinnedRowModel:o,rowModel:s,pageBounds:n}=e;return o?.getPinnedTopRowCount()?i="top":s.getRowCount()?(i=null,t=n.getFirstRow()):o?.getPinnedBottomRowCount()&&(i="bottom"),i===void 0?null:{rowIndex:t,rowPinned:i}}function l1e(e){let t,i=null;const{pinnedRowModel:o,pageBounds:s}=e,n=o?.getPinnedBottomRowCount(),r=o?.getPinnedTopRowCount();return n?(i="bottom",t=n-1):e.rowModel.getRowCount()?(i=null,t=s.getLastRow()):r&&(i="top",t=r-1),t===void 0?null:{rowIndex:t,rowPinned:i}}function MP(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function RD(e,t){const i=e.spannedRowRenderer?.getCellByPosition(t);if(i)return i;const o=e.rowRenderer.getRowByPosition(t);return o?o.getCellCtrl(t.column):null}function LD(e,t){const{rowIndex:i,rowPinned:o}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;if(i===0)return o==="top"?null:o==="bottom"&&r.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:n?.isRowsToRender("top")?{rowIndex:n.getPinnedTopRowCount()-1,rowPinned:"top"}:null;const a=o?void 0:r.getRow(i);return M7(e,a,!0)??{rowIndex:i-1,rowPinned:o}}function D7(e,t){const{rowIndex:i,rowPinned:o}=t,{pageBounds:s,pinnedRowModel:n,rowModel:r}=e;if(c1e(e,t))return o==="bottom"?null:o==="top"&&r.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:n?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;const a=o?void 0:r.getRow(i);return M7(e,a)??{rowIndex:i+1,rowPinned:o}}function M7(e,t,i){const{gos:o,rowRenderer:s}=e;if(!t?.sticky||!hD(o))return;const n=i?s.getStickyTopRowCtrls():s.getStickyBottomRowCtrls();let r;for(let a=0;a<n.length;a++)if(n[a].rowNode.rowIndex===t.rowIndex){r=n[a+(i?-1:1)];break}return r?{rowIndex:r.rowNode.rowIndex,rowPinned:null}:void 0}function c1e(e,t){const{rowPinned:i,rowIndex:o}=t,{pinnedRowModel:s,pageBounds:n}=e;return i==="top"?(s?.getPinnedTopRowCount()??0)-1<=o:i==="bottom"?(s?.getPinnedBottomRowCount()??0)-1<=o:n.getLastRow()<=o}function k7(e,t,i){if(i===0)return!1;const o=Math.abs(e.clientX-t.clientX),s=Math.abs(e.clientY-t.clientY);return Math.max(o,s)<=i}var d1e=class extends re{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){const{dragSources:e}=this;e.forEach(this.removeListener.bind(this)),e.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,i=e.mouseDownListener;if(t.removeEventListener("mousedown",i),e.touchEnabled){const o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}}removeDragSource(e){const{dragSources:t}=this,i=t.find(o=>o.dragSource===e);i&&(this.removeListener(i),sn(t,i))}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:i,includeTouch:o,stopPropagationForTouch:s}=e;i.addEventListener("mousedown",t);let n=null;const r=this.gos.get("suppressTouch");o&&!r&&(n=a=>{qL(a.target)||(s&&a.stopPropagation(),this.onTouchStart(e,a))},i.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:n,touchEnabled:!!o})}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const i=t.touches[0];this.touchLastTime=i,this.touchStart=i;const o=l=>this.onTouchMove(l,e.eElement),s=l=>this.onTouchUp(l,e.eElement),n=l=>{l.cancelable&&l.preventDefault()},r=t.target,a=[{target:Hf(this.beans),type:"touchmove",listener:n,options:{passive:!1}},{target:r,type:"touchmove",listener:o,options:{passive:!0}},{target:r,type:"touchend",listener:s,options:{passive:!0}},{target:r,type:"touchcancel",listener:s,options:{passive:!0}}];this.addTemporaryEvents(a),e.dragStartPixels===0&&this.onCommonMove(i,this.touchStart,e.eElement)}onMouseDown(e,t){const i=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||i._alreadyProcessedByDragService||(i._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const o=c=>this.onMouseMove(c,e.eElement),s=c=>this.onMouseUp(c,e.eElement),n=c=>c.preventDefault(),r=c=>{c.key===Z.ESCAPE&&this.cancelDrag(e.eElement)},a=Hf(this.beans),l=[{target:a,type:"mousemove",listener:o},{target:a,type:"mouseup",listener:s},{target:a,type:"contextmenu",listener:n},{target:a,type:"keydown",listener:r}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{const{target:i,type:o,listener:s,options:n}=t;i.addEventListener(o,s,n)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{const{target:i,type:o,listener:s,options:n}=t;i.removeEventListener(o,s,n)})})}isEventNearStartEvent(e,t){const{dragStartPixels:i}=this.currentDragParams,o=Te(i)?i:4;return k7(e,t,o)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,i){if(!this.dragging){if(this.isEventNearStartEvent(e,t))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:i}),this.currentDragParams.onDragStart(t),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(t)}this.currentDragParams?.onDragging(e)}onTouchMove(e,t){const i=this.getFirstActiveTouch(e.touches);i&&this.onCommonMove(i,this.touchStart,t)}onMouseMove(e,t){iD()&&Bi(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const{gos:t}=this,i=t.get("enableCellTextSelection"),o=e.type==="mousemove",s=n=>!!n.target?.tagName.toLocaleLowerCase()?.match("^a$|textarea|input|select|button");return i&&o&&e.cancelable&&gb(t,e)&&!s(e)}onTouchUp(e,t){let i=this.getFirstActiveTouch(e.changedTouches);i||(i=this.touchLastTime),this.onUpCommon(i,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),this.currentDragParams?.onDragCancel?.(),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;const{dragEndFunctions:e}=this;e.forEach(t=>t()),e.length=0}};function A7(e,t){return e+"_"+t}function Gi(e){return e instanceof I7}var I7=class extends re{constructor(e,t,i,o){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=i,this.pinned=o,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 A7(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{Gi(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=wt(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;return this.displayedChildren?.forEach(t=>{e+=t.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{Bl(t)?e.push(t):Gi(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{Bl(t)?e.push(t):Gi(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(i=>{if(Gi(i)&&(!i.displayedChildren||!i.displayedChildren.length))return;switch(i.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(i);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(i);break;default:this.displayedChildren.push(i);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},PD="row-group-",u1e="t-",h1e="b-",p1e=0,Sp=class{constructor(e){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=p1e++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:i,selectionSvc:o,eventSvc:s}=this.beans,n=this.data;this.data=e,i?.onDataChanged(),this.updateDataOnDetailNode(),o?.updateRowSelectable(this),this.resetQuickFilterAggregateText();const r=this.createDataChangedEvent(e,n,t);this.__localEventService?.dispatchEvent(r),s.dispatchEvent({type:"rowNodeDataChanged",node:this})}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,i){return{type:"dataChanged",node:this,oldData:t,newData:e,update:i}}getRowIndexString(){return this.rowIndex==null?(nt(13),null):this.rowPinned==="top"?u1e+this.rowIndex:this.rowPinned==="bottom"?h1e+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:i}=this.beans,o=i?.createDaemonNode?.(this),s=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),i&&(i.updateRowSelectable(this),i.syncInRowNode(this,o));const n=this.createDataChangedEvent(e,s,!1);this.__localEventService?.dispatchEvent(n)}setId(e){const t=nb(this.beans.gos);if(t)if(this.data){const i=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(PD)&&nt(14,{groupPrefix:PD})}else this.id=void 0;else this.id=e}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.dispatchRowEvent("topChanged"),this.setDisplayed(e!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,i){this.beans.expansionSvc?.setExpanded(this,e,t,i)}setDataValue(e,t,i){const{colModel:o,valueSvc:s,gos:n,selectionSvc:r}=this.beans,a=typeof e!="string"?e:o.getCol(e)??o.getColDefCol(e);if(!a)return!1;const l=s.getValueForDisplay(a,this);if(n.get("readOnlyEdit")){const{beans:{eventSvc:d},data:u,rowIndex:h,rowPinned:p}=this;return d.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:h,rowPinned:p,column:a,colDef:a.colDef,data:u,node:this,oldValue:l,newValue:t,value:t,source:i}),!1}const c=s.setValue(this,a,t,i);return this.dispatchCellChangedEvent(a,t,l),r?.updateRowSelectable(this),c}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,i){const o={type:"cellChanged",node:this,column:e,newValue:t,oldValue:i};this.__localEventService?.dispatchEvent(o)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(e){this.childrenAfterGroup?.forEach(t=>t.depthFirstSearch(e)),e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,i="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:i})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){this.__localEventService||(this.__localEventService=new jc),this.__localEventService.addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e),this.__localEventService||(this.__localEventService=new jc),this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.__localEventService);const i=this.frameworkEventListenerService?.wrap(t)??t;this.__localEventService.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(t)??t;this.removeLocalListener(e,i)}removeLocalListener(e,t){this.__localEventService?.removeEventListener(e,t),this.__localEventService?.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(me(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t&&t.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.dispatchRowEvent("displayedChanged"))}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}};function T7(e,t,i){return Ke(t,{type:i,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var g1e={tag:"div",cls:"ag-filter"},R7=class extends Je{constructor(e,t){super(g1e),this.column=e,this.source=t,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){return this.filterWrapper?.filterPromise??null}afterInit(){return this.filterWrapper?.filterPromise?.then(()=>{})??pt.resolve()}afterGuiAttached(e){this.filterWrapper?.filterPromise?.then(t=>{t?.afterGuiAttached?.(e)})}afterGuiDetached(){this.filterWrapper?.filterPromise?.then(e=>{e?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:i}=this;this.filterWrapper=this.beans.filterManager?.getOrCreateFilterWrapper(t)??null,this.filterWrapper?.filterPromise&&this.filterWrapper.filterPromise.then(o=>{const s=o.getGui();Te(s)||me(69,{guiFromFilter:s}),this.appendChild(s),e&&this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:i,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(en(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},L7="ag-resizer-wrapper",Su=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),f1e={tag:"div",cls:L7,children:[Su("eTopLeft","topLeft"),Su("eTop","top"),Su("eTopRight","topRight"),Su("eRight","right"),Su("eBottomRight","bottomRight"),Su("eBottom","bottom"),Su("eBottomLeft","bottomLeft"),Su("eLeft","left")]},kP=class extends re{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,i=t/2-this.getWidth()/2,o=e/2-this.getHeight()/2;this.offsetElement(i,o)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:i,width:o,minHeight:s,height:n,x:r,y:a}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const d=ir(this.element);if(d){const u=this.findBoundaryElement(),h=window.getComputedStyle(u);if(h.minWidth!=null){const p=u.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-p}if(h.minHeight!=null){const p=u.offsetHeight-this.element.offsetHeight;l=parseInt(h.minHeight,10)-p}}if(this.minHeight=s||l,this.minWidth=i||c,o&&this.setWidth(o),n&&this.setHeight(n),(!o||!n)&&this.refreshSize(),e)this.center();else if(r||a)this.offsetElement(r,a);else if(d&&t){let u=this.boundaryEl,h=!0;if(u||(u=this.findBoundaryElement(),h=!1),u){const p=parseFloat(u.style.top),g=parseFloat(u.style.left);h?this.offsetElement(isNaN(g)?0:g,isNaN(p)?0:p):this.setPosition(g,p)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const i=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(i),this.moveElementDragListener=i):(this.dragSvc?.removeDragSource(i),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{const o=!!e[t],s=this.getResizerElement(t),n={dragStartPixels:0,eElement:s,onDragStart:r=>this.onResizeStart(r,t),onDragging:this.onResize.bind(this),onDragStop:r=>this.onResizeEnd(r,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(n),this.resizeListeners.push(n),s.style.pointerEvents="all"):s.style.pointerEvents="none",this.resizable[t]=o)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,i=this.element;let o=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Jv(i,e),e=d6(i),o=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const s=this.getAvailableHeight();s&&e>s&&(e=s)}this.getHeight()!==e&&(o?(i.style.maxHeight="unset",i.style.minHeight="unset"):t?Jv(i,e):(i.style.height=`${e}px`,i.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:i}=this.offsetParent;if(!i)return null;const o=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),n=e?this.position.y:o.top,r=e?0:s.top;let a=0;if(t){const c=this.element.parentElement;if(c){const{bottom:d}=c.getBoundingClientRect();a=d-o.bottom}}return i+r-n-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:i}=this.config;let o=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Nl(t,e),e=sD(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:s}=this.offsetParent,n=i?this.position.x:this.element.getBoundingClientRect().left;s&&e+n>s&&(e=s-n)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Nl(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:i}=this.config,o=i?this.boundaryEl:this.element;o&&(this.popupSvc?.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const i=this.getAvailableHeight();this.element.style.setProperty("max-height",`${i}px`)};e&&this.popupSvc?this.resizeObserverSubscriber=yu(this.beans,this.popupSvc?.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:i,isTop:o,anywhereWithin:s,topBuffer:n}=e,r=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!i,!!s,r)?0:r,c=this.shouldSkipY(t,!!o,n,a)?0:a;return{movementX:l,movementY:c}}shouldSkipX(e,t,i,o){const s=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:s.left;let l=a<=0&&n.left>=e.clientX||n.right<=e.clientX&&n.right<=r.right;return l?!0:(t?l=o<0&&e.clientX>a+n.left||o>0&&e.clientX<a+n.left:i?l=o<0&&e.clientX>r.right||o>0&&e.clientX<a+n.left:l=o<0&&e.clientX>r.right||o>0&&e.clientX<r.right,l)}shouldSkipY(e,t,i=0,o){const s=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:s.top;let l=a<=0&&n.top>=e.clientY||n.bottom<=e.clientY&&n.bottom<=r.bottom;return l?!0:(t?l=o<0&&e.clientY>a+n.top+i||o>0&&e.clientY<a+n.top:l=o<0&&e.clientY>r.bottom||o>0&&e.clientY<r.bottom,l)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(Kt(f1e)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${L7}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:i,forcePopupParentAsOffsetParent:o}=this.config;!i&&!o&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(i=>!i.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,i=0;for(let o=0;o<e.length;o++){const s=e[o],n=!!s.style.flex&&s.style.flex!=="0 0 auto";if(s===this.element)continue;let r=this.minHeight||0,a=this.minWidth||0;if(n){const l=window.getComputedStyle(s);l.minHeight&&(r=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else r=s.offsetHeight,a=s.offsetWidth;t+=r,i+=a}return{height:t,width:i}}applySizeToSiblings(e){let t=null;const i=this.getSiblings();if(i){for(let o=0;o<i.length;o++){const s=i[o];s!==t&&(e?s.style.height=`${s.offsetHeight}px`:s.style.width=`${s.offsetWidth}px`,s.style.flex="0 0 auto",s===this.element&&(t=i[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:i}=this.config,{isTop:o,isRight:s,isBottom:n,isLeft:r}=this.currentResizer,a=s||r,l=n||o,{movementX:c,movementY:d}=this.calculateMouseMovement({e,isLeft:r,isTop:o}),u=this.position.x,h=this.position.y;let p=0,g=0;if(a&&c){const f=r?-1:1,y=this.getWidth(),v=y+c*f;let b=!1;r&&(p=y-v,(u+p<=0||v<=this.minWidth)&&(b=!0,p=0)),b||this.setWidth(v)}if(l&&d){const f=o?-1:1,y=this.getHeight(),v=y+d*f;let b=!1;o?(g=y-v,(h+g<=0||v<=this.minHeight)&&(b=!0,g=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&y<v&&this.getMinSizeOfSiblings().height+v>this.element.parentElement.offsetHeight&&(b=!0),b||this.setHeight(v)}this.updateDragStartPosition(e.clientX,e.clientY),((t||i)&&p||g)&&this.offsetElement(u+p,h+g)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:i}=this.position;let o;this.config.calculateTopBuffer&&(o=this.config.calculateTopBuffer());const{movementX:s,movementY:n}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:o});this.offsetElement(t+s,i+n),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},P7="ag-focus-managed",Yf=class extends re{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:i=>{if(i.defaultPrevented)return;const o=Gl(this.beans,this.eFocusable,!1,i.shiftKey);o&&(o.focus(),i.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:i}}=this;e.classList.add(P7),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),i&&this.addManagedElementListeners(e,{focusout:i})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||Ba(t))return;const{callbacks:i}=this;if(i.shouldStopEventPropagation(t)){Kc(t);return}t.key===Z.TAB?i.onTabKeyDown(t):i.handleKeyDown&&i.handleKeyDown(t)}})}},E7={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 F7(e,t){const{debounceMs:i}=e;return ED(e)?(i!=null&&me(71),0):i??t}function ED(e){return(e.buttons?.indexOf("apply")??-1)>=0}var FD=class extends Je{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=ge,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new Yf(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new kP(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t?.removeEventListener("submit",this.onFormSubmit);const i={tag:"form",cls:"ag-filter-wrapper",children:[{tag:"div",ref:"eFilterBody",cls:`ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper`,children:[this.createBodyTemplate()]}]};this.setTemplate(i,this.getAgComponents(),e),t=this.getGui(),t?.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.params=e,this.applyActive=ED(e),this.resetButtonsPanel(e)}updateParams(e){this.params=e,this.applyActive=ED(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){const{buttons:i,readOnly:o}=t??{},{buttons:s,readOnly:n}=e;if(o===n&&eb(i,s))return;const r=s&&s.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(en(this.eButtonsPanel),this.buttonListeners.forEach(c=>c()),this.buttonListeners=[]):r&&(this.eButtonsPanel=Kt({tag:"div",cls:"ag-filter-apply-panel"})),!r){this.eButtonsPanel&&qr(this.eButtonsPanel);return}const a=document.createDocumentFragment(),l=c=>{let d;const u=c?this.translate(`${c}Filter`):void 0;switch(c){case"apply":d=g=>this.onBtApply(!1,!1,g);break;case"clear":d=()=>this.onBtClear();break;case"reset":d=()=>this.onBtReset();break;case"cancel":d=g=>{this.onBtCancel(g)};break;default:me(75);return}const p=aD(`<button
29
29
  type="${c==="apply"?"submit":"button"}"