vendor: 5,021 bytes, line 1
1function fve(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oO={exports:{}},ny={};var xG;function gve(){if(xG)return ny;xG=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:o}}return ny.Fragment=t,ny.jsx=n,ny.jsxs=n,ny}var EG;function pve(){return EG||(EG=1,oO.exports=gve()),oO.exports}var Yy=pve(),sO={exports:{}},yt={};var RG;function mve(){if(RG)return yt;RG=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),g=Symbol.for("react.view_transition"),m=Symbol.iterator;function y(U){return U===null||typeof U!="object"?null:(U=m&&U[m]||U["@@iterator"],typeof U=="function"?U:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function E(U,X,be){this.props=U,this.context=X,this.refs=C,this.updater=be||b}E.prototype.isReactComponent={},E.prototype.setState=function(U,X){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,X,"setState")},E.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function A(){}A.prototype=E.prototype;function T(U,X,be){this.props=U,this.context=X,this.refs=C,this.updater=be||b}var P=T.prototype=new A;P.constructor=T,w(P,E.prototype),P.isPureReactComponent=!0;var O=Array.isArray;function D(){}var F={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function N(U,X,be){var me=be.ref;return{$$typeof:e,type:U,key:X,ref:me!==void 0?me:null,props:be}}function M(U,X){return N(U.type,X,U.props)}function k(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function B(U){var X={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(be){return X[be]})}var j=/\/+/g;function z(U,X){return typeof U=="object"&&U!==null&&U.key!=null?B(""+U.key):X.toString(36)}function H(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(D,D):(U.status="pending",U.then(function(X){U.status==="pending"&&(U.status="fulfilled",U.value=X)},function(X){U.status==="pending"&&(U.status="rejected",U.reason=X)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function G(U,X,be,me,Oe){var ge=typeof U;(ge==="undefined"||ge==="boolean")&&(U=null);var ve=!1;if(U===null)ve=!0;else switch(ge){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(U.$$typeof){case e:case t:ve=!0;break;case d:return ve=U._init,G(ve(U._payload),X,be,me,Oe)}}if(ve)return Oe=Oe(U),ve=me===""?"."+z(U,0):me,O(Oe)?(be="",ve!=null&&(be=ve.replace(j,"$&/")+"/"),G(Oe,X,be,"",function(Fe){return Fe})):Oe!=null&&(k(Oe)&&(Oe=M(Oe,be+(Oe.key==null||U&&U.key===Oe.key?"":(""+Oe.key).replace(j,"$&/")+"/")+ve)),X.push(Oe)),1;ve=0;var de=me===""?".":me+":";if(O(U))for(var J=0;J<U.length;J++)me=U[J],ge=de+z(me,J),ve+=G(me,X,be,ge,Oe);else if(J=y(U),typeof J=="function")for(U=J.call(U),J=0;!(me=U.next()).done;)me=me.value,ge=de+z(me,J++),ve+=G(me,X,be,ge,Oe);else if(ge==="object"){if(typeof U.then=="function")return G(H(U),X,be,me,Oe);throw X=String(U),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ve}function $(U,X,be){if(U==null)return U;var me=[],Oe=0;return G(U,me,"","",function(ge){return X.call(be,ge,Oe++)}),me}function Y(U){if(U._status===-1){var X=U._result,be=X();be.then(function(me){(U._status===0||U._status===-1)&&(U._status=1,U._result=me,be.status===void 0&&(be.status="fulfilled",be.value=me))},function(me){(U._status===0||U._status===-1)&&(U._status=2,U._result=me,be.status===void 0&&(be.status="rejected",be.reason=me))}),U._status===-1&&(U._status=0,U._result=be)}if(U._status===1)return U._result.default;throw U._result}
vendor: 9,358 bytes, line 1
1var K=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)};function se(U){var X=F.T,be={};be.types=X!==null?X.types:null,F.T=be;try{var me=U(),Oe=F.S;Oe!==null&&Oe(be,me),typeof me=="object"&&me!==null&&typeof me.then=="function"&&me.then(D,K)}catch(ge){K(ge)}finally{X!==null&&be.types!==null&&(X.types=be.types),F.T=X}}function re(U){var X=F.T;if(X!==null){var be=X.types;be===null?X.types=[U]:be.indexOf(U)===-1&&be.push(U)}else se(re.bind(null,U))}var ue={map:$,forEach:function(U,X,be){$(U,function(){X.apply(this,arguments)},be)},count:function(U){var X=0;return $(U,function(){X++}),X},toArray:function(U){return $(U,function(X){return X})||[]},only:function(U){if(!k(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return yt.Activity=f,yt.Children=ue,yt.Component=E,yt.Fragment=n,yt.Profiler=i,yt.PureComponent=T,yt.StrictMode=r,yt.Suspense=l,yt.ViewTransition=g,yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,yt.__COMPILER_RUNTIME={__proto__:null,c:function(U){return F.H.useMemoCache(U)}},yt.addTransitionType=re,yt.cache=function(U){return function(){return U.apply(null,arguments)}},yt.cacheSignal=function(){return null},yt.cloneElement=function(U,X,be){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var me=w({},U.props),Oe=U.key;if(X!=null)for(ge in X.key!==void 0&&(Oe=""+X.key),X)!L.call(X,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&X.ref===void 0||(me[ge]=X[ge]);var ge=arguments.length-2;if(ge===1)me.children=be;else if(1<ge){for(var ve=Array(ge),de=0;de<ge;de++)ve[de]=arguments[de+2];me.children=ve}return N(U.type,Oe,me)},yt.createContext=function(U){return U={$$typeof:s,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:o,_context:U},U},yt.createElement=function(U,X,be){var me,Oe={},ge=null;if(X!=null)for(me in X.key!==void 0&&(ge=""+X.key),X)L.call(X,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(Oe[me]=X[me]);var ve=arguments.length-2;if(ve===1)Oe.children=be;else if(1<ve){for(var de=Array(ve),J=0;J<ve;J++)de[J]=arguments[J+2];Oe.children=de}if(U&&U.defaultProps)for(me in ve=U.defaultProps,ve)Oe[me]===void 0&&(Oe[me]=ve[me]);return N(U,ge,Oe)},yt.createRef=function(){return{current:null}},yt.forwardRef=function(U){return{$$typeof:a,render:U}},yt.isValidElement=k,yt.lazy=function(U){return{$$typeof:d,_payload:{_status:-1,_result:U},_init:Y}},yt.memo=function(U,X){return{$$typeof:u,type:U,compare:X===void 0?null:X}},yt.startTransition=se,yt.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},yt.use=function(U){return F.H.use(U)},yt.useActionState=function(U,X,be){return F.H.useActionState(U,X,be)},yt.useCallback=function(U,X){return F.H.useCallback(U,X)},yt.useContext=function(U){return F.H.useContext(U)},yt.useDebugValue=function(){},yt.useDeferredValue=function(U,X){return F.H.useDeferredValue(U,X)},yt.useEffect=function(U,X){return F.H.useEffect(U,X)},yt.useEffectEvent=function(U){return F.H.useEffectEvent(U)},yt.useId=function(){return F.H.useId()},yt.useImperativeHandle=function(U,X,be){return F.H.useImperativeHandle(U,X,be)},yt.useInsertionEffect=function(U,X){return F.H.useInsertionEffect(U,X)},yt.useLayoutEffect=function(U,X){return F.H.useLayoutEffect(U,X)},yt.useMemo=function(U,X){return F.H.useMemo(U,X)},yt.useOptimistic=function(U,X){return F.H.useOptimistic(U,X)},yt.useReducer=function(U,X,be){return F.H.useReducer(U,X,be)},yt.useRef=function(U){return F.H.useRef(U)},yt.useState=function(U){return F.H.useState(U)},yt.useSyncExternalStore=function(U,X,be){return F.H.useSyncExternalStore(U,X,be)},yt.useTransition=function(){return F.H.useTransition()},yt.version="19.3.0",yt}var AG;function Vm(){return AG||(AG=1,sO.exports=mve()),sO.exports}var R=Vm();const ye=fg(R),vve=fve({__proto__:null,default:ye},[R]);var aO={exports:{}},ry={},lO={exports:{}},uO={};var TG;function yve(){return TG||(TG=1,(function(e){function t(H,G){var $=H.length;H.push(G);e:for(;0<$;){var Y=$-1>>>1,K=H[Y];if(0<i(K,G))H[Y]=G,H[$]=K,$=Y;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var G=H[0],$=H.pop();if($!==G){H[0]=$;e:for(var Y=0,K=H.length,se=K>>>1;Y<se;){var re=2*(Y+1)-1,ue=H[re],U=re+1,X=H[U];if(0>i(ue,$))U<K&&0>i(X,ue)?(H[Y]=X,H[U]=$,Y=U):(H[Y]=ue,H[re]=$,Y=re);else if(U<K&&0>i(X,$))H[Y]=X,H[U]=$,Y=U;else break e}}return G}function i(H,G){var $=H.sortIndex-G.sortIndex;return $!==0?$:H.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,f=null,g=3,m=!1,y=!1,b=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function T(H){for(var G=n(u);G!==null;){if(G.callback===null)r(u);else if(G.startTime<=H)r(u),G.sortIndex=G.expirationTime,t(l,G);else break;G=n(u)}}function P(H){if(b=!1,T(H),!y)if(n(l)!==null)y=!0,O||(O=!0,k());else{var G=n(u);G!==null&&z(P,G.startTime-H)}}var O=!1,D=-1,F=5,L=-1;function N(){return w?!0:!(e.unstable_now()-L<F)}function M(){if(w=!1,O){var H=e.unstable_now();L=H;var G=!0;try{e:{y=!1,b&&(b=!1,E(D),D=-1),m=!0;var $=g;try{t:{for(T(H),f=n(l);f!==null&&!(f.expirationTime>H&&N());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,g=f.priorityLevel;var K=Y(f.expirationTime<=H);if(H=e.unstable_now(),typeof K=="function"){f.callback=K,T(H),G=!0;break t}f===n(l)&&r(l),T(H)}else r(l);f=n(l)}if(f!==null)G=!0;else{var se=n(u);se!==null&&z(P,se.startTime-H),G=!1}}break e}finally{f=null,g=$,m=!1}G=void 0}}finally{G?k():O=!1}}}var k;if(typeof A=="function")k=function(){A(M)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,j=B.port2;B.port1.onmessage=M,k=function(){j.postMessage(null)}}else k=function(){C(M,0)};function z(H,G){D=C(function(){H(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(H){switch(g){case 1:case 2:case 3:var G=3;break;default:G=g}var $=g;g=G;try{return H()}finally{g=$}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(H,G){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var $=g;g=H;try{return G()}finally{g=$}},e.unstable_scheduleCallback=function(H,G,$){var Y=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?Y+$:Y):$=Y,H){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=$+K,H={id:d++,callback:G,priorityLevel:H,startTime:$,expirationTime:K,sortIndex:-1},$>Y?(H.sortIndex=$,t(u,H),n(l)===null&&H===n(u)&&(b?(E(D),D=-1):b=!0,z(P,$-Y))):(H.sortIndex=K,t(l,H),y||m||(y=!0,O||(O=!0,k()))),H},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(H){var G=g;return function(){var $=g;g=G;try{return H.apply(this,arguments)}finally{g=$}}}})(uO)),uO}var PG;function bve(){return PG||(PG=1,lO.exports=yve()),lO.exports}var cO={exports:{}},Mi={};var OG;function wve(){if(OG)return Mi;OG=1;var e=Vm();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal"),o=Symbol.for("react.recoverable"),s=Symbol.for("react.optimistic_key");function a(d,f,g){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:m===s?s:""+m,children:d,containerInfo:f,implementation:g}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Mi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Mi.browser=function(d){return{$$typeof:o,_reason:d}},Mi.createPortal=function(d,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(d,f,null,g)},Mi.flushSync=function(d){var f=l.T,g=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=g,r.d.f()}}
vendor: 24,487 bytes, lines 1-8
1,Mi.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},Mi.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Mi.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var g=f.as,m=u(g,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:b}):g==="script"&&r.d.X(d,{crossOrigin:m,integrity:y,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Mi.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var g=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0})}}else f==null&&r.d.M(d)},Mi.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var g=f.as,m=u(g,f.crossOrigin);r.d.L(d,g,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Mi.preloadModule=function(d,f){if(typeof d=="string")if(f){var g=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0})}else r.d.m(d)},Mi.requestFormReset=function(d){r.d.r(d)},Mi.unstable_batchedUpdates=function(d,f){return d(f)},Mi.useFormState=function(d,f,g){return l.H.useFormState(d,f,g)},Mi.useFormStatus=function(){return l.H.useHostTransitionStatus()},Mi.version="19.3.0",Mi}var DG;function oJ(){if(DG)return cO.exports;DG=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),cO.exports=wve(),cO.exports}var MG;function Cve(){if(MG)return ry;MG=1;var e=bve(),t=Vm(),n=oJ();function r(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function o(c){for(var h=c,p=h;p&&!p.alternate;)h=p,(h.flags&4098)!==0&&(c=h.return),p=h.return;for(;h.return;)h=h.return;return h.tag===3?c:null}function s(c){if(c.tag===13){var h=c.memoizedState;if(h===null&&(c=c.alternate,c!==null&&(h=c.memoizedState)),h!==null)return h.dehydrated}return null}function a(c){if(c.tag===31){var h=c.memoizedState;if(h===null&&(c=c.alternate,c!==null&&(h=c.memoizedState)),h!==null)return h.dehydrated}return null}function l(c){if(o(c)!==c)throw Error(r(188))}function u(c){var h=c.alternate;if(!h){if(h=o(c),h===null)throw Error(r(188));return h!==c?null:c}for(var p=c,v=h;;){var S=p.return;if(S===null)break;var x=S.alternate;if(x===null){if(v=S.return,v!==null){p=v;continue}break}if(S.child===x.child){for(x=S.child;x;){if(x===p)return l(S),c;if(x===v)return l(S),h;x=x.sibling}throw Error(r(188))}if(p.return!==v.return)p=S,v=x;else{for(var I=!1,V=S.child;V;){if(V===p){I=!0,p=S,v=x;break}if(V===v){I=!0,v=S,p=x;break}V=V.sibling}if(!I){for(V=x.child;V;){if(V===p){I=!0,p=x,v=S;break}if(V===v){I=!0,v=x,p=S;break}V=V.sibling}if(!I)throw Error(r(189))}}if(p.alternate!==v)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?c:h}function d(c){var h=c.tag;if(h===5||h===26||h===27||h===6)return c;for(c=c.child;c!==null;){if(h=d(c),h!==null)return h;c=c.sibling}return null}function f(c,h,p,v,S,x){for(;c!==null;){if((c.tag===5||c.tag===27||c.tag===6)&&p(c,v,S,x)||(c.tag!==22||c.memoizedState===null)&&(h||c.tag!==5&&c.tag!==27)&&f(c.child,h,p,v,S,x))return!0;c=c.sibling}return!1}function g(c){for(c=c.return;c!==null;){if(c.tag===3||c.tag===5||c.tag===27)return c;c=c.return}return null}function m(c){var h=!1;for(c=c.return;c!==null&&(c.tag===4&&(h=!0),!(c.tag===3||c.tag===5||c.tag===27));)c=c.return;return h}function y(c){var h=[null,null],p=g(c);return p===null||b(h,c,p.child,{foundSelf:!1}),h}function b(c,h,p,v){for(;p!==null;){if(p===h)v.foundSelf=!0;else if(p.tag===5||p.tag===27||p.tag===6){if(v.foundSelf)return c[1]=p,!0;c[0]=p}else if((p.tag!==22||p.memoizedState===null)&&b(c,h,p.child,v))return!0;p=p.sibling}return!1}function w(c){switch(c.tag){case 5:case 27:case 6:return c.stateNode;case 3:return c.stateNode.containerInfo;default:throw Error(r(559))}}var C=null,E=null;function A(c,h,p){return c===p?!0:c===h?(C=c,!0):!1}function T(c,h,p){return c===p?(E=c,!1):c===h?(E!==null&&(C=c),!0):!1}function P(c){if(c===null)return null;do c=c===null?null:c.return;while(c&&c.tag!==5&&c.tag!==27&&c.tag!==3);return c||null}function O(c,h,p){for(var v=0,S=c;S;S=p(S))v++;S=0;for(var x=h;x;x=p(x))S++;for(;0<v-S;)c=p(c),v--;for(;0<S-v;)h=p(h),S--;for(;v--;){if(c===h||h!==null&&c===h.alternate)return c;c=p(c),h=p(h)}return null}var D=Object.assign,F=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),z=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),re=Symbol.for("react.legacy_hidden"),ue=Symbol.for("react.memo_cache_sentinel"),U=Symbol.for("react.view_transition"),X=Symbol.for("react.recoverable"),be=Symbol.iterator;function me(c){return c===null||typeof c!="object"?null:(c=be&&c[be]||c["@@iterator"],typeof c=="function"?c:null)}var Oe=Symbol.for("react.client.reference");function ge(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===Oe?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case M:return"Fragment";case B:return"Profiler";case k:return"StrictMode";case G:return"Suspense";case $:return"SuspenseList";case se:return"Activity";case U:return"ViewTransition"}if(typeof c=="object")switch(c.$$typeof){case N:return"Portal";case z:return c.displayName||"Context";case j:return(c._context.displayName||"Context")+".Consumer";case H:var h=c.render;return c=c.displayName,c||(c=h.displayName||h.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Y:return h=c.displayName||null,h!==null?h:ge(c.type)||"Memo";case K:h=c._payload,c=c._init;try{return ge(c(h))}catch{}}return null}var ve=Array.isArray,de=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fe={pending:!1,data:null,method:null,action:null},ke=[],Te=-1;function dt(c){return{current:c}}function Ne(c){0>Te||(c.current=ke[Te],ke[Te]=null,Te--)}function xe(c,h){Te++,ke[Te]=c.current,c.current=h}var We=dt(null),rt=dt(null),Ke=dt(null),Be=dt(null);function pt(c,h){switch(xe(Ke,h),xe(rt,c),xe(We,null),h.nodeType){case 9:case 11:c=(c=h.documentElement)&&(c=c.namespaceURI)?I4(c):0;break;default:if(c=h.tagName,h=h.namespaceURI)h=I4(h),c=_4(h,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}Ne(We),xe(We,c)}function Ee(){Ne(We),Ne(rt),Ne(Ke)}function Ze(c){var h=c.memoizedState;h!==null&&(mp._currentValue=h.memoizedState,xe(Be,c)),h=We.current;var p=_4(h,c.type);h!==p&&(xe(rt,c),xe(We,p))}function st(c){rt.current===c&&(Ne(We),Ne(rt)),Be.current===c&&(Ne(Be),mp._currentValue=Fe)}var tt,qe;function mt(c){if(tt===void 0)try{throw Error()}catch(p){var h=p.stack.trim().match(/\n( *(at )?)/);tt=h&&h[1]||"",qe=-1<p.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+tt+c+qe}var $t=!1;function _n(c,h){if(!c||$t)return"";$t=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(h){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(He){var oe=He}Reflect.construct(c,[],Ae)}else{try{Ae.call()}catch(He){oe=He}Ae=!1;try{var he=Object.getOwnPropertyDescriptor(c.prototype,"props");Object.defineProperty(c.prototype,"props",{configurable:!0,set:function(){throw Error()}}),Ae=!0,new c}finally{Ae&&(he!==void 0?Object.defineProperty(c.prototype,"props",he):delete c.prototype.props)}}}else{try{throw Error()}catch(He){oe=He}(Ae=c())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(He){if(He&&oe&&typeof He.stack=="string")return[He.stack,oe.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=v.DetermineComponentFrameRoot(),I=x[0],V=x[1];if(I&&V){var Z=I.split(` 4`),le=V.split(` 5`);for(S=v=0;v<Z.length&&!Z[v].includes("DetermineComponentFrameRoot");)v++;for(;S<le.length&&!le[S].includes("DetermineComponentFrameRoot");)S++;if(v===Z.length||S===le.length)for(v=Z.length-1,S=le.length-1;1<=v&&0<=S&&Z[v]!==le[S];)S--;for(;1<=v&&0<=S;v--,S--)if(Z[v]!==le[S]){if(v!==1||S!==1)do if(v--,S--,0>S||Z[v]!==le[S]){var pe=` 6`+Z[v].replace(" at new "," at ");return c.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",c.displayName)),pe}while(1<=v&&0<=S);break}}}finally{$t=!1,Error.prepareStackTrace=p}return(p=c?c.displayName||c.name:"")?mt(p):""}function Yn(c,h){switch(c.tag){case 26:case 27:case 5:return mt(c.type);case 16:return mt("Lazy");case 13:return c.child!==h&&h!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return _n(c.type,!1);case 11:return _n(c.type.render,!1);case 1:return _n(c.type,!0);case 31:return mt("Activity");case 30:return mt("ViewTransition");default:return""}}function Bi(c){try{var h="",p=null;do h+=Yn(c,p),p=c,c=c.return;while(c);return h}catch(v){return` 7Error generating stack: `+v.message+` 8`+v.stack}}var sr=Object.prototype.hasOwnProperty,yr=e.unstable_scheduleCallback,yi=e.unstable_cancelCallback,ho=e.unstable_shouldYield,Hi=e.unstable_requestPaint,jt=e.unstable_now,bi=e.unstable_getCurrentPriorityLevel,Vi=e.unstable_ImmediatePriority,qt=e.unstable_UserBlockingPriority,wi=e.unstable_NormalPriority,Os=e.unstable_LowPriority,Ra=e.unstable_IdlePriority,dl=e.log,hl=e.unstable_setDisableYieldValue,Ci=null,Xn=null;function Zn(c){if(typeof dl=="function"&&hl(c),Xn&&typeof Xn.setStrictMode=="function")try{Xn.setStrictMode(Ci,c)}catch{}}var vn=Math.clz32?Math.clz32:fl,Ds=Math.log,bu=Math.LN2;function fl(c){return c>>>=0,c===0?32:31-(Ds(c)/bu|0)|0}var Ms=256,Fn=262144,Is=4194304;function Fo(c){var h=c&42;if(h!==0)return h;switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return c&-c;case 262144:case 524288:case 1048576:case 2097152:return c&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function _s(c,h,p){var v=c.pendingLanes;if(v===0)return 0;var S=0,x=c.suspendedLanes,I=c.pingedLanes;c=c.warmLanes;var V=v&134217727;return V!==0?(v=V&~x,v!==0?S=Fo(v):(I&=V,I!==0?S=Fo(I):p||(p=V&~c,p!==0&&(S=Fo(p))))):(V=v&~x,V!==0?S=Fo(V):I!==0?S=Fo(I):p||(p=v&~c,p!==0&&(S=Fo(p)))),S===0?0:h!==0&&h!==S&&(h&x)===0&&(x=S&-S,p=h&-h,x>=p||x===32&&(p&4194048)!==0)?h:S}function Aa(c,h){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&h)===0}function Fs(c,h){(h&8)!==0&&(h|=h&32);var p=c.entangledLanes;if(p!==0)for(c=c.entanglements,p&=h;0<p;){var v=31-vn(p),S=1<<v;h|=c[v],p&=~S}return h}function Ar(c,h){switch(c){case 1:case 2:case 4:case 8:case 64:return h+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fc(){var c=Is;return Is<<=1,(Is&62914560)===0&&(Is=4194304),c}function sn(c){for(var h=[],p=0;31>p;p++)h.push(c);return h}function zi(c,h){c.pendingLanes|=h,h!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function mh(c,h,p,v,S,x){var I=c.pendingLanes;c.pendingLanes=p,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=p,c.entangledLanes&=p,c.errorRecoveryDisabledLanes&=p,c.shellSuspendCounter=0;var V=c.entanglements,Z=c.expirationTimes,le=c.hiddenUpdates;for(p=I&~p;0<p;){var pe=31-vn(p),Ae=1<<pe;V[pe]=0,Z[pe]=-1;var oe=le[pe];if(oe!==null)for(le[pe]=null,pe=0;pe<oe.length;pe++){var he=oe[pe];he!==null&&(he.lane&=-536870913)}p&=~Ae}v!==0&&wu(c,v,0),x!==0&&S===0&&c.tag!==0&&(c.suspendedLanes|=x&~(I&~h))}function wu(c,h,p){c.pendingLanes|=h,c.suspendedLanes&=~h;var v=31-vn(h);c.entangledLanes|=h,c.entanglements[v]=c.entanglements[v]|1073741824|p&261930}function br(c,h){var p=c.entangledLanes|=h;for(c=c.entanglements;p;){var v=31-vn(p),S=1<<v;S&h|c[v]&h&&(c[v]|=h),p&=~S}}function Cu(c,h){var p=h&-h;return p=(p&42)!==0?1:gl(p),(p&(c.suspendedLanes|h))!==0?0:p}function gl(c){switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=128;break;case 268435456:c=134217728;break;default:c=0}return c}function Su(c){return c&=-c,2<c?8<c?(c&134217727)!==0?32:268435456:8:2}function kc(){var c=J.p;return c!==0?c:(c=window.event,c===void 0?32:mG(c.type))}function Lc(c,h){var p=J.p;try{return J.p=c,h()}finally{J.p=p}}var Qr=Math.random().toString(36).slice(2),Xt="__reactFiber$"+Qr,Vn="__reactProps$"+Qr,ar="__reactContainer$"+Qr,Gi="__reactEvents$"+Qr,vh="__reactListeners$"+Qr,pl="__reactHandles$"+Qr,xu="__reactResources$"+Qr,Ta="__reactMarker$"+Qr,Pa="__reactLoad$"+Qr;function ko(c){delete c[Xt],delete c[Vn],delete c[vh],delete c[pl]}function Jr(c){var h;if(h=c[Xt])return h;for(var p=c.parentNode;p;){if(h=p[ar]||p[Xt]){if(p=h.alternate,h.child!==null||p!==null&&p.child!==null)for(c=X4(c);c!==null;){if(p=c[Xt])return p;c=X4(c)}return h}c=p,p=c.parentNode}return null}function ei(c){if(c=c[Xt]||c[ar]){var h=c.tag;if(h===5||h===6||h===13||h===31||h===26||h===27||h===3)return c}return null}function fo(c){var h=c.tag;if(h===5||h===26||h===27||h===6)return c.stateNode;throw Error(r(33))}function ti(c){var h=c[xu];return h||(h=c[xu]={hoistableStyles:new Map,hoistableScripts:new Map}),h}function yn(c){c[Ta]=!0}function Si(c){c[Pa]=void 0}var Nc=new Set,Oa={};function go(c,h){rs(c,h),rs(c+"Capture",h)}function rs(c,h){for(Oa[c]=h,c=0;c<h.length;c++)Nc.add(h[c])}var Bc=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),is={},xi={};function os(c){return sr.call(xi,c)?!0:sr.call(is,c)?!1:Bc.test(c)?xi[c]=!0:(is[c]=!0,!1)}var bt=!1;function Hc(){var c=bt;return bt=!1,c}function Ei(c,h,p){if(os(h))if(p===null)c.removeAttribute(h);else{switch(typeof p){case"undefined":case"function":case"symbol":c.removeAttribute(h);return;case"boolean":var v=h.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){c.removeAttribute(h);return}}c.setAttribute(h,p)}}function Da(c,h,p){if(p===null)c.removeAttribute(h);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(h);return}c.setAttribute(h,p)}}function ni(c,h,p,v){if(v===null)c.removeAttribute(p);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(p);return}c.setAttributeNS(h,p,v)}}function wr(c){switch(typeof c){case"bigint":case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function _e(c){var h=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function q(c,h,p){var v=Object.getOwnPropertyDescriptor(c.constructor.prototype,h);if(!c.hasOwnProperty(h)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var S=v.get,x=v.set;return Object.defineProperty(c,h,{configurable:!0,get:function(){return S.call(this)},set:function(I){p=""+I,x.call(this,I)}}),Object.defineProperty(c,h,{enumerable:v.enumerable}),{getValue:function(){return p},setValue:function(I){p=""+I},stopTracking:function(){c._valueTracker=null,delete c[h]}}}}function ie(c){if(!c._valueTracker){var h=_e(c)?"checked":"value";c._valueTracker=q(c,h,""+c[h])}}function De(c){if(!c)return!1;var h=c._valueTracker;if(!h)return!0;var p=h.getValue(),v="";return c&&(v=_e(c)?c.checked?"true":"false":c.value),c=v,c!==p?(h.setValue(c),!0):!1}var Ge=/[\n"\\]/g;function je(c){return c.replace(Ge,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function lt(c,h,p,v,S,x,I,V){c.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?c.type=I:c.removeAttribute("type"),h!=null?I==="number"?(h===0&&c.value===""||c.value!=h)&&(c.value=""+wr(h)):c.value!==""+wr(h)&&(c.value=""+wr(h)):I!=="submit"&&I!=="reset"||c.removeAttribute("value"),h!=null?I==="number"&&c.value==h?Zt(c,wr(c.value)):Zt(c,wr(h)):p!=null?Zt(c,wr(p)):v!=null&&c.removeAttribute("value"),S==null&&x!=null&&(c.defaultChecked=!!x),S!=null&&(c.checked=S&&typeof S!="function"&&typeof S!="symbol"),V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?c.name=""+wr(V):c.removeAttribute("name")}function Ft(c,h,p,v,S,x,I,V){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(c.type=x),h!=null||p!=null){if(!(x!=="submit"&&x!=="reset"||h!=null)){ie(c);return}p=p!=null?""+wr(p):"",h=h!=null?""+wr(h):p,V||h===c.value||(c.value=h),c.defaultValue=h}v=v??S,v=typeof v!="function"&&typeof v!="symbol"&&!!v,c.checked=V?c.checked:!!v,c.defaultChecked=!!v,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(c.name=I),ie(c)}function Zt(c,h){c.defaultValue!==""+h&&(c.defaultValue=""+h)}function Rn(c,h,p,v){if(c=c.options,h){h={};for(var S=0;S<p.length;S++)h["$"+p[S]]=!0;for(p=0;p<c.length;p++)S=h.hasOwnProperty("$"+c[p].value),c[p].selected!==S&&(c[p].selected=S),S&&v&&(c[p].defaultSelected=!0)}else{for(p=""+wr(p),h=null,S=0;S<c.length;S++){if(c[S].value===p){c[S].selected=!0,v&&(c[S].defaultSelected=!0);return}h!==null||c[S].disabled||(h=c[S])}h!==null&&(h.selected=!0)}}function Qn(c,h,p){if(h!=null&&(h=""+wr(h),h!==c.value&&(c.value=h),p==null)){c.defaultValue!==h&&(c.defaultValue=h);return}c.defaultValue=p!=null?""+wr(p):""}function Ma(c,h,p,v){if(h==null){if(v!=null){if(p!=null)throw Error(r(92));if(ve(v)){if(1<v.length)throw Error(r(93));v=v[0]}p=v}p==null&&(p=""),h=p}p=wr(h),c.defaultValue=p,v=c.textContent,v===p&&v!==""&&v!==null&&(c.value=v),ie(c)}function Ut(c,h){if(h){var p=c.firstChild;if(p&&p===c.lastChild&&p.nodeType===3){p.nodeValue=h;return}}c.textContent=h}var Eu=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ru(c,h,p){var v=h.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?v?c.setProperty(h,""):h==="float"?c.cssFloat="":c[h]="":v?c.setProperty(h,p):typeof p!="number"||p===0||Eu.has(h)?h==="float"?c.cssFloat=p:c[h]=(""+p).trim():c[h]=p+"px"}function Ng(c,h,p){if(h!=null&&typeof h!="object")throw Error(r(62));if(c=c.style,p!=null){for(var v in p)!p.hasOwnProperty(v)||h!=null&&h.hasOwnProperty(v)||(v.indexOf("--")===0?c.setProperty(v,""):v==="float"?c.cssFloat="":c[v]="",bt=!0);for(var S in h)v=h[S],h.hasOwnProperty(S)&&p[S]!==v&&(Ru(c,S,v),bt=!0)}else for(var x in h)h.hasOwnProperty(x)&&Ru(c,x,h[x])}function yh(c){if(c.indexOf("-")===-1)return!1;switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
8-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),W=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Q(c){return W.test(""+c)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":c}function we(){}var vt=null;function it(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var Tt=null,Rt=null;function Jn(c){var h=ei(c);if(h&&(c=h.stateNode)){var p=c[Vn]||null;e:switch(c=h.stateNode,h.type){case"input":if(lt(c,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),h=p.name,p.type==="radio"&&h!=null){for(p=c;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+je(""+h)+'"][type="radio"]'),h=0;h<p.length;h++){var v=p[h];if(v!==c&&v.form===c.form){var S=v[Vn]||null;if(!S)throw Error(r(90));lt(v,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(h=0;h<p.length;h++)v=p[h],v.form===c.form&&De(v)}break e;case"textarea":Qn(c,p.value,p.defaultValue);break e;case"select":h=p.value,h!=null&&Rn(c,!!p.multiple,h,!1)}}}var Ht=!1;function Gr(c,h,p){if(Ht)return c(h,p);Ht=!0;try{var v=c(h);return v}finally{if(Ht=!1,(Tt!==null||Rt!==null)&&(b0(),Tt&&(h=Tt,c=Rt,Rt=Tt=null,Jn(h),c)))for(h=0;h<c.length;h++)Jn(c[h])}}function Tr(c,h){var p=c.stateNode;if(p===null)return null;var v=p[Vn]||null;if(v===null)return null;p=v[h];e:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(c=c.type,v=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!v;break e;default:c=!1}if(c)return null;if(p&&typeof p!="function")throw Error(r(231,h,typeof p));return p}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pr=!1;if(an)try{var er={};Object.defineProperty(er,"passive",{get:function(){Pr=!0}}),window.addEventListener("test",er,er),window.removeEventListener("test",er,er)}catch{Pr=!1}var Ri=null,ss=null,ks=null;function pv(){if(ks)return ks;var c,h=ss,p=h.length,v,S="value"in Ri?Ri.value:Ri.textContent,x=S.length;for(c=0;c<p&&h[c]===S[c];c++);var I=p-c;for(v=1;v<=I&&h[p-v]===S[x-v];v++);return ks=S.slice(c,1<v?1-v:void 0)}function Au(c){var h=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&h===13&&(c=13)):c=h,c===10&&(c=13),32<=c||c===13?c:0}function Tu(){return!0}function O5(){return!1}function po(c){function h(p,v,S,x,I){this._reactName=p,this._targetInst=S,this.type=v,this.nativeEvent=x,this.target=I,this.currentTarget=null;for(var V in c)c.hasOwnProperty(V)&&(p=c[V],this[V]=p?p(x):x[V]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Tu:O5,this.isPropagationStopped=O5,this}return D(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Tu)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Tu)},persist:function(){},isPersistent:Tu}),h}var Vc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xC=po(Vc),mv=D({},Vc,{view:0,detail:0}),Bge=po(mv),UA,WA,vv,EC=D({},mv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qA,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==vv&&(vv&&c.type==="mousemove"?(UA=c.screenX-vv.screenX,WA=c.screenY-vv.screenY):WA=UA=0,vv=c),UA)},movementY:function(c){return"movementY"in c?c.movementY:WA}}),D5=po(EC),Hge=D({},EC,{dataTransfer:0}),Vge=po(Hge),zge=D({},mv,{relatedTarget:0}),$A=po(zge),Gge=D({},Vc,{animationName:0,elapsedTime:0,pseudoElement:0}),jge=po(Gge),Uge=D({},Vc,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),Wge=po(Uge),$ge=D({},Vc,{data:0}),M5=po($ge),qge={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kge={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Yge={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xge(c){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(c):(c=Yge[c])?!!h[c]:!1}function qA(){return Xge}var Zge=D({},mv,{key:function(c){if(c.key){var h=qge[c.key]||c.key;if(h!=="Unidentified")return h}
vendor: 4,275 bytes, line 8
8return c.type==="keypress"?(c=Au(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?Kge[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qA,charCode:function(c){return c.type==="keypress"?Au(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?Au(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),Qge=po(Zge),Jge=D({},EC,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),I5=po(Jge),epe=D({},Vc,{submitter:0}),tpe=po(epe),npe=D({},mv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qA}),rpe=po(npe),ipe=D({},Vc,{propertyName:0,elapsedTime:0,pseudoElement:0}),ope=po(ipe),spe=D({},EC,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),ape=po(spe),lpe=D({},Vc,{newState:0,oldState:0,source:0}),upe=po(lpe),cpe=[9,13,27,32],KA=an&&"CompositionEvent"in window,yv=null;an&&"documentMode"in document&&(yv=document.documentMode);var dpe=an&&"TextEvent"in window&&!yv,_5=an&&(!KA||yv&&8<yv&&11>=yv),F5=" ",k5=!1;function L5(c,h){switch(c){case"keyup":return cpe.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N5(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var Bg=!1;function hpe(c,h){switch(c){case"compositionend":return N5(h);case"keypress":return h.which!==32?null:(k5=!0,F5);case"textInput":return c=h.data,c===F5&&k5?null:c;default:return null}}function fpe(c,h){if(Bg)return c==="compositionend"||!KA&&L5(c,h)?(c=pv(),ks=ss=Ri=null,Bg=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return _5&&h.locale!=="ko"?null:h.data;default:return null}}var gpe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function B5(c){var h=c&&c.nodeName&&c.nodeName.toLowerCase();return h==="input"?!!gpe[c.type]:h==="textarea"}function H5(c,h,p,v){Tt?Rt?Rt.push(v):Rt=[v]:Tt=v,h=R0(h,"onChange"),0<h.length&&(p=new xC("onChange","change",null,p,v),c.push({event:p,listeners:h}))}var bv=null,wv=null;function ppe(c){A4(c,0)}function RC(c){var h=fo(c);if(De(h))return c}function V5(c,h){if(c==="change")return h}var z5=!1;if(an){var YA;if(an){var XA="oninput"in document;if(!XA){var G5=document.createElement("div");G5.setAttribute("oninput","return;"),XA=typeof G5.oninput=="function"}YA=XA}else YA=!1;z5=YA&&(!document.documentMode||9<document.documentMode)}function j5(){bv&&(bv.detachEvent("onpropertychange",U5),wv=bv=null)}function U5(c){if(c.propertyName==="value"&&RC(wv)){var h=[];H5(h,wv,c,it(c)),Gr(ppe,h)}}function mpe(c,h,p){c==="focusin"?(j5(),bv=h,wv=p,bv.attachEvent("onpropertychange",U5)):c==="focusout"&&j5()}function vpe(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return RC(wv)}function ype(c,h){if(c==="click")return RC(h)}function bpe(c,h){if(c==="input"||c==="change")return RC(h)}function wpe(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var as=typeof Object.is=="function"?Object.is:wpe;function Cv(c,h){if(as(c,h))return!0;if(typeof c!="object"||c===null||typeof h!="object"||h===null)return!1;var p=Object.keys(c),v=Object.keys(h);if(p.length!==v.length)return!1;for(v=0;v<p.length;v++){var S=p[v];if(!sr.call(h,S)||!as(c[S],h[S]))return!1}return!0}function ZA(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function W5(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function $5(c,h){var p=W5(c);c=0;for(var v;p;){if(p.nodeType===3){if(v=c+p.textContent.length,c<=h&&v>=h)return{node:p,offset:h-c};c=v}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=W5(p)}}
vendor: 4,487 bytes, line 8
8function q5(c,h){return c&&h?c===h?!0:c&&c.nodeType===3?!1:h&&h.nodeType===3?q5(c,h.parentNode):"contains"in c?c.contains(h):c.compareDocumentPosition?!!(c.compareDocumentPosition(h)&16):!1:!1}function K5(c){c=c!=null&&c.ownerDocument!=null&&c.ownerDocument.defaultView!=null?c.ownerDocument.defaultView:window;for(var h=ZA(c.document);h instanceof c.HTMLIFrameElement;){try{var p=typeof h.contentWindow.location.href=="string"}catch{p=!1}if(p)c=h.contentWindow;else break;h=ZA(c.document)}return h}function QA(c){var h=c&&c.nodeName&&c.nodeName.toLowerCase();return h&&(h==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||h==="textarea"||c.contentEditable==="true")}var Cpe=an&&"documentMode"in document&&11>=document.documentMode,Hg=null,JA=null,Sv=null,eT=!1;function Y5(c,h,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;eT||Hg==null||Hg!==ZA(v)||(v=Hg,"selectionStart"in v&&QA(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Sv&&Cv(Sv,v)||(Sv=v,v=R0(JA,"onSelect"),0<v.length&&(h=new xC("onSelect","select",null,h,p),c.push({event:h,listeners:v}),h.target=Hg)))}function bh(c,h){var p={};return p[c.toLowerCase()]=h.toLowerCase(),p["Webkit"+c]="webkit"+h,p["Moz"+c]="moz"+h,p}var Vg={animationend:bh("Animation","AnimationEnd"),animationiteration:bh("Animation","AnimationIteration"),animationstart:bh("Animation","AnimationStart"),transitionrun:bh("Transition","TransitionRun"),transitionstart:bh("Transition","TransitionStart"),transitioncancel:bh("Transition","TransitionCancel"),transitionend:bh("Transition","TransitionEnd")},tT={},X5={};an&&(X5=document.createElement("div").style,"AnimationEvent"in window||(delete Vg.animationend.animation,delete Vg.animationiteration.animation,delete Vg.animationstart.animation),"TransitionEvent"in window||delete Vg.transitionend.transition);function wh(c){if(tT[c])return tT[c];if(!Vg[c])return c;var h=Vg[c],p;for(p in h)if(h.hasOwnProperty(p)&&p in X5)return tT[c]=h[p];return c}var Z5=wh("animationend"),Q5=wh("animationiteration"),J5=wh("animationstart"),Spe=wh("transitionrun"),xpe=wh("transitionstart"),Epe=wh("transitioncancel"),eV=wh("transitionend"),tV=new Map,nT="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");nT.push("scrollEnd");function Ia(c,h){tV.set(c,h),go(h,[c])}var Rpe=0;function Pu(c,h){if(c.name!=null&&c.name!=="auto")return c.name;if(h.autoName!==null)return h.autoName;c=La.identifierPrefix;var p=Rpe++;return c="_"+c+"t_"+p.toString(32)+"_",h.autoName=c}function nV(c){if(c==null||typeof c=="string")return c;var h=null,p=sp;if(p!==null)for(var v=0;v<p.length;v++){var S=c[p[v]];if(S!=null){if(S==="none")return"none";h=h==null?S:h+(" "+S)}}return h??c.default}function Ou(c,h){return c=nV(c),h=nV(h),h==null?c==="auto"?null:c:h==="auto"?null:h}var AC=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},Ls=[],zg=0,rT=0;function TC(){for(var c=zg,h=rT=zg=0;h<c;){var p=Ls[h];Ls[h++]=null;var v=Ls[h];Ls[h++]=null;var S=Ls[h];Ls[h++]=null;var x=Ls[h];if(Ls[h++]=null,v!==null&&S!==null){var I=v.pending;I===null?S.next=S:(S.next=I.next,I.next=S),v.pending=S}x!==0&&rV(p,S,x)}}function PC(c,h,p,v){Ls[zg++]=c,Ls[zg++]=h,Ls[zg++]=p,Ls[zg++]=v,rT|=v,c.lanes|=v,c=c.alternate,c!==null&&(c.lanes|=v)}function iT(c,h,p,v){return PC(c,h,p,v),OC(c)}
vendor: 1,963 bytes, line 8
8function Ch(c,h){return PC(c,null,null,h),OC(c)}function rV(c,h,p){c.lanes|=p;var v=c.alternate;v!==null&&(v.lanes|=p);for(var S=!1,x=c.return;x!==null;)x.childLanes|=p,v=x.alternate,v!==null&&(v.childLanes|=p),x.tag===22&&(c=x.stateNode,c===null||c._visibility&1||(S=!0)),c=x,x=x.return;return c.tag===3?(x=c.stateNode,S&&h!==null&&(S=31-vn(p),c=x.hiddenUpdates,v=c[S],v===null?c[S]=[h]:v.push(h),h.lane=p|536870912),x):null}function OC(c){if(50<Uv)throw Uv=0,y0=null,Error(r(185));for(var h=c.return;h!==null;)c=h,h=c.return;return c.tag===3?c.stateNode:null}var Gg={};function Ape(c,h,p,v){this.tag=c,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lo(c,h,p,v){return new Ape(c,h,p,v)}function oT(c){return c=c.prototype,!(!c||!c.isReactComponent)}function Du(c,h){var p=c.alternate;return p===null?(p=Lo(c.tag,h,c.key,c.mode),p.elementType=c.elementType,p.type=c.type,p.stateNode=c.stateNode,p.alternate=c,c.alternate=p):(p.pendingProps=h,p.type=c.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=c.flags&1206910976,p.childLanes=c.childLanes,p.lanes=c.lanes,p.child=c.child,p.memoizedProps=c.memoizedProps,p.memoizedState=c.memoizedState,p.updateQueue=c.updateQueue,h=c.dependencies,p.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},p.sibling=c.sibling,p.index=c.index,p.ref=c.ref,p.refCleanup=c.refCleanup,p}function iV(c,h){c.flags&=1206910978;var p=c.alternate;return p===null?(c.childLanes=0,c.lanes=h,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deleti
vendor: 105,259 bytes, line 8
8ons=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,h=p.dependencies,c.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),c}function DC(c,h,p,v,S,x){var I=0;if(v=c,typeof v=="function")oT(v)&&(I=1);else if(typeof v=="string")I=eve(c,p,We.current)?26:c==="html"||c==="head"||c==="body"?27:5;else e:switch(v){case se:return c=Lo(31,p,h,S),c.elementType=se,c.lanes=x,c;case M:return Sh(p.children,S,x,h);case k:I=8,S|=24;break;case B:return c=Lo(12,p,h,S|2),c.elementType=B,c.lanes=x,c;case G:return c=Lo(13,p,h,S),c.elementType=G,c.lanes=x,c;case $:return c=Lo(19,p,h,S),c.elementType=$,c.lanes=x,c;case re:case U:return c=S|32,c=Lo(30,p,h,c),c.elementType=U,c.lanes=x,c.stateNode={autoName:null,paired:null,clones:null,ref:null},c;default:if(typeof v=="object"&&v!==null)switch(v.$$typeof){case z:I=10;break e;case j:I=9;break e;case H:I=11;break e;case Y:I=14;break e;case K:I=16,v=null;break e}I=29,p=Error(r(130,c===null?"null":typeof c,"")),v=null}return h=Lo(I,p,h,S),h.elementType=c,h.type=v,h.lanes=x,h}function Sh(c,h,p,v){return c=Lo(7,c,v,h),c.lanes=p,c}function sT(c,h,p){return c=Lo(6,c,null,h),c.lanes=p,c}function oV(c){var h=Lo(18,null,null,0);return h.stateNode=c,h}function aT(c,h,p){return h=Lo(4,c.children!==null?c.children:[],c.key,h),h.lanes=p,h.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},h}var sV=new WeakMap;function Ns(c,h){if(typeof c=="object"&&c!==null){var p=sV.get(c);return p!==void 0?p:(h={value:c,source:h,stack:Bi(h)},sV.set(c,h),h)}return{value:c,source:h,stack:Bi(h)}}var jg=[],Ug=0,MC=null,xv=0,Bs=[],Hs=0,zc=null,ml=1,vl="";function Mu(c,h){jg[Ug++]=xv,jg[Ug++]=MC,MC=c,xv=h}function aV(c,h,p){Bs[Hs++]=ml,Bs[Hs++]=vl,Bs[Hs++]=zc,zc=c;var v=ml;c=vl;var S=32-vn(v)-1;v&=~(1<<S),p+=1;var x=32-vn(h)+S;if(30<x){var I=S-S%5;x=(v&(1<<I)-1).toString(32),v>>=I,S-=I,ml=1<<32-vn(h)+S|p<<S|v,vl=x+c}else ml=1<<x|p<<S|v,vl=c}function IC(c){c.return!==null&&(Mu(c,1),aV(c,1,0))}function lT(c){for(;c===MC;)MC=jg[--Ug],jg[Ug]=null,xv=jg[--Ug],jg[Ug]=null;for(;c===zc;)zc=Bs[--Hs],Bs[Hs]=null,vl=Bs[--Hs],Bs[Hs]=null,ml=Bs[--Hs],Bs[Hs]=null}function lV(c,h){Bs[Hs++]=ml,Bs[Hs++]=vl,Bs[Hs++]=zc,ml=h.id,vl=h.overflow,zc=c}var ri=null,An=null,Pt=!1,Gc=null,Vs=!1,uT=Error(r(519));function jc(c){var h=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ev(Ns(h,c)),uT}function uV(c){var h=c.stateNode,p=c.type,v=c.memoizedProps;switch(h[Xt]=c,h[Vn]=v,p){case"dialog":Mt("cancel",h),Mt("close",h);break;case"iframe":case"object":case"embed":Mt("load",h);break;case"video":case"audio":for(p=0;p<$v.length;p++)Mt($v[p],h);break;case"source":Mt("error",h);break;case"img":case"image":case"link":Mt("error",h),Mt("load",h);break;case"details":Mt("toggle",h);break;case"input":Mt("invalid",h),Ft(h,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0);break;case"select":Mt("invalid",h);break;case"textarea":Mt("invalid",h),Ma(h,v.value,v.defaultValue,v.children)}p=v.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||h.textContent===""+p||v.suppressHydrationWarning===!0||D4(h.textContent,p)?(v.popover!=null&&(Mt("beforetoggle",h),Mt("toggle",h)),v.onScroll!=null&&Mt("scroll",h),v.onScrollEnd!=null&&Mt("scrollend",h),v.onClick!=null&&(h.onclick=we),h=!0):h=!1,h||jc(c,!0)}function _C(c){for(ri=c.return;ri;)switch(ri.tag){case 5:case 31:case 13:Vs=!1;return;case 27:case 3:Vs=!0;return;default:ri=ri.return}}function Wg(c){if(c!==ri)return!1;if(!Pt)return _C(c),Pt=!0,!1;var h=c.tag,p;if((p=h!==3&&h!==27)&&((p=h===5)&&(p=c.type,p=!(p!=="form"&&p!=="button")||HP(c.type,c.memoizedProps)),p=!p),p&&An&&jc(c),_C(c),h===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));An=Y4(c)}else if(h===31){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));An=Y4(c)}else h===27?(h=An,od(c.type)?(c=KP,KP=null,An=c):An=h):An=ri?Gs(c.stateNode.nextSibling):null;return!0}function xh(){An=ri=null,Pt=!1}function cT(){var c=Gc;return c!==null&&(Ho===null?Ho=c:Ho.push.apply(Ho,c),Gc=null),c}function Ev(c){Gc===null?Gc=[c]:Gc.push(c)}var dT=dt(null),Eh=null,Iu=null;function Uc(c,h,p){xe(dT,h._currentValue),h._currentValue=p}function _u(c){c._currentValue=dT.current,Ne(dT)}function FC(c,h,p){for(;c!==null;){var v=c.alternate;if((c.childLanes&h)!==h?(c.childLanes|=h,v!==null&&(v.childLanes|=h)):v!==null&&(v.childLanes&h)!==h&&(v.childLanes|=h),c===p)break;c=c.return}}function hT(c,h,p,v){var S=c.child;for(S!==null&&(S.return=c);S!==null;){var x=S.dependencies;if(x!==null){var I=S.child;x=x.firstContext;e:for(;x!==null;){var V=x;x=S;for(var Z=0;Z<h.length;Z++)if(V.context===h[Z]){x.lanes|=p,V=x.alternate,V!==null&&(V.lanes|=p),FC(x.return,p,c),v||(I=null);break e}x=V.next}}else if(S.tag===18){if(I=S.return,I===null)throw Error(r(341));I.lanes|=p,x=I.alternate,x!==null&&(x.lanes|=p),FC(I,p,c),I=null}else S.tag===13&&S.memoizedState!==null&&S.memoizedState.dehydrated===null?(S.lanes|=p,I=S.alternate,I!==null&&(I.lanes|=p),FC(S.return,p,c),I=S.child,I=I!==null?I.sibling:null):I=S.child;if(I!==null)I.return=S;else for(I=S;I!==null;){if(I===c){I=null;break}if(S=I.sibling,S!==null){S.return=I.return,I=S;break}I=I.return}S=I}}function Rh(c,h,p,v){c=null;for(var S=h,x=!1;S!==null;){if(!x){if((S.flags&524288)!==0)x=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var I=S.alternate;if(I===null)throw Error(r(387));if(I=I.memoizedProps,I!==null){var V=S.type;as(S.pendingProps.value,I.value)||(c!==null?c.push(V):c=[V])}}else if(S===Be.current){if(I=S.alternate,I===null)throw Error(r(387));I.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(c!==null?c.push(mp):c=[mp])}S=S.return}return c!==null&&hT(h,c,p,v),h.flags|=262144,c!==null}function kC(c){for(c=c.firstContext;c!==null;){if(!as(c.context._currentValue,c.memoizedValue))return!0;c=c.next}return!1}function Ah(c){Eh=c,Iu=null,c=c.dependencies,c!==null&&(c.firstContext=null)}function Ai(c){return cV(Eh,c)}function LC(c,h){return Eh===null&&Ah(c),cV(c,h)}function cV(c,h){var p=h._currentValue;if(h={context:h,memoizedValue:p,next:null},Iu===null){if(c===null)throw Error(r(308));Iu=h,c.dependencies={lanes:0,firstContext:h},c.flags|=524288}else Iu=Iu.next=h;return p}var Tpe=typeof AbortController<"u"?AbortController:function(){var c=[],h=this.signal={aborted:!1,addEventListener:function(p,v){c.push(v)}};this.abort=function(){h.aborted=!0,c.forEach(function(p){return p()})}},Ppe=e.unstable_scheduleCallback,Ope=e.unstable_NormalPriority,Or={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fT(){return{controller:new Tpe,data:new Map,refCount:0}}function Rv(c){c.refCount--,c.refCount===0&&Ppe(Ope,function(){c.controller.abort()})}function dV(c,h){if((c.pendingLanes&4194048)!==0){var p=c.transitionTypes;for(p===null&&(p=c.transitionTypes=[]),c=0;c<h.length;c++){var v=h[c];p.indexOf(v)===-1&&p.push(v)}}}var Av=null;function Dpe(c){var h=c.transitionTypes;return c.transitionTypes=null,h}var Tv=null,gT=0,Th=0,$g=null;function Mpe(c,h){if(Tv===null){var p=Tv=[];gT=0,Th=DP(),$g={status:"pending",value:void 0,then:function(v){p.push(v)}}}return gT++,h.then(hV,hV),h}function hV(){if(--gT===0&&(Av=null,Tv!==null)){$g!==null&&($g.status="fulfilled");var c=Tv;Tv=null,Th=0,$g=null;for(var h=0;h<c.length;h++)(0,c[h])()}}function Ipe(c,h){var p=[],v={status:"pending",value:null,reason:null,then:function(S){p.push(S)}};return c.then(function(){v.status="fulfilled",v.value=h;for(var S=0;S<p.length;S++)(0,p[S])(h)},function(S){for(v.status="rejected",v.reason=S,S=0;S<p.length;S++)(0,p[S])(void 0)}),v}var fV=de.S;de.S=function(c,h){if(o4=jt(),typeof h=="object"&&h!==null&&typeof h.then=="function"&&Mpe(c,h),Av!==null)for(var p=cp;p!==null;)dV(p,Av),p=p.next;if(p=c.types,p!==null){for(var v=cp;v!==null;)dV(v,p),v=v.next;if(Th!==0){v=Av,v===null&&(v=Av=[]);for(var S=0;S<p.length;S++){var x=p[S];v.indexOf(x)===-1&&v.push(x)}}}fV!==null&&fV(c,h)};var Ph=dt(null);function pT(){var c=Ph.current;return c!==null?c:Sn.pooledCache}function NC(c,h){h===null?xe(Ph,Ph.current):xe(Ph,h.pool)}function gV(){var c=pT();return c===null?null:{parent:Or._currentValue,pool:c}}var qg=Error(r(460)),mT=Error(r(474)),BC=Error(r(542)),HC={then:function(){}};function pV(c){return c=c.status,c==="fulfilled"||c==="rejected"}function mV(c,h,p){switch(p=c[p],p===void 0?c.push(h):p!==h&&(h.then(we,we),h=p),h.status){case"fulfilled":return h.value;case"rejected":throw c=h.reason,yV(c),c===void 0&&!("reason"in h)?Error(r(600)):c;default:if(typeof h.status=="string")h.then(we,we);else{if(c=Sn,c!==null&&100<c.shellSuspendCounter)throw Error(r(482));c=h,c.status="pending",c.then(function(v){if(h.status==="pending"){var S=h;S.status="fulfilled",S.value=v}},function(v){if(h.status==="pending"){var S=h;S.status="rejected",S.reason=v}})}switch(h.status){case"fulfilled":return h.value;case"rejected":throw c=h.reason,yV(c),c}throw Dh=h,qg}}function Oh(c){try{var h=c._init;return h(c._payload)}catch(p){throw p!==null&&typeof p=="object"&&typeof p.then=="function"?(Dh=p,qg):p}}var Dh=null;function vV(){if(Dh===null)throw Error(r(459));var c=Dh;return Dh=null,c}function yV(c){if(c===qg||c===BC)throw Error(r(483))}var Kg=null,Pv=0;function VC(c){var h=Pv;return Pv+=1,Kg===null&&(Kg=[]),mV(Kg,c,h)}function Wc(c,h){h=h.props.ref,c.ref=h!==void 0?h:null}function zC(c,h){throw h.$$typeof===F?Error(r(525)):(c=Object.prototype.toString.call(h),Error(r(31,c==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":c)))}function bV(c){function h(ae,ee){if(c){var ce=ae.deletions;ce===null?(ae.deletions=[ee],ae.flags|=16):ce.push(ee)}}function p(ae,ee){if(!c)return null;for(;ee!==null;)h(ae,ee),ee=ee.sibling;return null}function v(ae){for(var ee=new Map;ae!==null;)ae.key===null?ee.set(ae.index,ae):ee.set(ae.key,ae),ae=ae.sibling;return ee}function S(ae,ee){return ae=Du(ae,ee),ae.index=0,ae.sibling=null,ae}function x(ae,ee,ce){return ae.index=ce,c?(ce=ae.alternate,ce!==null?(ce=ce.index,ce<ee?(ae.flags|=2,ee):ce):(ae.flags|=134217730,ee)):(ae.flags|=1048576,ee)}function I(ae){return c&&ae.alternate===null&&(ae.flags|=134217730),ae}function V(ae,ee,ce,Re){return ee===null||ee.tag!==6?(ee=sT(ce,ae.mode,Re),ee.return=ae,ee):(ee=S(ee,ce),ee.return=ae,ee)}function Z(ae,ee,ce,Re){var Xe=ce.type;return Xe===M?(ae=pe(ae,ee,ce.props.children,Re,ce.key),Wc(ae,ce),ae):ee!==null&&(ee.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===K&&Oh(Xe)===ee.type)?(ee=S(ee,ce.props),Wc(ee,ce),ee.return=ae,ee):(ee=DC(ce.type,ce.key,ce.props,null,ae.mode,Re),Wc(ee,ce),ee.return=ae,ee)}function le(ae,ee,ce,Re){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ce.containerInfo||ee.stateNode.implementation!==ce.implementation?(ee=aT(ce,ae.mode,Re),ee.return=ae,ee):(ee=S(ee,ce.children||[]),ee.return=ae,ee)}function pe(ae,ee,ce,Re,Xe){return ee===null||ee.tag!==7?(ee=Sh(ce,ae.mode,Re,Xe),ee.return=ae,ee):(ee=S(ee,ce),ee.return=ae,ee)}function Ae(ae,ee,ce){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=sT(""+ee,ae.mode,ce),ee.return=ae,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case L:return ce=DC(ee.type,ee.key,ee.props,null,ae.mode,ce),Wc(ce,ee),ce.return=ae,ce;case N:return ee=aT(ee,ae.mode,ce),ee.return=ae,ee;case K:return ee=Oh(ee),Ae(ae,ee,ce)}if(ve(ee)||me(ee))return ee=Sh(ee,ae.mode,ce,null),ee.return=ae,ee;if(typeof ee.then=="function")return Ae(ae,VC(ee),ce);if(ee.$$typeof===z)return Ae(ae,LC(ae,ee),ce);zC(ae,ee)}return null}function oe(ae,ee,ce,Re){var Xe=ee!==null?ee.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return Xe!==null?null:V(ae,ee,""+ce,Re);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case L:return ce.key===Xe?Z(ae,ee,ce,Re):null;case N:return ce.key===Xe?le(ae,ee,ce,Re):null;case K:return ce=Oh(ce),oe(ae,ee,ce,Re)}if(ve(ce)||me(ce))return Xe!==null?null:pe(ae,ee,ce,Re,null);if(typeof ce.then=="function")return oe(ae,ee,VC(ce),Re);if(ce.$$typeof===z)return oe(ae,ee,LC(ae,ce),Re);zC(ae,ce)}return null}function he(ae,ee,ce,Re,Xe){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return ae=ae.get(ce)||null,V(ee,ae,""+Re,Xe);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case L:return ae=ae.get(Re.key===null?ce:Re.key)||null,Z(ee,ae,Re,Xe);case N:return ae=ae.get(Re.key===null?ce:Re.key)||null,le(ee,ae,Re,Xe);case K:return Re=Oh(Re),he(ae,ee,ce,Re,Xe)}if(ve(Re)||me(Re))return ae=ae.get(ce)||null,pe(ee,ae,Re,Xe,null);if(typeof Re.then=="function")return he(ae,ee,ce,VC(Re),Xe);if(Re.$$typeof===z)return he(ae,ee,ce,LC(ee,Re),Xe);zC(ee,Re)}return null}function He(ae,ee,ce,Re){for(var Xe=null,Lt=null,ut=ee,gt=ee=0,Ir=null;ut!==null&><ce.length;gt++){ut.index>gt?(Ir=ut,ut=null):Ir=ut.sibling;var Vt=oe(ae,ut,ce[gt],Re);if(Vt===null){ut===null&&(ut=Ir);break}c&&ut&&Vt.alternate===null&&h(ae,ut),ee=x(Vt,ee,gt),Lt===null?Xe=Vt:Lt.sibling=Vt,Lt=Vt,ut=Ir}if(gt===ce.length)return p(ae,ut),Pt&&Mu(ae,gt),Xe;if(ut===null){for(;gt<ce.length;gt++)ut=Ae(ae,ce[gt],Re),ut!==null&&(ee=x(ut,ee,gt),Lt===null?Xe=ut:Lt.sibling=ut,Lt=ut);return Pt&&Mu(ae,gt),Xe}for(ut=v(ut);gt<ce.length;gt++)Ir=he(ut,ae,gt,ce[gt],Re),Ir!==null&&(c&&(Vt=Ir.alternate,Vt!==null&&ut.delete(Vt.key===null?gt:Vt.key)),ee=x(Ir,ee,gt),Lt===null?Xe=Ir:Lt.sibling=Ir,Lt=Ir);return c&&ut.forEach(function(cd){return h(ae,cd)}),Pt&&Mu(ae,gt),Xe}function Je(ae,ee,ce,Re){if(ce==null)throw Error(r(151));for(var Xe=null,Lt=null,ut=ee,gt=ee=0,Ir=null,Vt=ce.next();ut!==null&&!Vt.done;gt++,Vt=ce.next()){ut.index>gt?(Ir=ut,ut=null):Ir=ut.sibling;var cd=oe(ae,ut,Vt.value,Re);if(cd===null){ut===null&&(ut=Ir);break}c&&ut&&cd.alternate===null&&h(ae,ut),ee=x(cd,ee,gt),Lt===null?Xe=cd:Lt.sibling=cd,Lt=cd,ut=Ir}if(Vt.done)return p(ae,ut),Pt&&Mu(ae,gt),Xe;if(ut===null){for(;!Vt.done;gt++,Vt=ce.next())Vt=Ae(ae,Vt.value,Re),Vt!==null&&(ee=x(Vt,ee,gt),Lt===null?Xe=Vt:Lt.sibling=Vt,Lt=Vt);return Pt&&Mu(ae,gt),Xe}for(ut=v(ut);!Vt.done;gt++,Vt=ce.next())Vt=he(ut,ae,gt,Vt.value,Re),Vt!==null&&(c&&(Ir=Vt.alternate,Ir!==null&&ut.delete(Ir.key===null?gt:Ir.key)),ee=x(Vt,ee,gt),Lt===null?Xe=Vt:Lt.sibling=Vt,Lt=Vt);return c&&ut.forEach(function(hve){return h(ae,hve)}),Pt&&Mu(ae,gt),Xe}function xt(ae,ee,ce,Re){if(typeof ce=="object"&&ce!==null&&ce.type===M&&ce.key===null&&ce.props.ref===void 0&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case L:e:{for(var Xe=ce.key;ee!==null;){if(ee.key===Xe){if(Xe=ce.type,Xe===M){if(ee.tag===7){p(ae,ee.sibling),Re=S(ee,ce.props.children),Wc(Re,ce),Re.return=ae,ae=Re;break e}}else if(ee.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===K&&Oh(Xe)===ee.type){p(ae,ee.sibling),Re=S(ee,ce.props),Wc(Re,ce),Re.return=ae,ae=Re;break e}p(ae,ee);break}else h(ae,ee);ee=ee.sibling}ce.type===M?(Re=Sh(ce.props.children,ae.mode,Re,ce.key),Wc(Re,ce),Re.return=ae,ae=Re):(Re=DC(ce.type,ce.key,ce.props,null,ae.mode,Re),Wc(Re,ce),Re.return=ae,ae=Re)}return I(ae);case N:e:{for(Xe=ce.key;ee!==null;){if(ee.key===Xe)if(ee.tag===4&&ee.stateNode.containerInfo===ce.containerInfo&&ee.stateNode.implementation===ce.implementation){p(ae,ee.sibling),Re=S(ee,ce.children||[]),Re.return=ae,ae=Re;break e}else{p(ae,ee);break}else h(ae,ee);ee=ee.sibling}Re=aT(ce,ae.mode,Re),Re.return=ae,ae=Re}return I(ae);case K:return ce=Oh(ce),xt(ae,ee,ce,Re)}if(ve(ce))return He(ae,ee,ce,Re);if(me(ce)){if(Xe=me(ce),typeof Xe!="function")throw Error(r(150));return ce=Xe.call(ce),Je(ae,ee,ce,Re)}if(typeof ce.then=="function")return xt(ae,ee,VC(ce),Re);if(ce.$$typeof===z)return xt(ae,ee,LC(ae,ce),Re);zC(ae,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint"?(ce=""+ce,ee!==null&&ee.tag===6?(p(ae,ee.sibling),Re=S(ee,ce),Re.return=ae,ae=Re):(p(ae,ee),Re=sT(ce,ae.mode,Re),Re.return=ae,ae=Re),I(ae)):p(ae,ee)}return function(ae,ee,ce,Re){try{Pv=0;var Xe=xt(ae,ee,ce,Re);return Kg=null,Xe}catch(ut){if(ut===qg||ut===BC)throw ut;var Lt=Lo(29,ut,null,ae.mode);return Lt.lanes=Re,Lt.return=ae,Lt}}}var Mh=bV(!0),wV=bV(!1),$c=!1;function vT(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yT(c,h){c=c.updateQueue,h.updateQueue===c&&(h.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,callbacks:null})}function qc(c){return{lane:c,tag:0,payload:null,callback:null,next:null}}function Kc(c,h,p){var v=c.updateQueue;if(v===null)return null;if(v=v.shared,(Qt&2)!==0){var S=v.pending;return S===null?h.next=h:(h.next=S.next,S.next=h),v.pending=h,h=OC(c),rV(c,null,p),h}return PC(c,v,h,p),OC(c)}function Ov(c,h,p){if(h=h.updateQueue,h!==null&&(h=h.shared,(p&4194048)!==0)){var v=h.lanes;v&=c.pendingLanes,p|=v,h.lanes=p,br(c,p)}}function bT(c,h){var p=c.updateQueue,v=c.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var S=null,x=null;if(p=p.firstBaseUpdate,p!==null){do{var I={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};x===null?S=x=I:x=x.next=I,p=p.next}while(p!==null);x===null?S=x=h:x=x.next=h}else S=x=h;p={baseState:v.baseState,firstBaseUpdate:S,lastBaseUpdate:x,shared:v.shared,callbacks:v.callbacks},c.updateQueue=p;return}c=p.lastBaseUpdate,c===null?p.firstBaseUpdate=h:c.next=h,p.lastBaseUpdate=h}var wT=!1;function Dv(){if(wT){var c=$g;if(c!==null)throw c}}function Mv(c,h,p,v){wT=!1;var S=c.updateQueue;$c=!1;var x=S.firstBaseUpdate,I=S.lastBaseUpdate,V=S.shared.pending;if(V!==null){S.shared.pending=null;var Z=V,le=Z.next;Z.next=null,I===null?x=le:I.next=le,I=Z;var pe=c.alternate;pe!==null&&(pe=pe.updateQueue,V=pe.lastBaseUpdate,V!==I&&(V===null?pe.firstBaseUpdate=le:V.next=le,pe.lastBaseUpdate=Z))}if(x!==null){var Ae=S.baseState;I=0,pe=le=Z=null,V=x;do{var oe=V.lane&-536870913,he=oe!==V.lane;if(he?(kt&oe)===oe:(v&oe)===oe){oe!==0&&oe===Th&&(wT=!0),pe!==null&&(pe=pe.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});e:{var He=c,Je=V;oe=h;var xt=p;switch(Je.tag){case 1:if(He=Je.payload,typeof He=="function"){Ae=He.call(xt,Ae,oe);break e}Ae=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=Je.payload,oe=typeof He=="function"?He.call(xt,Ae,oe):He,oe==null)break e;Ae=D({},Ae,oe);break e;case 2:$c=!0}}oe=V.callback,oe!==null&&(c.flags|=64,he&&(c.flags|=8192),he=S.callbacks,he===null?S.callbacks=[oe]:he.push(oe))}else he={lane:oe,tag:V.tag,payload:V.payload,callback:V.callback,next:null},pe===null?(le=pe=he,Z=Ae):pe=pe.next=he,I|=oe;if(V=V.next,V===null){if(V=S.shared.pending,V===null)break;he=V,V=he.next,he.next=null,S.lastBaseUpdate=he,S.shared.pending=null}}while(!0);pe===null&&(Z=Ae),S.baseState=Z,S.firstBaseUpdate=le,S.lastBaseUpdate=pe,x===null&&(S.shared.lanes=0),td|=I,c.lanes=I,c.memoizedState=Ae}}function CV(c,h){if(typeof c!="function")throw Error(r(191,c));c.call(h)}function SV(c,h){var p=c.callbacks;if(p!==null)for(c.callbacks=null,c=0;c<p.length;c++)CV(p[c],h)}var Yc=dt(null),GC=dt(0);function xV(c,h){c=Bu,xe(GC,c),xe(Yc,h),Bu=c|h.baseLanes}function CT(){xe(GC,Bu),xe(Yc,Yc.current)}function ST(){Bu=GC.current,Ne(Yc),Ne(GC)}var Ti=dt(null),ji=null;function Xc(c){var h=c.alternate;xe(Pi,Pi.current&1),xe(Ti,c),ji===null&&(h===null||Yc.current!==null||h.memoizedState!==null)&&(ji=c)}function xT(c){xe(Pi,Pi.current),xe(Ti,c),ji===null&&(ji=c)}function EV(c){c.tag===22?(xe(Pi,Pi.current),xe(Ti,c),ji===null&&(ji=c)):Zc()}function Zc(){xe(Pi,Pi.current),xe(Ti,Ti.current)}function ls(c){Ne(Ti),ji===c&&(ji=null),Ne(Pi)}var Pi=dt(0);function Iv(c,h){xe(Ti,Ti.current),xe(Pi,h)}function ET(c){Ne(Pi),Ne(Ti),ji===c&&(ji=null)}function jC(c){for(var h=c;h!==null;){if(h.tag===13){var p=h.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||$P(p)||qP(p)))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!=="independent"){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}var Fu=0,St=null,bn=null,Dr=null,UC=!1,Yg=!1,Ih=!1,WC=0,_v=0,Xg=null,_pe=0;function lr(){throw Error(r(321))}function RT(c,h){if(h===null)return!1;for(var p=0;p<h.length&&p<c.length;p++)if(!as(c[p],h[p]))return!1;return!0}function AT(c,h,p,v,S,x){return Fu=x,St=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,de.H=c===null||c.memoizedState===null?az:lz,Ih=!1,x=p(v,S),Ih=!1,Yg&&(x=AV(h,p,v,S)),RV(c),x}function RV(c){de.H=QC;var h=bn!==null&&bn.next!==null;if(Fu=0,Dr=bn=St=null,UC=!1,_v=0,Xg=null,h)throw Error(r(300));c===null||Mr||(c=c.dependencies,c!==null&&kC(c)&&(Mr=!0))}function AV(c,h,p,v){St=c;var S=0;do{if(Yg&&(Xg=null),_v=0,Yg=!1,25<=S)throw Error(r(301));if(S+=1,Dr=bn=null,c.updateQueue!=null){var x=c.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}de.H=zpe,x=h(p,v)}while(Yg);return x}function Fpe(){var c=de.H,h=c.useState()[0];return h=typeof h.then=="function"?Fv(h):h,c=c.useState()[0],(bn!==null?bn.memoizedState:null)!==c&&(St.flags|=1024),h}function TT(){var c=WC!==0;return WC=0,c}function PT(c,h,p){h.updateQueue=c.updateQueue,h.flags&=-2053,c.lanes&=~p}function OT(c){if(UC){for(c=c.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}UC=!1}Fu=0,Dr=bn=St=null,Yg=!1,_v=WC=0,Xg=null}function mo(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dr===null?St.memoizedState=Dr=c:Dr=Dr.next=c,Dr}function Cr(){if(bn===null){var c=St.alternate;c=c!==null?c.memoizedState:null}else c=bn.next;var h=Dr===null?St.memoizedState:Dr.next;if(h!==null)Dr=h,bn=c;else{if(c===null)throw St.alternate===null?Error(r(467)):Error(r(310));bn=c,c={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null},Dr===null?St.memoizedState=Dr=c:Dr=Dr.next=c}return Dr}function $C(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fv(c){var h=_v;return _v+=1,Xg===null&&(Xg=[]),c=mV(Xg,c,h),h=St,(Dr===null?h.memoizedState:Dr.next)===null&&(h=h.alternate,de.H=h===null||h.memoizedState===null?az:lz),c}function qC(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return Fv(c);if(c.$$typeof===X)return;if(c.$$typeof===z)return Ai(c)}throw Error(r(438,String(c)))}function DT(c){var h=null,p=St.updateQueue;if(p!==null&&(h=p.memoCache),h==null){var v=St.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(h={data:v.data.map(function(S){return S.slice()}),index:0})))}if(h==null&&(h={data:[],index:0}),p===null&&(p=$C(),St.updateQueue=p),p.memoCache=h,p=h.data[h.index],p===void 0)for(p=h.data[h.index]=Array(c),v=0;v<c;v++)p[v]=ue;return h.index++,p}function ku(c,h){return typeof h=="function"?h(c):h}function KC(c){var h=Cr();return MT(h,bn,c)}function MT(c,h,p){var v=c.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=p;var S=c.baseQueue,x=v.pending;if(x!==null){if(S!==null){var I=S.next;S.next=x.next,x.next=I}h.baseQueue=S=x,v.pending=null}if(x=c.baseState,S===null)c.memoizedState=x;else{h=S.next;var V=I=null,Z=null,le=h,pe=!1;do{var Ae=le.lane&-536870913;if(Ae!==le.lane?(kt&Ae)===Ae:(Fu&Ae)===Ae){var oe=le.revertLane;if(oe===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),Ae===Th&&(pe=!0);else if((Fu&oe)===oe){le=le.next,oe===Th&&(pe=!0);continue}else Ae={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},Z===null?(V=Z=Ae,I=x):Z=Z.next=Ae,St.lanes|=oe,td|=oe;Ae=le.action,Ih&&p(x,Ae),x=le.hasEagerState?le.eagerState:p(x,Ae)}else oe={lane:Ae,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},Z===null?(V=Z=oe,I=x):Z=Z.next=oe,St.lanes|=Ae,td|=Ae;le=le.next}while(le!==null&&le!==h);if(Z===null?I=x:Z.next=V,!as(x,c.memoizedState)&&(Mr=!0,pe&&(p=$g,p!==null)))throw p;c.memoizedState=x,c.baseState=I,c.baseQueue=Z,v.lastRenderedState=x}return S===null&&(v.lanes=0),[c.memoizedState,v.dispatch]}function IT(c){var h=Cr(),p=h.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=c;var v=p.dispatch,S=p.pending,x=h.memoizedState;if(S!==null){p.pending=null;var I=S=S.next;do x=c(x,I.action),I=I.next;while(I!==S);as(x,h.memoizedState)||(Mr=!0),h.memoizedState=x,h.baseQueue===null&&(h.baseState=x),p.lastRenderedState=x}return[x,v]}function TV(c,h,p){var v=St,S=Cr(),x=Pt;if(x){if(p===void 0)throw Error(r(407));p=p()}else p=h();var I=!as((bn||S).memoizedState,p);if(I&&(S.memoizedState=p,Mr=!0),S=S.queue,kT(DV.bind(null,v,S,c),[c]),c=S.getSnapshot!==h||I||Dr!==null&&(Dr.memoizedState.tag&1)!==0,Zg(c?9:8,{destroy:void 0},OV.bind(null,v,S,p,h),null),c){if(v.flags|=2048,Sn===null)throw Error(r(349));x||(Fu&127)!==0||PV(v,h,p)}return p}function PV(c,h,p){c.flags|=16384,c={getSnapshot:h,value:p},h=St.updateQueue,h===null?(h=$C(),St.updateQueue=h,h.stores=[c]):(p=h.stores,p===null?h.stores=[c]:p.push(c))}function OV(c,h,p,v){h.value=p,h.getSnapshot=v,MV(h)&&IV(c)}function DV(c,h,p){return p(function(){MV(h)&&IV(c)})}function MV(c){var h=c.getSnapshot;c=c.value;try{var p=h();return!as(c,p)}catch{return!0}}function IV(c){var h=Ch(c,2);h!==null&&Vo(h,c,2)}function _T(c){var h=mo();if(typeof c=="function"){var p=c;if(c=p(),Ih){Zn(!0);try{p()}finally{Zn(!1)}}}return h.memoizedState=h.baseState=c,h.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ku,lastRenderedState:c},h}function _V(c,h,p,v){return c.baseState=p,MT(c,bn,typeof v=="function"?v:ku)}function kpe(c,h,p,v,S){if(ZC(c))throw Error(r(485));if(c=h.action,c!==null){var x={payload:S,action:c,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){x.listeners.push(I)}};de.T!==null?p(!0):x.isTransition=!1,v(x),p=h.pending,p===null?(x.next=h.pending=x,FV(h,x)):(x.next=p.next,h.pending=p.next=x)}}function FV(c,h){var p=h.action,v=h.payload,S=c.state;if(h.isTransition){var x=de.T,I={};I.types=x!==null?x.types:null,de.T=I;try{var V=p(S,v),Z=de.S;Z!==null&&Z(I,V),kV(c,h,V)}catch(le){FT(c,h,le)}finally{x!==null&&I.types!==null&&(x.types=I.types),de.T=x}}else try{x=p(S,v),kV(c,h,x)}catch(le){FT(c,h,le)}}function kV(c,h,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(v){LV(c,h,v)},function(v){return FT(c,h,v)}):LV(c,h,p)}function LV(c,h,p){h.status="fulfilled",h.value=p,NV(h),c.state=p,h=c.pending,h!==null&&(p=h.next,p===h?c.pending=null:(p=p.next,h.next=p,FV(c,p)))}function FT(c,h,p){var v=c.pending;if(c.pending=null,v!==null){v=v.next;do h.status="rejected",h.reason=p,NV(h),h=h.next;while(h!==v)}c.action=null}function NV(c){c=c.listeners;for(var h=0;h<c.length;h++)(0,c[h])()}function BV(c,h){return h}function HV(c,h){if(Pt){var p=Sn.formState;if(p!==null){e:{var v=St;if(Pt){if(An){t:{for(var S=An,x=Vs;S.nodeType!==8;){if(!x){S=null;break t}if(S=Gs(S.nextSibling),S===null){S=null;break t}}x=S.data,S=x==="F!"||x==="F"?S:null}if(S){An=Gs(S.nextSibling),v=S.data==="F!";break e}}jc(v)}v=!1}v&&(h=p[0])}}return p=mo(),p.memoizedState=p.baseState=h,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:BV,lastRenderedState:h},p.queue=v,p=iz.bind(null,St,v),v.dispatch=p,v=_T(!1),x=VT.bind(null,St,!1,v.queue),v=mo(),S={state:h,dispatch:null,action:c,pending:null},v.queue=S,p=kpe.bind(null,St,S,x,p),S.dispatch=p,v.memoizedState=c,[h,p,!1]}function VV(c){var h=Cr();return zV(h,bn,c)}function zV(c,h,p){if(h=MT(c,h,BV)[0],c=KC(ku)[0],typeof h=="object"&&h!==null&&typeof h.then=="function")try{var v=Fv(h)}catch(I){throw I===qg?BC:I}else v=h;h=Cr();var S=h.queue,x=S.dispatch;return p!==h.memoizedState&&(St.flags|=2048,Zg(9,{destroy:void 0},Lpe.bind(null,S,p),null)),[v,x,c]}function Lpe(c,h){c.action=h}function GV(c){var h=Cr(),p=bn;if(p!==null)return zV(h,p,c);Cr(),h=h.memoizedState,p=Cr();var v=p.queue.dispatch;return p.memoizedState=c,[h,v,!1]}function Zg(c,h,p,v){return c={tag:c,create:p,deps:v,inst:h,next:null},h=St.updateQueue,h===null&&(h=$C(),St.updateQueue=h),p=h.lastEffect,p===null?h.lastEffect=c.next=c:(v=p.next,p.next=c,c.next=v,h.lastEffect=c),c}function jV(){return Cr().memoizedState}function YC(c,h,p,v){var S=mo();St.flags|=c,S.memoizedState=Zg(1|h,{destroy:void 0},p,v===void 0?null:v)}function XC(c,h,p,v){var S=Cr();v=v===void 0?null:v;var x=S.memoizedState.inst;bn!==null&&v!==null&&RT(v,bn.memoizedState.deps)?S.memoizedState=Zg(h,x,p,v):(St.flags|=c,S.memoizedState=Zg(1|h,x,p,v))}function UV(c,h){YC(8390656,8,c,h)}function kT(c,h){XC(2048,8,c,h)}function Npe(c){St.flags|=4;var h=St.updateQueue;if(h===null)h=$C(),St.updateQueue=h,h.events=[c];else{var p=h.events;p===null?h.events=[c]:p.push(c)}}function WV(c){var h=Cr().memoizedState;return Npe({ref:h,nextImpl:c}),function(){if((Qt&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}function $V(c,h){return XC(4,2,c,h)}function qV(c,h){return XC(4,4,c,h)}function KV(c,h){if(typeof h=="function"){c=c();var p=h(c);return function(){typeof p=="function"?p():h(null)}}if(h!=null)return c=c(),h.current=c,function(){h.current=null}}function YV(c,h,p){p=p!=null?p.concat([c]):null,XC(4,4,KV.bind(null,h,c),p)}function LT(){}function XV(c,h){var p=Cr();h=h===void 0?null:h;var v=p.memoizedState;return h!==null&&RT(h,v[1])?v[0]:(p.memoizedState=[c,h],c)}function ZV(c,h){var p=Cr();h=h===void 0?null:h;var v=p.memoizedState;if(h!==null&&RT(h,v[1]))return v[0];if(v=c(),Ih){Zn(!0);try{c()}finally{Zn(!1)}}return p.memoizedState=[v,h],v}function NT(c,h,p){return p===void 0||(Fu&1073741824)!==0&&(kt&261930)===0?c.memoizedState=h:(c.memoizedState=p,c=a4(),St.lanes|=c,td|=c,p)}function QV(c,h,p,v){return as(p,h)?p:Yc.current!==null?(c=NT(c,p,v),as(c,h)||(Mr=!0),c):(Fu&106)===0||(Fu&1073741824)!==0&&(kt&261930)===0?(Mr=!0,c.memoizedState=p):(c=a4(),St.lanes|=c,td|=c,h)}function JV(c,h,p,v,S){var x=J.p;J.p=x!==0&&8>x?x:8;var I=de.T,V={};V.types=I!==null?I.types:null,de.T=V,VT(c,!1,h,p);try{var Z=S(),le=de.S;if(le!==null&&le(V,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var pe=Ipe(Z,v);kv(c,h,pe,hs(c))}else kv(c,h,v,hs(c))}catch(Ae){kv(c,h,{then:function(){},status:"rejected",reason:Ae},hs())}finally{J.p=x,I!==null&&V.types!==null&&(I.types=V.types),de.T=I}}function Bpe(){}function BT(c,h,p,v){if(c.tag!==5)throw Error(r(476));var S=ez(c).queue;JV(c,S,h,Fe,p===null?Bpe:function(){return tz(c),p(v)})}function ez(c){var h=c.memoizedState;if(h!==null)return h;h={memoizedState:Fe,baseState:Fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ku,lastRenderedState:Fe},next:null};var p={};return h.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ku,lastRenderedState:p},next:null},c.memoizedState=h,c=c.alternate,c!==null&&(c.memoizedState=h),h}function tz(c){var h=ez(c);h.next===null&&(h=c.alternate.memoizedState),kv(c,h.next.queue,{},hs())}function HT(){return Ai(mp)}function nz(){return Cr().memoizedState}function rz(){return Cr().memoizedState}function Hpe(c){for(var h=c.return;h!==null;){switch(h.tag){case 24:case 3:var p=hs();c=qc(p);var v=Kc(h,c,p);v!==null&&(Vo(v,h,p),Ov(v,h,p)),h={cache:fT()},c.payload=h;return}h=h.return}}function Vpe(c,h,p){var v=hs();p={lane:v,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},ZC(c)?oz(h,p):(p=iT(c,h,p,v),p!==null&&(Vo(p,c,v),sz(p,h,v)))}function iz(c,h,p){var v=hs();kv(c,h,p,v)}function kv(c,h,p,v){var S={lane:v,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(ZC(c))oz(h,S);else{var x=c.alternate;if(c.lanes===0&&(x===null||x.lanes===0)&&(x=h.lastRenderedReducer,x!==null))try{var I=h.lastRenderedState,V=x(I,p);if(S.hasEagerState=!0,S.eagerState=V,as(V,I))return PC(c,h,S,0),Sn===null&&TC(),!1}catch{}if(p=iT(c,h,S,v),p!==null)return Vo(p,c,v),sz(p,h,v),!0}return!1}function VT(c,h,p,v){if(v={lane:2,revertLane:DP(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},ZC(c)){if(h)throw Error(r(479))}else h=iT(c,p,v,2),h!==null&&Vo(h,c,2)}function ZC(c){var h=c.alternate;return c===St||h!==null&&h===St}function oz(c,h){Yg=UC=!0;var p=c.pending;p===null?h.next=h:(h.next=p.next,p.next=h),c.pending=h}function sz(c,h,p){if((p&4194048)!==0){var v=h.lanes;v&=c.pendingLanes,p|=v,h.lanes=p,br(c,p)}}var QC={readContext:Ai,use:qC,useCallback:lr,useContext:lr,useEffect:lr,useImperativeHandle:lr,useLayoutEffect:lr,useInsertionEffect:lr,useMemo:lr,useReducer:lr,useRef:lr,useState:lr,useDebugValue:lr,useDeferredValue:lr,useTransition:lr,useSyncExternalStore:lr,useId:lr,useHostTransitionStatus:lr,useFormState:lr,useActionState:lr,useOptimistic:lr,useMemoCache:lr,useCacheRefresh:lr,useEffectEvent:lr},az={readContext:Ai,use:qC,useCallback:function(c,h){return mo().memoizedState=[c,h===void 0?null:h],c},useContext:Ai,useEffect:UV,useImperativeHandle:function(c,h,p){p=p!=null?p.concat([c]):null,YC(4194308,4,KV.bind(null,h,c),p)},useLayoutEffect:function(c,h){return YC(4194308,4,c,h)},useInsertionEffect:function(c,h){YC(4,2,c,h)},useMemo:function(c,h){var p=mo();h=h===void 0?null:h;var v=c();if(Ih){Zn(!0);try{c()}finally{Zn(!1)}}return p.memoizedState=[v,h],v},useReducer:function(c,h,p){var v=mo();if(p!==void 0){var S=p(h);if(Ih){Zn(!0);try{p(h)}finally{Zn(!1)}}}else S=h;return v.memoizedState=v.baseState=S,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:S},v.queue=c,c=c.dispatch=Vpe.bind(null,St,c),[v.memoizedState,c]},useRef:function(c){var h=mo();return c={current:c},h.memoizedState=c},useState:function(c){c=_T(c);var h=c.queue,p=iz.bind(null,St,h);return h.dispatch=p,[c.memoizedState,p]},useDebugValue:LT,useDeferredValue:function(c,h){var p=mo();return NT(p,c,h)},useTransition:function(){var c=_T(!1);return c=JV.bind(null,St,c.queue,!0,!1),mo().memoizedState=c,[!1,c]},useSyncExternalStore:function(c,h,p){var v=St,S=mo();if(Pt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=h(),Sn===null)throw Error(r(349));(kt&127)!==0||PV(v,h,p)}S.memoizedState=p;var x={value:p,getSnapshot:h};return S.queue=x,UV(DV.bind(null,v,x,c),[c]),v.flags|=2048,Zg(9,{destroy:void 0},OV.bind(null,v,x,p,h),null),p},useId:function(){var c=mo(),h=Sn.identifierPrefix;if(Pt){var p=vl,v=ml;p=(v&~(1<<32-vn(v)-1)).toString(32)+p,h="_"+h+"R_"+p,p=WC++,0<p&&(h+="H"+p.toString(32)),h+="_"}else p=_pe++,h="_"+h+"r_"+p.toString(32)+"_";return c.memoizedState=h},useHostTransitionStatus:HT,useFormState:HV,useActionState:HV,useOptimistic:function(c){var h=mo();h.memoizedState=h.baseState=c;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return h.queue=p,h=VT.bind(null,St,!0,p),p.dispatch=h,[c,h]},useMemoCache:DT,useCacheRefresh:function(){return mo().memoizedState=Hpe.bind(null,St)},useEffectEvent:function(c){var h=mo(),p={impl:c};return h.memoizedState=p,function(){if((Qt&2)!==0)throw Error(r(440));return p.impl.apply(void 0,arguments)}}},lz={readContext:Ai,use:qC,useCallback:XV,useContext:Ai,useEffect:kT,useImperativeHandle:YV,useInsertionEffect:$V,useLayoutEffect:qV,useMemo:ZV,useReducer:KC,useRef:jV,useState:function(){return KC(ku)},useDebugValue:LT,useDeferredValue:function(c,h){var p=Cr();return QV(p,bn.memoizedState,c,h)},useTransition:function(){var c=KC(ku)[0],h=Cr().memoizedState;return[typeof c=="boolean"?c:Fv(c),h]},useSyncExternalStore:TV,useId:nz,useHostTransitionStatus:HT,useFormState:VV,useActionState:VV,useOptimistic:function(c,h){var p=Cr();return _V(p,bn,c,h)},useMemoCache:DT,useCacheRefresh:rz,useEffectEvent:WV},zpe={readContext:Ai,use:qC,useCallback:XV,useContext:Ai,useEffect:kT,useImperativeHandle:YV,useInsertionEffect:$V,useLayoutEffect:qV,useMemo:ZV,useReducer:IT,useRef:jV,useState:function(){return IT(ku)},useDebugValue:LT,useDeferredValue:function(c,h){var p=Cr();return bn===null?NT(p,c,h):QV(p,bn.memoizedState,c,h)},useTransition:function(){var c=IT(ku)[0],h=Cr().memoizedState;return[typeof c=="boolean"?c:Fv(c),h]},useSyncExternalStore:TV,useId:nz,useHostTransitionStatus:HT,useFormState:GV,useActionState:GV,useOptimistic:function(c,h){var p=Cr();return bn!==null?_V(p,bn,c,h):(p.baseState=c,[c,p.queue.dispatch])},useMemoCache:DT,useCacheRefresh:rz,useEffectEvent:WV};function zT(c,h,p,v){h=c.memoizedState,p=p(v,h),p=p==null?h:D({},h,p),c.memoizedState=p,c.lanes===0&&(c.updateQueue.baseState=p)}var GT={enqueueSetState:function(c,h,p){c=c._reactInternals;var v=hs(),S=qc(v);S.payload=h,p!=null&&(S.callback=p),h=Kc(c,S,v),h!==null&&(Vo(h,c,v),Ov(h,c,v))},enqueueReplaceState:function(c,h,p){c=c._reactInternals;var v=hs(),S=qc(v);S.tag=1,S.payload=h,p!=null&&(S.callback=p),h=Kc(c,S,v),h!==null&&(Vo(h,c,v),Ov(h,c,v))},enqueueForceUpdate:function(c,h){c=c._reactInternals;var p=hs(),v=qc(p);v.tag=2,h!=null&&(v.callback=h),h=Kc(c,v,p),h!==null&&(Vo(h,c,p),Ov(h,c,p))}};function uz(c,h,p,v,S,x,I){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(v,x,I):h.prototype&&h.prototype.isPureReactComponent?!Cv(p,v)||!Cv(S,x):!0}function cz(c,h,p,v){c=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(p,v),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(p,v),h.state!==c&>.enqueueReplaceState(h,h.state,null)}function _h(c,h){var p=h;if("ref"in h){p={};for(var v in h)v!=="ref"&&(p[v]=h[v])}if(c=c.defaultProps){p===h&&(p=D({},p));for(var S in c)p[S]===void 0&&(p[S]=c[S])}return p}function dz(c){AC(c)}function hz(c){console.error(c)}function fz(c){AC(c)}function JC(c,h){try{var p=c.onUncaughtError;p(h.value,{componentStack:h.stack})}catch(v){setTimeout(function(){throw v})}}function gz(c,h,p){try{var v=c.onCaughtError;v(p.value,{componentStack:p.stack,errorBoundary:h.tag===1?h.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function jT(c,h,p){return p=qc(p),p.tag=3,p.payload={element:null},p.callback=function(){JC(c,h)},p}function pz(c){return c=qc(c),c.tag=3,c}function mz(c,h,p,v){var S=p.type.getDerivedStateFromError;if(typeof S=="function"){var x=v.value;c.payload=function(){return S(x)},c.callback=function(){gz(h,p,v)}}var I=p.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(c.callback=function(){gz(h,p,v),typeof S!="function"&&(nd===null?nd=new Set([this]):nd.add(this));var V=v.stack;this.componentDidCatch(v.value,{componentStack:V!==null?V:""})})}function Gpe(c,h,p,v,S){if(p.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(h=p.alternate,h!==null&&Rh(h,p,S,!0),p=Ti.current,p!==null){switch(p.tag){case 31:case 13:case 19:return ji===null?w0():p.alternate===null&&ur===0&&(ur=3),p.flags&=-257,p.flags|=65536,p.lanes=S,v===HC?p.flags|=16384:(h=p.updateQueue,h===null?p.updateQueue=new Set([v]):h.add(v),TP(c,v,S)),!1;case 22:return p.flags|=65536,v===HC?p.flags|=16384:(h=p.updateQueue,h===null?(h={transitions:null,markerInstances:null,retryQueue:new Set([v])},p.updateQueue=h):(p=h.retryQueue,p===null?h.retryQueue=new Set([v]):p.add(v)),TP(c,v,S)),!1}throw Error(r(435,p.tag))}return TP(c,v,S),w0(),!1}if(Pt)return h=Ti.current,h!==null?((h.flags&65536)===0&&(h.flags|=256),h.flags|=65536,h.lanes=S,v!==uT&&(c=Error(r(422),{cause:v}),Ev(Ns(c,p)))):(v!==uT&&(h=Error(r(423),{cause:v}),Ev(Ns(h,p))),c=c.current.alternate,c.flags|=65536,S&=-S,c.lanes|=S,v=Ns(v,p),S=jT(c.stateNode,v,S),bT(c,S),ur!==4&&(ur=2)),!1;var x=Error(r(520),{cause:v});if(x=Ns(x,p),jv===null?jv=[x]:jv.push(x),ur!==4&&(ur=2),h===null)return!0;v=Ns(v,p),p=h;do{switch(p.tag){case 3:return p.flags|=65536,c=S&-S,p.lanes|=c,c=jT(p.stateNode,v,c),bT(p,c),!1;case 1:if(h=p.type,x=p.stateNode,(p.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(nd===null||!nd.has(x))))return p.flags|=65536,S&=-S,p.lanes|=S,S=pz(S),mz(S,c,p,v),bT(p,S),!1;break;case 22:if(p.memoizedState!==null)return p.flags|=65536,!1}p=p.return}while(p!==null);return!1}var UT=Error(r(461)),Mr=!1;function jr(c,h,p,v){h.child=c===null?wV(h,null,p,v):Mh(h,c.child,p,v)}function vz(c,h,p,v,S){p=p.render;var x=h.ref;if("ref"in v){var I={};for(var V in v)V!=="ref"&&(I[V]=v[V])}else I=v;return Ah(h),v=AT(c,h,p,I,x,S),V=TT(),c!==null&&!Mr?(PT(c,h,S),Lu(c,h,S)):(Pt&&V&&IC(h),h.flags|=1,jr(c,h,v,S),h.child)}function yz(c,h,p,v,S){if(c===null){var x=p.type;return typeof x=="function"&&!oT(x)&&x.defaultProps===void 0&&p.compare===null?(h.tag=15,h.type=x,bz(c,h,x,v,S)):(c=DC(p.type,null,v,h,h.mode,S),c.ref=h.ref,c.return=h,h.child=c)}if(x=c.child,!QT(c,S)){var I=x.memoizedProps;if(p=p.compare,p=p!==null?p:Cv,p(I,v)&&c.ref===h.ref)return Lu(c,h,S)}return h.flags|=1,c=Du(x,v),c.ref=h.ref,c.return=h,h.child=c}function bz(c,h,p,v,S){if(c!==null){var x=c.memoizedProps;if(Cv(x,v)&&c.ref===h.ref)if(Mr=!1,h.pendingProps=v=x,QT(c,S))(c.flags&131072)!==0&&(Mr=!0);else return h.lanes=c.lanes,Lu(c,h,S)}return WT(c,h,p,v,S)}function wz(c,h,p,v){var S=v.children,x=c!==null?c.memoizedState:null;if(c===null&&h.stateNode===null&&(h.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((h.flags&128)!==0){if(x=x!==null?x.baseLanes|p:p,c!==null){for(v=h.child=c.child,S=0;v!==null;)S=S|v.lanes|v.childLanes,v=v.sibling;v=S&~x}else v=0,h.child=null;return Cz(c,h,x,p,v)}if((p&536870912)!==0)h.memoizedState={baseLanes:0,cachePool:null},c!==null&&NC(h,x!==null?x.cachePool:null),x!==null?xV(h,x):CT(),EV(h);else return v=h.lanes=536870912,Cz(c,h,x!==null?x.baseLanes|p:p,p,v)}else x!==null?(NC(h,x.cachePool),xV(h,x),Zc(),h.memoizedState=null):(c!==null&&NC(h,null),CT(),Zc());return jr(c,h,S,p),h.child}function Lv(c,h){return c!==null&&c.tag===22||h.stateNode!==null||(h.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.sibling}function Cz(c,h,p,v,S){var x=pT();return x=x===null?null:{parent:Or._currentValue,pool:x},h.memoizedState={baseLanes:p,cachePool:x},c!==null&&NC(h,null),CT(),EV(h),c!==null&&Rh(c,h,v,!0),h.childLanes=S,null}function e0(c,h){return h=t0({mode:h.mode,children:h.children},c.mode),h.ref=c.ref,c.child=h,h.return=c,h}function Sz(c,h,p){return Mh(h,c.child,null,p),c=e0(h,h.pendingProps),c.flags|=2,ls(h),h.memoizedState=null,c}function jpe(c,h,p){var v=h.pendingProps,S=(h.flags&128)!==0;if(h.flags&=-129,c===null){if(Pt){if(v.mode==="hidden")return c=e0(h,v),h.lanes=536870912,c.memoizedState={baseLanes:0,cachePool:null},Lv(null,c);if(xT(h),(c=An)?(c=K4(c,Vs),c=c!==null&&c.data==="&"?c:null,c!==null&&(h.memoizedState={dehydrated:c,treeContext:zc!==null?{id:ml,overflow:vl}:null,retryLane:536870912,hydrationErrors:null},p=oV(c),p.return=h,h.child=p,ri=h,An=null)):c=null,c===null)throw jc(h);return h.lanes=536870912,null}return e0(h,v)}var x=c.memoizedState;if(x!==null){var I=x.dehydrated;if(xT(h),S)if(h.flags&256)h.flags&=-257,h=Sz(c,h,p);else if(h.memoizedState!==null)h.child=c.child,h.flags|=128,h=null;else throw Error(r(558));else if(Mr||Rh(c,h,p,!1),S=(p&c.childLanes)!==0,Mr||S){if(Yc.current===null){if(v=Sn,v!==null&&(I=Cu(v,p),I!==0&&I!==x.retryLane))throw x.retryLane=I,Ch(c,I),Vo(v,c,I),UT;w0()}h=Sz(c,h,p)}else c=x.treeContext,An=Gs(I.nextSibling),ri=h,Pt=!0,Gc=null,Vs=!1,c!==null&&lV(h,c),h=e0(h,v),h.flags|=134221824;return h}return c=Du(c.child,{mode:v.mode,children:v.children}),c.ref=h.ref,h.child=c,c.return=h,c}function Qg(c,h){var p=h.ref;if(p===null)c!==null&&c.ref!==null&&(h.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(c===null||c.ref!==p)&&(h.flags|=4194816)}}function WT(c,h,p,v,S){return Ah(h),p=AT(c,h,p,v,void 0,S),v=TT(),c!==null&&!Mr?(PT(c,h,S),Lu(c,h,S)):(Pt&&v&&IC(h),h.flags|=1,jr(c,h,p,S),h.child)}function xz(c,h,p,v,S,x){return Ah(h),h.updateQueue=null,p=AV(h,v,p,S),RV(c),v=TT(),c!==null&&!Mr?(PT(c,h,x),Lu(c,h,x)):(Pt&&v&&IC(h),h.flags|=1,jr(c,h,p,x),h.child)}function Ez(c,h,p,v,S){if(Ah(h),h.stateNode===null){var x=Gg,I=p.contextType;typeof I=="object"&&I!==null&&(x=Ai(I)),x=new p(v,x),h.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=GT,h.stateNode=x,x._reactInternals=h,x=h.stateNode,x.props=v,x.state=h.memoizedState,x.refs={},vT(h),I=p.contextType,x.context=typeof I=="object"&&I!==null?Ai(I):Gg,x.state=h.memoizedState,I=p.getDerivedStateFromProps,typeof I=="function"&&(zT(h,p,I,v),x.state=h.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(I=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),I!==x.state&>.enqueueReplaceState(x,x.state,null),Mv(h,v,x,S),Dv(),x.state=h.memoizedState),typeof x.componentDidMount=="function"&&(h.flags|=4194308),v=!0}else if(c===null){x=h.stateNode;var V=h.memoizedProps,Z=_h(p,V);x.props=Z;var le=x.context,pe=p.contextType;I=Gg,typeof pe=="object"&&pe!==null&&(I=Ai(pe));var Ae=p.getDerivedStateFromProps;pe=typeof Ae=="function"||typeof x.getSnapshotBeforeUpdate=="function",V=h.pendingProps!==V,pe||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(V||le!==I)&&cz(h,x,v,I),$c=!1;var oe=h.memoizedState;x.state=oe,Mv(h,v,x,S),Dv(),le=h.memoizedState,V||oe!==le||$c?(typeof Ae=="function"&&(zT(h,p,Ae,v),le=h.memoizedState),(Z=$c||uz(h,p,Z,v,oe,le,I))?(pe||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(h.flags|=4194308)):(typeof x.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=v,h.memoizedState=le),x.props=v,x.state=le,x.context=I,v=Z):(typeof x.componentDidMount=="function"&&(h.flags|=4194308),v=!1)}else{x=h.stateNode,yT(c,h),I=h.memoizedProps,pe=_h(p,I),x.props=pe,Ae=h.pendingProps,oe=x.context,le=p.contextType,Z=Gg,typeof le=="object"&&le!==null&&(Z=Ai(le)),V=p.getDerivedStateFromProps,(le=typeof V=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(I!==Ae||oe!==Z)&&cz(h,x,v,Z),$c=!1,oe=h.memoizedState,x.state=oe,Mv(h,v,x,S),Dv();var he=h.memoizedState;I!==Ae||oe!==he||$c||c!==null&&c.dependencies!==null&&kC(c.dependencies)?(typeof V=="function"&&(zT(h,p,V,v),he=h.memoizedState),(pe=$c||uz(h,p,pe,v,oe,he,Z)||c!==null&&c.dependencies!==null&&kC(c.dependencies))?(le||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(v,he,Z),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(v,he,Z)),typeof x.componentDidUpdate=="function"&&(h.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof x.componentDidUpdate!="function"||I===c.memoizedProps&&oe===c.memoizedState||(h.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||I===c.memoizedProps&&oe===c.memoizedState||(h.flags|=1024),h.memoizedProps=v,h.memoizedState=he),x.props=v,x.state=he,x.context=Z,v=pe):(typeof x.componentDidUpdate!="function"||I===c.memoizedProps&&oe===c.memoizedState||(h.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||I===c.memoizedProps&&oe===c.memoizedState||(h.flags|=1024),v=!1)}return x=v,Qg(c,h),v=(h.flags&128)!==0,x||v?(x=h.stateNode,p=v&&typeof p.getDerivedStateFromError!="function"?null:x.render(),h.flags|=1,c!==null&&v?(h.child=Mh(h,c.child,null,S),h.child=Mh(h,null,p,S)):jr(c,h,p,S),h.memoizedState=x.state,c=h.child):c=Lu(c,h,S),c}function Rz(c,h,p,v){return xh(),h.flags|=256,jr(c,h,p,v),h.child}var $T={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qT(c){return{baseLanes:c,cachePool:gV()}}function KT(c,h,p){return c=c!==null?c.childLanes&~p:0,h&&(c|=ds),c}function Az(c,h,p){var v=h.pendingProps,S=!1,x=(h.flags&128)!==0,I;if((I=x)||(I=c!==null&&c.memoizedState===null?!1:(Pi.current&2)!==0),I&&(S=!0,h.flags&=-129),I=(h.flags&32)!==0,h.flags&=-33,c===null){if(Pt){if(S?Xc(h):Zc(),(c=An)?(c=K4(c,Vs),c=c!==null&&c.data!=="&"?c:null,c!==null&&(h.memoizedState={dehydrated:c,treeContext:zc!==null?{id:ml,overflow:vl}:null,retryLane:536870912,hydrationErrors:null},p=oV(c),p.return=h,h.child=p,ri=h,An=null)):c=null,c===null)throw jc(h);return qP(c)?h.lanes=32:h.lanes=536870912,null}return x=v.children,v=v.fallback,S?(Zc(),S=h.mode,x=t0({mode:"hidden",children:x},S),v=Sh(v,S,p,null),x.return=h,v.return=h,x.sibling=v,h.child=x,v=h.child,v.memoizedState=qT(p),v.childLanes=KT(c,I,p),h.memoizedState=$T,Lv(null,v)):(Xc(h),YT(h,x))}var V=c.memoizedState;if(V!==null){var Z=V.dehydrated;if(Z!==null)return Upe(c,h,x,I,v,Z,V,p)}return S?(Zc(),S=v.fallback,x=h.mode,V=c.child,Z=V.sibling,v=Du(V,{mode:"hidden",children:v.children}),v.subtreeFlags=V.subtreeFlags&1206910976,Z!==null?S=Du(Z,S):(S=Sh(S,x,p,null),S.flags|=2),S.return=h,v.return=h,v.sibling=S,h.child=v,Lv(null,v),v=h.child,S=c.child.memoizedState,S===null?S=qT(p):(x=S.cachePool,x!==null?(V=Or._currentValue,x=x.parent!==V?{parent:V,pool:V}:x):x=gV(),S={baseLanes:S.baseLanes|p,cachePool:x}),v.memoizedState=S,v.childLanes=KT(c,I,p),h.memoizedState=$T,Lv(c.child,v)):(Xc(h),p=c.child,c=p.sibling,p=Du(p,{mode:"visible",children:v.children}),p.return=h,p.sibling=null,c!==null&&(I=h.deletions,I===null?(h.deletions=[c],h.flags|=16):I.push(c)),h.child=p,h.memoizedState=null,p)}function YT(c,h){return h=t0({mode:"visible",children:h},c.mode),h.return=c,c.child=h}function t0(c,h){return c=Lo(22,c,null,h),c.lanes=0,c}function n0(c,h,p){return Mh(h,c.child,null,p),c=YT(h,h.pendingProps.children),c.flags|=2,h.memoizedState=null,c}function Upe(c,h,p,v,S,x,I,V){if(p)return h.flags&256?(Xc(h),h.flags&=-257,n0(c,h,V)):h.memoizedState!==null?(Zc(),h.child=c.child,h.flags|=128,null):(Zc(),x=S.fallback,I=h.mode,S=t0({mode:"visible",children:S.children},I),x=Sh(x,I,V,null),x.flags|=2,S.return=h,x.return=h,S.sibling=x,h.child=S,Mh(h,c.child,null,V),S=h.child,S.memoizedState=qT(V),S.childLanes=KT(c,v,V),h.memoizedState=$T,Lv(null,S));if(Xc(h),qP(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var Z=v.dgst;return v=Z,v!==""&&(S=Error(r(419)),S.stack="",S.digest=v,Ev({value:S,source:null,stack:null})),n0(c,h,V)}if(Mr||Rh(c,h,V,!1),v=(V&c.childLanes)!==0,Mr||v){if(Yc.current!==null)return n0(c,h,V);if(v=Sn,v!==null&&(S=Cu(v,V),S!==0&&S!==I.retryLane))throw I.retryLane=S,Ch(c,S),Vo(v,c,S),UT;return $P(x)||w0(),n0(c,h,V)}return $P(x)?(h.flags|=192,h.child=c.child,null):(c=I.treeContext,An=Gs(x.nextSibling),ri=h,Pt=!0,Gc=null,Vs=!1,c!==null&&lV(h,c),h=YT(h,S.children),h.flags|=134221824,h)}function Tz(c,h,p){c.lanes|=h;var v=c.alternate;v!==null&&(v.lanes|=h),FC(c.return,h,p)}function Pz(c){for(var h=null;c!==null;){var p=c.alternate;p!==null&&jC(p)===null&&(h=c),c=c.sibling}return h}function r0(c,h,p,v,S,x){var I=c.memoizedState;I===null?c.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:v,tail:p,tailMode:S,treeForkCount:x}:(I.isBackwards=h,I.rendering=null,I.renderingStartTime=0,I.last=v,I.tail=p,I.tailMode=S,I.treeForkCount=x)}function XT(c){var h=c.child;for(c.child=null;h!==null;){var p=h.sibling;h.sibling=c.child,c.child=h,h=p}}function ZT(c,h,p){var v=h.pendingProps,S=v.revealOrder,x=v.tail;v=v.children;var I=Pi.current;if(h.flags&128)return Iv(h,I),null;var V=(I&2)!==0;if(V?(I=I&1|2,h.flags|=128):I&=1,Iv(h,I),S==="backwards"&&c!==null?(XT(c),jr(c,h,v,p),XT(c)):jr(c,h,v,p),v=Pt?xv:0,!V&&c!==null&&(c.flags&128)!==0)e:for(c=h.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&Tz(c,p,h);else if(c.tag===19)Tz(c,p,h);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===h)break e;for(;c.sibling===null;){if(c.return===null||c.return===h)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}switch(S){case"backwards":p=Pz(h.child),p===null?(S=h.child,h.child=null):(S=p.sibling,p.sibling=null,XT(h)),r0(h,!0,S,null,x,v);break;case"unstable_legacy-backwards":for(p=null,S=h.child,h.child=null;S!==null;){if(c=S.alternate,c!==null&&jC(c)===null){h.child=S;break}c=S.sibling,S.sibling=p,p=S,S=c}r0(h,!0,p,null,x,v);break;case"together":r0(h,!1,null,null,void 0,v);break;case"independent":h.memoizedState=null;break;default:p=Pz(h.child),p===null?(S=h.child,h.child=null):(S=p.sibling,p.sibling=null),r0(h,!1,S,p,x,v)}return h.child}function Oz(c,h,p){var v=h.pendingProps;return Uc(h,h.type,v.value),jr(c,h,v.children,p),h.child}function Lu(c,h,p){if(c!==null&&(h.dependencies=c.dependencies),td|=h.lanes,(p&h.childLanes)===0)if(c!==null){if(Rh(c,h,p,!1),(p&h.childLanes)===0)return null}else return null;if(c!==null&&h.child!==c.child)throw Error(r(153));if(h.child!==null){for(c=h.child,p=Du(c,c.pendingProps),h.child=p,p.return=h;c.sibling!==null;)c=c.sibling,p=p.sibling=Du(c,c.pendingProps),p.return=h;p.sibling=null}return h.child}function QT(c,h){return(c.lanes&h)!==0?!0:(c=c.dependencies,!!(c!==null&&kC(c)))}function Wpe(c,h,p){switch(h.tag){case 3:pt(h,h.stateNode.containerInfo),Uc(h,Or,c.memoizedState.cache),xh();break;case 27:case 5:Ze(h);break;case 4:pt(h,h.stateNode.containerInfo);break;case 10:Uc(h,h.type,h.memoizedProps.value);break;case 31:if(h.memoizedState!==null)return h.flags|=128,xT(h),null;break;case 13:var v=h.memoizedState;if(v!==null){if(v.dehydrated!==null)return Xc(h),h.flags|=128,null;v=Rh(c,h,p,!1);var S=h.child.childLanes;return v||(p&S)!==0?Az(c,h,p):(Xc(h),c=Lu(c,h,p),c!==null?c.sibling:null)}Xc(h);break;case 19:if(h.flags&128)return ZT(c,h,p);if(S=(c.flags&128)!==0,v=(p&h.childLanes)!==0,v||(Rh(c,h,p,!1),v=(p&h.childLanes)!==0),S){if(v)return ZT(c,h,p);h.flags|=128}if(S=h.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),Iv(h,Pi.current),v)break;return null;case 22:return h.lanes=0,wz(c,h,p,h.pendingProps);case 24:Uc(h,Or,c.memoizedState.cache)}return Lu(c,h,p)}function Dz(c,h,p){if(c!==null)if(c.memoizedProps!==h.pendingProps)Mr=!0;else{if(!QT(c,p)&&(h.flags&128)===0)return Mr=!1,Wpe(c,h,p);Mr=(c.flags&131072)!==0}else Mr=!1,Pt&&(h.flags&1048576)!==0&&aV(h,xv,h.index);switch(h.lanes=0,h.tag){case 16:e:{var v=h.pendingProps;if(c=Oh(h.elementType),h.type=c,typeof c=="function")oT(c)?(v=_h(c,v),h.tag=1,h=Ez(null,h,c,v,p)):(h.tag=0,h=WT(null,h,c,v,p));else{if(c!=null){var S=c.$$typeof;if(S===H){h.tag=11,h=vz(null,h,c,v,p);break e}else if(S===Y){h.tag=14,h=yz(null,h,c,v,p);break e}else if(S===z){h.tag=10,h.type=c,h=Oz(null,h,p);break e}}throw h=ge(c)||c,Error(r(306,h,""))}}return h;case 0:return WT(c,h,h.type,h.pendingProps,p);case 1:return v=h.type,S=_h(v,h.pendingProps),Ez(c,h,v,S,p);case 3:e:{if(pt(h,h.stateNode.containerInfo),c===null)throw Error(r(387));v=h.pendingProps;var x=h.memoizedState;S=x.element,yT(c,h),Mv(h,v,null,p);var I=h.memoizedState;if(v=I.cache,Uc(h,Or,v),v!==x.cache&&hT(h,[Or],p,!0),Dv(),v=I.element,x.isDehydrated)if(x={element:v,isDehydrated:!1,cache:I.cache},h.updateQueue.baseState=x,h.memoizedState=x,h.flags&256){h=Rz(c,h,v,p);break e}else if(v!==S){S=Ns(Error(r(424)),h),Ev(S),h=Rz(c,h,v,p);break e}else for(c=h.stateNode.containerInfo,c.nodeType===9?c=c.body:c=c.nodeName==="HTML"?c.ownerDocument.body:c,An=Gs(c.firstChild),ri=h,Pt=!0,Gc=null,Vs=!0,p=wV(h,null,v,p),h.child=p;p;)p.flags=p.flags&-3|134221824,p=p.sibling;else{if(xh(),v===S){h=Lu(c,h,p);break e}jr(c,h,v,p)}h=h.child}return h;case 26:return Qg(c,h),c===null?(p=tG(h.type,null,h.pendingProps,null))?h.memoizedState=p:Pt||(h.stateNode=F4(h.type,h.pendingProps,Ke.current,h)):h.memoizedState=tG(h.type,c.memoizedProps,h.pendingProps,c.memoizedState),null;case 27:return Ze(h),c===null&&Pt&&(v=h.stateNode=Z4(h.type,h.pendingProps,Ke.current),ri=h,Vs=!0,S=An,od(h.type)?(KP=S,An=Gs(v.firstChild)):An=S),jr(c,h,h.pendingProps.children,p),Qg(c,h),c===null&&(h.flags|=4194304),h.child;case 5:return c===null&&Pt&&((S=v=An)&&(v=Hme(v,h.type,h.pendingProps,Vs),v!==null?(h.stateNode=v,ri=h,An=Gs(v.firstChild),Vs=!1,S=!0):S=!1),S||jc(h)),Ze(h),S=h.type,x=h.pendingProps,I=c!==null?c.memoizedProps:null,v=x.children,HP(S,x)?v=null:I!==null&&HP(S,I)&&(h.flags|=32),h.memoizedState!==null&&(S=AT(c,h,Fpe,null,null,p),mp._currentValue=S),Qg(c,h),jr(c,h,v,p),h.child;case 6:return c===null&&Pt&&((c=p=An)&&(p=Vme(p,h.pendingProps,Vs),p!==null?(h.stateNode=p,ri=h,An=null,c=!0):c=!1),c||jc(h)),null;case 13:return Az(c,h,p);case 4:return pt(h,h.stateNode.containerInfo),v=h.pendingProps,c===null?h.child=Mh(h,null,v,p):jr(c,h,v,p),h.child;case 11:return vz(c,h,h.type,h.pendingProps,p);case 7:return v=h.pendingProps,Qg(c,h),jr(c,h,v,p),h.child;case 8:return jr(c,h,h.pendingProps.children,p),h.child;case 12:return jr(c,h,h.pendingProps.children,p),h.child;case 10:return Oz(c,h,p);case 9:return S=h.type._context,v=h.pendingProps.children,Ah(h),S=Ai(S),v=v(S),h.flags|=1,jr(c,h,v,p),h.child;case 14:return yz(c,h,h.type,h.pendingProps,p);case 15:return bz(c,h,h.type,h.pendingProps,p);case 19:return ZT(c,h,p);case 31:return jpe(c,h,p);case 22:return wz(c,h,p,h.pendingProps);case 24:return Ah(h),v=Ai(Or),c===null?(S=pT(),S===null&&(S=Sn,x=fT(),S.pooledCache=x,x.refCount++,x!==null&&(S.pooledCacheLanes|=p),S=x),h.memoizedState={parent:v,cache:S},vT(h),Uc(h,Or,S)):((c.lanes&p)!==0&&(yT(c,h),Mv(h,null,null,p),Dv()),S=c.memoizedState,x=h.memoizedState,S.parent!==v?(S={parent:v,cache:v},h.memoizedState=S,h.lanes===0&&(h.memoizedState=h.updateQueue.baseState=S),Uc(h,Or,v)):(v=x.cache,Uc(h,Or,v),v!==S.cache&&hT(h,[Or],p,!0))),jr(c,h,h.pendingProps.children,p),h.child;case 30:return h.stateNode===null&&(h.stateNode={autoName:null,paired:null,clones:null,ref:null}),v=h.pendingProps,v.name!=null&&v.name!=="auto"?h.flags|=c===null?18882560:18874368:Pt&&IC(h),c!==null&&c.memoizedProps.name!==v.name?h.flags|=4194816:Qg(c,h),jr(c,h,v.children,p),h.child;case 29:throw h.pendingProps}throw Error(r(156,h.tag))}function Nu(c){c.flags|=4}function JT(c,h,p,v,S){var x;if((x=(c.mode&32)!==0)&&(x=p===null?oG(h,v):oG(h,v)&&(v.src!==p.src||v.srcSet!==p.srcSet)),x){if(c.flags|=16777216,(S&335544128)===S)if(c.stateNode.complete)c.flags|=8192;else if(d4())c.flags|=8192;else throw Dh=HC,mT}else c.flags&=-16777217}function Mz(c,h){if(h.type!=="stylesheet"||(h.state.loading&4)!==0)c.flags&=-16777217;else if(c.flags|=16777216,!sG(h))if(d4())c.flags|=8192;else throw Dh=HC,mT}function i0(c,h){h!==null&&(c.flags|=4),c.flags&16384&&(h=c.tag!==22?Fc():536870912,c.lanes|=h,rp|=h)}function Nv(c,h){if(!Pt)switch(c.tailMode){case"visible":break;case"collapsed":for(var p=c.tail,v=null;p!==null;)p.alternate!==null&&(v=p),p=p.sibling;v===null?h||c.tail===null?c.tail=null:c.tail.sibling=null:v.sibling=null;break;default:for(h=c.tail,p=null;h!==null;)h.alternate!==null&&(p=h),h=h.sibling;p===null?c.tail=null:p.sibling=null}}function Tn(c){var h=c.alternate!==null&&c.alternate.child===c.child,p=0,v=0;if(h)for(var S=c.child;S!==null;)p|=S.lanes|S.childLanes,v|=S.subtreeFlags&1206910976,v|=S.flags&1206910976,S.return=c,S=S.sibling;else for(S=c.child;S!==null;)p|=S.lanes|S.childLanes,v|=S.subtreeFlags,v|=S.flags,S.return=c,S=S.sibling;return c.subtreeFlags|=v,c.childLanes=p,h}function $pe(c,h,p){var v=h.pendingProps;switch(lT(h),h.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tn(h),null;case 1:return Tn(h),null;case 3:return p=h.stateNode,v=null,c!==null&&(v=c.memoizedState.cache),h.memoizedState.cache!==v&&(h.flags|=2048),_u(Or),Ee(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(c===null||c.child===null)&&(Wg(h)?Nu(h):c===null||c.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,cT())),Tn(h),null;case 26:var S=h.type,x=h.memoizedState;return c===null?(Nu(h),x!==null?(Tn(h),Mz(h,x)):(Tn(h),JT(h,S,null,v,p))):x?x!==c.memoizedState?(Nu(h),Tn(h),Mz(h,x)):(Tn(h),h.flags&=-16777217):(c=c.memoizedProps,c!==v&&Nu(h),Tn(h),JT(h,S,c,v,p)),null;case 27:if(st(h),p=Ke.current,S=h.type,c!==null&&h.stateNode!=null)c.memoizedProps!==v&&Nu(h);else{if(!v){if(h.stateNode===null)throw Error(r(166));return Tn(h),h.subtreeFlags&=-33554433,null}c=We.current,Wg(h)?uV(h):(c=Z4(S,v,p),h.stateNode=c,Nu(h))}return Tn(h),h.subtreeFlags&=-33554433,null;case 5:if(st(h),S=h.type,c!==null&&h.stateNode!=null)c.memoizedProps!==v&&Nu(h);else{if(!v){if(h.stateNode===null)throw Error(r(166));return Tn(h),h.subtreeFlags&=-33554433,null}if(x=We.current,Wg(h))uV(h);else{var I=Kv(Ke.current);switch(x){case 1:x=I.createElementNS("http://www.w3.org/2000/svg",S);break;case 2:x=I.createElementNS("http://www.w3.org/1998/Math/MathML",S);break;default:switch(S){case"svg":x=I.createElementNS("http://www.w3.org/2000/svg",S);break;case"math":x=I.createElementNS("http://www.w3.org/1998/Math/MathML",S);break;case"script":x=I.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof v.is=="string"?I.createElement("select",{is:v.is}):I.createElement("select"),v.multiple?x.multiple=!0:v.size&&(x.size=v.size);break;default:x=typeof v.is=="string"?I.createElement(S,{is:v.is}):I.createElement(S)}}x[Xt]=h,x[Vn]=v;e:for(I=h.child;I!==null;){if(I.tag===5||I.tag===6)x.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===h)break e;for(;I.sibling===null;){if(I.return===null||I.return===h)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}h.stateNode=x;e:switch(Di(x,S,v),S){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&Nu(h)}}return Tn(h),h.subtreeFlags&=-33554433,JT(h,h.type,c===null?null:c.memoizedProps,h.pendingProps,p),null;case 6:if(c&&h.stateNode!=null)c.memoizedProps!==v&&Nu(h);else{if(typeof v!="string"&&h.stateNode===null)throw Error(r(166));if(c=Ke.current,Wg(h)){if(c=h.stateNode,p=h.memoizedProps,v=null,S=ri,S!==null)switch(S.tag){case 27:case 5:v=S.memoizedProps}c[Xt]=h,c=!!(c.nodeValue===p||v!==null&&v.suppressHydrationWarning===!0||D4(c.nodeValue,p)),c||jc(h,!0)}else c=Kv(c).createTextNode(v),c[Xt]=h,h.stateNode=c}return Tn(h),null;case 31:if(p=h.memoizedState,c===null||c.memoizedState!==null){if(v=Wg(h),p!==null){if(c===null){if(!v)throw Error(r(318));if(c=h.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(557));c[Xt]=h}else xh(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Tn(h),c=!1}else p=cT(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=p),c=!0;if(!c)return h.flags&256?(ls(h),h):(ls(h),null);if((h.flags&128)!==0)throw Error(r(558))}return Tn(h),null;case 13:if(v=h.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(S=Wg(h),v!==null&&v.dehydrated!==null){if(c===null){if(!S)throw Error(r(318));if(S=h.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(r(317));S[Xt]=h}else xh(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Tn(h),S=!1}else S=cT(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=S),S=!0;if(!S)return h.flags&256?(ls(h),h):(ls(h),null)}return ls(h),(h.flags&128)!==0?(h.lanes=p,h):(p=v!==null,c=c!==null&&c.memoizedState!==null,p&&(v=h.child,S=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(S=v.alternate.memoizedState.cachePool.pool),x=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(x=v.memoizedState.cachePool.pool),x!==S&&(v.flags|=2048)),p!==c&&p&&(h.child.flags|=8192),i0(h,h.updateQueue),Tn(h),null);case 4:return Ee(),c===null&&FP(h.stateNode.containerInfo),h.flags|=67108864,Tn(h),null;case 10:return _u(h.type),Tn(h),null;case 19:if(ET(h),v=h.memoizedState,v===null)return Tn(h),null;if(S=(h.flags&128)!==0,x=v.rendering,x===null)if(S)Nv(v,!1);else{if(ur!==0||c!==null&&(c.flags&128)!==0)for(c=h.child;c!==null;){if(x=jC(c),x!==null){for(h.flags|=128,Nv(v,!1),c=x.updateQueue,h.updateQueue=c,i0(h,c),h.subtreeFlags=0,c=p,p=h.child;p!==null;)iV(p,c),p=p.sibling;return Iv(h,Pi.current&1|2),Pt&&Mu(h,v.treeForkCount),h.child}c=c.sibling}v.tail!==null&&jt()>m0&&(h.flags|=128,S=!0,Nv(v,!1),h.lanes=4194304)}else{if(!S)if(c=jC(x),c!==null){if(h.flags|=128,S=!0,c=c.updateQueue,h.updateQueue=c,i0(h,c),Nv(v,!0),v.tail===null&&v.tailMode!=="collapsed"&&v.tailMode!=="visible"&&!x.alternate&&!Pt)return Tn(h),null}else 2*jt()-v.renderingStartTime>m0&&p!==536870912&&(h.flags|=128,S=!0,Nv(v,!1),h.lanes=4194304);v.isBackwards?(x.sibling=h.child,h.child=x):(c=v.last,c!==null?c.sibling=x:h.child=x,v.last=x)}if(v.tail!==null){c=v.tail;e:{for(p=c;p!==null;){if(p.alternate!==null){p=!1;break e}p=p.sibling}p=!0}return v.rendering=c,v.tail=c.sibling,v.renderingStartTime=jt(),c.sibling=null,x=Pi.current,x=S?x&1|2:x&1,v.tailMode==="visible"||v.tailMode==="collapsed"||!p||Pt?Iv(h,x):(p=x,xe(Ti,h),xe(Pi,p),ji===null&&(ji=h)),Pt&&Mu(h,v.treeForkCount),c}return Tn(h),null;case 22:case 23:return ls(h),ST(),v=h.memoizedState!==null,c!==null?c.memoizedState!==null!==v&&(h.flags|=8192):v&&(h.flags|=8192),v?(p&536870912)!==0&&(h.flags&128)===0&&(Tn(h),h.subtreeFlags&6&&(h.flags|=8192)):Tn(h),p=h.updateQueue,p!==null&&i0(h,p.retryQueue),p=null,c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),v=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==p&&(h.flags|=2048),c!==null&&Ne(Ph),null;case 24:return p=null,c!==null&&(p=c.memoizedState.cache),h.memoizedState.cache!==p&&(h.flags|=2048),_u(Or),Tn(h),null;case 25:return null;case 30:return h.flags|=33554432,Tn(h),null}throw Error(r(156,h.tag))}function qpe(c,h){switch(lT(h),h.tag){case 1:return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 3:return _u(Or),Ee(),c=h.flags,(c&65536)!==0&&(c&128)===0?(h.flags=c&-65537|128,h):null;case 26:case 27:case 5:return st(h),null;case 31:if(h.memoizedState!==null){if(ls(h),h.alternate===null)throw Error(r(340));xh()}return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 13:if(ls(h),c=h.memoizedState,c!==null&&c.dehydrated!==null){if(h.alternate===null)throw Error(r(340));xh()}return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 19:return ET(h),c=h.flags,c&65536?(h.flags=c&-65537|128,c=h.memoizedState,c!==null&&(c.rendering=null,c.tail=null),h.flags|=4,h):null;case 4:return Ee(),null;case 10:return _u(h.type),null;case 22:case 23:return ls(h),ST(),c!==null&&Ne(Ph),c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 24:return _u(Or),null;case 25:return null;default:return null}}function Iz(c,h){switch(lT(h),h.tag){case 3:_u(Or),Ee();break;case 26:case 27:case 5:st(h);break;case 4:Ee();break;case 31:h.memoizedState!==null&&ls(h);break;case 13:ls(h);break;case 19:ET(h);break;case 10:_u(h.type);break;case 22:case 23:ls(h),ST(),c!==null&&Ne(Ph);break;case 24:_u(Or)}}function Bv(c,h){try{var p=h.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var S=v.next;p=S;do{if((p.tag&c)===c){v=void 0;var x=p.create,I=p.inst;v=x(),I.destroy=v}p=p.next}while(p!==S)}}catch(V){un(h,h.return,V)}}function Qc(c,h,p){try{var v=h.updateQueue,S=v!==null?v.lastEffect:null;if(S!==null){var x=S.next;v=x;do{if((v.tag&c)===c){var I=v.inst,V=I.destroy;if(V!==void 0){I.destroy=void 0,S=h;var Z=p,le=V;try{le()}catch(pe){un(S,Z,pe)}}}v=v.next}while(v!==x)}}catch(pe){un(h,h.return,pe)}}function _z(c){var h=c.updateQueue;if(h!==null){var p=c.stateNode;try{SV(h,p)}catch(v){un(c,c.return,v)}}}function Fz(c,h,p){p.props=_h(c.type,c.memoizedProps),p.state=c.memoizedState;try{p.componentWillUnmount()}catch(v){un(c,h,v)}}function yl(c,h){try{var p=c.ref;if(p!==null){switch(c.tag){case 26:case 27:case 5:var v=c.stateNode;break;case 30:var S=c.stateNode,x=Pu(c.memoizedProps,S);(S.ref===null||S.ref.name!==x)&&(S.ref=z4(x)),v=S.ref;break;case 7:if(c.stateNode===null){var I=new fs(c);f(c.child,!1,Nme,I,void 0,void 0),c.stateNode=I}v=c.stateNode;break;default:v=c.stateNode}typeof p=="function"?c.refCleanup=p(v):p.current=v}}catch(V){un(c,h,V)}}function Oi(c,h){var p=c.ref,v=c.refCleanup;if(p!==null)if(typeof v=="function")try{v()}catch(S){un(c,h,S)}finally{c.refCleanup=null,c=c.alternate,c!=null&&(c.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(S){un(c,h,S)}else p.current=null}function o0(c,h){if((c.tag===5||c.tag===27||c.tag===6)&&c.alternate===null&&h!==null)for(var p=0;p<h.length;p++)q4(c.stateNode,h[p])}function kz(c){for(var h=c.return;h!==null&&(tP(h)&&q4(c.stateNode,h.stateNode),!eP(h));)h=h.return}function Hv(c){for(var h=c.return;h!==null&&(tP(h)&&Bme(c.stateNode,h.stateNode),!eP(h));)h=h.return}function eP(c){return c.tag===5||c.tag===3||c.tag===27}function tP(c){return c&&c.tag===7&&c.stateNode!==null}function nP(c){var h=c.type,p=c.memoizedProps,v=c.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":p.autoFocus&&v.focus();break e;case"img":p.src?v.src=p.src:p.srcSet&&(v.srcset=p.srcSet)}}catch(S){un(c,c.return,S)}}function rP(c,h,p){try{var v=c.stateNode;bme(v,c.type,p,h),v[Vn]=h}catch(S){un(c,c.return,S)}}function Lz(c){return c.tag===5||c.tag===3||c.tag===26||c.tag===27&&od(c.type)||c.tag===4}function iP(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||Lz(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.tag===27&&od(c.type)||c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function oP(c,h,p,v){var S=c.tag;if(S===5||S===6)S=c.stateNode,h?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(S,h):(h=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,h.appendChild(S),p=p._reactRootContainer,p!=null||h.onclick!==null||(h.onclick=we)),o0(c,v),bt=!0;else if(S!==4&&(S===27&&(o0(c,v),v=null,od(c.type)&&(p=c.stateNode,h=null)),c=c.child,c!==null))for(oP(c,h,p,v),c=c.sibling;c!==null;)oP(c,h,p,v),c=c.sibling}function s0(c,h,p,v){var S=c.tag;if(S===5||S===6)S=c.stateNode,h?p.insertBefore(S,h):p.appendChild(S),o0(c,v),bt=!0;else if(S!==4&&(S===27&&(o0(c,v),v=null,od(c.type)&&(p=c.stateNode)),c=c.child,c!==null))for(s0(c,h,p,v),c=c.sibling;c!==null;)s0(c,h,p,v),c=c.sibling}function Nz(c){var h=c.stateNode,p=c.memoizedProps;try{for(var v=c.type,S=h.attributes;S.length;)h.removeAttributeNode(S[0]);Di(h,v,p),h[Xt]=c,h[Vn]=p}catch(x){un(c,c.return,x)}}var a0=!1,us=null;function Bz(c){(c.tag===30||(c.subtreeFlags&33554432)!==0)&&(a0=!0)}var bl=null;function Hz(){var c=bl;return bl=null,c}var No=0;function Jg(c,h,p,v,S){return No=0,Vz(c.child,h,p,v,S)}function Vz(c,h,p,v,S){for(var x=!1;c!==null;){if(c.tag===5){var I=c.stateNode;if(v!==null){var V=GP(I);v.push(V),V.view&&(x=!0)}else x||GP(I).view&&(x=!0);a0=!0,H4(I,No===0?h:h+"_"+No,p),No++}else(c.tag!==22||c.memoizedState===null)&&(c.tag===30&&S||Vz(c.child,h,p,v,S)&&(x=!0));c=c.sibling}return x}function wl(c,h){for(;c!==null;)c.tag===5?V4(c.stateNode,c.memoizedProps):(c.tag!==22||c.memoizedState===null)&&(c.tag===30&&h||wl(c.child,h)),c=c.sibling}function l0(c){if((c.subtreeFlags&18874368)!==0)for(c=c.child;c!==null;){if((c.tag!==22||c.memoizedState===null)&&(l0(c),c.tag===30&&(c.flags&18874368)!==0&&c.stateNode.paired)){var h=c.memoizedProps;if(h.name==null||h.name==="auto")throw Error(r(544));var p=h.name;h=Ou(h.default,h.share),h!=="none"&&(Jg(c,p,h,null,!1)||wl(c.child,!1))}c=c.sibling}}function sP(c,h){if(c.tag===30){var p=c.stateNode,v=c.memoizedProps,S=Pu(v,p),x=Ou(v.default,p.paired?v.share:v.enter);x!=="none"?Jg(c,S,x,null,!1)?(l0(c),p.paired||h||ap(c,v.onEnter)):wl(c.child,!1):l0(c)}else if((c.subtreeFlags&33554432)!==0)for(c=c.child;c!==null;)sP(c,h),c=c.sibling;else l0(c)}function aP(c){if(us!==null&&us.size!==0){var h=us;if((c.subtreeFlags&18874368)!==0)for(c=c.child;c!==null;){if(c.tag!==22||c.memoizedState===null){if(c.tag===30&&(c.flags&18874368)!==0){var p=c.memoizedProps,v=p.name;if(v!=null&&v!=="auto"){var S=h.get(v);if(S!==void 0){var x=Ou(p.default,p.share);if(x!=="none"&&(Jg(c,v,x,null,!1)?(x=c.stateNode,S.paired=x,x.paired=S,ap(c,p.onShare)):wl(c.child,!1)),h.delete(v),h.size===0)break}}}aP(c)}c=c.sibling}}}function lP(c){if(c.tag===30){var h=c.memoizedProps,p=Pu(h,c.stateNode),v=us!==null?us.get(p):void 0,S=Ou(h.default,v!==void 0?h.share:h.exit);S!=="none"&&(Jg(c,p,S,null,!1)?v!==void 0?(S=c.stateNode,v.paired=S,S.paired=v,us.delete(p),ap(c,h.onShare)):ap(c,h.onExit):wl(c.child,!1)),us!==null&&aP(c)}else if((c.subtreeFlags&33554432)!==0)for(c=c.child;c!==null;)lP(c),c=c.sibling;else us!==null&&aP(c)}function zz(c){for(c=c.child;c!==null;){if(c.tag===30){var h=c.memoizedProps,p=Pu(h,c.stateNode);h=Ou(h.default,h.update),c.flags&=-5,h!=="none"&&Jg(c,p,h,c.memoizedState=[],!1)}else(c.subtreeFlags&33554432)!==0&&zz(c);c=c.sibling}}function uP(c){if((c.subtreeFlags&18874368)!==0)for(c=c.child;c!==null;){if(c.tag!==22||c.memoizedState===null){if(c.tag===30&&(c.flags&18874368)!==0){var h=c.stateNode;h.paired!==null&&(h.paired=null,wl(c.child,!1))}uP(c)}c=c.sibling}}function u0(c){if(c.tag===30)c.stateNode.paired=null,wl(c.child,!1),uP(c);else if((c.subtreeFlags&33554432)!==0)for(c=c.child;c!==null;)u0(c),c=c.sibling;else uP(c)}function Gz(c){for(c=c.child;c!==null;)c.tag===30?wl(c.child,!1):(c.subtreeFlags&33554432)!==0&&Gz(c),c=c.sibling}function cP(c,h,p,v,S,x,I){for(var V=!1;h!==null;){if(h.tag===5){var Z=h.stateNode;if(x!==null&&No<x.length){var le=x[No],pe=GP(Z);(le.view||pe.view)&&(V=!0);var Ae;if(Ae=(c.flags&4)===0)if(pe.clip)Ae=!0;else{Ae=le.rect;var oe=pe.rect;Ae=Ae.y!==oe.y||Ae.x!==oe.x||Ae.height!==oe.height||Ae.width!==oe.width}Ae&&(c.flags|=4),pe.abs?pe=!le.abs:(le=le.rect,pe=pe.rect,pe=le.height!==pe.height||le.width!==pe.width),pe&&(c.flags|=32)}else c.flags|=32;(c.flags&4)!==0&&H4(Z,No===0?p:p+"_"+No,S),V&&(c.flags&4)!==0||(bl===null&&(bl=[]),bl.push(Z,No===0?v:v+"_"+No,h.memoizedProps)),No++}else(h.tag!==22||h.memoizedState===null)&&(h.tag===30&&I?c.flags|=h.flags&32:cP(c,h.child,p,v,S,x,I)&&(V=!0));h=h.sibling}return V}function jz(c,h){for(c=c.child;c!==null;){if(c.tag===30){var p=c.memoizedProps,v=c.stateNode,S=Pu(p,v),x=Ou(p.default,p.update),I;I=c.memoizedState,c.memoizedState=null,v=c;var V=c.child;No=0,S=cP(v,V,S,S,x,I,!1),(c.flags&4)!==0&&S&&ap(c,p.onUpdate)}else(c.subtreeFlags&33554432)!==0&&jz(c);c=c.sibling}}var ii=!1,tn=!1,Cl=!1,dP=!1,Uz=typeof WeakSet=="function"?WeakSet:Set,oi=null,Sl=!1,Vv=!1,c0=!1,hP=!1;function Kpe(c,h,p){if(c=c.containerInfo,NP=vp,c=K5(c),QA(c)){if("selectionStart"in c)var v={start:c.selectionStart,end:c.selectionEnd};else e:{v=(v=c.ownerDocument)&&v.defaultView||window;var S=v.getSelection&&v.getSelection();if(S&&S.rangeCount!==0){v=S.anchorNode;var x=S.anchorOffset,I=S.focusNode;S=S.focusOffset;try{v.nodeType,I.nodeType}catch{v=null;break e}var V=0,Z=-1,le=-1,pe=0,Ae=0,oe=c,he=null;t:for(;;){for(var He;oe!==v||x!==0&&oe.nodeType!==3||(Z=V+x),oe!==I||S!==0&&oe.nodeType!==3||(le=V+S),oe.nodeType===3&&(V+=oe.nodeValue.length),(He=oe.firstChild)!==null;)he=oe,oe=He;for(;;){if(oe===c)break t;if(he===v&&++pe===x&&(Z=V),he===I&&++Ae===S&&(le=V),(He=oe.nextSibling)!==null)break;oe=he,he=oe.parentNode}oe=He}v=Z===-1||le===-1?null:{start:Z,end:le}}else v=null}v=v||{start:0,end:0}}else v=null;for(BP={focusedElem:c,selectionRange:v},vp=!1,p=(p&335544064)===p,oi=h,h=p?9270:1024;oi!==null;){if(c=oi,p&&(v=c.deletions,v!==null))for(x=0;x<v.length;x++)p&&lP(v[x]);if(c.alternate===null&&(c.flags&2)!==0)p&&Bz(c),d0(p);else{if(c.tag===22){if(v=c.alternate,c.memoizedState!==null){v!==null&&v.memoizedState===null&&p&&lP(v),d0(p);continue}else if(v!==null&&v.memoizedState!==null){p&&Bz(c),d0(p);continue}}v=c.child,(c.subtreeFlags&h)!==0&&v!==null?(v.return=c,oi=v):(p&&zz(c),d0(p))}}us=null}function d0(c){for(;oi!==null;){var h=oi,p=c,v=h.alternate,S=h.flags;switch(h.tag){case 0:case 11:case 15:break;case 1:if((S&1024)!==0&&v!==null){p=void 0,S=v.memoizedProps,v=v.memoizedState;var x=h.stateNode;try{var I=_h(h.type,S);p=x.getSnapshotBeforeUpdate(I,v),x.__reactInternalSnapshotBeforeUpdate=p}catch(V){un(h,h.return,V)}}break;case 3:if((S&1024)!==0){if(v=h.stateNode.containerInfo,p=v.nodeType,p===9)WP(v);else if(p===1)switch(v.nodeName){case"HEAD":case"HTML":case"BODY":WP(v);break;default:v.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:p&&v!==null&&(p=Pu(v.memoizedProps,v.stateNode),S=h.memoizedProps,S=Ou(S.default,S.update),S!=="none"&&Jg(v,p,S,v.memoizedState=[],!0));break;default:if((S&1024)!==0)throw Error(r(163))}if(v=h.sibling,v!==null){v.return=h.return,oi=v;break}oi=h.return}}function Wz(c,h,p){var v=p.flags;switch(p.tag){case 0:case 11:case 15:xl(c,p),v&4&&Bv(5,p);break;case 1:if(xl(c,p),v&4)if(c=p.stateNode,h===null)try{c.componentDidMount()}catch(I){un(p,p.return,I)}else{var S=_h(p.type,h.memoizedProps);h=h.memoizedState;try{c.componentDidUpdate(S,h,c.__reactInternalSnapshotBeforeUpdate)}catch(I){un(p,p.return,I)}}v&64&&_z(p),v&512&&yl(p,p.return);break;case 3:if(xl(c,p),v&64&&(c=p.updateQueue,c!==null)){if(h=null,p.child!==null)switch(p.child.tag){case 27:case 5:h=p.child.stateNode;break;case 1:h=p.child.stateNode}try{SV(c,h)}catch(I){un(p,p.return,I)}}break;case 27:h===null&&v&4&&Nz(p);case 26:case 5:xl(c,p),h===null&&v&4&&nP(p),v&512&&yl(p,p.return);break;case 12:xl(c,p);break;case 31:xl(c,p),v&4&&Yz(c,p);break;case 13:xl(c,p),v&4&&Xz(c,p),v&64&&(c=p.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(p=sme.bind(null,p),zme(c,p))));break;case 22:if(v=p.memoizedState!==null||ii,!v){var x=h!==null&&h.memoizedState!==null||tn;h=ii,S=tn,ii=v,(tn=x)&&!S?(v=2,(p.subtreeFlags&8772)!==0&&(v|=1),ka(c,p,v)):xl(c,p),ii=h,tn=S}break;case 30:xl(c,p),v&512&&yl(p,p.return);break;case 7:v&512&&yl(p,p.return);default:xl(c,p)}}function fP(c,h){for(c=c.child;c!==null;)$z(c,h),c=c.sibling}function $z(c,h){switch(c.tag){case 5:case 26:try{var p=c.stateNode;if(h){var v=p.style;typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"}else{var S=c.stateNode,x=c.memoizedProps.style,I=x!=null&&x.hasOwnProperty("display")?x.display:null;S.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(Z){un(c,c.return,Z)}gP(c,h);break;case 6:try{c.stateNode.nodeValue=h?"":c.memoizedProps,bt=!0}catch(Z){un(c,c.return,Z)}break;case 18:try{var V=c.stateNode;h?B4(V,!0):B4(c.stateNode,!1)}catch(Z){un(c,c.return,Z)}break;case 22:case 23:c.memoizedState===null&&fP(c,h);break;default:fP(c,h)}}function gP(c,h){if(c.subtreeFlags&67108864)for(c=c.child;c!==null;){e:{var p=c,v=h;switch(p.tag){case 4:$z(p,v);break e;case 22:p.memoizedState===null&&gP(p,v);break e;default:gP(p,v)}}c=c.sibling}}function qz(c){var h=c.alternate;h!==null&&(c.alternate=null,qz(h)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(h=c.stateNode,h!==null&&ko(h)),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}var zn=null,Bo=!1;function _a(c,h,p){for(p=p.child;p!==null;)Kz(c,h,p),p=p.sibling}function Kz(c,h,p){if(Xn&&typeof Xn.onCommitFiberUnmount=="function")try{Xn.onCommitFiberUnmount(Ci,p)}catch{}switch(p.tag){case 26:tn||Oi(p,h),_a(c,h,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&!tn&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:tn||Oi(p,h),Hv(p);var v=zn,S=Bo;od(p.type)&&(zn=p.stateNode,Bo=!1),_a(c,h,p),Q4(p.stateNode,p.type,p.memoizedProps),zn=v,Bo=S;break;case 5:tn||Oi(p,h),Hv(p);case 6:if(p.tag===6&&Hv(p),v=zn,S=Bo,zn=null,_a(c,h,p),zn=v,Bo=S,zn!==null)if(Bo)try{(zn.nodeType===9?zn.body:zn.nodeName==="HTML"?zn.ownerDocument.body:zn).removeChild(p.stateNode),bt=!0}catch(x){un(p,h,x)}else try{zn.removeChild(p.stateNode),bt=!0}catch(x){un(p,h,x)}break;case 18:zn!==null&&(Bo?(c=zn,N4(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,p.stateNode),yp(c)):N4(zn,p.stateNode));break;case 4:v=zn,S=Bo,zn=p.stateNode.containerInfo,Bo=!0,_a(c,h,p),zn=v,Bo=S;break;case 0:case 11:case 14:case 15:Qc(2,p,h),tn||Qc(4,p,h),_a(c,h,p);break;case 1:tn||(Oi(p,h),v=p.stateNode,typeof v.componentWillUnmount=="function"&&Fz(p,h,v)),_a(c,h,p);break;case 21:_a(c,h,p);break;case 22:tn=(v=tn)||p.memoizedState!==null,_a(c,h,p),tn=v;break;case 30:Oi(p,h),_a(c,h,p);break;case 7:tn||Oi(p,h),_a(c,h,p);break;default:_a(c,h,p)}}function Yz(c,h){if(h.memoizedState===null&&(c=h.alternate,c!==null&&(c=c.memoizedState,c!==null))){c=c.dehydrated;try{yp(c)}catch(p){un(h,h.return,p)}}}function Xz(c,h){if(h.memoizedState===null&&(c=h.alternate,c!==null&&(c=c.memoizedState,c!==null&&(c=c.dehydrated,c!==null))))try{yp(c)}catch(p){un(h,h.return,p)}}function Ype(c){switch(c.tag){case 31:case 13:case 19:var h=c.stateNode;return h===null&&(h=c.stateNode=new Uz),h;case 22:return c=c.stateNode,h=c._retryCache,h===null&&(h=c._retryCache=new Uz),h;default:throw Error(r(435,c.tag))}}function h0(c,h){var p=Ype(c);h.forEach(function(v){if(!p.has(v)){p.add(v);var S=ame.bind(null,c,v);v.then(S,S)}})}function vo(c,h,p){var v=h.deletions;if(v!==null)for(var S=0;S<v.length;S++){var x=v[S],I=c,V=h,Z=V;e:for(;Z!==null;){switch(Z.tag){case 27:if(od(Z.type)){zn=Z.stateNode,Bo=!1;break e}break;case 5:zn=Z.stateNode,Bo=!1;break e;case 3:case 4:zn=Z.stateNode.containerInfo,Bo=!0;break e}Z=Z.return}if(zn===null)throw Error(r(160));Kz(I,V,x),zn=null,Bo=!1,I=x.alternate,I!==null&&(I.return=null),x.return=null}if(h.subtreeFlags&13886)for(h=h.child;h!==null;)Zz(h,c,p),h=h.sibling}var Fa=null;function Zz(c,h,p){var v=c.alternate,S=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:if(S&4&&(v=c.updateQueue,v=v!==null?v.events:null,v!==null))for(var x=0;x<v.length;x++){var I=v[x];I.ref.impl=I.nextImpl}vo(h,c,p),yo(c),S&4&&(Qc(3,c,c.return),Bv(3,c),Qc(5,c,c.return));break;case 1:vo(h,c,p),yo(c),S&512&&(tn||v===null||Oi(v,v.return)),S&64&&ii&&(c=c.updateQueue,c!==null&&(h=c.callbacks,h!==null&&(p=c.shared.hiddenCallbacks,c.shared.hiddenCallbacks=p===null?h:p.concat(h))));break;case 26:if(x=Fa,vo(h,c,p),yo(c),S&512&&(tn||v===null||Oi(v,v.return)),S&4)if(S=v!==null?v.memoizedState:null,p=c.memoizedState,v===null)if(p===null)if(c.stateNode===null)if(ii)c.stateNode=F4(c.type,c.memoizedProps,h.containerInfo,c);else{e:{h=c.type,p=c.memoizedProps,S=x.ownerDocument||x;t:switch(h){case"title":v=S.getElementsByTagName("title")[0],(!v||v[Ta]||v[Xt]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=S.createElement(h),S.head.insertBefore(v,S.querySelector("head > title"))),Di(v,h,p),v[Xt]=c,yn(v),h=v;break e;case"link":if(x=iG("link","href",S).get(h+(p.href||""))){for(I=0;I<x.length;I++)if(v=x[I],v.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&v.getAttribute("rel")===(p.rel==null?null:p.rel)&&v.getAttribute("title")===(p.title==null?null:p.title)&&v.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){x.splice(I,1);break t}}v=S.createElement(h),Di(v,h,p),S.head.appendChild(v);break;case"meta":if(x=iG("meta","content",S).get(h+(p.content||""))){for(I=0;I<x.length;I++)if(v=x[I],v.getAttribute("content")===(p.content==null?null:""+p.content)&&v.getAttribute("name")===(p.name==null?null:p.name)&&v.getAttribute("property")===(p.property==null?null:p.property)&&v.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&v.getAttribute("charset")===(p.charSet==null?null:p.charSet)){x.splice(I,1);break t}}v=S.createElement(h),Di(v,h,p),S.head.appendChild(v);break;default:throw Error(r(468,h))}v[Xt]=c,yn(v),h=v}c.stateNode=h}else ii||QP(x,c.type,c.stateNode);else c.stateNode=rG(x,p,c.memoizedProps);else S!==p?(S===null?(h=v.stateNode,h===null||tn||h.parentNode.removeChild(h)):S.count--,p===null?ii||QP(x,c.type,c.stateNode):rG(x,p,c.memoizedProps)):p===null&&c.stateNode!==null&&rP(c,c.memoizedProps,v.memoizedProps);break;case 27:vo(h,c,p),yo(c),S&512&&(tn||v===null||Oi(v,v.return)),v!==null&&S&4&&rP(c,c.memoizedProps,v.memoizedProps);break;case 5:if(x=Cl,Cl=!1,vo(h,c,p),Cl=x,yo(c),S&512&&(tn||v===null||Oi(v,v.return)),c.flags&32){h=c.stateNode;try{Ut(h,""),bt=!0}catch(pe){un(c,c.return,pe)}}S&4&&c.stateNode!=null&&(h=c.memoizedProps,rP(c,h,v!==null?v.memoizedProps:h)),S&1024&&(dP=!0);break;case 6:if(vo(h,c,p),yo(c),S&4){if(c.stateNode===null)throw Error(r(162));h=c.memoizedProps,p=c.stateNode;try{p.nodeValue=h,bt=!0}catch(pe){un(c,c.return,pe)}}break;case 3:if(bt=!1,T0=null,x=Fa,Fa=Yv(h.containerInfo),vo(h,c,p),Fa=x,yo(c),S&4&&v!==null&&v.memoizedState.isDehydrated)try{yp(h.containerInfo)}catch(pe){un(c,c.return,pe)}dP&&(dP=!1,Qz(c)),bt=!1;break;case 4:S=Cl,Cl=ii,v=Hc(),x=Fa,Fa=Yv(c.stateNode.containerInfo),vo(h,c,p),yo(c),Fa=x,bt&&Vv&&(c0=!0),bt=v,Cl=S;break;case 12:vo(h,c,p),yo(c);break;case 31:vo(h,c,p),yo(c),S&4&&(h=c.updateQueue,h!==null&&(c.updateQueue=null,h0(c,h)));break;case 13:vo(h,c,p),yo(c),c.child.flags&8192&&c.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(p0=jt()),S&4&&(h=c.updateQueue,h!==null&&(c.updateQueue=null,h0(c,h)));break;case 22:x=c.memoizedState!==null,I=v!==null&&v.memoizedState!==null;var V=ii,Z=tn,le=Cl;ii=V||x,Cl=le||x,tn=Z||I,vo(h,c,p),tn=Z,Cl=le,ii=V,yo(c),S&8192&&(h=c.stateNode,h._visibility=x?h._visibility&-2:h._visibility|1,!x||v===null||I||ii||tn||(h=I||tn,p=ii,v=tn,ii=x||ii,tn=h,Jc(c,2),ii=p,tn=v),!x&&Cl||fP(c,x)),S&4&&(h=c.updateQueue,h!==null&&(p=h.retryQueue,p!==null&&(h.retryQueue=null,h0(c,p))));break;case 19:vo(h,c,p),yo(c),S&4&&(h=c.updateQueue,h!==null&&(c.updateQueue=null,h0(c,h)));break;case 30:S&512&&(tn||v===null||Oi(v,v.return)),S=Hc(),x=Vv,I=(p&335544064)===p,V=c.memoizedProps,Vv=I&&Ou(V.default,V.update)!=="none",vo(h,c,p),yo(c),I&&v!==null&&bt&&(c.flags|=4),Vv=x,bt=S;break;case 21:break;case 7:S&512&&(tn||v===null||Oi(v,v.return)),v&&v.stateNode!==null&&(v.stateNode._fragmentFiber=c);default:vo(h,c,p),yo(c)}}function yo(c){var h=c.flags;if(h&2){try{for(var p,v=c.return;v!==null;){if(Lz(v)){p=v;break}v=v.return}v=null;for(var S=c.return;S!==null;){if(tP(S)){var x=S.stateNode;v===null?v=[x]:v.push(x)}if(eP(S))break;S=S.return}var I=v;if(p==null)throw Error(r(160));switch(p.tag){case 27:var V=p.stateNode,Z=iP(c);s0(c,Z,V,I);break;case 5:var le=p.stateNode;p.flags&32&&(Ut(le,""),p.flags&=-33);var pe=iP(c);s0(c,pe,le,I);break;case 3:case 4:var Ae=p.stateNode.containerInfo,oe=iP(c);oP(c,oe,Ae,I);break;default:throw Error(r(161))}}catch(he){un(c,c.return,he)}c.flags&=-3}h&4096&&(c.flags&=-4097)}function Qz(c){if(c.subtreeFlags&1024)for(c=c.child;c!==null;){var h=c;Qz(h),h.tag===5&&h.flags&1024&&(h=h.stateNode,vp=!0,h.reset(),vp=!1),c=c.sibling}}function ep(c,h){if(h.subtreeFlags&9270)for(h=h.child;h!==null;)Jz(h,c),h=h.sibling;else jz(h)}function Jz(c,h){var p=c.alternate;if(p===null)sP(c,!1);else switch(c.tag){case 3:if(hP=Sl=!1,Hz(),ep(h,c),!Sl&&!c0){if(c=bl,c!==null)for(var v=0;v<c.length;v+=3){p=c[v];var S=c[v+1];V4(p,c[v+2]),p=p.ownerDocument.documentElement,p!==null&&p.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+S+")"})}c=h.containerInfo,c=c.nodeType===9?c.documentElement:c.ownerDocument.documentElement,c!==null&&c.style.viewTransitionName===""&&(c.style.viewTransitionName="none",c.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),c.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),hP=!0}bl=null;break;case 5:ep(h,c);break;case 4:v=Sl,Sl=!1,ep(h,c),Sl&&(c0=!0),Sl=v;break;case 22:c.memoizedState===null&&(p.memoizedState!==null?sP(c,!1):ep(h,c));break;case 30:v=Sl,S=Hz(),Sl=!1,ep(h,c),Sl&&(c.flags|=4);var x=c.memoizedProps,I=c.stateNode;h=Pu(x,I),I=Pu(p.memoizedProps,I);var V=Ou(x.default,x.update);V==="none"?h=!1:(x=p.memoizedState,p.memoizedState=null,p=c.child,No=0,h=cP(c,p,h,I,V,x,!0),No!==(x===null?0:x.length)&&(c.flags|=32)),(c.flags&4)!==0&&h?(ap(c,c.memoizedProps.onUpdate),bl=S):S!==null&&(S.push.apply(S,bl),bl=S),Sl=(c.flags&32)!==0?!0:v;break;default:ep(h,c)}}function xl(c,h){if(h.subtreeFlags&8772)for(h=h.child;h!==null;)Wz(c,h.alternate,h),h=h.sibling}function Jc(c,h){for(c=c.child;c!==null;){var p=c,v=h;switch(p.tag){case 0:case 11:case 14:case 15:Qc(4,p,p.return),Jc(p,v);break;case 1:Oi(p,p.return);var S=p.stateNode;typeof S.componentWillUnmount=="function"&&Fz(p,p.return,S),Jc(p,v);break;case 27:(v&2)!==0&&Q4(p.stateNode,p.type,p.memoizedProps);case 5:Oi(p,p.return),p.tag!==5&&p.tag!==27||Hv(p),Jc(p,v);break;case 6:Hv(p);break;case 26:Oi(p,p.return),S=p.stateNode,p.memoizedState!==null||S===null||tn||S.parentNode.removeChild(S),Jc(p,v);break;case 22:p.memoizedState===null&&Jc(p,v);break;case 30:Oi(p,p.return),Jc(p,v);break;case 7:Oi(p,p.return);default:Jc(p,v)}c=c.sibling}}function ka(c,h,p){for(p=(h.subtreeFlags&8772)!==0?p:p&-2,h=h.child;h!==null;){var v=h.alternate,S=c,x=h,I=x.flags,V=(p&1)!==0;switch(x.tag){case 0:case 11:case 15:ka(S,x,p),Bv(4,x);break;case 1:if(ka(S,x,p),v=x,S=v.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(pe){un(v,v.return,pe)}if(v=x,S=v.updateQueue,S!==null){var Z=v.stateNode;try{var le=S.shared.hiddenCallbacks;if(le!==null)for(S.shared.hiddenCallbacks=null,S=0;S<le.length;S++)CV(le[S],Z)}catch(pe){un(v,v.return,pe)}}V&&I&64&&_z(x),yl(x,x.return);break;case 27:(p&2)!==0&&Nz(x);case 5:x.tag!==5&&x.tag!==27||kz(x),ka(S,x,p),V&&v===null&&I&4&&nP(x),yl(x,x.return);break;case 6:kz(x);break;case 26:Z=x.stateNode,x.memoizedState!==null||Z===null||ii||QP(Yv(Z.ownerDocument),x.type,Z),ka(S,x,p),V&&v===null&&I&4&&nP(x),yl(x,x.return);break;case 12:ka(S,x,p);break;case 31:ka(S,x,p),V&&I&4&&Yz(S,x);break;case 13:ka(S,x,p),V&&I&4&&Xz(S,x);break;case 22:x.memoizedState===null&&ka(S,x,p),yl(x,x.return);break;case 30:ka(S,x,p),yl(x,x.return);break;case 7:yl(x,x.return);default:ka(S,x,p)}h=h.sibling}}function pP(c,h){var p=null;c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),c=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(c=h.memoizedState.cachePool.pool),c!==p&&(c!=null&&c.refCount++,p!=null&&Rv(p))}function mP(c,h){c=null,h.alternate!==null&&(c=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==c&&(h.refCount++,c!=null&&Rv(c))}function zs(c,h,p,v){var S=(p&335544064)===p;if(h.subtreeFlags&(S?10262:10256))for(h=h.child;h!==null;)e4(c,h,p,v),h=h.sibling;else S&&Gz(h)}function e4(c,h,p,v){var S=(p&335544064)===p;S&&h.alternate===null&&h.return!==null&&h.return.alternate!==null&&u0(h);var x=h.flags;switch(h.tag){case 0:case 11:case 15:zs(c,h,p,v),x&2048&&Bv(9,h);break;case 1:zs(c,h,p,v);break;case 3:zs(c,h,p,v),S&&hP&&(c=c.containerInfo,c=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,c.style.viewTransitionName==="root"&&(c.style.viewTransitionName=""),c=c.ownerDocument.documentElement,c!==null&&c.style.viewTransitionName==="none"&&(c.style.viewTransitionName="")),x&2048&&(x=null,h.alternate!==null&&(x=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==x&&(h.refCount++,x!=null&&Rv(x)));break;case 12:if(x&2048){zs(c,h,p,v),x=h.stateNode;try{var I=h.memoizedProps,V=I.id,Z=I.onPostCommit;typeof Z=="function"&&Z(V,h.alternate===null?"mount":"update",x.passiveEffectDuration,-0)}catch(le){un(h,h.return,le)}}else zs(c,h,p,v);break;case 31:zs(c,h,p,v);break;case 13:zs(c,h,p,v);break;case 23:break;case 22:I=h.stateNode,V=h.alternate,h.memoizedState!==null?(S&&V!==null&&V.memoizedState===null&&u0(V),I._visibility&2?zs(c,h,p,v):zv(c,h)):(S&&V!==null&&V.memoizedState!==null&&u0(h),I._visibility&2?zs(c,h,p,v):(I._visibility|=2,tp(c,h,p,v,(h.subtreeFlags&10256)!==0||!1))),x&2048&&pP(V,h);break;case 24:zs(c,h,p,v),x&2048&&mP(h.alternate,h);break;case 30:S&&(x=h.alternate,x!==null&&(wl(x.child,!0),wl(h.child,!0))),zs(c,h,p,v);break;default:zs(c,h,p,v)}}function tp(c,h,p,v,S){for(S=S&&((h.subtreeFlags&10256)!==0||!1),h=h.child;h!==null;){var x=c,I=h,V=p,Z=v,le=I.flags;switch(I.tag){case 0:case 11:case 15:tp(x,I,V,Z,S),Bv(8,I);break;case 23:break;case 22:var pe=I.stateNode;I.memoizedState!==null?pe._visibility&2?tp(x,I,V,Z,S):zv(x,I):(pe._visibility|=2,tp(x,I,V,Z,S)),S&&le&2048&&pP(I.alternate,I);break;case 24:tp(x,I,V,Z,S),S&&le&2048&&mP(I.alternate,I);break;default:tp(x,I,V,Z,S)}h=h.sibling}}function zv(c,h){if(h.subtreeFlags&10256)for(h=h.child;h!==null;){var p=c,v=h,S=v.flags;switch(v.tag){case 22:zv(p,v),S&2048&&pP(v.alternate,v);break;case 24:zv(p,v),S&2048&&mP(v.alternate,v);break;default:zv(p,v)}h=h.sibling}}var Fh=8192;function kh(c,h,p){if(c.subtreeFlags&Fh)for(c=c.child;c!==null;)t4(c,h,p),c=c.sibling}function t4(c,h,p){switch(c.tag){case 26:kh(c,h,p),c.flags&Fh&&(c.memoizedState!==null?tve(p,Fa,c.memoizedState,c.memoizedProps):(c=c.stateNode,(h&335544128)===h&&lG(p,c)));break;case 5:kh(c,h,p),c.flags&Fh&&(c=c.stateNode,(h&335544128)===h&&lG(p,c));break;case 3:case 4:var v=Fa;Fa=Yv(c.stateNode.containerInfo),kh(c,h,p),Fa=v;break;case 22:c.memoizedState===null&&(v=c.alternate,v!==null&&v.memoizedState!==null?(v=Fh,Fh=16777216,kh(c,h,p),Fh=v):kh(c,h,p));break;case 30:if((c.flags&Fh)!==0&&(v=c.memoizedProps.name,v!=null&&v!=="auto")){var S=c.stateNode;S.paired=null,us===null&&(us=new Map),us.set(v,S)}kh(c,h,p);break;default:kh(c,h,p)}}function n4(c){var h=c.alternate;if(h!==null&&(c=h.child,c!==null)){h.child=null;do h=c.sibling,c.sibling=null,c=h;while(c!==null)}}function Gv(c){var h=c.deletions;if((c.flags&16)!==0){if(h!==null)for(var p=0;p<h.length;p++){var v=h[p];oi=v,i4(v,c)}n4(c)}if(c.subtreeFlags&10256)for(c=c.child;c!==null;)r4(c),c=c.sibling}function r4(c){switch(c.tag){case 0:case 11:case 15:Gv(c),c.flags&2048&&Qc(9,c,c.return);break;case 3:Gv(c);break;case 12:Gv(c);break;case 22:var h=c.stateNode;c.memoizedState!==null&&h._visibility&2&&(c.return===null||c.return.tag!==13)?(h._visibility&=-3,f0(c)):Gv(c);break;default:Gv(c)}}function f0(c){var h=c.deletions;if((c.flags&16)!==0){if(h!==null)for(var p=0;p<h.length;p++){var v=h[p];oi=v,i4(v,c)}n4(c)}for(c=c.child;c!==null;){switch(h=c,h.tag){case 0:case 11:case 15:Qc(8,h,h.return),f0(h);break;case 22:p=h.stateNode,p._visibility&2&&(p._visibility&=-3,f0(h));break;default:f0(h)}c=c.sibling}}function i4(c,h){for(;oi!==null;){var p=oi;switch(p.tag){case 0:case 11:case 15:Qc(8,p,h);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var v=p.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Rv(p.memoizedState.cache)}if(v=p.child,v!==null)v.return=p,oi=v;else e:for(p=c;oi!==null;){v=oi;var S=v.sibling,x=v.return;if(qz(v),v===p){oi=null;break e}if(S!==null){S.return=x,oi=S;break e}oi=x}}}var Xpe={getCacheForType:function(c){var h=Ai(Or),p=h.data.get(c);return p===void 0&&(p=c(),h.data.set(c,p)),p},cacheSignal:function(){return Ai(Or).controller.signal}},Zpe=typeof WeakMap=="function"?WeakMap:Map,Qt=0,Sn=null,Dt=null,kt=0,ln=0,cs=null,ed=!1,np=!1,vP=!1,Bu=0,ur=0,td=0,Lh=0,g0=0,ds=0,rp=0,jv=null,Ho=null,yP=!1,p0=0,o4=0,m0=1/0,v0=null,nd=null,tr=0,La=null,Nh=null,El=0,bP=0,wP=null,s4=null,ip=null,op=null,sp=null,Uv=0,y0=null;function hs(){return(Qt&2)!==0&&kt!==0?kt&-kt:de.T!==null?DP():kc()}function a4(){if(ds===0)if((kt&536870912)===0||Pt){var c=Fn;Fn<<=1,(Fn&3932160)===0&&(Fn=262144),ds=c}else ds=536870912;return c=Ti.current,c!==null&&(c.flags|=32),ds}function ap(c,h){if(h!=null){var p=c.stateNode,v=p.ref;v===null&&(v=p.ref=z4(Pu(c.memoizedProps,p))),op===null&&(op=[]),op.push(h.bind(null,v))}}function Vo(c,h,p){(c===Sn&&(ln===2||ln===9)||c.cancelPendingCommit!==null)&&(lp(c,0),rd(c,kt,ds,!1)),zi(c,p),((Qt&2)===0||c!==Sn)&&(c===Sn&&((Qt&2)===0&&(Lh|=p),ur===4&&rd(c,kt,ds,!1)),Rl(c))}function l4(c,h,p){if((Qt&6)!==0)throw Error(r(327));var v=!p&&(h&127)===0&&(h&c.expiredLanes)===0||Aa(c,h),S=v?eme(c,h):SP(c,h,!0),x=v;do{if(S===0){np&&!v&&rd(c,h,0,!1);break}else{if(p=c.current.alternate,x&&!Qpe(p)){S=SP(c,h,!1),x=!1;continue}if(S===2){if(x=h,c.errorRecoveryDisabledLanes&x)var I=0;else I=c.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){h=I;e:{var V=c;S=jv;var Z=V.current.memoizedState.isDehydrated;if(Z&&(lp(V,I).flags|=256),I=SP(V,I,!1),I!==2&&I!==6){if(vP&&!Z){V.errorRecoveryDisabledLanes|=x,Lh|=x,S=4;break e}x=Ho,Ho=S,x!==null&&(Ho===null?Ho=x:Ho.push.apply(Ho,x))}S=I}if(x=!1,S!==2)continue}}if(S===1){lp(c,0),rd(c,h,0,!0);break}e:{switch(v=c,x=S,x){case 0:case 1:throw Error(r(345));case 4:if((h&4194048)!==h&&(h&62914560)!==h)break;case 6:rd(v,h,ds,!ed);break e;case 2:Ho=null;break;case 3:case 5:break;default:throw Error(r(329))}if((h&62914560)===h&&(S=p0+300-jt(),10<S)){if(rd(v,h,ds,!ed),_s(v,0,!0)!==0)break e;El=h,v.timeoutHandle=zP(u4.bind(null,v,p,Ho,v0,yP,h,ds,Lh,rp,ed,x,"Throttled",-0,0),S);break e}u4(v,p,Ho,v0,yP,h,ds,Lh,rp,ed,x,null,-0,0)}}break}while(!0);Rl(c)}function u4(c,h,p,v,S,x,I,V,Z,le,pe,Ae,oe,he){c.timeoutHandle=-1;var He=h.subtreeFlags,Je=(x&335544064)===x;if(Ae=null,(Je||He&8192||(He&16785408)===16785408)&&(Ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:we},us=null,t4(h,x,Ae),Je&&(He=Ae,Je=c.containerInfo,Je=(Je.nodeType===9?Je:Je.ownerDocument).__reactViewTransition,Je!=null&&(He.count++,He.waitingForViewTransition=!0,He=Qv.bind(He),Je.finished.then(He,He))),He=(x&62914560)===x?p0-jt():(x&4194048)===x?o4-jt():0,He=nve(Ae,He),He!==null)){El=x,c.cancelPendingCommit=He(v4.bind(null,c,h,x,p,v,S,I,V,Z,le,pe,Ae,null,oe,he)),rd(c,x,I,!le);return}v4(c,h,x,p,v,S,I,V,Z,le,pe,Ae)}function Qpe(c){for(var h=c;;){var p=h.tag;if((p===0||p===11||p===15)&&h.flags&16384&&(p=h.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var v=0;v<p.length;v++){var S=p[v],x=S.getSnapshot;S=S.value;try{if(!as(x(),S))return!1}catch{return!1}}if(p=h.child,h.subtreeFlags&16384&&p!==null)p.return=h,h=p;else{if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function rd(c,h,p,v){h=Fs(c,h),h&=~g0,h&=~Lh,c.suspendedLanes|=h,c.pingedLanes&=~h,v&&(c.warmLanes|=h),v=c.expirationTimes;for(var S=h;0<S;){var x=31-vn(S),I=1<<x;v[x]=-1,S&=~I}p!==0&&wu(c,p,h)}function b0(){return(Qt&6)===0?(Wv(0),!1):!0}function CP(){if(Dt!==null){if(ln===0)var c=Dt.return;else c=Dt,Iu=Eh=null,OT(c),Kg=null,Pv=0,c=Dt;for(;c!==null;)Iz(c.alternate,c),c=c.return;Dt=null}}function lp(c,h){var p=c.timeoutHandle;return p!==-1&&(c.timeoutHandle=-1,Sme(p)),p=c.cancelPendingCommit,p!==null&&(c.cancelPendingCommit=null,p()),El=0,CP(),Sn=c,Dt=p=Du(c.current,null),kt=h,ln=0,cs=null,ed=!1,np=Aa(c,h),vP=!1,rp=ds=g0=Lh=td=ur=0,Ho=jv=null,yP=!1,Bu=Fs(c,h),TC(),p}function c4(c,h){St=null,de.H=QC,h===qg||h===BC?(h=vV(),ln=3):h===mT?(h=vV(),ln=4):ln=h===UT?8:h!==null&&typeof h=="object"&&typeof h.then=="function"?6:1,cs=h,Dt===null&&(ur=1,JC(c,Ns(h,c.current)))}function d4(){var c=Ti.current;return c===null?!0:(kt&4194048)===kt?ji===null:(kt&62914560)===kt||(kt&536870912)!==0?c===ji:!1}function h4(){var c=de.H;return de.H=QC,c===null?QC:c}function f4(){var c=de.A;return de.A=Xpe,c}function w0(){ur=4,ed||(kt&4194048)!==kt&&Ti.current!==null||(np=!0),(td&134217727)===0&&(Lh&134217727)===0||Sn===null||rd(Sn,kt,ds,!1)}function SP(c,h,p){var v=Qt;Qt|=2;var S=h4(),x=f4();(Sn!==c||kt!==h)&&(v0=null,lp(c,h)),h=!1;var I=ur;e:do try{if(ln!==0&&Dt!==null){var V=Dt,Z=cs;switch(ln){case 8:CP(),I=6;break e;case 3:case 2:case 9:case 6:Ti.current===null&&(h=!0);var le=ln;if(ln=0,cs=null,up(c,V,Z,le),p&&np){I=0;break e}break;default:le=ln,ln=0,cs=null,up(c,V,Z,le)}}Jpe(),I=ur;break}catch(pe){c4(c,pe)}while(!0);return h&&c.shellSuspendCounter++,Iu=Eh=null,Qt=v,de.H=S,de.A=x,Dt===null&&(Sn=null,kt=0,TC()),I}function Jpe(){for(;Dt!==null;)g4(Dt)}function eme(c,h){var p=Qt;Qt|=2;var v=h4(),S=f4();Sn!==c||kt!==h?(v0=null,m0=jt()+500,lp(c,h)):np=Aa(c,h);e:do try{if(ln!==0&&Dt!==null){h=Dt;var x=cs;t:switch(ln){case 1:ln=0,cs=null,up(c,h,x,1);break;case 2:case 9:if(pV(x)){ln=0,cs=null,p4(h);break}h=function(){ln!==2&&ln!==9||Sn!==c||(ln=7),Rl(c)},x.then(h,h);break e;case 3:ln=7;break e;case 4:ln=5;break e;case 7:pV(x)?(ln=0,cs=null,p4(h)):(ln=0,cs=null,up(c,h,x,7));break;case 5:var I=null;switch(Dt.tag){case 26:I=Dt.memoizedState;case 5:case 27:var V=Dt;if(I?sG(I):V.stateNode.complete){ln=0,cs=null;var Z=V.sibling;if(Z!==null)Dt=Z;else{var le=V.return;le!==null?(Dt=le,C0(le)):Dt=null}break t}}ln=0,cs=null,up(c,h,x,5);break;case 6:ln=0,cs=null,up(c,h,x,6);break;case 8:CP(),ur=6;break e;default:throw Error(r(462))}}tme();break}catch(pe){c4(c,pe)}while(!0);return Iu=Eh=null,de.H=v,de.A=S,Qt=p,Dt!==null?0:(Sn=null,kt=0,TC(),ur)}function tme(){for(;Dt!==null&&!ho();)g4(Dt)}function g4(c){var h=Dz(c.alternate,c,Bu);c.memoizedProps=c.pendingProps,h===null?C0(c):Dt=h}function p4(c){var h=c,p=h.alternate;switch(h.tag){case 15:case 0:h=xz(p,h,h.pendingProps,h.type,void 0,kt);break;case 11:h=xz(p,h,h.pendingProps,h.type.render,h.ref,kt);break;case 5:OT(h);var v=h;v===ri&&(Pt?(_C(v),v.tag===5&&v.stateNode!=null&&(An=v.stateNode)):(_C(v),Pt=!0));default:Iz(p,h),h=Dt=iV(h,Bu),h=Dz(p,h,Bu)}c.memoizedProps=c.pendingProps,h===null?C0(c):Dt=h}function up(c,h,p,v){Iu=Eh=null,OT(h),Kg=null,Pv=0;var S=h.return;try{if(Gpe(c,S,h,p,kt)){ur=1,JC(c,Ns(p,c.current)),Dt=null;return}}catch(x){if(S!==null)throw Dt=S,x;ur=1,JC(c,Ns(p,c.current)),Dt=null;return}h.flags&32768?(Pt||v===1?c=!0:np||(kt&536870912)!==0?c=!1:(ed=c=!0,(v===2||v===9||v===3||v===6)&&(v=Ti.current,v!==null&&v.tag===13&&(v.flags|=16384))),m4(h,c)):C0(h)}function C0(c){var h=c;do{if((h.flags&32768)!==0){m4(h,ed);return}c=h.return;var p=$pe(h.alternate,h,Bu);if(p!==null){Dt=p;return}if(h=h.sibling,h!==null){Dt=h;return}Dt=h=c}while(h!==null);ur===0&&(ur=5)}function m4(c,h){do{var p=qpe(c.alternate,c);if(p!==null){p.flags&=32767,Dt=p;return}if(p=c.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!h&&(c=c.sibling,c!==null)){Dt=c;return}Dt=c=p}while(c!==null);ur=6,Dt=null}function v4(c,h,p,v,S,x,I,V,Z,le,pe,Ae){c.cancelPendingCommit=null;do S0();while(tr!==0);if((Qt&6)!==0)throw Error(r(327));if(h!==null){if(h===c.current)throw Error(r(177));c===Sn&&(Dt=Sn=null,kt=0),Nh=h,La=c,El=p,wP=S,s4=v,nme(c,h,p,I,V,Z,Ae)}}function nme(c,h,p,v,S,x,I){var V=h.lanes|h.childLanes;if(bP=V,V|=rT,mh(c,p,V,v,S,x),op=null,(p&335544064)===p?(sp=Dpe(c),v=10262):(sp=null,v=10256),(h.subtreeFlags&v)!==0||(h.flags&v)!==0?(c.callbackNode=null,c.callbackPriority=0,lme(wi,function(){return AP(),null})):(c.callbackNode=null,c.callbackPriority=0),a0=!1,v=(h.flags&13878)!==0,(h.subtreeFlags&13878)!==0||v){v=de.T,de.T=null,S=J.p,J.p=2,x=Qt,Qt|=4;try{Kpe(c,h,p)}finally{Qt=x,J.p=S,de.T=v}}tr=1,a0?ip=Pme(I,c.containerInfo,sp,xP,EP,ime,RP,AP,rme):(xP(),EP(),RP())}function rme(c){if(tr!==0){var h=La.onRecoverableError;h(c,{componentStack:null})}}function ime(){tr===3&&(tr=0,Jz(Nh,La),tr=4)}function xP(){if(tr===1){tr=0;var c=La,h=Nh,p=El,v=(h.flags&13878)!==0;if((h.subtreeFlags&13878)!==0||v){v=de.T,de.T=null;var S=J.p;J.p=2;var x=Qt;Qt|=4;try{Vv=c0=!1,Zz(h,c,p),p=BP;var I=K5(c.containerInfo),V=p.focusedElem,Z=p.selectionRange;if(I!==V&&V&&V.ownerDocument&&q5(V.ownerDocument.documentElement,V)){if(Z!==null&&QA(V)){var le=Z.start,pe=Z.end;if(pe===void 0&&(pe=le),"selectionStart"in V)V.selectionStart=le,V.selectionEnd=Math.min(pe,V.value.length);else{var Ae=V.ownerDocument||document,oe=Ae&&Ae.defaultView||window;if(oe.getSelection){var he=oe.getSelection(),He=V.textContent.length,Je=Math.min(Z.start,He),xt=Z.end===void 0?Je:Math.min(Z.end,He);!he.extend&&Je>xt&&(I=xt,xt=Je,Je=I);var ae=$5(V,Je),ee=$5(V,xt);if(ae&&ee&&(he.rangeCount!==1||he.anchorNode!==ae.node||he.anchorOffset!==ae.offset||he.focusNode!==ee.node||he.focusOffset!==ee.offset)){var ce=Ae.createRange();ce.setStart(ae.node,ae.offset),he.removeAllRanges(),Je>xt?(he.addRange(ce),he.extend(ee.node,ee.offset)):(ce.setEnd(ee.node,ee.offset),he.addRange(ce))}}}}for(Ae=[],he=V;he=he.parentNode;)he.nodeType===1&&Ae.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof V.focus=="function"&&V.focus(),V=0;V<Ae.length;V++){var Re=Ae[V];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}vp=!!NP,BP=NP=null}finally{Qt=x,J.p=S,de.T=v}}c.current=h,tr=2}}function EP(){if(tr===2){tr=0;var c=La,h=Nh,p=(h.flags&8772)!==0;if((h.subtreeFlags&8772)!==0||p){p=de.T,de.T=null;var v=J.p;J.p=2;var S=Qt;Qt|=4;try{Wz(c,h.alternate,h)}finally{Qt=S,J.p=v,de.T=p}}tr=3}}function RP(){if(tr===4||tr===3){tr=0;var c=ip;ip=null,Hi();var h=La,p=Nh,v=El,S=s4,x=(v&335544064)===v?10262:10256;if((p.subtreeFlags&x)!==0||(p.flags&x)!==0?tr=5:(tr=0,Nh=La=null,y4(h,h.pendingLanes)),x=h.pendingLanes,x===0&&(nd=null),Su(v),p=p.stateNode,Xn&&typeof Xn.onCommitFiberRoot=="function")try{Xn.onCommitFiberRoot(Ci,p,void 0,(p.current.flags&128)===128)}catch{}if(S!==null){p=de.T,x=J.p,J.p=2,de.T=null;try{for(var I=h.onRecoverableError,V=0;V<S.length;V++){var Z=S[V];I(Z.value,{componentStack:Z.stack})}}finally{de.T=p,J.p=x}}if(S=op,I=sp,sp=null,S!==null&&(op=null,I===null&&(I=[]),c!==null))for(Z=0;Z<S.length;Z++)p=(0,S[Z])(I),p!==void 0&&c.finished.finally(p);(El&3)!==0&&S0(),Rl(h),x=h.pendingLanes,(v&261930)!==0&&(x&42)!==0?h===y0?Uv++:(Uv=0,y0=h):(Uv=0,y0=null),Wv(0)}}function y4(c,h){(c.pooledCacheLanes&=h)===0&&(h=c.pooledCache,h!=null&&(c.pooledCache=null,Rv(h)))}function S0(){return ip!==null&&(ip.skipTransition(),ip=null),xP(),EP(),RP(),AP()}
vendor: 1,057 bytes, line 8
8function AP(){if(tr!==5)return!1;var c=La,h=bP;bP=0;var p=Su(El),v=de.T,S=J.p;try{J.p=32>p?32:p,de.T=null,p=wP,wP=null;var x=La,I=El;if(tr=0,Nh=La=null,El=0,(Qt&6)!==0)throw Error(r(331));var V=Qt;if(Qt|=4,r4(x.current),e4(x,x.current,I,p),Qt=V,Wv(0,!1),Xn&&typeof Xn.onPostCommitFiberRoot=="function")try{Xn.onPostCommitFiberRoot(Ci,x)}catch{}return!0}finally{J.p=S,de.T=v,y4(c,h)}}function b4(c,h,p){h=Ns(p,h),h=jT(c.stateNode,h,2),c=Kc(c,h,2),c!==null&&(zi(c,2),Rl(c))}function un(c,h,p){if(c.tag===3)b4(c,c,p);else for(;h!==null;){if(h.tag===3){b4(h,c,p);break}else if(h.tag===1){var v=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(nd===null||!nd.has(v))){c=Ns(p,c),p=pz(2),v=Kc(h,p,2),v!==null&&(mz(p,v,h,c),zi(v,2),Rl(v));break}}h=h.return}}function TP(c,h,p){var v=c.pingCache;if(v===null){v=c.pingCache=new Zpe;var S=new Set;v.set(h,S)}else S=v.get(h),S===void 0&&(S=new Set,v.set(h,S));S.has(p)||(vP=!0,S.add(p),c=ome.bind(null,c,h,p),h.then(c,c))}function ome(c,h,p){var v=c.pingCache;
vendor: 4,121 bytes, line 8
8v!==null&&v.delete(h),c.pingedLanes|=c.suspendedLanes&p,c.warmLanes&=~p,Sn===c&&(kt&p)===p&&((ur===4||ur===3&&(kt&62914560)===kt&&300>jt()-p0)&&(Qt&2)===0?lp(c,0):g0|=p,rp===kt&&(rp=0)),Rl(c)}function w4(c,h){h===0&&(h=Fc()),c=Ch(c,h),c!==null&&(zi(c,h),Rl(c))}function sme(c){var h=c.memoizedState,p=0;h!==null&&(p=h.retryLane),w4(c,p)}function ame(c,h){var p=0;switch(c.tag){case 31:case 13:var v=c.stateNode,S=c.memoizedState;S!==null&&(p=S.retryLane);break;case 19:v=c.stateNode;break;case 22:v=c.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(h),w4(c,p)}function lme(c,h){return yr(c,h)}var cp=null,dp=null,PP=!1,x0=!1,OP=!1,id=0;function Rl(c){c!==dp&&c.next===null&&(dp===null?cp=dp=c:dp=dp.next=c),x0=!0,PP||(PP=!0,cme())}function Wv(c,h){if(!OP&&x0){OP=!0;do for(var p=!1,v=cp;v!==null;){if(c!==0){var S=v.pendingLanes;if(S===0)var x=0;else{var I=v.suspendedLanes,V=v.pingedLanes;x=(1<<31-vn(42|c)+1)-1,x&=S&~(I&~V),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(p=!0,E4(v,x))}else x=kt,x=_s(v,v===Sn?x:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(x&3)===0||Aa(v,x)||(p=!0,E4(v,x));v=v.next}while(p);OP=!1}}function ume(){C4()}function C4(){x0=PP=!1;var c=0;id!==0&&Cme()&&(c=id);for(var h=jt(),p=null,v=cp;v!==null;){var S=v.next,x=S4(v,h);x===0?(v.next=null,p===null?cp=S:p.next=S,S===null&&(dp=p)):(p=v,(c!==0||(x&3)!==0)&&(x0=!0)),v=S}tr!==0&&tr!==5||Wv(c),id!==0&&(id=0)}function S4(c,h){for(var p=c.suspendedLanes,v=c.pingedLanes,S=c.expirationTimes,x=c.pendingLanes&-62914561;0<x;){var I=31-vn(x),V=1<<I,Z=S[I];Z===-1?((V&p)===0||(V&v)!==0)&&(S[I]=Ar(V,h)):Z<=h&&(c.expiredLanes|=V),x&=~V}if(h=Sn,p=kt,p=_s(c,c===h?p:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),v=c.callbackNode,p===0||c===h&&(ln===2||ln===9)||c.cancelPendingCommit!==null)return v!==null&&v!==null&&yi(v),c.callbackNode=null,c.callbackPriority=0;if((p&3)===0||Aa(c,p)){if(h=p&-p,h===c.callbackPriority)return h;switch(v!==null&&yi(v),Su(p)){case 2:case 8:p=qt;break;case 32:p=wi;break;case 268435456:p=Ra;break;default:p=wi}return v=x4.bind(null,c),p=yr(p,v),c.callbackPriority=h,c.callbackNode=p,h}return v!==null&&v!==null&&yi(v),c.callbackPriority=2,c.callbackNode=null,2}function x4(c,h){if(tr!==0&&tr!==5)return c.callbackNode=null,c.callbackPriority=0,null;var p=c.callbackNode;if(S0()&&c.callbackNode!==p)return null;var v=kt;return v=_s(c,c===Sn?v:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),v===0?null:(l4(c,v,h),S4(c,jt()),c.callbackNode!=null&&c.callbackNode===p?x4.bind(null,c):null)}function E4(c,h){if(S0())return null;l4(c,h,!0)}function cme(){xme(function(){(Qt&6)!==0?yr(Vi,ume):C4()})}function DP(){if(id===0){var c=Th;c===0&&(c=Ms,Ms<<=1,(Ms&261888)===0&&(Ms=256)),id=c}return id}function R4(c){return c==null||typeof c=="symbol"||typeof c=="boolean"?null:typeof c=="function"?c:Q(c)}function dme(c,h,p,v,S){if(h==="submit"&&p&&p.stateNode===S){var x=R4((S[Vn]||null).action),I=v.submitter;I&&(h=(h=I[Vn]||null)?R4(h.formAction):I.getAttribute("formAction"),h!==null&&(x=h,I=null));var V=new xC("action","action",null,v,S);c.push({event:V,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(id!==0){var Z=new FormData(S,I);BT(p,{pending:!0,data:Z,method:S.method,action:x},null,Z)}}else typeof x=="function"&&(V.preventDefault(),Z=new FormData(S,I),BT(p,{pending:!0,data:Z,method:S.method,action:x},x,Z))},currentTarget:S}]})}}for(var MP=0;MP<nT.length;MP++){var IP=nT[MP],hme=IP.toLowerCase(),fme=IP[0].toUpperCase()+IP.slice(1);Ia(hme,"on"+fme)}Ia(Z5,"onAnimationEnd"),Ia(Q5,"onAnimationIteration"),Ia(J5,"onAnimationStart"),Ia("dblclick","onDoubleClick"),Ia("focusin","onFocus"),Ia("focusout","onBlur"),Ia(Spe,"onTransitionRun"),Ia(xpe,"onTransitionStart"),Ia(Epe,"onTransitionCancel"),Ia(eV,"onTransitionEnd"),rs("onMouseEnter",["mouseout","mouseover"]),rs("onMouseLeave",["mouseout","mouseover"]),rs("onPointerEnter",["pointerout","pointerover"]),rs("onPointerLeave",["pointerout","pointerover"]),go("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),go("onSelect","focusout contextmenu dragend focu
8sin keydown keyup mousedown mouseup selectionchange".split(" ")),go("onBeforeInput",["compositionend","keypress","textInput","paste"]),go("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),go("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),go("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $v="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gme=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($v));function A4(c,h){h=(h&4)!==0;for(var p=0;p<c.length;p++){var v=c[p],S=v.event;v=v.listeners;e:{var x=void 0;if(h)for(var I=v.length-1;0<=I;I--){var V=v[I],Z=V.instance,le=V.currentTarget;if(V=V.listener,Z!==x&&S.isPropagationStopped())break e;x=V,S.currentTarget=le;try{x(S)}catch(pe){AC(pe)}S.currentTarget=null,x=Z}else for(I=0;I<v.length;I++){if(V=v[I],Z=V.instance,le=V.currentTarget,V=V.listener,Z!==x&&S.isPropagationStopped())break e;x=V,S.currentTarget=le;try{x(S)}catch(pe){AC(pe)}S.currentTarget=null,x=Z}}}}function Mt(c,h){var p=h[Gi];p===void 0&&(p=h[Gi]=new Set);var v=c+"__bubble";p.has(v)||(T4(h,c,2,!1),p.add(v))}function _P(c,h,p){var v=0;h&&(v|=4),T4(p,c,v,h)}var E0="_reactListening"+Math.random().toString(36).slice(2);function FP(c){if(!c[E0]){c[E0]=!0,Nc.forEach(function(p){p!=="selectionchange"&&(gme.has(p)||_P(p,!1,c),_P(p,!0,c))});var h=c.nodeType===9?c:c.ownerDocument;h===null||h[E0]||(h[E0]=!0,_P("selectionchange",!1,h))}}function T4(c,h,p,v){switch(mG(h)){case 2:var S=sve;break;case 8:S=ave;break;default:S=eO}p=S.bind(null,h,p,c),S=void 0,!Pr||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(S=!0),v?S!==void 0?c.addEventListener(h,p,{capture:!0,passive:S}):c.addEventListener(h,p,!0):S!==void 0?c.addEventListener(h,p,{passive:S}):c.addEventListener(h,p,!1)}function kP(c,h,p,v,S){var x=v;if((h&1)===0&&(h&2)===0&&v!==null)e:for(;;){if(v===null)return;var I=v.tag;if(I===3||I===4){var V=v.stateNode.containerInfo;if(V===S)break;if(I===4)for(I=v.return;I!==null;){var Z=I.tag;if((Z===3||Z===4)&&I.stateNode.containerInfo===S)return;I=I.return}for(;V!==null;){if(I=Jr(V),I===null)return;if(Z=I.tag,Z===5||Z===6||Z===26||Z===27){v=x=I;continue e}V=V.parentNode}}v=v.return}Gr(function(){var le=x,pe=it(p),Ae=[];e:{var oe=tV.get(c);if(oe!==void 0){var he=xC,He=c;switch(c){case"keypress":if(Au(p)===0)break e;case"keydown":case"keyup":he=Qge;break;case"focusin":He="focus",he=$A;break;case"focusout":He="blur",he=$A;break;case"beforeblur":case"afterblur":he=$A;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=D5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=Vge;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=rpe;break;case Z5:case Q5:case J5:he=jge;break;case eV:he=ope;break;case"scroll":case"scrollend":he=Bge;break;case"wheel":he=ape;break;case"copy":case"cut":case"paste":he=Wge;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=I5;break;case"submit":he=tpe;break;case"toggle":case"beforetoggle":he=upe}var Je=(h&4)!==0,xt=!Je&&(c==="scroll"||c==="scrollend"),ae=Je?oe!==null?oe+"Capture":null:oe;Je=[];for(var ee=le,ce;ee!==null;){var Re=ee;if(ce=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||ce===null||ae===null||(Re=Tr(ee,ae),Re!=null&&Je.push(qv(ee,Re,ce))),xt)break;ee=ee.return}0<Je.length&&(oe=new he(oe,He,null,p,pe),Ae.push({event:oe,listeners:Je}))}}if((h&7)===0){e:{if(he=c==="mouseover"||c==="pointerover",oe=c==="mouseout"||c==="pointerout",he&&p!==vt&&(He=p.relatedTarget||p.fromElement)&&(Jr(He)||He[ar]))break e;(oe||he)&&(He=pe.window===pe?pe:(he=pe.ownerDocument)?he.defaultView||he.parentWindow:window,oe?(he=p.relatedTarget||p.toElement,oe
vendor: 5,800 bytes, lines 8-9
8=le,he=he?Jr(he):null,he!==null&&(xt=o(he),Je=he.tag,he!==xt||Je!==5&&Je!==27&&Je!==6)&&(he=null)):(oe=null,he=le),oe!==he&&(Je=D5,Re="onMouseLeave",ae="onMouseEnter",ee="mouse",(c==="pointerout"||c==="pointerover")&&(Je=I5,Re="onPointerLeave",ae="onPointerEnter",ee="pointer"),xt=oe==null?He:fo(oe),ce=he==null?He:fo(he),He=new Je(Re,ee+"leave",oe,p,pe),He.target=xt,He.relatedTarget=ce,Re=null,Jr(pe)===le&&(Je=new Je(ae,ee+"enter",he,p,pe),Je.target=ce,Je.relatedTarget=xt,Re=Je),xt=Re,Je=oe&&he?O(oe,he,pme):null,oe!==null&&P4(Ae,He,oe,Je,!1),he!==null&&xt!==null&&P4(Ae,xt,he,Je,!0)))}e:{if(oe=le?fo(le):window,he=oe.nodeName&&oe.nodeName.toLowerCase(),he==="select"||he==="input"&&oe.type==="file")var Xe=V5;else if(B5(oe))if(z5)Xe=bpe;else{Xe=vpe;var Lt=mpe}else he=oe.nodeName,!he||he.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?le&&yh(le.elementType)&&(Xe=V5):Xe=ype;if(Xe&&(Xe=Xe(c,le))){H5(Ae,Xe,p,pe);break e}Lt&&Lt(c,oe,le)}switch(Lt=le?fo(le):window,c){case"focusin":(B5(Lt)||Lt.contentEditable==="true")&&(Hg=Lt,JA=le,Sv=null);break;case"focusout":Sv=JA=Hg=null;break;case"mousedown":eT=!0;break;case"contextmenu":case"mouseup":case"dragend":eT=!1,Y5(Ae,p,pe);break;case"selectionchange":if(Cpe)break;case"keydown":case"keyup":Y5(Ae,p,pe)}var ut;if(KA)e:{switch(c){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else Bg?L5(c,p)&&(gt="onCompositionEnd"):c==="keydown"&&p.keyCode===229&&(gt="onCompositionStart");gt&&(_5&&p.locale!=="ko"&&(Bg||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Bg&&(ut=pv()):(Ri=pe,ss="value"in Ri?Ri.value:Ri.textContent,Bg=!0)),Lt=R0(le,gt),0<Lt.length&&(gt=new M5(gt,c,null,p,pe),Ae.push({event:gt,listeners:Lt}),ut?gt.data=ut:(ut=N5(p),ut!==null&&(gt.data=ut)))),(ut=dpe?hpe(c,p):fpe(c,p))&&(gt=R0(le,"onBeforeInput"),0<gt.length&&(Lt=new M5("onBeforeInput","beforeinput",null,p,pe),Ae.push({event:Lt,listeners:gt}),Lt.data=ut)),dme(Ae,c,le,p,pe)}A4(Ae,h)})}function qv(c,h,p){return{instance:c,listener:h,currentTarget:p}}function R0(c,h){for(var p=h+"Capture",v=[];c!==null;){var S=c,x=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||x===null||(S=Tr(c,p),S!=null&&v.unshift(qv(c,S,x)),S=Tr(c,h),S!=null&&v.push(qv(c,S,x))),c.tag===3)return v;c=c.return}return[]}function pme(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5&&c.tag!==27);return c||null}function P4(c,h,p,v,S){for(var x=h._reactName,I=[];p!==null&&p!==v;){var V=p,Z=V.alternate,le=V.stateNode;if(V=V.tag,Z!==null&&Z===v)break;V!==5&&V!==26&&V!==27||le===null||(Z=le,S?(le=Tr(p,x),le!=null&&I.unshift(qv(p,le,Z))):S||(le=Tr(p,x),le!=null&&I.push(qv(p,le,Z)))),p=p.return}I.length!==0&&c.push({event:h,listeners:I})}var mme=/\r\n?/g,vme=/\u0000|\uFFFD/g;function O4(c){return(typeof c=="string"?c:""+c).replace(mme,` 9`).replace(vme,"")}function D4(c,h){return h=O4(h),O4(c)===h}function cn(c,h,p,v,S,x){switch(p){case"children":if(typeof v=="string")h==="body"||h==="textarea"&&v===""||Ut(c,v);else if(typeof v=="number"||typeof v=="bigint")h!=="body"&&Ut(c,""+v);else return;break;case"className":Da(c,"class",v);break;case"tabIndex":Da(c,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Da(c,p,v);break;case"style":Ng(c,v,x);return;case"data":if(h!=="object"){Da(c,"data",v);break}case"src":case"href":if(v===""&&(h!=="a"||p!=="href")){c.removeAttribute(p);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){c.removeAttribute(p);break}v=Q(v),c.setAttribute(p,v);break;case"action":case"formAction":if(typeof v=="function"){c.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(p==="formAction"?(h!=="input"&&cn(c,h,"name",S.name,S,null),cn(c,h,"formEncType",S.formEncType,S,null),cn(c,h,"formMethod",S.formMethod,S,null),cn(c,h,"formTarget",S.formTarget,S,null)):(cn(c,h,"encType",S.encType,S,null),cn(c,h,"method",S.method,S,null),cn(c,h,"target",S.target,S,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){c.removeAttribute(p);break}v=Q(v),c.setAttribute(p,v);break;case"onClick":v!=null&&(c.onclick=we);return;case"onScroll":v!=null&&Mt("scroll",c);return;case"onScrollEnd":v!=null&&Mt("scrollend",c);return;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(p=v.__html,p!=null){if(S.children!=null)throw Error(r(60));x?.__html!==p&&(c.innerHTML=p)}}break;case"multiple":c.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":c.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){c.removeAttribute("xlink:href");break}p=Q(v),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?c.setAttribute(p,v):c.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?c.setAttribute(p,""):c.removeAttribute(p);break;case"capture":case"download":v===!0?c.setAttribute(p,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?c.setAttribute(p,v):c.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?c.setAttribute(p,v):c.removeAttribute(p);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?c.removeAttribute(p):c.setAttribute(p,v);break;case"popover":Mt("beforetoggle",c),Mt("toggle",c),Ei(c,"popover",v);break;case"xlinkActuate":ni(c,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":ni(c,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":ni(c,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":ni(c,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":ni(c,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":ni(c,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":ni(c,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":ni(c,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":ni(c,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":Ei(c,"is",v);break;case"innerText":case"textContent":return;default:if(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")p=_.get(p)||p,Ei(c,p,v);else return}bt=!0}function LP(c,h,p,v,S,x){switch(p){case"style":Ng(c,v,x);return;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(p=v.__html,p!=null){if(S.children!=null)throw Error(r(60));x?.__html!==p&&(c.innerHTML=p)}}break;case"children":if(typeof v=="string")Ut(c,v);else if(typeof v=="number"||typeof v=="bigint")Ut(c,""+v);else return;break;case"onScroll":v!=null&&Mt("scroll",c);return;case"onScrollEnd":v!=null&&Mt("scrollend",c);return;case"onClick":v!=null&&(c.onclick=we);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Oa.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(S=p.endsWith("Capture"),x=p.slice(2,S?p.length-7:void 0),h=c[Vn]||null,h=h!=null?h[p]:null,typeof h=="function"&&c.removeEventListener(x,h,S),typeof v=="function")){typeof h!="function"&&h!==null&&(p in c?c[p]=null:c.hasAttribute(p)&&c.removeAttribute(p)),c.addEventListener(x,v,S);break e}bt=!0,p in c?c[p]=v:v===!0?c.setAttribute(p,""):Ei(c,p,v)}return}bt=!0}function Di(c,h,p){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Mt("error",c),Mt("load",c);var v=!1,S=!1,x;for(x in p)if(p.hasOwnProperty(x)){var I=p[x];if(I!=null)switch(x){case"src":v=!0;break;case"srcSet":S=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,h));default:cn(c,h,x,I,p,null)}}S&&cn(c,h,"srcSet",p.srcSet,p,null),v&&cn(c,h,"src",p.src,p,null);return;case"input":Mt("invalid",c);var V=x=I=S=null,Z=null,le=null;for(v in p)if(p.hasOwnProperty(v)){var pe=p[v];if(pe!=null)switch(v){case"name":S=pe;break;case"type":I=pe;break;case"checked":Z=pe;break;case"defaultChecked":le=pe;break;case"value":x=pe;break;case"defaultValue":V=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,h));break;default:cn(c,h,v,pe,p,null)}}Ft(c,x,V,Z,le,I,S,!1);return;case"select":Mt("invalid",c),v=I=x=null;for(S in p)if(p.hasOwnProperty(S)&&(V=p[S],V!=null))switch(S){case"value":x=V;break;case"defaultValue":I=V;break;case"multiple":v=V;default:cn(c,h,S,V,p,null)}h=x,p=I,c.multiple=!!v,h!=null?Rn(c,!!v,h,!1):p!=null&&Rn(c,!!v,p,!0);return;case"textarea":Mt("invalid",c),x=S=v=null;for(I in p)if(p.hasOwnProperty(I)&&(V=p[I],V!=null))switch(I){case"value":v=V;break;case"defaultValue":S=V;break;case"children":x=V;break;case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(91));break;default:cn(c,h,I,V,p,null)}Ma(c,v,S,x);return;case"option":for(Z in p)p.hasOwnProperty(Z)&&(v=p[Z],v!=null)&&(Z==="selected"?c.selected=v&&typeof v!="function"&&typeof v!="symbol":cn(c,h,Z,v,p,null));return;case"dialog":Mt("beforetoggle",c),Mt("toggle",c),Mt("cancel",c),Mt("close",c);break;case"iframe":case"object":Mt("load",c);break;case"video":case"audio":for(v=0;v<$v.length;v++)Mt($v[v],c);break;case"image":Mt("error",c),Mt("load",c);break;case"details":Mt("toggle",c);break;case"embed":case"source":case"link":Mt("error",c),Mt("load",c);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in p)if(p.hasOwnProperty(le)&&(v=p[le],v!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,h));default:cn(c,h,le,v,p,null)}return;default:if(yh(h)){for(pe in p)p.hasOwnProperty(pe)&&(v=p[pe],v!==void 0&&LP(c,h,pe,v,p,void 0));return}}for(V in p)p.hasOwnProperty(V)&&(v=p[V],v!=null&&cn(c,h,V,v,p,null))}var yme={};function bme(c,h,p,v){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,x=null,I=null,V=null,Z=null,le=null,pe=null;for(he in p){var Ae=p[he];if(p.hasOwnProperty(he)&&Ae!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":Z=Ae;default:v.hasOwnProperty(he)||cn(c,h,he,null,v,Ae)}}for(var oe in v){var he=v[oe];if(Ae=p[oe],v.hasOwnProperty(oe)&&(he!=null||Ae!=null))switch(oe){case"type":he!==Ae&&(bt=!0),x=he;break;case"name":he!==Ae&&(bt=!0),S=he;break;case"checked":he!==Ae&&(bt=!0),le=he;break;
vendor: 17,995 bytes, line 9
9case"defaultChecked":he!==Ae&&(bt=!0),pe=he;break;case"value":he!==Ae&&(bt=!0),I=he;break;case"defaultValue":he!==Ae&&(bt=!0),V=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,h));break;default:he!==Ae&&cn(c,h,oe,he,v,Ae)}}lt(c,I,V,Z,le,pe,x,S);return;case"select":he=I=V=oe=null;for(x in p)if(Z=p[x],p.hasOwnProperty(x)&&Z!=null)switch(x){case"value":break;case"multiple":he=Z;default:v.hasOwnProperty(x)||cn(c,h,x,null,v,Z)}for(S in v)if(x=v[S],Z=p[S],v.hasOwnProperty(S)&&(x!=null||Z!=null))switch(S){case"value":x!==Z&&(bt=!0),oe=x;break;case"defaultValue":x!==Z&&(bt=!0),V=x;break;case"multiple":x!==Z&&(bt=!0),I=x;default:x!==Z&&cn(c,h,S,x,v,Z)}h=V,p=I,v=he,oe!=null?Rn(c,!!p,oe,!1):!!v!=!!p&&(h!=null?Rn(c,!!p,h,!0):Rn(c,!!p,p?[]:"",!1));return;case"textarea":he=oe=null;for(V in p)if(S=p[V],p.hasOwnProperty(V)&&S!=null&&!v.hasOwnProperty(V))switch(V){case"value":break;case"children":break;default:cn(c,h,V,null,v,S)}for(I in v)if(S=v[I],x=p[I],v.hasOwnProperty(I)&&(S!=null||x!=null))switch(I){case"value":S!==x&&(bt=!0),oe=S;break;case"defaultValue":S!==x&&(bt=!0),he=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:S!==x&&cn(c,h,I,S,v,x)}Qn(c,oe,he);return;case"option":for(var He in p)oe=p[He],p.hasOwnProperty(He)&&oe!=null&&!v.hasOwnProperty(He)&&(He==="selected"?c.selected=!1:cn(c,h,He,null,v,oe));for(Z in v)oe=v[Z],he=p[Z],v.hasOwnProperty(Z)&&oe!==he&&(oe!=null||he!=null)&&(Z==="selected"?(oe!==he&&(bt=!0),c.selected=oe&&typeof oe!="function"&&typeof oe!="symbol"):cn(c,h,Z,oe,v,he));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Je in p)oe=p[Je],p.hasOwnProperty(Je)&&oe!=null&&!v.hasOwnProperty(Je)&&cn(c,h,Je,null,v,oe);for(le in v)if(oe=v[le],he=p[le],v.hasOwnProperty(le)&&oe!==he&&(oe!=null||he!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,h));break;default:cn(c,h,le,oe,v,he)}return;default:if(yh(h)){for(var xt in p)oe=p[xt],p.hasOwnProperty(xt)&&oe!==void 0&&!v.hasOwnProperty(xt)&&LP(c,h,xt,void 0,v,oe);for(pe in v)oe=v[pe],he=p[pe],!v.hasOwnProperty(pe)||oe===he||oe===void 0&&he===void 0||LP(c,h,pe,oe,v,he);return}}for(var ae in p)oe=p[ae],p.hasOwnProperty(ae)&&oe!=null&&!v.hasOwnProperty(ae)&&cn(c,h,ae,null,v,oe);for(Ae in v)oe=v[Ae],he=p[Ae],!v.hasOwnProperty(Ae)||oe===he||oe==null&&he==null||cn(c,h,Ae,oe,v,he)}function M4(c){switch(c){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wme(){if(typeof performance.getEntriesByType=="function"){for(var c=0,h=0,p=performance.getEntriesByType("resource"),v=0;v<p.length;v++){var S=p[v],x=S.transferSize,I=S.initiatorType,V=S.duration;if(x&&V&&M4(I)){for(I=0,V=S.responseEnd,v+=1;v<p.length;v++){var Z=p[v],le=Z.startTime;if(le>V)break;var pe=Z.transferSize,Ae=Z.initiatorType;pe&&M4(Ae)&&(Z=Z.responseEnd,I+=pe*(Z<V?1:(V-le)/(Z-le)))}if(--v,h+=8*(x+I)/(S.duration/1e3),c++,10<c)break}}if(0<c)return h/c/1e6}return navigator.connection&&(c=navigator.connection.downlink,typeof c=="number")?c:5}var NP=null,BP=null;function Kv(c){return c.nodeType===9?c:c.ownerDocument}function I4(c){switch(c){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _4(c,h){if(c===0)switch(h){case"svg":return 1;case"math":return 2;default:return 0}return c===1&&h==="foreignObject"?0:c}function F4(c,h,p,v){return p=Kv(p).createElement(c),p[Xt]=v,p[Vn]=h,Di(p,c,h),yn(p),p}function HP(c,h){return c==="textarea"||c==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.children=="bigint"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var VP=null;function Cme(){var c=window.event;return c&&c.type==="popstate"?c===VP?!1:(VP=c,!0):(VP=null,!1)}var zP=typeof setTimeout=="function"?setTimeout:void 0,Sme=typeof clearTimeout=="function"?clearTimeout:void 0,k4=typeof Promise=="function"?Promise:void 0,L4=typeof requestAnimationFrame=="function"?requestAnimationFrame:zP,xme=typeof queueMicrotask=="function"?queueMicrotask:typeof k4<"u"?function(c){return k4.resolve(null).then(c).catch(Eme)}:zP;function Eme(c){setTimeout(function(){throw c})}function od(c){return c==="head"}function N4(c,h){var p=h,v=0;do{var S=p.nextSibling;if(c.removeChild(p),S&&S.nodeType===8)if(p=S.data,p==="/$"||p==="/&"){if(v===0){c.removeChild(S),yp(h);return}v--}else if(p==="$"||p==="$?"||p==="$~"||p==="$!"||p==="&")v++;else if(p==="html")YP(c.ownerDocument.documentElement);else if(p==="head"){p=c.ownerDocument.head,YP(p);for(var x=p.firstChild;x;){var I=x.nextSibling,V=x.nodeName;x[Ta]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&x.rel.toLowerCase()==="stylesheet"||p.removeChild(x),x=I}}else p==="body"&&YP(c.ownerDocument.body);p=S}while(p);yp(h)}function B4(c,h){var p=c;c=0;do{var v=p.nextSibling;if(p.nodeType===1?h?(p._stashedDisplay=p.style.display,p.style.display="none"):(p.style.display=p._stashedDisplay||"",p.getAttribute("style")===""&&p.removeAttribute("style")):p.nodeType===3&&(h?(p._stashedText=p.nodeValue,p.nodeValue=""):p.nodeValue=p._stashedText||""),v&&v.nodeType===8)if(p=v.data,p==="/$"){if(c===0)break;c--}else p!=="$"&&p!=="$?"&&p!=="$~"&&p!=="$!"||c++;p=v}while(p)}function H4(c,h,p){if(h=CSS.escape(h)!==h?"r-"+btoa(h).replace(/=/g,""):h,c.style.viewTransitionName=h,p!=null&&(c.style.viewTransitionClass=p),p=getComputedStyle(c),p.display==="inline"){if(h=c.getClientRects(),h.length===1)var v=1;else for(var S=v=0;S<h.length;S++){var x=h[S];0<x.width&&0<x.height&&v++}v===1&&(c=c.style,c.display=h.length===1?"inline-block":"block",c.marginTop="-"+p.paddingTop,c.marginBottom="-"+p.paddingBottom)}}function V4(c,h){c=c.style,h=h.style;var p=h!=null?h.hasOwnProperty("viewTransitionName")?h.viewTransitionName:h.hasOwnProperty("view-transition-name")?h["view-transition-name"]:null:null;c.viewTransitionName=p==null||typeof p=="boolean"?"":(""+p).trim(),p=h!=null?h.hasOwnProperty("viewTransitionClass")?h.viewTransitionClass:h.hasOwnProperty("view-transition-class")?h["view-transition-class"]:null:null,c.viewTransitionClass=p==null||typeof p=="boolean"?"":(""+p).trim(),c.display==="inline-block"&&(h==null?c.display=c.margin="":(p=h.display,c.display=p==null||typeof p=="boolean"?"":p,p=h.margin,p!=null?c.margin=p:(p=h.hasOwnProperty("marginTop")?h.marginTop:h["margin-top"],c.marginTop=p==null||typeof p=="boolean"?"":p,h=h.hasOwnProperty("marginBottom")?h.marginBottom:h["margin-bottom"],c.marginBottom=h==null||typeof h=="boolean"?"":h)))}function Rme(c,h,p){return p=p.ownerDocument.defaultView,{rect:c,abs:h.position==="absolute"||h.position==="fixed",clip:h.clipPath!=="none"||h.overflow!=="visible"||h.filter!=="none"||h.mask!=="none"||h.mask!=="none"||h.borderRadius!=="0px",view:0<=c.bottom&&0<=c.right&&c.top<=p.innerHeight&&c.left<=p.innerWidth}}function GP(c){var h=c.getBoundingClientRect(),p=getComputedStyle(c);return Rme(h,p,c)}function Ame(c){return c.documentElement.clientHeight}function Tme(c){this.addEventListener("load",c),this.addEventListener("error",c)}function Pme(c,h,p,v,S,x,I,V,Z){var le=h.nodeType===9?h:h.ownerDocument;try{var pe=le.startViewTransition({update:function(){var oe=le.defaultView,he=oe.navigation&&oe.navigation.transition,He=le.fonts.status;v();var Je=[];if(He==="loaded"&&(Ame(le),le.fonts.status==="loading"&&Je.push(le.fonts.ready)),He=Je.length,c!==null)for(var xt=c.suspenseyImages,ae=0,ee=0;ee<xt.length;ee++){var ce=xt[ee];if(!ce.complete){var Re=ce.getBoundingClientRect();if(0<Re.bottom&&0<Re.right&&Re.top<oe.innerHeight&&Re.left<oe.innerWidth){if(ae+=aG(ce),ae>P0){Je.length=He;break}ce=new Promise(Tme.bind(ce)),Je.push(ce)}}}if(0<Je.length)return oe=Promise.race([Promise.all(Je),new Promise(function(Xe){return setTimeout(Xe,500)})]).then(S,S),(he?Promise.allSettled([he.finished,oe]):oe).then(x,x);if(S(),he)return he.finished.then(x,x);x()},types:p});le.__reactViewTransition=pe;var Ae=[];return pe.ready.then(function(){for(var oe=le.documentElement.getAnimations({subtree:!0}),he=0;he<oe.length;he++){var He=oe[he],Je=He.effect,xt=Je.pseudoElement;if(xt!=null&&xt.startsWith("::view-transition")){Ae.push(He),He=Je.getKeyframes();for(var ae=xt=void 0,ee=!0,ce=0;ce<He.length;ce++){var Re=He[ce],Xe=Re.width;if(xt===void 0)xt=Xe;else if(xt!==Xe){ee=!1;break}if(Xe=Re.height,ae===void 0)ae=Xe;else if(ae!==Xe){ee=!1;break}delete Re.width,delete Re.height,Re.transform==="none"&&delete Re.transform}ee&&xt!==void 0&&ae!==void 0&&(Je.setKeyframes(He),ee=getComputedStyle(Je.target,Je.pseudoElement),ee.width!==xt||ee.height!==ae)&&(ee=He[0],ee.width=xt,ee.height=ae,ee=He[He.length-1],ee.width=xt,ee.height=ae,Je.setKeyframes(He))}}I()},function(oe){le.__reactViewTransition===pe&&(le.__reactViewTransition=null);try{typeof oe=="object"&&oe!==null&&oe.name==="InvalidStateError"&&(oe.message==="View transition was skipped because document visibility state is hidden."||oe.message==="Skipping view transition because document visibility state has become hidden."||oe.message==="Skipping view transition because viewport size changed."||oe.message==="Transition was aborted because of invalid state")&&(oe=null),oe!==null&&Z(oe)}finally{v(),S(),I()}}),pe.finished.finally(function(){for(var oe=0;oe<Ae.length;oe++)Ae[oe].cancel();le.__reactViewTransition===pe&&(le.__reactViewTransition=null),V()}),pe}catch{return v(),S(),I(),null}}function Bh(c,h){this._scope=document.documentElement,this._selector="::view-transition-"+c+"("+h+")"}Bh.prototype.animate=function(c,h){return h=typeof h=="number"?{duration:h}:D({},h),h.pseudoElement=this._selector,this._scope.animate(c,h)},Bh.prototype.getAnimations=function(){for(var c=this._scope,h=this._selector,p=c.getAnimations({subtree:!0}),v=[],S=0;S<p.length;S++){var x=p[S].effect;x!==null&&x.target===c&&x.pseudoElement===h&&v.push(p[S])}return v},Bh.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function z4(c){return{name:c,group:new Bh("group",c),imagePair:new Bh("image-pair",c),old:new Bh("old",c),new:new Bh("new",c)}}function fs(c){this._fragmentFiber=c,this._observers=this._eventListeners=null}fs.prototype.addEventListener=function(c,h,p){var v=null,S=null;if(!(p!=null&&typeof p!="boolean"&&(v=p.signal||null,v!==null&&v.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var x=this._eventListeners;if(j4(x,c,h,p)===-1){var I=this,V=h;p!=null&&typeof p!="boolean"&&p.once===!0&&(V=function(Z){I.removeEventListener(c,h,p),typeof h=="function"?h.call(this,Z):h.handleEvent(Z)}),v!==null&&(S=I.removeEventListener.bind(I,c,h,p),v.addEventListener("abort",S,{once:!0}),S=v.removeEventListener.bind(v,"abort",S)),v=hp(p),x.push({type:c,listener:h,optionsOrUseCapture:p,attachedListener:V,cleanup:S}),f(this._fragmentFiber.child,!1,Ome,c,V,v)}this._eventListeners=x}};function Ome(c,h,p,v){return w(c).addEventListener(h,p,v),!1}fs.prototype.removeEventListener=function(c,h,p){var v=this._eventListeners;if(v!==null&&(h=j4(v,c,h,p),h!==-1)){var S=v[h];p=S.attachedListener;var x=S.cleanup;S=hp(S.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Dme,c,p,S),v.splice(h,1),x!==null&&x()}};function Dme(c,h,p,v){return w(c).removeEventListener(h,p,v),!1}function hp(c){return c!=null&&typeof c!="boolean"&&(c.once===!0||c.signal instanceof AbortSignal)?{capture:c.capture,passive:c.passive}:c}function G4(c){return c==null?"c=0":typeof c=="boolean"?"c="+(c?"1":"0"):"c="+(c.capture?"1":"0")}function j4(c,h,p,v){if(c.length===0)return-1;v=G4(v);for(var S=0;S<c.length;S++){var x=c[S];if(x.type===h&&x.listener===p&&G4(x.optionsOrUseCapture)===v)return S}return-1}fs.prototype.dispatchEvent=function(c){var h=g(this._fragmentFiber);if(h===null)return!0;h=w(h);var p=this._eventListeners;if(p!==null&&0<p.length||!c.bubbles){var v=h.nodeType===9?h.createComment(""):document.createTextNode("");if(p)for(var S=0;S<p.length;S++){var x=p[S];v.addEventListener(x.type,x.attachedListener,hp(x.optionsOrUseCapture))}if(h.appendChild(v),c=v.dispatchEvent(c),p)for(S=0;S<p.length;S++)x=p[S],v.removeEventListener(x.type,x.attachedListener,hp(x.optionsOrUseCapture));return h.removeChild(v),c}return h.dispatchEvent(c)},fs.prototype.focus=function(c){f(this._fragmentFiber.child,!0,U4,c,void 0,void 0)};function U4(c,h){return c.tag===6?!1:(c=w(c),Gme(c,h))}fs.prototype.focusLast=function(c){var h=[];f(this._fragmentFiber.child,!0,jP,h,void 0,void 0);for(var p=h.length-1;0<=p&&!U4(h[p],c);p--);};function jP(c,h){return h.push(c),!1}fs.prototype.blur=function(){var c=g(this._fragmentFiber);c!==null&&(c=w(c),c=Kv(c).activeElement,c!==null&&f(this._fragmentFiber.child,!1,Mme,c,void 0,void 0))};function Mme(c,h){return c.tag===6?!1:(c=w(c),c===h||c.contains(h)?(h.blur(),!0):!1)}fs.prototype.observeUsing=function(c){this._observers===null&&(this._observers=new Set),this._observers.add(c),f(this._fragmentFiber.child,!1,Ime,c,void 0,void 0)};function Ime(c,h){return c.tag===6||(c=w(c),h.observe(c)),!1}fs.prototype.unobserveUsing=function(c){var h=this._observers;if(h!==null&&h.has(c)){h.delete(c),f(this._fragmentFiber.child,!1,_me,c,void 0,void 0);for(var p=h=0;p<Na.length;p++){var v=Na[p];v.fragmentInstance===this&&v.observer===c?c.unobserve(v.instance):Na[h++]=v}Na.length=h}};function _me(c,h){return c.tag===6||(c=w(c),h.unobserve(c)),!1}var Na=[],UP=!1;function Fme(c,h,p){Na.push({fragmentInstance:c,observer:h,instance:p}),UP||(UP=!0,jme(function(){UP=!1;var v=Na;Na=[];for(var S=0;S<v.length;S++){var x=v[S];x.observer.unobserve(x.instance)}}))}fs.prototype.getClientRects=function(){var c=[];return f(this._fragmentFiber.child,!1,kme,c,void 0,void 0),c};function kme(c,h){if(c.tag===6){c=c.stateNode;var p=c.ownerDocument.createRange();p.selectNodeContents(c),h.push.apply(h,p.getClientRects())}else c=w(c),h.push.apply(h,c.getClientRects());return!1}fs.prototype.getRootNode=function(c){var h=g(this._fragmentFiber);return h===null?this:w(h).getRootNode(c)},fs.prototype.compareDocumentPosition=function(c){var h=g(this._fragmentFiber);if(h===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var p=[];f(this._fragmentFiber.child,!1,jP,p,void 0,void 0);var v=w(h);if(p.length===0){if(p=v,m(this._fragmentFiber)){e:{for(h=this._fragmentFiber.return;h!==null;){if(h.tag===4){h=h.stateNode.containerInfo;break e}if(h.tag===3||h.tag===5||h.tag===27)break;h=h.return}h=null}h!=null&&(p=h)}h=this._fragmentFiber;var S=v=p.compareDocumentPosition(c);return p===c?S=Node.DOCUMENT_POSITION_CONTAINS:v&Node.DOCUMENT_POSITION_CONTAINED_BY&&(p=y(h)[1],p===null?S=Node.DOCUMENT_POSITION_PRECEDING:(c=w(p).compareDocumentPosition(c),S=c===0||c&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),S|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}h=w(p[0]),S=w(p[p.length-1]);var x=m(this._fragmentFiber)?h.parentElement:v;if(x==null)return Node.DOCUMENT_POSITION_DISCONNECTED;v=x.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY,x=x.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_CONTAINED_BY;var I=h.compareDocumentPosition(c),V=S.compareDocumentPosition(c),Z=I&Node.DOCUMENT_POSITION_CONTAINED_BY||V&Node.DOCUMENT_POSITION_CONTAINED_BY;return V=v&&x&&I&Node.DOCUMENT_POSITION_FOLLOWING&&V&Node.DOCUMENT_POSITION_PRECEDING,h=v&&h===c||x&&S===c||Z||V?Node.DOCUMENT_POSITION_CONTAINED_BY:!v&&h===c||!x&&S===c?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:I,h&Node.DOCUMENT_POSITION_DISCONNECTED||h&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Lme(h,this._fragmentFiber,p[0],p[p.length-1],c)?h:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Lme(c,h,p,v,S){var x=Jr(S);if(c&Node.DOCUMENT_POSITION_CONTAINED_BY){if(p=!!x)e:{for(;x!==null;){if(x.tag===7&&(x===h||x.alternate===h)){p=!0;break e}x=x.return}p=!1}return p}if(c&Node.DOCUMENT_POSITION_CONTAINS){if(x===null)return x=S.ownerDocument,S===x||S===x.documentElement||S===x.body;e:{for(x=h,h=g(h);x!==null;){if(!(x.tag!==5&&x.tag!==3&&x.tag!==27||x!==h&&x.alternate!==h)){x=!0;break e}x=x.return}x=!1}return x}return c&Node.DOCUMENT_POSITION_PRECEDING?((h=!!x)&&!(h=x===p)&&(h=O(p,x,P),h===null?h=!1:(f(h,!0,A,x,p),x=C,C=null,h=x!==null)),h):c&Node.DOCUMENT_POSITION_FOLLOWING?((h=!!x)&&!(h=x===v)&&(h=O(v,x,P),h===null?h=!1:(f(h,!0,T,x,v),x=C,E=C=null,h=x!==null)),h):!1}function W4(c,h){var p=c.ownerDocument.createRange();p.selectNodeContents(c),c=p.getBoundingClientRect(),window.scrollTo(window.scrollX+c.left,h?window.scrollY+c.top:window.scrollY+c.bottom-window.innerHeight)}fs.prototype.scrollIntoView=function(c){if(typeof c=="object")throw Error(r(566));var h=[];f(this._fragmentFiber.child,!1,jP,h,void 0,void 0);var p=c!==!1;if(h.length===0){var v=y(this._fragmentFiber);if(v=p?v[1]||v[0]||g(this._fragmentFiber):v[0]||v[1],v===null)return;if(v.tag===6){c=w(v),W4(c,p);return}if(v=w(v),v.nodeType!==9){if(v.nodeType===11){p="host"in v?v.host:null,p!==null&&p.scrollIntoView(c);return}v.scrollIntoView(c)}}for(v=p?h.length-1:0;v!==(p?-1:h.length);){var S=h[v];S.tag===6?(S=w(S),W4(S,p)):w(S).scrollIntoView(c),v+=p?-1:1}};function Nme(c,h){return c=w(c),$4(c,h),!1}function $4(c,h){c.reactFragments==null&&(c.reactFragments=new Set),c.reactFragments.add(h)}function q4(c,h){var p=h._eventListeners;if(p!==null)for(var v=0;v<p.length;v++){var S=p[v];c.addEventListener(S.type,S.attachedListener,hp(S.optionsOrUseCapture))}c.nodeType!==3&&(p=h._observers,p!==null&&p.forEach(function(x){for(var I=0,V=0;V<Na.length;V++){var Z=Na[V];(Z.fragmentInstance!==h||Z.observer!==x||Z.instance!==c)&&(Na[I++]=Z)}Na.length=I,x.observe(c)}),$4(c,h))}function Bme(c,h){var p=h._eventListeners;if(p!==null)for(var v=0;v<p.length;v++){var S=p[v];c.removeEventListener(S.type,S.attachedListener,hp(S.optionsOrUseCapture))}c.nodeType!==3&&(p=h._observers,p!==null&&p.forEach(function(x){typeof x.rootMargin=="str
9ing"?Fme(h,x,c):x.unobserve(c)}),c.reactFragments!=null&&c.reactFragments.delete(h))}function WP(c){var h=c.firstChild;for(h&&h.nodeType===10&&(h=h.nextSibling);h;){var p=h;switch(h=h.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":WP(p),ko(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}c.removeChild(p)}}function Hme(c,h,p,v){for(;c.nodeType===1;){var S=p;if(c.nodeName.toLowerCase()!==h.toLowerCase()){if(!v&&(c.nodeName!=="INPUT"||c.type!=="hidden"))break}else if(v){if(!c[Ta])switch(h){case"meta":if(!c.hasAttribute("itemprop"))break;return c;case"link":if(x=c.getAttribute("rel"),x==="stylesheet"&&c.hasAttribute("data-precedence"))break;if(x!==S.rel||c.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||c.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||c.getAttribute("title")!==(S.title==null?null:S.title))break;return c;case"style":if(c.hasAttribute("data-precedence"))break;return c;case"script":if(x=c.getAttribute("src"),(x!==(S.src==null?null:S.src)||c.getAttribute("type")!==(S.type==null?null:S.type)||c.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&x&&c.hasAttribute("async")&&!c.hasAttribute("itemprop"))break;return c;default:return c}}else if(h==="input"&&c.type==="hidden"){var x=S.name==null?null:""+S.name;if(S.type==="hidden"&&c.getAttribute("name")===x)return c}else return c;if(c=Gs(c.nextSibling),c===null)break}return null}function Vme(c,h,p){if(h==="")return null;for(;c.nodeType!==3;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!p||(c=Gs(c.nextSibling),c===null))return null;return c}function K4(c,h){for(;c.nodeType!==8;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!h||(c=Gs(c.nextSibling),c===null))return null;return c}function $P(c){return c.data==="$?"||c.data==="$~"}function qP(c){return c.data==="$!"||c.data==="$?"&&c.ownerDocument.readyState!=="loading"}function zme(c,h){var p=c.ownerDocument;if(c.data==="$~")c._reactRetry=h;else if(c.data!=="$?"||p.readyState!=="loading")h();else{var v=function(){h(),p.removeEventListener("DOMContentLoaded",v)};p.addEventListener("DOMContentLoaded",v),c._reactRetry=v}}function Gs(c){for(;c!=null;c=c.nextSibling){var h=c.nodeType;if(h===1||h===3)break;if(h===8){if(h=c.data,h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"||h==="F!"||h==="F")break;if(h==="/$"||h==="/&")return null}}return c}var KP=null;function Y4(c){c=c.nextSibling;for(var h=0;c;){if(c.nodeType===8){var p=c.data;if(p==="/$"||p==="/&"){if(h===0)return Gs(c.nextSibling);h--}else p!=="$"&&p!=="$!"&&p!=="$?"&&p!=="$~"&&p!=="&"||h++}c=c.nextSibling}return null}function X4(c){c=c.previousSibling;for(var h=0;c;){if(c.nodeType===8){var p=c.data;if(p==="$"||p==="$!"||p==="$?"||p==="$~"||p==="&"){if(h===0)return c;h--}else p!=="/$"&&p!=="/&"||h++}c=c.previousSibling}return null}function Gme(c,h){function p(){v=!0}if(c.ownerDocument.activeElement===c)return!0;var v=!1;try{c.ownerDocument.addEventListener("focus",p,!0),(c.focus||HTMLElement.prototype.focus).call(c,h)}finally{c.ownerDocument.removeEventListener("focus",p,!0)}return v}function jme(c){L4(function(){L4(function(h){return c(h)})})}function Z4(c,h,p){switch(h=Kv(p),c){case"html":if(c=h.documentElement,!c)throw Error(r(452));return c;case"head":if(c=h.head,!c)throw Error(r(453));return c;case"body":if(c=h.body,!c)throw Error(r(454));return c;default:throw Error(r(451))}}function Q4(c,h,p){for(var v in p){var S=p[v];p.hasOwnProperty(v)&&S!=null&&cn(c,h,v,null,yme,S)}p.dangerouslySetInnerHTML!=null&&(c.textContent=""),c.onclick===we&&(c.onclick=null),ko(c)}function YP(c){for(var h=c.attributes;h.length;)c.removeAttributeNode(h[0]);ko(c)}var js=new Map,J4=new Set;function Yv(c){if(typeof c.getRootNode=="function"){var h=c.getRootNode();if(h.nodeType===9||h.nodeType===11)return h}return c.nodeType===9?c:c.ownerDocument}var Hu=J.d;J.d={f:Ume,r:Wme,D:$me,C:qme,L:Kme,m:Yme,X:Zme,S:Xme,M:Qme};function Ume(){var c=Hu.f(),h=b0();return c||h}function Wme(c){var h=ei(c);h!==null&&h.tag===5&&h.type==="form"?tz(h):Hu.r(c)}var fp=typeof document>"u"?null:document;function eG(c,h,p){var v=fp;
vendor: 1,684 bytes, line 9
9if(v&&typeof h=="string"&&h){var S=je(h);S='link[rel="'+c+'"][href="'+S+'"]',typeof p=="string"&&(S+='[crossorigin="'+p+'"]'),J4.has(S)||(J4.add(S),c={rel:c,crossOrigin:p,href:h},v.querySelector(S)===null&&(h=v.createElement("link"),Di(h,"link",c),yn(h),v.head.appendChild(h)))}}function $me(c){Hu.D(c),eG("dns-prefetch",c,null)}function qme(c,h){Hu.C(c,h),eG("preconnect",c,h)}function Kme(c,h,p){Hu.L(c,h,p);var v=fp;if(v&&c&&h){var S='link[rel="preload"][as="'+je(h)+'"]';h==="image"&&p&&p.imageSrcSet?(S+='[imagesrcset="'+je(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(S+='[imagesizes="'+je(p.imageSizes)+'"]')):S+='[href="'+je(c)+'"]';var x=S;switch(h){case"style":x=gp(c);break;case"script":x=pp(c)}if(!(js.has(x)||(c=D({rel:"preload",href:h==="image"&&p&&p.imageSrcSet?void 0:c,as:h},p),js.set(x,c),v.querySelector(S)!==null||h==="style"&&v.querySelector(Xv(x))||h==="script"&&v.querySelector(Zv(x))))){var I=v.createElement("link");Di(I,"link",c),h==="style"&&(I[Pa]=!0,I.onload=I.onerror=function(){Si(I)}),yn(I),v.head.appendChild(I)}}}function Yme(c,h){Hu.m(c,h);var p=fp;if(p&&c){var v=h&&typeof h.as=="string"?h.as:"script",S='link[rel="modulepreload"][as="'+je(v)+'"][href="'+je(c)+'"]',x=S;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=pp(c)}if(!js.has(x)&&(c=D({rel:"modulepreload",href:c},h),js.set(x,c),p.querySelector(S)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(Zv(x)))return}v=p.createElement("link"),Di(v,"link",c),yn(v),p.head.appendChild(v)}}}function Xme(c,h,p){Hu.S(c,h,p);var v=fp;
vendor: 1,133 bytes, line 9
9if(v&&c){var S=ti(v).hoistableStyles,x=gp(c);h=h||"default";var I=S.get(x);if(!I){var V={loading:0,preload:null};if(I=v.querySelector(Xv(x)))V.loading=5;else{c=D({rel:"stylesheet",href:c,"data-precedence":h},p),(p=js.get(x))&&XP(c,p);var Z=I=v.createElement("link");yn(Z),Di(Z,"link",c),Z._p=new Promise(function(le,pe){Z.onload=le,Z.onerror=pe}),Z.addEventListener("load",function(){V.loading|=1}),Z.addEventListener("error",function(){V.loading|=2}),V.loading|=4,A0(I,h,v)}I={type:"stylesheet",instance:I,count:1,state:V},S.set(x,I)}}}function Zme(c,h){Hu.X(c,h);var p=fp;if(p&&c){var v=ti(p).hoistableScripts,S=pp(c),x=v.get(S);x||(x=p.querySelector(Zv(S)),x||(c=D({src:c,async:!0},h),(h=js.get(S))&&ZP(c,h),x=p.createElement("script"),yn(x),Di(x,"link",c),p.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},v.set(S,x))}}function Qme(c,h){Hu.M(c,h);var p=fp;if(p&&c){var v=ti(p).hoistableScripts,S=pp(c),x=v.get(S);x||(x=p.querySelector(Zv(S)),x||(c=D({src:c,async:!0,type:"module"},h),(h=js.get(S))&&ZP(c,h),x=p.createElement("script"),yn(x),Di(x,"link",c),p.head.appendChild(x)),x={type:"script",instance:x,c
vendor: 10,143 bytes, line 9
9ount:1,state:null},v.set(S,x))}}function tG(c,h,p,v){var S=(S=Ke.current)?Yv(S):null;if(!S)throw Error(r(446));switch(c){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(p=gp(p.href),h=ti(S).hoistableStyles,v=h.get(p),v||(v={type:"style",instance:null,count:0,state:null},h.set(p,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){c=gp(p.href);var x=ti(S).hoistableStyles,I=x.get(c);if(I||(S=S.ownerDocument||S,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(c,I),(x=S.querySelector(Xv(c)))?x._p||(I.instance=x,I.state.loading=5):(x=js.get(c),x||(x={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},js.set(c,x)),Jme(S,c,x,I.state))),h&&v===null)throw Error(r(528,""));return I}if(h&&v!==null)throw Error(r(529,""));return null;case"script":return h=p.async,p=p.src,typeof p=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(p=pp(p),h=ti(S).hoistableScripts,v=h.get(p),v||(v={type:"script",instance:null,count:0,state:null},h.set(p,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,c))}}function gp(c){return'href="'+je(c)+'"'}function Xv(c){return'link[rel="stylesheet"]['+c+"]"}function nG(c){return D({},c,{"data-precedence":c.precedence,precedence:null})}function Jme(c,h,p,v){if(h=c.querySelector('link[rel="preload"][as="style"]['+h+"]")){if(h[Pa]!==!0){v.loading=1;return}}else h=c.createElement("link"),h[Pa]=!0,h.onload=h.onerror=Si.bind(null,h),Di(h,"link",p),yn(h),c.head.appendChild(h);v.preload=h,h.addEventListener("load",function(){return v.loading|=1}),h.addEventListener("error",function(){return v.loading|=2})}function pp(c){return'[src="'+je(c)+'"]'}function Zv(c){return"script[async]"+c}function rG(c,h,p){if(h.count++,h.instance===null)switch(h.type){case"style":var v=c.querySelector('style[data-href~="'+je(p.href)+'"]');if(v)return h.instance=v,yn(v),v;var S=D({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return v=(c.ownerDocument||c).createElement("style"),yn(v),Di(v,"style",S),A0(v,p.precedence,c),h.instance=v;case"stylesheet":S=gp(p.href);var x=c.querySelector(Xv(S));if(x)return h.state.loading|=4,h.instance=x,yn(x),x;v=nG(p),(S=js.get(S))&&XP(v,S),x=(c.ownerDocument||c).createElement("link"),yn(x);var I=x;return I._p=new Promise(function(V,Z){I.onload=V,I.onerror=Z}),Di(x,"link",v),h.state.loading|=4,A0(x,p.precedence,c),h.instance=x;case"script":return x=pp(p.src),(S=c.querySelector(Zv(x)))?(h.instance=S,yn(S),S):(v=p,(S=js.get(x))&&(v=D({},p),ZP(v,S)),c=c.ownerDocument||c,S=c.createElement("script"),yn(S),Di(S,"link",v),c.head.appendChild(S),h.instance=S);case"void":return null;default:throw Error(r(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(v=h.instance,h.state.loading|=4,A0(v,p.precedence,c));return h.instance}function A0(c,h,p){for(var v=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=v.length?v[v.length-1]:null,x=S,I=0;I<v.length;I++){var V=v[I];if(V.dataset.precedence===h)x=V;else if(x!==S)break}x?x.parentNode.insertBefore(c,x.nextSibling):(h=p.nodeType===9?p.head:p,h.insertBefore(c,h.firstChild))}function XP(c,h){c.crossOrigin==null&&(c.crossOrigin=h.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=h.referrerPolicy),c.title==null&&(c.title=h.title)}function ZP(c,h){c.crossOrigin==null&&(c.crossOrigin=h.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=h.referrerPolicy),c.integrity==null&&(c.integrity=h.integrity)}var T0=null;function iG(c,h,p){if(T0===null){var v=new Map,S=T0=new Map;S.set(p,v)}else S=T0,v=S.get(p),v||(v=new Map,S.set(p,v));if(v.has(c))return v;for(v.set(c,null),p=p.getElementsByTagName(c),S=0;S<p.length;S++){var x=p[S];if(!(x[Ta]||x[Xt]||c==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var I=x.getAttribute(h)||"";I=c+I;var V=v.get(I);V?V.push(x):v.set(I,[x])}}return v}function QP(c,h,p){c=c.ownerDocument||c,c.head.insertBefore(p,h==="title"?c.querySelector("head > title"):null)}function eve(c,h,p){if(p===1||h.itemProp!=null)return!1;switch(c){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;return h.rel==="stylesheet"?(c=h.disabled,typeof h.precedence=="string"&&c==null):!0;case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function oG(c,h){return c==="img"&&h.src!=null&&h.src!==""&&h.onLoad==null&&h.loading!=="lazy"}function sG(c){return!(c.type==="stylesheet"&&(c.state.loading&3)===0)}function aG(c){return(c.width||100)*(c.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function lG(c,h){typeof h.decode=="function"&&(c.imgCount++,h.complete||(c.imgBytes+=aG(h),c.suspenseyImages.push(h)),c=rve.bind(c),h.decode().then(c,c))}function tve(c,h,p,v){if(p.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(p.state.loading&4)===0){if(p.instance===null){var S=gp(v.href),x=h.querySelector(Xv(S));if(x){h=x._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(c.count++,c=Qv.bind(c),h.then(c,c)),p.state.loading|=4,p.instance=x,yn(x);return}x=h.ownerDocument||h,v=nG(v),(S=js.get(S))&&XP(v,S),x=x.createElement("link"),yn(x);var I=x;I._p=new Promise(function(V,Z){I.onload=V,I.onerror=Z}),Di(x,"link",v),p.instance=x}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(p,h),(h=p.state.preload)&&(p.state.loading&3)===0&&(c.count++,p=Qv.bind(c),h.addEventListener("load",p),h.addEventListener("error",p))}}var P0=0;function nve(c,h){return c.stylesheets&&c.count===0&&D0(c,c.stylesheets),0<c.count||0<c.imgCount?function(p){var v=setTimeout(function(){if(c.stylesheets&&D0(c,c.stylesheets),c.unsuspend){var x=c.unsuspend;c.unsuspend=null,x()}},6e4+h);0<c.imgBytes&&P0===0&&(P0=62500*wme());var S=setTimeout(function(){if(c.waitingForImages=!1,c.count===0&&(c.stylesheets&&D0(c,c.stylesheets),c.unsuspend)){var x=c.unsuspend;c.unsuspend=null,x()}},(c.imgBytes>P0?50:800)+h);return c.unsuspend=p,function(){c.unsuspend=null,clearTimeout(v),clearTimeout(S)}}:null}function uG(c){if(c.count===0&&(c.imgCount===0||!c.waitingForImages)){if(c.stylesheets)D0(c,c.stylesheets);else if(c.unsuspend){var h=c.unsuspend;c.unsuspend=null,h()}}}function Qv(){this.count--,uG(this)}function rve(){this.imgCount--,uG(this)}var O0=null;function D0(c,h){c.stylesheets=null,c.unsuspend!==null&&(c.count++,O0=new Map,h.forEach(ive,c),O0=null,Qv.call(c))}function ive(c,h){if(!(h.state.loading&4)){var p=O0.get(c);if(p)var v=p.get(null);else{p=new Map,O0.set(c,p);for(var S=c.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<S.length;x++){var I=S[x];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(p.set(I.dataset.precedence,I),v=I)}v&&p.set(null,v)}S=h.instance,I=S.getAttribute("data-precedence"),x=p.get(I)||v,x===v&&p.set(null,S),p.set(I,S),this.count++,v=Qv.bind(this),S.addEventListener("load",v),S.addEventListener("error",v),x?x.parentNode.insertBefore(S,x.nextSibling):(c=c.nodeType===9?c.head:c,c.insertBefore(S,c.firstChild)),h.state.loading|=4}}var mp={$$typeof:z,Provider:null,Consumer:null,_currentValue:Fe,_currentValue2:Fe,_threadCount:0};function ove(c,h,p,v,S,x,I,V,Z){this.tag=1,this.containerInfo=c,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sn(0),this.hiddenUpdates=sn(null),this.identifierPrefix=v,this.onUncaughtError=S,this.onCaughtError=x,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.transitionTypes=null,this.incompleteTransitions=new Map}function cG(c,h,p,v,S,x,I,V,Z,le,pe,Ae){return c=new ove(c,h,p,I,Z,le,pe,Ae,V),h=1,x===!0&&(h|=24),x=Lo(3,null,null,h),c.current=x,x.stateNode=c,h=fT(),h.refCount++,c.pooledCache=h,h.refCount++,x.memoizedState={element:v,isDehydrated:p,cache:h},vT(x),c}function dG(c){return c?(c=Gg,c):Gg}function hG(c,h,p,v,S,x){S=dG(S),v.context===null?v.context=S:v.pendingContext=S,v=qc(h),v.payload={element:p},x=x===void 0?null:x,x!==null&&(v.callback=x),p=Kc(c,v,h),p!==null&&(Vo(p,c,h),Ov(p,c,h))}function fG(c,h){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var p=c.retryLane;c.retryLane=p!==0&&p<h?p:h}}function JP(c,h){fG(c,h),(c=c.alternate)&&fG(c,h)}function gG(c){if(c.tag===13||c.tag===31){var h=Ch(c,67108864);h!==null&&Vo(h,c,67108864),JP(c,67108864)}}function pG(c){if(c.tag===13||c.tag===31){var h=hs();h=gl(h);var p=Ch(c,h);p!==null&&Vo(p,c,h),JP(c,h)}}var vp=!0;function sve(c,h,p,v){var S=de.T;de.T=null;var x=J.p;try{J.p=2,eO(c,h,p,v)}finally{J.p=x,de.T=S}}function ave(c,h,p,v){var S=de.T;de.T=null;var x=J.p;try{J.p=8,eO(c,h,p,v)}finally{J.p=x,de.T=S}}function eO(c,h,p,v){if(vp){var S=tO(v);if(S===null)kP(c,h,v,M0,p),vG(c,v);else if(uve(S,c,h,p,v))v.stopPropagation();else if(vG(c,v),h&4&&-1<lve.indexOf(c)){for(;S!==null;){var x=ei(S);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var I=Fo(x.pendingLanes);if(I!==0){var V=x;for(V.pendingLanes|=2,V.entangledLanes|=2;I;){var Z=1<<31-vn(I);V.entanglements[1]|=Z,I&=~Z}Rl(x),(Qt&6)===0&&(m0=jt()+500,Wv(0))}}break;case 31:case 13:V=Ch(x,2),V!==null&&Vo(V,x,2),b0(),JP(x,2)}if(x=tO(v),x===null&&kP(c,h,v,M0,p),x===S)break;S=x}S!==null&&v.stopPropagation()}else kP(c,h,v,null,p)}}function tO(c){return c=it(c),nO(c)}var M0=null;function nO(c){if(M0=null,c=Jr(c),c!==null){var h=o(c);if(h===null)c=null;
vendor: 4,282 bytes, line 9
9else{var p=h.tag;if(p===13){if(c=s(h),c!==null)return c;c=null}else if(p===31){if(c=a(h),c!==null)return c;c=null}else if(p===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;c=null}else h!==c&&(c=null)}}return M0=c,null}function mG(c){switch(c){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bi()){case Vi:return 2;case qt:return 8;case wi:case Os:return 32;case Ra:return 268435456;default:return 32}default:return 32}}var rO=!1,sd=null,ad=null,ld=null,Jv=new Map,ey=new Map,ud=[],lve="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vG(c,h){switch(c){case"focusin":case"focusout":sd=null;break;case"dragenter":case"dragleave":ad=null;break;case"mouseover":case"mouseout":ld=null;break;case"pointerover":case"pointerout":Jv.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":ey.delete(h.pointerId)}}function ty(c,h,p,v,S,x){return c===null||c.nativeEvent!==x?(c={blockedOn:h,domEventName:p,eventSystemFlags:v,nativeEvent:x,targetContainers:[S]},h!==null&&(h=ei(h),h!==null&&gG(h)),c):(c.eventSystemFlags|=v,h=c.targetContainers,S!==null&&h.indexOf(S)===-1&&h.push(S),c)}function uve(c,h,p,v,S){switch(h){case"focusin":return sd=ty(sd,c,h,p,v,S),!0;case"dragenter":return ad=ty(ad,c,h,p,v,S),!0;case"mouseover":return ld=ty(ld,c,h,p,v,S),!0;case"pointerover":var x=S.pointerId;return Jv.set(x,ty(Jv.get(x)||null,c,h,p,v,S)),!0;case"gotpointercapture":return x=S.pointerId,ey.set(x,ty(ey.get(x)||null,c,h,p,v,S)),!0}return!1}function yG(c){var h=Jr(c.target);if(h!==null){var p=o(h);if(p!==null){if(h=p.tag,h===13){if(h=s(p),h!==null){c.blockedOn=h,Lc(c.priority,function(){pG(p)});return}}else if(h===31){if(h=a(p),h!==null){c.blockedOn=h,Lc(c.priority,function(){pG(p)});return}}else if(h===3&&p.stateNode.current.memoizedState.isDehydrated){c.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}c.blockedOn=null}function I0(c){if(c.blockedOn!==null)return!1;for(var h=c.targetContainers;0<h.length;){var p=tO(c.nativeEvent);if(p===null){p=c.nativeEvent;var v=new p.constructor(p.type,p);vt=v,p.target.dispatchEvent(v),vt=null}else return h=ei(p),h!==null&&gG(h),c.blockedOn=p,!1;h.shift()}return!0}function bG(c,h,p){I0(c)&&p.delete(h)}function cve(){rO=!1,sd!==null&&I0(sd)&&(sd=null),ad!==null&&I0(ad)&&(ad=null),ld!==null&&I0(ld)&&(ld=null),Jv.forEach(bG),ey.forEach(bG)}function _0(c,h){c.blockedOn===h&&(c.blockedOn=null,rO||(rO=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,cve)))}var F0=null;function wG(c){F0!==c&&(F0=c,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){F0===c&&(F0=null);for(var h=0;h<c.length;h+=3){var p=c[h],v=c[h+1],S=c[h+2];if(typeof v!="function"){if(nO(v||p)===null)continue;break}var x=ei(p);x!==null&&(c.splice(h,3),h-=3,BT(x,{pending:!0,data:S,method:p.method,action:v},v,S))}}))}function yp(c){function h(Z){return _0(Z,c)}sd!==null&&_0(sd,c),ad!==null&&_0(ad,c),ld!==null&&_0(ld,c),Jv.forEach(h),ey.forEac
vendor: 2,575 bytes, line 9
9h(h);for(var p=0;p<ud.length;p++){var v=ud[p];v.blockedOn===c&&(v.blockedOn=null)}for(;0<ud.length&&(p=ud[0],p.blockedOn===null);)yG(p),p.blockedOn===null&&ud.shift();if(p=(c.ownerDocument||c).$$reactFormReplay,p!=null)for(v=0;v<p.length;v+=3){var S=p[v],x=p[v+1],I=S[Vn]||null;if(typeof x=="function")I||wG(p);else if(I){var V=null;if(x&&x.hasAttribute("formAction")){if(S=x,I=x[Vn]||null)V=I.formAction;else if(nO(S)!==null)continue}else V=I.action;typeof V=="function"?p[v+1]=V:(p.splice(v,3),v-=3),wG(p)}}}function CG(){function c(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(I){return S=I})},focusReset:"manual",scroll:"manual"})}function h(){S!==null&&(S(),S=null),v||setTimeout(p,20)}function p(){if(!v&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var v=!1,S=null;return navigation.addEventListener("navigate",c),navigation.addEventListener("navigatesuccess",h),navigation.addEventListener("navigateerror",h),setTimeout(p,100),function(){v=!0,navigation.removeEventListener("navigate",c),navigation.removeEventListener("navigatesuccess",h),navigation.removeEventListener("navigateerror",h),S!==null&&(S(),S=null)}}}function iO(c){this._internalRoot=c}k0.prototype.render=iO.prototype.render=function(c){var h=this._internalRoot;if(h===null)throw Error(r(409));var p=h.current,v=hs();hG(p,v,c,h,null,null)},k0.prototype.unmount=iO.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var h=c.containerInfo;hG(c.current,2,null,c,null,null),b0(),h[ar]=null}};function k0(c){this._internalRoot=c}k0.prototype.unstable_scheduleHydration=function(c){if(c){var h=kc();c={blockedOn:null,target:c,priority:h};for(var p=0;p<ud.length&&h!==0&&h<ud[p].priority;p++);ud.splice(p,0,c),p===0&&yG(c)}};var SG=t.version;if(SG!=="19.3.0")throw Error(r(527,SG,"19.3.0"));J.findDOMNode=function(c){var h=c._reactInternals;if(h===void 0)throw typeof c.render=="function"?Error(r(188)):(c=Object.keys(c).join(","),Error(r(268,c)));return c=u(h),c=c!==null?d(c):null,c=c===null?null:c.stateNode,c};var dve={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:de,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var L0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!L0.isDisabled&&L0.supportsFiber)try{Ci=L0.inject(dve),Xn=L0}catch{}}return ry.createRoot=function(c,h){if(!i(c))throw Error(r(299));
9var p=!1,v="",S=dz,x=hz,I=fz;return h!=null&&(h.unstable_strictMode===!0&&(p=!0),h.identifierPrefix!==void 0&&(v=h.identifierPrefix),h.onUncaughtError!==void 0&&(S=h.onUncaughtError),h.onCaughtError!==void 0&&(x=h.onCaughtError),h.onRecoverableError!==void 0&&(I=h.onRecoverableError)),h=cG(c,1,!1,null,null,p,v,null,S,x,I,CG),c[ar]=h.current,FP(c),new iO(h)},ry.hydrateRoot=function(c,h,p){if(!i(c))throw Error(r(299));var v=!1,S="",x=dz,I=hz,V=fz,Z=null;return p!=null&&(p.unstable_strictMode===!0&&(v=!0),p.identifierPrefix!==void 0&&(S=p.identifierPrefix),p.onUncaughtError!==void 0&&(x=p.onUncaughtError),p.onCaughtError!==void 0&&(I=p.onCaughtError),p.onRecoverableError!==void 0&&(V=p.onRecoverableError),p.formState!==void 0&&(Z=p.formState)),h=cG(c,1,!0,h,p??null,v,S,Z,x,I,V,CG),h.context=dG(null),p=h.current,v=hs(),v=gl(v),S=qc(v),S.callback=null,Kc(p,S,v),p=v,h.current.lanes=p,zi(h,p),Rl(h),c[ar]=h.current,FP(c),new k0(h)},ry.version="19.3.0",ry}var IG;function Sve(){if(IG)return aO.exports;IG=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),aO.exports=Cve(),aO.exports}var Gbt=Sve(),zm=oJ();const xve=fg(zm);function sJ(e,t){return function(){return e.apply(t,arguments)}}const{toString:Eve}=Object.prototype,{getPrototypeOf:Ud}=Object,{iterator:sw,toStringTag:aJ}=Symbol,yb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lJ=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),uJ=(e,t,n)=>e===Object.prototype||!n&&t===null,Rve=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(lJ(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},bb=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const i=Ud(n);if(uJ(n,i,n===e))return!1;if(yb(n,t))return!0;n=i}return!1},Ave=(e,t)=>e!=null&&bb(e,t)?e[t]:void 0,Tve=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Ud(e);if(t===null&&Rve(e))return e;const n=Object.create(null),r=Object.create(null),i=[];let o=e;for(;o!=null&&i.indexOf(o)===-1;){i.push(o);const s=o===e?t:Ud(o);if(uJ(o,s,o===e))break;const a=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(o));for(const l of a)lJ(l)||yb(r,l)||(n[l]=e[l],r[l]=!0);o=s}return n},CL=(e=>t=>{const n=Eve.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),va=e=>(e=e.toLowerCase(),t=>CL(t)===e),AE=e=>t=>typeof t===e,{isArray:Lf}=Array,Nf=AE("undefined");function Gm(e){return e!==null&&!Nf(e)&&e.constructor!==null&&!Nf(e.constructor)&&Xo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cJ=va("ArrayBuffer");function Pve(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cJ(e.buffer),t}const Ove=AE("string"),Xo=AE("function"),dJ=AE("number"),jm=e=>e!==null&&typeof e=="object",Dve=e=>e===!0||e===!1,qS=e=>{if(!jm(e))return!1;const t=Ud(e);return(t===null||t===Object.prototype||Ud(t)===null)&&!bb(e,aJ)&&!bb(e,sw)},Mve=e=>{if(!jm(e)||Gm(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ive=va("Date"),_ve=va("File"),Fve=e=>!!(e&&typeof e.uri<"u"),kve=e=>e&&typeof e.getParts<"u",Lve=va("Blob"),Nve=va("FileList"),Bve=va("Set"),Hve=e=>jm(e)&&Xo(e.pipe);function Vve(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const _G=Vve(),FG=typeof _G.FormData<"u"?_G.FormData:void 0,zve=e=>{if(!e)return!1;if(FG&&e instanceof FG)return!0;const t=Ud(e);if(!t||t===Object.prototype||!Xo(e.append))return!1;const n=CL(e);return n==="formdata"||n==="object"&&Xo(e.toString)&&e.toString()==="[object FormData]"},Gve=va("URLSearchParams"),[jve,Uve,Wve,$ve]=["ReadableStream","Request","Response","Headers"].map(va),qve=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aw(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Lf(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Gm(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function hJ(e,t){if(Gm(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const df=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fJ=e=>!Nf(e)&&e!==df;function P_(...e){const{caseless:t,skipUndefined:n}=fJ(this)&&this||{},r={},i=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=t&&typeof s=="string"&&hJ(r,s)||s,l=yb(r,a)?r[a]:void 0;qS(l)&&qS(o)?r[a]=P_(l,o):qS(o)?r[a]=P_({},o):Lf(o)?r[a]=o.slice():(!n||!Nf(o))&&(r[a]=o)};for(let o=0,s=e.length;o<s;o++){const a=e[o];if(!a||Gm(a)||(aw(a,i),typeof a!="object"||Lf(a)))continue;const l=Object.getOwnPropertySymbols(a);for(let u=0;u<l.length;u++){const d=l[u];oye.call(a,d)&&i(a[d],d)}}return r}const Kve=(e,t,n,{allOwnKeys:r}={})=>(aw(t,(i,o)=>{n&&Xo(i)?Object.defineProperty(e,o,{__proto__:null,value:sJ(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Yve=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xve=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 11,738 bytes, lines 9-11
9configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Zve=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ud(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qve=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Jve=e=>{if(!e)return null;if(Lf(e))return e;let t=e.length;if(!dJ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},eye=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ud(Uint8Array)),tye=(e,t)=>{const r=(e&&e[sw]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},nye=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},rye=va("HTMLFormElement"),iye=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:oye}=Object.prototype,sye=va("RegExp"),gJ=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};aw(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},aye=e=>{gJ(e,(t,n)=>{if(Xo(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Xo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lye=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Lf(e)?r(e):r(String(e).split(t)),n},uye=()=>{},cye=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function dye(e){return!!(e&&Xo(e.append)&&e[aJ]==="FormData"&&e[sw])}const hye=e=>{const t=new WeakSet,n=r=>{if(jm(r)){if(t.has(r))return;if(Gm(r))return r;if(!("toJSON"in r)){t.add(r);let i;if(Bve(r)){i=[];for(const o of r){const s=n(o);!Nf(s)&&i.push(s)}}else i=Lf(r)?[]:{},aw(r,(o,s)=>{const a=n(o);!Nf(a)&&(i[s]=a)});return t.delete(r),i}}return r};return n(e)},fye=va("AsyncFunction"),gye=e=>e&&(jm(e)||Xo(e))&&Xo(e.then)&&Xo(e.catch),pJ=((e,t)=>e?setImmediate:t?((n,r)=>(df.addEventListener("message",({source:i,data:o})=>{i===df&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),df.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xo(df.postMessage)),pye=typeof queueMicrotask<"u"?queueMicrotask.bind(df):typeof process<"u"&&process.nextTick||pJ,mJ=e=>e!=null&&Xo(e[sw]),mye=e=>e!=null&&bb(e,sw)&&mJ(e),te={isArray:Lf,isArrayBuffer:cJ,isBuffer:Gm,isFormData:zve,isArrayBufferView:Pve,isString:Ove,isNumber:dJ,isBoolean:Dve,isObject:jm,isPlainObject:qS,isEmptyObject:Mve,isReadableStream:jve,isRequest:Uve,isResponse:Wve,isHeaders:$ve,isUndefined:Nf,isDate:Ive,isFile:_ve,isReactNativeBlob:Fve,isReactNative:kve,isBlob:Lve,isRegExp:sye,isFunction:Xo,isStream:Hve,isURLSearchParams:Gve,isTypedArray:eye,isFileList:Nve,forEach:aw,merge:P_,extend:Kve,trim:qve,stripBOM:Yve,inherits:Xve,toFlatObject:Zve,kindOf:CL,kindOfTest:va,endsWith:Qve,toArray:Jve,forEachEntry:tye,matchAll:nye,isHTMLForm:rye,hasOwnProperty:yb,hasOwnProp:yb,hasOwnInPrototypeChain:bb,getSafeProp:Ave,toSafeFlatObject:Tve,reduceDescriptors:gJ,freezeMethods:aye,toObjectSet:lye,toCamelCase:iye,noop:uye,toFiniteNumber:cye,findKey:hJ,global:df,isContextDefined:fJ,isSpecCompliantForm:dye,toJSONObject:hye,isAsyncFn:fye,isThenable:gye,setImmediate:pJ,asap:pye,isIterable:mJ,isSafeIterable:mye},vye=te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yye=e=>{const t={};let n,r,i;return e&&e.split(` 10`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim();const a=te.hasOwnProp(t,n);!n||a&&te.hasOwnProp(vye,n)||(n==="set-cookie"?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t};function bye(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const wye=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Cye=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function SL(e,t){return te.isArray(e)?e.map(n=>SL(n,t)):bye(String(e).replace(t,""))}const Sye=e=>SL(e,wye),xye=e=>SL(e,Cye);function vJ(e){const t=Object.create(null);return te.forEach(e.toJSON(),(n,r)=>{t[r]=xye(n)}),t}const kG=Symbol("internals");function iy(e){return e&&String(e).trim().toLowerCase()}function KS(e){return e===!1||e==null?e:te.isArray(e)?e.map(KS):Sye(String(e))}function Eye(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Rye=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function dO(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Aye(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function Tye(e){const t=Object.create(null),n=String(e);let r=0,i=!1,o=!1;function s(a){const l=dO(n.slice(r,a)),u=l.indexOf("=");if(u<1)return;const d=dO(l.slice(0,u));if(!Rye.test(d))return;const f=d.toLowerCase();if(f==="__proto__"||f==="constructor"||f==="prototype")return;const g=dO(l.slice(u+1));t[f]=Aye(g)}for(let a=0;a<n.length;a++){const l=n.charCodeAt(a);i?o?o=!1:l===92?o=!0:l===34&&(i=!1):l===34?i=!0:(l===44||l===59)&&(s(a),r=a+1)}return s(n.length),t}const Pye=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function hO(e,t,n,r,i){if(te.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!te.isString(t)){if(te.isString(r))return t.indexOf(r)!==-1;if(te.isRegExp(r))return r.test(t)}}function Oye(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Dye(e,t){const n=te.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let ro=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const d=iy(l);if(!d)return;const f=te.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=KS(a))}const s=(a,l)=>te.forEach(a,(u,d)=>o(u,d,l));if(te.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(te.isString(t)&&(t=t.trim())&&!Pye(t))s(yye(t),n);else if(te.isObject(t)&&te.isSafeIterable(t)){let a=Object.create(null),l,u;for(const d of t){if(!te.isArray(d))throw new TypeError("Object iterator must return a key-value pair");u=d[0],te.hasOwnProp(a,u)?(l=a[u],a[u]=te.isArray(l)?[...l,d[1]]:[l,d[1]]):a[u]=d[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=iy(t),t){const r=te.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Eye(i);if(te.isFunction(n))return n.call(this,i,r);if(te.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=iy(t),t){const r=te.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||hO(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=iy(s),s){const a=te.findKey(r,s);a&&(!n||hO(r,r[a],a,n))&&(delete r[a],i=!0)}}return te.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||hO(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return te.forEach(this,(i,o)=>{const s=te.findKey(r,o);if(s){n[s]=KS(i),delete n[o];return}const a=t?Oye(o):String(o).trim();a!==o&&delete n[o],n[a]=KS(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return te.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&te.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 11`)}getSetCookie(){const t=this.get("set-cookie");return te.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return Tye(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[kG]=this[kG]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=iy(s);r[a]||(Dye(i,s),r[a]=!0)}return te.isArray(t)?t.forEach(o):o(t),this}};ro.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);te.reduceDescriptors(ro.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});te.freezeMethods(ro);const E1="[REDACTED ****]";function Mye(e){if(te.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(te.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Iye(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],i=o=>{if(o===null||typeof o!="object"||te.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof ro&&(o=o.toJSON()),r.push(o);let s;if(te.isArray(o))s=[],o.forEach((a,l)=>{const u=i(a);te.isUndefined(u)||(s[l]=u)});else{if(!te.isPlainObject(o)&&Mye(o))return r.pop(),o;s=Object.create(null);for(const[a,l]of Object.entries(o)){const u=n.has(a.toLowerCase())?E1:i(l);te.isUndefined(u)||(s[a]=u)}}return r.pop(),s};return i(e)}function LG(e){try{return String(e)}catch{return""}}function _ye(e){return e.errors.map(n=>{try{return n&&n.message?LG(n.message):LG(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let Ue=class yJ extends Error{static from(t,n,r,i,o,s){let a=t.message;!a&&te.isArray(t.errors)&&t.errors.length&&(a=_ye(t));const l=new yJ(a,n||t.code,r,i,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),s&&Object.assign(l,s),l}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&te.hasOwnProp(t,"redact")?t.redact:void 0,r=te.isArray(n)&&n.length>0?Iye(t,n):te.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ue.ERR_BAD_OPTION="ERR_BAD_OPTION";Ue.ECONNABORTED="ECONNABORTED";Ue.ETIMEDOUT="ETIMEDOUT";Ue.ECONNREFUSED="ECONNREFUSED";Ue.ERR_NETWORK="ERR_NETWORK";Ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ue.ERR_DEPRECATED="ERR_DEPRECATED";Ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ue.ERR_CANCELED="ERR_CANCELED";Ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ue.ERR_INVALID_URL="ERR_INVALID_URL";Ue.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Fye=null,bJ=100;function O_(e){return te.isPlainObject(e)||te.isArray(e)}function wJ(e){return te.endsWith(e,"[]")?e.slice(0,-2):e}function fO(e,t,n){return e?e.concat(t).map(function(i,o){return i=wJ(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function kye(e){return te.isArray(e)&&!e.some(O_)}const Lye=te.toFlatObject(te,{},null,function(t){return/^is[A-Z]/.test(t)});
11function TE(e,t,n){if(!te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(E,A)=>{const T=te.getSafeProp(n,E);return te.isUndefined(T)?A:T},i=r("metaTokens",!0),o=r("visitor")||b,s=r("dots",!1),a=r("indexes",!1),l=r("Blob")||typeof Blob<"u"&&Blob,u=r("maxDepth",bJ),d=l&&te.isSpecCompliantForm(t),f=[];if(!te.isFunction(o))throw new TypeError("visitor must be a function");function g(E){if(E===null)return"";if(te.isDate(E))return E.toISOString();if(te.isBoolean(E))return E.toString();if(!d&&te.isBlob(E))throw new Ue("Blob is not supported. Use a Buffer instead.");if(te.isArrayBuffer(E)||te.isTypedArray(E)){if(d&&typeof l=="function")return new l([E]);throw new Ue("Blob is not supported. Use a Buffer instead.",Ue.ERR_NOT_SUPPORT)}return E}function m(E){if(E>u)throw new Ue("Object is too deeply nested ("+E+" levels). Max depth: "+u,Ue.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(E,A){if(u===1/0)return JSON.stringify(E);const T=[];return JSON.stringify(E,function(O,D){if(!te.isObject(D))return D;for(;T.length&&T[T.length-1]!==this;)T.pop();return T.push(D),m(A+T.length-1),D})}function b(E,A,T){let P=E;if(te.isReactNative(t)&&te.isReactNativeBlob(E))return t.append(fO(T,A,s),g(E)),!1;if(E&&!T&&typeof E=="object"){if(te.endsWith(A,"{}"))A=i?A:A.slice(0,-2),E=y(E,1);else if(te.isArray(E)&&kye(E)||(te.isFileList(E)||te.endsWith(A,"[]"))&&(P=te.toArray(E)))return A=wJ(A),P.forEach(function(D,F){!(te.isUndefined(D)||D===null)&&t.append(a===!0?fO([A],F,s):a===null?A:A+"[]",g(D))}),!1}return O_(E)?!0:(t.append(fO(T,A,s),g(E)),!1)}const w=Object.assign(Lye,{defaultVisitor:b,convertValue:g,isVisitable:O_});function C(E,A,T=0){if(!te.isUndefined(E)){if(m(T),f.indexOf(E)!==-1)throw new Error("Circular reference detected in "+A.join("."));f.push(E),te.forEach(E,function(O,D){(!(te.isUndefined(O)||O===null)&&o.call(t,O,te.isString(D)?D.trim():D,A,w))===!0&&C(O,A?A.concat(D):[D],T+1)}),f.pop()}}if(!te.isObject(e))throw new TypeError("data must be an object");return C(e),t}function NG(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function xL(e,t){this._pairs=[],e&&TE(e,this,t)}const CJ=xL.prototype;CJ.append=function(t,n){this._pairs.push([t,n])};CJ.toString=function(t){const n=t?r=>t.call(this,r,NG):NG;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Nye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function SJ(e,t,n){if(!t)return e;e=e||"";const r=te.isFunction(n)?{serialize:n}:n,i=te.getSafeProp(r,"encode")||Nye,o=te.getSafeProp(r,"serialize");let s;if(o?s=o(t,r):s=te.isURLSearchParams(t)?t.toString():new xL(t,r).toString(i),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}const oy=Symbol("internals");function xJ(e){return e?e.length:0}function BG(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function sy(e,t){const n=e.handlers,r=xJ(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,s){n[o.index]!==o.handler&&t.handlerEntries.delete(s)}):t.handlerEntries.clear()),t.handlersLength=r}class HG{constructor(){this.handlers=[],this[oy]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const i={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},o=this[oy];this.handlers==null&&(this.handlers=[]),sy(this,o);const s=o.nextId++;return this.handlers.push(i),o.handlerEntries.set(s,{handler:i,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,s}eject(t){const n=this[oy];sy(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(BG(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],sy(this,this[oy]))}forEach(t){const n=this[oy];sy(this,n),n.iterationDepth++;try{te.forEach(this.handlers,function(i){i!==null&&t(i)})}finally{--n.iterationDepth||(sy(this,n),BG(this.handlers),n.handlersLength=xJ(this.handlers))}}}const EL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Bye=typeof URLSearchParams<"u"?URLSearchParams:xL,Hye=typeof FormData<"u"?FormData:null,Vye=typeof Blob<"u"?Blob:null,zye={isBrowser:!0,classes:{
vendor: 2,584 bytes, line 11
11URLSearchParams:Bye,FormData:Hye,Blob:Vye},protocols:["http","https","file","blob","url","data"]},RL=typeof window<"u"&&typeof document<"u",D_=typeof navigator=="object"&&navigator||void 0,Gye=RL&&(!D_||["ReactNative","NativeScript","NS"].indexOf(D_.product)<0),jye=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Uye=RL&&window.location.href||"http://localhost",Wye=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:RL,hasStandardBrowserEnv:Gye,hasStandardBrowserWebWorkerEnv:jye,navigator:D_,origin:Uye},Symbol.toStringTag,{value:"Module"})),li={...Wye,...zye};function $ye(e,t){return TE(e,new li.classes.URLSearchParams,{visitor:function(n,r,i,o){return li.isNode&&te.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const VG=bJ;function EJ(e){if(e>VG)throw new Ue("FormData field is too deeply nested ("+e+" levels). Max depth: "+VG,Ue.ERR_FORM_DATA_DEPTH_EXCEEDED)}function qye(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)EJ(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Kye(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function RJ(e){function t(n,r,i,o){EJ(o);let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&te.isArray(i)?i.length:s,l?(te.hasOwnProp(i,s)?i[s]=te.isArray(i[s])?i[s].concat(r):[i[s],r]:i[s]=r,!a):((!te.hasOwnProp(i,s)||!te.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&te.isArray(i[s])&&(i[s]=Kye(i[s])),!a)}if(te.isFormData(e)&&te.isFunction(e.entries)){const n={};return te.forEachEntry(e,(r,i)=>{t(qye(r),i,n,0)}),n}return null}const AJ=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),bp=(e,t)=>e!=null&&te.hasOwnProp(e,t)?e[t]:void 0;function Yye(e,t,n){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const lw={transitional:EL,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=te.isObject(t);if(o&&te.isHTMLForm(t)&&(t=new FormData(t)),te.isFormData(t))return i?JSON.stringify(RJ(t)):t;if(te.isArrayBuffer(t)||te.isBuffer(t)||te.isStream(t)||te.isFile(t)||te.isBlob(t)||te.isReadableStream(t))return t;if(te.isArrayBufferView(t))return t.buffer;if(te.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;
vendor: 5,293 bytes, line 11
11if(o){const l=bp(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return $ye(t,l).toString();if((a=te.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=bp(this,"env"),d=u&&u.FormData;return TE(a?{"files[]":t}:t,d&&new d,l)}}return o||i?(n.setContentType("application/json",!1),Yye(t)):t}],transformResponse:[function(t){const n=bp(this,"transitional")||lw.transitional,r=n&&n.forcedJSONParsing,i=bp(this,"responseType"),o=i==="json";if(te.isResponse(t)||te.isReadableStream(t))return t;if(t&&te.isString(t)&&(r&&!i||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,bp(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?Ue.from(l,Ue.ERR_BAD_RESPONSE,this,null,bp(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:li.classes.FormData,Blob:li.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(AJ,e=>{lw.headers[e]={}});function gO(e,t){const n=this||lw,r=t||n,i=ro.from(r.headers);let o=r.data;return te.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function TJ(e){return!!(e&&e.__CANCEL__)}let uw=class extends Ue{constructor(t,n,r){super(t??"canceled",Ue.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function PJ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ue.ERR_BAD_REQUEST:Ue.ERR_BAD_RESPONSE,n.config,n.request,n))}const Xye=/[\t\n\r]/g;function OJ(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Xye,"")}function pO(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Zye(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[o];s||(s=u),n[i]=l,r[i]=u;let f=o,g=0;for(;f!==i;)g+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;const m=d&&u-d;return m?Math.round(g*1e3/m):void 0}}function Qye(e,t){let n=0,r=1e3/t,i,o;const s=(d,f=Date.now())=>{n=f,i=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const f=Date.now(),g=f-n;g>=r?s(d,f):(i=d,o||(o=setTimeout(()=>{o=null,s(i)},r-g)))},()=>i&&s(i),(...d)=>s(d)]}const R1=(e,t,n=3)=>{let r=0;const i=Zye(50,250);return Qye(o=>{if(!o||!te.isNumber(o.loaded))return;const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=Math.max(0,a!=null?Math.min(s,a):s),u=Math.max(0,l-r),d=i(u);r=Math.max(r,l);const f={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:d||void 0,estimated:d&&a?(a-l)/d:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},zG=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},GG=(e,t=te.asap)=>(...n)=>t(()=>e(...n)),Jye=li.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,li.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(li.origin),li.navigator&&/(msie|trident)/i.test(li.navigator.userAgent)):()=>!0,ebe=li.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];te.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),te.isString(r)&&a.push(`path=${r}`),te.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),te.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function tbe(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nbe(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const rbe=/^https?:(?!\/\/)/i;function ibe(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${E1}`)}function obe(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${E1}@`),n=t.indexOf("#"),i=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${E1}`);return n===-1?i:`${i}#${ibe(t.slice(n+1))}`}function jG(e,t){if(typeof e=="string"){const n=OJ(e);if(rbe.test(n))throw new Ue(`Invalid URL ${JSON.stringify(obe(n))}: missing "//" after protocol`,Ue.ERR_INVALID_URL,t)}}function DJ(e,t,n,r){jG(t,r);let i=!tbe(t);return e&&(i||n===!1)?(jG(e,r),nbe(e,t)):t}const UG=e=>e instanceof ro?{...e}:e,sbe=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Bf(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,f,g,m){return te.isPlainObject(d)&&te.isPlainObject(f)?te.merge.call({caseless:m},d,f):te.isPlainObject(f)?te.merge({},f):te.isArray(f)?f.slice():f}
vendor: 1,598 bytes, line 11
11function i(d,f,g,m){if(te.isUndefined(f)){if(!te.isUndefined(d))return r(void 0,d,g,m)}else return r(d,f,g,m)}function o(d,f){if(!te.isUndefined(f))return r(void 0,f)}function s(d,f){if(te.isUndefined(f)){if(!te.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function a(d){const f=te.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!te.isUndefined(f))if(te.isPlainObject(f)){if(te.hasOwnProp(f,d))return f[d]}else return;const g=te.hasOwnProp(e,"transitional")?e.transitional:void 0;if(te.isPlainObject(g)&&te.hasOwnProp(g,d))return g[d]}function l(d,f,g){if(te.hasOwnProp(t,g))return r(d,f);if(te.hasOwnProp(e,g))return r(void 0,d)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(d,f,g)=>i(UG(d),UG(f),g,!0)};return te.forEach(sbe({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const g=te.hasOwnProp(u,f)?u[f]:i,m=te.hasOwnProp(e,f)?e[f]:void 0,y=te.hasOwnProp(t,f)?t[f]:void 0,b=g(m,y,f);te.isUndefined(b)&&g!==l||(n[f]=b)}),te.hasOwnProp(t,"validateStatus")&&te.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(te.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
vendor: 16,487 bytes, lines 11-17
11idateStatus),n}const abe=["content-type","content-length"];function lbe(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{abe.includes(r.toLowerCase())&&e.set(r,i)})}const ube=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function MJ(e){const t=Bf({},e),n=g=>te.hasOwnProp(t,g)?t[g]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const l=n("auth"),u=n("baseURL"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=a=ro.from(a),t.url=SJ(DJ(u,f,d,t),n("params"),n("paramsSerializer")),l){const g=te.getSafeProp(l,"username")||"",m=te.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(g+":"+(m?ube(m):"")))}catch(y){throw Ue.from(y,Ue.ERR_BAD_OPTION_VALUE,e)}}if(te.isFormData(r)){const g=te.getSafeProp(r,"getHeaders");li.hasStandardBrowserEnv||li.hasStandardBrowserWebWorkerEnv||te.isReactNative(r)?a.setContentType(void 0):te.isFunction(g)&&lbe(a,g.call(r),n("formDataHeaderPolicy"))}if(li.hasStandardBrowserEnv&&(te.isFunction(i)&&(i=i(t)),i===!0||i==null&&Jye(t.url))){const m=o&&s&&ebe.read(s);m&&a.set(o,m)}return t}const cbe=typeof XMLHttpRequest<"u",dbe=cbe&&function(e){return new Promise(function(n,r){const i=MJ(e);let o=i.data;const s=ro.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,d,f,g,m,y,b;function w(){m&&m(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function E(T){if(!C)return;if(C.status===0&&(pO(OJ(i.url))||pO(li.origin))!=="file"&&!(C.responseURL&&C.responseURL.startsWith("file:"))){r(new Ue("Request aborted",Ue.ECONNABORTED,e,C)),w(),C=null;return}try{T?b&&b(T):y&&y()}catch(F){setTimeout(()=>{throw F})}if(!C)return;const P=ro.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),D={data:!a||a==="text"||a==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:P,config:e,request:C};PJ(function(L){n(L),w()},function(L){r(L),w()},D),C=null}"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.startsWith("file:"))||setTimeout(E)},C.onabort=function(){C&&(r(new Ue("Request aborted",Ue.ECONNABORTED,e,C)),w(),C=null)},C.onerror=function(P){const O=P&&P.message?P.message:"Network Error",D=new Ue(O,Ue.ERR_NETWORK,e,C);D.event=P||null,r(D),w(),C=null},C.ontimeout=function(){let P=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||EL;i.timeoutErrorMessage&&(P=i.timeoutErrorMessage),r(new Ue(P,O.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,C)),w(),C=null},o===void 0&&s.setContentType(null),"setRequestHeader"in C&&te.forEach(vJ(s),function(P,O){C.setRequestHeader(O,P)}),te.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),a&&a!=="json"&&(C.responseType=i.responseType),u&&([g,y,b]=R1(u,!0),C.addEventListener("progress",g)),l&&C.upload&&([f,m]=R1(l),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(d=T=>{C&&(r(!T||T.type?new uw(null,e,C):T),C.abort(),w(),C=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const A=pO(i.url);if(A&&!li.protocols.includes(A)){r(new Ue("Unsupported protocol "+A+":",Ue.ERR_BAD_REQUEST,e)),w();return}C.send(o||null)})},hbe=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(l){if(!r){r=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof Ue?u:new uw(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new Ue(`timeout of ${t}ms exceeded`,Ue.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>{if(!r){if(l.aborted){i.call(l);return}l.addEventListener("abort",i,{once:!0})}});const{signal:a}=n;return a.unsubscribe=()=>te.asap(s),a},fbe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},gbe=async function*(e,t){for await(const n of pbe(e))yield*fbe(n,t)},pbe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},WG=(e,t,n,r)=>{const i=gbe(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await i.next();if(u){a(),l.close();return}let f=d.byteLength;if(n){let g=o+=f;n(g)}l.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},$G=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,IJ=(e,t,n)=>t+2<n&&$G(e.charCodeAt(t+1))&&$G(e.charCodeAt(t+2)),qG=e=>e<=57?e-48:(e&223)-55,mbe=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,vbe=e=>e===9||e===10||e===12||e===13||e===32,ybe=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},bbe=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},wbe=e=>{const t=e.length;let n=0,r=0,i=!1;for(let o=0;o<t;o++){let s=e.charCodeAt(o);if(s===37&&IJ(e,o,t)&&(s=qG(e.charCodeAt(o+1))*16+qG(e.charCodeAt(o+2)),o+=2),!vbe(s)){if(s===61){r++;continue}if(!mbe(s)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!==0||n%4===1?bbe(e):ybe(n)},Cbe=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let s=0;for(let a=0,l=i.length;a<l;a++){const u=i.charCodeAt(a);if(u===37&&IJ(i,a,l))s+=1,a+=2;else if(u<128)s+=1;else if(u<2048)s+=2;else if(u>=55296&&u<=56319&&a+1<l){const d=i.charCodeAt(a+1);d>=56320&&d<=57343?(s+=4,a++):s+=3}else s+=3}return s};function Sbe(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Cbe(t===-1?e:e.slice(0,t),wbe)}const AL="1.20.0",KG=64*1024,xbe={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:N0}=te,Ebe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),YG=e=>{if(!te.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},XG=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rbe=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Abe=e=>{const t=te.global!==void 0&&te.global!==null?te.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=te.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:s}=e,a=i?N0(i):typeof fetch=="function",l=N0(o),u=N0(s);if(!a)return!1;const d=a&&N0(n),f=a&&(typeof r=="function"?(C=>E=>C.encode(E))(new r):async C=>new Uint8Array(await new o(C).arrayBuffer())),g=l&&d&&XG(()=>{let C=!1;const E=new o(li.origin,{body:new n,method:"POST",get duplex(){return C=!0,"half"}}),A=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),C&&!A}),m=u&&d&&XG(()=>te.isReadableStream(new s("").body)),y={stream:m&&(C=>C.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!y[C]&&(y[C]=(E,A)=>{let T=E&&E[C];if(T)return T.call(E);throw new Ue(`Response type '${C}' is not supported`,Ue.ERR_NOT_SUPPORT,A)})});const b=async C=>{if(C==null)return 0;if(te.isBlob(C))return C.size;if(te.isSpecCompliantForm(C))return(await new o(li.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(te.isArrayBufferView(C)||te.isArrayBuffer(C))return C.byteLength;if(te.isURLSearchParams(C)&&(C=C+""),te.isString(C))return(await f(C)).byteLength},w=async(C,E)=>{const A=te.toFiniteNumber(C.getContentLength());return A??b(E)};return async C=>{let{url:E,method:A,data:T,signal:P,cancelToken:O,timeout:D,onDownloadProgress:F,onUploadProgress:L,responseType:N,headers:M,withCredentials:k="same-origin",fetchOptions:B,maxContentLength:j,maxBodyLength:z,maxRedirects:H}=MJ(C);const G=te.isNumber(j)&&j>-1,$=te.isNumber(z)&&z>-1,Y=me=>te.hasOwnProp(C,me)?C[me]:void 0;let K=i||fetch;N=N?(N+"").toLowerCase():"text";let se=hbe([P,O&&O.toAbortSignal()],D),re=null;const ue=se&&se.unsubscribe&&(()=>{se.unsubscribe()});let U,X=null;const be=()=>new Ue("Request body larger than maxBodyLength limit",Ue.ERR_BAD_REQUEST,C,re);try{let me;const Oe=Y("auth");if(Oe){const xe=te.getSafeProp(Oe,"username")||"",We=te.getSafeProp(Oe,"password")||"";me={username:xe,password:We}}if(Rbe(E)){const xe=new URL(E,li.origin);if(!me&&(xe.username||xe.password)){const We=YG(xe.username),rt=YG(xe.password);me={username:We,password:rt}}(xe.username||xe.password)&&(xe.username="",xe.password="",E=xe.href)}if(me&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(Ebe((me.username||"")+":"+(me.password||""))))),G&&typeof E=="string"&&E.startsWith("data:")&&Sbe(E)>j)throw new Ue("maxContentLength size of "+j+" exceeded",Ue.ERR_BAD_RESPONSE,C,re);if($&&A!=="get"&&A!=="head"){const xe=await b(T);if(typeof xe=="number"&&isFinite(xe)&&(U=xe,xe>z))throw be()}const ge=$&&(te.isReadableStream(T)||te.isStream(T)),ve=(xe,We,rt)=>WG(xe,KG,Ke=>{if($&&Ke>z)throw X=be();We&&We(Ke)},rt);if(g&&A!=="get"&&A!=="head"&&(L||ge)){if(U=U??await w(M,T),U!==0||ge){let xe=new o(E,{method:"POST",body:T,duplex:"half"}),We;if(te.isFormData(T)&&(We=xe.headers.get("content-type"))&&M.setContentType(We),xe.body){const[rt,Ke]=L&&zG(U,R1(GG(L)))||[];T=ve(xe.body,rt,Ke)}}}else if(ge&&!l&&d&&A!=="get"&&A!=="head")T=ve(T);else if(ge&&l&&!g&&A!=="get"&&A!=="head")throw new Ue("Stream request bodies are not supported by the current fetch implementation",Ue.ERR_NOT_SUPPORT,C,re);te.isString(k)||(k=k?"include":"omit");const de=l&&"credentials"in o.prototype;if(te.isFormData(T)){const xe=M.getContentType();xe&&/^multipart\/form-data/i.test(xe)&&!/boundary=/i.test(xe)&&M.delete("content-type")}M.set("User-Agent","axios/"+AL,!1);const J=B==null?B:Object.assign(Object.create(null),B);J&&(delete J.body,delete J.headers,delete J.method,delete J.signal,delete J.duplex,delete J.credentials);const Fe=Object.assign(Object.create(null),J,{signal:se,method:A.toUpperCase(),headers:vJ(M.normalize()),body:T,duplex:"half",credentials:de?k:void 0});l&&(te.forEach(xbe,(xe,We)=>{Fe[We]===void 0&&(Fe[We]=xe)}),Fe.signal===void 0&&(Fe.signal=null),Fe.body===void 0&&(Fe.body=null)),H===0&&(Fe.redirect="manual",J&&(J.redirect="manual")),re=l&&new o(E,Fe);let ke=await(l?K(re,J):K(E,Fe));const Te=ro.from(ke.headers);if(G){const xe=te.toFiniteNumber(Te.getContentLength());if(xe!=null&&xe>j)throw new Ue("maxContentLength size of "+j+" exceeded",Ue.ERR_BAD_RESPONSE,C,re)}const dt=m&&(N==="stream"||N==="response");if(m&&ke.body&&(F||G||dt&&ue)){const xe={};["status","statusText","headers"].forEach(Ee=>{xe[Ee]=ke[Ee]});const We=te.toFiniteNumber(Te.getContentLength()),[rt,Ke]=F&&zG(We,R1(GG(F),!0))||[];let Be=0;const pt=Ee=>{if(G&&(Be=Ee,Be>j))throw new Ue("maxContentLength size of "+j+" exceeded",Ue.ERR_BAD_RESPONSE,C,re);rt&&rt(Ee)};ke=new s(WG(ke.body,KG,pt,()=>{Ke&&Ke(),ue&&ue()}),xe)}N=N||"text";let Ne=await y[te.findKey(y,N)||"text"](ke,C);if(G&&!m&&!dt){let xe;if(Ne!=null&&(typeof Ne.byteLength=="number"?xe=Ne.byteLength:typeof Ne.size=="number"?xe=Ne.size:typeof Ne=="string"&&(xe=typeof r=="function"?new r().encode(Ne).byteLength:Ne.length)),typeof xe=="number"&&xe>j)throw new Ue("maxContentLength size of "+j+" exceeded",Ue.ERR_BAD_RESPONSE,C,re)}return!dt&&ue&&ue(),await new Promise((xe,We)=>{PJ(xe,We,{data:Ne,headers:ro.from(ke.headers),status:ke.status,statusText:ke.statusText,config:C,request:re})})}catch(me){if(ue&&ue(),se&&se.aborted&&se.reason instanceof Ue){const Oe=se.reason;throw Oe.config=C,re&&(Oe.request=re),me!==Oe&&Object.defineProperty(Oe,"cause",{__proto__:null,value:me,writable:!0,enumerable:!1,configurable:!0}),Oe}if(X)throw re&&!X.request&&(X.request=re),X;if(me instanceof Ue)throw re&&!me.request&&(me.request=re),me;if(me&&me.name==="TypeError"&&/Load failed|fetch/i.test(me.message)){const Oe=new Ue("Network Error",Ue.ERR_NETWORK,C,re,me&&me.response);throw Object.defineProperty(Oe,"cause",{__proto__:null,value:me.cause||me,writable:!0,enumerable:!1,configurable:!0}),Oe}throw Ue.from(me,me&&me.code,C,re,me&&me.response)}}},Tbe=new Map,_J=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s=o.length,a=s,l,u,d=Tbe;for(;a--;)l=o[a],u=d.get(l),u===void 0&&d.set(l,u=a?new Map:Abe(t)),d=u;return u};_J();const TL={http:Fye,xhr:dbe,fetch:{get:_J}};te.forEach(TL,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ZG=e=>`- ${e}`,Pbe=e=>te.isFunction(e)||e===null||e===!1;function Obe(e,t){e=te.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){r=e[s];let a;if(i=r,!Pbe(r)&&(i=TL[(a=String(r)).toLowerCase()],i===void 0))throw new Ue(`Unknown adapter '${a}'`);if(i&&(te.isFunction(i)||(i=i.get(t))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since : 12`+s.map(ZG).join(` 13`):" "+ZG(s[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+a,Ue.ERR_NOT_SUPPORT)}return i}const FJ={getAdapter:Obe,adapters:TL};function mO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uw(null,e)}function vO(e){const t=te.toSafeFlatObject(e);return mO(t),t.headers=ro.from(te.getSafeProp(t,"headers")),t.data=gO.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),FJ.getAdapter(t.adapter||lw.adapter,t)(t).then(function(i){mO(t),t.response=i;try{i.data=gO.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=ro.from(i.headers),i},function(i){if(!TJ(i)&&(mO(t),i&&i.response)){t.response=i.response;try{i.response.data=gO.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=ro.from(i.response.headers)}return Promise.reject(i)})}const PE={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{PE[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const QG={};PE.transitional=function(t,n,r){function i(o,s){return"[Axios v"+AL+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new Ue(i(s," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!QG[s]&&(QG[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};PE.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Dbe(e,t,n){if(typeof e!="object"||e===null)throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Ue("option "+o+" must be "+l,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+o,Ue.ERR_BAD_OPTION)}}const YS={assertOptions:Dbe,validators:PE},Ui=YS.validators;let Cf=class{constructor(t){this.defaults=t||{},this.interceptors={request:new HG,response:new HG}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack;let s="";if(typeof o=="string"){const a=o.indexOf(` 14`);s=a===-1?"":o.slice(a+1)}if(!r.stack)r.stack=s;else if(s){const a=s.indexOf(` 15`),l=a===-1?-1:s.indexOf(` 16`,a+1),u=l===-1?"":s.slice(l+1);String(r.stack).endsWith(u)||(r.stack+=` 17`+s)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bf(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&YS.assertOptions(r,{silentJSONParsing:Ui.transitional(Ui.boolean),forcedJSONParsing:Ui.transitional(Ui.boolean),clarifyTimeoutError:Ui.transitional(Ui.boolean),legacyInterceptorReqResOrdering:Ui.transitional(Ui.boolean),advertiseZstdAcceptEncoding:Ui.transitional(Ui.boolean),validateStatusUndefinedResolves:Ui.transitional(Ui.boolean)}
vendor: 3,315 bytes, line 17
17,!1),i!=null&&(te.isFunction(i)?n.paramsSerializer={serialize:i}:YS.assertOptions(i,{encode:Ui.function,serialize:Ui.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),YS.assertOptions(n,{baseUrl:Ui.spelling("baseURL"),withXsrfToken:Ui.spelling("withXSRFToken")},!0),n.method=(te.getSafeProp(n,"method")||te.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=o&&te.merge(o.common,o[n.method]);o&&te.forEach(AJ.concat("common"),y=>{delete o[y]}),n.headers=ro.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;l=l&&b.synchronous;const w=n.transitional||EL;w&&w.legacyInterceptorReqResOrdering?a.unshift(b.fulfilled,b.rejected):a.push(b.fulfilled,b.rejected)});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let d,f=0,g;if(!l){const y=[vO.bind(this),void 0];for(y.unshift(...a),y.push(...u),g=y.length,d=Promise.resolve(n);f<g;)d=d.then(y[f++],y[f++]);return d}g=a.length;let m=n;for(;f<g;){const y=a[f++],b=a[f++];try{m=y?y(m):m}catch(w){if(!b){d=Promise.reject(w);break}try{const C=b.call(this,w);te.isThenable(C)&&(d=Promise.resolve(C).then(()=>vO.call(this,m)))}catch(C){d=Promise.reject(C)}break}}if(!d)try{d=vO.call(this,m)}catch(y){d=Promise.reject(y)}for(f=0,g=u.length;f<g;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=Bf(this.defaults,t);const n=DJ(t.baseURL,t.url,t.allowAbsoluteUrls,t);return SJ(n,t.params,t.paramsSerializer)}};te.forEach(["delete","get","head","options"],function(t){Cf.prototype[t]=function(n,r){return this.request(Bf(r||{},{method:t,url:n,data:r&&te.hasOwnProp(r,"data")?r.data:void 0}))}});te.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,s,a){return this.request(Bf(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Cf.prototype[t]=n(),t!=="query"&&(Cf.prototype[t+"Form"]=n(!0))});let Mbe=class kJ{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new uw(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kJ(function(i){t=i}),cancel:t}}};function Ibe(e){return function(n){return e.apply(null,n)}}function _be(e){return te.isObject(e)&&e.isAxiosError===!0}const XS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
vendor: 7,665 bytes, line 17
17alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(XS).forEach(([e,t])=>{XS[t]===void 0&&(XS[t]=e)});function LJ(e){const t=new Cf(e),n=sJ(Cf.prototype.request,t);return te.extend(n,Cf.prototype,t,{allOwnKeys:!0}),te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return LJ(Bf(e,i))},n}const Hr=LJ(lw);Hr.Axios=Cf;Hr.CanceledError=uw;Hr.CancelToken=Mbe;Hr.isCancel=TJ;Hr.VERSION=AL;Hr.toFormData=TE;Hr.AxiosError=Ue;Hr.Cancel=Hr.CanceledError;Hr.all=function(t){return Promise.all(t)};Hr.spread=Ibe;Hr.isAxiosError=_be;Hr.mergeConfig=Bf;Hr.AxiosHeaders=ro;Hr.formToJSON=e=>RJ(te.isHTMLForm(e)?new FormData(e):e);Hr.getAdapter=FJ.getAdapter;Hr.HttpStatusCode=XS;Hr.default=Hr;const{Axios:$bt,AxiosError:qbt,CanceledError:Kbt,isCancel:Ybt,CancelToken:Xbt,VERSION:Zbt,all:Qbt,Cancel:Jbt,isAxiosError:ewt,spread:twt,toFormData:nwt,AxiosHeaders:rwt,HttpStatusCode:iwt,formToJSON:owt,getAdapter:swt,mergeConfig:awt,create:lwt}=Hr;function NJ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=NJ(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Et(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=NJ(e))&&(r&&(r+=" "),r+=t);return r}var cw=e=>typeof e=="number"&&!isNaN(e),Hf=e=>typeof e=="string",dc=e=>typeof e=="function",Fbe=e=>Hf(e)||cw(e),M_=e=>Hf(e)||dc(e)?e:null,kbe=(e,t)=>e===!1||cw(e)&&e>0?e:t,I_=e=>R.isValidElement(e)||Hf(e)||dc(e)||cw(e);function Lbe(e,t,n=300){let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Nbe({enter:e,exit:t,appendPosition:n=!1,collapse:r=!0,collapseDuration:i=300}){return function({children:o,position:s,preventExitTransition:a,done:l,nodeRef:u,isIn:d,playToast:f}){let g=n?`${e}--${s}`:e,m=n?`${t}--${s}`:t,y=R.useRef(0);return R.useLayoutEffect(()=>{let b=u.current,w=g.split(" "),C=E=>{E.target===u.current&&(f(),b.removeEventListener("animationend",C),b.removeEventListener("animationcancel",C),y.current===0&&E.type!=="animationcancel"&&b.classList.remove(...w))};b.classList.add(...w),b.addEventListener("animationend",C),b.addEventListener("animationcancel",C)},[]),R.useEffect(()=>{let b=u.current,w=()=>{b.removeEventListener("animationend",w),r?Lbe(b,l,i):l()};d||(a?w():(y.current=1,b.className+=` ${m}`,b.addEventListener("animationend",w)))},[d]),ye.createElement(ye.Fragment,null,o)}}function JG(e,t){return{content:BJ(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function BJ(e,t,n=!1){return R.isValidElement(e)&&!Hf(e.type)?R.cloneElement(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):dc(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function Bbe({closeToast:e,theme:t,ariaLabel:n="close"}){return ye.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:r=>{r.stopPropagation(),e(!0)},"aria-label":n},ye.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ye.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Hbe({delay:e,isRunning:t,closeToast:n,type:r="default",hide:i,className:o,controlledProgress:s,progress:a,rtl:l,isIn:u,theme:d}){let f=i||s&&a===0,g={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};s&&(g.transform=`scaleX(${a})`);let m=Et("Toastify__progress-bar",s?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":l}),y=dc(o)?o({rtl:l,type:r,defaultClassName:m}):Et(m,o),b={[s&&a>=1?"onTransitionEnd":"onAnimationEnd"]:s&&a<1?null:()=>{u&&n()}};return ye.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},ye.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),ye.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer","aria-valuenow":s?Math.round(a*100):void 0,"aria-valuemin":0,"aria-valuemax":100,className:y,style:g,...b}))}var Vbe=1,HJ=()=>`${Vbe++}`;function zbe(e,t,n){let r=1,i=0,o=[],s=[],a=t,l=new Map,u=new Set,d=E=>(u.add(E),()=>u.delete(E)),f=()=>{s=Array.from(l.values()),u.forEach(E=>E())},g=({containerId:E,toastId:A,updateId:T})=>{let P=E?E!==e:e!==1,O=l.has(A)&&T==null;return P||O},m=(E,A)=>{l.forEach(T=>{var P;(A==null||A===T.props.toastId)&&((P=T.toggle)==null||P.call(T,E))})},y=E=>{var A,T;E.isActive&&((T=(A=E.props)==null?void 0:A.onClose)==null||T.call(A,E.removalReason),E.isActive=!1,n(JG(E,"removed")))},b=E=>{if(E==null)l.forEach(y);else{let A=l.get(E);A&&y(A)}f()},w=()=>{i-=o.length,o=[]},C=E=>{var A,T;let{toastId:P,updateId:O}=E.props,D=O==null;E.staleId&&l.delete(E.staleId),E.isActive=!0,l.set(P,E),f(),n(JG(E,D?"added":"updated")),D&&((T=(A=E.props).onOpen)==null||T.call(A))};return{id:e,props:a,observe:d,toggle:m,removeToast:b,toasts:l,clearQueue:w,buildToast:(E,A)=>{if(g(A))return;let{toastId:T,updateId:P,data:O,staleId:D,delay:F}=A,L=P==null;L&&i++;let N={...a,style:a.toastStyle,key:r++,...Object.fromEntries(Object.entries(A).filter(([k,B])=>B!=null)),toastId:T,updateId:P,data:O,isIn:!1,className:M_(A.className||a.toastClassName),progressClassName:M_(A.progressClassName||a.progressClassName),autoClose:A.isLoading?!1:kbe(A.autoClose,a.autoClose),closeToast(k){let B=l.get(T);B&&(B.removalReason=k,b(T))},deleteToast(){if(l.get(T)!=null){if(l.delete(T),i--,i<0&&(i=0),o.length>0){C(o.shift());return}f()}}};N.closeButton=a.closeButton,A.closeButton===!1||I_(A.closeButton)?N.closeButton=A.closeButton:A.closeButton===!0&&(N.closeButton=I_(a.closeButton)?a.closeButton:!0);let M={content:E,props:N,staleId:D};a.limit&&a.limit>0&&i>a.limit&&L?o.push(M):cw(F)?setTimeout(()=>{C(M)},F):C(M)},setProps(E){a=E},setToggle:(E,A)=>{let T=l.get(E);T&&(T.toggle=A)},isToastActive:E=>{var A;return(A=l.get(E))==null?void 0:A.isActive},getSnapshot:()=>s}}var Co=new Map,wb=[],__=new Set,Gbe=e=>__.forEach(t=>t(e)),VJ=()=>Co.size>0;
vendor: 1,556 bytes, line 17
17function jbe(){wb.forEach(e=>GJ(e.content,e.options)),wb=[]}var Ube=(e,{containerId:t})=>{var n;return(n=Co.get(t||1))==null?void 0:n.toasts.get(e)};function zJ(e,t){var n;if(t)return!!((n=Co.get(t))!=null&&n.isToastActive(e));let r=!1;return Co.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Wbe(e){if(!VJ()){wb=wb.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||Fbe(e))Co.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=Co.get(e.containerId);t?t.removeToast(e.id):Co.forEach(n=>{n.removeToast(e.id)})}}var $be=(e={})=>{Co.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function GJ(e,t){I_(e)&&(VJ()||wb.push({content:e,options:t}),Co.forEach(n=>{n.buildToast(e,t)}))}function qbe(e){var t;(t=Co.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function jJ(e,t){Co.forEach(n=>{(t==null||!(t!=null&&t.containerId)||t?.containerId===n.id)&&n.toggle(e,t?.id)})}function Kbe(e){let t=e.containerId||1;return{subscribe(n){let r=zbe(t,e,Gbe);Co.set(t,r);let i=r.observe(n);return jbe(),()=>{i(),Co.delete(t)}},setProps(n){var r;(r=Co.get(t))==null||r.setProps(n)},getSnapshot(){var n;return(n=Co.get(t))==null?void 0:n.getSnapshot()}}}function Ybe(e){return __.add(e),()=>{__.delete(e)}}function Xbe(e){return e&&(Hf(e.toastId)||cw(e.toastId))?e.toastId:HJ()}function dw(e,t){return GJ(e,t),t.toastId}function OE(e,t){return{...t,type:t&&t.type||e,toastId:Xbe(t)}}function DE(e){return(t,n)=>dw(t,OE(e,n))}function xn(e,t){return dw(e,OE("default",t))}xn.loading=(e,t)=>
vendor: 9,416 bytes, line 17
17dw(e,OE("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function Zbe(e,{pending:t,error:n,success:r},i){let o;t&&(o=Hf(t)?xn.loading(t,i):xn.loading(t.render,{...i,...t}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(u,d,f)=>{if(d==null){xn.dismiss(o);return}let g={type:u,...s,...i,data:f},m=Hf(d)?{render:d}:d;return o?xn.update(o,{...g,...m}):xn(m.render,{...g,...m}),f},l=dc(e)?e():e;return l.then(u=>a("success",r,u)).catch(u=>a("error",n,u)),l}xn.promise=Zbe;xn.success=DE("success");xn.info=DE("info");xn.error=DE("error");xn.warning=DE("warning");xn.warn=xn.warning;xn.dark=(e,t)=>dw(e,OE("default",{theme:"dark",...t}));function Qbe(e){Wbe(e)}xn.dismiss=Qbe;xn.clearWaitingQueue=$be;xn.isActive=zJ;xn.update=(e,t={})=>{let n=Ube(e,t);if(n){let{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:HJ()};o.toastId!==e&&(o.staleId=e);let s=o.render||i;delete o.render,dw(s,o)}};xn.done=e=>{xn.update(e,{progress:1})};xn.onChange=Ybe;xn.play=e=>jJ(!0,e);xn.pause=e=>jJ(!1,e);function Jbe(e){var t;let{subscribe:n,getSnapshot:r,setProps:i}=R.useRef(Kbe(e)).current;i(e);let o=(t=R.useSyncExternalStore(n,r,r))==null?void 0:t.slice();function s(a){if(!o)return[];let l=new Map;return e.newestOnTop&&o.reverse(),o.forEach(u=>{let{position:d}=u.props;l.has(d)||l.set(d,[]),l.get(d).push(u)}),Array.from(l,u=>a(u[0],u[1]))}return{getToastToRender:s,isToastActive:zJ,count:o?.length}}function ewe(e){let[t,n]=R.useState(!1),[r,i]=R.useState(!1),o=R.useRef(null),s=R.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:l,closeToast:u,onClick:d,closeOnClick:f}=e;qbe({id:e.toastId,containerId:e.containerId,fn:n}),R.useEffect(()=>{if(e.pauseOnFocusLoss)return g(),()=>{m()}},[e.pauseOnFocusLoss]);function g(){document.hasFocus()||C(),window.addEventListener("focus",w),window.addEventListener("blur",C)}function m(){window.removeEventListener("focus",w),window.removeEventListener("blur",C)}function y(D){if(e.draggable===!0||e.draggable===D.pointerType){E();let F=o.current;s.canCloseOnClick=!0,s.canDrag=!0,F.style.transition="none",e.draggableDirection==="x"?(s.start=D.clientX,s.removalDistance=F.offsetWidth*(e.draggablePercent/100)):(s.start=D.clientY,s.removalDistance=F.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function b(D){let{top:F,bottom:L,left:N,right:M}=o.current.getBoundingClientRect();D.pointerType==="mouse"&&e.pauseOnHover&&D.clientX>=N&&D.clientX<=M&&D.clientY>=F&&D.clientY<=L?C():w()}function w(){n(!0)}function C(){n(!1)}function E(){s.didMove=!1,document.addEventListener("pointermove",T),document.addEventListener("pointerup",P)}function A(){document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",P)}function T(D){let F=o.current;if(s.canDrag&&F){s.didMove=!0,t&&C(),e.draggableDirection==="x"?s.delta=D.clientX-s.start:s.delta=D.clientY-s.start,s.start!==D.clientX&&(s.canCloseOnClick=!1);let L=e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`;F.style.transform=`translate3d(${L},0)`,F.style.opacity=`${1-Math.abs(s.delta/s.removalDistance)}`}}function P(){A();let D=o.current;if(s.canDrag&&s.didMove&&D){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance){i(!0),e.closeToast(!0),e.collapseAll();return}D.style.transition="transform 0.2s, opacity 0.2s",D.style.removeProperty("transform"),D.style.removeProperty("opacity")}}let O={onPointerDown:y,onPointerUp:b};return a&&l&&(O.onMouseEnter=C,e.stacked||(O.onMouseLeave=w)),f&&(O.onClick=D=>{d&&d(D),s.canCloseOnClick&&u(!0)}),{playToast:w,pauseToast:C,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:O}}var UJ=typeof window<"u"?R.useLayoutEffect:R.useEffect,ME=({theme:e,type:t,isLoading:n,...r})=>ye.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`,...r});function twe(e){return ye.createElement(ME,{...e},ye.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function nwe(e){return ye.createElement(ME,{...e},ye.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function rwe(e){return ye.createElement(ME,{...e},ye.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function iwe(e){return ye.createElement(ME,{...e},ye.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function owe(){return ye.createElement("div",{className:"Toastify__spinner"})}var F_={info:nwe,warning:twe,success:rwe,error:iwe,spinner:owe},swe=e=>e in F_;function awe({theme:e,type:t,isLoading:n,icon:r}){let i=null,o={theme:e,type:t};return r===!1||(dc(r)?i=r({...o,isLoading:n}):R.isValidElement(r)?i=R.cloneElement(r,o):n?i=F_.spinner():swe(t)&&(i=F_[t](o))),i}var lwe=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=ewe(e),{closeButton:s,children:a,autoClose:l,onClick:u,type:d,hideProgressBar:f,closeToast:g,transition:m,position:y,className:b,style:w,progressClassName:C,updateId:E,role:A,progress:T,rtl:P,toastId:O,deleteToast:D,isIn:F,isLoading:L,closeOnClick:N,theme:M,ariaLabel:k}=e,B=Et("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":N}),j=dc(b)?b({rtl:P,position:y,type:d,defaultClassName:B}):Et(B,b),z=awe(e),H=!!T||!l,G={closeToast:g,type:d,theme:M},$=null;return s===!1||(dc(s)?$=s(G):R.isValidElement(s)?$=R.cloneElement(s,G):$=Bbe(G)),ye.createElement(m,{isIn:F,done:D,position:y,preventExitTransition:n,nodeRef:r,playToast:o},ye.createElement("div",{id:O,tabIndex:0,onClick:u,"data-in":F,className:j,...i,style:w,ref:r,...F&&{role:A,"aria-label":k}},z!=null&&ye.createElement("div",{className:Et("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!L})},z),BJ(a,e,!t),$,!e.customProgressBar&&ye.createElement(Hbe,{...E&&!H?{key:`p-${E}`}:{},rtl:P,theme:M,delay:l,isRunning:t,isIn:F,closeToast:g,hide:f,type:d,className:C,controlledProgress:H,progress:T||0})))},uwe=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),cwe=Nbe(uwe("bounce",!0)),dwe={position:"top-right",transition:cwe,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&e.code==="KeyT"};function hwe(e){let t={...dwe,...e},n=e.stacked,[r,i]=R.useState(!0),o=R.useRef(null),{getToastToRender:s,isToastActive:a,count:l}=Jbe(t),{className:u,style:d,rtl:f,containerId:g,hotKeys:m}=t;function y(w){let C=Et("Toastify__toast-container",`Toastify__toast-container--${w}`,{"Toastify__toast-container--rtl":f});return dc(u)?u({position:w,rtl:f,defaultClassName:C}):Et(C,M_(u))}function b(){n&&(i(!0),xn.play())}return UJ(()=>{var w;if(n){let C=o.current.querySelectorAll('[data-in="true"]'),E=12,A=(w=t.position)==null?void 0:w.includes("top"),T=0,P=0;Array.from(C).reverse().forEach((O,D)=>{let F=O;F.classList.add("Toastify__toast--stacked"),D>0&&(F.dataset.collapsed=`${r}`),F.dataset.pos||(F.dataset.pos=A?"top":"bot");let L=T*(r?.2:1)+(r?0:E*D),N=Math.max(.5,1-(r?P:0));F.style.setProperty("--y",`${A?L:L*-1}px`),F.style.setProperty("--g",`${E}`),F.style.setProperty("--s",`${N}`),T+=F.offsetHeight,P+=.025})}},[r,l,n]),R.useEffect(()=>{function w(C){var E;let A=o.current;m(C)&&((E=A?.querySelector('[tabIndex="0"]'))==null||E.focus(),i(!1),xn.pause()),C.key==="Escape"&&(document.activeElement===A||A!=null&&A.contains(document.activeElement))&&(i(!0),xn.play())}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[m]),ye.createElement("section",{ref:o,className:"Toastify",id:g,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:b,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},s((w,C)=>{let E=C.length?{...d}:{...d,pointerEvents:"none"};return ye.createElement("div",{tabIndex:-1,className:y(w),"data-stacked":n,style:E,key:`c-${w}`},C.map(({content:A,props:T})=>ye.createElement(lwe,{...T,stacked:n,collapseAll:b,isIn:a(T.toastId,T.containerId),key:`t-${T.key}`},A)))}))}var fwe
vendor: 17,403 bytes, lines 17-823
17=`:root { 18 --toastify-color-light: #fff; 19 --toastify-color-dark: #121212; 20 --toastify-color-info: #3498db; 21 --toastify-color-success: #07bc0c; 22 --toastify-color-warning: #f1c40f; 23 --toastify-color-error: hsl(6, 78%, 57%); 24 --toastify-color-transparent: rgba(255, 255, 255, 0.7); 25 26 --toastify-icon-color-info: var(--toastify-color-info); 27 --toastify-icon-color-success: var(--toastify-color-success); 28 --toastify-icon-color-warning: var(--toastify-color-warning); 29 --toastify-icon-color-error: var(--toastify-color-error); 30 31 --toastify-container-width: fit-content; 32 --toastify-toast-width: 320px; 33 --toastify-toast-offset: 16px; 34 --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top)); 35 --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right)); 36 --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left)); 37 --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom)); 38 --toastify-toast-background: #fff; 39 --toastify-toast-padding: 14px; 40 --toastify-toast-min-height: 64px; 41 --toastify-toast-max-height: 800px; 42 --toastify-toast-bd-radius: 6px; 43 --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); 44 --toastify-font-family: sans-serif; 45 --toastify-z-index: 9999; 46 --toastify-text-color-light: #757575; 47 --toastify-text-color-dark: #fff; 48 49 /* Used only for colored theme */ 50 --toastify-text-color-info: #fff; 51 --toastify-text-color-success: #fff; 52 --toastify-text-color-warning: #fff; 53 --toastify-text-color-error: #fff; 54 55 --toastify-spinner-color: #616161; 56 --toastify-spinner-color-empty-area: #e0e0e0; 57 --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55); 58 --toastify-color-progress-dark: #bb86fc; 59 --toastify-color-progress-info: var(--toastify-color-info); 60 --toastify-color-progress-success: var(--toastify-color-success); 61 --toastify-color-progress-warning: var(--toastify-color-warning); 62 --toastify-color-progress-error: var(--toastify-color-error); 63 /* used to control the opacity of the progress trail */ 64 --toastify-color-progress-bgo: 0.2; 65} 66 67.Toastify__toast-container { 68 z-index: var(--toastify-z-index); 69 -webkit-transform: translate3d(0, 0, var(--toastify-z-index)); 70 position: fixed; 71 width: var(--toastify-container-width); 72 box-sizing: border-box; 73 color: #fff; 74 display: flex; 75 flex-direction: column; 76} 77 78.Toastify__toast-container--top-left { 79 top: var(--toastify-toast-top); 80 left: var(--toastify-toast-left); 81} 82.Toastify__toast-container--top-center { 83 top: var(--toastify-toast-top); 84 left: 50%; 85 transform: translateX(-50%); 86 align-items: center; 87} 88.Toastify__toast-container--top-right { 89 top: var(--toastify-toast-top); 90 right: var(--toastify-toast-right); 91 align-items: end; 92} 93.Toastify__toast-container--bottom-left { 94 bottom: var(--toastify-toast-bottom); 95 left: var(--toastify-toast-left); 96} 97.Toastify__toast-container--bottom-center { 98 bottom: var(--toastify-toast-bottom); 99 left: 50%; 100 transform: translateX(-50%); 101 align-items: center; 102} 103.Toastify__toast-container--bottom-right { 104 bottom: var(--toastify-toast-bottom); 105 right: var(--toastify-toast-right); 106 align-items: end; 107} 108 109.Toastify__toast { 110 --y: 0px; 111 position: relative; 112 touch-action: none; 113 width: var(--toastify-toast-width); 114 min-height: var(--toastify-toast-min-height); 115 box-sizing: border-box; 116 margin-bottom: 1rem; 117 padding: var(--toastify-toast-padding); 118 border-radius: var(--toastify-toast-bd-radius); 119 box-shadow: var(--toastify-toast-shadow); 120 max-height: var(--toastify-toast-max-height); 121 font-family: var(--toastify-font-family); 122 /* webkit only issue #791 */ 123 z-index: 0; 124 /* inner swag */ 125 display: flex; 126 flex: 1 auto; 127 align-items: center; 128 word-break: break-word; 129} 130 131@media only screen and (max-width: 480px) { 132 .Toastify__toast-container { 133 width: 100vw; 134 left: env(safe-area-inset-left); 135 margin: 0; 136 } 137 .Toastify__toast-container--top-left, 138 .Toastify__toast-container--top-center, 139 .Toastify__toast-container--top-right { 140 top: env(safe-area-inset-top); 141 transform: translateX(0); 142 } 143 .Toastify__toast-container--bottom-left, 144 .Toastify__toast-container--bottom-center, 145 .Toastify__toast-container--bottom-right { 146 bottom: env(safe-area-inset-bottom); 147 transform: translateX(0); 148 } 149 .Toastify__toast-container--rtl { 150 right: env(safe-area-inset-right); 151 left: initial; 152 } 153 .Toastify__toast { 154 --toastify-toast-width: 100%; 155 margin-bottom: 0; 156 border-radius: 0; 157 } 158} 159 160.Toastify__toast-container[data-stacked='true'] { 161 width: var(--toastify-toast-width); 162} 163 164@media only screen and (max-width: 480px) { 165 .Toastify__toast-container[data-stacked='true'] { 166 width: 100vw; 167 } 168} 169 170.Toastify__toast--stacked { 171 position: absolute; 172 width: 100%; 173 transform: translate3d(0, var(--y), 0) scale(var(--s)); 174 transition: transform 0.3s; 175} 176 177.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body, 178.Toastify__toast--stacked[data-collapsed] .Toastify__close-button { 179 transition: opacity 0.1s; 180} 181 182.Toastify__toast--stacked[data-collapsed='false'] { 183 overflow: visible; 184} 185 186.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * { 187 opacity: 0; 188} 189 190.Toastify__toast--stacked:after { 191 content: ''; 192 position: absolute; 193 left: 0; 194 right: 0; 195 height: calc(var(--g) * 1px); 196 bottom: 100%; 197} 198 199.Toastify__toast--stacked[data-pos='top'] { 200 top: 0; 201} 202 203.Toastify__toast--stacked[data-pos='bot'] { 204 bottom: 0; 205} 206 207.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before { 208 transform-origin: top; 209} 210 211.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before { 212 transform-origin: bottom; 213} 214 215.Toastify__toast--stacked:before { 216 content: ''; 217 position: absolute; 218 left: 0; 219 right: 0; 220 bottom: 0; 221 height: 100%; 222 transform: scaleY(3); 223 z-index: -1; 224} 225 226.Toastify__toast--rtl { 227 direction: rtl; 228} 229 230.Toastify__toast--close-on-click { 231 cursor: pointer; 232} 233 234.Toastify__toast-icon { 235 margin-inline-end: 10px; 236 width: 22px; 237 flex-shrink: 0; 238 display: flex; 239} 240 241.Toastify--animate { 242 animation-fill-mode: both; 243 animation-duration: 0.5s; 244} 245 246.Toastify--animate-icon { 247 animation-fill-mode: both; 248 animation-duration: 0.3s; 249} 250 251.Toastify__toast-theme--dark { 252 background: var(--toastify-color-dark); 253 color: var(--toastify-text-color-dark); 254} 255 256.Toastify__toast-theme--light { 257 background: var(--toastify-color-light); 258 color: var(--toastify-text-color-light); 259} 260 261.Toastify__toast-theme--colored.Toastify__toast--default { 262 background: var(--toastify-color-light); 263 color: var(--toastify-text-color-light); 264} 265 266.Toastify__toast-theme--colored.Toastify__toast--info { 267 color: var(--toastify-text-color-info); 268 background: var(--toastify-color-info); 269} 270 271.Toastify__toast-theme--colored.Toastify__toast--success { 272 color: var(--toastify-text-color-success); 273 background: var(--toastify-color-success); 274} 275 276.Toastify__toast-theme--colored.Toastify__toast--warning { 277 color: var(--toastify-text-color-warning); 278 background: var(--toastify-color-warning); 279} 280 281.Toastify__toast-theme--colored.Toastify__toast--error { 282 color: var(--toastify-text-color-error); 283 background: var(--toastify-color-error); 284} 285 286.Toastify__progress-bar-theme--light { 287 background: var(--toastify-color-progress-light); 288} 289 290.Toastify__progress-bar-theme--dark { 291 background: var(--toastify-color-progress-dark); 292} 293 294.Toastify__progress-bar--info { 295 background: var(--toastify-color-progress-info); 296} 297 298.Toastify__progress-bar--success { 299 background: var(--toastify-color-progress-success); 300} 301 302.Toastify__progress-bar--warning { 303 background: var(--toastify-color-progress-warning); 304} 305 306.Toastify__progress-bar--error { 307 background: var(--toastify-color-progress-error); 308} 309 310.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, 311.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, 312.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, 313.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error { 314 background: var(--toastify-color-transparent); 315} 316 317.Toastify__close-button { 318 color: #fff; 319 position: absolute; 320 top: 6px; 321 right: 6px; 322 background: transparent; 323 outline: none; 324 border: none; 325 padding: 0; 326 cursor: pointer; 327 opacity: 0.7; 328 transition: 0.3s ease; 329 z-index: 1; 330} 331 332.Toastify__toast--rtl .Toastify__close-button { 333 left: 6px; 334 right: unset; 335} 336 337.Toastify__close-button--light { 338 color: #000; 339 opacity: 0.3; 340} 341 342.Toastify__close-button > svg { 343 fill: currentColor; 344 height: 16px; 345 width: 14px; 346} 347 348.Toastify__close-button:hover, 349.Toastify__close-button:focus { 350 opacity: 1; 351} 352 353@keyframes Toastify__trackProgress { 354 0% { 355 transform: scaleX(1); 356 } 357 100% { 358 transform: scaleX(0); 359 } 360} 361 362.Toastify__progress-bar { 363 position: absolute; 364 bottom: 0; 365 left: 0; 366 width: 100%; 367 height: 100%; 368 z-index: 1; 369 opacity: 0.7; 370 transform-origin: left; 371} 372 373.Toastify__progress-bar--animated { 374 animation: Toastify__trackProgress linear 1 forwards; 375} 376 377.Toastify__progress-bar--controlled { 378 transition: transform 0.2s; 379} 380 381.Toastify__progress-bar--rtl { 382 right: 0; 383 left: initial; 384 transform-origin: right; 385 border-bottom-left-radius: initial; 386} 387 388.Toastify__progress-bar--wrp { 389 position: absolute; 390 overflow: hidden; 391 bottom: 0; 392 left: 0; 393 width: 100%; 394 height: 5px; 395 border-bottom-left-radius: var(--toastify-toast-bd-radius); 396 border-bottom-right-radius: var(--toastify-toast-bd-radius); 397} 398 399.Toastify__progress-bar--wrp[data-hidden='true'] { 400 opacity: 0; 401} 402 403.Toastify__progress-bar--bg { 404 opacity: var(--toastify-color-progress-bgo); 405 width: 100%; 406 height: 100%; 407} 408 409.Toastify__spinner { 410 width: 20px; 411 height: 20px; 412 box-sizing: border-box; 413 border: 2px solid; 414 border-radius: 100%; 415 border-color: var(--toastify-spinner-color-empty-area); 416 border-right-color: var(--toastify-spinner-color); 417 animation: Toastify__spin 0.65s linear infinite; 418} 419 420@keyframes Toastify__bounceInRight { 421 from, 422 60%, 423 75%, 424 90%, 425 to { 426 animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); 427 } 428 from { 429 opacity: 0; 430 transform: translate3d(3000px, 0, 0); 431 } 432 60% { 433 opacity: 1; 434 transform: translate3d(-25px, 0, 0); 435 } 436 75% { 437 transform: translate3d(10px, 0, 0); 438 } 439 90% { 440 transform: translate3d(-5px, 0, 0); 441 } 442 to { 443 transform: none; 444 } 445} 446 447@keyframes Toastify__bounceOutRight { 448 20% { 449 opacity: 1; 450 transform: translate3d(-20px, var(--y), 0); 451 } 452 to { 453 opacity: 0; 454 transform: translate3d(2000px, var(--y), 0); 455 } 456} 457 458@keyframes Toastify__bounceInLeft { 459 from, 460 60%, 461 75%, 462 90%, 463 to { 464 animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); 465 } 466 0% { 467 opacity: 0; 468 transform: translate3d(-3000px, 0, 0); 469 } 470 60% { 471 opacity: 1; 472 transform: translate3d(25px, 0, 0); 473 } 474 75% { 475 transform: translate3d(-10px, 0, 0); 476 } 477 90% { 478 transform: translate3d(5px, 0, 0); 479 } 480 to { 481 transform: none; 482 } 483} 484 485@keyframes Toastify__bounceOutLeft { 486 20% { 487 opacity: 1; 488 transform: translate3d(20px, var(--y), 0); 489 } 490 to { 491 opacity: 0; 492 transform: translate3d(-2000px, var(--y), 0); 493 } 494} 495 496@keyframes Toastify__bounceInUp { 497 from, 498 60%, 499 75%, 500 90%, 501 to { 502 animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); 503 } 504 from { 505 opacity: 0; 506 transform: translate3d(0, 3000px, 0); 507 } 508 60% { 509 opacity: 1; 510 transform: translate3d(0, -20px, 0); 511 } 512 75% { 513 transform: translate3d(0, 10px, 0); 514 } 515 90% { 516 transform: translate3d(0, -5px, 0); 517 } 518 to { 519 transform: translate3d(0, 0, 0); 520 } 521} 522 523@keyframes Toastify__bounceOutUp { 524 20% { 525 transform: translate3d(0, calc(var(--y) - 10px), 0); 526 } 527 40%, 528 45% { 529 opacity: 1; 530 transform: translate3d(0, calc(var(--y) + 20px), 0); 531 } 532 to { 533 opacity: 0; 534 transform: translate3d(0, -2000px, 0); 535 } 536} 537 538@keyframes Toastify__bounceInDown { 539 from, 540 60%, 541 75%, 542 90%, 543 to { 544 animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); 545 } 546 0% { 547 opacity: 0; 548 transform: translate3d(0, -3000px, 0); 549 } 550 60% { 551 opacity: 1; 552 transform: translate3d(0, 25px, 0); 553 } 554 75% { 555 transform: translate3d(0, -10px, 0); 556 } 557 90% { 558 transform: translate3d(0, 5px, 0); 559 } 560 to { 561 transform: none; 562 } 563} 564 565@keyframes Toastify__bounceOutDown { 566 20% { 567 transform: translate3d(0, calc(var(--y) - 10px), 0); 568 } 569 40%, 570 45% { 571 opacity: 1; 572 transform: translate3d(0, calc(var(--y) + 20px), 0); 573 } 574 to { 575 opacity: 0; 576 transform: translate3d(0, 2000px, 0); 577 } 578} 579 580.Toastify__bounce-enter--top-left, 581.Toastify__bounce-enter--bottom-left { 582 animation-name: Toastify__bounceInLeft; 583} 584 585.Toastify__bounce-enter--top-right, 586.Toastify__bounce-enter--bottom-right { 587 animation-name: Toastify__bounceInRight; 588} 589 590.Toastify__bounce-enter--top-center { 591 animation-name: Toastify__bounceInDown; 592} 593 594.Toastify__bounce-enter--bottom-center { 595 animation-name: Toastify__bounceInUp; 596} 597 598.Toastify__bounce-exit--top-left, 599.Toastify__bounce-exit--bottom-left { 600 animation-name: Toastify__bounceOutLeft; 601} 602 603.Toastify__bounce-exit--top-right, 604.Toastify__bounce-exit--bottom-right { 605 animation-name: Toastify__bounceOutRight; 606} 607 608.Toastify__bounce-exit--top-center { 609 animation-name: Toastify__bounceOutUp; 610} 611 612.Toastify__bounce-exit--bottom-center { 613 animation-name: Toastify__bounceOutDown; 614} 615 616@keyframes Toastify__zoomIn { 617 from { 618 opacity: 0; 619 transform: scale3d(0.3, 0.3, 0.3); 620 } 621 50% { 622 opacity: 1; 623 } 624} 625 626@keyframes Toastify__zoomOut { 627 from { 628 opacity: 1; 629 } 630 50% { 631 opacity: 0; 632 transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3); 633 } 634 to { 635 opacity: 0; 636 } 637} 638 639.Toastify__zoom-enter { 640 animation-name: Toastify__zoomIn; 641} 642 643.Toastify__zoom-exit { 644 animation-name: Toastify__zoomOut; 645} 646 647@keyframes Toastify__flipIn { 648 from { 649 transform: perspective(400px) rotate3d(1, 0, 0, 90deg); 650 animation-timing-function: ease-in; 651 opacity: 0; 652 } 653 40% { 654 transform: perspective(400px) rotate3d(1, 0, 0, -20deg); 655 animation-timing-function: ease-in; 656 } 657 60% { 658 transform: perspective(400px) rotate3d(1, 0, 0, 10deg); 659 opacity: 1; 660 } 661 80% { 662 transform: perspective(400px) rotate3d(1, 0, 0, -5deg); 663 } 664 to { 665 transform: perspective(400px); 666 } 667} 668 669@keyframes Toastify__flipOut { 670 from { 671 transform: translate3d(0, var(--y), 0) perspective(400px); 672 } 673 30% { 674 transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg); 675 opacity: 1; 676 } 677 to { 678 transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg); 679 opacity: 0; 680 } 681} 682 683.Toastify__flip-enter { 684 animation-name: Toastify__flipIn; 685} 686 687.Toastify__flip-exit { 688 animation-name: Toastify__flipOut; 689} 690 691@keyframes Toastify__slideInRight { 692 from { 693 transform: translate3d(110%, 0, 0); 694 visibility: visible; 695 } 696 to { 697 transform: translate3d(0, var(--y), 0); 698 } 699} 700 701@keyframes Toastify__slideInLeft { 702 from { 703 transform: translate3d(-110%, 0, 0); 704 visibility: visible; 705 } 706 to { 707 transform: translate3d(0, var(--y), 0); 708 } 709} 710 711@keyframes Toastify__slideInUp { 712 from { 713 transform: translate3d(0, 110%, 0); 714 visibility: visible; 715 } 716 to { 717 transform: translate3d(0, var(--y), 0); 718 } 719} 720 721@keyframes Toastify__slideInDown { 722 from { 723 transform: translate3d(0, -110%, 0); 724 visibility: visible; 725 } 726 to { 727 transform: translate3d(0, var(--y), 0); 728 } 729} 730 731@keyframes Toastify__slideOutRight { 732 from { 733 transform: translate3d(0, var(--y), 0); 734 } 735 to { 736 visibility: hidden; 737 transform: translate3d(110%, var(--y), 0); 738 } 739} 740 741@keyframes Toastify__slideOutLeft { 742 from { 743 transform: translate3d(0, var(--y), 0); 744 } 745 to { 746 visibility: hidden; 747 transform: translate3d(-110%, var(--y), 0); 748 } 749} 750 751@keyframes Toastify__slideOutDown { 752 from { 753 transform: translate3d(0, var(--y), 0); 754 } 755 to { 756 visibility: hidden; 757 transform: translate3d(0, 500px, 0); 758 } 759} 760 761@keyframes Toastify__slideOutUp { 762 from { 763 transform: translate3d(0, var(--y), 0); 764 } 765 to { 766 visibility: hidden; 767 transform: translate3d(0, -500px, 0); 768 } 769} 770 771.Toastify__slide-enter--top-left, 772.Toastify__slide-enter--bottom-left { 773 animation-name: Toastify__slideInLeft; 774} 775 776.Toastify__slide-enter--top-right, 777.Toastify__slide-enter--bottom-right { 778 animation-name: Toastify__slideInRight; 779} 780 781.Toastify__slide-enter--top-center { 782 animation-name: Toastify__slideInDown; 783} 784 785.Toastify__slide-enter--bottom-center { 786 animation-name: Toastify__slideInUp; 787} 788 789.Toastify__slide-exit--top-left, 790.Toastify__slide-exit--bottom-left { 791 animation-name: Toastify__slideOutLeft; 792 animation-timing-function: ease-in; 793 animation-duration: 0.3s; 794} 795 796.Toastify__slide-exit--top-right, 797.Toastify__slide-exit--bottom-right { 798 animation-name: Toastify__slideOutRight; 799 animation-timing-function: ease-in; 800 animation-duration: 0.3s; 801} 802 803.Toastify__slide-exit--top-center { 804 animation-name: Toastify__slideOutUp; 805 animation-timing-function: ease-in; 806 animation-duration: 0.3s; 807} 808 809.Toastify__slide-exit--bottom-center { 810 animation-name: Toastify__slideOutDown; 811 animation-timing-function: ease-in; 812 animation-duration: 0.3s; 813} 814 815@keyframes Toastify__spin { 816 from { 817 transform: rotate(0deg); 818 } 819 to { 820 transform: rotate(360deg); 821 } 822} 823`
vendor: 3,143 bytes, line 823
823,e8=new Map,gwe=(e,t)=>{UJ(()=>{if(typeof document>"u")return;let n=document,r=e8.get(n);if(r){t&&r.setAttribute("nonce",t);return}let i=n.createElement("style");i.textContent=e,t&&i.setAttribute("nonce",t),n.head.appendChild(i),e8.set(n,i)},[t])};function uwt(e){return gwe(fwe,e.nonce),ye.createElement(hwe,{...e})}function hw(e){return e+.5|0}const Pd=(e,t,n)=>Math.max(Math.min(e,n),t);function Ly(e){return Pd(hw(e*2.55),0,255)}function Nd(e){return Pd(hw(e*255),0,255)}function Yu(e){return Pd(hw(e/2.55)/100,0,1)}function t8(e){return Pd(hw(e*100),0,100)}const Us={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},k_=[..."0123456789ABCDEF"],pwe=e=>k_[e&15],mwe=e=>k_[(e&240)>>4]+k_[e&15],B0=e=>(e&240)>>4===(e&15),vwe=e=>B0(e.r)&&B0(e.g)&&B0(e.b)&&B0(e.a);function ywe(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Us[e[1]]*17,g:255&Us[e[2]]*17,b:255&Us[e[3]]*17,a:t===5?Us[e[4]]*17:255}:(t===7||t===9)&&(n={r:Us[e[1]]<<4|Us[e[2]],g:Us[e[3]]<<4|Us[e[4]],b:Us[e[5]]<<4|Us[e[6]],a:t===9?Us[e[7]]<<4|Us[e[8]]:255})),n}const bwe=(e,t)=>e<255?t(e):"";function wwe(e){var t=vwe(e)?pwe:mwe;return e?"#"+t(e.r)+t(e.g)+t(e.b)+bwe(e.a,t):void 0}const Cwe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function WJ(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function Swe(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function xwe(e,t,n){const r=WJ(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Ewe(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function PL(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),s=Math.min(n,r,i),a=(o+s)/2;let l,u,d;return o!==s&&(d=o-s,u=a>.5?d/(2-o-s):d/(o+s),l=Ewe(n,r,i,d,o),l=l*60+.5),[l|0,u||0,a]}function OL(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Nd)}function DL(e,t,n){return OL(WJ,e,t,n)}function Rwe(e,t,n){return OL(xwe,e,t,n)}function Awe(e,t,n){return OL(Swe,e,t,n)}function $J(e){return(e%360+360)%360}function Twe(e){const t=Cwe.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ly(+t[5]):Nd(+t[5]));const i=$J(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=Rwe(i,o,s):t[1]==="hsv"?r=Awe(i,o,s):r=DL(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function Pwe(e,t){var n=PL(e);n[0]=$J(n[0]+t),n=DL(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Owe(e){if(!e)return;const t=PL(e),n=t[0],r=t8(t[1]),i=t8(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Yu(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const n8={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},r8={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
vendor: 5,090 bytes, line 823
823ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Dwe(){const e={},t=Object.keys(r8),n=Object.keys(n8);let r,i,o,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,n8[o]);o=parseInt(r8[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let H0;function Mwe(e){H0||(H0=Dwe(),H0.transparent=[0,0,0,0]);const t=H0[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Iwe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function _we(e){const t=Iwe.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?Ly(s):Pd(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Ly(r):Pd(r,0,255)),i=255&(t[4]?Ly(i):Pd(i,0,255)),o=255&(t[6]?Ly(o):Pd(o,0,255)),{r,g:i,b:o,a:n}}}function Fwe(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Yu(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const yO=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,wp=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function kwe(e,t,n){const r=wp(Yu(e.r)),i=wp(Yu(e.g)),o=wp(Yu(e.b));return{r:Nd(yO(r+n*(wp(Yu(t.r))-r))),g:Nd(yO(i+n*(wp(Yu(t.g))-i))),b:Nd(yO(o+n*(wp(Yu(t.b))-o))),a:e.a+n*(t.a-e.a)}}function V0(e,t,n){if(e){let r=PL(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=DL(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function qJ(e,t){return e&&Object.assign(t||{},e)}function i8(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Nd(e[3]))):(t=qJ(e,{r:0,g:0,b:0,a:1}),t.a=Nd(t.a)),t}function Lwe(e){return e.charAt(0)==="r"?_we(e):Twe(e)}let KJ=class L_{constructor(t){if(t instanceof L_)return t;const n=typeof t;let r;n==="object"?r=i8(t):n==="string"&&(r=ywe(t)||Mwe(t)||Lwe(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=qJ(this._rgb);return t&&(t.a=Yu(t.a)),t}set rgb(t){this._rgb=i8(t)}rgbString(){return this._valid?Fwe(this._rgb):void 0}hexString(){return this._valid?wwe(this._rgb):void 0}hslString(){return this._valid?Owe(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,u=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-u,r.r=255&u*r.r+o*i.r+.5,r.g=255&u*r.g+o*i.g+.5,r.b=255&u*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=kwe(this._rgb,t._rgb,n)),this}clone(){return new L_(this.rgb)}alpha(t){return this._rgb.a=Nd(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=hw(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return V0(this._rgb,2,t),this}darken(t){return V0(this._rgb,2,-t),this}saturate(t){return V0(this._rgb,1,t),this}desaturate(t){return V0(this._rgb,1,-t),this}rotate(t){return Pwe(this._rgb,t),this}};function Vu(){}const Nwe=(()=>{let e=0;return()=>e++})();function rn(e){return e==null}function kr(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);
vendor: 4,496 bytes, line 823
823return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Nt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function oo(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Al(e,t){return oo(e)?e:t}function At(e,t){return typeof e>"u"?t:e}const Bwe=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,YJ=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ln(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function dn(e,t,n,r){let i,o,s;if(kr(e))for(o=e.length,i=0;i<o;i++)t.call(n,e[i],i);else if(Nt(e))for(s=Object.keys(e),o=s.length,i=0;i<o;i++)t.call(n,e[s[i]],s[i])}function A1(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function T1(e){if(kr(e))return e.map(T1);if(Nt(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=T1(e[n[i]]);return t}return e}function XJ(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Hwe(e,t,n,r){if(!XJ(e))return;const i=t[e],o=n[e];Nt(i)&&Nt(o)?Cb(i,o,r):t[e]=T1(o)}function Cb(e,t,n){const r=kr(t)?t:[t],i=r.length;if(!Nt(e))return e;n=n||{};const o=n.merger||Hwe;let s;for(let a=0;a<i;++a){if(s=r[a],!Nt(s))continue;const l=Object.keys(s);for(let u=0,d=l.length;u<d;++u)o(l[u],e,s,n)}return e}function Xy(e,t){return Cb(e,t,{merger:Vwe})}function Vwe(e,t,n){if(!XJ(e))return;const r=t[e],i=n[e];Nt(r)&&Nt(i)?Xy(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=T1(i))}const o8={"":e=>e,x:e=>e.x,y:e=>e.y};function zwe(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Gwe(e){const t=zwe(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Vf(e,t){return(o8[t]||(o8[t]=Gwe(t)))(e)}function ML(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Sb=e=>typeof e<"u",Wd=e=>typeof e=="function",s8=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function jwe(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const fn=Math.PI,nr=2*fn,Uwe=nr+fn,P1=Number.POSITIVE_INFINITY,Wwe=fn/180,qr=fn/2,Hh=fn/4,a8=fn*2/3,ZJ=Math.log10,Wl=Math.sign;function Zy(e,t,n){return Math.abs(e-t)<n}function l8(e){const t=Math.round(e);e=Zy(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ZJ(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function $we(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function qwe(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function xb(e){return!qwe(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Kwe(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Ywe(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Ju(e){return e*(fn/180)}function Xwe(e){return e*(180/fn)}function u8(e){if(!oo(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function QJ(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*fn&&(o+=nr),{angle:o,distance:i}}function N_(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Zwe(e,t){return(e-t+Uwe)%nr-fn}function vs(e){return(e%nr+nr)%nr}function Eb(e,t,n,r){const i=vs(e),o=vs(t),s=vs(n),a=vs(o-i),l=vs(s-i),u=vs(i-o),d=vs(i-s);return i===o||i===s||r&&o===s||a>l&&u<d}function to(e,t,n){return Math.max(t,Math.min(n,e))}function Qwe(e){return to(e,-32768,32767)}function ec(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function IL(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const hf=(e,t,n,r)=>IL(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),Jwe=(e,t,n)=>IL(e,n,r=>e[r][t]>=n);function eCe(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const JJ=["push","pop","shift","splice","unshift"];function tCe(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),JJ.forEach(n=>{const r="_onData"+ML(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);
vendor: 4,471 bytes, line 823
823return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function c8(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(JJ.forEach(o=>{delete e[o]}),delete e._chartjs)}function eee(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const tee=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function nee(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,tee.call(window,()=>{r=!1,e.apply(t,n)}))}}function nCe(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const _L=e=>e==="start"?"left":e==="end"?"right":"center",qi=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,rCe=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function iCe(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,vScale:a,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,d=s.axis,{min:f,max:g,minDefined:m,maxDefined:y}=s.getUserBounds();if(m){if(i=Math.min(hf(l,d,f).lo,n?r:hf(t,d,s.getPixelForValue(f)).lo),u){const b=l.slice(0,i+1).reverse().findIndex(w=>!rn(w[a.axis]));i-=Math.max(0,b)}i=to(i,0,r-1)}if(y){let b=Math.max(hf(l,s.axis,g,!0).hi+1,n?0:hf(t,d,s.getPixelForValue(g),!0).hi+1);if(u){const w=l.slice(b-1).findIndex(C=>!rn(C[a.axis]));b+=Math.max(0,w)}o=to(b,i,r)-i}else o=r-i}return{start:i,count:o}}function oCe(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const z0=e=>e===0||e===1,d8=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*nr/n)),h8=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*nr/n)+1,Qy={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*qr)+1,easeOutSine:e=>Math.sin(e*qr),easeInOutSine:e=>-.5*(Math.cos(fn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>z0(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>z0(e)?e:d8(e,.075,.3),easeOutElastic:e=>z0(e)?e:h8(e,.075,.3),easeInOutElastic(e){return z0(e)?e:e<.5?.5*d8(e*2,.1125,.45):.5+.5*h8(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Qy.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Qy.easeInBounce(e*2)*.5:Qy.easeOutBounce(e*2-1)*.5+.5};function FL(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function f8(e){return FL(e)?e:new KJ(e)}function bO(e){return FL(e)?e:new KJ(e).saturate(.5).darken(.1).hexString()}const sCe=["x","y","borderWidth","radius","tension"],aCe=["color","borderColor","backgroundColor"];function lCe(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:aCe},numbers:{type:"number",properties:sCe}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function uCe(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}
vendor: 43,198 bytes, line 823
823const g8=new Map;function cCe(e,t){t=t||{};const n=e+JSON.stringify(t);let r=g8.get(n);return r||(r=new Intl.NumberFormat(e,t),g8.set(n,r)),r}function kL(e,t,n){return cCe(t,n).format(e)}const dCe={values(e){return kr(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=hCe(e,n)}const s=ZJ(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),kL(e,r,l)}};function hCe(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ree={formatters:dCe};function fCe(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ree.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const zf=Object.create(null),B_=Object.create(null);function Jy(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function wO(e,t,n){return typeof t=="string"?Cb(Jy(e,t),n):Cb(Jy(e,""),t)}class gCe{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>bO(i.backgroundColor),this.hoverBorderColor=(r,i)=>bO(i.borderColor),this.hoverColor=(r,i)=>bO(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return wO(this,t,n)}get(t){return Jy(this,t)}describe(t,n){return wO(B_,t,n)}override(t,n){return wO(zf,t,n)}route(t,n,r,i){const o=Jy(this,t),s=Jy(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],u=s[i];return Nt(l)?Object.assign({},u,l):At(l,u)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Er=new gCe({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[lCe,uCe,fCe]);function pCe(e){return!e||rn(e.size)||rn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function p8(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Vh(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function m8(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function H_(e,t,n,r){iee(e,t,n,r,null)}function iee(e,t,n,r,i){let o,s,a,l,u,d,f,g;const m=t.pointStyle,y=t.rotation,b=t.radius;let w=(y||0)*Wwe;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(w),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(b)||b<=0)){switch(e.beginPath(),m){default:i?e.ellipse(n,r,i/2,b,0,0,nr):e.arc(n,r,b,0,nr),e.closePath();break;case"triangle":d=i?i/2:b,e.moveTo(n+Math.sin(w)*d,r-Math.cos(w)*b),w+=a8,e.lineTo(n+Math.sin(w)*d,r-Math.cos(w)*b),w+=a8,e.lineTo(n+Math.sin(w)*d,r-Math.cos(w)*b),e.closePath();break;case"rectRounded":u=b*.516,l=b-u,s=Math.cos(w+Hh)*l,f=Math.cos(w+Hh)*(i?i/2-u:l),a=Math.sin(w+Hh)*l,g=Math.sin(w+Hh)*(i?i/2-u:l),e.arc(n-f,r-a,u,w-fn,w-qr),e.arc(n+g,r-s,u,w-qr,w),e.arc(n+f,r+a,u,w,w+qr),e.arc(n-g,r+s,u,w+qr,w+fn),e.closePath();break;case"rect":if(!y){l=Math.SQRT1_2*b,d=i?i/2:l,e.rect(n-d,r-l,2*d,2*l);break}w+=Hh;case"rectRot":f=Math.cos(w)*(i?i/2:b),s=Math.cos(w)*b,a=Math.sin(w)*b,g=Math.sin(w)*(i?i/2:b),e.moveTo(n-f,r-a),e.lineTo(n+g,r-s),e.lineTo(n+f,r+a),e.lineTo(n-g,r+s),e.closePath();break;case"crossRot":w+=Hh;case"cross":f=Math.cos(w)*(i?i/2:b),s=Math.cos(w)*b,a=Math.sin(w)*b,g=Math.sin(w)*(i?i/2:b),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+g,r-s),e.lineTo(n-g,r+s);break;case"star":f=Math.cos(w)*(i?i/2:b),s=Math.cos(w)*b,a=Math.sin(w)*b,g=Math.sin(w)*(i?i/2:b),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+g,r-s),e.lineTo(n-g,r+s),w+=Hh,f=Math.cos(w)*(i?i/2:b),s=Math.cos(w)*b,a=Math.sin(w)*b,g=Math.sin(w)*(i?i/2:b),e.moveTo(n-f,r-a),e.lineTo(n+f,r+a),e.moveTo(n+g,r-s),e.lineTo(n-g,r+s);break;case"line":s=i?i/2:Math.cos(w)*b,a=Math.sin(w)*b,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(w)*(i?i/2:b),r+Math.sin(w)*b);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Rb(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function IE(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function _E(e){e.restore()}function mCe(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function vCe(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function yCe(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),rn(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function bCe(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,d=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,d),e.lineTo(a,d),e.stroke()}}function wCe(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Ab(e,t,n,r,i,o={}){const s=kr(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,yCe(e,o),l=0;l<s.length;++l)u=s[l],o.backdrop&&wCe(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),rn(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(u,n,r,o.maxWidth)),e.fillText(u,n,r,o.maxWidth),bCe(e,n,r,u,o),r+=Number(i.lineHeight);e.restore()}function O1(e,t){const{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*fn,fn,!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,fn,qr,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,qr,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-qr,!0),e.lineTo(n+s.topLeft,r)}const CCe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,SCe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function xCe(e,t){const n=(""+e).match(CCe);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const ECe=e=>+e||0;function LL(e,t){const n={},r=Nt(t),i=r?Object.keys(t):t,o=Nt(e)?r?s=>At(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=ECe(o(s));return n}function oee(e){return LL(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Kp(e){return LL(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ca(e){const t=oee(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function no(e,t){e=e||{},t=t||Er.font;let n=At(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=At(e.style,t.style);r&&!(""+r).match(SCe)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:At(e.family,t.family),lineHeight:xCe(At(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:At(e.weight,t.weight),string:""};return i.string=pCe(i),i}function G0(e,t,n,r){let i,o,s;for(i=0,o=e.length;i<o;++i)if(s=e[i],s!==void 0&&s!==void 0)return s}function RCe(e,t,n){const{min:r,max:i}=e,o=YJ(t,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function gg(e,t){return Object.assign(Object.create(e),t)}function NL(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=uee("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:a=>NL([a,...e],t,o,r)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return aee(a,l,()=>_Ce(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return y8(a).includes(l)},ownKeys(a){return y8(a)},set(a,l,u){const d=a._storage||(a._storage=i());return a[l]=d[l]=u,delete a._keys,!0}})}function vm(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:see(e,r),setContext:o=>vm(e,o,n,r),override:o=>vm(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return aee(o,s,()=>TCe(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function see(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Wd(n)?n:()=>n,isIndexable:Wd(r)?r:()=>r}}const ACe=(e,t)=>e?e+ML(t):t,BL=(e,t)=>Nt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function aee(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function TCe(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return Wd(a)&&s.isScriptable(t)&&(a=PCe(t,a,e,n)),kr(a)&&a.length&&(a=OCe(t,a,e,s.isIndexable)),BL(t,a)&&(a=vm(a,i,o&&o[t],s)),a}function PCe(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,s||r);return a.delete(e),BL(e,l)&&(l=HL(i._scopes,i,e,l)),l}function OCe(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(Nt(t[0])){const l=t,u=i._scopes.filter(d=>d!==l);t=[];for(const d of l){const f=HL(u,i,e,d);t.push(vm(f,o,s&&s[e],a))}}return t}function lee(e,t,n){return Wd(e)?e(t,n):e}const DCe=(e,t)=>e===!0?t:typeof e=="string"?Vf(t,e):void 0;function MCe(e,t,n,r,i){for(const o of t){const s=DCe(n,o);if(s){e.add(s);const a=lee(s._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function HL(e,t,n,r){const i=t._rootScopes,o=lee(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=v8(a,s,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=v8(a,s,o,l,r),l===null)?!1:NL(Array.from(a),[""],i,o,()=>ICe(t,n,r))}function v8(e,t,n,r,i){for(;n;)n=MCe(e,t,n,r,i);return n}function ICe(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return kr(i)&&Nt(n)?n:i||{}}function _Ce(e,t,n,r){let i;for(const o of t)if(i=uee(ACe(o,e),n),typeof i<"u")return BL(e,i)?HL(n,r,e,i):i}function uee(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function y8(e){let t=e._keys;return t||(t=e._keys=FCe(e._scopes)),t}function FCe(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const kCe=Number.EPSILON||1e-14,ym=(e,t)=>t<e.length&&!e[t].skip&&e[t],cee=e=>e==="x"?"y":"x";function LCe(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=N_(o,i),l=N_(s,o);let u=a/(a+l),d=l/(a+l);u=isNaN(u)?0:u,d=isNaN(d)?0:d;const f=r*u,g=r*d;return{previous:{x:o.x-f*(s.x-i.x),y:o.y-f*(s.y-i.y)},next:{x:o.x+g*(s.x-i.x),y:o.y+g*(s.y-i.y)}}}function NCe(e,t,n){const r=e.length;let i,o,s,a,l,u=ym(e,0);for(let d=0;d<r-1;++d)if(l=u,u=ym(e,d+1),!(!l||!u)){if(Zy(t[d],0,kCe)){n[d]=n[d+1]=0;continue}i=n[d]/t[d],o=n[d+1]/t[d],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),n[d]=i*s*t[d],n[d+1]=o*s*t[d])}}function BCe(e,t,n="x"){const r=cee(n),i=e.length;let o,s,a,l=ym(e,0);for(let u=0;u<i;++u){if(s=a,a=l,l=ym(e,u+1),!a)continue;const d=a[n],f=a[r];s&&(o=(d-s[n])/3,a[`cp1${n}`]=d-o,a[`cp1${r}`]=f-o*t[u]),l&&(o=(l[n]-d)/3,a[`cp2${n}`]=d+o,a[`cp2${r}`]=f+o*t[u])}}function HCe(e,t="x"){const n=cee(t),r=e.length,i=Array(r).fill(0),o=Array(r);let s,a,l,u=ym(e,0);for(s=0;s<r;++s)if(a=l,l=u,u=ym(e,s+1),!!l){if(u){const d=u[t]-l[t];i[s]=d!==0?(u[n]-l[n])/d:0}o[s]=a?u?Wl(i[s-1])!==Wl(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}NCe(e,i,o),BCe(e,o,t)}function j0(e,t,n){return Math.max(Math.min(e,n),t)}function VCe(e,t){let n,r,i,o,s,a=Rb(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&Rb(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=j0(i.cp1x,t.left,t.right),i.cp1y=j0(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=j0(i.cp2x,t.left,t.right),i.cp2y=j0(i.cp2y,t.top,t.bottom)))}function zCe(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")HCe(e,i);else{let u=r?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],l=LCe(u,a,e[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,u=a}t.capBezierPoints&&VCe(e,n)}function VL(){return typeof window<"u"&&typeof document<"u"}function zL(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function D1(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const FE=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function GCe(e,t){return FE(e).getPropertyValue(t)}const jCe=["top","right","bottom","left"];function Sf(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=jCe[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const UCe=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function WCe(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(UCe(i,o,e.target))a=i,l=o;else{const u=t.getBoundingClientRect();a=r.clientX-u.left,l=r.clientY-u.top,s=!0}return{x:a,y:l,box:s}}function Qh(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=FE(n),o=i.boxSizing==="border-box",s=Sf(i,"padding"),a=Sf(i,"border","width"),{x:l,y:u,box:d}=WCe(e,n),f=s.left+(d&&a.left),g=s.top+(d&&a.top);let{width:m,height:y}=t;return o&&(m-=s.width+a.width,y-=s.height+a.height),{x:Math.round((l-f)/m*n.width/r),y:Math.round((u-g)/y*n.height/r)}}function $Ce(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&zL(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=FE(o),l=Sf(a,"border","width"),u=Sf(a,"padding");t=s.width-u.width-l.width,n=s.height-u.height-l.height,r=D1(a.maxWidth,o,"clientWidth"),i=D1(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||P1,maxHeight:i||P1}}const Od=e=>Math.round(e*10)/10;function qCe(e,t,n,r){const i=FE(e),o=Sf(i,"margin"),s=D1(i.maxWidth,e,"clientWidth")||P1,a=D1(i.maxHeight,e,"clientHeight")||P1,l=$Ce(e,t,n);let{width:u,height:d}=l;if(i.boxSizing==="content-box"){const g=Sf(i,"border","width"),m=Sf(i,"padding");u-=m.width+g.width,d-=m.height+g.height}return u=Math.max(0,u-o.width),d=Math.max(0,r?u/r:d-o.height),u=Od(Math.min(u,s,l.maxWidth)),d=Od(Math.min(d,a,l.maxHeight)),u&&!d&&(d=Od(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,u=Od(Math.floor(d*r))),{width:u,height:d}}function b8(e,t,n){const r=t||1,i=Od(e.height*r),o=Od(e.width*r);e.height=Od(e.height),e.width=Od(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const KCe=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};VL()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function w8(e,t){const n=GCe(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Jh(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function YCe(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function XCe(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=Jh(e,i,n),a=Jh(i,o,n),l=Jh(o,t,n),u=Jh(s,a,n),d=Jh(a,l,n);return Jh(u,d,n)}const ZCe=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},QCe=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Yp(e,t,n){return e?ZCe(t,n):QCe()}function dee(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function hee(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function fee(e){return e==="angle"?{between:Eb,compare:Zwe,normalize:vs}:{between:ec,compare:(t,n)=>t-n,normalize:t=>t}}function C8({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function JCe(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=fee(r),l=t.length;let{start:u,end:d,loop:f}=e,g,m;if(f){for(u+=l,d+=l,g=0,m=l;g<m&&s(a(t[u%l][r]),i,o);++g)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:e.style}}function gee(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,s=t.length,{compare:a,between:l,normalize:u}=fee(r),{start:d,end:f,loop:g,style:m}=JCe(e,t,n),y=[];let b=!1,w=null,C,E,A;const T=()=>l(i,A,C)&&a(i,A)!==0,P=()=>a(o,C)===0||l(o,A,C),O=()=>b||T(),D=()=>!b||P();for(let F=d,L=d;F<=f;++F)E=t[F%s],!E.skip&&(C=u(E[r]),C!==A&&(b=l(C,i,o),w===null&&O()&&(w=a(C,i)===0?F:L),w!==null&&D()&&(y.push(C8({start:w,end:F,loop:g,count:s,style:m})),w=null),L=F,A=C));return w!==null&&y.push(C8({start:w,end:f,loop:g,count:s,style:m})),y}function pee(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=gee(r[i],e.points,t);o.length&&n.push(...o)}return n}function e0e(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function t0e(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=u.stop?l:null):(s=l,a.skip&&(t=l)),a=u}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function n0e(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=e0e(n,i,o,r);if(r===!0)return S8(e,[{start:s,end:a,loop:o}],n,t);const l=a<s?a+i:a,u=!!e._fullLoop&&s===0&&a===i-1;return S8(e,t0e(n,s,l,u),n,t)}function S8(e,t,n,r){return!r||!r.setContext||!n?t:r0e(e,t,n,r)}function r0e(e,t,n,r){const i=e._chart.getContext(),o=x8(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,u=[];let d=o,f=t[0].start,g=f;function m(y,b,w,C){const E=a?-1:1;if(y!==b){for(y+=l;n[y%l].skip;)y-=E;for(;n[b%l].skip;)b+=E;y%l!==b%l&&(u.push({start:y%l,end:b%l,loop:w,style:C}),d=C,f=b%l)}}for(const y of t){f=a?f:y.start;let b=n[f%l],w;for(g=f+1;g<=y.end;g++){const C=n[g%l];w=x8(r.setContext(gg(i,{type:"segment",p0:b,p1:C,p0DataIndex:(g-1)%l,p1DataIndex:g%l,datasetIndex:s}))),i0e(w,d)&&m(f,g-1,y.loop,d),b=C,d=w}f<g-1&&m(f,g-1,y.loop,d)}return u}function x8(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function i0e(e,t){if(!t)return!1;const n=[],r=function(i,o){return FL(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function U0(e,t,n){return e.options.clip?e[n]:t[n]}function o0e(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:U0(n,t,"left"),right:U0(n,t,"right"),top:U0(r,t,"top"),bottom:U0(r,t,"bottom")}:t}function mee(e,t){const n=t._clip;if(n.disabled)return!1;const r=o0e(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}class s0e{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],s=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=tee.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var $u=new s0e;const E8="transparent",a0e={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=f8(e||E8),i=r.valid&&f8(t||E8);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class l0e{constructor(t,n,r,i){const o=n[r];i=G0([t.to,i,o,t.from]);const s=G0([t.from,o,i]);this._active=!0,this._fn=t.fn||a0e[t.type||typeof s],this._easing=Qy[t.easing]||Qy.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=G0([t.to,n,i,t.from]),this._from=G0([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class vee{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Nt(t))return;const n=Object.keys(Er.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!Nt(o))return;const s={};for(const a of n)s[a]=o[a];(kr(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=c0e(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&u0e(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const u=s[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[u];let f=o[u];const g=r.get(u);if(f)if(g&&f.active()){f.update(g,d,a);continue}else f.cancel();if(!g||!g.duration){t[u]=d;continue}o[u]=f=new l0e(g,t,u,d),i.push(f)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return $u.add(this._chart,r),!0}}function u0e(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function c0e(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function R8(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function d0e(e,t,n){if(n===!1)return!1;const r=R8(e,n),i=R8(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function h0e(e){let t,n,r,i;return Nt(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function yee(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function A8(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let s,a,l,u;if(t===null)return;let d=!1;for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(d=!0,r.all)continue;break}u=e.values[l],oo(u)&&(o||t===0||Wl(t)===Wl(u))&&(t+=u)}return!d&&!r.all?0:t}function f0e(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",o=r.axis==="x"?"x":"y",s=Object.keys(e),a=new Array(s.length);let l,u,d;for(l=0,u=s.length;l<u;++l)d=s[l],a[l]={[i]:d,[o]:e[d]};return a}function CO(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function g0e(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function p0e(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function m0e(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function T8(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function P8(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,u=s.axis,d=g0e(o,s,r),f=t.length;let g;for(let m=0;m<f;++m){const y=t[m],{[l]:b,[u]:w}=y,C=y._stacks||(y._stacks={});g=C[u]=m0e(i,d,b),g[a]=w,g._top=T8(g,s,!0,r.type),g._bottom=T8(g,s,!1,r.type);const E=g._visualValues||(g._visualValues={});E[a]=w}}function SO(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function v0e(e,t){return gg(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function y0e(e,t,n){return gg(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ay(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const xO=e=>e==="reset"||e==="none",O8=(e,t)=>t?e:Object.assign({},e),b0e=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:yee(n,!0),values:null};class kE{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=CO(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ay(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,g,m,y)=>f==="x"?g:f==="r"?y:m,o=n.xAxisID=At(r.xAxisID,SO(t,"x")),s=n.yAxisID=At(r.yAxisID,SO(t,"y")),a=n.rAxisID=At(r.rAxisID,SO(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,o,s,a),d=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&c8(this._data,this),t._stacked&&ay(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Nt(n)){const i=this._cachedMeta;this._data=f0e(n,i)}else if(r!==n){if(r){c8(r,this);const i=this._cachedMeta;ay(i),i._parsed=[]}n&&Object.isExtensible(n)&&tCe(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=CO(n.vScale,n),n.stack!==r.stack&&(i=!0,ay(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&(P8(this,n._parsed),n._stacked=CO(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],d,f,g;if(this._parsing===!1)r._parsed=i,r._sorted=!0,g=i;else{kr(i[t])?g=this.parseArrayData(r,i,t,n):Nt(i[t])?g=this.parseObjectData(r,i,t,n):g=this.parsePrimitiveData(r,i,t,n);const m=()=>f[a]===null||u&&f[a]<u[a];for(d=0;d<n;++d)r._parsed[d+t]=f=g[d],l&&(m()&&(l=!1),u=f);r._sorted=l}s&&P8(this,g)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,u=o.getLabels(),d=o===s,f=new Array(i);let g,m,y;for(g=0,m=i;g<m;++g)y=g+r,f[g]={[a]:d||o.parse(u[y],y),[l]:s.parse(n[y],y)};return f}parseArrayData(t,n,r,i){const{xScale:o,yScale:s}=t,a=new Array(i);let l,u,d,f;for(l=0,u=i;l<u;++l)d=l+r,f=n[d],a[l]={x:o.parse(f[0],d),y:s.parse(f[1],d)};return a}parseObjectData(t,n,r,i){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let d,f,g,m;for(d=0,f=i;d<f;++d)g=d+r,m=n[g],u[d]={x:o.parse(Vf(m,a),g),y:s.parse(Vf(m,l),g)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,s=n[t.axis],a={keys:yee(i,!0),values:n._stacks[t.axis]._visualValues};return A8(a,s,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let s=o===null?NaN:o;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=A8(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,s=i.length,a=this._getOtherScale(t),l=b0e(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=p0e(a);let g,m;function y(){m=i[g];const b=m[a.axis];return!oo(m[t.axis])||d>b||f<b}for(g=0;g<s&&!(!y()&&(this.updateRangeFromParsed(u,t,m,l),o));++g);if(o){for(g=s-1;g>=0;--g)if(!y()){this.updateRangeFromParsed(u,t,m,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][t.axis],oo(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=h0e(At(this.options.clip,d0e(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,u=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,o,a,l),d=a;d<a+l;++d){const f=i[d];f.hidden||(f.active&&u?s.push(f):f.draw(t,o))}for(d=0;d<s.length;++d)s[d].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];o=s.$context||(s.$context=y0e(this.getContext(),t,s)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=v0e(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,s=t+"-"+n,a=o[s],l=this.enableOptionSharing&&Sb(r);if(a)return O8(a,l);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),f=i?[`${t}Hover`,"hover",t,""]:[t,""],g=u.getOptionScopes(this.getDataset(),d),m=Object.keys(Er.elements[t]),y=()=>this.getContext(r,i,n),b=u.resolveNamedOptions(g,m,y,f);return b.$shared&&(b.$shared=l,o[s]=Object.freeze(O8(b,l))),b}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),f);l=d.createResolver(g,this.getContext(t,r,n))}const u=new vee(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||xO(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){xO(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!xO(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,u]of this._syncList)this[a](l,u);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,s=t+n;let a;const l=u=>{for(u.length+=n,a=u.length-1;a>=s;a--)u[a]=u[a-n]};for(l(o),a=t;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&ay(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function w0e(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=eee(r.sort((i,o)=>i-o))}return e._cache.$bar}function C0e(e){const t=e.iScale,n=w0e(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(Sb(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)s=t.getPixelForTick(i),l();return r}function S0e(e,t,n,r){const i=n.barThickness;let o,s;return rn(i)?(o=t.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:t.pixels[e]-o/2}}function x0e(e,t,n,r){const i=t.pixels,o=i[e];let s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-s);const u=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:u}}function E0e(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,u=a;Math.abs(s)>Math.abs(a)&&(l=a,u=s),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:s,max:a}}function bee(e,t,n,r){return kr(e)?E0e(e,t,n,r):t[n.axis]=n.parse(e,r),t}function D8(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let u,d,f,g;for(u=n,d=n+r;u<d;++u)g=t[u],f={},f[i.axis]=a||i.parse(s[u],u),l.push(bee(g,f,o,u));return l}function EO(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function R0e(e,t,n){return e!==0?Wl(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function A0e(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function T0e(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:u,bottom:d}=A0e(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=d:(o[M8(d,s,a,l)]=!0,i=u)),o[M8(i,s,a,l)]=!0,e.borderSkipped=o}function M8(e,t,n,r){return r?(e=P0e(e,t,n),e=I8(e,n,t)):e=I8(e,t,n),e}function P0e(e,t,n){return e===t?n:e===n?t:e}function I8(e,t,n){return e==="start"?t:e==="end"?n:e}function O0e(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class D0e extends kE{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,n,r,i){return D8(t,n,r,i)}parseArrayData(t,n,r,i){return D8(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,u=o.axis==="x"?a:l,d=s.axis==="x"?a:l,f=[];let g,m,y,b;for(g=r,m=r+i;g<m;++g)b=n[g],y={},y[o.axis]=o.parse(Vf(b,u),g),f.push(bee(Vf(b,d),y,s,g));return f}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),s=o._custom,a=EO(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),u=a.isHorizontal(),d=this._getRuler(),{sharedOptions:f,includeOptions:g}=this._getSharedOptions(n,i);for(let m=n;m<n+r;m++){const y=this.getParsed(m),b=o||rn(y[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(m),w=this._calculateBarIndexPixels(m,d),C=(y._stacks||{})[a.axis],E={horizontal:u,base:b.base,enableBorderRadius:!C||EO(y._custom)||s===C._top||s===C._bottom,x:u?b.head:w.center,y:u?w.center:b.head,height:u?w.size:Math.abs(b.size),width:u?Math.abs(b.size):w.size};g&&(E.options=f||this.resolveDataElementOptions(m,t[m].active?"active":i));const A=E.options||t[m].options;T0e(E,A,C,s),O0e(E,A,d.ratio),this.updateElement(t[m],m,E,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),o=r.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[r.axis],u=d=>{const f=d._parsed.find(m=>
vendor: 4,331 bytes, line 823
823m[r.axis]===l),g=f&&f[d.vScale.axis];if(rn(g)||isNaN(g))return!0};for(const d of i)if(!(n!==void 0&&u(d))&&((o===!1||s.indexOf(d.stack)===-1||o===void 0&&d.stack===void 0)&&s.push(d.stack),d.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(r=>t[r].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)t[At(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||C0e(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),u=l._custom,d=EO(u);let f=l[n.axis],g=0,m=r?this.applyStack(n,l,r):f,y,b;m!==f&&(g=m-f,m=f),d&&(f=u.barStart,m=u.barEnd-u.barStart,f!==0&&Wl(f)!==Wl(u.barEnd)&&(g=0),g+=f);const w=!rn(o)&&!d?o:g;let C=n.getPixelForValue(w);if(this.chart.getDataVisibility(t)?y=n.getPixelForValue(g+m):y=C,b=y-C,Math.abs(b)<s){b=R0e(b,n,a)*s,f===a&&(C-=b/2);const E=n.getPixelForDecimal(0),A=n.getPixelForDecimal(1),T=Math.min(E,A),P=Math.max(E,A);C=Math.max(Math.min(C,P),T),y=C+b,r&&!d&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(y)-n.getValueForPixel(C))}if(C===n.getPixelForValue(a)){const E=Wl(b)*n.getLineWidthForValue(a)/2;C+=E,b-=E}return{size:b,base:C,head:y,center:y+b/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,s=At(i.maxBarThickness,1/0);let a,l;const u=this._getAxisCount();if(n.grouped){const d=o?this._getStackCount(t):n.stackCount,f=i.barThickness==="flex"?x0e(t,n,i,d*u):S0e(t,n,i,d*u),g=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,m=this._getAxis().indexOf(At(g,this.getFirstScaleIdForIndexAxis())),y=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+m;a=f.start+f.chunk*y+f.chunk/2,l=Math.min(s,f.chunk*f.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&!r[o].hidden&&r[o].draw(this._ctx)}}function M0e(e,t,n){let r=1,i=1,o=0,s=0;if(t<nr){const a=e,l=a+t,u=Math.cos(a),d=Math.sin(a),f=Math.cos(l),g=Math.sin(l),m=(A,T,P)=>Eb(A,a,l,!0)?1:Math.max(T,T*n,P,P*n),y=(A,T,P)=>Eb(A,a,l,!0)?-1:Math.min(T,T*n,P,P*n),b=m(0,u,f),w=m(qr,d,g),C=y(fn,u,f),E=y(fn+qr,d,g);r=(b-C)/2,i=(w-E)/2,o=-(b+C)/2,s=-(w+E)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class I0e extends kE{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data,{labels:{pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,u)=>{const f=t.getDatasetMeta(0).controller.getStyle(u);return{text:l,fillStyle:f.backgroundColor,fontColor:o,hidden:!t.getDataVisibility(u),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:i,pointStyle:r,borderRadius:s&&(a||f.borderRadius),index:u}}):[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update(
vendor: 8,227 bytes, line 823
823)}}}};constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(Nt(r[t])){const{key:l="value"}=this._parsing;o=u=>+Vf(r[u],l)}let s,a;for(s=t,a=t+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return Ju(this.options.rotation-90)}_getCircumference(){return Ju(this.options.circumference)}_getRotationExtents(){let t=nr,n=-nr;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),s=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(Bwe(this.options.cutout,a),1),u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:g,ratioY:m,offsetX:y,offsetY:b}=M0e(f,d,l),w=(r.width-s)/g,C=(r.height-s)/m,E=Math.max(Math.min(w,C)/2,0),A=YJ(this.options.radius,E),T=Math.max(A*l,0),P=(A-T)/this._getVisibleDatasetWeightTotal();this.offsetX=y*A,this.offsetY=b*A,i.total=this.calculateTotal(),this.outerRadius=A-P*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-P*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/nr)}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,a=s.chartArea,u=s.options.animation,d=(a.left+a.right)/2,f=(a.top+a.bottom)/2,g=o&&u.animateScale,m=g?0:this.innerRadius,y=g?0:this.outerRadius,{sharedOptions:b,includeOptions:w}=this._getSharedOptions(n,i);let C=this._getRotation(),E;for(E=0;E<n;++E)C+=this._circumference(E,o);for(E=n;E<n+r;++E){const A=this._circumference(E,o),T=t[E],P={x:d+this.offsetX,y:f+this.offsetY,startAngle:C,endAngle:C+A,circumference:A,outerRadius:y,innerRadius:m};w&&(P.options=b||this.resolveDataElementOptions(E,T.active?"active":i)),C+=A,this.updateElement(T,E,P,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?nr*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=kL(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,a=s.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(At(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class _0e extends kE{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=iCe(n,i,s);this._drawStart=a,this._drawCount=l,oCe(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i),g=s.axis,m=a.axis,{spanGaps:y,segment:b}=this.options,w=xb(y)?y:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||o||i==="none",E=n+r,A=t.length;let T=n>0&&this.getParsed(n-1);for(let P=0;P<A;++P){const O=t[P],D=C?O:{};if(P<n||P>=E){D.skip=!0;continue}const F=this.getParsed(P),L=rn(F[m]),N=D[g]=s.getPixelForValue(F[g],P),M=D[m]=o||L?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,F,l):F[m],P);D.skip=isNaN(N)||isNaN(M)||L,D.stop=P>0&&Math.abs(F[g]-T[g])>w,b&&(D.parsed=F,D.raw=u.data[P]),f&&(D.options=d||this.resolveDataElementOptions(P,O.active?"active":i)),C||this.updateElement(O,P,D,i),T=F}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function zh(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class GL{static override(t){Object.assign(GL.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return zh()}parse(){return zh()}format(){return zh()}add(){return zh()}diff(){return zh()}startOf(){return zh()}endOf(){return zh()}}var F0e={_date:GL};function k0e(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const u=a._reversePixels?Jwe:hf;if(r){if(i._sharedOptions){const d=o[0],f=typeof d.getRange=="function"&&d.getRange(t);if(f){const g=u(o,t,n-f),m=u(o,t,n+f);return{lo:g.lo,hi:m.hi}}}}else{const d=u(o,t,n);if(l){const{vScale:f}=i._cachedMeta,{_parsed:g}=e,m=g.slice(0,d.lo+1).reverse().findIndex(b=>!rn(b[f.axis]));d.lo-=Math.max(0,m);const y=g.slice(d.hi).findIndex(b=>!rn(b[f.axis]));d.hi+=Math.max(0,y)}return d}}return{lo:0,hi:o.length-1}}function LE(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a<l;++a){const{index:u,data:d}=o[a],{lo:f,hi:g}=k0e(o[a],t,s,i);for(let m=f;m<=g;++m){const y=d[m];y.skip||r(y,u,m)}}}function L0e(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function RO(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||LE(e,n,t,function(a,l,u){!i&&!Rb(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&o.push({element:a,datasetIndex:l,index:u})},!0),o}function N0e(e,t,n,r){let i=[];function o(s,a,l){const{startAngle:u,endAngle:d}=s.getProps(["startAngle","endAngle"],r),{angle:f}=QJ(s,{x:t.x,y:t.y});Eb(f,u,d)&&i.push({element:s,datasetIndex:a,index:l})}return LE(e,n,t,o),i}function B0e(e,t,n,r,i,o){let s=[];const a=L0e(n);let l=Number.POSITIVE_INFINITY;function u(d,f,g){const m=d.inRange(t.x,t.y,i);if(r&&!m)return;const y=d.getCenterPoint(i);if(!(!!o||e.isPointInArea(y))&&!m)return;const w=a(t,y);w<l?(s=[{element:d,datasetIndex:f,index:g}],l=w):w===l&&s.push({element:d,datasetIndex:f,index:g})}return LE(e,n,t,u),s}function AO(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?N0e(e,t,n,i):B0e(e,t,n,r,i,o)}function _8(e,t,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return LE(e,n,t,(l,u,d)=>{l[s]&&l[s](t[n],i)&&(o.push({element:l,datasetIndex:u,index:d}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var H0e={modes:{index(e,t,n,r){const i=Qh(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?RO(e,i,o,r,s):AO(e,i,o,!1,r,s),l=[];
vendor: 8,198 bytes, line 823
823return a.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const d=a[0].index,f=u.data[d];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:d})}),l):[]},dataset(e,t,n,r){const i=Qh(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?RO(e,i,o,r,s):AO(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,u=e.getDatasetMeta(l).data;a=[];for(let d=0;d<u.length;++d)a.push({element:u[d],datasetIndex:l,index:d})}return a},point(e,t,n,r){const i=Qh(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return RO(e,i,o,r,s)},nearest(e,t,n,r){const i=Qh(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return AO(e,i,o,n.intersect,r,s)},x(e,t,n,r){const i=Qh(t,e);return _8(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Qh(t,e);return _8(e,i,"y",n.intersect,r)}}};const wee=["left","top","right","bottom"];function ly(e,t){return e.filter(n=>n.pos===t)}function F8(e,t){return e.filter(n=>wee.indexOf(n.pos)===-1&&n.box.axis===t)}function uy(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function V0e(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}function z0e(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!wee.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}function G0e(e,t){const n=z0e(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,s,a;for(o=0,s=e.length;o<s;++o){a=e[o];const{fullSize:l}=a.box,u=n[a.stack],d=u&&a.stackWeight/u.weight;a.horizontal?(a.width=d?d*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=d?d*i:l&&t.availableHeight)}return n}function j0e(e){const t=V0e(e),n=uy(t.filter(u=>u.box.fullSize),!0),r=uy(ly(t,"left"),!0),i=uy(ly(t,"right")),o=uy(ly(t,"top"),!0),s=uy(ly(t,"bottom")),a=F8(t,"x"),l=F8(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:ly(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function k8(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Cee(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function U0e(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!Nt(i)){n.size&&(e[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[i]+=n.size}o.getPadding&&Cee(s,o.getPadding());const a=Math.max(0,t.outerWidth-k8(s,e,"left","right")),l=Math.max(0,t.outerHeight-k8(s,e,"top","bottom")),u=a!==e.w,d=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:u,other:d}:{same:d,other:u}}function W0e(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function $0e(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function Ny(e,t,n,r){const i=[];let o,s,a,l,u,d;for(o=0,s=e.length,u=0;o<s;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,$0e(a.horizontal,t));const{same:f,other:g}=U0e(t,n,a,r);u|=f&&i.length,d=d||g,l.fullSize||i.push(a)}return u&&Ny(i,t,n,r)||d}function W0(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function L8(e,t,n,r){const i=n.padding;let{x:o,y:s}=t;for(const a of e){const l=a.box,u=r[a.stack]||{placed:0,weight:1},d=a.stackWeight/u.weight||1;if(a.horizontal){const f=t.w*d,g=u.size||l.height;Sb(u.start)&&(s=u.start),l.fullSize?W0(l,i.left,s,n.outerWidth-i.right-i.left,g):W0(l,t.left+u.placed,s,f,g),u.start=s,u.placed+=f,s=l.bottom}else{const f=t.h*d,g=u.size||l.width;Sb(u.start)&&(o=u.start),l.fullSize?W0(l,o,i.top,g,n.outerHeight-i.bottom-i.top):W0(l,o,t.top+u.placed,g,f),u.start=o,u.placed+=f,o=l.right}}t.x=o,t.y=s}var oa={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=ca(e.options.layout.padding),o=Math.max(t-i.width,0),s=Math.max(n-i.height,0),a=j0e(e.boxes),l=a.vertical,u=a.horizontal;dn(e.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=l.reduce((b,w)=>w.box.options&&w.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/d,hBoxMaxHeight:s/2}),g=Object.assign({},i);Cee(g,ca(r));const m=Object.assign({maxPadding:g,w:o,h:s,x:i.left,y:i.top},i),y=G0e(l.concat(u),f);Ny(a.fullSize,m,f,y),Ny(l,m,f,y),Ny(u,m,f,y)&&Ny(l,m,f,y),W0e(m),L8(a.leftAndTop,m,f,y),m.x+=m.w,m.y+=m.h,L8(a.rightAndBottom,m,f,y),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},dn(a.chartArea,b=>{const w=b.box;Object.assign(w,e.chartArea),w.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class See{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class q0e extends See{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ZS="$chartjs",K0e={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},N8=e=>e===null||e==="";function Y0e(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[ZS]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",N8(i)){const o=w8(e,"width");o!==void 0&&(e.width=o)}if(N8(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=w8(e,"height");o!==void 0&&(e.height=o)}return e}const xee=KCe?{passive:!0}:!1;function X0e(e,t,n){e&&e.addEventListener(t,n,xee)}function Z0e(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,xee)}function Q0e(e,t){const n=K0e[e.type]||e.type,{x:r,y:i}=Qh(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function M1(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function J0e(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||M1(a.addedNodes,r),s=s&&!M1(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function eSe(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||M1(a.removedNodes,r),s=s&&!M1(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Tb=new Map;let B8=0;function Eee(){const e=window.devicePixelRatio;e!==B8&&(B8=e,Tb.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function tSe(e,t){Tb.size||window.addEventListener("resize",Eee),Tb.set(e,t)}function nSe(e){Tb.delete(e),Tb.size||window.removeEventListener("resize",Eee)}function rSe(e,t,n){const r=e.canvas,i=r&&zL(r);if(!i)return;const o=nee((a,l)=>{const u=i.clientWidth;n(a,l),u<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],u=l.contentRect.width,d=l.contentRect.height;u===0&&d===0||o(u,d)});return s.observe(i),tSe(e,o),s}function TO(e,t,n){n&&n.disconnect(),t==="resize"&&nSe(e)}function iSe(e,t,n){const r=e.canvas,i=nee(o=>{e.ctx!==null&&n(Q0e(o,e))},e);return X0e(r,t,i),i}class oSe extends See{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(Y0e(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[ZS])return!1;const r=n[ZS].initial;["height","width"].forEach(o=>{const s=r[o];rn(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};
vendor: 5,803 bytes, line 823
823return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[ZS],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:J0e,detach:eSe,resize:rSe}[n]||iSe;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:TO,detach:TO,resize:TO}[n]||Z0e)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return qCe(t,n,r,i)}isAttached(t){const n=t&&zL(t);return!!(n&&n.isConnected)}}function sSe(e){return!VL()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?q0e:oSe}let Ec=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return xb(this.x)&&xb(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}};function aSe(e,t){const n=e.options.ticks,r=lSe(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?cSe(t):[],s=o.length,a=o[0],l=o[s-1],u=[];if(s>i)return dSe(t,u,o,s/i),u;const d=uSe(o,t,i);if(s>0){let f,g;const m=s>1?Math.round((l-a)/(s-1)):null;for($0(t,u,d,rn(m)?0:a-m,a),f=0,g=s-1;f<g;f++)$0(t,u,d,o[f],o[f+1]);return $0(t,u,d,l,rn(m)?t.length:l+m),u}return $0(t,u,d),u}function lSe(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function uSe(e,t,n){const r=hSe(e),i=t.length/n;if(!r)return Math.max(i,1);const o=$we(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}function cSe(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function dSe(e,t,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===o&&(t.push(e[s]),i++,o=n[i*r])}function $0(e,t,n,r,i){const o=At(r,0),s=Math.min(At(i,e.length),e.length);let a=0,l,u,d;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),d=o;d<0;)a++,d=Math.round(o+a*n);for(u=Math.max(o,0);u<s;u++)u===d&&(t.push(e[u]),a++,d=Math.round(o+a*n))}function hSe(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const fSe=e=>e==="left"?"right":e==="right"?"left":e,H8=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,V8=(e,t)=>Math.min(t||e,e);function z8(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function gSe(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-o,s-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<o-a||l>s+a)))return l}function pSe(e,t){dn(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function cy(e){return e.drawTicks?e.tickLength:0}function G8(e,t){if(!e.display)return 0;const n=no(e.font,t),r=ca(e.padding);return(kr(e.text)?e.text.length:1)*n.lineHeight+r.height}function mSe(e,t){return gg(e,{scale:t,type:"scale"})}function vSe(e,t,n){return gg(e,{tick:n,index:t,type:"tick"})}function ySe(e,t,n){let r=_L(e);return(n&&t!=="right"||!n&&t==="right")&&(r=fSe(r)),r}function bSe(e,t,n,r){const{top:i,left:o,bottom:s,right:a,chart:l}=e,{chartArea:u,scales:d}=l;let f=0,g,m,y;const b=s-i,w=a-o;if(e.isHorizontal()){if(m=qi(r,o,a),Nt(n)){const C=Object.keys(n)[0],E=n[C];y=d[C].getPixelForValue(E)+b-t}else n==="center"?y=(u.bottom+u.top)/2+b-t:y=H8(e,n,t);g=a-o}else{if(Nt(n)){const C=Object.keys(n)[0],E=n[C];m=d[C].getPixelForValue(E)-w+t}else n==="center"?m=(u.left+u.right)/2-w+t:m=H8(e,n,t);y=qi(r,s,i),f=n==="left"?-qr:qr}return{titleX:m,titleY:y,maxWidth:g,rotation:f}}let NE=class Ree extends Ec{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Al(t,Number.POSITIVE_INFINITY),n=Al(n,Number.NEGATIVE_INFINITY),r=Al(r,Number.POSITIVE_INFINITY),i=Al(i,Number.NEGATIVE_INFINITY),{min:Al(t,r),max:Al(n,i),minDefined:oo(t),maxDefined:oo(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,u=a.length;l<u;++l)s=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Al(n,Al(r,n)),max:Al(r,Al(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}
vendor: 38,143 bytes, line 823
823getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ln(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=RCe(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?z8(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=aSe(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ln(this.options.afterUpdate,[this])}beforeSetDimensions(){Ln(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ln(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ln(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ln(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=Ln(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Ln(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ln(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=V8(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let s=i,a,l,u;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),f=d.widest.width,g=d.highest.height,m=to(this.chart.width-f,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),f+6>a&&(a=m/(r-(t.offset?.5:1)),l=this.maxHeight-cy(t.grid)-n.padding-G8(t.title,this.chart.options.font),u=Math.sqrt(f*f+g*g),s=Xwe(Math.min(Math.asin(to((d.highest.height+6)/a,-1,1)),Math.asin(to(l/u,-1,1))-Math.asin(to(g/u,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ln(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ln(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=G8(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=cy(o)+l):(t.height=this.maxHeight,t.width=cy(o)+l),r.display&&this.ticks.length){const{first:u,last:d,widest:f,highest:g}=this._getLabelSizes(),m=r.padding*2,y=Ju(this.labelRotation),b=Math.cos(y),w=Math.sin(y);if(a){const C=r.mirror?0:w*f.width+b*g.height;t.height=Math.min(this.maxHeight,t.height+C+m)}else{const C=r.mirror?0:b*f.width+w*g.height;t.width=Math.min(this.maxWidth,t.width+C+m)}this._calculatePadding(u,d,w,b)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,u=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,m=0;l?u?(g=i*t.width,m=r*n.height):(g=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?g=t.width:o!=="inner"&&(g=t.width/2,m=n.width/2),this.paddingLeft=Math.max((g-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-f+s)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;o==="start"?(d=0,f=t.height):o==="end"&&(d=n.height,f=0),this.paddingTop=d+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ln(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)rn(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=z8(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,s=[],a=[],l=Math.floor(n/V8(n,r));let u=0,d=0,f,g,m,y,b,w,C,E,A,T,P;for(f=0;f<n;f+=l){if(y=t[f].label,b=this._resolveTickFontOptions(f),i.font=w=b.string,C=o[w]=o[w]||{data:{},gc:[]},E=b.lineHeight,A=T=0,!rn(y)&&!kr(y))A=p8(i,C.data,C.gc,A,y),T=E;else if(kr(y))for(g=0,m=y.length;g<m;++g)P=y[g],!rn(P)&&!kr(P)&&(A=p8(i,C.data,C.gc,A,P),T+=E);s.push(A),a.push(T),u=Math.max(A,u),d=Math.max(T,d)}pSe(o,n);const O=s.indexOf(u),D=a.indexOf(d),F=L=>({width:s[L]||0,height:a[L]||0});return{first:F(0),last:F(n-1),widest:F(O),highest:F(D),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Qwe(this._alignToPixels?Vh(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=vSe(this.getContext(),t,r))}return this.$context||(this.$context=mSe(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Ju(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,u=this.isHorizontal(),f=this.ticks.length+(l?1:0),g=cy(o),m=[],y=a.setContext(this.getContext()),b=y.display?y.width:0,w=b/2,C=function(H){return Vh(r,H,b)};let E,A,T,P,O,D,F,L,N,M,k,B;if(s==="top")E=C(this.bottom),D=this.bottom-g,L=E-w,M=C(t.top)+w,B=t.bottom;else if(s==="bottom")E=C(this.top),M=t.top,B=C(t.bottom)-w,D=E+w,L=this.top+g;else if(s==="left")E=C(this.right),O=this.right-g,F=E-w,N=C(t.left)+w,k=t.right;else if(s==="right")E=C(this.left),N=t.left,k=C(t.right)-w,O=E+w,F=this.left+g;else if(n==="x"){if(s==="center")E=C((t.top+t.bottom)/2+.5);else if(Nt(s)){const H=Object.keys(s)[0],G=s[H];E=C(this.chart.scales[H].getPixelForValue(G))}M=t.top,B=t.bottom,D=E+w,L=D+g}else if(n==="y"){if(s==="center")E=C((t.left+t.right)/2);else if(Nt(s)){const H=Object.keys(s)[0],G=s[H];E=C(this.chart.scales[H].getPixelForValue(G))}O=E-w,F=O-g,N=t.left,k=t.right}const j=At(i.ticks.maxTicksLimit,f),z=Math.max(1,Math.ceil(f/j));for(A=0;A<f;A+=z){const H=this.getContext(A),G=o.setContext(H),$=a.setContext(H),Y=G.lineWidth,K=G.color,se=$.dash||[],re=$.dashOffset,ue=G.tickWidth,U=G.tickColor,X=G.tickBorderDash||[],be=G.tickBorderDashOffset;T=gSe(this,A,l),T!==void 0&&(P=Vh(r,T,Y),u?O=F=N=k=P:D=L=M=B=P,m.push({tx1:O,ty1:D,tx2:F,ty2:L,x1:N,y1:M,x2:k,y2:B,width:Y,color:K,borderDash:se,borderDashOffset:re,tickWidth:ue,tickColor:U,tickBorderDash:X,tickBorderDashOffset:be}))}return this._ticksLength=f,this._borderValue=E,m}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:u,padding:d,mirror:f}=o,g=cy(r.grid),m=g+d,y=f?-d:m,b=-Ju(this.labelRotation),w=[];let C,E,A,T,P,O,D,F,L,N,M,k,B="middle";if(i==="top")O=this.bottom-y,D=this._getXAxisLabelAlignment();else if(i==="bottom")O=this.top+y,D=this._getXAxisLabelAlignment();else if(i==="left"){const z=this._getYAxisLabelAlignment(g);D=z.textAlign,P=z.x}else if(i==="right"){const z=this._getYAxisLabelAlignment(g);D=z.textAlign,P=z.x}else if(n==="x"){if(i==="center")O=(t.top+t.bottom)/2+m;else if(Nt(i)){const z=Object.keys(i)[0],H=i[z];O=this.chart.scales[z].getPixelForValue(H)+m}D=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")P=(t.left+t.right)/2-m;else if(Nt(i)){const z=Object.keys(i)[0],H=i[z];P=this.chart.scales[z].getPixelForValue(H)}D=this._getYAxisLabelAlignment(g).textAlign}n==="y"&&(l==="start"?B="top":l==="end"&&(B="bottom"));const j=this._getLabelSizes();for(C=0,E=a.length;C<E;++C){A=a[C],T=A.label;const z=o.setContext(this.getContext(C));F=this.getPixelForTick(C)+o.labelOffset,L=this._resolveTickFontOptions(C),N=L.lineHeight,M=kr(T)?T.length:1;const H=M/2,G=z.color,$=z.textStrokeColor,Y=z.textStrokeWidth;let K=D;s?(P=F,D==="inner"&&(C===E-1?K=this.options.reverse?"left":"right":C===0?K=this.options.reverse?"right":"left":K="center"),i==="top"?u==="near"||b!==0?k=-M*N+N/2:u==="center"?k=-j.highest.height/2-H*N+N:k=-j.highest.height+N/2:u==="near"||b!==0?k=N/2:u==="center"?k=j.highest.height/2-H*N:k=j.highest.height-M*N,f&&(k*=-1),b!==0&&!z.showLabelBackdrop&&(P+=N/2*Math.sin(b))):(O=F,k=(1-M)*N/2);let se;if(z.showLabelBackdrop){const re=ca(z.backdropPadding),ue=j.heights[C],U=j.widths[C];let X=k-re.top,be=0-re.left;switch(B){case"middle":X-=ue/2;break;case"bottom":X-=ue;break}switch(D){case"center":be-=U/2;break;case"right":be-=U;break;case"inner":C===E-1?be-=U:C>0&&(be-=U/2);break}se={left:be,top:X,width:U+re.width,height:ue+re.height,color:z.backdropColor}}w.push({label:T,font:L,textOffset:k,options:{rotation:b,color:G,strokeColor:$,strokeWidth:Y,textAlign:K,textBaseline:B,translation:[P,O],backdrop:se}})}return w}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Ju(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,s=this._getLabelSizes(),a=t+o,l=s.widest.width;let u,d;return n==="left"?i?(d=this.right+o,r==="near"?u="left":r==="center"?(u="center",d+=l/2):(u="right",d+=l)):(d=this.right-a,r==="near"?u="right":r==="center"?(u="center",d-=l/2):(u="left",d=this.left)):n==="right"?i?(d=this.left+o,r==="near"?u="right":r==="center"?(u="center",d-=l/2):(u="left",d-=l)):(d=this.left+a,r==="near"?u="left":r==="center"?(u="center",d+=l/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,u,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o<s;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),s=r.display?o.width:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,d,f,g;this.isHorizontal()?(u=Vh(t,this.left,s)-s/2,d=Vh(t,this.right,a)+a/2,f=g=l):(f=Vh(t,this.top,s)-s/2,g=Vh(t,this.bottom,a)+a/2,u=d=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(u,f),n.lineTo(d,g),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&IE(r,i);const o=this.getLabelItems(t);for(const s of o){const a=s.options,l=s.font,u=s.label,d=s.textOffset;Ab(r,u,0,d,l,a)}i&&_E(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=no(r.font),s=ca(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||Nt(n)?(l+=s.bottom,kr(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:u,titleY:d,maxWidth:f,rotation:g}=bSe(this,l,n,a);Ab(t,r.text,0,0,o,{color:r.color,maxWidth:f,rotation:g,textAlign:ySe(a,n,i),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=At(t.grid&&t.grid.z,-1),i=At(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ree.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return no(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}};class q0{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;SSe(n)&&(r=this.register(n));const i=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,wSe(t,s,r),this.override&&Er.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in Er[i]&&(delete Er[i][r],this.override&&delete zf[r])}}function wSe(e,t,n){const r=Cb(Object.create(null),[n?Er.get(n):{},Er.get(t),e.defaults]);Er.set(t,r),e.defaultRoutes&&CSe(t,e.defaultRoutes),e.descriptors&&Er.describe(t,e.descriptors)}function CSe(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");Er.route(o,i,l,a)})}function SSe(e){return"id"in e&&"defaults"in e}let xSe=class{constructor(){this.controllers=new q0(kE,"datasets",!0),this.elements=new q0(Ec,"elements"),this.plugins=new q0(Object,"plugins"),this.scales=new q0(NE,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):dn(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=ML(t);Ln(r["before"+i],[],r),n[t](r),Ln(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}};var Fl=new xSe;class ESe{constructor(){this._init=void 0}notify(t,n,r,i){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const o=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),s}_notify(t,n,r,i){i=i||{};for(const o of t){const s=o.plugin,a=s[r],l=[n,i,o.options];if(Ln(a,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){rn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=At(r.options&&r.options.plugins,{}),o=RSe(r);return i===!1&&!n?[]:TSe(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function RSe(e){const t={},n=[],r=Object.keys(Fl.plugins.items);for(let o=0;o<r.length;o++)n.push(Fl.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function ASe(e,t){return!t&&e===!1?null:e===!0?{}:e}function TSe(e,{plugins:t,localIds:n},r,i){const o=[],s=e.getContext();for(const a of t){const l=a.id,u=ASe(r[l],i);u!==null&&o.push({plugin:a,options:PSe(e.config,{plugin:a,local:n[l]},u,s)})}return o}function PSe(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),s=e.getOptionScopes(r,o);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function V_(e,t){const n=Er.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function OSe(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function DSe(e,t){return e===t?"_index_":"_value_"}function j8(e){if(e==="x"||e==="y"||e==="r")return e}function MSe(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function z_(e,...t){if(j8(e))return e;for(const n of t){const r=n.axis||MSe(n.position)||e.length>1&&j8(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function U8(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function ISe(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return U8(e,"x",n[0])||U8(e,"y",n[0])}return{}}function _Se(e,t){const n=zf[e.type]||{scales:{}},r=t.scales||{},i=V_(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!Nt(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=z_(s,a,ISe(s,e),Er.scales[a.type]),u=DSe(l,i),d=n.scales||{};o[s]=Xy(Object.create(null),[{axis:l},a,d[l],d[u]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||V_(a,t),d=(zf[a]||{}).scales||{};Object.keys(d).forEach(f=>{const g=OSe(f,l),m=s[g+"AxisID"]||g;o[m]=o[m]||Object.create(null),Xy(o[m],[{axis:g},r[m],d[f]])})}),Object.keys(o).forEach(s=>{const a=o[s];Xy(a,[Er.scales[a.type],Er.scale])}),o}function Aee(e){const t=e.options||(e.options={});t.plugins=At(t.plugins,{}),t.scales=_Se(e,t)}function Tee(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function FSe(e){return e=e||{},e.data=Tee(e.data),Aee(e),e}const W8=new Map,Pee=new Set;function K0(e,t){let n=W8.get(e);return n||(n=t(),W8.set(e,n),Pee.add(n)),n}const dy=(e,t,n)=>{const r=Vf(t,n);r!==void 0&&e.add(r)};class kSe{constructor(t){this._config=FSe(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Tee(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Aee(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return K0(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return K0(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return K0(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return K0(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(d=>{t&&(l.add(t),d.forEach(f=>dy(l,t,f))),d.forEach(f=>dy(l,i,f)),d.forEach(f=>dy(l,zf[o]||{},f)),d.forEach(f=>dy(l,Er,f)),d.forEach(f=>dy(l,B_,f))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),Pee.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,zf[n]||{},Er.datasets[n]||{},{type:n},Er,B_]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=$8(this._resolverCache,t,i);let l=s;if(NSe(s,n)){o.$shared=!1,r=Wd(r)?r():r;const u=this.createResolver(t,r,a);l=vm(s,r,u)}for(const u of n)o[u]=l[u];return o}createResolver(t,n,r=[""],i){const{resolver:o}=$8(this._resolverCache,t,r);return Nt(n)?vm(o,n,void 0,i):o}}function $8(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:NL(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const LSe=e=>Nt(e)&&Object.getOwnPropertyNames(e).some(t=>Wd(e[t]));function NSe(e,t){const{isScriptable:n,isIndexable:r}=see(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(Wd(a)||LSe(a))||s&&kr(a))return!0}return!1}var BSe="4.5.1";const HSe=["top","bottom","left","right","chartArea"];function q8(e,t){return e==="top"||e==="bottom"||HSe.indexOf(e)===-1&&t==="x"}function K8(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Y8(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ln(n&&n.onComplete,[e],t)}function VSe(e){const t=e.chart,n=t.options.animation;Ln(n&&n.onProgress,[e],t)}function Oee(e){return VL()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const QS={},X8=e=>{const t=Oee(e);return Object.values(QS).filter(n=>n.canvas===t).pop()};function zSe(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function GSe(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}let jL=class{static defaults=Er;static instances=QS;static overrides=zf;static registry=Fl;static version=BSe;static getChart=X8;static register(...t){Fl.add(...t),Z8()}static unregister(...t){Fl.remove(...t),Z8()}constructor(t,n){const r=this.config=new kSe(n),i=Oee(t),o=X8(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||sSe(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,u=l&&l.height,d=l&&l.width;if(this.id=Nwe(),this.ctx=a,this.canvas=l,this.width=d,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ESe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=nCe(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],QS[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}$u.listen(this,"complete",Y8),$u.listen(this,"progress",VSe),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return rn(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Fl}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():b8(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return m8(this.canvas,this.ctx),this}stop(){return $u.stop(this),this}resize(t,n){$u.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,b8(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Ln(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};dn(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=z_(s,a),u=l==="r",d=l==="x";return{options:a,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),dn(o,s=>{const a=s.options,l=a.id,u=z_(l,a),d=At(a.type,s.dtype);(a.position===void 0||q8(a.position,u)!==q8(s.dposition))&&(a.position=s.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===d)f=r[l];else{const g=Fl.getScale(d);f=new g({id:l,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(a,t)}),dn(i,(s,a)=>{s||delete r[a]}),dn(r,s=>{oa.configure(this,s,s.options),oa.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(K8("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||V_(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Fl.getController(a),{datasetElementType:u,dataElementType:d}=Er.datasets[a];Object.assign(l,{dataElementType:Fl.getElement(d),datasetElementType:u&&Fl.getElement(u)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){dn(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:f}=this.getDatasetMeta(u),g=!i&&o.indexOf(f)===-1;f.buildOrUpdateElements(g),s=Math.max(+f.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||dn(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(K8("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){dn(this.scales,t=>{oa.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!s8(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;zSe(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!s8(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;oa.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],dn(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Wd(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&($u.has(this)?this.attached&&!$u.running(this)&&$u.start(this):(this.draw(),Y8({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=mee(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&IE(n,i),t.controller.draw(),i&&_E(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Rb(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=H0e.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=gg(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);Sb(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),$u.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),m8(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete QS[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,s)=>{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};dn(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},o=(l,u)=>{this.canvas&&this.resize(l,u)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){dn(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},dn(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:s})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!A1(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,u)=>l.filter(d=>!u.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=jwe(t),u=GSe(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ln(o.onHover,[t,a,this],this),l&&Ln(o.onClick,[t,a,this],this));const d=!A1(a,i);
vendor: 5,083 bytes, line 823
823return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=u,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}};function Z8(){return dn(jL.instances,e=>e._plugins.invalidate())}function jSe(e,t,n){const{startAngle:r,x:i,y:o,outerRadius:s,innerRadius:a,options:l}=t,{borderWidth:u,borderJoinStyle:d}=l,f=Math.min(u/s,vs(r-n));if(e.beginPath(),e.arc(i,o,s-u/2,r+f/2,n-f/2),a>0){const g=Math.min(u/a,vs(r-n));e.arc(i,o,a+u/2,n-g/2,r+g/2,!0)}else{const g=Math.min(u/2,s*vs(r-n));if(d==="round")e.arc(i,o,g,n-fn/2,r+fn/2,!0);else if(d==="bevel"){const m=2*g*g,y=-m*Math.cos(n+fn/2)+i,b=-m*Math.sin(n+fn/2)+o,w=m*Math.cos(r+fn/2)+i,C=m*Math.sin(r+fn/2)+o;e.lineTo(y,b),e.lineTo(w,C)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function USe(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let u=i/a;e.beginPath(),e.arc(o,s,a,r-u,n+u),l>i?(u=i/l,e.arc(o,s,l,n+u,r-u,!0)):e.arc(o,s,i,n+qr,r-qr),e.closePath(),e.clip()}function WSe(e){return LL(e,["outerStart","outerEnd","innerStart","innerEnd"])}function $Se(e,t,n,r){const i=WSe(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const u=(n-Math.min(o,l))*r/2;return to(l,0,Math.min(o,u))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:to(i.innerStart,0,s),innerEnd:to(i.innerEnd,0,s)}}function Cp(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function I1(e,t,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:u,innerRadius:d}=t,f=Math.max(t.outerRadius+r+n-u,0),g=d>0?d+r+n+u:0;let m=0;const y=i-l;if(r){const z=d>0?d-r:0,H=f>0?f-r:0,G=(z+H)/2,$=G!==0?y*G/(G+r):y;m=(y-$)/2}const b=Math.max(.001,y*f-n/fn)/f,w=(y-b)/2,C=l+w+m,E=i-w-m,{outerStart:A,outerEnd:T,innerStart:P,innerEnd:O}=$Se(t,g,f,E-C),D=f-A,F=f-T,L=C+A/D,N=E-T/F,M=g+P,k=g+O,B=C+P/M,j=E-O/k;if(e.beginPath(),o){const z=(L+N)/2;if(e.arc(s,a,f,L,z),e.arc(s,a,f,z,N),T>0){const Y=Cp(F,N,s,a);e.arc(Y.x,Y.y,T,N,E+qr)}const H=Cp(k,E,s,a);if(e.lineTo(H.x,H.y),O>0){const Y=Cp(k,j,s,a);e.arc(Y.x,Y.y,O,E+qr,j+Math.PI)}const G=(E-O/g+(C+P/g))/2;if(e.arc(s,a,g,E-O/g,G,!0),e.arc(s,a,g,G,C+P/g,!0),P>0){const Y=Cp(M,B,s,a);e.arc(Y.x,Y.y,P,B+Math.PI,C-qr)}const $=Cp(D,C,s,a);if(e.lineTo($.x,$.y),A>0){const Y=Cp(D,L,s,a);e.arc(Y.x,Y.y,A,C-qr,L)}}else{e.moveTo(s,a);const z=Math.cos(L)*f+s,H=Math.sin(L)*f+a;e.lineTo(z,H);const G=Math.cos(N)*f+s,$=Math.sin(N)*f+a;e.lineTo(G,$)}e.closePath()}function qSe(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){I1(e,t,n,r,l,i);for(let u=0;u<o;++u)e.fill();isNaN(a)||(l=s+(a%nr||nr))}return I1(e,t,n,r,l,i),e.fill(),l}function KSe(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a,options:l}=t,{borderWidth:u,borderJoinStyle:d,borderDash:f,borderDashOffset:g,borderRadius:m}=l,y=l.borderAlign==="inner";if(!u)return;e.setLineDash(f||[]),e.lineDashOffset=g,y?(e.lineWidth=u*2,e.lineJoin=d||"round"):(e.lineWidth=u,e.lineJoin=d||"bevel");let b=t.endAngle;if(o){I1(e,t,n,r,b,i);for(let w=0;w<o;++w)e.stroke();isNaN(a)||(b=s+(a%nr||nr))}y&&USe(e,t,b),l.selfJoin&&b-s>=fn&&m===0&&d!=="miter"&&jSe(e,t,b),o||(I1(e,t,n,r,b,i),e.stroke())}class fwt extends Ec{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=QJ(i,{x:t,y:n}),{startAngle:a,endAngle:l,innerRadius:u,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),g=(this.options.spacing+this.options.borderWidth)/2,m=At(f,l-a),y=Eb(o,a,l)&&a!==l,b=m>=nr||y,w=ec(s,u+g,d+g);return b&&w}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:u}=this.options,d=(i+o)/2,f=(s+a+u+l)/2;return{x:n+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>nr?Math.floor(r/nr):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(fn,r||0)),u=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,qSe(t,this,u,o,s),KSe(t,this,u,o,s),t.restore(
vendor: 4,111 bytes, line 823
823)}}function Dee(e,t,n=t){e.lineCap=At(n.borderCapStyle,t.borderCapStyle),e.setLineDash(At(n.borderDash,t.borderDash)),e.lineDashOffset=At(n.borderDashOffset,t.borderDashOffset),e.lineJoin=At(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=At(n.borderWidth,t.borderWidth),e.strokeStyle=At(n.borderColor,t.borderColor)}function YSe(e,t,n){e.lineTo(n.x,n.y)}function XSe(e){return e.stepped?mCe:e.tension||e.cubicInterpolationMode==="monotone"?vCe:YSe}function Mee(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),u=Math.min(o,a),d=i<s&&o<s||i>a&&o>a;return{count:r,start:l,loop:t.loop,ilen:u<l&&!d?r+u-l:u-l}}function ZSe(e,t,n,r){const{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:u}=Mee(i,n,r),d=XSe(o);let{move:f=!0,reverse:g}=r||{},m,y,b;for(m=0;m<=u;++m)y=i[(a+(g?u-m:m))%s],!y.skip&&(f?(e.moveTo(y.x,y.y),f=!1):d(e,b,y,g,o.stepped),b=y);return l&&(y=i[(a+(g?u:0))%s],d(e,b,y,g,o.stepped)),!!l}function QSe(e,t,n,r){const i=t.points,{count:o,start:s,ilen:a}=Mee(i,n,r),{move:l=!0,reverse:u}=r||{};let d=0,f=0,g,m,y,b,w,C;const E=T=>(s+(u?a-T:T))%o,A=()=>{b!==w&&(e.lineTo(d,w),e.lineTo(d,b),e.lineTo(d,C))};for(l&&(m=i[E(0)],e.moveTo(m.x,m.y)),g=0;g<=a;++g){if(m=i[E(g)],m.skip)continue;const T=m.x,P=m.y,O=T|0;O===y?(P<b?b=P:P>w&&(w=P),d=(f*d+T)/++f):(A(),e.lineTo(T,P),y=O,f=0,b=w=P),C=P}A()}function G_(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?QSe:ZSe}function JSe(e){return e.stepped?YCe:e.tension||e.cubicInterpolationMode==="monotone"?XCe:Jh}function e1e(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Dee(e,t.options),e.stroke(i)}function t1e(e,t,n,r){const{segments:i,options:o}=t,s=G_(t);for(const a of i)Dee(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const n1e=typeof Path2D=="function";function r1e(e,t,n,r){n1e&&!t.options.segment?e1e(e,t,n,r):t1e(e,t,n,r)}let UL=class extends Ec{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;zCe(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=n0e(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,s=pee(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=JSe(r);let u,d;for(u=0,d=s.length;u<d;++u){const{start:f,end:g}=s[u],m=o[f],y=o[g];if(m===y){a.push(m);continue}const b=Math.abs((i-m[n])/(y[n]-m[n])),w=l(m,y,b,r.stepped);w[n]=t[n],a.push(w)}return a.length===1?a[0]:a}pathSegment(t,n,r){return G_(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=G_(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)s&=o(t,this,a,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),r1e(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};function Q8(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}
vendor: 4,406 bytes, line 823
823class pwt extends Ec{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:s}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return Q8(this,t,"x",n)}inYRange(t,n){return Q8(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!Rb(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,H_(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Iee(e,t){const{x:n,y:r,base:i,width:o,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,u,d,f;return e.horizontal?(f=s/2,a=Math.min(n,i),l=Math.max(n,i),u=r-f,d=r+f):(f=o/2,a=n-f,l=n+f,u=Math.min(r,i),d=Math.max(r,i)),{left:a,top:u,right:l,bottom:d}}function Dd(e,t,n,r){return e?0:to(t,n,r)}function i1e(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=oee(r);return{t:Dd(i.top,o.top,0,n),r:Dd(i.right,o.right,0,t),b:Dd(i.bottom,o.bottom,0,n),l:Dd(i.left,o.left,0,t)}}function o1e(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=Kp(i),s=Math.min(t,n),a=e.borderSkipped,l=r||Nt(i);return{topLeft:Dd(!l||a.top||a.left,o.topLeft,0,s),topRight:Dd(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Dd(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Dd(!l||a.bottom||a.right,o.bottomRight,0,s)}}function s1e(e){const t=Iee(e),n=t.right-t.left,r=t.bottom-t.top,i=i1e(e,n/2,r/2),o=o1e(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function PO(e,t,n,r){const i=t===null,o=n===null,a=e&&!(i&&o)&&Iee(e,r);return a&&(i||ec(t,a.left,a.right))&&(o||ec(n,a.top,a.bottom))}function a1e(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function l1e(e,t){e.rect(t.x,t.y,t.w,t.h)}function OO(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+s,radius:e.radius}}class mwt extends Ec{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=s1e(this),a=a1e(s.radius)?O1:l1e;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,OO(s,n,o)),t.clip(),a(t,OO(o,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,OO(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return PO(this,t,n,r)}inXRange(t,n){return PO(this,t,null,n)}inYRange(t,n){return PO(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}function u1e(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:u}=a;u=BE(l,u,i);const d=j_(n,i[l],i[u],a.loop);if(!t.segments){s.push({source:a,target:d,start:i[l],end:i[u]});continue}const f=pee(t,d);for(const g of f){const m=j_(n,o[g.start],o[g.end],g.loop),y=gee(a,i,m);for(const b of y)s.push({source:b,target:g,start:{[n]:J8(d,m,"start",Math.max)},end:{[n]:J8(d,m,"end",Math.min)}})}}return s}function j_(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=vs(i),o=vs(o)),{property:e,start:i,end:o}}function c1e(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];
vendor: 23,848 bytes, lines 823-825
823return t.segments.forEach(({start:s,end:a})=>{a=BE(s,a,i);const l=i[s],u=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:u.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:u.y}))}),o}function BE(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function J8(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function _ee(e,t){let n=[],r=!1;return kr(e)?(r=!0,n=e):n=c1e(e,t),n.length?new UL({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function e6(e){return e&&e.fill!==!1}function d1e(e,t,n){let i=e[t].fill;const o=[t];let s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!oo(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function h1e(e,t,n){const r=m1e(e);if(Nt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return oo(i)&&Math.floor(i)===i?f1e(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function f1e(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function g1e(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Nt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function p1e(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:Nt(e)?r=e.value:r=t.getBaseValue(),r}function m1e(e){const t=e.options,n=t.fill;let r=At(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function v1e(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=y1e(t,n);a.push(_ee({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const u=o[l];for(let d=u.start;d<=u.end;d++)b1e(i,s[d],a)}return new UL({points:i,options:{}})}function y1e(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function b1e(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:s,last:a,point:l}=w1e(o,t,"x");if(!(!l||s&&a)){if(s)r.unshift(l);else if(e.push(l),!a)break}}e.push(...r)}function w1e(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,s=e.points;let a=!1,l=!1;for(let u=0;u<o.length;u++){const d=o[u],f=s[d.start][n],g=s[d.end][n];if(ec(i,f,g)){a=i===f,l=i===g;break}}return{first:a,last:l,point:r}}class Fee{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:s}=this;return n=n||{start:0,end:nr},t.arc(i,o,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function C1e(e){const{chart:t,fill:n,line:r}=e;if(oo(n))return S1e(t,n);if(n==="stack")return v1e(e);if(n==="shape")return!0;const i=x1e(e);return i instanceof Fee?i:_ee(i,r)}function S1e(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function x1e(e){return(e.scale||{}).getPointPositionForValue?R1e(e):E1e(e)}function E1e(e){const{scale:t={},fill:n}=e,r=g1e(n,t);if(oo(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function R1e(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=p1e(n,t,o),a=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new Fee({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,s));return a}function DO(e,t,n){const r=C1e(t),{chart:i,index:o,line:s,scale:a,axis:l}=t,u=s.options,d=u.fill,f=u.backgroundColor,{above:g=f,below:m=f}=d||{},y=i.getDatasetMeta(o),b=mee(i,y);r&&s.points.length&&(IE(e,n),A1e(e,{line:s,target:r,above:g,below:m,area:n,scale:a,axis:l,clip:b}),_E(e))}function A1e(e,t){const{line:n,target:r,above:i,below:o,area:s,scale:a,clip:l}=t,u=n._loop?"angle":t.axis;e.save();let d=o;o!==i&&(u==="x"?(t6(e,r,s.top),MO(e,{line:n,target:r,color:i,scale:a,property:u,clip:l}),e.restore(),e.save(),t6(e,r,s.bottom)):u==="y"&&(n6(e,r,s.left),MO(e,{line:n,target:r,color:o,scale:a,property:u,clip:l}),e.restore(),e.save(),n6(e,r,s.right),d=i)),MO(e,{line:n,target:r,color:d,scale:a,property:u,clip:l}),e.restore()}function t6(e,t,n){const{segments:r,points:i}=t;let o=!0,s=!1;e.beginPath();for(const a of r){const{start:l,end:u}=a,d=i[l],f=i[BE(l,u,i)];o?(e.moveTo(d.x,d.y),o=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(f.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function n6(e,t,n){const{segments:r,points:i}=t;let o=!0,s=!1;e.beginPath();for(const a of r){const{start:l,end:u}=a,d=i[l],f=i[BE(l,u,i)];o?(e.moveTo(d.x,d.y),o=!1):(e.lineTo(n,d.y),e.lineTo(d.x,d.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(n,f.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function MO(e,t){const{line:n,target:r,property:i,color:o,scale:s,clip:a}=t,l=u1e(n,r,i);for(const{source:u,target:d,start:f,end:g}of l){const{style:{backgroundColor:m=o}={}}=u,y=r!==!0;e.save(),e.fillStyle=m,T1e(e,s,a,y&&j_(i,f,g)),e.beginPath();const b=!!n.pathSegment(e,u);let w;if(y){b?e.closePath():r6(e,r,g,i);const C=!!r.pathSegment(e,d,{move:b,reverse:!0});w=b&&C,w||r6(e,r,f,i)}e.closePath(),e.fill(w?"evenodd":"nonzero"),e.restore()}}function T1e(e,t,n,r){const i=t.chart.chartArea,{property:o,start:s,end:a}=r||{};if(o==="x"||o==="y"){let l,u,d,f;o==="x"?(l=s,u=i.top,d=a,f=i.bottom):(l=i.left,u=s,d=i.right,f=a),e.beginPath(),n&&(l=Math.max(l,n.left),d=Math.min(d,n.right),u=Math.max(u,n.top),f=Math.min(f,n.bottom)),e.rect(l,u,d-l,f-u),e.clip()}}function r6(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var vwt={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,s,a,l;for(s=0;s<r;++s)o=e.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof UL&&(l={visible:e.isDatasetVisible(s),index:s,fill:h1e(a,s,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=d1e(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let s=i.length-1;s>=0;--s){const a=i[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),r&&a.fill&&DO(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;e6(o)&&DO(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!e6(r)||n.drawTime!=="beforeDatasetDraw"||DO(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const i6=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},P1e=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;let o6=class extends Ec{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ln(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=no(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=i6(r,o);let u,d;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(s,o,a,l)+10):(d=this.maxHeight,u=this._fitCols(s,i,a,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],d=i+a;let f=t;o.textAlign="left",o.textBaseline="middle";let g=-1,m=-d;return this.legendItems.forEach((y,b)=>{const w=r+n/2+o.measureText(y.text).width;(b===0||u[u.length-1]+w+2*a>s)&&(f+=d,u[u.length-(b>0?0:1)]=0,m+=d,g++),l[b]={left:0,top:m,row:g,width:w,height:i},u[u.length-1]+=w+a}),f}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],d=s-t;let f=a,g=0,m=0,y=0,b=0;return this.legendItems.forEach((w,C)=>{const{itemWidth:E,itemHeight:A}=O1e(r,n,o,w,i);C>0&&m+A+2*a>d&&(f+=g+a,u.push({width:g,height:m}),y+=g+a,b++,g=m=0),l[C]={left:y,top:m,col:b,width:E,height:A},g=Math.max(g,E),m+=A+a}),f+=g,u.push({width:g,height:m}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=Yp(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=qi(r,this.left+i,this.right-this.lineWidths[a]);for(const u of n)a!==u.row&&(a=u.row,l=qi(r,this.left+i,this.right-this.lineWidths[a])),u.top+=this.top+t+i,u.left=s.leftForLtr(s.x(l),u.width),l+=u.width+i}else{let a=0,l=qi(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const u of n)u.col!==a&&(a=u.col,l=qi(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+i,u.left=s.leftForLtr(s.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;IE(t,this),this._draw(),_E(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=Er.color,l=Yp(t.rtl,this.left,this.width),u=no(s.font),{padding:d}=s,f=u.size,g=f/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:y,boxHeight:b,itemHeight:w}=i6(s,f),C=function(O,D,F){if(isNaN(y)||y<=0||isNaN(b)||b<0)return;i.save();const L=At(F.lineWidth,1);if(i.fillStyle=At(F.fillStyle,a),i.lineCap=At(F.lineCap,"butt"),i.lineDashOffset=At(F.lineDashOffset,0),i.lineJoin=At(F.lineJoin,"miter"),i.lineWidth=L,i.strokeStyle=At(F.strokeStyle,a),i.setLineDash(At(F.lineDash,[])),s.usePointStyle){const N={radius:b*Math.SQRT2/2,pointStyle:F.pointStyle,rotation:F.rotation,borderWidth:L},M=l.xPlus(O,y/2),k=D+g;iee(i,N,M,k,s.pointStyleWidth&&y)}else{const N=D+Math.max((f-b)/2,0),M=l.leftForLtr(O,y),k=Kp(F.borderRadius);i.beginPath(),Object.values(k).some(B=>B!==0)?O1(i,{x:M,y:N,w:y,h:b,radius:k}):i.rect(M,N,y,b),i.fill(),L!==0&&i.stroke()}i.restore()},E=function(O,D,F){Ab(i,F.text,O,D+w/2,u,{strikethrough:F.hidden,textAlign:l.textAlign(F.textAlign)})},A=this.isHorizontal(),T=this._computeTitleHeight();A?m={x:qi(o,this.left+d,this.right-r[0]),y:this.top+d+T,line:0}:m={x:this.left+d,y:qi(o,this.top+T+d,this.bottom-n[0].height),line:0},dee(this.ctx,t.textDirection);const P=w+d;this.legendItems.forEach((O,D)=>{i.strokeStyle=O.fontColor,i.fillStyle=O.fontColor;const F=i.measureText(O.text).width,L=l.textAlign(O.textAlign||(O.textAlign=s.textAlign)),N=y+g+F;let M=m.x,k=m.y;l.setWidth(this.width),A?D>0&&M+N+d>this.right&&(k=m.y+=P,m.line++,M=m.x=qi(o,this.left+d,this.right-r[m.line])):D>0&&k+P>this.bottom&&(M=m.x=M+n[m.line].width+d,m.line++,k=m.y=qi(o,this.top+T+d,this.bottom-n[m.line].height));const B=l.x(M);if(C(B,k,O),M=rCe(L,M+y+g,A?M+N:this.right,t.rtl),E(l.x(M),k,O),A)m.x+=N+d;else if(typeof O.text!="string"){const j=u.lineHeight;m.y+=kee(O,j)+d}else m.y+=P}),hee(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=no(n.font),i=ca(n.padding);if(!n.display)return;const o=Yp(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,u=i.top+l;let d,f=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),d=this.top+u,f=qi(t.align,f,this.right-g);else{const y=this.columnSizes.reduce((b,w)=>Math.max(b,w.height),0);d=u+qi(t.align,this.top,this.bottom-y-t.labels.padding-this._computeTitleHeight())}const m=qi(a,f,f+g);s.textAlign=o.textAlign(_L(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,Ab(s,n.text,m,d,r)}_computeTitleHeight(){const t=this.options.title,n=no(t.font),r=ca(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(ec(t,this.left,this.right)&&ec(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],ec(t,i.left,i.left+i.width)&&ec(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!I1e(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=P1e(i,r);i&&!o&&Ln(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Ln(n.onHover,[t,r,this],this)}else r&&Ln(n.onClick,[t,r,this],this)}};function O1e(e,t,n,r,i){const o=D1e(r,e,t,n),s=M1e(i,r,t.lineHeight);return{itemWidth:o,itemHeight:s}}function D1e(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function M1e(e,t,n){let r=e;return typeof t.text!="string"&&(r=kee(t,n)),r}function kee(e,t){const n=e.text?e.text.length:0;return t*n}function I1e(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var bwt={id:"legend",_element:o6,start(e,t,n){const r=e.legend=new o6({ctx:e.ctx,options:n,chart:e});oa.configure(e,r,n),oa.addBox(e,r)},stop(e){oa.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;oa.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),d=ca(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:s&&(a||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Lee extends Ec{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=kr(r.text)?r.text.length:1;this._padding=ca(r.padding);const o=i*no(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,u,d,f;return this.isHorizontal()?(d=qi(a,r,o),f=n+t,u=o-r):(s.position==="left"?(d=r+t,f=qi(a,i,n),l=fn*-.5):(d=o-t,f=qi(a,n,i),l=fn*.5),u=i-n),{titleX:d,titleY:f,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=no(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(o);Ab(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:_L(n.align),textBaseline:"middle",translation:[s,a]})}}function _1e(e,t){const n=new Lee({ctx:e.ctx,options:t,chart:e});oa.configure(e,n,t),oa.addBox(e,n),e.titleBlock=n}var wwt={id:"title",_element:Lee,start(e,t,n){_1e(e,n)},stop(e){const t=e.titleBlock;oa.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;oa.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const By={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();r.add(l.x),i+=l.y,++o}}return o===0||r.size===0?!1:{x:[...r].reduce((a,l)=>a+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=e.length;o<s;++o){const l=e[o].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),d=N_(t,u);d<i&&(i=d,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function _l(e,t){return t&&(kr(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function qu(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(` 824`)>-1?e.split(` 825`):e}function F1e(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function s6(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=no(t.bodyFont),u=no(t.titleFont),d=no(t.footerFont),f=o.length,g=i.length,m=r.length,y=ca(t.padding);let b=y.height,w=0,C=r.reduce((T,P)=>T+P.before.length+P.lines.length+P.after.length,0);if(C+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),C){const T=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;b+=m*T+(C-m)*l.lineHeight+(C-1)*t.bodySpacing}g&&(b+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let E=0;const A=function(T){w=Math.max(w,n.measureText(T).width+E)};return n.save(),n.font=u.string,dn(e.title,A),n.font=l.string,dn(e.beforeBody.concat(e.afterBody),A),E=t.displayColors?s+2+t.boxPadding:0,dn(r,T=>{dn(T.before,A),dn(T.lines,A),dn(T.after,A)}),E=0,n.font=d.string,dn(e.footer,A),n.restore(),w+=y.width,{width:w,height:b}}function k1e(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function L1e(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function N1e(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let u="center";return r==="center"?u=i<=(a+l)/2?"left":"right":i<=o/2?u="left":i>=s-o/2&&(u="right"),L1e(u,e,t,n)&&(u="center"),u}function a6(e,t,n){const r=n.yAlign||t.yAlign||k1e(e,n);return{xAlign:n.xAlign||t.xAlign||N1e(e,t,n,r),yAlign:r}}function B1e(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function H1e(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function l6(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,u=i+o,{topLeft:d,topRight:f,bottomLeft:g,bottomRight:m}=Kp(s);let y=B1e(t,a);const b=H1e(t,l,u);return l==="center"?a==="left"?y+=u:a==="right"&&(y-=u):a==="left"?y-=Math.max(d,g)+i:a==="right"&&(y+=Math.max(f,m)+i),{x:to(y,0,r.width-t.width),y:to(b,0,r.height-t.height)}}function Y0(e,t,n){const r=ca(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function u6(e){return _l([],qu(e))}function V1e(e,t,n){return gg(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function c6(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Nee={beforeTitle:Vu,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Vu,beforeBody:Vu,beforeLabel:Vu,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return rn(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Vu,afterBody:Vu,beforeFooter:Vu,footer:Vu,afterFooter:Vu};function zo(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?Nee[t].call(n,r):i}let d6=class extends Ec{static positioners=By;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new vee(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=V1e(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=zo(r,"beforeTitle",this,t),o=zo(r,"title",this,t),s=zo(r,"afterTitle",this,t);let a=[];return a=_l(a,qu(i)),a=_l(a,qu(o)),a=_l(a,qu(s)),a}getBeforeBody(t,n){return u6(zo(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return dn(t,o=>{const s={before:[],lines:[],after:[]},a=c6(r,o);_l(s.before,qu(zo(a,"beforeLabel",this,o))),_l(s.lines,zo(a,"label",this,o)),_l(s.after,qu(zo(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return u6(zo(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=zo(r,"beforeFooter",this,t),o=zo(r,"footer",this,t),s=zo(r,"afterFooter",this,t);let a=[];return a=_l(a,qu(i)),a=_l(a,qu(o)),a=_l(a,qu(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,u;for(l=0,u=n.length;l<u;++l)a.push(F1e(this.chart,n[l]));return t.filter&&(a=a.filter((d,f,g)=>t.filter(d,f,g,r))),t.itemSort&&(a=a.sort((d,f)=>t.itemSort(d,f,r))),dn(a,d=>{const f=c6(t.callbacks,d);i.push(zo(f,"labelColor",this,d)),o.push(zo(f,"labelPointStyle",this,d)),s.push(zo(f,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0}
vendor: 4,475 bytes, line 825
825);else{const a=By[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=s6(this,r),u=Object.assign({},a,l),d=a6(this.chart,r,u),f=l6(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:u,bottomLeft:d,bottomRight:f}=Kp(a),{x:g,y:m}=t,{width:y,height:b}=n;let w,C,E,A,T,P;return o==="center"?(T=m+b/2,i==="left"?(w=g,C=w-s,A=T+s,P=T-s):(w=g+y,C=w+s,A=T-s,P=T+s),E=w):(i==="left"?C=g+Math.max(l,d)+s:i==="right"?C=g+y-Math.max(u,f)-s:C=this.caretX,o==="top"?(A=m,T=A-s,w=C-s,E=C+s):(A=m+b,T=A+s,w=C+s,E=C-s),P=A),{x1:w,x2:C,x3:E,y1:A,y2:T,y3:P}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const u=Yp(r.rtl,this.x,this.width);for(t.x=Y0(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",s=no(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],u.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,o){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=o,d=no(o.bodyFont),f=Y0(this,"left",o),g=i.x(f),m=l<d.lineHeight?(d.lineHeight-l)/2:0,y=n.y+m;if(o.usePointStyle){const b={radius:Math.min(u,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},w=i.leftForLtr(g,u)+u/2,C=y+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,H_(t,b,w,C),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,H_(t,b,w,C)}else{t.lineWidth=Nt(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const b=i.leftForLtr(g,u),w=i.leftForLtr(i.xPlus(g,1),u-2),C=Kp(s.borderRadius);Object.values(C).some(E=>E!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,O1(t,{x:b,y,w:u,h:l,radius:C}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),O1(t,{x:w,y:y+1,w:u-2,h:l-2,radius:C}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(b,y,u,l),t.strokeRect(b,y,u,l),t.fillStyle=s.backgroundColor,t.fillRect(w,y+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:u,boxPadding:d}=r,f=no(r.bodyFont);let g=f.lineHeight,m=0;const y=Yp(r.rtl,this.x,this.width),b=function(F){n.fillText(F,y.x(t.x+m),t.y+g/2),t.y+=g+o},w=y.textAlign(s);let C,E,A,T,P,O,D;for(n.textAlign=s,n.textBaseline="middle",n.font=f.string,t.x=Y0(this,w,r),n.fillStyle=r.bodyColor,dn(this.beforeBody,b),m=a&&w!=="right"?s==="center"?u/2+d:u+2+d:0,T=0,O=i.length;T<O;++T){for(C=i[T],E=this.labelTextColors[T],n.fillStyle=E,dn(C.before,b),A=C.lines,a&&A.length&&(this._drawColorBox(n,t,T,y,r),g=Math.max(f.lineHeight,l)),P=0,D=A.length;P<D;++P)b(A[P]),g=f.lineHeight;dn(C.after,b)}m=0,g=f.lineHeight,dn(this.afterBody,b),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let s,a;if(o){const l=Yp(r.rtl,this.x,this.width);for(t.x=Y0(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=no(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:u,height:d}=r,{topLeft:f,topRight:g,bottomLeft:m,bottomRight:y}=Kp(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+f,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+u-g,l),n.quadraticCurveTo(a+u,l,a+u,l+g),s==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+u,l+d-y),n.quadraticCurveTo(a+u,l+d,a+u-y,l+d),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+m,l+d),n.quadraticCurveTo(a,l+d,a,l+d-m),s==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,l
vendor: 11,758 bytes, line 825
825+f),n.quadraticCurveTo(a,l,a+f,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=By[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=s6(this,t),l=Object.assign({},s,this._size),u=a6(n,t,l),d=l6(t,l,u,n);(i._to!==d.x||o._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=ca(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),dee(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),hee(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const u=this.chart.getDatasetMeta(a);if(!u)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:u.data[l],index:l}}),o=!A1(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!A1(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=By[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}};var Swt={id:"tooltip",_element:d6,positioners:By,afterInit(e,t,n){n&&(e.tooltip=new d6({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Nee},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const z1e=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function G1e(e,t,n,r){const i=e.indexOf(t);if(i===-1)return z1e(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const j1e=(e,t)=>e===null?null:to(Math.round(e),0,t);function h6(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class xwt extends NE{static id="category";static defaults={ticks:{callback:h6}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(rn(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:G1e(r,t,At(n,t),this._addedLabels),j1e(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return h6.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function U1e(e,t){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:u,maxTicks:d,maxDigits:f,includeBounds:g}=e,m=o||1,y=d-1,{min:b,max:w}=t,C=!rn(s),E=!rn(a),A=!rn(u),T=(w-b)/(f+1);let P=l8((w-b)/y/m)*m,O,D,F,L;if(P<1e-14&&!C&&!E)return[{value:b},{value:w}];L=Math.ceil(w/P)-Math.floor(b/P),L>y&&(P=l8(L*P/y/m)*m),rn(l)||(O=Math.pow(10,l),P=Math.ceil(P*O)/O),i==="ticks"?(D=Math.floor(b/P)*P,F=Math.ceil(w/P)*P):(D=b,F=w),C&&E&&o&&Kwe((a-s)/o,P/1e3)?(L=Math.round(Math.min((a-s)/P,d)),P=(a-s)/L,D=s,F=a):A?(D=C?s:D,F=E?a:F,L=u-1,P=(F-D)/L):(L=(F-D)/P,Zy(L,Math.round(L),P/1e3)?L=Math.round(L):L=Math.ceil(L));const N=Math.max(u8(P),u8(D));O=Math.pow(10,rn(l)?N:l),D=Math.round(D*O)/O,F=Math.round(F*O)/O;let M=0;for(C&&(g&&D!==s?(n.push({value:s}),D<s&&M++,Zy(Math.round((D+M*P)*O)/O,s,f6(s,T,e))&&M++):D<s&&M++);M<L;++M){const k=Math.round((D+M*P)*O)/O;if(E&&k>a)break;n.push({value:k})}return E&&g&&F!==a?n.length&&Zy(n[n.length-1].value,a,f6(a,T,e))?n[n.length-1].value=a:n.push({value:a}):(!E||F===a)&&n.push({value:F}),n}function f6(e,t,{horizontal:n,minRotation:r}){const i=Ju(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class W1e extends NE{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return rn(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=n?i:l,a=l=>o=r?o:l;if(t){const l=Wl(i),u=Wl(o);l<0&&u<0?a(0):l>0&&u>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=U1e(i,o);return t.bounds==="ticks"&&Ywe(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return kL(t,this.chart.options.locale,this.options.ticks.format)}}class Ewt extends W1e{static id="linear";static defaults={ticks:{callback:ree.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=oo(t)?t:0,this.max=oo(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Ju(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const HE={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Wo=Object.keys(HE);function g6(e,t){return e-t}function p6(e,t){if(rn(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),oo(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(xb(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function m6(e,t,n,r){const i=Wo.length;for(let o=Wo.indexOf(e);o<i-1;++o){const s=HE[Wo[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return Wo[o]}return Wo[i-1]}function $1e(e,t,n,r,i){for(let o=Wo.length-1;o>=Wo.indexOf(n);o--){const s=Wo[o];if(HE[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return Wo[n?Wo.indexOf(n):0]}function q1e(e){for(let t=Wo.indexOf(e)+1,n=Wo.length;t<n;++t)if(HE[Wo[t]].common)return Wo[t]}function v6(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=IL(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function K1e(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function y6(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:K1e(e,r,i,n)}class b6 extends NE{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new F0e._date(t.adapters.date);i.init(n),Xy(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:p6(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(u){!s&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!a&&!isNaN(u.max)&&(o=Math.max(o,u.max))}
vendor: 6,182 bytes, line 825
825(!s||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=oo(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=oo(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,s=this.max,a=eCe(i,o,s);return this._unit=n.unit||(r.autoSkip?m6(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):$1e(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:q1e(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),y6(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=to(n,0,s),r=to(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||m6(o.minUnit,n,r,this._getLabelCapacity(n)),a=At(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,u=xb(l)||l===!0,d={};let f=n,g,m;if(u&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,u?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(g=f,m=0;g<r;g=+t.add(g,a,s),m++)v6(d,g,y);return(g===r||i.bounds==="ticks"||m===1)&&v6(d,g,y),Object.keys(d).sort(g6).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,s=n||i[o];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Ln(s,[t,n,r],this);const a=o.time.displayFormats,l=this._unit,u=this._majorUnit,d=l&&a[l],f=u&&a[u],g=r[n],m=u&&f&&g&&g.major;return this._adapter.format(t,i||(m?f:d))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Ju(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,y6(this,[t],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(p6(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return eee(t.sort(g6))}}function X0(e,t,n){let r=0,i=e.length-1,o,s,a,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=hf(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=hf(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const u=s-o;return u?a+(l-a)*(t-o)/u:a}class Rwt extends b6{static id="timeseries";static defaults=b6.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=X0(n,this.min),this._tableRange=X0(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,u,d;for(s=0,a=t.length;s<a;++s)u=t[s],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)d=i[s+1],l=i[s-1],u=i[s],Math.round((d+l)/2)!==u&&o.push({time:u,pos:s/(a-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(X0(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return X0(this._table,r*this._tableRange+this._minPos,!0)}}const Bee="label";function w6(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Y1e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function Hee(e,t){e.labels=t}function Vee(e,t,n=Bee){const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function X1e(e,t=Bee){const n={labels:[],datasets:[]};return Hee(n,e.labels),Vee(n,e.datasets,t),n}function Z1e(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:u=[],fallbackContent:d,updateMode:f,...g}=e,m=R.useRef(null),y=R.useRef(null),b=()=>
825{m.current&&(y.current=new jL(m.current,{type:s,data:X1e(a,o),options:l&&{...l},plugins:u}),w6(t,y.current))},w=()=>{w6(t,null),y.current&&(y.current.destroy(),y.current=null)};return R.useEffect(()=>{!i&&y.current&&l&&Y1e(y.current,l)},[i,l]),R.useEffect(()=>{!i&&y.current&&Hee(y.current.config.data,a.labels)},[i,a.labels]),R.useEffect(()=>{!i&&y.current&&a.datasets&&Vee(y.current.config.data,a.datasets,o)},[i,a.datasets]),R.useEffect(()=>{y.current&&(i?(w(),setTimeout(b)):y.current.update(f))},[i,l,a.labels,a.datasets,f]),R.useEffect(()=>{y.current&&(w(),setTimeout(b))},[s]),R.useEffect(()=>(b(),()=>w()),[]),Yy.jsx("canvas",{ref:m,role:"img",height:n,width:r,...g,children:d})}const Q1e=R.forwardRef(Z1e);function WL(e,t){return jL.register(t),R.forwardRef((n,r)=>Yy.jsx(Q1e,{...n,ref:r,type:e}))}const Awt=WL("line",_0e),Twt=WL("bar",D0e),Pwt=WL("doughnut",I0e);function gn(e){if(e?.length)return e[e.length-1]}function th(e,t,n){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const r=e.length;if(r!==t.length)return!1;if(n){for(let i=0;i<r;++i)if(e[i]!==t[i]&&!n(e[i],t[i]))return!1;return!0}for(let i=0;i<r;++i)if(e[i]!==t[i])return!1;return!0}function J1e(e,t){if(!t)return[];const n=t.length;if(e&&e!==t&&e.length===n){for(let r=0;r<n;++r)if(e[r]!==t[r])return t.slice();return e}return t.slice()}function hy(e,t){if(e){for(const n of e)if(t(n))return!0}}function Zl(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function exe(e,t){let n=0,r=0;for(;n<e.length;
vendor: 4,146 bytes, line 825
825n++)t.includes(e[n])||(e[r]=e[n],r++);for(;r<e.length;)e.pop()}function C6(e,t,n){for(let r=0;r<t.length;r++)Zl(e,t[r]);for(let r=t.length-1;r>=0;r--)e.splice(n,0,t[r])}var oc=e=>e==null||e===""?null:e;function Ve(e){return e!=null&&e!==""}function rr(e){return!Ve(e)}var U_=e=>e!=null&&typeof e.toString=="function"?e.toString():null,Pb=(e,t)=>{const n=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return n===r},txe=(e,t,n=!1)=>(typeof e=="object"&&e!==null&&typeof e.toNumber=="function"&&(e=e.toNumber()),typeof t=="object"&&t!==null&&typeof t.toNumber=="function"&&(t=t.toNumber()),e==null?t==null?0:-1:t==null?1:!n||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t)),Gf=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,n){const r=t?this.allAsyncListeners:this.allSyncListeners;let i=r.get(e);return!i&&n&&(i=new Set,r.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){const r=this.getListeners(e,n,!1);r&&(r.delete(t),r.size===0&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const n=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:r}=this,i=a=>{const l=r?()=>r.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},o=this.getListeners(n,t,!1);if((o?.size??0)>0){const a=new Set(o);for(const l of a)o?.has(l)&&i(()=>l(e))}const s=this.getGlobalListeners(t);if(s.size>0){const a=new Set(s);for(const l of a)i(()=>l(n,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)},n=this.frameworkOverrides;n?n.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}},nxe=/[&<>"']/g,rxe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Um(e){return e?.toString().toString()??null}function eb(e){return Um(e)?.replace(nxe,t=>rxe[t])??null}function ixe(e){return typeof e=="string"&&e.length>1&&e.codePointAt(0)===61}function oxe(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,n=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(n,"$1 $2$3").replace(/\./g," ").split(" ").map(i=>i.substring(0,1).toUpperCase()+(i.length>1?i.substring(1,i.length):"")).join(" ")}function kl(e){return e.eRootDiv.getRootNode()}function $n(e){return kl(e).activeElement}function Kr(e){const{gos:t,eRootDiv:n}=e;let r=null;const i=t.get("getDocument");return i&&Ve(i)?r=i():n&&(r=n.ownerDocument),r&&Ve(r)?r:document}function $L(e){const t=$n(e);return t===null||t===Kr(e).body}function qL(e){return Kr(e).defaultView||window}function KL(e){let t=null,n;try{t=Kr(e).fullscreenElement}catch{}finally{t||(t=kl(e));const r=t.querySelector("body");r?n=r:t instanceof ShadowRoot?n=t:t instanceof Document?n=t?.documentElement:n=t}return n}function sxe(e){return KL(e)?.clientWidth??(window.innerWidth||-1)}function axe(e){return KL(e)?.clientHeight??(window.innerHeight||-1)}function nl(e,t,n){n==null||typeof n=="string"&&n==""?zee(e,t):rl(e,t,n)}function rl(e,t,n){e.setAttribute(Gee(t),n.toString())}function zee(e,t){e.removeAttribute(Gee(t))}function Gee(e){return`aria-${e}`}function jf(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function lxe(e){const t=e?.direction;
vendor: 8,494 bytes, line 825
825return t==="asc"?"ascending":t==="desc"?"descending":t==="mixed"?"other":"none"}function uxe(e){return e.getAttribute("aria-label")}function bm(e,t){nl(e,"label",t)}function Ob(e,t){nl(e,"labelledby",t)}function jee(e,t){nl(e,"live",t)}function cxe(e,t){nl(e,"atomic",t)}function dxe(e,t){nl(e,"relevant",t)}function YL(e,t){nl(e,"invalid",t)}function hxe(e,t){nl(e,"disabled",t)}function Uee(e,t){nl(e,"hidden",t)}function W_(e,t){rl(e,"expanded",t)}function fxe(e,t){rl(e,"setsize",t)}function gxe(e,t){rl(e,"posinset",t)}function pxe(e,t){rl(e,"rowcount",t)}function XL(e,t){rl(e,"rowindex",t)}function mxe(e,t){rl(e,"rowspan",t)}function vxe(e,t){rl(e,"colcount",t)}function Wee(e,t){rl(e,"colindex",t)}function yxe(e,t){rl(e,"colspan",t)}function bxe(e,t){rl(e,"sort",t)}function wxe(e){zee(e,"sort")}function $ee(e,t){nl(e,"selected",t)}function Cxe(e,t){nl(e,"controls",t)}function Sxe(e,t){Cxe(e,t.id),Ob(t,e.id)}function S6(e,t){nl(e,"owns",t)}function VE(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var xxe="[tabindex], input, select, button, textarea, [href]",qee="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function tb(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(qee)?!1:Za(e)}function Cn(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle("ag-hidden",!t),r||Uee(e,!t)}function Exe(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle("ag-invisible",!t),r||Uee(e,!t)}function Db(e,t){const n="disabled",r=t?o=>o.setAttribute(n,""):o=>o.removeAttribute(n);r(e);const i=e.querySelectorAll("input")??[];for(const o of i)r(o)}function xf(e,t,n){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof n=="number"){if(++r>n)break}else if(e===n)break}return!1}function pg(e){const{height:t,width:n,borderTopWidth:r,borderRightWidth:i,borderBottomWidth:o,borderLeftWidth:s,paddingTop:a,paddingRight:l,paddingBottom:u,paddingLeft:d,marginTop:f,marginRight:g,marginBottom:m,marginLeft:y,boxSizing:b}=window.getComputedStyle(e),w=Number.parseFloat;return{height:w(t||"0"),width:w(n||"0"),borderTopWidth:w(r||"0"),borderRightWidth:w(i||"0"),borderBottomWidth:w(o||"0"),borderLeftWidth:w(s||"0"),paddingTop:w(a||"0"),paddingRight:w(l||"0"),paddingBottom:w(u||"0"),paddingLeft:w(d||"0"),marginTop:w(f||"0"),marginRight:w(g||"0"),marginBottom:w(m||"0"),marginLeft:w(y||"0"),boxSizing:b}}function ZL(e){const t=pg(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Mb(e){const t=pg(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function Kee(e){const{height:t,marginBottom:n,marginTop:r}=pg(e);return Math.floor(t+n+r)}function _1(e){const{width:t,marginLeft:n,marginRight:r}=pg(e);return Math.floor(t+n+r)}function Yee(e){const t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:o}=pg(e);return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(i||0),bottom:t.bottom+(o||0)}}function F1(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n)),n}function k1(e,t,n){n&&(t*=-1),e.scrollLeft=t}function Jo(e){for(;e?.firstChild;)e.firstChild.remove()}function Ql(e){e?.parentNode&&e.remove()}function Xee(e){return!!e.offsetParent}function Za(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!Xee(e)||window.getComputedStyle(e).visibility!=="visible")}function QL(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Ib(e){return()=>{const t=e();return t?Zee(t)||Rxe(t):!0}}function Zee(e){return e.clientWidth<e.scrollWidth}function Rxe(e){return e.clientHeight<e.scrollHeight}function L1(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):$l(e,t)}function $l(e,t){t=JL(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function nb(e,t){t=JL(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function JL(e){return typeof e=="number"?`${e}px`:e}function eN(e){return e instanceof Node||e instanceof HTMLElement}function $o(e,t,n){n==null||n===""?e.removeAttribute(t):e.setAttribute(t,n.toString())}function Axe(e,t){if(!t.isContentEditable)return;const n=qL(e).getSelection();if(!n)return;const r=Kr(e).createRange();r.selectNodeContents(t),r.collapse(!1),n.removeAllRanges(),n.addRange(r)}function Rc(e,t,n){const i=qL(e).ResizeObserver,o=i?new i(n):null;return o?.observe(t),()=>o?.disconnect()}function nh(e,t){const n=qL(e);n.requestAnimationFrame?n.requestAnimationFrame(t):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(t):n.setTimeout(t,0)}var Qee="data-ref",IO;function x6(){return IO??(IO=document.createTextNode(" ")),IO.cloneNode()}function Uf(e){const{attrs:t,children:n,cls:r,ref:i,role:o,tag:s}=e,a=document.createElement(s);if(r&&(a.className=r),i&&a.setAttribute(Qee,i),o&&a.setAttribute("role",o),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(n)if(typeof n=="string")a.textContent=n;else{let l=!0;for(const u of n)u&&(typeof u=="string"?(a.appendChild(document.createTextNode(u)),l=!1):typeof u=="function"?a.appendChild(u()):(l&&(a.appendChild(x6()),l=!1),a.append(Uf(u)),a.appendChild(x6())))}return a}var Txe=["touchstart","touchend","touchmove","touchcancel","scroll"],Pxe=["wheel"],_O={},N1=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n=>{if(typeof _O[n]=="boolean")return _O[n];const r=document.createElement(e[n]||"div");return n="on"+n,_O[n]=n in r}})();function Oxe(e,t){return!t||!e?!1:Mxe(t).indexOf(e)>=0}function Dxe(e){const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function Mxe(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():Dxe(t)}function Ixe(e,t,n){const r=_xe(t);let i;r!=null&&(i={passive:r}),e.addEventListener(t,n,i)}var _xe=e=>{const t=Txe.includes(e),n=Pxe.includes(e);if(t)return!0;if(n)return!1};function Jee(e,t,n){if(n===0)return!1;const r=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(r,i)<=n}var Xp=(e,t)=>{const n=e.identifier;for(let r=0,i=t.length;r<i;++r){const o=t[r];if(o.identifier===n)return o}return null};function _b(e,t){return e.gos.isElementInThisInstance(t.target)}function Fxe(e,t,n){const i=e.getBoundingClientRect().height,o=sxe(n)-2,s=axe(n)-2;if(!e.offsetParent)return;const l=Yee(e.offsetParent),{clientY:u,clientX:d}=t;let f=u-l.top-i/2,g=d-l.left-10;const m=Kr(n),y=m.defaultView||window,b=y.pageYOffset||m.documentElement.scrollTop,w=y.pageXOffset||m.documentElement.scrollLeft;o>0&&g+e.clientWidth>o+w&&(g=o+w-e.clientWidth),g<0&&(g=0),s>0&&f+e.clientHeight>s+b&&(f=s+b-e.clientHeight),f<0&&(f=0),e.style.left=`${g}px`,e.style.top=`${f}px`}var JS=(e,...t)=>{for(const n of t){const[r,i,o,s]=n;r.addEventListener(i,o,s),e.push(n)}},tN=e=>{if(e){for(const[t,n,r,i]of e)t.removeEventListener(n,r,i);e.length=0}},Md=e=>{e.cancelable&&e.preventDefault()};function kxe(e,t){return t}function ete(e){return e?.getLocaleTextFunc()??kxe}function Lxe(e,t,n,r){const i=t[n];return e.getLocaleTextFunc()(n,typeof i=="function"?i(r):i,r)}function Nxe(e){return(t,n,r)=>e({key:t,defaultValue:n,variableValues:r})}function Bxe(e){return(t,n,r)=>{let i=e?.[t];if(i&&r?.length){let o=0;for(;!(o>=r.length||i.indexOf("${variable}")===-1);)i=i.replace("${variable}",r[o++])}return i??n}}var Do=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,n){this.localEventService||(this.localEventService=new Gf),this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService?.removeEventListener(e,t,n)}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 n=[];for(const r of Object.keys(t)){const i=t[r];
vendor: 8,990 bytes, line 825
825i&&n.push(this._setupListener(e,r,i))}return n}_setupListener(e,t,n){if(this.destroyed)return()=>null;let r;if(Hxe(e))e.__addEventListener(t,n),r=()=>(e.__removeEventListener(t,n),null);else{const i=Vxe(e);e instanceof HTMLElement?Ixe(e,t,n):i?e.addListener(t,n):e.addEventListener(t,n),r=i?()=>(e.removeListener(t,n),null):()=>(e.removeEventListener(t,n),null)}return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}setupPropertyListener(e,t){const{gos:n}=this;n.addPropertyEventListener(e,t);const r=()=>(n.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const n=e.join("-")+this.propertyListenerId++,r=i=>{if(i.changeSet){if(i.changeSet?.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=i.changeSet.id}const o={type:"propertyChanged",changeSet:i.changeSet,source:i.source};t(o)};for(const i of e)this.setupPropertyListener(i,r)}getLocaleTextFunc(){return ete(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 n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.stubContext).createBean(e,n)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function Hxe(e){return e.__addEventListener!==void 0}function Vxe(e){return e.eventServiceType==="global"}var Se=class extends Do{},$_=new Set,zE=(e,t)=>{$_.has(t)||($_.add(t),e())};zE._set=$_;var zxe={pending:!1,funcs:[]},Gxe={pending:!1,funcs:[]};function q_(e,t="setTimeout",n){const r=t==="raf"?Gxe:zxe;if(r.funcs.push(e),r.pending)return;r.pending=!0;const i=()=>{const o=r.funcs.slice();r.funcs.length=0,r.pending=!1;for(const s of o)s()};t==="raf"?nh(n,i):window.setTimeout(i,0)}function ui(e,t,n){let r;return function(...i){const o=this;return window.clearTimeout(r),r=window.setTimeout(function(){e.isAlive()&&t.apply(o,i)},n),r}}function E6(e,t){let n=0;return function(...r){const i=this,o=Date.now();o-n<t||(n=o,e.apply(i,r))}}function jxe(e,t,n,r=100){const i=Date.now();let o=null,s=!1;const a=()=>{o!=null&&(window.clearInterval(o),o=null)};e.addDestroyFunc(a);const l=()=>{const u=Date.now()-i>r;(t()||u)&&(n(),s=!0,a())};l(),s||(o=window.setInterval(l,10))}var tte=new Set(["__proto__","constructor","prototype"]);function Uxe(e,t){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)t(n.toString(),e[n]);return}for(const n of Object.keys(e).filter(r=>!tte.has(r)))t(n,e[n])}}function Eo(e,t,n=!0,r=!1){Ve(t)&&Uxe(t,(i,o)=>{let s=e[i];s!==o&&(r&&s==null&&o!=null&&typeof o=="object"&&o.constructor===Object&&(s={},e[i]=s),R6(o)&&R6(s)&&!Array.isArray(s)?Eo(s,o,n,r):(n||o!==void 0)&&(e[i]=o))})}function R6(e){return typeof e=="object"&&e!==null}var nN=class Ku{static applyGlobalGridOptions(t){if(!Ku.gridOptions)return{...t};let n={};return Eo(n,Ku.gridOptions,!0,!0),Ku.mergeStrategy==="deep"?Eo(n,t,!0,!0):n={...n,...t},Ku.gridOptions.context&&(n.context=Ku.gridOptions.context),t.context&&(Ku.mergeStrategy==="deep"&&n.context&&Eo(t.context,n.context,!0,!0),n.context=t.context),n}static applyGlobalGridOption(t,n){if(Ku.mergeStrategy==="deep"){const r=nte(t);if(r&&typeof r=="object"&&typeof n=="object")return Ku.applyGlobalGridOptions({[t]:n})[t]}return n}};nN.gridOptions=void 0;nN.mergeStrategy="shallow";var rN=nN;function nte(e){return rN.gridOptions?.[e]}var rte={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipSwitchShowDelay:200,tooltipHideDelay:1e4,noteTrigger:"hover",noteShowDelay:180,noteHideDelay:220,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,refreshAfterGroupEdit:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupHideColumnsUntilExpanded:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,enableFilterHandlers:!1},ite="https://www.ag-grid.com";function Wf(e,t,...n){e.get("debug")&&console.log("AG Grid: "+t,...n)}function lf(e,...t){zE(()=>ote(e,...t),e+t?.join(""))}function Zp(e,...t){zE(()=>Wxe(e,...t),e+t?.join(""))}function Wxe(e,...t){console.error("AG Grid: "+e,...t)}function ote(e,...t){console.warn("AG Grid: "+e,...t)}var ste=new Set,B1={},Ef={},e1,ate=!1,lte=!1,$xe=!1;function qxe(e){const[t,n]=e.version.split(".")||[],[r,i]=e1.split(".")||[];return t===r&&n===i}function Kxe(e){e1||(e1=e.version);const t=r=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${r} Please update all modules to the same version.`;
vendor: 6,422 bytes, lines 825-827
825e.version?qxe(e)||Zp(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${e1}.`)):Zp(t(`'${e.moduleName}' is incompatible.`));const n=e.validate?.();n&&!n.isValid&&Zp(`${n.message}`)}function Fb(e,t,n=!1){n||(ate=!0),Kxe(e);const r=e.rowModels??["all"];ste.add(e);let i;t!==void 0?(lte=!0,Ef[t]===void 0&&(Ef[t]={}),i=Ef[t]):i=B1;for(const o of r)i[o]===void 0&&(i[o]={}),i[o][e.moduleName]=e;if(e.dependsOn)for(const o of e.dependsOn)Fb(o,t,n)}function Yxe(e){delete Ef[e]}function K_(e,t,n){const r=i=>!!B1[i]?.[e]||!!Ef[t]?.[i]?.[e];return r(n)||r("all")}function iN(){return lte}function Xxe(e,t){const n=Ef[e]??{};return[...Object.values(B1.all??{}),...Object.values(n.all??{}),...Object.values(B1[t]??{}),...Object.values(n[t]??{})]}function Zxe(){return new Set(ste)}function Qxe(e,t){const n=Ef[e]??{};return[...Object.values(n.all??{}),...Object.values(n[t]??{})]}function Jxe(){return ate}function ute(){return $xe}var Owt=class{static register(e){Fb(e,void 0)}static registerModules(e){for(const t of e)Fb(t,void 0)}};function cte(e){for(const t of e){if("setLicenseKey"in t)return t;if(t.dependsOn){const n=cte(t.dependsOn);if(n)return n}}}var Le="35.3.1",A6=2e3,T6=100,dte="_version_",hte=null,Qp=`${ite}/javascript-data-grid`;function eEe(e){hte=e}function tEe(e){Qp=e}function fte(e,t,n){return hte?.(e,t)??[oEe(e,t,n)]}function oN(e,t,n,r,i){e(`${r?"warning":"error"} #${t}`,...fte(t,n,i))}function nEe(e){if(!e)return String(e);const t={};for(const n of Object.keys(e))typeof e[n]!="object"&&typeof e[n]!="function"&&(t[n]=e[n]);return JSON.stringify(t)}function rEe(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=nEe(e)),t}function t1(e){return e===void 0?"undefined":e===null?"null":e}function Y_(e,t){return`${e}?${t.toString()}`}function iEe(e,t,n){const r=Array.from(t.entries()).sort((o,s)=>s[1].length-o[1].length);let i=Y_(e,t);for(const[o,s]of r){if(o===dte)continue;const a=i.length-n;if(a<=0)break;const l="...",u=a+l.length,d=s.length-u>T6?s.slice(0,s.length-u)+l:s.slice(0,T6)+l;t.set(o,d),i=Y_(e,t)}return i}function gte(e,t){const n=new URLSearchParams;if(n.append(dte,Le),t)for(const o of Object.keys(t))n.append(o,rEe(t[o]));const r=`${Qp}/errors/${e}`,i=Y_(r,n);return i.length<=A6?i:iEe(r,n,A6)}var oEe=(e,t,n)=>{const r=gte(e,t);return`${`${n?n+` 826`:""}Visit ${r}`}${n?"":` 827 Alternatively register the ValidationModule to see the full message in the console.`}`};function Me(...e){oN(lf,e[0],e[1],!0)}function on(...e){oN(Zp,e[0],e[1],!1)}function Hy(e,t,n){oN(Zp,e,t,!1,n)}function sEe(e,t){const n=t[0];return`error #${n} `+fte(n,t[1],e).join(" ")}function ql(...e){return sEe(void 0,e)}function pte(e,t){return e.get("rowModelType")===t}function hr(e,t){return pte(e,"clientSide")}function Wm(e,t){return pte(e,"serverSide")}function ki(e,t){return e.get("domLayout")===t}function Rf(e){return z1(e)!==void 0}function mte(e){return typeof e.get("getRowHeight")=="function"}function aEe(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function lEe({gos:e,formula:t}){const n=e.get("rowNumbers");return n||!!t?.active&&n!==!1}function $d(e,t,n=!1,r){const{gos:i,environment:o}=e;if(r==null&&(r=o.getDefaultRowHeight()),mte(i)){if(n)return{height:r,estimated:!0};const l={node:t,data:t.data},u=i.getCallback("getRowHeight")(l);if(X_(u))return u===0&&Me(23),{height:Math.max(1,u),estimated:!1}}if(t.detail&&i.get("masterDetail"))return uEe(i);const s=i.get("rowHeight");return{height:s&&X_(s)?s:r,estimated:!1}}function uEe(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return X_(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Af(e){const{environment:t,gos:n}=e,r=n.get("rowHeight");if(!r||rr(r))return t.getDefaultRowHeight();const i=t.refreshRowHeightVariable();return i!==-1?i:(Me(24),t.getDefaultRowHeight())}function X_(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function vte(e,t,n){const r=t[e.getDomDataKey()];return r?r[n]:void 0}function $f(e,t,n,r){const i=e.getDomDataKey();let o=t[i];rr(o)&&(o={},t[i]=o),o[n]=r}function Jp(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function yte(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||ki(e,"print"))}function Ed(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function H1(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function bte(e){return e.get("grandTotalRow")}function cEe(e){switch(e){case"pinnedTop":return"top";case"pinnedBottom":return"bottom";default:return null}}function dEe(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function hEe(e){return dEe(e)&&e.get("groupHideColumnsUntilExpanded")&&hr(e)}function wte(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function Cte(e,t,n){return!!t.group&&!t.footer&&wte(e,n)}function wm(e){const t=e.getCallback("getRowId");return t===void 0?t:n=>{let r=t(n);return typeof r!="string"&&(zE(()=>Me(25,{id:r}),"getRowIdString"),r=String(r)),r}}function fEe(e,t){const n=e.get("groupHideParentOfSingleChild");return!!(n===!0||n==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function gEe(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function em(e){return e?.checkboxes??!0}function n1(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function V1(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function FO(e){return e?.hideDisabledCheckboxes??!1}function pEe(e){return typeof e.get("rowSelection")!="string"}function qd(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function Tf(e){const t=e.get("cellSelection")??!1;return(typeof t=="object"&&t.enableColumnSelection)??!1}function Ste(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const n=e.get("suppressRowClickSelection"),r=e.get("suppressRowDeselection");return n&&r?!1:n?"enableDeselection":r?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function mEe(e){const t=Ste(e);return t===!0||t==="enableSelection"}function vEe(e){const t=Ste(e);return t===!0||t==="enableDeselection"}function Z_(e){const t=e.get("rowSelection");
vendor: 4,343 bytes, line 827
827return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function z1(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 G1(e){return z1(e)==="multiRow"}function yEe(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function j1(e){const t=e.get("rowSelection");if(typeof t=="string"){const n=e.get("groupSelectsChildren"),r=e.get("groupSelectsFiltered");return n&&r?"filteredDescendants":n?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function xte(e,t=!0){const n=e.get("rowSelection");return typeof n!="object"?t?"all":void 0:n.mode==="multiRow"?n.selectAll:"all"}function bEe(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function kb(e){const t=j1(e);return t==="descendants"||t==="filteredDescendants"}function P6(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function wEe(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function qo(e){return e.get("columnMenu")==="legacy"}function CEe(e){return!qo(e)}function SEe(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function xEe(e,t,n){typeof e!="object"&&(e={});const r={...e};for(const i of n){const o=t[i];typeof o<"u"&&(r[i]=o)}return r}function EEe(e,t){if(!e)return;const n={};let r=!1;for(const s of Object.keys(e))n[s]=e[s],r=!0;if(!r)return;const i={type:"gridOptionsChanged",options:n};t.dispatchEvent(i);const o={type:"componentStateChanged",...n};t.dispatchEvent(o)}function ft(e,t){return e.addCommon(t)}function r1(e,t){return e[t]??e.gridOptions?.[t]??nte(t)??rte[t]}function REe({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var AEe={resizable:!0,sortable:!0},TEe=0;function Ete(){return TEe++}function Kd(e){return e instanceof mg}var PEe=["asc","desc",null],OEe=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],mg=class extends Se{constructor(e,t,n,r){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.isColumn=!0,this.instanceId=Ete(),this.autoHeaderHeight=null,this.sortDef=na(),this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.formulaRef=null,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new Gf,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=eb(n)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:n,colFlex:r}}=this;t?.initCol(this);const i=e.hide;i!==void 0?this.visible=!i:this.visible=!e.initialHide,n?.initCol(this),r?.initCol(this)}setColDef(e,t,n){const r=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),r&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",n)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.initState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:n}}=this,r=e.get("suppressFieldDotNotation");this.fieldContainsDots=Ve(t)&&t.includes(".")&&!r,this.tooltipFieldContainsDots=Ve(n)&&n.includes(".")&&!r}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)}addPivotListener(){const e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;!e||!t||this.addManagedListeners(t,{colDefChanged:n=>{const r=e.recreateColDef(this.colDef);this.setColDef(r,r,n.source)}})}
vendor: 4,240 bytes, line 827
827resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){const t=e.width??e.initialWidth??200;return 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 n=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,n)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,n)}createColumnFunctionCallbackParams(e){return ft(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??AEe[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const n=this.createColumnFunctionCallbackParams(e);return t(n)}return!1}createColumnEvent(e,t){return ft(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sortDef.direction}getSortDef(){return this.sortDef.direction?this.sortDef:null}getColDefAllowedSortTypes(){const e=[],{sort:t,initialSort:n}=this.colDef,r=t===null?t:hc(t?.type),i=n===null?n:hc(n?.type);return r&&e.push(r),i&&e.push(i),e}getSortingOrder(){const e=this.getColDefAllowedSortTypes().includes("absolute")?OEe:PEe;return(this.colDef.sortingOrder??this.gos.get("sortingOrder")??e).map(t=>na(t))}getAvailableSortTypes(){const e=this.getSortingOrder().reduce((t,n)=>(n.direction&&t.push(n.type),t),this.getColDefAllowedSortTypes());return new Set(e)}setSortDef(e){this.sortDef=e}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.getSort()==="asc"}isSortDescending(){return this.getSort()==="desc"}isSortNone(){return rr(this.getSort())}isSorting(){return Ve(this.getSort())}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 n=e===!0;this.visible!==n&&(this.visible=n,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}
827isSpanHeaderHeight(){return!this.colDef.suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e?.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.parent;if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.parent}return{numberOfParents:t,isSpanningTotal:n}}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 ft(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(rr(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(rr(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!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),n||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}isAllowFormula(){return this.colDef.allowFormula===!0}dispatchColEvent(e,t,n){const r=this.createColumnEvent(e,t);n&&Eo(r,n),this.colEventSvc.dispatchEvent(r)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function na(e){return tm(e)?{direction:e.direction,type:e.type}:{direction:GE(e),type:hc(e)}}function Bd(e){return e==="asc"||e==="desc"||e===null}function sN(e){return e==="default"||e==="absolute"}function tm(e){if(!e||typeof e!="object")return!1;const t=e;return sN(t.type)&&Bd(t.direction)}function i1(e,t){return e?t?e.type===t.type&&e.direction===t.direction:e?e.direction===null:!0:t?t.direction===null:!0}function GE(e){return Bd(e)?e:null}function hc(e){return sN(e)?e:"default"}function DEe(e,t,n){const i=n?.()??t.sortSvc.getDisplaySortForColumn(e),o=hc(i?.type),s=GE(i?.direction),a=e.getAvailableSortTypes(),l=a.has("default"),u=a.has("absolute");return{isDefaultSortAllowed:l,isAbsoluteSortAllowed:u,isAbsoluteSort:o==="absolute",isDefaultSort:o==="default",isAscending:s==="asc",isDescending:s==="desc",direction:s}}function Yi(e){return e instanceof o1}var o1=class extends Se{constructor(e,t,n,r){super(),this.colGroupDef=e,this.groupId=t,this.padding=n,this.level=r,this.isColumn=!1,this.expandable=!1,this.instanceId=Ete(),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}forEachLeafColumn(e){if(this.children)for(const t of this.children)Kd(t)?e(t):Yi(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)Kd(t)?e.push(t):Yi(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);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,n=!1;const r=this.findChildrenRemovingPadding();for(let o=0,s=r.length;o<s;o++){const a=r[o];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,n=!0):l==="closed"?(t=!0,n=!0):(e=!0,t=!0)}const i=e&&t&&n;this.expandable!==i&&(this.expandable=i,this.dispatchLocalEvent({type:"exp
827andableChanged"}))}findChildrenRemovingPadding(){const e=[],t=n=>{for(const r of n)Yi(r)&&r.isPadding()?t(r.children):e.push(r)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},MEe={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function O6(e,t,n){const r={},i=e.gos;return Object.assign(r,i.get("defaultColGroupDef")),Object.assign(r,t),i.validateColDef(r,n),r}var IEe=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=U_(e);let n=0;for(;;){let r=e??t;if(r?n!==0&&(r+="_"+n):r=n,!this.existingKeys[r]){const i=String(r);return e&&n>0&&Me(273,{providedId:e,usedId:i}),this.existingKeys[i]=!0,i}n++}}},_Ee=(e,t)=>{Yi(e)&&e.setupExpandable(),e.originalParent=t};function FEe(e,t=null,n,r,i){const o=new IEe,{existingCols:s,existingGroups:a,existingColKeys:l}=kEe(r);o.addExistingKeys(l);const u=Rte(e,t,0,n,s,o,a,i),{colGroupSvc:d}=e,f=d?.findMaxDepth(u,0)??0,g=d?d.balanceColumnTree(u,0,f,o):u;return sc(null,g,_Ee),{columnTree:g,treeDepth:f}}function kEe(e){const t=[],n=[],r=[];return e&&sc(null,e,i=>{if(Yi(i)){const o=i;n.push(o)}else{const o=i;r.push(o.getId()),t.push(o)}}),{existingCols:t,existingGroups:n,existingColKeys:r}}function Rte(e,t,n,r,i,o,s,a){if(!t)return[];const{colGroupSvc:l}=e,u=new Array(t.length);for(let d=0;d<u.length;d++){const f=t[d];l&&zEe(f)?u[d]=l.createProvidedColumnGroup(r,f,n,i,o,s,a):u[d]=LEe(e,r,f,i,o,a)}return u}function LEe(e,t,n,r,i,o){const s=BEe(n,r);s&&r?.splice(s.idx,1);let a=s?.column;if(a){const l=Q_(e,n,a.colId);a.setColDef(l,n,o),NEe(e,a,l,o)}else{const l=i.getUniqueKey(n.colId,n.field),u=Q_(e,n,l);a=new mg(u,n,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function Ate(e,t,n,r,i,o,s,a){const{sortSvc:l,pinnedCols:u,colFlex:d}=e;n!==void 0&&t.setVisible(!n,a),l&&(l.updateColSort(t,r,a),i!==void 0&&l.setColSortIndex(t,i)),o!==void 0&&u?.setColPinned(t,o),s!==void 0&&d?.setColFlex(t,s)}function NEe(e,t,n,r){Ate(e,t,n.hide,n.sort,n.sortIndex,n.pinned,n.flex,r);const i=t.getFlex();if(!(i!=null&&i>0))if(n.width!=null)t.setActualWidth(n.width,r);else{const o=t.getActualWidth();t.setActualWidth(o,r)}}function BEe(e,t){if(t)for(let n=0;n<t.length;n++){const r=t[n].getUserProvidedColDef();if(!r)continue;if(e.colId!=null){if(t[n].getId()===e.colId)return{idx:n,column:t[n]};continue}if(e.field!=null){if(r.field===e.field)return{idx:n,column:t[n]};continue}if(r===e)return{idx:n,column:t[n]}}}function Q_(e,t,n,r){const{gos:i,dataTypeSvc:o}=e,s={},a=i.get("defaultColDef");Eo(s,a,!1,!0);const l=HEe(e,s,t,n);l&&VEe(e,l,s);const u=s.cellDataType;Eo(s,t,!1,!0),u!==void 0&&(s.cellDataType=u);const d=i.get("autoGroupColumnDef"),f=Ed(i);return t.rowGroup&&d&&f&&Eo(s,{sort:d.sort,initialSort:d.initialSort},!1,!0),o?.postProcess(s),o?.validateColDef(s,t,a,n),i.validateColDef(s,n,r),s}function HEe(e,t,n,r){const i=e.dataTypeSvc?.updateColDefAndGetColumnType(t,n,r),o=n.type??i??t.type;return t.type=o,o?W1(o):void 0}function VEe(e,t,n){if(!t.length)return;const r=Object.assign({},MEe),i=e.gos.get("columnTypes")||{};for(const o of Object.keys(i)){const s=i[o];o in r?Me(34,{key:o}):(s.type&&Me(35),r[o]=s)}for(const o of t){const s=r[o.trim()];s?Eo(n,s,!1,!0):Me(36,{t:o})}}function zEe(e){return e.children!==void 0}function sc(e,t,n){if(t)for(let r=0;r<t.length;r++){const i=t[r];Yi(i)&&sc(i,i.getChildren(),n),n(i,e)}}var jE="ag-Grid-AutoColumn",Tte="ag-Grid-SelectionColumn",Pte="ag-Grid-RowNumbersColumn";function Ote(e){const t=[],n=r=>{for(let i=0;i<r.length;i++){const o=r[i];Kd(o)?t.push(o):Yi(o)&&n(o.getChildren())}};return n(e),t}function Xu(e){return e.reduce((t,n)=>t+n.getActualWidth(),0)}function U1(e,t,n){const r={};if(!t)return;sc(null,t,o=>{r[o.getInstanceId()]=o}),n&&sc(null,n,o=>{r[o.getInstanceId()]=null});const i=Object.values(r).filter(o=>o!=null);e.context.destroyBeans(i)}function aN(e){return e.getId().startsWith(jE)}function rh(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Tte)??!1}function Ro(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Pte)??!1}function GEe(e){return rh(e)||Ro(e)}function W1(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function jEe(e,t){return th(e,t,(n,r)=>n.colId===r.colId)}function UEe(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function nm(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function rb(e,t){return e===t||e.colId==t||e.colDef===t}var WEe=(e,t)=>(n,r)=>{const i={value1:void 0,value2:void 0};let o=!1;
827return e&&(e[n]!==void 0&&(i.value1=e[n],o=!0),Ve(r)&&e[r]!==void 0&&(i.value2=e[r],o=!0)),!o&&t&&(t[n]!==void 0&&(i.value1=t[n]),Ve(r)&&t[r]!==void 0&&(i.value2=t[r])),i};function $Ee(e,t){const n={...e,sort:void 0,colId:t},r=Dte(e);return r&&(n.sort=r.direction,n.sortType=r.type),n}function Dte(e){const{sort:t,initialSort:n}=e,r=tm(t)||Bd(t),i=tm(n)||Bd(n);return r?na(t):i?na(n):null}function Mte(e,t){return e+"_"+t}function xr(e){return e instanceof Lb}var Lb=class extends Se{constructor(e,t,n,r){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=n,this.pinned=r,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=eb(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return Mte(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(){for(const e of this.displayedChildren)xr(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=gn(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;for(const t of this.displayedChildren??[])e+=t.getActualWidth();return e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;for(const t of this.displayedChildren)t.isResizable()&&(e=!0);return e}getMinWidth(){let e=0;for(const t of this.displayedChildren)e+=t.getMinWidth();return 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){for(const t of this.displayedChildren??[])Kd(t)?e.push(t):xr(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(const t of this.children??[])Kd(t)?e.push(t):xr(t)&&t.addLeafColumns(e)}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.parent;return!this.isPadding()||!e?.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e?.isPadding();)e=e.parent;if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}for(const n of this.children??[]){if(xr(n)&&!n.displayedChildren?.length)continue;switch(n.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(n);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(n);break;default:this.displayedChildren.push(n);break}}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},lN="ROOT_NODE_ID",J_="rowGroupFooter_",D6="detail_",qEe=J_+lN,fe={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"},KEe=65,YEe=67,XEe=86,ZEe=68,QEe=90,JEe=89;function Ite(e){const{keyCode:t}=e;let n;switch(t){case KEe:n=fe.A;break;case YEe:n=fe.C;break;case XEe:n=fe.V;break;case ZEe:n=fe.D;break;case QEe:n=fe.Z;break;case JEe:n=fe.Y;break;default:n=e.code}return n}function eRe(e,t){return new _t(n=>{n(window.setInterval(e,t))})}var _t=class Vy{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(n=>this.onDone(n),n=>this.onReject(n))}static all(t){return t.length?new Vy(n=>{let r=t.length;const i=new Array(r);t.forEach((o,s)=>{o.then(a=>{i[s]=a,r--,r===0&&n(i)})})}):Vy.resolve()}static resolve(t=null){return new Vy(n=>n(t))}then(t){return new Vy(n=>{this.status===1?n(t(this.resolution)):this.waiters.push(r=>n(t(r)))})}onDone(t){this.status=1,this.resolution=t;for(const n of this.waiters)n(t)}onReject(t){}},tRe=class extends Do{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.dragSource=null,this.dragImageCompPromise=null,this.dragImageComp=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.externalDropZoneCount=0,this.lastDropTarget=null}addDragSource(e,t=!1){const n={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:r=>this.onDragStart(e,r),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(n),this.beans.dragSvc.addDragSource(n)}setDragImageCompIcon(e,t=!1){const n=this.dragImageComp;n&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,n.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:n}=this;for(let r=0,i=t.length;r<i;r++)if(t[r].dragSource===e){const o=t[r];n.dragSvc?.removeDragSource(o),t.splice(r,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:n}=this,r=n.dragSvc;for(const i of e)r?.removeDragSource(i);e.length=0,t.length=0,this.externalDropZoneCount=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){const e=this.lastMouseEvent;e&&this.onDragging(e,!0)}onDragStart(e,t){this.lastMouseEvent=t,this.dragSource=e,this.dragItem=e.getDragItem();const n=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-n.left,this.dragInitialSourcePointerOffsetY=t.clientY-n.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:n}=this;if(t?.onDragStopped?.(),n){const r=this.dropTargetEvent(n,e,!1);n.onDragStop?.(r)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:n}=this;
vendor: 4,140 bytes, line 827
827if(e?.onDragCancelled?.(),t&&n){const r=this.dropTargetEvent(t,n,!1);t.onDragCancel?.(r)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const n=this.findCurrentDropTarget(e),{lastDropTarget:r,dragSource:i,dragItem:o}=this;let s=!1;if(n!==r){if(s=!0,r){const a=this.dropTargetEvent(r,e,t);r.onDragLeave?.(a)}if(r!==null&&!n?this.handleExit(i,o):r===null&&n&&this.handleEnter(i,o),n){const a=this.dropTargetEvent(n,e,t);n.onDragEnter?.(a)}this.lastDropTarget=n}else if(n){const a=this.dropTargetEvent(n,e,t);n.onDragging?.(a),a?.changed&&(s=!0)}this.lastMouseEvent=e,s&&this.updateDragImageComp()}clearDragAndDropProperties(){this.removeDragImageComp(this.dragImageComp),this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.lastDropTarget=null,this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.dragSource=null}getAllContainersFromDropTarget(e){const t=e.getContainer(),n=e.getSecondaryContainers?.(),r=n?.length;if(!r)return[[t]];const i=new Array(r+1);i[0]=[t];for(let o=0;o<r;++o)i[o+1]=n[o];return i}isMouseOnDropTarget(e,t){const n=this.getAllContainersFromDropTarget(t);let r=!1;const i=(a,l)=>{for(const u of l){const{width:d,height:f,left:g,right:m,top:y,bottom:b}=u.getBoundingClientRect();if(d===0||f===0)return!1;const w=a.clientX>=g&&a.clientX<m,C=a.clientY>=y&&a.clientY<b;if(!w||!C)return!1}return!0};for(const a of n)if(i(e,a)){r=!0;break}const{eElement:o,type:s}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(o)?!1:r&&t.isInterestedIn(s,o)}findCurrentDropTarget(e){const t=[],n=this.dropTargets;for(let s=0,a=n.length;s<a;++s){const l=n[s];this.isMouseOnDropTarget(e,l)&&t.push(l)}const r=t.length;if(r===0)return null;if(r===1)return t[0];const o=kl(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let s=0,a=o.length;s<a;++s){const l=o[s];for(let u=0,d=t.length;u<d;u++){const f=t[u],g=this.getAllContainersFromDropTarget(f);let m=!1;for(let y=0,b=g.length;y<b&&!m;y++){const w=g[y];for(let C=0,E=w.length;C<E;C++)if(w[C]===l){m=!0;break}}if(m)return f}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),n=this.dropTargets;let r=0;for(let i=0,o=n.length;i<o;++i){const s=n[i];if(s.getContainer()===t){s.external&&--this.externalDropZoneCount;continue}r!==i&&(n[r]=s),++r}n.length=r}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let n=0,r=t.length;n<r;++n){const i=t[n];if(i.external&&i.getContainer()===e)return i}return null}dropTargetEvent(e,t,n){const{dragSource:r,dragItem:i,lastDraggingEvent:o,lastMouseEvent:s,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:l}=this,u=e.getContainer(),d=u.getBoundingClientRect(),{clientX:f,clientY:g}=t,m=f-(s?.clientX||0),y=g-(s?.clientY||0),b=this.createEvent({event:t,x:f-d.left,y:g-d.top,vDirection:y>0?"down":y<0?"up":null,hDirection:m<0?"left":m>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:l,dragSource:r,fromNudge:n,dragItem:i,dropZoneTarget:u,dropTarget:o?.dropTarget??null,changed:!!o?.changed});return this.lastDraggingEvent=b,b}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&Fxe(t,e,this.beans)}removeDragImageComp(e){this.dragImageComp===e&&(this.dragImageComp=null),e&&(e.getGui()?.remove(),this.destroyBean(e))}createAndUpdateDragImageComp(e){const t=this.createDragImageComp(e)??null;this.dragImageCompPromise=t,t?.then(n=>{const r=this.lastMouseEvent;if(t!==this.dragImageCompPromise||!r||!this.isAlive()){this.destroyBean(n);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const i=this.dragImageComp;i!==n&&(this.dragImageComp=n,this.removeDragImageComp(i)),n&&(this.appendDragImageComp(n),this.updateDragImageComp(),this.positionDragImageComp(r))})}appendDragImageComp(e){const t=e.getGui(),n=t.style;n.position="absolute",n.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&
vendor: 6,514 bytes, line 827
827(n.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),n.top="20px",n.left="20px";const r=KL(this.beans);r?r.appendChild(t):this.warnNoBody()}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:n,lastDraggingEvent:r,dragImageLastLabel:i}=this;if(!e)return;this.setDragImageCompIcon(n?.getIconName?.(r)??null);let o=t?.dragItemName;typeof o=="function"&&(o=o(r)),o||(o=""),i!==o&&(this.dragImageLastLabel=o,e.setLabel(o))}};function _te(e){return typeof e=="object"&&!!e.component}function nRe(e){return e?e.prototype&&"getGui"in e.prototype:!1}function Fte(e,t,n,r){const{name:i}=n;let o,s,a,l,u,d;if(t){const f=t,g=f[i+"Selector"],m=g?g(r):null,y=b=>{typeof b=="string"?o=b:b!=null&&b!==!0&&(e.isFrameworkComponent(b)?a=b:s=b)};m?(y(m.component),l=m.params,u=m.popup,d=m.popupPosition):y(f[i])}return{compName:o,jsComp:s,fwComp:a,paramsFromSelector:l,popupFromSelector:u,popupPositionFromSelector:d}}var rRe=class extends Se{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,n,r=!1){return this.getCompDetails(this.gridOptions,e,t,n,r)}getCompDetails(e,t,n,r,i=!1){const{name:o,cellRenderer:s}=t;let{compName:a,jsComp:l,fwComp:u,paramsFromSelector:d,popupFromSelector:f,popupPositionFromSelector:g}=Fte(this.beans.frameworkOverrides,e,t,r),m,y;const b=A=>{const T=this.registry.getUserComponent(o,A);T&&(l=T.componentFromFramework?void 0:T.component,u=T.componentFromFramework?T.component:void 0,m=T.params,y=T.processParams)};if(a!=null&&b(a),l==null&&u==null&&n!=null&&b(n),l&&s&&!nRe(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!u){const{validation:A}=this.beans;i&&(a!==n||!n)?a?A?.isProvidedUserComp(a)||on(50,{compName:a}):n?A||on(260,{...this.gos.getModuleErrorParams(),propName:o,compName:n}):on(216,{name:o}):n&&!A&&on(146,{comp:n});return}const w=this.mergeParams(e,t,r,d,m,y),C=l==null,E=l??u;return{componentFromFramework:C,componentClass:E,params:w,type:t,popupFromSelector:f,popupPositionFromSelector:g,newAgStackInstance:()=>this.newAgStackInstance(E,C,w,t)}}newAgStackInstance(e,t,n,r){const i=!t;let o;i?o=new e:o=this.frameworkCompWrapper.wrap(e,r.mandatoryMethods,r.optionalMethods,r),this.createBean(o);const s=o.init?.(n);return s==null?_t.resolve(o):s.then(()=>o)}mergeParams(e,t,n,r=null,i,o){const s={...n,...i},l=e?.[t.name+"Params"];if(typeof l=="function"){const u=l(n);Eo(s,u)}else typeof l=="object"&&Eo(s,l);return Eo(s,r),o?o(s):s}},iRe={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},oRe={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},sRe={name:"headerComponent",optionalMethods:["refresh"]},aRe={name:"innerHeaderComponent"},lRe={name:"innerHeaderGroupComponent"},uRe={name:"headerGroupComponent"},cRe={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},dRe={name:"loadingCellRenderer",cellRenderer:!0},hRe={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},fRe={name:"tooltipComponent"},uN={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},gRe={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},pRe={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},mRe={name:"loadingCellRenderer",cellRenderer:!0},vRe={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},yRe={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function bRe(e,t){return e.getCompDetailsFromGridOptions(oRe,"agDragAndDropImage",t,!0)}function wRe(e,t,n){return e.getCompDetails(t,sRe,"agColumnHeader",n)}function CRe(e,t,n){return e.getCompDetails(t,aRe,void 0,n)}function SRe(e,t){const n=t.columnGroup.getColGroupDef();return e.getCompDetails(n,uRe,"agColumnGroupHeader",t)}function xRe(e,t,n){return e.getCompDetails(t,lRe,void 0,n)}function ERe(e,t){return e.getCompDetailsFromGridOptions(pRe,void 0,t,!0)}function RRe(e,t){return e.getCompDetailsFromGridOptions(mRe,"agLoadingCellRenderer",t,!0)}function ARe(e,t){return e.getCompDetailsFromGridOptions(vRe,"agGroupRowRenderer",t,!0)}function TRe(e,t){return e.getCompDetailsFromGridOptions(yRe,"agDetailCellRenderer",t,!0)}function M6(e,t,n){return e.getCompDetails(t,cRe,void 0,n)}function I6(e,t,n){return e.getCompDetails(t,dRe,"agSkeletonCellRenderer",n,!0)}function kte(e,t,n){return e.getCompDetails(t,hRe,"agCellEditor",n,!0)}function PRe(e,t,n,r){const i=t.filter;return _te(i)&&(t={filter:i.component,filterParams:t.filterParams}),e.getCompDetails(t,uN,r,n,!0)}function ORe(e,t,n){return e.getCompDetails(t,iRe,"agDateInput",n,!0)}function DRe(e,t){return e.getCompDetails(t.colDef,fRe,"agTooltipComponent",t,!0)}function MRe(e,t,n,r){return e.getCompDetails(t,gRe,r,n)}function Lte(e,t){return Fte(e,t,uN)}function kO(e,t,n){return e.mergeParams(t,uN,n)}var IRe=class extends tRe{createEvent(e){return ft(this.gos,e)}createDragImageComp(e){const{gos:t,beans:n}=this;return bRe(n.userCompFactory,ft(t,{dragSource:e}))?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){Me(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const n={getContainer:e,isInterestedIn:r=>r===1||r===0,getIconName:()=>"notAllowed"};this.addDropTarget(n),t.addDestroyFunc(()=>this.removeDropTarget(n))}};function Nte(e){return!!e.operator}var Bte="ag-resizer-wrapper",dd=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),_Re={tag:"div",cls:Bte,children:[dd("eTopLeft","topLeft"),dd("eTop","top"),dd("eTopRight","topRight"),dd("eRight","right"),dd("eBottomRight","bottomRight"),dd("eBottom","bottom"),dd("eBottomLeft","bottomLeft"),dd("eLeft","left")]},FRe=class extends Do{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0}
vendor: 5,197 bytes, line 827
827,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={popup:!1,...t}}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(e){const{clientHeight:t,clientWidth:n}=this.offsetParent,r=n/2-this.getWidth()/2,i=t/2-this.getHeight()/2;this.offsetElement(r,i,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:n,minWidth:r,width:i,minHeight:o,height:s,x:a,y:l}=this.config;this.offsetParent||this.setOffsetParent();let u=0,d=0;const f=Za(this.element);if(f){const g=this.findBoundaryElement(),m=window.getComputedStyle(g);if(m.minWidth!=null){const y=g.offsetWidth-this.element.offsetWidth;d=Number.parseInt(m.minWidth,10)-y}if(m.minHeight!=null){const y=g.offsetHeight-this.element.offsetHeight;u=Number.parseInt(m.minHeight,10)-y}}if(this.minHeight=o||u,this.minWidth=r||d,i&&this.setWidth(i),s&&this.setHeight(s),(!i||!s)&&this.refreshSize(),t)this.center(e);else if(a||l)this.offsetElement(a,l,e);else if(f&&n){let g=this.boundaryEl,m=!0;if(g||(g=this.findBoundaryElement(),m=!1),g){const y=Number.parseFloat(g.style.top),b=Number.parseFloat(g.style.left);m?this.offsetElement(Number.isNaN(b)?0:b,Number.isNaN(y)?0:y,e):this.setPosition(b,y)}}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 n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(n),this.moveElementDragListener=n):(this.dragSvc?.removeDragSource(n),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}}for(const t of Object.keys(e)){const n=!!e[t],r=this.getResizerElement(t),i={dragStartPixels:0,eElement:r,onDragStart:o=>this.onResizeStart(o,t),onDragging:this.onResize.bind(this),onDragStop:o=>this.onResizeEnd(o,t)};(n||!this.isAlive()&&!n)&&(n?(this.dragSvc?.addDragSource(i),this.resizeListeners.push(i),r.style.pointerEvents="all"):r.style.pointerEvents="none",this.resizable[t]=n)}}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,n=this.element;let r=!1;if(typeof e=="string"&&e.includes("%"))nb(n,e),e=Kee(n),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const i=this.getAvailableHeight();i&&e>i&&(e=i)}this.getHeight()!==e&&(r?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?nb(n,e):(n.style.height=`${e}px`,n.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:Number.parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:n}=this.offsetParent;if(!n)return null;const r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),o=e?this.position.y:r.top,s=e?0:i.top;let a=0;if(t){const u=this.element.parentElement;if(u){const{bottom:d}=u.getBoundingClientRect();a=d-r.bottom}}return n+s-o-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:n}=this.config;let r=!1;if(typeof e=="string"&&e.includes("%"))$l(t,e),e=_1(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:i}=this.offsetParent,o=n?this.position.x:this.element.getBoundingClientRect().left;i&&e+o>i&&(e=i-o)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?$l(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:Number.parseFloat(e)))}offsetElement(e=0,t=0,n){const{forcePopupParentAsOffsetParent:r}=this.config,i=r?this.boundaryEl:this.element;i&&(this.popupSvc?.positionPopup({ePopup:i,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:n}),this.setPosition(Number.parseFloat(i.style.left),Number.parseFloat(i.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const n=this.getAvailableHeight();this.element.style.setProperty("max-height",`${n}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=Rc(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}}
vendor: 26,078 bytes, line 827
827calculateMouseMovement(e){const{e:t,isLeft:n,isTop:r,anywhereWithin:i,topBuffer:o}=e,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!n,!!i,s)?0:s,u=this.shouldSkipY(t,!!r,o,a)?0:a;return{movementX:l,movementY:u}}shouldSkipX(e,t,n,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:i.left;let l=a<=0&&o.left>=e.clientX||o.right<=e.clientX&&o.right<=s.right;return l?!0:(t?l=r<0&&e.clientX>a+o.left||r>0&&e.clientX<a+o.left:n?l=r<0&&e.clientX>s.right||r>0&&e.clientX<a+o.left:l=r<0&&e.clientX>s.right||r>0&&e.clientX<s.right,l)}shouldSkipY(e,t,n=0,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:i.top;let l=a<=0&&o.top>=e.clientY||o.bottom<=e.clientY&&o.bottom<=s.bottom;return l?!0:(t?l=r<0&&e.clientY>a+o.top+n||r>0&&e.clientY<a+o.top:l=r<0&&e.clientY>s.bottom||r>0&&e.clientY<s.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(Uf(_Re)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0,this.element.querySelector(`.${Bte}`)?.remove(),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:n,forcePopupParentAsOffsetParent:r}=this.config;!n&&!r&&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(n=>!n.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,n=0;for(const r of e){const i=!!r.style.flex&&r.style.flex!=="0 0 auto";if(r===this.element)continue;let o=this.minHeight||0,s=this.minWidth||0;if(i){const a=window.getComputedStyle(r);a.minHeight&&(o=Number.parseInt(a.minHeight,10)),a.minWidth&&(s=Number.parseInt(a.minWidth,10))}else o=r.offsetHeight,s=r.offsetWidth;t+=o,n+=s}return{height:t,width:n}}applySizeToSiblings(e){let t=null;const n=this.getSiblings();if(n){for(let r=0;r<n.length;r++){const i=n[r];i!==t&&(e?i.style.height=`${i.offsetHeight}px`:i.style.width=`${i.offsetWidth}px`,i.style.flex="0 0 auto",i===this.element&&(t=n[r+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:n}=this.config,{isTop:r,isRight:i,isBottom:o,isLeft:s}=this.currentResizer,a=i||s,l=o||r,{movementX:u,movementY:d}=this.calculateMouseMovement({e,isLeft:s,isTop:r}),f=this.position.x,g=this.position.y;let m=0,y=0;if(a&&u){const b=s?-1:1,w=this.getWidth(),C=w+u*b;let E=!1;s&&(m=w-C,(f+m<=0||C<=this.minWidth)&&(E=!0,m=0)),E||this.setWidth(C)}if(l&&d){const b=r?-1:1,w=this.getHeight(),C=w+d*b;let E=!1;r?(y=w-C,(g+y<=0||C<=this.minHeight)&&(E=!0,y=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&w<C&&this.getMinSizeOfSiblings().height+C>this.element.parentElement.offsetHeight&&(E=!0),E||this.setHeight(C)}this.updateDragStartPosition(e.clientX,e.clientY),((t||n)&&m||y)&&this.offsetElement(f+m,g+y)}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:n}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:i,movementY:o}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+i,n+o),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()}},kRe=class extends FRe{},Ye=null;function _6(e){return typeof e?.getGui=="function"}var fw=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const r=(e||"").split(" ");if(r.length>1){for(const i of r)this.toggleCss(i,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},LRe=0,$m=class extends Do{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=LRe++,this.cssManager=new fw(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(n=>[n.selector,n])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui()),this.addGlobalCss()}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(Qee):null}applyElementsToComponent(e,t,n,r=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const i=this[t];if(i===Ye)this[t]=r??e;else{const o=n?.[t];if(!this.suppressDataRefValidation&&!o)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${i}`)}}}createChildComponentsFromTags(e,t){const n=[];for(const r of e.childNodes??[])n.push(r);for(const r of n){if(!(r instanceof HTMLElement))continue;const i=this.createComponentFromElement(r,o=>{const s=o.getGui();if(s)for(const a of r.attributes??[])s.setAttribute(a.name,a.value)},t);if(i){if(i.addItems&&r.children.length){this.createChildComponentsFromTags(r,t);const o=Array.prototype.slice.call(r.children);i.addItems(o)}this.swapComponentForNode(i,e,r)}else r.childNodes&&this.createChildComponentsFromTags(r,t)}}createComponentFromElement(e,t,n){const r=e.nodeName,i=this.getDataRefAttribute(e),o=r.indexOf("AG-")===0,s=o?this.componentSelectors.get(r):null;let a=null;if(s){const l=n&&i?n[i]:void 0;a=new s.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(o)throw new Error(`selector: ${r}`);return this.applyElementsToComponent(e,i,n,a),a}swapComponentForNode(e,t,n){const r=e.getGui();t.replaceChild(r,n),t.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const n=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const r of e)r.setAttribute("tabindex",n.toString())}setTemplate(e,t,n){let r;typeof e=="string"||e==null?r=QL(e):r=Uf(e),this.setTemplateFromElement(r,t,n)}setTemplateFromElement(e,t,n,r=!1){if(this.eGui=e,this.suppressDataRefValidation=r,t)for(let i=0;i<t.length;i++){const o=t[i];this.componentSelectors.set(o.selector,o)}this.wireTemplate(e,n)}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 n=t;return e==null?null:(n||(n=this.eGui),eN(e)?{element:e,parent:n}:{element:e.getGui(),parent:n})}prependChild(e,t){const{element:n,parent:r}=this.getContainerAndElement(e,t)||{};!n||!r||r.prepend(n)}appendChild(e,t){const{element:n,parent:r}=this.getContainerAndElement(e,t)||{};!n||!r||r.appendChild(n)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:n}=t;Exe(this.eGui,e,{skipAriaHidden:n})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:n}=t;Cn(this.eGui,e,{skipAriaHidden:n});const r={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(r)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,n){this.eGui.addEventListener(e,t,n),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css===F6?(this.css=[e],this.addGlobalCss()):(this.css||(this.css=[]),this.css.push(e))}addGlobalCss(){if(Array.isArray(this.css)){const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}this.css=F6}},F6=Symbol(),qn=class extends $m{},LO,NO,BO,HO,eF,tF,VO;function ih(){return LO===void 0&&(LO=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),LO}function Cm(){return NO===void 0&&(NO=/(firefox)/i.test(navigator.userAgent)),NO}function Hte(){return BO===void 0&&(BO=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),BO}function Pf(){return HO===void 0&&(HO=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),HO}function nF(e){if(!e)return null;const t=e.tabIndex,n=e.getAttribute("tabIndex");return t===-1&&(n===null||n===""&&!Cm())?null:t.toString()}function NRe(){if(VO!==void 0)return VO;if(!document.body)return-1;let e=1e6;const t=Cm()?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){const r=e*2;if(n.style.height=r+"px",r>t||n.clientHeight!==r)break;e=r}return n.remove(),VO=e,e}function cN(){return tF==null&&Vte(),tF}function Vte(){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 n=t.offsetWidth-t.clientWidth;n===0&&t.clientWidth===0&&(n=null),t.parentNode&&t.remove(),n!=null&&(tF=n,eF=n===0)}function zte(){return eF==null&&Vte(),eF}var rF=!1,$1=0;function BRe(e){$1>0||(e.addEventListener("keydown",q1),e.addEventListener("mousedown",q1))}function HRe(e){$1>0||(e.removeEventListener("keydown",q1),e.removeEventListener("mousedown",q1))}function q1(e){const t=rF,n=e.type==="keydown";n&&(e.ctrlKey||e.metaKey||e.altKey)||t!==n&&(rF=n)}function VRe(e){const t=Kr(e);return BRe(t),$1++,()=>{$1--,HRe(t)}}function Gte(){return rF}function Of(e,t,n=!1){const r=xxe;let i=qee;t&&(i+=", "+t),n&&(i+=', [tabindex="-1"]');const o=Array.prototype.slice.apply(e.querySelectorAll(r)).filter(l=>Za(l)),s=Array.prototype.slice.apply(e.querySelectorAll(i));return s.length?((l,u)=>l.filter(d=>u.indexOf(d)===-1))(o,s):o}function qf(e,t=!1,n=!1,r=!1){const i=Of(e,r?".ag-tab-guard":null,n),o=t?gn(i):i[0];return o?(o.focus({preventScroll:!0}),!0):!1}function vg(e,t,n,r){const i=Of(t,n?':not([tabindex="-1"])':null),o=$n(e);let s;n?s=i.findIndex(l=>l.contains(o)):s=i.indexOf(o);const a=s+(r?-1:1);return a<0||a>=i.length?null:i[a]}function jte(e,t=5){let n=0;for(;e&&nF(e)===null&&++n<=t;)e=e.parentElement;return nF(e)===null?null:e}var zRe="ag-focus-managed",Ute=class extends Do{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},n={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=n,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:r=>{if(r.defaultPrevented)return;const i=vg(this.beans,this.eFocusable,!1,r.shiftKey);i&&(i.focus(),r.preventDefault())},...n}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:n}}=this;e.classList.add(zRe),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),n&&this.addManagedElementListeners(e,{focusout:n})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(t))return;const{callbacks:n}=this;if(n.shouldStopEventPropagation(t)){this.stopPropagationCallbacks.stopPropagation(t);return}t.key===fe.TAB?n.onTabKeyDown(t):n.handleKeyDown&&n.handleKeyDown(t)}})}},Wte="__ag_Grid_Stop_Propagation";function Kf(e){e[Wte]=!0}function ac(e){return e[Wte]===!0}var dN={isStopPropagation:ac,stopPropagation:Kf},gw=class extends Ute{constructor(e,t){super(e,dN,t)}},GRe={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",bigintFilter:"BigInt Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",yesterday:"Yesterday",today:"Today",tomorrow:"Tomorrow",last7Days:"Last 7 Days",lastWeek:"Last Week",thisWeek:"This Week",nextWeek:"Next Week",last30Days:"Last 30 Days",lastMonth:"Last Month",thisMonth:"This Month",nextMonth:"Next Month",last90Days:"Last 90 Days",lastQuarter:"Last Quarter",thisQuarter:"This Quarter",nextQuarter:"Next Quarter",lastYear:"Last Year",thisYear:"This Year",yearToDate:"Year To Date",nextYear:"Next Year",last6Months:"Last 6 Months",last12Months:"Last 12 Months",last24Months:"Last 24 Months",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`,minDateValidation:e=>`Date must be after ${e[0]}`,maxDateValidation:e=>`Date must be before ${e[0]}`,strictMinValueValidation:e=>`Must be greater than ${e[0]}`,strictMaxValueValidation:e=>`Must be less than ${e[0]}`};function Ua(e,t,n){return Lxe(e,GRe,t,n)}function hN(e,t){const{debounceMs:n}=e;return UE(e)?(n!=null&&Me(71),0):n??t}function UE(e){return(e.buttons?.indexOf("apply")??-1)>=0}function $te(e,t,n,r){let i=Ua(e,n);if(typeof t=="function"){const o=Ua(e,r);i=t({filterOptionKey:r,filterOption:o,placeholder:i})}else typeof t=="string"&&(i=t);return i}var jRe=class extends qn{constructor(e,t){super(),this.filterNameKey=e,this.cssIdentifier=t,this.applyActive=!1,this.debouncePending=!1,this.defaultDebounceMs=0}postConstruct(){const e={tag:"div",cls:`ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,children:[this.createBodyTemplate()]};this.setTemplate(e,this.getAgComponents()),this.createManagedBean(new gw(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new kRe(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}handleKeyDown(e){}init(e){const t=e;this.setParams(t),this.setModelIntoUi(t.state.model,!0).then(()=>this.updateUiVisibility())}areStatesEqual(e,t){return e===t}refresh(e){const t=e,n=this.params;this.params=t;const{source:r,state:i,additionalEventAttributes:o}=t;r==="colDef"&&this.updateParams(t,n);const s=this.state;this.state=i;const a=o?.fromAction;return(a&&a!=="apply"||i.model!==s.model||!this.areStatesEqual(i.state,s.state))&&this.setModelIntoUi(i.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=UE(e),this.setupApplyDebounced()}doesFilterPass(e){Me(283);const{getHandler:t,model:n,column:r}=this.params;return t().doesFilterPass({...e,model:n,handlerParams:this.beans.colFilter.getHandlerParams(r)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return Me(284),this.params.model!=null}setupApplyDebounced(){const e=hN(this.params,this.defaultDebounceMs),t=ui(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return Me(285),this.params.model}setModel(e){Me(286);const{beans:t,params:n}=this;return t.colFilter.setModelForColumnLegacy(n.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:{valid:n=!0,model:r}}=this;if(!n)return!1;const i=!this.areModelsEqual(t.model,r);return i&&t.onAction("apply",e),i}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const n=this.getModelFromUi(),r={model:n,state:this.getState(),valid:this.canApply(n)};this.state=r;const{params:i,gos:o,eventSvc:s,applyActive:a}=this;i.onStateChange(r),i.onUiChange(this.getUiChangeEventParams()),o.get("enableFilterHandlers")||s.dispatchEvent({type:"filterModified",column:i.column,filterInstance:this}),r.valid&&(e??(e=a?void 0:"debounce"),e==="immediately"?this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1}):e==="debounce"&&this.applyDebounced())}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:n}=this;if(!t)return;const r=e==="floatingFilter"||e==="columnFilter";r?(t.restoreLastSize(),t.setResizable(n.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(r)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return Ua(this,e,t)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||e==null&&t==null?!0:e==null||t==null?!1:this.areNonNullModelsEqual(e,t)}},fN=class extends $m{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e?.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},WE=class extends fN{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.eEditor.destroy(),this.errorMessages=null,super.destroy()}};function uu(e){const t=e.rowModel;return t.getType()==="clientSide"?t:void 0}function $E(e){const t=e.rowModel;return t.getType()==="infinite"?t:void 0}function URe(e){const t=e.rowModel;return t.getType()==="serverSide"?t:void 0}var k6="row-group-",gN="t-",pN="b-",WRe=0,Yd=class{constructor(e){this.id=void 0,this.destroyed=!1,this._groupData=void 0,this.master=!1,this.detail=void 0,this.rowIndex=null,this.field=null,this.rowGroupColumn=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenAfterGroup=null,this.childrenAfterFilter=null,this.childrenAfterAggFilter=null,this.childrenAfterSort=null,this.allChildrenCount=null,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this._expanded=void 0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=WRe++,this.alreadyRendered=!1,this.formulaRowIndex=null,this.hovered=!1,this.__selected=!1,this.beans=e}get groupData(){const e=this._groupData;return e!==void 0?e:this.footer?this.sibling?.groupData:this.beans.groupStage?.loadGroupData(this)??null}set groupData(e){this._groupData=e}get primaryRow(){let e=this.footer&&this.sibling||this;if(e.rowPinned){const t=e.pinnedSibling;t&&(e=t,e.footer&&(e=e.sibling??e))}return e}get allLeafChildren(){const e=this._leafs;return e===void 0?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}get expanded(){const e=this.beans.expansionSvc;return e?e.isExpanded(this):this.level===-1?!0:!!this._expanded}set expanded(e){this._expanded=e}setData(e){this.setDataCommon(e,"set")}updateData(e){this.setDataCommon(e,"update")}_updateDataNoSibling(e){this.setDataCommon(e,"updateNoSibling")}setDataCommon(e,t){const{valueCache:n,eventSvc:r}=this.beans,i=this.data,o=t!=="set";this.data=e,n?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const s=this.createDataChangedEvent(e,i,o);if(this.__localEventService?.dispatchEvent(s),t!=="updateNoSibling"){const l=this.sibling;if(l){l.data=e;const u=l.createDataChangedEvent(e,i,o);l.__localEventService?.dispatchEvent(u)}}r.dispatchEvent({type:"rowNodeDataChanged",node:this});const a=this.pinnedSibling;a&&(a.data=e,a.__localEventService?.dispatchEvent(a.createDataChangedEvent(e,i,o)),r.dispatchEvent({type:"rowNodeDataChanged",node:a}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,n){return{type:"dataChanged",node:this,oldData:t,newData:e,update:n}}getRowIndexString(){return this.rowIndex==null?(on(13),null):this.rowPinned==="top"?gN+this.rowIndex:this.rowPinned==="bottom"?pN+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:n}=this.beans,r=n?.createDaemonNode?.(this),i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),n&&(n.updateRowSelectable(this),n.syncInRowNode(this,r));const o=this.createDataChangedEvent(e,i,!1);this.__localEventService?.dispatchEvent(o)}setId(e){const t=wm(this.beans.gos);if(t)if(this.data){const n=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:n.length>0?n:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(k6)&&on(14,{groupPrefix:k6})}else this.id=void 0;else this.id=e}setRowTop(e){if(this.oldRowTop=this.rowTop,this.rowTop===e)return;this.rowTop=e,this.dispatchRowEvent("topChanged");const t=e!==null;this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}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,n){this.beans.expansionSvc?.setExpanded(this,e,t,n)}setDataValue(e,t,n){const{colModel:r,valueSvc:i,gos:o,editSvc:s}=this.beans;if(e==null)return!1;let a=r.getColOrColDefCol(e);if(!a)return!1;const l=a.colDef.pivotValueColumn;!this.group&&!this.rowPinned&&l&&(a=l);const u=i.getValueForDisplay({column:a,node:this,from:"data"}).value;if(o.get("readOnlyEdit")){const{beans:{eventSvc:f},data:g,rowIndex:m,rowPinned:y}=this;return f.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:m,rowPinned:y,column:a,colDef:a.colDef,data:g,node:this,oldValue:u,newValue:t,value:t,source:n}),!1}if(n!=="data"&&s&&!s.committing){const f=s.setDataValue({rowNode:this,column:a},t,n);if(f!=null)return f}const d=i.setValue(this,a,t,n);return this.dispatchCellChangedEvent(a,t,u),d&&this.pinnedSibling?.dispatchCellChangedEvent(a,t,u),d}getDataValue(e,t){const n=this.beans,r=n.colModel.getColOrColDefCol(e);if(!r)return;let i;if(t==="data"||!t){if(i=n.valueSvc.getValue(r,this,"data",!1),i==null)return i}else{const o=t==="data-raw",s=o||t==="value"?"data":t;if(i=n.valueSvc.getValue(r,this,s,o),o||i==null)return i;if(typeof i=="object"&&r.aggFunc){if(typeof i.toNumber=="function")return i.toNumber();if("value"in i)return i.value}if(t!=="value")return i}if(r.colDef.allowFormula){const o=n.formula;o?.isFormula(i)&&r.isAllowFormula()&&(i=o.resolveValue(r,this))}return i}updateHasChildren(){let e=this.group&&!this.footer||!!this.childrenAfterGroup?.length;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,n){const r={type:"cellChanged",node:this,column:e,newValue:t,oldValue:n};this.__localEventService?.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){if(this.footer)return this.sibling.isSelected();const e=this.rowPinned&&this.pinnedSibling;return e?e.isSelected():this.__selected}depthFirstSearch(e){const t=this.childrenAfterGroup;if(t)for(let n=0,r=t.length;n<r;++n)t[n].depthFirstSearch(e);e(this)}getAggregatedChildren(e,t){const n=this.beans;return n.aggChildrenSvc?.getAggregatedChildren(this,n.colModel.getCol(e),t)??[]}
vendor: 4,615 bytes, line 827
827dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,n="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:n})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){(this.__localEventService??(this.__localEventService=new Gf)).addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);const n=this.__localEventService??(this.__localEventService=new Gf);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,n);const r=this.frameworkEventListenerService?.wrap(e,t)??t;n.addEventListener(e,r)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,n)}removeLocalListener(e,t){const n=this.__localEventService;n&&(n.removeEventListener(e,t),n.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?.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){const e=this.childStore;return e?e.getFirstNode():this.childrenAfterSort?.[0]??null}_destroy(e){if(this.destroyed)return!1;this.destroyed=!0;const t=this.pinnedSibling;if(t?.rowPinned&&this.beans.pinnedRowModel?.pinRow(t,null),e===!0?this.clearRowTopAndRowIndex():e===!1?(this.setRowTop(null),this.setRowIndex(null)):(this.oldRowTop=null,this.rowTop=null,this.rowIndex=null,this.displayed=!1),!this.footer){const n=this.detailNode;n&&n._destroy(e);const r=this.sibling;r&&r._destroy(e)}return!0}};function $Re(e,t,n){return ft(t,{type:n,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var qRe=new Set(["__autoHeights","__checkAutoHeightsDebounced","__localEventService","__objectId","_groupData","_leafs","childStore","destroyed","groupValue","oldRowTop","pinnedSibling","rowPinned","sticky","treeNodeFlags","treeParent"]),KRe=(e,t)=>{const n=new Yd(t);for(const r of Object.keys(e))qRe.has(r)||(n[r]=e[r]);return n.oldRowTop=null,n},iF=(e,t,n)=>{if(!n)return;let r=n.rowIndex;if(r==null)return;r+=t;const i=e.getRowCount();for(;r>=0&&r<i;){const o=e.getRow(r);if(!o||!o.footer&&!o.detail)return o;r+=t}},L6=class{constructor(e,t){this.beans=e,this.floating=t,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(e){const{all:t,visible:n,order:r}=this;t.has(e)||(t.add(e),n.add(e),r.push(e),this.sort())}delete(e){this.all.delete(e),this.visible.delete(e),this.queued.delete(e.id),Zl(this.order,e)}has(e){return this.visible.has(e)}forEach(e){this.order.forEach(e)}getByIndex(e){return this.order[e]}getById(e){for(const t of this.visible)if(t.id==e)return t}clear(){const{all:e,visible:t,order:n,queued:r}=this;e.clear(),r.clear(),t.clear(),n.length=0}sort(){const{sortSvc:e,rowNodeSorter:t,gos:n}=this.beans,r=e?.getSortOptions()??[],i=this.order,o=ZRe(i);if(i.sort((a,l)=>t?.compareRowNodes(r,a,l)||(a.pinnedSibling?.rowIndex??0)-(l.pinnedSibling?.rowIndex??0)),!o)return;const s=bte(n);s==="bottom"||s==="pinnedBottom"?this.order.push(o):this.order.unshift(o)}hide(e){const{all:t,visible:n}=this,r=n.size;return t.forEach(i=>e(i)?n.delete(i):n.add(i)),this.order=Array.from(n),this.sort(),r!=n.size}queue(e){this.queued.add(e)}unqueue(e){this.queued.delete(e)}forEachQueued(e){this.queued.forEach(e)}};function qte(e){if(e.level===-1)return!0;const t=e.parent;return t?.childrenAfterSort?.some(n=>n==e)?qte(t):!1}function zO(e,t){const{gos:n,rowModel:r,filterManager:i}=e;return Wm(n)?!r.getRowNode(t.id):i?.isAnyFilterPresent()?!qte(t):n.get("pivotMode")?!t.group:!1}function YRe(e){return!!e.footer&&e.level===-1}function XRe(e){return!!e.pinnedSibling&&YRe(e.pinnedSibling)}function ZRe(e){const t=e.findIndex(XRe);if(t>-1)return e.splice(t,1)?.[0]}var N6=class extends Se{constructor(){super(...arguments),this.csrm=null,this.ssrm=!1}postConstruct(){const{gos:e,beans:t}=this;this.top=new L6(t,"top"),this.bottom=new L6(t,"bottom"),this.csrm=uu(t)??null,this.ssrm=t.rowModel.getType()==="serverSide";const n=i=>
vendor: 4,231 bytes, line 827
827zO(t,i.pinnedSibling),r=()=>{const i=e.get("isRowPinned");i&&e.get("enableRowPinning")&&t.rowModel.forEachNode(o=>this.pinRow(o,i(o)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:({keepRenderedRows:i})=>{this.tryToEmptyQueues(),this.pinGrandTotalRow();let o=!1;this.forContainers(a=>{o||(o=a.hide(n))});const s=this.refreshRowPositions();(!i||s||o)&&this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(JRe),this.refreshRowPositions()},rowNodeDataChanged:({node:i})=>{(e.get("isRowPinnable")?.(i)??!0)||this.pinRow(i,null)},firstDataRendered:r}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(i=>i.hide(n)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:i})=>{this._grandTotalPinned=cEe(i)}),this.addManagedPropertyListener("isRowPinned",r)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(t=>{const n=[];t.forEach(r=>n.push(r)),n.forEach(r=>this.pinRow(r,null)),t.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,n){if(t!=null&&e.destroyed)return;if(e.footer){const s=e.level;if(s>-1)return;const a=t==null&&e.rowPinned!=null;if(s===-1&&!a){this._grandTotalPinned=t;const l=this.csrm;l?l.reMapRows():this.ssrm&&this.pinGrandTotalRow();return}}const r=e.rowPinned??e.pinnedSibling?.rowPinned;if(r!=null&&t!=null&&t!=r){const s=e.rowPinned?e:e.pinnedSibling,a=e.rowPinned?e.pinnedSibling:e;this.pinRow(s,null,n),this.pinRow(a,t,n);return}const o=n&&eAe(this.beans,e,n);if(o){o.forEach(s=>this.pinRow(s,t));return}if(t==null){const s=e.rowPinned?e:e.pinnedSibling,a=this.findPinnedRowNode(s);if(!a)return;a.delete(s);const l=s.pinnedSibling;GO(s),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(l)}else{const s=B6(this.beans,e,t),a=this.getContainer(t);a.add(s),zO(this.beans,e)&&a.hide(l=>zO(this.beans,l.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return this.getContainer(e).size()===0}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const n=r=>{if(r.rowHeightEstimated){const i=$d(this.beans,r);r.setRowTop(t),r.setRowHeight(i.height),t+=i.height,e=!0}};return this.bottom.forEach(n),t=0,this.top.forEach(n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){return H6(this.top)}getPinnedBottomTotalHeight(){return H6(this.bottom)}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){const e=t=>{const n=[];return this.forEachPinnedRow(t,r=>{const i=r.pinnedSibling?.id;i!=null&&n.push(i)}),n};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,n)=>{for(const r of e[n]){const i=this.beans.rowModel.getRowNode(r);i?this.pinRow(i,n):t.queue(r)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{const n=new Set;e.forEachQueued(r=>{const i=this.beans.rowModel.getRowNode(r);i&&n.add(i)});for(const r of n)e.unqueue(r.id),this.pinRow(r,t)})}pinGrandTotalRow(){const{beans:e,_grandTotalPinned:t}=this,n=this.csrm||this.ssrm?e.rowModel.rootNode?.sibling:void 0;if(!n)return;const r=n.pinnedSibling,i=r&&this.findPinnedRowNode(r);if(t){if(i&&i.floating!==t&&(GO(r),i.delete(r)),i?.floating!==t){const o=B6(e,n,t);this.getContainer(t).add(o)}}else{if(!i)return;GO(r),i.delete(r)}}onGridStylesChanges(e){e.rowHeightChanged&&this.forContainers(t=>t.forEach(n=>n.setRowHeight(n.rowHeight,!0)))}getContainer(e){return e==="top"?this.top:this.bottom}findPinnedRowNode(e){if(this.top.has(e))return this.top;if(this.bottom.has(e))return this.bottom}refreshRowPositions(e){const t=r=>QRe(this.beans,r);if(e)return t(this.getContainer(e));let n=!1;return this.forContainers(r=>{const i=t(r);n||(n=i)}),n}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}
vendor: 5,602 bytes, line 827
827dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function QRe(e,t){let n=0,r=!1;return t.forEach((i,o)=>{if(r||(r=i.rowTop!==n),i.setRowTop(n),i.rowHeightEstimated||i.rowHeight==null){const s=$d(e,i).height;r||(r=i.rowHeight!==s),i.setRowHeight(s)}i.setRowIndex(o),n+=i.rowHeight}),r}function B6(e,t,n){if(t.pinnedSibling)return t.pinnedSibling;const r=KRe(t,e);r.setRowTop(null),r.setRowIndex(null),r.rowPinned=n;const i=n==="top"?gN:pN;return r.id=`${i}${n}-${t.id}`,r.pinnedSibling=t,t.pinnedSibling=r,r}function GO(e){if(!e.pinnedSibling)return;e.rowPinned=null,e._destroy(!1);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function JRe(e){const t=new Set;e.forEach(n=>{n.group&&t.add(n)}),t.forEach(n=>e.delete(n))}function eAe(e,t,n){const{rowSpanSvc:r}=e,i=(n&&r?.isCellSpanning(n,t))??!1;if(n&&i)return r?.getCellSpan(n,t)?.spannedNodes}function H6(e){const t=e.size();if(t===0)return 0;const n=e.getByIndex(t-1);return n===void 0?0:n.rowTop+n.rowHeight}var V6=class extends Se{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",t=>this.setPinnedRowData(t.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",t=>this.setPinnedRowData(t.currentValue,"bottom")),this.addManagedEventListeners({stylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return this.getCache(e).order.length===0}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const t=n=>{n.setRowHeight(n.rowHeight,!0)};fy(this.pinnedBottomRows,t),fy(this.pinnedTopRows,t)}}ensureRowHeightsValid(){let e=!1,t=0;const n=r=>{r.rowHeightEstimated&&(r.setRowHeight($d(this.beans,r).height),e=!0),r.rowTop!==t&&(r.setRowTop(t),e=!0),t+=r.rowHeight};return fy(this.pinnedBottomRows,n),t=0,fy(this.pinnedTopRows,n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const n=this.getCache(t);if(e===void 0){n.order.length=0,n.cache={};return}const r=wm(this.gos),i=t==="top"?gN:pN,o=new Set(n.order),s=[],a=new Set;let l=0,u=-1;for(const d of e){const f=r?.({data:d,level:0,rowPinned:t})??i+this.nextId++;if(a.has(f)){Me(96,{id:f,data:d});continue}u++,a.add(f),s.push(f);const g=ib(n,f);if(g!==void 0)g.data!==d&&g.updateData(d),l+=this.setRowTopAndRowIndex(g,l,u),o.delete(f);else{const m=new Yd(this.beans);m.id=f,m.data=d,m.rowPinned=t,l+=this.setRowTopAndRowIndex(m,l,u),n.cache[f]=m,n.order.push(f)}}for(const d of o)ib(n,d)?.clearRowTopAndRowIndex(),delete n.cache[d];n.order=s}setRowTopAndRowIndex(e,t,n){return e.setRowTop(t),e.setRowHeight($d(this.beans,e).height),e.setRowIndex(n),e.rowHeight}getPinnedTopTotalHeight(){return z6(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return z6(this.pinnedBottomRows)}getPinnedTopRowCount(){return sF(this.pinnedTopRows)}getPinnedBottomRowCount(){return sF(this.pinnedBottomRows)}getPinnedTopRow(e){return oF(this.pinnedTopRows,e)}getPinnedBottomRow(e){return oF(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return ib(this.getCache(t),e)}forEachPinnedRow(e,t){return fy(this.getCache(e),t)}getCache(e){return e==="top"?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function z6(e){const t=sF(e);if(t===0)return 0;const n=oF(e,t-1);return n===void 0?0:n.rowTop+n.rowHeight}function ib(e,t){return e.cache[t]}function oF(e,t){return ib(e,e.order[t])}function fy(e,t){e.order.forEach((n,r)=>{const i=ib(e,n);i&&t(i,r)})}function sF(e){return e.order.length}var tAe=class extends Se{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const{gos:e}=this,t=()=>{const n=e.get("enableRowPinning"),r=bte(e),o=!!n||(r==="pinnedBottom"||r==="pinnedTop"),s=o?this.inner instanceof V6:this.inner instanceof N6;this.inner&&s&&this.destroyBean(this.inner),(s||!this.inner)&&(this.inner=this.createManagedBean(o?new N6:new V6))};this.addManagedPropertyListeners(["enableRowPinning","grandTotalRow"],t),t()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,n){return this.inner.pinRow(e,t,n)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}},nAe=500,rAe=550,Z0,iAe=e=>{if(!Z0)Z0=new WeakSet;else if(Z0.has(e))return!1;
vendor: 11,309 bytes, line 827
827return Z0.add(e),!0},ef=class{constructor(e,t=!1){this.eElement=e,this.preventClick=t,this.startListener=null,this.handlers=[],this.eventSvc=void 0,this.touchStart=null,this.lastTapTime=null,this.longPressTimer=0,this.moved=!1}addEventListener(e,t){let n=this.eventSvc;if(!n){if(n===null)return;this.eventSvc=n=new Gf;const r=this.onTouchStart.bind(this);this.startListener=r,this.eElement.addEventListener("touchstart",r,{passive:!0})}n.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!iAe(e))return;const t=e.touches[0];this.touchStart=t;const n=this.handlers;if(!n.length){const r=this.eElement,i=r.ownerDocument,o=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this),a=this.onTouchCancel.bind(this),l={passive:!0},u={passive:!1};JS(n,[r,"touchmove",o,l],[i,"touchcancel",a,l],[i,"touchend",s,u],[i,"contextmenu",Md,u])}this.clearLongPress(),this.longPressTimer=window.setTimeout(()=>{this.longPressTimer=0,this.touchStart===t&&!this.moved&&(this.moved=!0,this.eventSvc?.dispatchEvent({type:"longTap",touchStart:t,touchEvent:e}))},rAe)}onTouchMove(e){const{moved:t,touchStart:n}=this;if(!t&&n){const r=Xp(n,e.touches);r&&!Jee(r,n,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;!t||!Xp(t,e.changedTouches)||(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&Md(e),this.cancel())}onTouchCancel(e){const t=this.touchStart;!t||!Xp(t,e.changedTouches)||(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now();const n=this.lastTapTime;n&&t-n>nAe&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null),this.lastTapTime=t}cancel(){this.clearLongPress(),tN(this.handlers),this.touchStart=null}clearLongPress(){this.longPressTimer!==0&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=0),this.moved=!1}destroy(){const e=this.startListener;e&&(this.startListener=null,this.eElement.removeEventListener("touchstart",e)),this.cancel(),this.eElement=null,this.eventSvc=null}},oAe=1,sAe=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=oAe++,e?.beanClasses&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){this.id=e.id,this.beans.context=this,this.destroyCallback=e.destroyCallback;for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];for(const t of e.beanClasses){const n=new t;n.beanName?this.beans[n.beanName]=n:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(n)}for(const t of e.derivedBeans??[]){const{beanName:n,bean:r}=t(this);this.beans[n]=r,this.createdBeans.push(r)}e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){return this.initBeans([e],t),e}initBeans(e,t){const n=this.beans;for(const r of e)r.preWireBeans?.(n),r.wireBeans?.(n);for(const r of e)r.preConstruct?.();t&&e.forEach(t);for(const r of e)r.postConstruct?.()}getBeans(){return this.beans}getBean(e){return this.beans[e]}getId(){return this.id}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=[],this.destroyCallback?.()}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}};function aAe(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var lAe=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],G6=Object.fromEntries(lAe.map((e,t)=>[e,t]));function uAe(e,t){const n=(e.beanName?G6[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,r=(t.beanName?G6[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return n-r}function cAe(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}function dAe(e){const{rowIndex:t,rowPinned:n,column:r}=e;return`${t}.${n??"null"}.${r.getId()}`}function mN(e,t){const n=e.column===t.column,r=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return n&&r&&i}function hAe(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(Ve(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function fAe(e,t){return!e&&!t?!0:!e||!t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}function j6(e){let t=0,n;const{pinnedRowModel:r,rowModel:i,pageBounds:o}=e;return r?.getPinnedTopRowCount()?n="top":i.getRowCount()?(n=null,t=o.getFirstRow()):r?.getPinnedBottomRowCount()&&(n="bottom"),n===void 0?null:{rowIndex:t,rowPinned:n}}function U6(e){let t,n=null;const{pinnedRowModel:r,pageBounds:i}=e,o=r?.getPinnedBottomRowCount(),s=r?.getPinnedTopRowCount();return o?(n="bottom",t=o-1):e.rowModel.getRowCount()?t=i.getLastRow():s&&(n="top",t=s-1),t===void 0?null:{rowIndex:t,rowPinned:n}}function Jl(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 Gp(e,t){const n=e.spannedRowRenderer?.getCellByPosition(t);if(n)return n;const r=e.rowRenderer.getRowByPosition(t);return r?r.getCellCtrl(t.column):null}function gAe(e,t,n){const{rowModel:r,pinnedRowModel:i}=e;let o;return o??(o=r?.getRowNode(t)),n?o??(o=i?.getPinnedRowById(t,n)):(o??(o=i?.getPinnedRowById(t,"top")),o??(o=i?.getPinnedRowById(t,"bottom"))),o}function K1(e,t,n=!1){const{rowIndex:r,rowPinned:i}=t,{pageBounds:o,pinnedRowModel:s,rowModel:a}=e;if(r===0)return i==="top"?null:i==="bottom"&&a.isRowsToRender()?{rowIndex:o.getLastRow(),rowPinned:null}:s?.isRowsToRender("top")?{rowIndex:s.getPinnedTopRowCount()-1,rowPinned:"top"}:null;if(n){const l=i?void 0:a.getRow(r);return Kte(e,l,!0)??{rowIndex:r-1,rowPinned:i}}return{rowIndex:r-1,rowPinned:i}}function W6(e,t,n=!1){const{rowIndex:r,rowPinned:i}=t,{pageBounds:o,pinnedRowModel:s,rowModel:a}=e;if(pAe(e,t))return i==="bottom"?null:i==="top"&&a.isRowsToRender()?{rowIndex:o.getFirstRow(),rowPinned:null}:s?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;if(n){const l=i?void 0:a.getRow(r);return Kte(e,l)??{rowIndex:r+1,rowPinned:i}}return{rowIndex:r+1,rowPinned:i}}function Kte(e,t,n=!1){const{gos:r,rowRenderer:i}=e;if(!t?.sticky||!yte(r))return;const o=i.getStickyTopRowCtrls(),s=i.getStickyBottomRowCtrls(),a=!s.some(f=>f.rowNode.rowIndex===t.rowIndex),l=a?o:s,u=(n?-1:1)*(a?-1:1);let d;for(let f=0;f<l.length;f++)if(l[f].rowNode.rowIndex===t.rowIndex){d=l[f+u];break}return d?{rowIndex:d.rowNode.rowIndex,rowPinned:null}:void 0}function pAe(e,t){const{rowPinned:n,rowIndex:r}=t,{pinnedRowModel:i,pageBounds:o}=e;return n==="top"?(i?.getPinnedTopRowCount()??0)-1<=r:n==="bottom"?(i?.getPinnedBottomRowCount()??0)-1<=r:o.getLastRow()<=r}function mAe(e,t,n){t.addManagedElementListeners(n,{keydown:r=>{if(!r.defaultPrevented&&!CAe(r)&&r.key===fe.TAB){const i=r.shiftKey;vg(e,n,!1,i)||Sm(e,i)&&r.preventDefault()}}})}function vAe(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function Ga(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function Nb(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function Sm(e,t,n=!1){const r=e.ctrlsSvc.get("gridCtrl"),i=r.focusNextInnerContainer(t);return i===!0?!0:i===!1?i:((n||!t&&!r.isDetailGrid()&&r.isFocusInsideGridBody())&&r.forceFocusOutOfContainer(t),!1)}function yAe(e,t){const n=e.focusSvc,r=n.getFocusedCell();if(r&&t&&mN(r,t)){const{rowIndex:i,rowPinned:o,column:s}=t;$L(e)&&n.setFocusedCell({rowIndex:i,column:s,rowPinned:o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!Gte()})}}function bAe(e,t){const n=e.getFocusableContainerName();return n==="gridBody"?t():Yte(e,()=>Of(e.getGui(),".ag-tab-guard").length>0)?n:null}function Yte(e,t){e.setAllowFocus?.(!0);try{return t()}finally{e.setAllowFocus?.(!1)}}var wAe="__ag_Grid_Skip_Focusable_Container";function CAe(e){return e[wAe]===!0}function Js(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function vN(e){const t=[],n=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const r of n){if(!r)continue;const i=r.getGroupRowCount()||0;for(let o=0;o<i;o++){const s=r.getGroupRowCtrlAtIndex(o),a=t[o];if(s){const l=SAe(e,s);(a==null||l>a)&&(t[o]=l)}}}return t}function SAe(e,t){let r=e.colModel.pivotMode?EAe(e):Zte(e);const i=t.getHeaderCellCtrls();for(const o of i){const{column:s}=o,a=s.getAutoHeaderHeight();a!=null&&a>r&&s.isAutoHeaderHeight()&&(r=a)}return r}function yN(e){let n=e.colModel.pivotMode?xAe(e):pw(e);return e.colModel.forAllCols(r=>{const i=r.getAutoHeaderHeight();i!=null&&i>n&&r.isAutoHeaderHeight()&&(n=i)}),n}function pw(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function Xte(e){return e.gos.get("floatingFiltersHeight")??pw(e)}function Zte(e){return e.gos.get("groupHeaderHeight")??pw(e)}function xAe(e){return e.gos.get("pivotHeaderHeight")??pw(e)}function EAe(e){return e.gos.get("pivotGroupHeaderHeight")??Zte(e)}function RAe(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}function AAe(e){return e?.headerRowIndex!=null}var TAe=class extends Se{setComp(e,t,n){this.comp=e,this.eGui=t;const{beans:r}=this,{headerNavigation:i,touchSvc:o,ctrlsSvc:s}=r;i&&this.createManagedBean(new gw(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,r),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,r)}),this.onPivotModeChanged(r),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),o?.mockHeaderContextMenu(this,a),s.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({headerRowsChanged:e,columnHeaderHeight
827Changed:e,columnGroupHeaderHeightChanged:()=>nh(this.beans,()=>e()),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const n=vN(e).reduce((s,a)=>s+a,0),r=yN(e);e.filterManager?.hasFloatingFilters()&&(t+=Xte(e)),t+=n,t+=r;const i=e.environment.getHeaderRowBorderWidth(),o=t+i;if(this.headerHeightWithBorder!==o){this.headerHeightWithBorder=o;const s=`${o}px`;this.comp.setHeightAndMinHeight(s)}this.headerHeight!==t&&(this.headerHeight=t,this.eventSvc.dispatchEvent({type:"headerHeightChanged"}))}onPivotModeChanged(e){const t=e.colModel.pivotMode;this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const n=e.visibleCols.allCols.some(r=>r.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",n)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),n=e.shiftKey,r=n!==t?"LEFT":"RIGHT",{beans:i}=this,{headerNavigation:o,focusSvc:s}=i;(o.navigateHorizontally(r,!0,e)||!n&&s.focusOverlay(!1)||Sm(i,n,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:n}=this.beans;switch(e.key){case fe.LEFT:t="LEFT";case fe.RIGHT:{Ve(t)||(t="RIGHT"),n.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case fe.UP:t="UP";case fe.DOWN:{Ve(t)||(t="DOWN"),n.navigateVertically(t,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:n,beans:r}=this;!t&&n.contains($n(r))||n.contains(t)||(r.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,n){const{menuSvc:r,ctrlsSvc:i}=this.beans;if(!e&&!n||!r?.isHeaderContextMenuEnabled())return;const{target:o}=e??t;(o===this.eGui||o===i.getHeaderRowContainerCtrl()?.eViewport)&&r.showHeaderContextMenu(void 0,e,n)}},bN=class extends Se{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=ki(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:n}=this.beans,r=t.bodyWidth,i=t.getColsLeftWidth(),o=t.getDisplayedColumnsRightWidth();let s;e?s=r+i+o:(s=r,this.addSpacer&&(this.gos.get("enableRtl")?i:o)===0&&n.verticalScrollShowing&&(s+=n.getScrollbarWidth())),this.callback(s)}},qm=class extends Se{};
vendor: 4,487 bytes, line 827
827function mw(e,t,n){return n&&e.addDestroyFunc(()=>t.destroyBean(n)),n??e}var wN=class extends Se{constructor(e,t,n,r){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=r,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=n}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?gn(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,n=e.get("suppressColumnMoveAnimation"),r=Ve(this.columnOrGroup.getOldLeft());t?.isActive()&&r&&!n?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),n=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=n,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===n&&this.setLeft(n)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:n,visibleCols:r}=this.beans;if(!ki(n,"print")||e.getPinned()==="left")return t;const o=r.getColsLeftWidth();if(e.getPinned()==="right"){const s=r.bodyWidth;return o+s+t}return o+t}setLeft(e){if(Ve(e)&&(this.eCell.style.left=`${e}px`),xr(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&yxe(this.ariaEl,t.length)}}},PAe="ag-column-first",OAe="ag-column-last";function Qte(e,t,n,r){return rr(e)?[]:MAe(e.headerClass,e,t,n,r)}function Jte(e,t,n){e.toggleCss(PAe,n.isColAtEdge(t,"first")),e.toggleCss(OAe,n.isColAtEdge(t,"last"))}function DAe(e,t,n,r){return ft(t,{colDef:e,column:n,columnGroup:r})}function MAe(e,t,n,r,i){if(rr(e))return[];let o;if(typeof e=="function"){const s=DAe(t,n,r,i);o=e(s)}else o=e;return typeof o=="string"?[o]:Array.isArray(o)?[...o]:[]}var IAe=0,ene="headerCtrl",CN=class extends Se{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.reAttemptToFocus=!1,this.instanceId=e.getUniqueId()+"-"+IAe++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,n,r,i){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,n,r,i),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:n}=this.beans.focusSvc.focusedHeader,r=n.getDefinition(),i=r?.suppressHeaderKeyboardEvent;if(!Ve(i))return!1;const o=ft(this.gos,{colDef:r,column:n,headerRowIndex:t,event:e});return!!i(o)}getWrapperHasFocus(){return $n(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let n;if(typeof t=="function"){const r=this.getHeaderClassParams();n=t(r)}else n=t;n&&this.comp.setUserStyles(n)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:n,compBean:r}=e,{beans:i}=this,o=f=>{if(!this.isAlive()||!r.isAlive())return;const{paddingTop:g,paddingBottom:m,borderBottomWidth:y,borderTopWidth:b}=pg(this.eGui),w=g+m+y+b,E=t.offsetHeight+w;if(f<5){const T=!Kr(i)?.contains(t),P=E==0;if(T||P){q_(()=>o(f+1),"raf",i);return}}this.setColHeaderHeight(this.column,E)};let s=!1,a;const l=()=>{const f=this.column.isAutoHeaderHeight();f&&!s&&u(),!f&&s&&d()},u=()=>{s=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),o(0),a=Rc(this.beans,t,()=>o(0))},d=()=>{s=!1,a&&a(),this.comp.toggleCss("ag-header-cell-auto-height",!1),a=void 0};l(),r.addDestroyFunc(()=>d()),r.addManagedListeners(this.column,{widthChanged:()=>s&&o(0)}),r.addManagedEventListeners({sortChanged:()=>{s&&window.setTimeout(()=>
vendor: 4,181 bytes, line 827
827o(0))}}),n&&n(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:n,eGui:r}=this;!e||!t||!r||(Jte(e,t,n.visibleCols),Wee(r,n.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=Ga(this.beans);this.eGui&&$o(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=$n(this.beans),n=e.key===fe.LEFT||e.key===fe.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey)return;if((this.isResizing||n)&&(e.preventDefault(),e.stopImmediatePropagation()),(e.ctrlKey||e.metaKey)&&Ite(e)===fe.C)return this.beans.clipboardSvc?.copyToClipboard();if(!n)return;const o=e.key===fe.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const s=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(s,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(o)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:n}=this.beans;return n?n.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:n}=this;let r=e.key===fe.LEFT!==t.get("enableRtl");const i=n.getPinned(),o=t.get("enableRtl");return i&&o!==(i==="right")&&(r=!r),(r?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case fe.PAGE_DOWN:case fe.PAGE_UP:case fe.PAGE_HOME:case fe.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=ene,{eGui:n,gos:r}=this;$f(r,n,t,this),e.addDestroyFunc(()=>$f(r,n,t,null))}focus(e){if(!this.isAlive())return!1;const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus()):this.reAttemptToFocus=!0,!0}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,n){const r=e??t,{menuSvc:i,gos:o}=this.beans;o.get("preventDefaultOnContextMenu")&&r.preventDefault(),i?.isHeaderContextMenuEnabled(n)&&i.showHeaderContextMenu(n,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",n)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:n}=this;e.isColumn?n.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):n.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},_Ae=class extends CN{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,n,r,i){this.comp=e;const{rowCtrl:o,column:s,beans:a}=this,{colResize:l,context:u,colHover:d,rangeSvc:f}=a,g=mw(this,u,i);this.setGui(t,g),this.updateState(),this.setupWidth(g),this.setupMovingCss(g),this.setupMenuClass(g),this.setupSortableClass(g),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:r,checkMeasuringCallback:y=>this.setRefreshFunction("measuring",y),compBean:g}),this.addColumnHoverListener(g),this.setupFilterClass(g),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(g),this.setupSelectAll(g),this.setupUserComp(),this.refreshAria(),l?this.resizeFeature=g.createManagedBean(l.createResizeFeature(o.pinned,s,n,e,this)):Cn(n,!1),d?.createHoverFeature(g,[s],t),f?.createRangeHighlightFeature
vendor: 19,413 bytes, line 827
827(g,s,e),g.createManagedBean(new wN(s,t,a)),g.createManagedBean(new gw(t,{shouldStopEventPropagation:y=>this.shouldStopEventPropagation(y),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(g),g.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),g.addManagedPropertyListener("cellSelection",()=>this.refreshAria()),g.addManagedListeners(s,{colDefChanged:()=>this.refresh(),formulaRefChanged:()=>this.refresh(),headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const m=()=>this.checkDisplayName();g.addManagedEventListeners({columnValueChanged:m,columnRowGroupChanged:m,columnPivotChanged:m,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),g.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return ft(t.gos,{colDef:n,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return wRe(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:n,gos:r}=this.beans;return ft(r,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!n&&(!this.openFilterEnabled||qo(this.gos)),showColumnMenu:(o,s)=>{e?.showColumnMenu({column:this.column,buttonElement:o,positionBy:"button",onClosedCallback:s})},showColumnMenuAfterMouseClick:(o,s)=>{e?.showColumnMenu({column:this.column,mouseEvent:o,positionBy:"mouse",onClosedCallback:s})},showFilter:o=>{e?.showFilterMenu({column:this.column,buttonElement:o,containerType:"columnFilter",positionBy:"button"})},progressSort:o=>{t?.progressSort(this.column,!!o,"uiColumnSorted")},setSort:(o,s)=>{t?.setSortForColumn(this.column,na(o),!!s,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(o,s)=>{r.assertModuleRegistered("Tooltip",3),this.setupTooltip(o,s)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>{const n=t.createSelectAllFeature(this.column);n&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(n),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!n&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===fe.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===fe.ENTER?this.onEnterKeyDown(e):e.key===fe.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){const{column:t,gos:n,sortable:r,beans:i}=this;let o=!1;(e.ctrlKey||e.metaKey)&&(o=this.showMenuOnKeyPress(e,!0)),o||(!e.altKey&&Tf(n)?i.rangeSvc?.handleColumnSelection(t,e):r&&i.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const n=this.comp.getUserCompInstance();return $6(n)&&n.onMenuKeyboardShortcut(t)?(e.preventDefault(),!0):!1}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),Gte()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const t=this.column.colDef,n=Qte(t,this.gos,this.column,null),r=this.userHeaderClasses;this.userHeaderClasses=new Set(n);for(const i of n)r.has(i)?r.delete(i):this.comp.toggleCss(i,!0);for(const i of r)this.comp.toggleCss(i,!1)};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria();for(const e of Object.values(this.refreshFunctions))e()}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.colDef;return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const n=this.column.getActualWidth();this.comp.setWidth(`${n}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const n=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",n),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,n=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",n)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:n,beans:r}=this,i=vN(this.beans),o=i.reduce((g,m)=>g+m,0)===0;if(n.toggleCss("ag-header-parent-hidden",o),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),n.toggleCss("ag-header-span-height",!1),n.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:s,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();n.toggleCss("ag-header-span-height",s>0);const l=yN(r);if(s===0){n.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}n.toggleCss("ag-header-span-total",a);const u=(this.column.getFirstRealParent()?.getLevel()??-1)+1,d=i.length-u;let f=0;for(let g=0;g<d;g++)f+=i[i.length-1-g];e.style.setProperty("top",`${-f}px`),e.style.setProperty("height",`${l+f}px`)}refreshAriaSort(){let e=null;const{beans:t,column:n,comp:r,sortable:i,gos:o}=this;if(i){const s=this.getLocaleTextFunc(),a=t.sortSvc?.getDisplaySortForColumn(n)??null;r.setAriaSort(lxe(a)),e=Tf(o)?s("ariaSortableColumnWithCellSelection","Press ALT ENTER to sort"):s("ariaSortableColumn","Press ENTER to sort")}else r.setAriaSort();this.setAriaDescriptionProperty("sort",e)}refreshAriaMenu(){let e=null;this.menuEnabled&&(e=this.getLocaleTextFunc()("ariaMenuColumn","Press ALT DOWN to open column menu")),this.setAriaDescriptionProperty("menu",e)}refreshAriaFilterButton(){let e=null;const{openFilterEnabled:t,gos:n}=this;t&&!qo(n)&&(e=this.getLocaleTextFunc()("ariaFilterColumn","Press CTRL ENTER to open filter")),this.setAriaDescriptionProperty("filterButton",e)}refreshAriaFiltered(){let e=null;this.column.isFilterActive()&&(e=this.getLocaleTextFunc()("ariaColumnFiltered","Column Filtered")),this.setAriaDescriptionProperty("filter",e)}refreshAriaCellSelection(){let e=null;const{gos:t,column:n}=this;Tf(t)&&!Ro(n)&&(e=this.getLocaleTextFunc()("ariaColumnCellSelection","Press Enter to toggle selection for all visible cells in this column")),this.setAriaDescriptionProperty("cellSelection",e)}setAriaDescriptionProperty(e,t){const n=this.ariaDescriptionProperties;t!=null?n.set(e,t):n.delete(e)}announceAriaDescription(){const{beans:e,eGui:t,ariaDescriptionProperties:n}=this;if(!t.contains($n(e)))return;const r=Array.from(n.keys()).sort((i,o)=>i==="filter"?-1:o.charCodeAt(0)-i.charCodeAt(0)).map(i=>n.get(i)).join(". ");e.ariaAnnounce?.announceValue(r,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered(),this.refreshAriaCellSelection()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),n=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:n,contextmenu:r})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return $6(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function $6(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var FAe=0,jO=class extends Se{constructor(e,t,n){super(),this.rowIndex=e,this.pinned=t,this.type=n,this.instanceId=FAe++,this.comp=null,this.allCtrls=[];let r="ag-header-row-column";n==="group"?r="ag-header-row-group":n==="filter"&&(r="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${r}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=ki(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,n=!0){this.comp=e,t=mw(this,this.beans.context,t),n&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),n=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:n,virtualColumnsChanged:r=>this.onVirtualColumnsChanged(r.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",n),e.addManagedPropertyListener("ensureDomOrder",r=>this.isEnsureDomOrder=r.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=ki(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){if(!this.comp)return;const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){if(!this.comp)return;const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){let e=0;const t=vN(this.beans);for(let i=0;i<t.length;i++){if(i===this.rowIndex&&this.type==="group")return{topOffset:e,rowHeight:t[i]};e+=t[i]}const n=yN(this.beans);if(this.type==="column")return{topOffset:e,rowHeight:n};e+=n;const r=Xte(this.beans);return{topOffset:e,rowHeight:r}}onVirtualColumnsChanged(e=!1){if(!this.comp)return;const t=this.getUpdatedHeaderCtrls(),n=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,n,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const r of t)this.recycleAndCreateHeaderCtrls(r,this.ctrlsById,e);const n=r=>{const{focusSvc:i,visibleCols:o}=this.beans;return i.isHeaderWrapperFocused(r)?o.isVisible(r.column):!1};if(e)for(const[r,i]of e)n(i)?this.ctrlsById.set(r,i):this.destroyBean(i);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,n){if(e.isEmptyGroup())return;const r=e.getUniqueId();let i;if(n&&(i=n.get(r),n.delete(r)),i&&i.column!=e&&(this.destroyBean(i),i=void 0),i==null)switch(this.type){case"filter":{i=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":i=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:i=this.createBean(new _Ae(e,this));break}t.set(r,i)}getColumnsInViewport(){if(!this.isPrintLayout)return this.getComponentsToRender();if(this.pinned)return[];const e=[];for(const t of["left",null,"right"])e.push(...this.getComponentsToRender(t));return e}getComponentsToRender(e=this.pinned){return this.type==="group"?this.beans.colViewport.getHeadersToRender(e,this.rowIndex):this.beans.colViewport.getColumnHeadersToRender(e)}focusHeader(e,t){const n=this.allCtrls.find(i=>i.column==e);return n?n.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},kAe=class extends Se{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:n,ctrlsSvc:r,colModel:i,colMoves:o}=this.beans;this.setupCenterWidth(),n?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(o,this.eViewport);const s=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:s,advancedFilterEnabledChanged:s});const a=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;r.register(a,this),i.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,filterManager:n,visibleCols:r}=this.beans;let i=0;const o=t.getFocusHeaderToUseAfterRefresh(),s=()=>{const f=r.headerGroupRowCount;i=f,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const g=this.groupsRowCtrls.length;if(g!==f){if(g>f){for(let m=f;m<g;m++)this.destroyBean(this.groupsRowCtrls[m]);this.groupsRowCtrls.length=f;return}for(let m=g;m<f;m++){const y=this.createBean(new jO(m,this.pinned,"group"));this.groupsRowCtrls.push(y)}}},a=()=>{const f=i++;if(this.hidden){this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl);return}this.columnsRowCtrl==null||!e?(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.columnsRowCtrl=this.createBean(new jO(f,this.pinned,"column"))):this.columnsRowCtrl.rowIndex!==f&&this.columnsRowCtrl.setRowIndex(f)},l=()=>{this.includeFloatingFilter=!!n?.hasFloatingFilters()&&!this.hidden;const f=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){f();return}e||f();const g=i++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==g&&this.filtersRowCtrl.setRowIndex(g):this.filtersRowCtrl=this.createBean(new jO(g,this.pinned,"filter"))},u=this.getAllCtrls();s(),a(),l();const d=this.getAllCtrls();this.comp.setCtrls(d),this.restoreFocusOnHeader(t,o),u.length!==d.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=n=>n?.getHeaderCellCtrls().find(r=>r.column===e);if(Kd(e))return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let n=0;n<this.groupsRowCtrls.length;n++){const r=t(this.groupsRowCtrls[n]);if(r)return r}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,n){const i=this.getAllCtrls()[e];return i?i.focusHeader(t,n):!1}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const n=e?.createBodyDropTarget(this.pinned,t);n&&this.createManagedBean(n)}restoreFocusOnHeader(e,t){if(!t)return;const{column:n}=t;n.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new bN(e=>this.comp.setCenterWidth(`${e}px`),!0))}},s1={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},SN=class extends Se{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},n=t.autoHeight?s1.AUTO_HEIGHT:t.print?s1.PRINT:s1.NORMAL;this.view.updateLayoutClasses(n,t)}},tne=class extends qn{constructor(e,t){super(),this.direction=t,this.eViewport=Ye,this.eContainer=Ye,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",Hte()||Pf())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=zte(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles())
vendor: 7,988 bytes, line 827
827)}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),n=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:n,touchend:n})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),nh(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;jxe(this,()=>Za(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},LAe={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},NAe=class extends tne{constructor(){super(LAe,"horizontal"),this.eLeftSpacer=Ye,this.eRightSpacer=Ye,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new bN(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const n=!this.enableRtl&&e,r=this.scrollVisibleSvc.getScrollbarWidth();n&&(t+=r),$l(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);let i=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(i+=r),$l(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=r)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,n=this.gos.get("suppressHorizontalScroll"),r=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,o=n?0:r===0&&t?16:r,s=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),nb(this.getGui(),o),nb(this.eViewport,o),nb(this.eContainer,o),o||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(s,100):s()}getScrollPosition(){return F1(this.eViewport,this.enableRtl)}setScrollPosition(e){Za(this.eViewport)||this.attemptSettingScrollPosition(e),k1(this.eViewport,e,this.enableRtl)}},nne=class extends Se{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,n=t!=null?`${t}px`:"";this.eContainer.style.height=n,this.eViewport&&(this.eViewport.style.height=n)}},BAe={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},HAe=class extends tne{constructor(){super(BAe,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new nne(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,n=this.invisibleScrollbar,r=t&&e.getScrollbarWidth()||0,i=r===0&&n?16:r;this.toggleCss("ag-scrollbar-invisible",n),$l(this.getGui(),i),$l(this.eViewport,i),$l(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const n=e.getGridBodyCtrl().eBodyViewport,r=this.getScrollPosition(),i=n.scrollTop;r!=i&&this.setScrollPosition(i,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!Za(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},hd="Viewport",q6="fakeVScrollComp",UO=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],K6=100,WO=150,VAe=class extends Se{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isScrollActive=!1,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=ui(this,()=>this.lastScrollSource[1]=null,WO),this.resetLastVScrollDebounced=ui(this,()=>this.lastScrollSource[0]=null,WO)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),bodyHeightChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,n=>{this.centerRowsCtrl=n.center,this.fakeVScrollComp=n.fakeVScrollComp,this.fakeHScrollComp=n.fakeHScrollComp,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,hd)});for(const e of UO){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.gos.get("debounceVerticalScrollbar"),t=e?ui(this,this.onVScroll.bind(this,hd),K6):this.onVScroll.bind(this,hd),n=e?ui(this,this.onVScroll.bind(this,q6),K6):this.onVScroll.bind(this,q6);this.addManagedElementListeners(this.eBodyViewport,{scroll:t}),this.registerScrollPartner(this.fakeVScrollComp,n)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...
827UO,hd]){if(this.lastScrollSource[1]===t)continue;const n=this.getViewportForSource(t);k1(n,e,this.enableRtl)}}getViewportForSource(e){return e===hd?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:n}=t;if(this.shouldBlockScrollUpdate(1,n,!0))return;const r=F1(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(r),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;const t=e===hd?this.eBodyViewport.scrollTop:this.fakeVScrollComp.getScrollPosition();let n=t;if(this.shouldBlockScrollUpdate(0,n,!0))return;e===hd?this.fakeVScrollComp.setScrollPosition(n):(this.eBodyViewport.scrollTop=t,n=this.eBodyViewport.scrollTop,this.invalidateVerticalScroll(),n!==t&&this.fakeVScrollComp.setScrollPosition(n,!0));const{animationFrameSvc:r}=this;r?.setScrollTop(n),this.nextScrollTop=n,r?.active?r.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.fakeHScrollComp.getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=!0,this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.isScrollActive=!1,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},WO)}shouldBlockScrollUpdate(e,t,n=!1){return n&&!Pf()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=ZL(this.eBodyViewport),{scrollHeight:n}=this.eBodyViewport;return e<0||e+t>n}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:n}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=this.scrollLeft;let t=!1;for(const n of UO)if(this.getViewportForSource(n).scrollLeft!==e){t=!0;break}t&&this.onHScroll(hd)}scrollGridIfNeeded(e=!1){const t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){const r=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:r:e=Math.min(Math.max(e,0),r)),k1(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:n,lastScrollTop:r}=this;return{top:r,bottom:r+n}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.setVerticalScrollPosition(0)}ensureNodeVisible(e,t=null){const{rowModel:n}=this.beans,r=n.getRowCount();let i=-1;for(let o=0;o<r;o++){const s=n.getRow(o);if(typeof e=="function"){if(s&&e(s)){i=o;break}}else if(e===s||e===s.data){i=o;break}}i>=0&&this.ensureIndexVisible(i,t)}ensureIndexVisible(e,t,n=0){if(ki(this.gos,"print"))return;const{rowModel:r}=this.beans,i=r.getRowCount();if(typeof e!="number"||e<0||e>=i){Me(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:o,pageBounds:s,rowContainerHeight:a,rowRenderer:l}=this.beans;o.wrapIncoming(()=>{const u=this.ctrlsSvc.getGridBodyCtrl(),d=r.getRow(e);let f,g,m=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:y,stickyBottomHeight:b}=u,w=d.rowTop,C=d.rowHeight,E=s.getPixelOffset(),A=d.rowTop-E,T=A+d.rowHeight,P=this.getVScrollPosition(),O=a.divStretchOffset,D=P.to
827p+O,F=P.bottom+O,L=F-D,N=a.getScrollPositionForPixel(A),M=a.getScrollPositionForPixel(T-L),k=Math.min((N+M)/2,A),B=D+y>A,j=F-b<T;let z=null;t==="top"?z=N-y:t==="bottom"?z=M+b:t==="middle"?z=k:B?z=N-y:j&&(M-N>L?z=N-y:z=M+b),z!==null&&(this.setVerticalScrollPosition(z),l.redraw({afterScroll:!0})),f=w!==d.rowTop||C!==d.rowHeight,g=y!==u.stickyTopHeight||b!==u.stickyBottomHeight,m++}while((f||g)&&m<10);if(this.animationFrameSvc?.flushAllFrames(),n<10&&(d?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const y=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const b=this.getVScrollPosition().top;y!==b&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=r.getRowCount())&&this.ensureIndexVisible(e,t,n+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:n,frameworkOverrides:r}=this.beans,i=n.getCol(e);if(!i||i.isPinned()||!this.visibleCols.isColDisplayed(i))return;const o=this.getPositionedHorizontalScroll(i,t);r.wrapIncoming(()=>{o!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(o),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:n,columnAfterEnd:r}=this.isColumnOutsideViewport(e),i=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),o=this.centerRowsCtrl.getCenterWidth(),s=this.enableRtl;let a=(s?n:r)||i,l=s?r:n;t!=="auto"&&(a=t==="start",l=t==="end");const u=t==="middle";if(a||l||u){const{colLeft:d,colMiddle:f,colRight:g}=this.getColumnBounds(e);return u?f-o/2:a?s?g:d:s?d-o:g-o}return null}isColumnOutsideViewport(e){const{start:t,end:n}=this.getViewportBounds(),{colLeft:r,colRight:i}=this.getColumnBounds(e),o=this.enableRtl,s=o?t>i:n<i,a=o?n<r:t>r;return{columnBeforeStart:s,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,n=this.visibleCols.bodyWidth,r=e.getActualWidth(),i=e.getLeft(),o=t?-1:1,s=t?n-i:i,a=s+r*o,l=s+r/2*o;return{colLeft:s,colMiddle:l,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),n=t,r=e+t;return{start:n,end:r,width:e}}},Y6={horizontal:{overflow:e=>e.scrollWidth-e.clientWidth,scrollSize:e=>e.scrollWidth,clientSize:e=>e.clientWidth,opposite:"vertical"},vertical:{overflow:e=>e.scrollHeight-e.clientHeight,scrollSize:e=>e.scrollHeight,clientSize:e=>e.clientHeight,opposite:"horizontal"}};function zAe(e,t,n=cN()||0,r,i){return rne(e,t,"horizontal",n,r,i)}function GAe(e,t,n=cN()||0,r,i){return rne(e,t,"vertical",n,r,i)}function rne(e,t,n,r,i,o){const s=Y6[n],a=Y6[s.opposite],l=i?Za(i):!0,u=o?Za(o):!0,d=s.overflow(e);if(d<=0)return!1;if(!t||r===0)return!0;const f=a.overflow(t);if(f<=0)return!0;if(d<=r){if(l&&u&&jAe({candidateOverflow:f,candidateScrollSize:a.scrollSize(t),candidateClientSize:a.clientSize(t),scrollbarWidth:r}))return!1;const g=s.clientSize(e)+r;return s.scrollSize(e)<=g}return!0}function jAe({candidateOverflow:e,candidateScrollSize:t,candidateClientSize:n,scrollbarWidth:r}){if(e<=0||e>r)return!1;const i=n+r;return t>n&&t<=i}var UAe=class extends Se{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:n}=this,r=()=>{nh(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(r),n.registerBodyViewportResizeListener(r)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const n=this.centerContainerCtrl.getCenterWidth();n!==this.centerWidth&&(this.centerWidth=n,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=ZL(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive())return;const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}
vendor: 5,539 bytes, line 827
827onHorizontalViewportChanged(){const{centerContainerCtrl:e,beans:t}=this,n=e.getCenterWidth(),r=e.getViewportScrollLeft();t.colViewport.setScrollPosition(n,r)}};function ine(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function a1(e,t,n,r){const i=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return one(e,t,n,r,i)}function WAe(e,t,n,r){const i=t?.suppressMouseEventHandling;return one(e,void 0,n,r,i)}function one(e,t,n,r,i){return i?i(ft(e,{column:t,node:n,event:r})):!1}function sne(e,t,n){let r=t;for(;r;){const i=vte(e,r,n);if(i)return i;r=r.parentElement}return null}var Y1="cellCtrl";function xN(e,t){return sne(e,t,Y1)}var X1="renderedRow";function $Ae(e,t){return sne(e,t,X1)}function aF(e,t,n,r,i){const o=r?r.colDef.suppressKeyboardEvent:void 0;if(!o)return!1;const s=ft(e,{event:t,editing:i,column:r,node:n,data:n.data,colDef:r.colDef});return!!(o&&o(s))}function qAe(e){const{pinnedRowModel:t,rowModel:n,rangeSvc:r,visibleCols:i}=e;if(!r||i.allCols.length===0)return;const o=t?.isEmpty("top")??!0,s=t?.isEmpty("bottom")??!0,a=o?null:"top";let l,u;s?(l=null,u=n.getRowCount()-1):(l="bottom",u=t?.getPinnedBottomRowCount()??-1),r.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:u,rowEndPinned:l})}var KAe=class extends Se{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){let e="mousedown";N1("pointerdown")?e="pointerdown":N1("touchstart")&&(e="touchstart");const t=["dblclick","contextmenu","mouseover","mouseout","click",e];for(const n of t){const r=this.processMouseEvent.bind(this,n);this.addManagedElementListeners(this.element,{[n]:r})}}processMouseEvent(e,t){if(!_b(this.beans,t)||ac(t))return;const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(n?.column&&n.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,r,n)):(n&&n.onMouseEvent(e,t),r&&r.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:xN(t,e),rowCtrl:$Ae(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):r?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,n){const r=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!aF(this.gos,n,e.rowNode,e.column,r)&&t==="keydown"&&(!r&&this.beans.navigation?.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,r),ine(n)&&e.processCharacter(n)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(n,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,n){const{rowNode:r}=e,{focusSvc:i,navigation:o,notesSvc:s}=this.beans,l=i.getFocusedCell()?.column;!aF(this.gos,n,r,l,!1)&&t==="keydown"&&this.processFullWidthRowKeyDown(e,n,l,o,s),t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",n))}processFullWidthRowKeyDown(e,t,n,r=this.beans.navigation,i=this.beans.notesSvc){switch(t.key){case fe.PAGE_HOME:case fe.PAGE_END:case fe.PAGE_UP:case fe.PAGE_DOWN:r?.handlePageScrollingKey(t,!0);return;case fe.LEFT:case fe.RIGHT:if(!this.gos.get("embedFullWidthRows"))return;case fe.UP:case fe.DOWN:e.onKeyboardNavigate(t);return;case fe.F2:this.processFullWidthRowNoteShortcut(e,t,n,i);return;case fe.TAB:e.onTabKeyDown(t);return}}processFullWidthRowNoteShortcut(e,t,n,r=this.beans.notesSvc){if(!t.shiftKey||!r?.hasDataSource())return;const i=e.rowNode,o=e.findFullWidthInfoForEvent(t);let s;if(o){const{pinned:l}=o;s={rowNode:i,location:"fullWidthRow",pinned:l==="left"||l==="right"?l:void 0}}else n&&(s={rowNode:i,column:n});if(!s)return;const a=r.getNoteAccess(s);a&&(!a.isSuppressed||a.canView)&&(r.showNote(a.params,!0),t.preventDefault())}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!_b(this.beans,e))return;const n=Ite(e),{clipboardSvc:r,undoRedo:i}=this.beans;if(n===fe.A)return this.onCtrlAndA(e);if(n===fe.C)return this.onCtrlAndC(r,e);if(n===fe.D)return this.onCtrlAndD(r,e);if(n===fe.V)return this.onCtrlAndV(r,e);if(n===fe.X)return this.onCtrlAndX(r,e);if(n===fe.Y)return this.onCtrlAndY(i);if(n===fe.Z)return this.onCtrlAndZ(i,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:n,selectionSvc:r},gos:i}=this;n&&qd(i)&&!bEe(i)&&t.isRowsToRender()?qAe(this.beans):r&&r.selectAllRowNodes({source:"keyboardSelectAll",selectAll:xte(i)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:n}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(n,{withOpenEditor:!0})||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}
vendor: 4,858 bytes, line 827
827},Q0=e=>e.topRowCtrls,J0=e=>e.getStickyTopRowCtrls(),eS=e=>e.getStickyBottomRowCtrls(),tS=e=>e.bottomRowCtrls,nS=e=>e.allRowCtrls,$O=e=>e.getCtrls("top"),qO=e=>e.getCtrls("center"),KO=e=>e.getCtrls("bottom"),YAe={center:{type:"center",name:"center-cols",getRowCtrls:nS,getSpannedRowCtrls:qO},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:nS,getSpannedRowCtrls:qO},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:nS,getSpannedRowCtrls:qO},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:nS},topCenter:{type:"center",name:"floating-top",getRowCtrls:Q0,getSpannedRowCtrls:$O},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:Q0,getSpannedRowCtrls:$O},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:Q0,getSpannedRowCtrls:$O},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:Q0},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:J0},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:J0},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:J0},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:J0},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:eS},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:eS},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:eS},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:eS},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:tS,getSpannedRowCtrls:KO},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:tS,getSpannedRowCtrls:KO},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:tS,getSpannedRowCtrls:KO},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:tS}};function ane(e){return`ag-${vw(e).name}-viewport`}function lne(e){const t=vw(e);return t.container??`ag-${t.name}-container`}function XAe(e){return`ag-${vw(e).name}-spanned-cells-container`}function vw(e){return YAe[e]}var ZAe=["topCenter","topLeft","topRight"],QAe=["bottomCenter","bottomLeft","bottomRight"],JAe=["center","left","right"],eTe=["center","left","right","fullWidth"],tTe=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],nTe=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],rTe=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],une=["stickyTopCenter","stickyTopLeft","stickyTopRight"],cne=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],iTe=[...une,"stickyTopFullWidth",...cne,"stickyBottomFullWidth"],oTe=[...ZAe,...QAe,...JAe,...une,...cne],sTe=class extends Se{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=vw(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new UAe(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,n,r){this.comp=e,this.eContainer=t,this.eSpannedContainer=n,this.eViewport=r,this.createManagedBean(new KAe(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:i,rangeSvc:o}=this.beans,s=()=>this.onPinnedWidthChanged();this.forContainers(nTe,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(i?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:s})}),this.forContainers(rTe,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(i?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:s})}),this.forContainers(eTe,()=>this.createManagedBean(new nne(this.eContainer,this.name==="center"?r:void 0))),o&&this.forContainers(oTe,()=>this.createManagedBean(o.createDragListenerFeature(this.eContainer))),this.forContainers(tTe,()=>this.createManagedBean(new bN(a=>this.comp.setContainerWidth(`${a}
827px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,n=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:n,displayedColumnsWidthChanged:n,displayedRowsChanged:r=>this.onDisplayedRowsChanged(r.afterScroll)}),n(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const r=this.options.getSpannedRowCtrls(e);r&&this.comp.setSpannedRowCtrls(r,!1)}})}listenOnDomOrder(){if(iTe.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const n=this.gos.get("ensureDomOrder"),r=ki(this.gos,"print");this.comp.setDomOrder(n||r)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=n=>{e.dragging&&n.cancelable&&n.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),n=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,n,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return Mb(this.eViewport)}getCenterViewportScrollLeft(){return F1(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=Rc(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return Xee(this.eViewport)}getViewportScrollLeft(){return F1(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){const{beans:e,gos:t,eViewport:n}=this,r=t.get("alwaysShowHorizontalScroll"),{ctrlsSvc:i}=e,o=i.getGridBodyCtrl()?.eBodyViewport,s=i.get("fakeHScrollComp")?.getGui(),a=i.get("fakeVScrollComp")?.getGui();return r||zAe(n,o,void 0,s,a)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){k1(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const n=ki(this.gos,"print"),i=this.gos.get("embedFullWidthRows")||n,o=t.filter(s=>{const a=s.isFullWidth();return this.options.fullWidth?!i&&a:i||!a});this.comp.setRowCtrls({rowCtrls:o,useFlushSync:e})}},aTe="ag-force-vertical-scroll",lTe="ag-selectable",uTe="ag-column-moving",cTe=class extends Se{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,n,r,i,o,s){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=r,this.eBottom=i,this.eStickyTop=o,this.eStickyBottom=s,this.eCenterColsViewport=n.querySelector(`.${ane("center")}`),this.eFullWidthContainer=n.querySelector(`.${lne("fullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",a=>this.setCellTextSelection(a.currentValue)),this.createManagedBean(new SN(this.comp)),this.scrollFeature=this.createManagedBean(new VAe(n)),this.beans.rowDragSvc?.setupRowDrag(n,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,i,o,s]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(r),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),n=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeight
vendor: 10,171 bytes, line 827
827Changed:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:n,rowResizeEnded:n}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t=e.type==="rowResizeStarted";this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const n=t&&e.getScrollbarWidth()||0,r=zte()?16:0,i=`calc(100% + ${n+r}px)`;nh(this.beans,()=>this.comp.setBodyViewportWidth(i)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t,gos:n}=this;let r=n.get("treeData");if(!r){const i=t.pivotMode;r=(e?e.columns.length:0)>=(i?2:1)}this.comp.setGridRootRole(r?"treegrid":"grid")}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:n=>{const{target:r}=n,i=xf(r,"ag-root",t);t.classList.toggle("ag-has-focus",!i)},focusout:n=>{const{target:r,relatedTarget:i}=n,o=t.contains(i),s=xf(i,"ag-root",t);xf(r,"ag-root",t)||(!o||s)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss(uTe,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(lTe,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,n=t.isLastRowIndexKnown()?t.getRowCount():-1,r=n===-1?-1:e+n;this.comp.setRowCount(r)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const{gos:e,comp:t,ctrlsSvc:n}=this,r=e.get("alwaysShowVerticalScroll"),i=r?aTe:null,o=ki(e,"normal");t.setAlwaysVerticalScrollClass(i,r);const s=n.get("center")?.eViewport,a=n.get("fakeHScrollComp")?.getGui(),l=n.get("fakeVScrollComp")?.getGui();return r||o&&GAe(this.eBodyViewport,s,void 0,l,a)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let n=t.sizesMeasured;const r=()=>{const i=n&&Jp(this.gos)&&!e.stretching,o=i?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(o,i)};r(),this.addManagedEventListeners({heightScaleChanged:r}),this.addManagedPropertyListener("animateRows",r),this.addManagedEventListeners({stylesChanged:()=>{!n&&t.sizesMeasured&&(n=!0,r())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:n,eTop:r,eBottom:i,beans:{popupSvc:o,touchSvc:s}}=this,a=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:a}),s?.mockBodyContextMenu(this,a),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,o)});const l=this.onStickyWheel.bind(this);for(const d of[t,n,r,i])this.addManagedElementListeners(d,{wheel:l});const u=this.onHorizontalWheel.bind(this);for(const d of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(d).eContainer,{wheel:u});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:n,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(n))&&_b(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:n,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(n))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:n}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||n})}onBodyViewportContextMenu(e,t,n){if(!e&&!n)return;this.gos.get("preventDefaultOnContextMenu")&&(e||n).preventDefault();const{target:r}=e||t;(r===this.eBodyViewport||r===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:n,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,n=e?.getPinnedTopTotalHeight(),r=e?.getPinnedBottomTotalHeight(),i=t.getPinnedRowBorderWidth(),o=t.getRowBorderWidth(),s=i-o,a=n?s+n:0,l=r?s+r:0;this.comp.setTopHeight(a),this.comp.setBottomHeight(l),this.comp.setTopInvisible(a<=0),this.comp.setBottomInvisible(l<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),n=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let r=0;t>0&&(r+=t),n>0&&(r+=n),r>0&&(r+=1),this.comp.setStickyTopTop(`${r}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:n}=this,r=e?.getPinnedBottomTotalHeight()??0,o=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,s=r+o;n.setStickyBottomBottom(`${s}px`)}};function Ss(e){return Uf(e)}var rm={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},dne=class extends Do{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:n,eTopGuard:r,eBottomGuard:i,focusTrapActive:o,forceFocusOutWhenTabGuardsAreEmpty:s,isFocusableContainer:a,focusInnerElement:l,onFocusIn:u,onFocusOut:d,shouldStopEventPropagation:f,onTabKeyDown:g,handleKeyDown:m,isEmpty:y,eFocusableElement:b}=e;this.comp=n,this.eTopGuard=r,this.eBottomGuard=i,this.providedFocusInnerElement=l,this.eFocusableElement=b,this.focusTrapActive=!!o,this.forceFocusOutWhenTabGuardsAreEmpty=!!s,this.isFocusableContainer=!!a,this.providedFocusIn=u,this.providedFocusOut=d,this.providedShouldStopEventPropagation=f,this.providedOnTabKeyDown=g,this.providedHandleKeyDown=m,this.providedIsEmpty=y}postConstruct(){this.createManagedBean(new Ute(this.eFocusableElement,this.stopPropagationCallbacks,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards();for(const e of[this.eTopGuard,this.eBottomGuard])this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)})}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():Of(this.eFocusableElement,".ag-tab-guard").length===0)){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const t=Kr(this.beans),n=Of(t.body,null,!0),r=n.indexOf(e?this.eTopGuard:this.eBottomGuard);if(r===-1)return;let i,o;e?(i=0,o=r):(i=r+1,o=n.length);const s=n.slice(i,o),a=this.gos.get("tabIndex");s.sort((l,u)=>{const d=Number.parseInt(l.getAttribute("tabindex")||"0"),f=Number.parseInt(u.getAttribute("tabindex")||"0");return f===a?1:d===a?-1:d===0?1:f===0?-1:d-f}),s[e?s.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const n=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),n&&(n.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=Of(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(-1,1)),t.length?(t[e?t.length-1:0].focus({preventScroll:!0}),!0):!1}
vendor: 1,137 bytes, line 827
827getNextFocusableElement(e){return vg(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},dTe=class extends Do{constructor(e,t){super(),this.comp=e,this.stopPropagationCallbacks=t}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:n,eFocusableElement:r,stopPropagationCallbacks:i}=this,o=[t,n],s={setTabIndex:C=>{for(const E of o)C==null?E.removeAttribute("tabindex"):E.setAttribute("tabindex",C)}};this.addTabGuards(t,n);const{focusTrapActive:a=!1,onFocusIn:l,onFocusOut:u,focusInnerElement:d,handleKeyDown:f,onTabKeyDown:g,shouldStopEventPropagation:m,isEmpty:y,forceFocusOutWhenTabGuardsAreEmpty:b,isFocusableContainer:w}
vendor: 4,656 bytes, line 827
827=e;this.tabGuardCtrl=this.createManagedBean(new dne({comp:s,focusTrapActive:a,eTopGuard:t,eBottomGuard:n,eFocusableElement:r,onFocusIn:l,onFocusOut:u,focusInnerElement:d,handleKeyDown:f,onTabKeyDown:g,shouldStopEventPropagation:m,isEmpty:y,forceFocusOutWhenTabGuardsAreEmpty:b,isFocusableContainer:w},i))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=Kr(this.beans).createElement("div"),n=e==="top"?rm.TAB_GUARD_TOP:rm.TAB_GUARD_BOTTOM;return t.classList.add(rm.TAB_GUARD,n),jf(t,"presentation"),t}addTabGuards(e,t){const n=this.eFocusableElement;n.prepend(e),n.append(t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];Jo(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,n){eN(t)||(t=t.getGui());const{eBottomGuard:r}=this;r?r.before(t):e(t,n)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;Ql(e),Ql(t),super.destroy()}},hTe=class extends $m{initialiseTabGuard(e,t){this.tabGuardFeature=this.createManagedBean(new dTe(this,t)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},fTe=class extends hTe{initialiseTabGuard(t){super.initialiseTabGuard(t,dN)}},X6=(e,t)=>Yte(e,()=>qf(e.getGui(),t,!1,!0)),Z6=e=>e?.getFocusableContainerName()??"external",gTe=e=>e==null?"external":typeof e=="string"?e:"gridBody",pTe=class extends Se{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,n){this.view=e,this.eGridHostDiv=t,this.eGui=n,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:r,ctrlsSvc:i}=this.beans;r?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new SN(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr"),this.gos.get("suppressContentVisibilityAuto")&&this.eGui.style.setProperty("content-visibility","visible");const o=Rc(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>o()),i.register("gridCtrl",this)}isDetailGrid(){return jte(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),toolbarSelector:e.registry?.getSelector("AG-TOOLBAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){const{view:t}=this;e===!1?t.setCursor(null):t.setCursor(e===1?"ew-resize":"ns-resize")}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:n,nextIndex:r}=this.getNextFocusableIndex(t,e),i=n===-1?e?t.length-1:0:r,{gos:o,beans:{focusSvc:s,navigation:a}}=this,l=o.getCallback("tabToNextGridContainer");if(l){const u=s.getDefaultTabToNextGridContainerTarget({backwards:e,focusableContainers:t,nextIndex:i}),d=Z6(t[i]),f=u==null&&d==="gridBody"?"gridBody":gTe(u),g=l({backwards:e,previousContainer:Z6(t[n]),nextContainer:f,defaultTarget:u});if(g!==void 0){if(typeof g=="boolean")return g;if(typeof g=="string"){if(g==="gridBody")return this.focusGridBodyDefault(e)||void 0;const m=t.find(y=>y.getFocusableContainerName()===g);if(!m){ote(`tabToNextGridContainer - ${g} container not found`);return}return X6(m,e)?!0:void 0}return AAe(g)?s.focusHeaderPosition({headerPosition:g})||void 0:(a?.ensureCellVisible(g),s.setFocusedCell({...g,forceBrowserFocus:!0}),s.isCellFocused(g)||void 0)}}return this.focusNextInnerContainerDefault({backwards:e,focusableContainers:t,indexWithFocus:n,nextIndex:i})||void 0}focusInnerElement(e){const{gos:t,beans:n,beans:{focusSvc:r,visibleCols:i}}=this;if(t.getCallback("focusGridInnerElement")?.({fromBottom:!!e}))return!0;const s=this.getFocusableContainers();if(e)return this.focusNextInnerContainerDefault({backwards:!0,focusableContainers:s,indexWithFocus:s.length,nextIndex:s.length-1})?!0:r.focusGridView({column:gn(i.allCols),backwards:!0});const a=i.allCols;if(t.get("headerHeight")===0||Ga(n)){if(r.focusGridView({column:a[0],backwards:e}))return!0;for(let l=1;l<s.length;l++)if(qf(s[l].getGui(),e))return!0;return!1}
vendor: 9,017 bytes, line 827
827return r.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}isFocusInsideGridBody(){const e=this.getFocusableContainers(),{indexWithFocus:t}=this.getNextFocusableIndex(e);return e[t]?.getFocusableContainerName()==="gridBody"}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{indexWithFocus:n,nextIndex:r}=this.getNextFocusableIndex(t,e);this.focusNextInnerContainerDefault({backwards:!!e,focusableContainers:t,indexWithFocus:n,nextIndex:r})||this.forceFocusOutOfContainer(e)}isFocusable(){const e=this.beans;return!Nb(e)||!Ga(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const n=$n(this.beans),r=e.findIndex(i=>i.getGui().contains(n));return{indexWithFocus:r,nextIndex:r+(t?-1:1)}}focusGridBodyDefault(e){const{gos:t,beans:n,beans:{focusSvc:r,visibleCols:{allCols:i}}}=this;return e?r.focusGridView({column:gn(i),backwards:!0}):t.get("headerHeight")===0||Ga(n)?r.focusGridView({column:i[0]}):r.focusFirstHeader()}focusNextInnerContainerDefault(e){const{backwards:t,focusableContainers:n,indexWithFocus:r}=e,i=t?-1:1;for(let o=e.nextIndex;o>=0&&o<n.length;o+=i){const s=n[o];if(s.getFocusableContainerName()==="gridBody"&&(r===-1||(t?r>o:r<o))){if(this.focusGridBodyDefault(t))return!0;continue}if(X6(s,t))return!0}return!1}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},ht=(e,t)=>{for(const n of Object.keys(t))t[n]=e;return t},Q6={dispatchEvent:"CommunityCore",...ht("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...ht("GridState",{getState:0,setState:0}),...ht("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...ht("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...ht("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...ht("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...ht("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...ht("ValueCache",{expireValueCache:0}),...ht("CellApi",{getCellValue:0}),...ht("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...ht("Sort",{onSortChanged:0}),...ht("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...ht("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...ht("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...ht("HighlightChanges",{flashCells:0}),...ht("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...ht("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...ht("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...ht("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...ht("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...ht("ColumnResize",{setColumnWidths:0}),...ht("ColumnHover",{isColumnHovered:0}),...ht("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...ht("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...ht("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...ht("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...ht("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...ht("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...ht("Notes",{getNote:0,setNote:0,refreshNotes:0}),...ht("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...ht("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...ht("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,resetRowGroupExpansion:0}),...ht("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...ht("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0,onRowHeightChanged:0,resetRowHeights:0}),...ht("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...ht("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...ht("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...ht("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...ht("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...ht("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...ht("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...ht("Formula",{refreshFormulas:0}),...ht("ContextMenu",{showContextMenu:0}),...ht("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...ht("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...ht("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...ht("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...ht("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...ht("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...ht("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...ht("Toolbar",{getToolbarItemInstance:0}),...ht("StatusBar",{getStatusPanel:0}),...ht("AiToolkit",{getStructuredSchema:0})},YO={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},mTe=(e,t)=>e.eventSvc.dispatchEvent(t),hne=class{};Reflect.defineProperty(hne,"name",{value:"GridApi"});var vTe=class extends Se{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new hne,this.fns={...YO,dispatchEvent:mTe},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(Q6))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:n,beans:r}=this;
827n!==YO&&(n[e]=r?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:n,fns:{[e]:r}}=this;return r?r(n,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:n,preDestroyLink:r}=this;if(!t)Me(26,{fnName:e,preDestroyLink:r});else{const i=Q6[e];n.assertModuleRegistered(i,`api.${e}`)&&Me(27,{fnName:e,module:i})}}destroy(){super.destroy(),this.fns=YO,this.beans=null}};function yTe(e){return e.context.getId()}function bTe(e){e.gridDestroySvc.destroy()}function wTe(e){return e.gridDestroySvc.destroyCalled}function CTe(e,t){return e.gos.get(t)}function STe(e,t,n){fne(e,{[t]:n})}function fne(e,t){e.gos.updateGridOptions({options:t})}function xTe(e,t){const n=t.replace(/Module$/,"");return e.gos.isModuleRegistered(n)}function ETe(e,t,n){const r=Ko(e,t,n);if(r){const{className:o}=r;if(typeof o=="string"&&o.includes("ag-icon")||typeof o=="object"&&o["ag-icon"])return r}const i=Ss({tag:"span"});return i.appendChild(r),i}function Ko(e,t,n){let r=null;e==="smallDown"?Me(262):e==="smallLeft"?Me(263):e==="smallRight"&&Me(264);const i=n?.colDef.icons;
vendor: 4,295 bytes, line 827
827if(i&&(r=i[e]),t.gos&&!r){const o=t.gos.get("icons");o&&(r=o[e])}if(r){let o;if(typeof r=="function")o=r();else if(typeof r=="string")o=r;else{Me(38,{iconName:e});return}if(typeof o=="string")return QL(o);if(eN(o))return o;Me(133,{iconName:e});return}else{const o=t.registry.getIcon(e);return o||t.validation?.validateIcon(e),Ss({tag:"span",cls:`ag-icon ag-icon-${o??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var RTe={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},ATe=class extends qn{constructor(e,t,n){super(RTe),this.rowNode=e,this.column=t,this.eCell=n}postConstruct(){this.getGui().appendChild(Ko("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:n,eCell:r,gos:i}=this,o=n.colDef.dndSourceOnRowDrag,s=e.dataTransfer;if(s.setDragImage(r,0,0),o){const a=ft(i,{rowNode:t,dragEvent:e});o(a)}else try{const a=JSON.stringify(t.data);s.setData("application/json",a),s.setData("text/plain",a)}catch{}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}},TTe=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}.ag-dnd-ghost-not-allowed{border:var(--ag-drag-and-drop-image-not-allowed-border)}",PTe={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},OTe=class extends qn{constructor(){super(),this.dragSource=null,this.eIcon=Ye,this.eLabel=Ye,this.eGhost=Ye,this.registerCSS(TTe)}postConstruct(){const e=t=>ETe(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(PTe),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eGhost:n,eIcon:r,dragSource:i,dropIconMap:o,gos:s}=this;Jo(r),e||(e=i?.getDefaultIconName?i.getDefaultIconName():"notAllowed");const a=o[e];n.classList.toggle("ag-dnd-ghost-not-allowed",e==="notAllowed"),r.classList.toggle("ag-shake-left-to-right",t),!(a===o.hide&&s.get("suppressDragLeaveHidesColumns"))&&a&&r.appendChild(a)}setLabel(e){this.eLabel.textContent=e}};function DTe(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)}function MTe(e,t){const n=e.dragAndDrop?.findExternalZone(t.getContainer());n&&e.dragAndDrop?.removeDropTarget(n)}function ITe(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)}function _Te(e){const t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}}function FTe(e,t){const n=e.rowDropHighlightSvc;if(!n)return;const r=t?.row;let i=t?.dropIndicatorPosition;i!=="above"&&i!=="below"&&i!=="inside"&&(i="none");const o=r?.rowIndex;o==null||i==="none"?n.clear():n.set(r,i)}var gne=(e,t)=>{if(t!=null&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},kTe=(e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const n=t.pointerId;if(!gne(e,n))return null;const r={eElement:e,pointerId:n,onLost(i){NTe(r,i)}};return e.addEventListener("lostpointercapture",r.onLost),r},LTe=e=>{if(!e)return;pne(e);const{eElement:t,pointerId:n}=e;if(t){try{t.releasePointerCapture(n)}catch{}e.eElement=null}},pne=e=>{const{eElement:t,onLost:n}=e;t&&n&&(t.removeEventListener("lostpointercapture",n),e.onLost=null)},NTe=(e,t)=>
vendor: 4,582 bytes, line 827
827{pne(e);const{eElement:n,pointerId:r}=e;n&&t.pointerId===r&&gne(n,r)},Sp,jp,XO={passive:!0},fd={passive:!1},Tl=e=>{if(!jp)jp=new WeakSet;else if(jp.has(e))return!1;return jp.add(e),!0},BTe=class extends Do{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!Sp?.has(kl(this.beans))}hasPointerCapture(){const e=this.drag?.pointerCapture;return!!(e&&this.beans.eRootDiv.hasPointerCapture?.(e.pointerId))}destroy(){this.drag&&this.cancelDrag();const e=this.dragSources;for(const t of e)J6(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let n=0,r=t.length;n<r;++n){const i=t[n];if(i.params===e){t.splice(n,1),J6(i);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:n}=e,r=[];let i;if(n){const u=t.style;u&&(i=u.touchAction,u.touchAction="none")}const o={handlers:r,params:e,oldTouchAction:i};this.dragSources.push(o),JS(r,[t,"pointerdown",u=>this.onPointerDown(e,u),fd],[t,"mousedown",u=>this.onMouseDown(e,u)]);const l=this.gos.get("suppressTouch");n&&!l&&JS(r,[t,"touchstart",d=>this.onTouchStart(e,d),fd])}cancelDrag(e){const t=this.drag;e??(e=t?.eElement),e&&this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),t?.params.onDragCancel?.(),this.destroyDrag()}shouldPreventMouseEvent(e){const t=e.type;return(t==="mousemove"||t==="pointermove")&&e.cancelable&&_b(this.beans,e)&&!tb(QO(e))}initDrag(e,...t){this.drag=e;const n=this.beans,r=a=>this.onScroll(a),i=a=>this.onKeyDown(a),o=kl(n),s=Kr(n);JS(e.handlers,[o,"contextmenu",Md],[o,"keydown",i],[s,"scroll",r,{capture:!0}],[s.defaultView||window,"scroll",r],...t)}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;Sp?.get(t)===e&&Sp.delete(t),this.drag=null,LTe(e.pointerCapture),tN(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const n=this.beans;if(jp?.has(t))return;const r=t.pointerType;if(r==="touch"&&(n.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),tb(QO(t))))||!t.isPrimary||r==="mouse"&&t.button!==0)return;this.destroyDrag();const i=kl(n),o=e.eElement,s=t.pointerId,a=new ZO(i,e,t,s);Sp??(Sp=new WeakMap),Sp.set(i,a);const l=g=>{g.pointerId===s&&this.onMouseOrPointerMove(g)},u=g=>{g.pointerId===s&&this.onMouseOrPointerUp(g)},d=g=>{g.pointerId===s&&Tl(g)&&this.cancelDrag()},f=g=>this.draggingPreventDefault(g);this.initDrag(a,[i,"pointerup",u],[i,"pointercancel",d],[i,"pointermove",l,fd],[i,"touchmove",f,fd],[o,"mousemove",f,fd]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Tl(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!Tl(t)||tb(QO(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer()){this.dragging&&Md(t);return}this.destroyDrag();const r=this.beans,i=kl(r),o=new ZO(i,e,t.touches[0]),s=g=>this.onTouchMove(g),a=g=>this.onTouchUp(g),l=g=>this.onTouchCancel(g),u=g=>this.draggingPreventDefault(g),d=kl(r),f=t.target??e.eElement;this.initDrag(o,[f,"touchmove",s,XO],[f,"touchend",a,XO],[f,"touchcancel",l,XO],[d,"touchmove",u,fd],[d,"touchend",a,fd],[d,"touchcancel",l,fd]),e.dragStartPixels===0&&this.onMove(o.start)}draggingPreventDefault(e){this.dragging&&Md(e)}onMouseDown(e,t){if(t.button!==0||jp?.has(t)||this.isPointer())return;const n=this.beans;this.destroyDrag();const r=new ZO(kl(n),e,t),i=a=>this.onMouseOrPointerMove(a),o=a=>this.onMouseOrPointerUp(a),s=kl(n);this.initDrag(r,[s,"mousemove",i],[s,"mouseup",o]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):Tl(t)}onScroll(e){if(!Tl(e))return;const t=this.drag,n=t?.lastDrag;n&&this.dragging&&t.params?.onDragging?.(n)}onMouseOrPointerMove(e){Tl(e)&&(ih()&&Kr(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&Md(e),this.onMove(e))}onTouchCancel(e){const t=this.drag;!t||!Tl(e)||Xp(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){const t=this.drag;if(!t||!Tl(e))return;const n=Xp(t.start,e.touches);n&&(this.onMove(n),this.draggingPreventDefault(e))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const n=t.params;if(!this.dragging){const r=t.start,o=n.dragStartPixels??4;if(Jee(e,r,o)||(this.dragging=!0,n.capturePointer&&(t.pointerCapture=kTe(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:n.eElement}),n.onDragStart?.(r),this.drag!==t)||(n.onDragging?.(r),this.drag!==t))return}n.onDragging?.(e)}onTouchUp(e){const t=this.drag;t&&Tl(e)&&this.onUp(Xp(t.start,e.changedTouches))}onMouseOrPointerUp(e){Tl(e)&&this.onUp(e)}
vendor: 17,487 bytes, line 827
827onUp(e){const t=this.drag;t&&(e||(e=t.lastDrag),e&&this.dragging&&(this.dragging=!1,t.params.onDragStop?.(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t.params.eElement})),this.destroyDrag())}onKeyDown(e){e.key===fe.ESCAPE&&this.cancelDrag()}},J6=e=>{tN(e.handlers);const t=e.oldTouchAction;if(t!=null){const n=e.params.eElement.style;n&&(n.touchAction=t)}},ZO=class{constructor(e,t,n,r=null){this.rootEl=e,this.params=t,this.start=n,this.pointerId=r,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},QO=e=>{const t=e.target;return t instanceof Element?t:null},HTe=class extends BTe{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}},VTe=class extends Se{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:n}=this.beans;return n.addDragSource(t),()=>n.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const n=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(n)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(1),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},zTe={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},rS={skipAriaHidden:!0},GTe=class extends qn{constructor(e,t,n,r,i,o=!1){super(),this.cellValueFn=e,this.rowNode=t,this.column=n,this.customGui=r,this.dragStartPixels=i,this.alwaysVisible=o,this.dragSource=null,this.disabled=!1}isCustomGui(){return this.customGui!=null}postConstruct(){const{beans:e,customGui:t}=this;t?this.setDragElement(t,this.dragStartPixels):(this.setTemplate(zTe),this.getGui().appendChild(Ko("rowDrag",e,null)),this.addDragSource()),this.alwaysVisible||this.initCellDrag()}initCellDrag(){const{beans:e,rowNode:t}=this,n=this.refreshVisibility.bind(this);this.addManagedListeners(e.eventSvc,{rowDragVisibilityChanged:n}),this.addManagedListeners(t,{dataChanged:n,cellChanged:n}),this.refreshVisibility()}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}refreshVisibility(){if(this.alwaysVisible)return;const{beans:e,column:t,rowNode:n}=this,{gos:r,dragAndDrop:i,rowDragSvc:o}=e,s=o?.visibility;let l=!(s==="suppress"||s==="hidden"&&!i?.hasExternalDropZones()),u=l;if(l&&!this.isCustomGui()&&t){const d=t.getColDef().rowDrag;if(d===!1)l=!1;else{const f=typeof d=="function";u=t.isRowDrag(n),l=f||u}}l&&u&&n.footer&&r.get("rowDragManaged")&&(u=!1,l=!0),u&&(u=l),l||this.setDisplayed(l,rS),u||this.setVisible(u,rS),this.setDisabled(!u||s==="disabled"&&!i?.hasExternalDropZones()),l&&this.setDisplayed(l,rS),u&&this.setVisible(u,rS)}setDisabled(e){e!==this.disabled&&(this.disabled=e,this.getGui()?.classList?.toggle("ag-drag-handle-disabled",e))}getSelectedNodes(){const e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];const n=this.beans.selectionSvc?.getSelectedNodes()??[];return n.indexOf(e)!==-1?n:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;const t=this.getGui();if(this.gos.get("enableCellTextSelection")){this.removeMouseDownListener();const r=N1("pointerdown")?{pointerdown:Md}:{mousedown:Md};this.mouseDownListener=this.addManagedElementListeners(t,r)[0]}const n=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:r=>this.getDragItemName(r,n),getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}getDragItemName(e,t){const n=e?.dragItem||this.getDragItem(),r=(e?.dropTarget?.rows.length??n.rowNodes?.length)||1,i=this.column?.getColDef()?.rowDragText??this.gos.get("rowDragText");if(i)return i(n,r);if(r!==1)return`${r} ${t("rowDragRows","rows")}`;const o=this.cellValueFn();return o||`1 ${t("rowDragRow","rows")}`}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},jTe=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.includes("x"),this.scrollVertically=e.scrollAxis.includes("y"),this.scrollByTick=e.scrollByTick??20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}get scrolling(){return this.tickingInterval!==null}check(e,t=!1){const n=!this.scrollVertically||t||this.shouldSkipVerticalScroll(),r=!this.scrollHorizontally||this.shouldSkipHorizontalScroll();if(n&&r)return;const i=this.scrollContainer.getBoundingClientRect(),o=this.scrollByTick;this.tickLeft=!r&&e.clientX<i.left+o,this.tickRight=!r&&e.clientX>i.right-o,this.tickUp=!n&&e.clientY<i.top+o,this.tickDown=!n&&e.clientY>i.bottom-o,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)}},l1=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}},Z1=e=>{let t=e.childrenAfterGroup;for(;t?.length;){const n=t[0];if(n.sourceRowIndex>=0)return n;t=n.childrenAfterGroup}},UTe=(e,t,n,r)=>{if(!t.size||!e)return!1;let i=!1;const o=e.length??0;let s=-1;n&&(s=n.sourceRowIndex,n=s<0?Z1(n):null,n&&(s=n.sourceRowIndex)),s<0||s>=o?s=o:r||++s;let a=s,l=Math.min(s,o-1);for(const f of t){const g=f.sourceRowIndex;g<a&&(a=g),g>l&&(l=g)}let u=a;for(let f=a;f<s;++f){const g=e[f];t.has(g)||(g.sourceRowIndex!==u&&(g.sourceRowIndex=u,e[u]=g,i=!0),++u)}let d=l;for(let f=l;f>=s;--f){const g=e[f];t.has(g)||(g.sourceRowIndex!==d&&(g.sourceRowIndex=d,e[d]=g,i=!0),--d)}for(const f of t)f.sourceRowIndex!==u&&(f.sourceRowIndex=u,e[u]=f,i=!0),++u;return i};function WTe(e,t){return xN(e,t.target)?.getFocusedCellPosition()??null}function ej(e,t){const n=ki(e.gos,"normal"),r=t;let i,o;r.clientX!=null||r.clientY!=null?(i=r.clientX,o=r.clientY):(i=r.x,o=r.y);const{pageFirstPixel:s}=e.pageBounds.getCurrentPagePixelRange();if(o+=s,n){const a=e.ctrlsSvc.getScrollFeature(),l=a.getVScrollPosition(),u=a.getHScrollPosition();i+=u.left,o+=l.top}return{x:i,y:o}}var $Te=.25,qTe=class extends Se{constructor(e){super(),this.eContainer=e,this.lastDraggingEvent=null,this.autoScroll=null,this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,t=>{const n=()=>t.gridBodyCtrl.scrollFeature.getVScrollPosition().top,r=new jTe({scrollContainer:t.gridBodyCtrl.eBodyViewport,scrollAxis:"y",getVerticalPosition:n,setVerticalPosition:i=>t.gridBodyCtrl.scrollFeature.setVerticalScrollPosition(i),onScrollCallback:()=>{const i=n();if(this.autoScrollOldV!==i){this.autoScrollOldV=i,this.autoScrollChanging=!0;return}const o=this.autoScrollChanging;this.autoScrollChanged=o,this.autoScrollChanging=!1,o&&(e.dragAndDrop?.nudge(),this.autoScrollChanged=!1)}});this.autoScroll=r,this.clearAutoScroll()})}destroy(){super.destroy(),this.clearAutoScroll(),this.autoScroll=null,this.lastDraggingEvent=null,this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(e){return e?.dropTarget?.allowed===!1||this.beans.rowDragSvc.visibility!=="visible"?"notAllowed":"move"}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const n=this.beans.selectionSvc?.getSelectedNodes();if(n&&n.indexOf(t)>=0)return n.slice().sort(KTe)}return[t]}onDragEnter(e){this.dragging(e,!0)}onDragging(e){this.dragging(e,!1)}dragging(e,t){const{lastDraggingEvent:n,beans:r}=this;if(t){const a=this.getRowNodes(e);e.dragItem.rowNodes=a,nj(a,!0)}this.lastDraggingEvent=e;const i=e.fromNudge,o=this.makeRowsDrop(n,e,i,!1);r.rowDropHighlightSvc?.fromDrag(e),t&&this.dispatchGridEvent("rowDragEnter",e),this.dispatchGridEvent("rowDragMove",e);const s=this.autoScroll;o?.rowDragManaged&&o.moved&&o.allowed&&o.sameGrid&&!o.suppressMoveWhenRowDragging&&(!i&&!s?.scrolling||this.autoScrollChanged)&&this.dropRows(o),s?.check(e.event)}isFromThisGrid(e){return e.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(e,t,n,r){const{beans:i,gos:o}=this,s=this.newRowsDrop(t,r),a=i.rowModel;if(t.dropTarget=s,t.changed=!1,!s)return null;let{sameGrid:l,rootNode:u,source:d,target:f}=s;f??(f=a.getRow(a.getRowCount()-1)??null);const g=this.beans.groupEditSvc,m=!!g?.canSetParent(s);let y=null;if(f?.footer){const w=iF(a,-1,f)??iF(a,1,f);m&&(y=f.sibling??u),f=w??null}f?.detail&&(f=f.parent),s.moved&&(s.moved=d!==f);let b=.5;if(f&&(l&&s.moved&&(y||!m)?b=d.rowIndex>f.rowIndex?-.5:.5:b=(s.y-f.rowTop-f.rowHeight/2)/f.rowHeight||0),!m&&l&&f&&s.moved&&hr(o)){const w=YTe(a,s);w&&(b=d.rowIndex>w.rowIndex?-.5:.5,f=w,s.moved&&(s.moved=d!==f))}return s.target=f,s.newParent=y,s.pointerPos=XTe(f,s.y),s.yDelta=b,g?.fixRowsDrop(s,m,n,b),this.validateRowsDrop(s,m,r),t.changed||(t.changed=tj(e?.dropTarget,s)),s}newRowsDrop(e,t){const{beans:n,gos:r}=this,i=n.rowModel.rootNode,o=hr(r)?r.get("rowDragManaged"):!1,s=r.get("suppressMoveWhenRowDragging"),a=this.isFromThisGrid(e);let{rowNode:l,rowNodes:u}=e.dragItem;if(u||(u=l?[l]:[]),l||(l=u[0]),!l||!i)return null;const d=this.beans.dragAndDrop.isDropZoneWithinThisGrid(e);let f=!0;o&&(!u.length||n.rowDragSvc.visibility!=="visible"||(s||!a)&&!d)&&(f=!1);const g=ej(n,e).y,m=this.getOverNode(g);return{api:n.gridApi,context:n.gridOptions.context,draggingEvent:e,rowDragManaged:o,suppressMoveWhenRowDragging:s,sameGrid:a,withinGrid:d,treeData:!1,rootNode:i,moved:l!==m,y:g,overNode:m,overIndex:m?.rowIndex??-1,pointerPos:"none",position:"none",source:l,target:m??null,newParent:null,rows:u,allowed:f,highlight:!t&&o&&s&&(d||!a),yDelta:0,inside:!1,droppedManaged:!1}}validateRowsDrop(e,t,n){const{source:r,target:i,yDelta:o,inside:s,moved:a,rowDragManaged:l,suppressMoveWhenRowDragging:u}=e;e.moved&&(e.moved=r!==i);const{position:d,fallbackPosition:f}=this.computeDropPosition(a,s,o);e.position=d,t||(e.newParent=null),this.enforceSuppressMoveWhenRowDragging(e,u,"initial");const g=(!l||e.allowed)&&this.gos.get("isRowValidDropPosition");g&&this.applyDropValidator(e,t,n,l,g),l&&(e.rows=this.filterRows(e)),this.beans.groupEditSvc?.clearNewSameParent(e,t),this.enforceSuppressMoveWhenRowDragging(e,u,"final"),e.position==="inside"&&(!e.allowed||!e.newParent)&&(e.position=f)}computeDropPosition(e,t,n){const r=n<0?"above":"below";return e?{position:t?"inside":r,fallbackPosition:r}:{position:"none",fallbackPosition:r}}enforceSuppressMoveWhenRowDragging(e,t,n){if(t){if(n==="initial"){e.moved||(e.allowed=!1);return}(!e.rows.length||e.position==="none")&&(e.allowed=!1)}}applyDropValidator(e,t,n,r,i){this.beans.groupEditSvc?.clearNewSameParent(e,t);const o=i(e);if(!o){e.allowed=!1;return}if(typeof o!="object")return;o.rows!==void 0&&(e.rows=o.rows??[]),t&&o.newParent!==void 0&&(e.newParent=o.newParent),o.target!==void 0&&(e.target=o.target),o.position&&(e.position=o.position),o.allowed!==void 0?e.allowed=o.allowed:r||(e.allowed=!0);const s=e.draggingEvent;o.changed&&s&&(s.changed=!0),!n&&o.highlight!==void 0&&(e.highlight=o.highlight)}addRowDropZone(e){if(!e.getContainer()){Me(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e.getContainer())){Me(56);return}const n=e.fromGrid?e:{getContainer:e.getContainer,onDragEnter:e.onDragEnter&&(i=>e.onDragEnter(this.rowDragEvent("rowDragEnter",i))),onDragLeave:e.onDragLeave&&(i=>e.onDragLeave(this.rowDragEvent("rowDragLeave",i))),onDragging:e.onDragging&&(i=>e.onDragging(this.rowDragEvent("rowDragMove",i))),onDragStop:e.onDragStop&&(i=>e.onDragStop(this.rowDragEvent("rowDragEnd",i))),onDragCancel:e.onDragCancel&&(i=>e.onDragCancel(this.rowDragEvent("rowDragCancel",i)))},r={isInterestedIn:i=>i===2,getIconName:()=>"move",external:!0,...n};t.addDropTarget(r),this.addDestroyFunc(()=>t.removeDropTarget(r))}getRowDropZone(e){return{getContainer:this.getContainer.bind(this),onDragEnter:n=>{this.onDragEnter(n),e?.onDragEnter?.(this.rowDragEvent("rowDragEnter",n))},onDragLeave:n=>{this.onDragLeave(n),e?.onDragLeave?.(this.rowDragEvent("rowDragLeave",n))},onDragging:n=>{this.onDragging(n),e?.onDragging?.(this.rowDragEvent("rowDragMove",n))},onDragStop:n=>{this.onDragStop(n),e?.onDragStop?.(this.rowDragEvent("rowDragEnd",n))},onDragCancel:n=>{this.onDragCancel(n),e?.onDragCancel?.(this.rowDragEvent("rowDragCancel",n))},fromGrid:!0}}getOverNode(e){const{pageBounds:t,rowModel:n}=this.beans,i=e>t.getCurrentPagePixelRange().pageLastPixel?-1:n.getRowIndexAtPixel(e);return i>=0?n.getRow(i):void 0}rowDragEvent(e,t){const n=this.beans,{dragItem:r,dropTarget:i,event:o,vDirection:s}=t,a=i?.rootNode===n.rowModel.rootNode,l=a?i.y:ej(n,t).y,u=a?i.overNode:this.getOverNode(l),d=a?i.overIndex:u?.rowIndex??-1;return{api:n.gridApi,context:n.gridOptions.context,type:e,event:o,node:r.rowNode,nodes:r.rowNodes,overIndex:d,overNode:u,y:l,vDirection:s,rowsDrop:i}}dispatchGridEvent(e,t){const n=this.rowDragEvent(e,t);this.eventSvc.dispatchEvent(n)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e,!1)}onDragStop(e){const t=this.lastDraggingEvent?.dropTarget??null,n=this.makeRowsDrop(this.lastDraggingEvent,e,!1,!0);this.dispatchGridEvent("rowDragEnd",e),n?.allowed&&n.rowDragManaged&&(!t?.droppedManaged||tj(t,n))&&this.dropRows(n),this.stopDragging(e,!0)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e,!0)}stopDragging(e,t){this.clearAutoScroll(),this.beans.groupEditSvc?.stopDragging(t),this.beans.rowDropHighlightSvc?.fromDrag(null),nj(e.dragItem.rowNodes,!1),this.lastDraggingEvent=null}clearAutoScroll(){this.autoScroll?.ensureCleared(),this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}dropRows(e){return e.droppedManaged=!0,e.sameGrid?this.csrmMoveRows(e):this.csrmAddRows(e)}csrmAddRows({position:e,target:t,rows:n}){const r=wm(this.gos),i=this.beans.rowModel,o=n.filter(({data:a,rowPinned:l})=>!i.getRowNode(r?.({data:a,level:0,rowPinned:l})??a.id)).map(({data:a})=>a);if(o.length===0)return!1;let s;if(t){const a=t.sourceRowIndex>=0?t:Z1(t);a&&(s=a.sourceRowIndex+(e==="above"?0:1))}return i.updateRowData({add:o,addIndex:s}),!0}filterRows(e){const{groupEditSvc:t}=this.beans,{rows:n,sameGrid:r}=e;let i;for(let o=0,s=n.length;o<s;++o){let a=!0;const l=n[o];(!l||l.footer||r&&l.destroyed&&!l.group||!this.csrmGetLeaf(l))&&(a=!1),a&&t&&!t.canDropRow(l,e)&&(a=!1),a?i?.push(l):i??(i=n.slice(0,o))}return i??n}csrmMoveRows(e){const t=this.beans.groupEditSvc;return t?.isGroupingDrop(e)?t.dropGroupEdit(e):this.csrmMoveRowsReorder(e)}csrmMoveRowsReorder({position:e,target:t,rows:n,newParent:r,rootNode:i}){let o=!1;const s=new Set;for(const g of n){r&&g.parent!==r&&(g.treeParent=r,o=!0);const m=this.csrmGetLeaf(g);m&&s.add(m)}if(!o&&s.size===0)return!1;const a=this.beans.focusSvc,l=a.getFocusedCell(),u=l&&Gp(this.beans,l);if(s.size&&UTe(i._leafs,s,t,e==="above")&&(o=!0),!o)return!1;const d=this.beans.rowModel,f=new l1;return f.reordered=!0,d.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:f}),u?u.focusCell():a.clearFocusedCell(),!0}csrmGetLeaf(e){if(e.sourceRowIndex>=0)return e.destroyed?void 0:e;const t=this.beans.groupEditSvc;return t?t.csrmFirstLeaf(e):Z1(e)}},tj=(e,t)=>e!==t&&(e?.sameGrid!==t.sameGrid||e?.allowed!==t.allowed||e?.position!==t.position||e?.target!==t.target||e?.source!==t.source||e?.newParent!==t.newParent||!th(e?.rows,t.rows)),KTe=({rowIndex:e},{rowIndex:t})=>e!==null&&t!==null?e-t:0,nj=(e,t)=>{for(let n=0,r=e?.length||0;n<r;++n){const i=e[n];i.dragging!==t&&(i.dragging=t,i.dispatchRowEvent("draggingChanged"))}},YTe=(e,t)=>
vendor: 4,202 bytes, line 827
827{let n=null,r=t.target;if(r&&t.rows.indexOf(r)<0)return null;const i=t.source;if(!r||!i)return null;let o=r.rowIndex-i.rowIndex;const s=o<0?-1:1;o=t.suppressMoveWhenRowDragging?Math.abs(o):1;const a=new Set(t.rows);do{const l=iF(e,s,r);if(!l)break;a.has(l)||(n=l,--o),r=l}while(o>0);return n},XTe=(e,t)=>{const n=e?.rowTop,r=e?.rowHeight??0;if(n==null||!r||r<=0)return"none";const i=t-n,o=r*$Te;return i<=o?"above":i>=r-o?"below":"inside"},ZTe=class extends Se{constructor(){super(...arguments),this.beanName="rowDragSvc",this.rowDragFeature=null,this.visibility="suppress"}setupRowDrag(e,t){const n=t.createManagedBean(new qTe(e)),r=this.beans.dragAndDrop;r.addDropTarget(n),t.addDestroyFunc(()=>r.removeDropTarget(n)),this.rowDragFeature=n;const i=()=>this.refreshVisibility();this.addManagedPropertyListeners(["rowDragManaged","suppressRowDrag","refreshAfterGroupEdit"],i),this.addManagedEventListeners({newColumnsLoaded:i,columnRowGroupChanged:i,columnPivotModeChanged:i,sortChanged:i,filterChanged:i}),this.visibility=this.computeVisibility()}createRowDragComp(e,t,n,r,i,o){return new GTe(e,t,n,r,i,o)}createRowDragCompForRow(e,t){if(qd(this.gos))return;const n=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${n("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,n,r,i,o){const s=this.gos;return s.get("rowDragManaged")&&(!hr(s)||s.get("pagination"))?void 0:this.createRowDragComp(n,e,t,r,i,o)}cancelRowDrag(){this.rowDragFeature?.lastDraggingEvent&&this.beans.dragSvc?.cancelDrag()}computeVisibility(){const e=this.beans,t=e.gos;if(t.get("suppressRowDrag"))return"suppress";if(!t.get("rowDragManaged"))return"visible";const r=e.colModel.pivotMode;return(r||e.rowGroupColsSvc?.columns?.length)&&!t.get("refreshAfterGroupEdit")?"hidden":r||e.filterManager?.isAnyFilterPresent()||e.sortSvc?.isSortActive()?"disabled":"visible"}refreshVisibility(){const e=this.visibility,t=this.computeVisibility();e!==t&&(this.visibility=t,this.eventSvc?.dispatchEvent({type:"rowDragVisibilityChanged"}))}},QTe=class extends Se{constructor(){super(...arguments),this.beanName="rowDropHighlightSvc",this.uiLevel=0,this.dragging=!1,this.row=null,this.position="none"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){const e=this.row,t=this.dragging;!e||e?.rowIndex===null||this.position==="none"?this.clear():this.set(e,this.position),this.dragging=t}destroy(){this.clear(),super.destroy()}clear(){const e=this.row;this.dragging=!1,e&&(this.uiLevel=0,this.position="none",this.row=null,e.dispatchRowEvent("rowHighlightChanged"))}set(e,t){const n=e!==this.row,r=e.uiLevel,i=t!==this.position,o=r!==this.uiLevel;this.dragging=!1,(n||i||o)&&(n&&this.clear(),this.uiLevel=r,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}fromDrag(e){const t=e?.dropTarget;if(t){const{highlight:n,target:r,position:i}=t;if(n&&r&&i!=="none"){this.set(r,i),this.dragging=!0;return}}this.dragging&&this.clear()}},mne={moduleName:"Drag",version:Le,beans:[HTe]},JTe={moduleName:"DragAndDrop",version:Le,dynamicBeans:{dndSourceComp:ATe},icons:{rowDrag:"grip"}},vne={moduleName:"SharedDragAndDrop",version:Le,beans:[IRe],dependsOn:[mne],userComponents:{agDragAndDropImage:OTe},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},ePe={moduleName:"RowDrag",version:Le,beans:[QTe,ZTe],apiFunctions:{addRowDropZone:DTe,removeRowDropZone:MTe,getRowDropZoneParams:ITe,getRowDropPositionIndicator:_Te,setRowDropPositionIndicator:FTe},dependsOn:[vne]},tPe={moduleName:"HorizontalResize",version:Le,beans:[VTe],dependsOn:[mne]},nPe=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}",rPe=class extends Se{constructor(){super(...arguments),this.beanName="
827colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){const{executeNextFuncs:n,executeLaterFuncs:r}=this;if(n.length===0&&r.length===0){e(),t();return}const i=o=>{for(;o.length;){const s=o.pop();s&&s()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),i(n)},0),window.setTimeout(()=>{t(),i(r)},200)})}};function iPe(e,t,n){e.colMoves?.moveColumnByIndex(t,n,"api")}function oPe(e,t,n){e.colMoves?.moveColumns(t,n,"api")}var sPe=class extends Se{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;if(t)for(const n of t)n.primary&&(n.isAnyFunctionActive()||(n.isAllowValue()?this.columnsToAggregate.push(n):n.isAllowRowGroup()?this.columnsToGroup.push(n):n.isAllowPivot()&&this.columnsToPivot.push(n)))}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:n,pivotColsSvc:r}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&n?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&r?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function aPe(e,t){!t||t.length<=1||t.filter(r=>e.indexOf(r)<0).length>0||t.sort((r,i)=>{const o=e.indexOf(r),s=e.indexOf(i);return o-s})}function lPe(e){const t=[...e];for(const n of e){let r=null,i=n.parent;for(;i?.getDisplayedLeafColumns().length===1;)r=i,i=i.parent;if(r!=null){const s=!!r.getColGroupDef()?.marryChildren?r.getProvidedColumnGroup().getLeafColumns():r.getLeafColumns();for(const a of s)t.includes(a)||t.push(a)}}return t}function uPe(e,t,n,r){const i=r.allCols;let o=null,s=null;for(let a=0;a<e.length;a++){const l=e[a],u=n.getProposedColumnOrder(t,l);if(!n.doesOrderPassRules(u))continue;const d=u.filter(g=>i.includes(g));if(s===null)s=d;else if(!th(d,s))break;const f=dPe(u);(o===null||f<o.fragCount)&&(o={move:l,fragCount:f})}return o}function yne(e){const{isFromHeader:t,fromLeft:n,xPosition:r,fromEnter:i,fakeEvent:o,pinned:s,gos:a,colModel:l,colMoves:u,visibleCols:d}=e;let{allMovingColumns:f}=e;t&&(f=lPe(f));const g=f.slice();aPe(l.getCols(),g);const m=fPe({movingCols:g,draggingRight:n,xPosition:r,pinned:s,gos:a,colModel:l,visibleCols:d}),y=cPe(g,l);if(m.length===0)return;const b=m[0];if(y!==null&&(t||!i)&&!o&&(!n&&b>=y||n&&b<=y))return;const C=uPe(m,g,u,d);if(!C)return;const E=C.move;if(!(E>l.getCols().length-g.length))return{columns:g,toIndex:E}}function bne(e){const{columns:t,toIndex:n}=yne(e)||{},{finished:r,colMoves:i}=e;return!t||n==null?null:(i.moveColumns(t,n,"uiColumnMoved",r),r?null:{columns:t,toIndex:n})}function cPe(e,t){const n=t.getCols(),r=e.map(l=>n.indexOf(l)).sort((l,u)=>l-u),i=r[0];return gn(r)-i!==r.length-1?null:i}function dPe(e){function t(r){const i=[];let o=r.getOriginalParent();for(;o!=null;)i.push(o),o=o.getOriginalParent();return i}let n=0;for(let r=0;r<e.length-1;r++){let i=t(e[r]),o=t(e[r+1]);[i,o]=i.length>o.length?[i,o]:[o,i];for(const s of i)o.indexOf(s)===-1&&n++}return n}function hPe(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function fPe(e){const{movingCols:t,draggingRight:n,xPosition:r,pinned:i,gos:o,colModel:s,visibleCols:a}=e;if(o.get("suppressMovableColumns")||t.some(A=>A.colDef.suppressMovable))return[];const u=hPe(a,i),d=s.getCols(),f=u.filter(A=>t.includes(A)),g=u.filter(A=>!t.includes(A)),m=d.filter(A=>!t.includes(A));let y=0,b=r;if(n){let A=0;for(const T of f)A+=T.getActualWidth();b-=A}if(b>0){for(let A=0;A<g.length;A++){const T=g[A];if(b-=T.getActualWidth(),b<0)break;y++}n&&y++}let w;if(y>0){const A=g[y-1];w=m.indexOf(A)+1}else w=m.indexOf(g[0]),w===-1&&(w=0);const C=[w],E=(A,T)=>A-T;if(n){let A=w+1;const T=d.length-1;for(;A<=T;)C.push(A),A++;C.sort(E)}else{let A=w;const T=d.length-1;let P=d[A];for(;A<=T&&u.indexOf(P)<0;)A++,C.push(A),P=d[A];A=w-1;const O=0;for(;A>=O;)C.push(A),A--;C.sort(E).reverse()}return C}function lF(e){const{pinned:t,fromKeyboard:n,gos:r,ctrlsSvc:i,useHeaderRow:o,skipScrollPadding:s}=e;let a=i.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return a?(n&&(l-=a.getBoundingClientRect().left),r.get("enableRtl")&&(o&&(a=a.querySelector(".ag-header-row")),l=a.clientWidth-l),t==null&&!s&&(l+=i.get("center").getCenterViewportScrollLeft()),l):0}function JO(e,t){for(const n of e)n.moving=t,n.dispatchColEvent("movingChanged","uiColumnMoved")}var rj=7,uF=100,iS=uF/2,gPe=5,pPe=100,mPe=class extends Se{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!Ve(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:n}=t||{},r=n?.columns??[];for(const i of r){const o=i.getPinned();if(i.getColDef().lockPinned){if(o==e)return"move";continue}const s=n?.containerType;if(s===e||!e)return"move";if(e&&(!o||s!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,n=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(n,!0,"uiColumnDragged");else{const i=t.visibleState,o=(n||[]).filter(s=>i[s.getId()]&&!s.isVisible());this.setColumnsVisible(o,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(n,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,n=!1,r=!1){const{gos:i,ctrlsSvc:o}=this.beans,s=i.get("suppressMoveWhenColumnDragging");if(r&&!s){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!r&&rr(e.hDirection))return;const a=lF({x:e.x,pinned:this.pinned,gos:i,ctrlsSvc:o});t||this.checkCenterForScrolling(a),s?this.handleColumnDragWhileSuppressingMovement(e,t,n,a,r):this.handleColumnDragWhileAllowingMovement(e,t,n,a,r)}
vendor: 5,285 bytes, line 827
827onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,n){if(!e?.length)return;const r=e.filter(i=>!i.getColDef().lockVisible);r.length&&this.beans.colModel.setColsVisible(r,t,n)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:n}=e;this.beans.colMoves.moveColumns(t,n,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,n,r,i){const o=this.getAllMovingColumns(e,!0);if(i){const s=this.isAttemptingToPin(o);s&&this.attemptToPinColumns(o,void 0,!0);const{fromLeft:a,xPosition:l}=this.getNormalisedXPositionInfo(o,s)||{};if(a==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:o,xPosition:l,fromEnter:t,fakeEvent:n,fromLeft:a})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(o,r)}}handleColumnDragWhileAllowingMovement(e,t,n,r,i){const o=this.getAllMovingColumns(e),s=this.normaliseDirection(e.hDirection)==="right",a=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:o,isFromHeader:a,xPosition:r,fromLeft:s,fromEnter:t,fakeEvent:n}),u=bne({...l,finished:i});u&&(this.lastMovedInfo=u)}getAllMovingColumns(e,t=!1){const n=e.dragSource.getDragItem();let r;t?(r=n.columnsInSplit,r||(r=n.columns)):r=n.columns;const i=o=>o.colDef.lockPinned?o.getPinned()==this.pinned:!0;return r?r.filter(i):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:n,xPosition:r,fromLeft:i,fromEnter:o,fakeEvent:s}=e,{gos:a,colModel:l,colMoves:u,visibleCols:d}=this.beans;return{allMovingColumns:t,isFromHeader:n,fromLeft:i,xPosition:r,pinned:this.pinned,fromEnter:o,fakeEvent:s,gos:a,colModel:l,colMoves:u,visibleCols:d}}highlightHoveredColumn(e,t){const{gos:n,colModel:r}=this.beans,i=n.get("enableRtl"),o=r.getCols().filter(d=>d.isVisible()&&d.getPinned()===this.pinned);let s=null,a=null,l=null;for(const d of o){if(a=d.getActualWidth(),s=this.getNormalisedColumnLeft(d,0,i),s!=null){const f=s+a;if(s<=t&&f>=t){l=d;break}}s=null,a=null}if(l)e.indexOf(l)!==-1&&(l=null);else{for(let d=o.length-1;d>=0;d--){const f=o[d],g=o[d].parent;if(!g){l=f;break}const m=g?.getDisplayedLeafColumns();if(m.length){l=gn(m);break}}if(!l)return;s=this.getNormalisedColumnLeft(l,0,i),a=l.getActualWidth()}if(l==null||s==null||a==null){this.lastHighlightedColumn?.column!==l&&this.clearHighlighted();return}let u;if(t-s<a/2){const d=o.indexOf(l);d===0?u=0:(u=1,l=o[d-1])}else u=1;(this.lastHighlightedColumn?.column!==l||this.lastHighlightedColumn?.position!==u)&&this.clearHighlighted(),ij(l,u),this.lastHighlightedColumn={column:l,position:u}}getNormalisedXPositionInfo(e,t){const{gos:n,visibleCols:r}=this.beans,i=n.get("enableRtl"),{firstMovingCol:o,column:s,position:a}=this.getColumnMoveAndTargetInfo(e,t,i);if(!o||!s||a==null)return;const l=r.allCols,u=l.indexOf(o),d=l.indexOf(s),f=a===0,g=u<d||u===d&&!f;let m=0;if(f?g&&(m-=1):g||(m+=1),d+m===u)return;const y=l[d+m];if(!y)return;const b=this.getNormalisedColumnLeft(y,20,i);return{fromLeft:g,xPosition:b}}getColumnMoveAndTargetInfo(e,t,n){const r=this.lastHighlightedColumn||{},{firstMovingCol:i,lastMovingCol:o}=vPe(e);if(!i||!o||r.column||!t)return{firstMovingCol:i,...r};const a=this.getPinDirection()==="left";return{firstMovingCol:i,position:a?1:0,column:a!==n?i:o}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,n){const{gos:r,ctrlsSvc:i}=this.beans,o=e.getLeft();if(o==null)return null;const s=e.getActualWidth();return lF({x:n?o+s-t:o+t,pinned:e.getPinned(),useHeaderRow:n,skipScrollPadding:!0,gos:r,ctrlsSvc:i})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,n=this.failedMoveAttempts>rj;return t&&n||e.some(r=>r.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:n,fromEnter:r,fakeEvent:i,fromLeft:o}=e,s=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:n,fromLeft:o,fromEnter:r,fakeEvent:i}),{columns:a,toIndex:l}=yne(s)||{};a&&l!=null&&(this.lastMovedInfo={columns:a,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(ij(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),n=t.getCenterViewportScrollLeft(),r=n+t.getCenterWidth();let i,o;this.gos.get("enableRtl")?(i=e<n+iS,o=e>r-iS):(o=e<n+iS,i=e>r-iS),this.needToMoveRight=i,this.needToMoveLeft=o,o||i?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),pPe),this.beans.dragAndDrop.setDragImageCompIcon(this.needToMoveLeft?"left"
827:"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.setDragImageCompIcon(this.getIconName()))}moveInterval(){let e;this.intervalCount++,e=10+this.intervalCount*gPe,e>uF&&(e=uF);let t=null;const n=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:r,dragAndDrop:i,gos:o}=this.beans;if(this.failedMoveAttempts<=rj+1||!r)return;if(i.setDragImageCompIcon("pinned"),!o.get("suppressMoveWhenColumnDragging")){const s=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(s,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,n=!1){const r=(e||[]).filter(s=>!s.colDef.lockPinned);if(!r.length)return 0;n&&(t=this.getPinDirection());const{pinnedCols:i,dragAndDrop:o}=this.beans;return i?.setColsPinned(r,t,"uiColumnDragged"),n&&o.nudge(),r.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function ij(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function vPe(e){const t=e.length;let n,r;for(let i=0;i<t;i++){if(!n){const o=e[i];o.getLeft()!=null&&(n=o)}if(!r){const o=e[t-1-i];o.getLeft()!=null&&(r=o)}if(n&&r)break}return{firstMovingCol:n,lastMovingCol:r}}var yPe=class extends Se{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,n=this.pinned;e.whenReady(this,r=>{let i;const o=r.gridBodyCtrl.eBodyViewport;switch(n){case"left":i=[[o,r.left.eContainer],[r.bottomLeft.eContainer],[r.topLeft.eContainer]];break;case"right":i=[[o,r.right.eContainer],[r.bottomRight.eContainer],[r.topRight.eContainer]];break;default:i=[[o,r.center.eViewport],[r.bottomCenter.eViewport],[r.topCenter.eViewport]];break}this.eSecondaryContainers=i}),this.moveColumnFeature=this.createManagedBean(new mPe(n)),this.bodyDropPivotTarget=this.createManagedBean(new sPe(n)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.pivotMode&&e.dragSource.type===0}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}};function wne(e,t){const n=[],r=[],i=[];return e.forEach(s=>{const a=s.colDef.lockPosition;a==="right"?i.push(s):a==="left"||a===!0?n.push(s):r.push(s)}),t.get("enableRtl")?[...i,...r,...n]:[...n,...r,...i]}function Cne(e,t){let n=!0;return sc(null,t,r=>{if(!Yi(r))return;const i=r;if(!i.getColGroupDef()?.marryChildren)return;const a=[];for(const g of i.getLeafColumns()){const m=e.indexOf(g);a.push(m)}const l=Math.max.apply(Math,a),u=Math.min.apply(Math,a),d=l-u,f=i.getLeafColumns().length-1;d>f&&(n=!1)}),n}var bPe=class extends Se{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,n){const r=this.beans.colModel.getCols();if(!r)return;const i=r[e];this.moveColumns([i],t,n)}moveColumns(e,t,n,r=!0){const{colModel:i,colAnimation:o,visibleCols:s,eventSvc:a}=this.beans,l=i.getCols();if(!l)return;if(t>l.length-e.length){Me(30,{toIndex:t});return}o?.start();const u=i.getColsForKeys(e);this.doesMovePassRules(u,t)&&(C6(i.getCols(),u,t),s.refresh(n),a.dispatchEvent({type:"columnMoved",columns:u,column:u.length===1?u[0]:null,toIndex:t,finished:r,source:n})),o?.finish()}doesMovePassRules(e,t){const n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)}doesOrderPassRules(e){const{colModel:t,gos:n}=this.beans;return!(!Cne(e,t.getColTree())||!(i=>{const o=u=>u?u==="left"||u===!0?-1:1:0,s=n.get("enableRtl");let a=s?1:-1,l=!0;for(const u of i){const d=o(u.colDef.lockPosition);s?d>a&&(l=!1):d<a&&(l=!1),a=d}return l})(e))}getProposedColumnOrder(e,t){const r=this.beans.colModel.getCols().slice();return C6(r,e,t),r}createBodyDropTarget(e,t){return new yPe(e,t)}moveHeader(e,t,n,r,i){const{ctrlsSvc:o,gos:s,colModel:a,visibleCols:l,focusSvc:u}=this.beans,d=t.getBoundingClientRect(),f=d.left,g=xr(n),m=g?d.width:n.getActualWidth(),y=e==="left"!==s.get("enableRtl"),b=lF({x:y?f-20:f+m+20,pinned:r,fromKeyboard:!0,gos:s,ctrlsSvc:o}),w=u.focusedHeader;bne({allMovingColumns:g?n.getLeafColumns():[n],isFromHeader:!0,fromLeft:e==="right",xPosition:b,pinned:r,fromEnter:!1,fakeEvent:!1,gos:s,colModel:a,colMoves:this,visibleCols:l,finished:!0});let C;if(g){const E=n.getDisplayedLeafColumns();C=y?E[0]:gn(E)}else C=n;
vendor: 4,306 bytes, line 827
827if(o.getScrollFeature().ensureColumnVisible(C,"auto"),(!i.isAlive()||s.get("ensureDomOrder"))&&w){let E;if(g){const A=n.getGroupId(),T=n.getLeafColumns();if(!T.length)return;const P=T[0].parent;if(!P)return;E=wPe(P,A)}else E=n;E&&u.focusHeaderPosition({headerPosition:{...w,column:E}})}}setDragSourceForHeader(e,t,n){const{gos:r,colModel:i,dragAndDrop:o,visibleCols:s}=this.beans;let a=!r.get("suppressDragLeaveHidesColumns");const l=xr(t),u=l?t.getProvidedColumnGroup().getLeafColumns():[t],f={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:l?()=>SPe(t,s.allCols):()=>CPe(t),dragItemName:n,onDragStarted:()=>{a=!r.get("suppressDragLeaveHidesColumns"),JO(u,!0)},onDragStopped:()=>JO(u,!1),onDragCancelled:()=>JO(u,!1),onGridEnter:g=>{if(a){const{columns:m=[],visibleState:y}=g??{},b=l?C=>!y||y[C.getColId()]:()=>!0,w=m.filter(C=>!C.getColDef().lockVisible&&b(C));i.setColsVisible(w,!0,"uiColumnMoved")}},onGridExit:g=>{if(a){const m=g?.columns?.filter(y=>!y.getColDef().lockVisible)||[];i.setColsVisible(m,!1,"uiColumnMoved")}}};return o.addDragSource(f,!0),f}};function wPe(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.parent}}function CPe(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function SPe(e,t){const n=e.getProvidedColumnGroup().getLeafColumns(),r={};for(const a of n)r[a.getId()]=a.isVisible();const i=[];for(const a of t)n.indexOf(a)>=0&&(i.push(a),Zl(n,a));for(const a of n)i.push(a);const o=[],s=e.getLeafColumns();for(const a of i)s.indexOf(a)!==-1&&o.push(a);return{columns:i,columnsInSplit:o,visibleState:r,containerType:o[0]?.pinned}}var xPe={moduleName:"ColumnMove",version:Le,beans:[bPe,rPe],apiFunctions:{moveColumnByIndex:iPe,moveColumns:oPe},dependsOn:[vne],css:[nPe]},EPe=class extends Se{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const n=this.getHeaderCellForColumn(e);if(!n)return-1;const r=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||r.push(n),this.getPreferredWidthForElements(r)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const n=document.createElement("form");n.style.position="fixed";const r=this.centerRowContainerCtrl.eContainer;for(const o of e)this.cloneItemIntoDummy(o,n);r.appendChild(n);const i=Math.ceil(n.getBoundingClientRect().width);return n.remove(),t=t??this.gos.get("autoSizePadding"),i+t}getHeaderCellForColumn(e){let t=null;for(const n of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const r=n.getHtmlElementForColumnHeader(e);r!=null&&(t=r)}return t}cloneItemIntoDummy(e,t){const n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";const r=document.createElement("div"),i=r.classList;["ag-header-cell","ag-header-group-cell"].some(a=>n.classList.contains(a))?(i.add("ag-header","ag-header-row"),r.style.position="static"):i.add("ag-row");let s=e.parentElement;for(;s;){if(["ag-header-row","ag-row"].some(l=>s.classList.contains(l))){for(let l=0;l<s.classList.length;l++){const u=s.classList[l];u!="ag-row-position-absolute"&&i.add(u)}break}s=s.parentElement}r.appendChild(n),t.appendChild(r)}},Sne={moduleName:"AutoWidth",version:Le,beans:[EPe]};function RPe(e,t,n=!0,r="api"){e.colResize?.setColumnWidths(t,!1,n,r)}function xne(e,t){if(!e||e.length==0)return;const n=t(e[0]);for(let r=1;r<e.length;r++)if(n!==t(e[r]))return;return n}function Ene(e,t,n){if(!t.length)return;const r=t.length===1?t[0]:null,i=xne(t,o=>o.getPinned());e.dispatchEvent({type:"columnPinned",pinned:i??null,columns:t,column:r,source:n})}function APe(e,t,n){if(!t.length)return;const r=t.length===1?t[0]:null,i=xne(t,o=>o.isVisible());e.dispatchEvent({type:"columnVisible",visible:i,columns:t,column:r,source:n})}function TPe(e,t,n,r){e.dispatchEvent({type:t,columns:n,column:n?.length==1?n[0]:null,source:r})}function xm(e,t,n,r,i=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:i,finished:n,source:r})}var PPe=class extends Se{constructor(e,t,n,r){super(),this.comp=e,this.eResize=t,this.pinned=n,this.columnGroup=r}
vendor: 4,533 bytes, line 827
827postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:n}=this.beans,r=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(r),!t.get("suppressAutoSize")&&n&&this.addDestroyFunc(n.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:n,resizeRatios:r,groupAfterColumns:i,groupAfterStartWidth:o,groupAfterRatios:s}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=n,this.resizeRatios=r,this.resizeTakeFromCols=i,this.resizeTakeFromStartWidth=o,this.resizeTakeFromRatios=s,this.toggleColumnResizing(!0)}onResizing(e,t,n="uiColumnResized"){const r=this.normaliseDragChange(t),i=this.resizeStartWidth+r;this.resizeColumnsFromLocalValues(i,n,e)}getInitialValues(e){const t=l=>l.reduce((u,d)=>u+d.getActualWidth(),0),n=(l,u)=>l.map(d=>d.getActualWidth()/u),r=this.getColumnsToResize(),i=t(r),o=n(r,i),s={columnsToResize:r,resizeStartWidth:i,resizeRatios:o};let a=null;if(e&&(a=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),a){const l=a.getDisplayedLeafColumns(),u=s.groupAfterColumns=l.filter(f=>f.isResizable()),d=s.groupAfterStartWidth=t(u);s.groupAfterRatios=n(u,d)}else s.groupAfterColumns=void 0,s.groupAfterStartWidth=void 0,s.groupAfterRatios=void 0;return s}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),n=this.getInitialValues();t>n.resizeStartWidth&&this.resizeColumns(n,t,e,!0)}resizeColumnsFromLocalValues(e,t,n=!0){if(!this.resizeCols||!this.resizeRatios)return;const r={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(r,e,t,n)}resizeColumns(e,t,n,r=!0){const{columnsToResize:i,resizeStartWidth:o,resizeRatios:s,groupAfterColumns:a,groupAfterStartWidth:l,groupAfterRatios:u}=e,d=[];if(d.push({columns:i,ratios:s,width:t}),a){const f=t-o;d.push({columns:a,ratios:u,width:l-f})}this.beans.colResize?.resizeColumnSets({resizeSets:d,finished:r,source:n}),r&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},OPe=class extends Se{constructor(e,t,n,r,i){super(),this.pinned=e,this.column=t,this.eResize=n,this.comp=r,this.ctrl=i}postConstruct(){const e=[];let t,n;const r=()=>{if(Cn(this.eResize,t),!t)return;const{horizontalResizeSvc:s,colAutosize:a}=this.beans,l=s.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(l),n&&a&&e.push(a.addColumnAutosizeListeners(this.eResize,this.column))},i=()=>{for(const s of e)s();e.length=0},o=()=>{const s=this.column.isResizable(),a=!this.gos.get("suppressAutoSize")&&!this.column.colDef.suppressAutoSize;(s!==t||a!==n)&&(t=s,n=a,i(),r())};o(),this.addDestroyFunc(i),this.ctrl.setRefreshFunction("resize",o)}onResizing(e,t){const{column:n,lastResizeAmount:r,resizeStartWidth:i,beans:o}=this,s=this.normaliseResizeAmount(t),a=i+s,l=[{key:n,newWidth:a}],{pinnedCols:u,ctrlsSvc:d,colResize:f}=o;if(this.column.getPinned()){const g=u?.leftWidth??0,m=u?.rightWidth??0,y=Mb(d.getGridBodyCtrl().eBodyViewport)-50;if(g+m+(s-r)>y)return}this.lastResizeAmount=s,f?.setColumnWidths(l,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.column.resizing=e,this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const n=this.pinned!=="left",r=this.pinned==="right";return this.gos.get("enableRtl")?n&&(t*=-1):r&&(t*=-1),t}},DPe=class extends Se{constructor(){super(...arguments),this.beanName="
827colResize"}setColumnWidths(e,t,n,r){const i=[],{colModel:o,gos:s,visibleCols:a}=this.beans;for(const l of e){const u=o.getColDefColOrCol(l.key);if(!u)continue;if(i.push({width:l.newWidth,ratios:[1],columns:[u]}),s.get("colResizeDefault")==="shift"&&(t=!t),t){const f=a.getColAfter(u);if(!f)continue;const g=u.getActualWidth()-l.newWidth,m=f.getActualWidth()+g;i.push({width:m,ratios:[1],columns:[f]})}}i.length!==0&&this.resizeColumnSets({resizeSets:i,finished:n,source:r})}resizeColumnSets(e){const{resizeSets:t,finished:n,source:r}=e;if(!(!t||t.every(d=>MPe(d)))){if(n){const d=t&&t.length>0?t[0].columns:null;xm(this.eventSvc,d,n,r)}return}const o=[],s=[];for(const d of t){const{width:f,columns:g,ratios:m}=d,y={},b={};for(const E of g)s.push(E);let w=!0,C=0;for(;w;){if(C++,C>1e3){on(31);break}w=!1;const E=[];let A=0,T=f;g.forEach((O,D)=>{if(b[O.getId()])T-=y[O.getId()];else{E.push(O);const L=m[D];A+=L}});const P=1/A;E.forEach((O,D)=>{const F=D===E.length-1;let L;F?L=T:(L=Math.round(m[D]*f*P),T-=L);const N=O.getMinWidth(),M=O.getMaxWidth();L<N?(L=N,b[O.getId()]=!0,w=!0):M>0&&L>M&&(L=M,b[O.getId()]=!0,w=!0),y[O.getId()]=L})}for(const E of g){const A=y[E.getId()];E.getActualWidth()!==A&&(E.setActualWidth(A,r),o.push(E))}}const a=o.length>0;let l=[];if(a){const{colFlex:d,visibleCols:f,colViewport:g}=this.beans;l=d?.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0})??[],f.setLeftValues(r),f.updateBodyWidths(),g.checkViewportColumns()}const u=s.concat(l);(a||n)&&xm(this.eventSvc,u,n,r,l)}resizeHeader(e,t,n){if(!e.isResizable())return;const r=e.getActualWidth(),i=e.getMinWidth(),o=e.getMaxWidth(),s=Math.min(Math.max(r+t,i),o);this.setColumnWidths([{key:e,newWidth:s}],n,!0,"uiColumnResized")}createResizeFeature(e,t,n,r,i){return new OPe(e,t,n,r,i)}createGroupResizeFeature(e,t,n,r){return new PPe(e,t,n,r)}};function MPe(e){const{columns:t,width:n}=e;let r=0,i=0,o=!0;for(const l of t){const u=l.getMinWidth();r+=u||0;const d=l.getMaxWidth();d>0?i+=d:o=!1}const s=n>=r,a=!o||n<=i;return s&&a}var IPe={moduleName:"ColumnResize",version:Le,beans:[DPe],apiFunctions:{setColumnWidths:RPe},dependsOn:[tPe,Sne]},_Pe=class extends Se{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);for(const t of this.columnGroup.getLeafColumns())t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})}removeListenersOnChildrenColumns(){for(const e of this.removeChildListenersFuncs)e();this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",e===0)}},FPe=class extends CN{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,n,r,i){const{column:o,beans:s}=this,{context:a,colNames:l,colHover:u,rangeSvc:d,colResize:f}=s;this.comp=e,i=mw(this,a,i),this.setGui(t,i),this.displayName=l.getDisplayNameForColumnGroup(o,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(i),this.setupExpandable(i),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:r,compBean:i}),this.setupUserComp(),this.addHeaderMouseListeners(i,r),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const g=this.rowCtrl.pinned,m=o.getProvidedColumnGroup().getLeafColumns();
827u?.createHoverFeature(i,m,t),d?.createRangeHighlightFeature(i,o,e),i.createManagedBean(new wN(o,t,s)),i.createManagedBean(new _Pe(e,o)),f?this.resizeFeature=i.createManagedBean(f.createGroupResizeFeature(e,n,g,o)):e.setResizableDisplayed(!1),i.createManagedBean(new gw(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(i,m),this.addManagedEventListeners({cellSelectionChanged:()=>this.refreshAnnouncement()}),i.addManagedPropertyListener("cellSelection",()=>this.refreshAnnouncement()),i.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(i),i.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.getDefinition();return ft(t.gos,{colDef:n,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,n=e.get("groupHeaderHeight");n!=null?n===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(n):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const n of t)e.addManagedListeners(n,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,n)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),n=t[0]===e,r=gn(t)===e;if(!n&&!r)return;const i=e.getHighlighted(),o=!!this.rowCtrl.getHeaderCellCtrls().find(l=>l.column.isMoving());let s=!1,a=!1;if(o){const l=this.beans.gos.get("enableRtl"),u=i===1,d=i===0;n&&(l?a=u:s=d),r&&(l?s=d:a=u)}this.comp.toggleCss("ag-header-highlight-before",s),this.comp.toggleCss("ag-header-highlight-after",a)}resizeHeader(e,t){const{resizeFeature:n}=this;if(!n)return;const r=n.getInitialValues(t);n.resizeColumns(r,r.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:n,enterpriseMenuFactory:r}=this.beans,i=this.column,o=i.getProvidedColumnGroup(),s=ft(n,{displayName:this.displayName,columnGroup:i,setExpanded:l=>{e.setColumnGroupOpened(o,l,"gridInitializing")},setTooltip:(l,u)=>{n.assertModuleRegistered("Tooltip",3),this.setupTooltip(l,u)},showColumnMenu:(l,u)=>r?.showMenuAfterButtonClick(o,l,"columnMenu",u),showColumnMenuAfterMouseClick:(l,u)=>r?.showMenuAfterMouseEvent(o,l,"columnMenu",u),eGridHeader:this.eGui}),a=SRe(t,s);a&&this.comp.setUserCompDetails(a)}addHeaderMouseListeners(e,t){const{column:n,comp:r,beans:{rangeSvc:i},gos:o}=this,s=d=>this.handleMouseOverChange(d.type==="mouseenter"),a=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",n.getProvidedColumnGroup()),l=d=>this.handleContextMenuMouseEvent(d,void 0,n.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:s,mouseleave:s,click:a,contextmenu:l}),r.toggleCss("ag-header-group-cell-selectable",Tf(o));const u=i?.createHeaderGroupCellMouseListenerFeature(this.column,t);u&&this.createManagedBean(u)}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const n=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:n,expandableChanged:n})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles(),this.refreshAnnouncement()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),n=Qte(t,this.gos,null,e);e.isPadding()?(n.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(i=>i.isSpanHeaderHeight())&&n.push("ag-header-span-height")):(n.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&n.push("ag-header-cell-wrap-text"));for(const r of n)this.comp.toggleCss(r,!0)}setupMovingCss(e){const{column:t}=this,r=t.getProvidedColumnGroup().getLeafColumns(),i=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const o of r)e.addManagedListeners(o,{movingChanged:i});i()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){if(super.handleKeyDown(e),!this.getWrapperHasFocus())return;const{column:n,expandable:r,gos:i,beans:o}=this,s=Tf(i);if(e.key==fe.ENTER){if(s&&!e.altKey)o.rangeSvc?.handleColumnSelection(n,e);else if(r){const a=!n.isExpanded();o.colGroupSvc.setColumnGroupOpened(n.getProvidedColumnGroup(),a,"uiColumnExpanded")}}}refreshAnnouncement(){let e;const{gos:t,expandable:n}=this,r=Tf(t),i=this.getLocaleTextFunc();r&&n?e=i("ariaColumnGroupCellSelectionAndExpansion","Press Enter to toggle selection for all visible cells in this column group. Press ALT ENTER to expand or collapse this column group"):r?e=i("ariaColumnGroupCellSelection","Press Enter to toggle selection for all visible cells in this column group"):n&&(e=i("ariaColumnGroupExpansion","Press ENTER to expand or collapse this column group")),this.ariaAnnouncement=e}announceAriaDescription(){const{beans:e,eGui:t,ariaAnnouncement:n}=this;!n||!t.contains($n(e))||e.ariaAnnounce?.announceValue(n,"columnHeader")}setDragSource(e){!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.colDef.suppressMovable||e.colDef.lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function kPe(e,t,n){e.colGroupSvc?.setColumnGroupOpened(t,n,"api")}function LPe(e,t,n){return e.colGroupSvc?.getColumnGroup(t,n)??null}function NPe(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function BPe(e,t,n){return e.colNames.getDisplayNameForColumnGroup(t,n)||""}function HPe(e){return e.colGroupSvc?.getColumnGroupState()??[]}function VPe(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function zPe(e){e.colGroupSvc?.resetColumnGroupState("api")}function GPe(e){return e.visibleCols.treeLeft}function jPe(e){return e.visibleCols.treeCenter}function UPe(e){return e.visibleCols.treeRight}function WPe(e){return e.visibleCols.getAllTrees()}var Rne=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let n;return typeof t!="number"?n=0:n=t+1,this.existingIds[e]=n,n}};function $Pe(e,t){for(let n=0;n<t.length;n++){const r=e.indexOf(t[n]);r>=0&&(e[r]=e[e.length-1],e.pop())}}var qPe=class extends Se{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.headerGroupRowCount=0,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:n,colModel:r,colGroupSvc:i,colViewport:o,selectionColSvc:s}=this.beans;t||this.buildTrees(r,i),i?.updateOpenClosedVisibility(),this.leftCols=eD(this.treeLeft),this.centerCols=eD(this.treeCenter),this.rightCols=eD(this.treeRight),s?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(r),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(a=>a.isAutoHeight()),n?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(r,this.leftCols,this.rightCols,e),o.checkViewportColumns(!1),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}getHeaderRowCount(){if(!this.gos.get("hidePaddedHeaderRows"))return this.beans.colModel.cols.treeDepth;let e=0;for(const t of this.allCols){let n=t.parent;for(;n;){if(!n.isPadding()){const r=n.getProvidedColumnGroup().getLevel()+1;r>e&&(e=r);break}n=n.parent}}return e}updateBodyWidths(){const e=Xu(this.centerCols),t=Xu(this.leftCols),n=Xu(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,n,r){let i,o;this.gos.get("enableRtl")?(i=t?t[0]:null,o=n?gn(n):null):(i=t?gn(t):null,o=n?n[0]:null);for(const s of e.getCols())s.setLastLeftPinned(s===i,r),s.setFirstRightPinned(s===o,r)}buildTrees(e,t){const n=e.getColsToShow(),r=n.filter(l=>l.getPinned()=="left"),i=n.filter(l=>l.getPinned()=="right"),o=n.filter(l=>l.getPinned()!="left"&&l.getPinned()!="right"),s=new Rne,a=l=>t?t.createColumnGroups(l):l.columns;this.treeLeft=a({columns:r,idCreator:s,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=a({columns:i,idCreator:s,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=a({columns:o,idCreator:s,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),n=[],r=[],i=[];for(const o of t){const s=o.getPinned();s?s===!0||s==="left"?n.push(o):i.push(o):r.push(o)}this.ariaOrderColumns=n.concat(r).concat(i)}getAriaColIndex(e){let t;return xr(e)?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){for(const e of[this.treeLeft,this.treeRight,this.treeCenter])for(const t of e)xr(t)&&t.checkLeft()}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const r=t.getCols().slice(0),i=this.gos.get("enableRtl");for(const o of[this.leftCols,this.rightCols,this.centerCols]){if(i){let s=Xu(o);for(const a of o)s-=a.getActualWidth(),a.setLeft(s,e)}else{let s=0;
827for(const a of o)a.setLeft(s,e),s+=a.getActualWidth()}$Pe(r,o)}for(const o of r)o.setLeft(null,e)}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,n,r){const i=[];let o=null;for(let s=0;s<t.length;s++){const a=t[s],l=t.length-s,u=Math.min(a.getColSpan(e),l),d=[a];if(u>1){const g=u-1;for(let m=1;m<=g;m++)d.push(t[s+m]);s+=g}let f;if(n){f=!1;for(const g of d)n(g)&&(f=!0)}else f=!0;f&&(i.length===0&&o&&r&&r(a)&&i.push(o),i.push(a)),o=a}return i}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,n=t.indexOf(e);return n>0?t[n-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};Df(this.treeCenter,!1,e),Df(this.treeLeft,!1,e),Df(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let n=0;n<t.length;n++){const r=this[t[n]];if(r.length)return e?gn(r):r[0]}return null}getColAfter(e){const t=this.allCols,n=t.indexOf(e);return n<t.length-1?t[n+1]:null}getColsLeftWidth(){return Xu(this.leftCols)}getDisplayedColumnsRightWidth(){return Xu(this.rightCols)}isColAtEdge(e,t){const n=this.allCols;if(!n.length)return!1;const r=t==="first";let i;if(xr(e)){const o=e.getDisplayedLeafColumns();if(!o.length)return!1;i=r?o[0]:gn(o)}else i=e;return(r?n[0]:gn(n))===i}};function Df(e,t,n){if(e)for(let r=0;r<e.length;r++){const i=e[r];if(xr(i)){const o=t?i.getDisplayedChildren():i.getChildren();Df(o,t,n)}n(i)}}function eD(e){const t=[];return Df(e,!0,n=>{Kd(n)&&t.push(n)}),t}var KPe=class extends Se{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return sc(null,t,n=>{Yi(n)&&e.push({groupId:n.getGroupId(),open:n.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const n=[];sc(null,t,r=>{if(Yi(r)){const i=r.getColGroupDef(),o={groupId:r.getGroupId(),open:i?i.openByDefault:void 0};n.push(o)}}),this.setColumnGroupState(n,e)}setColumnGroupState(e,t){const{colModel:n,colAnimation:r,visibleCols:i,eventSvc:o}=this.beans;if(!n.getColTree().length)return;r?.start();const a=[];for(const l of e){const u=l.groupId,d=l.open,f=this.getProvidedColGroup(u);f&&f.isExpanded()!==d&&(f.setExpanded(d),a.push(f))}i.refresh(t,!0),a.length&&o.dispatchEvent({type:"columnGroupOpened",columnGroup:a.length===1?a[0]:void 0,columnGroups:a}),r?.finish()}setColumnGroupOpened(e,t,n){let r;Yi(e)?r=e.getId():r=e||"",this.setColumnGroupState([{groupId:r,open:t}],n)}getProvidedColGroup(e){let t=null;return sc(null,this.beans.colModel.getColTree(),n=>{Yi(n)&&n.getId()===e&&(t=n)}),t}getGroupAtDirection(e,t){const n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),i=t==="After"?gn(r):r[0],o=`getCol${t}`;for(;;){const s=this.beans.visibleCols[o](i);if(!s)return null;const a=this.getColGroupAtLevel(s,n);if(a!==e)return a}}getColGroupAtLevel(e,t){let n=e.parent,r,i;for(;r=n.getProvidedColumnGroup().getLevel(),i=n.getPaddingLevel(),!(r+i<=t);)n=n.parent;return n}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();Df(e,!1,t=>{xr(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(xr(e))return e;const n=this.beans.visibleCols.getAllTrees(),r=typeof t=="number";let i=null;return Df(n,!1,o=>{if(xr(o)){const s=o;let a;r?a=e===s.getGroupId()&&t===s.getPartId():a=e===s.getGroupId(),a&&(i=s)}}),i}createColumnGroups(e){const{columns:t,idCreator:n,pinned:r,oldDisplayedGroups:i,isStandaloneStructure:o}=e,s=this.mapOldGroupsById(i),a=[];let l=t;for(;l.length;){const u=l;l=[];let d=0;const f=g=>{const m=d;d=g;const y=u[m],w=(xr(y)?y.getProvidedColumnGroup():y).getOriginalParent();if(w==null){for(let E=m;E<g;E++)a.push(u[E]);return}const C=this.createColumnGroup(w,n,s,r,o);for(let E=m;E<g;E++)C.addChild(u[E]);l.push(C)};for(let g=1;g<u.length;g++){const m=u[g],b=(xr(m)?m.getProvidedColumnGroup():m).getOriginalParent(),w=u[d],E=(xr(w)?w.getProvidedColumnGroup():w).getOriginalParent();b!==E&&f(g)}d<u.length&&f(u.length)}return o||this.setupParentsIntoCols(a,null),a}createProvidedColumnGroup(e,t,n,r,i,o,s){const a=i.getUniqueKey(t.groupId||null,null),l=O6(this.beans,t,a),u=new o1(l,a,!1,n);this.createBean(u);const d=this.findExistingGroup(t,o);d&&o.splice(d.idx,1);const f=d?.group;f&&u.setExpanded(f.isExpanded());const g=Rte(this.beans,l.children,n+1,e,r,i,o,s);return u.setChildren(g),u}balanceColumnTree(e,t,n,r){const i=[];for(let o=0;o<e.length;o++){const s=e[o];if(Yi(s)){const a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,r);a.setChildren(l),i.push(a)}else{let a,l;for(let u=t;u<n;u++){const d=r.getUniqueKey(null,null),f=O6(this.beans,null,d),g=new o1(f,d,!0,u);this.createBean(g),l&&l.setChildren([g]),l=g,a||(a=l)}if(a&&l)if(i.push(a),e.some(d=>
827Yi(d))){l.setChildren([s]);continue}else{l.setChildren(e);break}i.push(s)}}return i}findDepth(e){let t=0,n=e;for(;n?.[0]&&Yi(n[0]);)t++,n=n[0].getChildren();return t}findMaxDepth(e,t){let n=t;for(let r=0;r<e.length;r++){const i=e[r];if(Yi(i)){const o=i,s=this.findMaxDepth(o.getChildren(),t+1);n<s&&(n=s)}}return n}balanceTreeForAutoCols(e,t){const n=[];for(const r of e){let i=r;for(let o=t-1;o>=0;o--){const s=new o1(null,`FAKE_PATH_${r.getId()}_${o}`,!0,o);this.createBean(s),s.setChildren([i]),i.originalParent=s,i=s}t===0&&(r.originalParent=null),n.push(i)}return n}findExistingGroup(e,t){if(e.groupId!=null)for(let r=0;r<t.length;r++){const i=t[r];if(i.getColGroupDef()&&i.getId()===e.groupId)return{idx:r,group:i}}}createColumnGroup(e,t,n,r,i){const o=e.getGroupId(),s=t.getInstanceIdForKey(o),a=Mte(o,s);let l=n[a];return l&&l.getProvidedColumnGroup()!==e&&(l=null),Ve(l)?l.reset():(l=new Lb(e,o,s,r),i||this.createBean(l)),l}mapOldGroupsById(e){const t={},n=r=>{for(const i of r)if(xr(i)){const o=i;t[i.getUniqueId()]=o,n(o.getChildren())}};return e&&n(e),t}setupParentsIntoCols(e,t){for(const n of e??[])if(n.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),n.parent=t,xr(n)){const r=n;this.setupParentsIntoCols(r.getChildren(),r)}}},YPe={moduleName:"ColumnGroup",version:Le,dynamicBeans:{headerGroupCellCtrl:FPe},beans:[KPe],apiFunctions:{getAllDisplayedColumnGroups:WPe,getCenterDisplayedColumnGroups:jPe,getColumnGroup:LPe,getColumnGroupState:HPe,getDisplayNameForColumnGroup:BPe,getLeftDisplayedColumnGroups:GPe,getProvidedColumnGroup:NPe,getRightDisplayedColumnGroups:UPe,resetColumnGroupState:zPe,setColumnGroupOpened:kPe,setColumnGroupState:VPe}};function Ya(e,t,n){const{colModel:r,rowGroupColsSvc:i,pivotColsSvc:o,autoColSvc:s,selectionColSvc:a,colAnimation:l,visibleCols:u,pivotResultCols:d,environment:f,valueColsSvc:g,eventSvc:m,gos:y}=e,b=r.getColDefCols()??[],w=a?.getColumns();if(!b.length&&!w?.length)return!1;if(t?.state&&!t.state.forEach)return Me(32),!1;const C=(P,O,D,F,L)=>{if(!P)return;const N=WEe(O,t.defaultState),M=N("flex").value1,k=N("sort").value1,B=N("sortType").value1,j=Bd(k)||sN(B),z=hc(B),H=GE(k),G=j?{type:z,direction:H}:void 0;if(Ate(e,P,N("hide").value1,G,N("sortIndex").value1,N("pinned").value1,M,n),M==null){const $=N("width").value1;if($!=null){const Y=P.getColDef().minWidth??f.getDefaultColumnMinWidth();Y!=null&&$>=Y&&P.setActualWidth($,n)}}L||!P.primary||(g?.syncColumnWithState(P,n,N),i?.syncColumnWithState(P,n,N,D),o?.syncColumnWithState(P,n,N,F))},E=(P,O,D)=>{const F=Ane(e,n),L=O.slice(),N={},M={},k=[],B=[],j=[];let z=0;const H=i?.columns.slice()??[],G=o?.columns.slice()??[];for(const K of P){const se=K.colId;if(se.startsWith(jE)){k.push(K),j.push(K);continue}if(rh(se)){B.push(K),j.push(K);continue}const ue=D(se);ue?(C(ue,K,N,M,!1),Zl(L,ue)):(j.push(K),z+=1)}const $=K=>C(K,null,N,M,!1);L.forEach($),i?.sortColumns(oj.bind(i,N,H)),o?.sortColumns(oj.bind(o,M,G)),r.refreshCols(!1,n);const Y=(K,se,re=[])=>{for(const ue of se){const U=K(ue.colId);Zl(re,U),C(U,ue,null,null,!0)}re.forEach($)};return Y(K=>s?.getColumn(K)??null,k,s?.getColumns()?.slice()),Y(K=>a?.getColumn(K)??null,B,a?.getColumns()?.slice()),ZPe(t,r,y),u.refresh(n),m.dispatchEvent({type:"columnEverythingChanged",source:n}),F(),{unmatchedAndAutoStates:j,unmatchedCount:z}};l?.start();let{unmatchedAndAutoStates:A,unmatchedCount:T}=E(t.state||[],b,P=>r.getColDefCol(P));if(A.length>0||Ve(t.defaultState)){const P=d?.getPivotResultCols()?.list??[];T=E(A,P,O=>d?.getPivotResultCol(O)??null).unmatchedCount}return l?.finish(),T===0}function XPe(e,t){const{colModel:n,autoColSvc:r,selectionColSvc:i,eventSvc:o,gos:s}=e;if(!n.getColDefCols()?.length)return;const l=n.getColDefColTree(),u=Ote(l),d=[];let f=1e3,g=1e3;const m=E=>{const A=Tne(E);rr(A.rowGroupIndex)&&A.rowGroup&&(A.rowGroupIndex=f++),rr(A.pivotIndex)&&A.pivot&&(A.pivotIndex=g++),d.push(A)};r?.getColumns()?.forEach(m),i?.getColumns()?.forEach(m),u?.forEach(m),Ya(e,{state:d},t);const y=r?.getColumns()??[],C=[...i?.getColumns()??[],...y,...u].map(E=>({colId:E.colId}));Ya(e,{state:C,applyOrder:!0},t),o.dispatchEvent(ft(s,{type:"columnsReset",source:t}))}function Ane(e,t){const{rowGroupColsSvc:n,pivotColsSvc:r,valueColsSvc:i,colModel:o,sortSvc:s,eventSvc:a}=e,l={rowGroupColumns:n?.columns.slice()??[],pivotColumns:r?.columns.slice()??[],valueColumns:i?.columns.slice()??[]},u=Q1(e),d={};for(const f of u)d[f.colId]=f;return()=>{const f=(O,D,F,L)=>{const N=D.map(L),M=F.map(L);if(th(N,M))return;const B=new Set(D);for(const z of F)B.delete(z)||B.add(z);const j=[...B];a.dispatchEvent({type:O,columns:j,column:j.length===1?j[0]:null,source:t})},g=O=>{const D=[];return o.forAllCols(F=>{const L=d[F.colId];L&&O(L,F)&&D.push(F)}),D},m=O=>O.colId;f("columnRowGroupChanged",l.rowGroupColumns,n?.columns??[],m),f("columnPivotChanged",l.pivotColumns,r?.columns??[],m);const b=g((O,D)=>
827{const F=O.aggFunc!=null,L=F!=D.isValueActive(),N=F&&O.aggFunc!=D.getAggFunc();return L||N});b.length>0&&TPe(a,"columnValueChanged",b,t),xm(a,g((O,D)=>O.width!=D.getActualWidth()),!0,t),Ene(a,g((O,D)=>O.pinned!=D.getPinned()),t),APe(a,g((O,D)=>O.hide==D.isVisible()),t);const T=g((O,D)=>!i1(D.getSortDef(),{type:hc(O.sortType),direction:GE(O.sort)})||O.sortIndex!=D.getSortIndex());T.length>0&&s?.dispatchSortChangedEvents(t,T);const P=Q1(e);JPe(u,P,t,o,a)}}function Q1(e){const{colModel:t,rowGroupColsSvc:n,pivotColsSvc:r}=e,i=t.getColDefCols();if(rr(i)||!t.isAlive())return[];const o=n?.columns,s=r?.columns,a=[],l=d=>{const f=d.isRowGroupActive()&&o?o.indexOf(d):null,g=d.isPivotActive()&&s?s.indexOf(d):null,m=d.isValueActive()?d.getAggFunc():null,y=d.getSortIndex()!=null?d.getSortIndex():null;a.push({colId:d.colId,width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:d.getSort(),sortType:d.getSortDef()?.type,sortIndex:y,aggFunc:m,rowGroup:d.isRowGroupActive(),rowGroupIndex:f,pivot:d.isPivotActive(),pivotIndex:g,flex:d.getFlex()??null})};t.forAllCols(d=>l(d));const u=new Map(t.getCols().map((d,f)=>[d.colId,f]));return a.sort((d,f)=>{const g=u.has(d.colId)?u.get(d.colId):-1,m=u.has(f.colId)?u.get(f.colId):-1;return g-m}),a}function Tne(e){const t=(w,C)=>w??C??null,n=e.colDef,r=na(t(n.sort,n.initialSort)),i=r.direction,o=r.type,s=t(n.sortIndex,n.initialSortIndex),a=t(n.hide,n.initialHide),l=t(n.pinned,n.initialPinned),u=t(n.width,n.initialWidth),d=t(n.flex,n.initialFlex);let f=t(n.rowGroupIndex,n.initialRowGroupIndex),g=t(n.rowGroup,n.initialRowGroup);f==null&&!g&&(f=null,g=null);let m=t(n.pivotIndex,n.initialPivotIndex),y=t(n.pivot,n.initialPivot);m==null&&!y&&(m=null,y=null);const b=t(n.aggFunc,n.initialAggFunc);return{colId:e.colId,sort:i,sortType:o,sortIndex:s,hide:a,pinned:l,width:u,flex:d,rowGroup:g,rowGroupIndex:f,pivot:y,pivotIndex:m,aggFunc:b}}function ZPe(e,t,n){if(!e.applyOrder||!e.state)return;const r=[];for(const i of e.state)i.colId!=null&&r.push(i.colId);QPe(t.cols,r,t,n)}function QPe(e,t,n,r){if(e==null)return;let i=[];const o={};for(const a of t){if(o[a])continue;const l=e.map[a];l&&(i.push(l),o[a]=!0)}let s=0;for(const a of e.list){const l=a.colId;if(o[l]!=null)continue;l.startsWith(jE)?i.splice(s++,0,a):i.push(a)}if(i=wne(i,r),!Cne(i,n.getColTree())){Me(39);return}e.list=i}function JPe(e,t,n,r,i){const o={};for(const d of t)o[d.colId]=d;const s={};for(const d of e)o[d.colId]&&(s[d.colId]=!0);const a=e.filter(d=>s[d.colId]),l=t.filter(d=>s[d.colId]),u=[];l.forEach((d,f)=>{const g=a?.[f];if(g&&g.colId!==d.colId){const m=r.getCol(g.colId);m&&u.push(m)}}),u.length&&i.dispatchEvent({type:"columnMoved",columns:u,column:u.length===1?u[0]:null,finished:!0,source:n})}var oj=(e,t,n,r)=>{const i=e[n.getId()],o=e[r.getId()],s=i!=null,a=o!=null;if(s&&a)return i-o;if(s)return-1;if(a)return 1;const l=t.indexOf(n),u=t.indexOf(r),d=l>=0,f=u>=0;return d&&f?l-u:d?-1:1},eOe=class extends Se{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","groupHideColumnsUntilExpanded","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(nm(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),nm(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:n,colAutosize:r,rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:s,visibleCols:a,eventSvc:l,groupHierarchyColSvc:u}=t,d=this.colDefs?Ane(t,e):void 0;n?.expire();const f=this.colDefCols?.list,g=this.colDefCols?.tree,m=FEe(t,this.colDefs,!0,g,e);U1(t,this.colDefCols?.tree,m.columnTree);const y=m.columnTree,b=m.treeDepth,w=Ote(y),C={};for(const E of w)C[E.getId()]=E;this.colDefCols={tree:y,treeDepth:b,list:w,map:C},this.createColumnsForService([u],this.colDefCols,e),i?.extractCols(e,f),o?.extractCols(e,f),s?.extractCols(e,f),this.ready=!0,this.changeEventsDispat
827ching=!0,this.refreshCols(!0,e),this.changeEventsDispatching=!1,a.refresh(e),l.dispatchEvent({type:"columnEverythingChanged",source:e}),d&&(this.changeEventsDispatching=!0,d(),this.changeEventsDispatching=!1),l.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&r?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const n=this.cols?.tree;this.saveColOrder();const{autoColSvc:r,selectionColSvc:i,rowNumbersSvc:o,quickFilter:s,pivotResultCols:a,showRowGroupCols:l,rowAutoHeight:u,visibleCols:d,colViewport:f,eventSvc:g,formula:m}=this.beans,y=this.selectCols(a,this.colDefCols);m?.setFormulasActive(y),this.createColumnsForService([r,i,o],y,t);const b=aEe(this.gos,this.showingPivotResult);(!e||b)&&this.restoreColOrder(y),this.positionLockedCols(y),l?.refresh(),s?.refreshCols(),this.setColSpanActive(),u?.setAutoHeightActive(y),d.clear(),f.clear(),th(n,this.cols.tree)||g.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,n){for(const r of e)r&&(r.createColumns(t,i=>{this.lastOrder=i(this.lastOrder),this.lastPivotOrder=i(this.lastPivotOrder)},n),r.addColumns(t))}selectCols(e,t){const n=e?.getPivotResultCols()??null;this.showingPivotResult=n!=null;const{map:r,list:i,tree:o,treeDepth:s}=n??t;return this.cols={list:i.slice(),map:{...r},tree:o.slice(),treeDepth:s},n&&(n.list.some(l=>this.cols?.map[l.colId]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{beans:e,showingPivotResult:t,cols:n}=this,{valueColsSvc:r,selectionColSvc:i,gos:o}=e,s=this.pivotMode&&!t,a=i?.isSelectionColumnEnabled(),l=lEe(e),u=r?.columns,d=hEe(o);return n.list.filter(g=>{const m=aN(g);return s?u?.includes(g)||m&&(!d||g.isVisible())||a&&rh(g)||l&&Ro(g):m&&!d||g.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,n){Ya(this.beans,{state:e.map(r=>({colId:typeof r=="string"?r:r.colId,hide:!t}))},n)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const n=t.filter(f=>e.map[f.getId()]!=null);if(n.length===0)return;if(n.length===e.list.length){e.list=n;return}const r=f=>{const g=f.getOriginalParent();return g?g.getChildren().length>1?!0:r(g):!1};if(!n.some(f=>r(f))){const f=new Set(n);for(const g of e.list)f.has(g)||n.push(g);e.list=n;return}const i=new Map;for(let f=0;f<n.length;f++){const g=n[f];i.set(g,f)}const o=e.list.filter(f=>!i.has(f));if(o.length===0){e.list=n;return}const s=(f,g)=>{const m=g?g.getOriginalParent():f.getOriginalParent();if(!m)return null;let y=null,b=null;for(const w of m.getChildren())if(!(w===g||w===f)){if(w instanceof mg){const C=i.get(w);if(C==null)continue;(y==null||y<C)&&(y=C,b=w);continue}w.forEachLeafColumn(C=>{const E=i.get(C);E!=null&&(y==null||y<E)&&(y=E,b=C)})}return b??s(f,m)},a=[],l=new Map;for(const f of o){const g=s(f,null);if(g==null){a.push(f);continue}const m=l.get(g);m===void 0?l.set(g,f):Array.isArray(m)?m.push(f):l.set(g,[m,f])}const u=new Array(e.list.length);let d=u.length-1;for(let f=a.length-1;f>=0;f--)u[d--]=a[f];for(let f=n.length-1;f>=0;f--){const g=n[f],m=l.get(g);if(m)if(Array.isArray(m))for(let y=m.length-1;y>=0;y--){const b=m[y];u[d--]=b}else u[d--]=m;u[d--]=g}e.list=u}positionLockedCols(e){e.list=wne(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}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,t);const{visibleCols:n,eventSvc:r}=this.beans;n.refresh(t),r.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=nm(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){U1(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:n,selectionColSvc:r,groupHierarchyColSvc:i}=this.beans;hy(this.colDefCols?.list,e)||hy(n?.columns?.list,e)||hy(r?.columns?.list,e)||hy(i?.columns?.list,e)||hy(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.getColFromCollection(e,this.colDefCols)??this.getColFromServiceCols(e)}getColDefColOrCol(e){return e==null?null:this.getColFromCollection(e,this.colDefCols)??this.getColFromCollection(e,this.cols)??this.getColFromServiceCols(e)}getColOrColDefCol(e){return e==null?null:this.getColFromCollection(e,this.cols)??this.getColFromCollection(e,this.colDefCols)??this.getColFromServiceCols(e)}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)??this.getColFromServiceCols(e)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(t==null)return null;const n=t.map;if(typeof e=="string"&&n[e])return n[e];const r=t.list;for(let i=0,o=r.length;i<o;++i)if(rb(r[i],e))return r[i];return null}getColFromServiceCols(e){const t=this.beans;return t.autoColSvc?.getColumn(e)??t.selectionColSvc?.getColumn(e)??t.groupHierarchyColSvc?.getColumn(e)??null}},tOe=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-label-align-right){.ag-label,.ag-wrapper{flex:none}}.ag-label-align-top{align-items:flex-start;flex-direction:column}:where(.ag-label-align-top){.ag-label,.ag-wrapper{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",nOe=class extends $m{constructor(e,t,n){super(t,n),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(tOe)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:n,labelAlignment:r,disabled:i,labelEllipsis:o}=this.config;i!=null&&this.setDisabled(i),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),n!=null&&this.setLabelWidth(n),o!=null&&this.setLabelEllipsis(o),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Jo(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Cn(t,!1),jf(t,"presentation")):(Cn(t,!0),jf(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const n=this.getGui().classList;return n.toggle("ag-label-align-left",e==="left"),n.toggle("ag-label-align-right",e==="right"),n.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(L1(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return Db(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},Pne=class extends nOe{constructor(e,t,n,r){super(e,t,n),this.className=r}
vendor: 6,922 bytes, line 827
827postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:n,ariaLabel:r}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),n!=null&&this.onValueChange(n),r!=null&&this.setAriaLabel(r),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),n=this.getLabel();n==null||n==""||uxe(e)!==null?Ob(e,""):Ob(e,t??"")}setAriaLabel(e){return bm(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return $l(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}};function rOe(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var ff=class extends Pne{constructor(e,t,n="text",r="input"){super(e,e?.template??rOe(r),[],t),this.inputType=n,this.displayFieldTag=r,this.eLabel=Ye,this.eWrapper=Ye,this.eInput=Ye}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:n,className:r}=this;e.classList.add(`${r}-label`),t.classList.add(`${r}-input-wrapper`),n.classList.add(`${r}-input`),this.addCss("ag-input-field"),n.id=n.id||`ag-${this.getCompId()}-input`;const{inputName:i,inputWidth:o,inputPlaceholder:s,autoComplete:a,tabIndex:l}=this.config;i!=null&&this.setInputName(i),o!=null&&this.setInputWidth(o),s!=null&&this.setInputPlaceholder(s),a!=null&&this.setAutoComplete(a),this.addInputListeners(),this.activateTabIndex([n],l)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,$o(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return L1(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return $o(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return bm(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Db(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)$o(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";$o(this.eInput,"autocomplete",t)}return this}},EN=class extends ff{constructor(e,t="ag-checkbox",n="checkbox"){super(e,t,n),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t,name:n}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t),n!=null&&this.setName(n)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const n=this.eInput;n.checked=e,n.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,n){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:n});const r=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:r.id,name:r.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},RN={selector:"AG-CHECKBOX",component:EN},iOe=".ag-checkbox-cell{height:100%}",oOe={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},sOe=class extends qn{constructor(){super(oOe,[RN]),this.eCheckbox=Ye,this.registerCSS(iOe)}init(e){this.refresh(e);const{eCheckbox:t,beans:n}=this,r=t.getInputElement();r.setAttribute("tabindex","-1"),jee(r,"polite"),this.addManagedListeners(r,{click:i=>{if(Kf(i),t.isDisabled())return;const o=t.getValue();this.onCheckboxChanged(o)},dblclick:i=>{Kf(i)}}),this.addManagedElementListeners(e.eGridCell,{keydown:i=>{if(i.key===fe.SPACE&&!t.isDisabled()){e.eGridCell===$n(n)&&t.toggle();const o=t.getValue();this.onCheckboxChanged(o),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,n=!0;const{value:r,column:i,node:o}=e;if(o.group&&i)if(typeof r=="boolean")t=r;else{const f=i.getColId();f.startsWith(jE)?t=r==null||r===""?void 0:r==="true":o.aggData?.[f]!==void 0||o.sourceRowIndex>=0?t=r??void 0:n=!1}else t=r??void 0;const{eCheckbox:s}=this;if(!n){s.setDisplayed(!1);return}s.setValue(t);const a=e.disabled??!i?.isCellEditable(o);s.setDisabled(a);const l=this.getLocaleTextFunc(),u=VE(l,t),d=a?u:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${u})`;s.setInputAriaLabel(d)}onCheckboxChanged(e){const{params:t}=this,{column:n,node:r,value:i}=t,{editSvc:o}=this.beans;if(!n)return;const s={rowNode:r,column:n};o?.dispatchCellEvent(s,null,"cellEditingStarted",{value:i});const a=r.setDataValue(n,e,"ui");o?.dispatchCellEvent(s,null,"cellEditingStopped",{oldValue:i,newValue:e,valueChanged:a}),a||this.updateCheckbox(t)}},aOe={tag:"div",cls:"ag-skeleton-container"},lOe=class extends qn{constructor(){super(aOe)}init(t){const n=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",n),this.addDestroyFunc(()=>Ob(t.eParentOfValue)),Ob(t.eParentOfValue,n),t.deferRender?this.setupLoading(t):t.node.failedLoad?this.setupFailed():this.setupLoading(t)}
827setupFailed(){const t=this.getLocaleTextFunc();this.getGui().textContent=t("loadingError","ERR");const n=t("ariaSkeletonCellLoadingFailed","Row failed to load");bm(this.getGui(),n)}setupLoading(t){const n=Ss({tag:"div",cls:"ag-skeleton-effect"}),r=t.node.rowIndex;if(r!=null){const s=75+25*(r%2===0?Math.sin(r):Math.cos(r));n.style.width=`${s}%`}this.getGui().appendChild(n);const i=this.getLocaleTextFunc(),o=t.deferRender?i("ariaDeferSkeletonCellLoading","Cell is loading"):i("ariaSkeletonCellLoading","Row data is loading");bm(this.getGui(),o)}refresh(t){return!1}},uOe={moduleName:"CheckboxCellRenderer",version:Le,userComponents:{agCheckboxCellRenderer:sOe}},cOe={moduleName:"SkeletonCellRenderer",version:Le,userComponents:{agSkeletonCellRenderer:lOe}};function dOe(e,t){const n=e.colModel.getColDefColOrCol(t);return n?n.colDef:null}function hOe(e){return e.colModel.getColumnDefs(!0)}function fOe(e,t,n){return e.colNames.getDisplayNameForColumn(t,n)||""}function gOe(e,t){return e.colModel.getColDefColOrCol(t)}function pOe(e){return e.colModel.getColDefCols()}function mOe(e,t){return Ya(e,t,"api")}function vOe(e){return Q1(e)}function yOe(e){XPe(e,"api")}function bOe(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()}function wOe(e){return e.visibleCols.isPinningLeft()}function COe(e){return e.visibleCols.isPinningRight()}function SOe(e,t){return e.visibleCols.getColAfter(t)}function xOe(e,t){return e.visibleCols.getColBefore(t)}function EOe(e,t,n){e.colModel.setColsVisible(t,n,"api")}function ROe(e,t,n){e.pinnedCols?.setColsPinned(t,n,"api")}function AOe(e){return e.colModel.getCols()}function TOe(e){return e.visibleCols.leftCols}function POe(e){return e.visibleCols.centerCols}function OOe(e){return e.visibleCols.rightCols}function DOe(e){return e.visibleCols.allCols}function MOe(e){return e.colViewport.getViewportColumns()}function cF(e,t){if(!e)return;const n=e,r={};for(const i of Object.keys(n)){if(t&&t.indexOf(i)>=0||tte.has(i))continue;const o=n[i];typeof o=="object"&&o!==null&&o.constructor===Object?r[i]=cF(o):r[i]=o}return r}var IOe=class extends Se{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,n,r,i=!1){const o=e.slice();t?o.sort((l,u)=>n.indexOf(l)-n.indexOf(u)):(n||i)&&o.sort((l,u)=>r.indexOf(l)-r.indexOf(u));const s=this.rowGroupColsSvc?.columns,a=this.pivotColsSvc?.columns;return this.buildColumnDefs(o,s,a)}buildColumnDefs(e,t=[],n=[]){const r=[],i={};for(const o of e){const s=this.createDefFromColumn(o,t,n);let a=!0,l=s,u=o.getOriginalParent(),d=null;for(;u;){if(u.isPadding()){u=u.getOriginalParent();continue}const f=i[u.getGroupId()];if(f){f.children.push(l),a=!1;break}const g=this.createDefFromGroup(u);if(g&&(g.children=[l],i[g.groupId]=g,l=g,u=u.getOriginalParent()),u!=null&&d===u){a=!1;break}d=u}a&&r.push(l)}return r}createDefFromGroup(e){const t=cF(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const r=cF(e.colDef);return r.colId=e.colId,r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?n.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=e.isVisible()?void 0:!0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSortDef(),r.sortIndex=e.getSortIndex()!=null?e.getSortIndex():null,r}},_Oe=class extends Se{constructor(){super(...arguments),this.beanName="colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const n=this.flexViewportWidth,{visibleCols:r,colDelayRenderSvc:i}=this.beans,o=r.centerCols;let s=-1;if(e.resizingCols){const b=new Set(e.resizingCols);for(let w=o.length-1;w>=0;w--)if(b.has(o[w])){s=w;break}}let a=!1;const l=o.map((b,w)=>{const C=b.getFlex(),E=C!=null&&C>0&&w>s;return a||(a=E),{col:b,isFlex:E,flex:Math.max(0,C??0),initialSize:b.getActualWidth(),min:b.getMinWidth(),max:b.getMaxWidth(),targetSize:0}});if(a?(i?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(i),!n||!a)return[];let u=l.length,d=l.reduce((b,w)=>
vendor: 1,981 bytes, line 827
827b+w.flex,0),f=n;const g=(b,w)=>{b.frozenSize=w,b.col.setActualWidth(w,t),f-=w,d-=b.flex,u-=1},m=b=>b.frozenSize!=null;for(const b of l)b.isFlex||g(b,b.initialSize);for(;u>0;){const b=Math.round(d<1?f*d:f);let w,C=0,E=0;for(const P of l){if(m(P))continue;w=P,E+=b*(P.flex/d);const O=E-C,D=Math.round(O);P.targetSize=D,C+=D}w&&(w.targetSize+=b-C);let A=0;for(const P of l){if(m(P))continue;const O=P.targetSize,D=Math.min(Math.max(O,P.min),P.max);A+=D-O,P.violationType=D===O?void 0:D<O?"max":"min",P.targetSize=D}const T=A===0?"all":A>0?"min":"max";for(const P of l)m(P)||(T==="all"||P.violationType===T)&&g(P,P.targetSize)}e.skipSetLeft||r.setLeftValues(t),e.updateBodyWidths&&r.updateBodyWidths();const y=l.filter(b=>b.isFlex&&!b.violationType).map(b=>b.col);if(e.fireResizedEvent){const b=l.filter(C=>C.initialSize!==C.frozenSize).map(C=>C.col),w=l.filter(C=>C.flex).map(C=>C.col);xm(this.eventSvc,b,!0,t,w)}return this.revealColumns(i),y}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:n}=e.colDef;t!==void 0?e.flex=t:n!==void 0&&(e.flex=n)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}},es=e=>{if(typeof e=="bigint")return e;let t;if(typeof e=="number")t=e;else if(typeof e=="string"&&(t=e.trim(),t===""||(t.endsWith("n")&&(t=t.slice(0,-1)),!/^[+-]?\d+$/.test(t))))return null;if(t==null)return null;try{return BigInt(t)}catch{return null}},AN="T",FOe=new RegExp(`[${AN} ]`),kOe=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${AN}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function zl(e,t){return e.toString().padStart(t,"0")}function Ao(e,t=!0,n=AN){if(!e)return null;let r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(i=>zl(i,2)).join("-");return t&&(r+=n+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>zl(i,2)).join(":")),r}function oS(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),zl(e.getDate(),2),zl(e.getHours(),2),`:${zl(e.getMinutes(),2)}`,`:${zl(e.getSeconds(),2)}
827`]:[e.getFullYear(),e.getMonth()+1,zl(e.getDate(),2)].map(String):null}var tD=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},sj=["January","February","March","April","May","June","July","August","September","October","November","December"],nD=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function LOe(e,t){if(t==null)return Ao(e,!1);const n=zl(e.getFullYear(),4),r={YYYY:()=>n.slice(n.length-4,n.length),YY:()=>n.slice(n.length-2,n.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>sj[e.getMonth()],MMM:()=>sj[e.getMonth()].slice(0,3),MM:()=>zl(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${tD(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${tD(e.getDate())}`,DD:()=>zl(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>nD[e.getDay()],ddd:()=>nD[e.getDay()].slice(0,3),dd:()=>nD[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${tD(e.getDay())}`,d:()=>`${e.getDay()}`},i=new RegExp(Object.keys(r).join("|"),"g");return t.replace(i,o=>o in r?r[o]():o)}function u1(e,t=!1){return!!Po(e,t)}function NOe(e){return u1(e,!0)}function Po(e,t=!1,n){if(!e||!n&&!kOe.test(e))return null;const[r,i]=e.split(FOe);if(!r)return null;const o=r.split("-").map(m=>Number.parseInt(m,10));if(o.filter(m=>!isNaN(m)).length!==3)return null;const[s,a,l]=o,u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l||!i&&t)return null;if(!i||i==="00:00:00")return u;const[d,f,g]=i.split(":").map(m=>Number.parseInt(m,10));if(d>=0&&d<24)u.setHours(d);else if(t)return null;if(f>=0&&f<60)u.setMinutes(f);else if(t)return null;if(g>=0&&g<60)u.setSeconds(g);else if(t)return null;return u}function ob(e,t){const n=t.split(".");let r=e;for(let i=0;i<n.length;i++){if(r==null)return;r=r[n[i]]}return r}var BOe=["dateTimeString","dateString","text","number","bigint","boolean","date"],HOe=class extends Se{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number(){return{cellEditor:"agNumberCellEditor"}},bigint({filterModuleBean:e}){return e?{cellEditor:"agTextCellEditor"}:{cellEditor:"agTextCellEditor",comparator:{default:jOe,absolute:UOe}}},boolean(){return{cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:({node:e,event:t,column:n})=>t.key===fe.SPACE&&n.isCellEditable(e)}},date({formatValue:e}){return{cellEditor:"agDateCellEditor",keyCreator:e}},dateString({formatValue:e}){return{cellEditor:"agDateStringCellEditor",keyCreator:e}},dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object({formatValue:e,colModel:t,colId:n}){return{cellEditorParams:{useFormatter:!0},comparator:(r,i)=>{const o=t.getColDefCol(n),s=o?.colDef;if(!o||!s)return 0;const a=r==null?"":e({column:o,node:null,value:r}),l=i==null?"":e({column:o,node:null,value:i});return a===l?0:a>l?1:-1},keyCreator:e}},text(){return{}}}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={},n={},r=d=>f=>{const{column:g,node:m,value:y}=f;let b=g.getColDef().valueFormatter;return b===d.groupSafeValueFormatter&&(b=d.valueFormatter),this.beans.valueSvc.formatValue(g,m,y,b)};for(const d of Object.keys(e)){const f=e[d],g={...f,groupSafeValueFormatter:uj(f,this.gos)};t[d]=g,n[d]=r(g)}const i=this.gos.get("dataTypeDefinitions")??{},o={};for(const d of Object.keys(i)){const f=i[d],g=this.processDataTypeDefinition(f,i,[d],e);
vendor: 1,993 bytes, line 827
827g&&(t[d]=g,f.dataTypeMatcher&&(o[d]=f.dataTypeMatcher),n[d]=r(g))}const{valueParser:s,valueFormatter:a}=e.object,{valueParser:l,valueFormatter:u}=t.object;this.hasObjectValueParser=l!==s,this.hasObjectValueFormatter=u!==a,this.formatValueFuncs=n,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(o,e)}sortKeysInMatchers(e,t){const n={...e};for(const r of BOe)delete n[r],n[r]=e[r]??t[r].dataTypeMatcher;return n}processDataTypeDefinition(e,t,n,r){let i;const o=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let s=r[o];const a=t[o];if(s&&a&&(s=a),!lj(e,s,o))return;i=aj(s,e)}else{if(n.includes(o)){Me(44);return}const s=t[o];if(!lj(e,s,o))return;const a=this.processDataTypeDefinition(s,t,[...n,o],r);if(!a)return;i=aj(a,e)}return{...i,groupSafeValueFormatter:uj(i,this.gos)}}updateColDefAndGetColumnType(e,t,n){let{cellDataType:r}=t;r===void 0&&(r=e.cellDataType);const{field:i}=t;if((r==null||r===!0)&&(r=this.canInferCellDataType(e,t)?this.inferCellDataType(i,n):!1),this.addFormulaCellEditorToColDef(e,t),!r){e.cellDataType=!1;return}const o=this.dataTypeDefinitions[r];if(!o){Me(47,{cellDataType:r});return}return e.cellDataType=r,o.groupSafeValueFormatter&&(e.valueFormatter=o.groupSafeValueFormatter),o.valueParser&&(e.valueParser=o.valueParser),o.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,r,o,n),o.columnTypes}addFormulaCellEditorToColDef(e,t){!(t.allowFormula??e.allowFormula)||t.cellEditor||(e.cellEditor="agFormulaCellEditor")}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.colId];if(!t)return;const n=r=>{t.add(r.key)};e.__addEventListener("columnStateUpdated",n),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",n))}canInferCellDataType(e,t){const{gos:n}=this;if(!hr(n))return!1;const r={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0}
vendor: 4,770 bytes, line 827
827;if(rD(t,r))return!1;const i=t.type===null?e.type:t.type;if(i){const o=n.get("columnTypes")??{};if(W1(i).some(a=>{const l=o[a.trim()];return l&&rD(l,r)}))return!1}return!rD(e,r)}inferCellDataType(e,t){if(!e)return;let n;const r=this.getInitialData();return r?n=e.includes(".")&&!this.gos.get("suppressFieldDotNotation")?ob(r,e):r[e]:this.initWaitForRowData(t),n==null?void 0:Object.keys(this.dataTypeMatchers).find(o=>this.dataTypeMatchers[o](n))??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const t=this.beans.rowModel.rootNode?._leafs;if(t?.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:n,eventSvc:r}=this.beans;t&&n&&(n.shouldQueueResizeOperations=!0);const[i]=this.addManagedEventListeners({rowDataUpdateStarted:o=>{const{firstRowData:s}=o;s&&(i?.(),this.isPendingInference=!1,this.processColumnsPendingInference(s,t),this.columnStateUpdatesPendingInference={},t&&n?.processResizeOperations(),r.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const n=[];this.destroyColumnStateUpdateListeners();const r={},i={};for(const o of Object.keys(this.columnStateUpdatesPendingInference)){const s=this.columnStateUpdatesPendingInference[o],a=this.colModel.getCol(o);if(!a)continue;const l=a.colDef;if(!this.resetColDefIntoCol(a,"cellDataTypeInferred"))continue;const u=a.colDef;if(t&&u.type&&u.type!==l.type){const d=WOe(a,s);d.rowGroup&&d.rowGroupIndex==null&&(r[o]=d),d.pivot&&d.pivotIndex==null&&(i[o]=d),n.push(d)}}t&&n.push(...this.generateColumnStateForRowGroupAndPivotIndexes(r,i)),n.length&&Ya(this.beans,{state:n},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const n={},{rowGroupColsSvc:r,pivotColsSvc:i}=this.beans;return r?.restoreColumnOrder(n,e),i?.restoreColumnOrder(n,t),Object.values(n)}resetColDefIntoCol(e,t){const n=e.getUserProvidedColDef();if(!n)return!1;const r=Q_(this.beans,n,e.colId);return e.setColDef(r,n,t),!0}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return e==="dateTime"||e==="dateTimeString"}getDataTypeDefinition(e){const t=e.colDef;if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(t==null)return!0;const n=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!n||e.colDef.allowFormula&&this.beans.formula?.isFormula(t)?!0:n(t)}validateColDef(e,t,n,r){if(e.cellDataType==="object"){const i=l=>l?.cellDataType==null||l?.cellDataType===!0,o=i(t)&&i(n),s=l=>Me(48,{property:l,inferred:o,colId:r}),{object:a}=this.dataTypeDefinitions;e.valueFormatter===a.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&s("Formatter"),e.editable&&e.valueParser===a.valueParser&&!this.hasObjectValueParser&&s("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||typeof t!="string")return;const{dataTypeDefinitions:n,beans:r,formatValueFuncs:i}=this,o=n[t];o&&r.colFilter?.setColDefPropsForDataType(e,o,i[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,n,r){const i=this.formatValueFuncs[t],o=this.columnDefinitionPropsPerDataType[n.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:n,colId:r,formatValue:i,filterModuleBean:this.beans.filterManager});e.cellEditor==="agFormulaCellEditor"&&o.cellEditor!==e.cellEditor&&(o.cellEditor=e.cellEditor),Object.assign(e,o)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),n=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:r=>Po(r.newValue&&String(r.newValue)),valueFormatter:r=>r.value==null?"":!(r.value instanceof Date)||isNaN(r.value.getTime())?t("invalidDate","Invalid Date"):Ao(r.value,n)??"",dataTypeMatcher:r=>r instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:n=>Po(n)??void 0,dateFormatter:n=>Ao(n??null,t)??void 0,valueParser:n=>u1(String(n.newValue))?n.newValue:null,valueFormatter:n=>u1(String(n.value))?String(n.value):"",dataTypeMatcher:n=>typeof n=="string"&&u1(n)}}getDefaultDataTypes(){const e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:t=>
vendor: 1,676 bytes, line 827
827t.newValue?.trim?.()===""?null:Number(t.newValue),valueFormatter:t=>t.value==null?"":typeof t.value!="number"||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:t=>typeof t=="number"},bigint:{baseDataType:"bigint",valueParser:t=>{const{newValue:n}=t;return n==null||typeof n=="string"&&n.trim()===""?null:es(n)},valueFormatter:t=>t.value==null?"":typeof t.value!="bigint"?e("invalidBigInt","Invalid BigInt"):String(t.value),dataTypeMatcher:t=>typeof t=="bigint"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:U_(t.newValue),dataTypeMatcher:t=>typeof t=="string"},boolean:{baseDataType:"boolean",valueParser:t=>t.newValue==null?t.newValue:t.newValue?.trim?.()===""?null:String(t.newValue).toLowerCase()==="true",valueFormatter:t=>t.value==null?"":String(t.value),dataTypeMatcher:t=>typeof t=="boolean"},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:t=>typeof t=="string"&&NOe(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>U_(t.value)??""}}}destroyColumnStateUpdateListeners(){for(const e of this.columnStateUpdateListenerDestroyFuncs)e();this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function aj(e,t){const n={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(n.columnTypes=[...W1(e.columnTypes),...W1(t.columnTypes)]),n}
vendor: 7,330 bytes, line 827
827function lj(e,t,n){return t?t.baseDataType!==e.baseDataType?(Me(46),!1):!0:(Me(45,{parentCellDataType:n}),!1)}var VOe=e=>typeof e=="bigint"||typeof e=="number",zOe=e=>e==="number"||e==="bigint";function uj(e,t){if(e.valueFormatter)return n=>{const{node:r,colDef:i,column:o,value:s}=n;if(r?.group){const a=(i.pivotValueColumn??o).getAggFunc();if(a){if(a==="first"||a==="last")return e.valueFormatter(n);const{baseDataType:l}=e;if(zOe(l)&&a!=="count"){if(VOe(s))return e.valueFormatter(n);if(s==null)return;if(typeof s=="object"){if(typeof s.toNumber=="function")return e.valueFormatter({...n,value:s.toNumber()});if("value"in s)return e.valueFormatter({...n,value:s.value})}}return}}else if(t.get("groupHideOpenParents")&&n.column.isRowGroupActive()&&typeof n.value=="string"&&!e.dataTypeMatcher?.(n.value))return;return e.valueFormatter(n)}}function GOe(e,t,n,r){if(!t[n])return!1;const i=e[n];return i===null?(t[n]=!1,!1):r===void 0?!!i:i===r}function jOe(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const n=es(e),r=es(t);return n!=null&&r!=null?n===r?0:n>r?1:-1:0}function UOe(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const n=cj(e),r=cj(t);return n!=null&&r!=null?n===r?0:n>r?1:-1:0}function cj(e){const t=es(e);return t==null?null:t<0n?-t:t}function rD(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([n,r])=>GOe(e,t,n,r))}function WOe(e,t){const n=Tne(e);for(const r of t)delete n[r],r==="rowGroup"?delete n.rowGroupIndex:r==="pivot"&&delete n.pivotIndex;return n}var $Oe={moduleName:"DataType",version:Le,beans:[HOe],dependsOn:[uOe]},qOe={moduleName:"ColumnFlex",version:Le,beans:[_Oe]},One={moduleName:"ColumnApi",version:Le,beans:[IOe],apiFunctions:{getColumnDef:dOe,getDisplayNameForColumn:fOe,getColumn:gOe,getColumns:pOe,applyColumnState:mOe,getColumnState:vOe,resetColumnState:yOe,isPinning:bOe,isPinningLeft:wOe,isPinningRight:COe,getDisplayedColAfter:SOe,getDisplayedColBefore:xOe,setColumnsVisible:EOe,setColumnsPinned:ROe,getAllGridColumns:AOe,getDisplayedLeftColumns:TOe,getDisplayedCenterColumns:POe,getDisplayedRightColumns:OOe,getAllDisplayedColumns:DOe,getAllDisplayedVirtualColumns:MOe,getColumnDefs:hOe}},KOe=class extends Se{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,n=!1){if(!e)return null;const r=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:i}=this.beans;return n&&i?i.getHeaderName(e,r):r}getDisplayNameForProvidedColumnGroup(e,t,n){const r=t?.getColGroupDef();return r?this.getHeaderName(r,null,e,t,n):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,n,r,i){const o=e.headerValueGetter;if(o){const s=ft(this.gos,{colDef:e,column:t,columnGroup:n,providedColumnGroup:r,location:i});return typeof o=="function"?o(s):typeof o=="string"?this.beans.expressionSvc?.evaluate(o,s)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return oxe(e.field)}return""}},YOe=class extends Se{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[]}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}getScrollPosition(){return this.scrollPosition}setScrollPosition(e,t,n=!1){const{visibleCols:r}=this,i=r.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!i)){if(this.scrollWidth=e,this.scrollPosition=t,r.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const s=r.bodyWidth;this.viewportLeft=s-t-e,this.viewportRight=s-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(n)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let n;switch(e){case"left":n=this.rowsOfHeadersToRenderLeft[t];break;case"right":n=this.rowsOfHeadersToRenderRight[t];break;default:n=this.rowsOfHeadersToRenderCenter[t];break}return n??[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[],this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||XOe(e)?!0:this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,i=this.viewportRight+200,o=t<r&&n<r,s=t>i&&n>i;return!o&&!s}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const t=o=>{const s=o.getLeft();return Ve(s)&&s>this.viewportLeft},n=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:r}=this,i=r.centerCols;return r.getColsForRow(e,i,n,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){const{leftCols:e,rightCols:t}=this.visibleCols;this.columnsToRenderLeft=e,this.columnsToRenderRight=t,this.columnsToRenderCenter=this.colsWithinViewport;const n=r=>{const i=new Set,o={};for(const s of r){let a=s.parent;const l=s.isSpanHeaderHeight();for(;a&&!i.has(a);){if(l&&a.isPadding()){a=a.parent;continue}const d=a.getProvidedColumnGroup().getLevel();o[d]??(o[d]=[]),o[d].push(a),i.add(a),a=a.parent}}return o};this.rowsOfHeadersToRenderLeft=n(e),this.rowsOfHeadersToRenderRight=n(t),this.rowsOfHeadersToRenderCenter=n(this.headerColsWithinViewport)}extractViewport(){const e=r=>`${r.getId()}-${r.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),n=this.colsWithinViewportHash!==t;return n&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),n}};function XOe(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.parent}return!1}var ZOe=class extends Se{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class n{refresh(){return!1}getGui(){return this.eGui}init(i){const o=t(i),s=typeof o;if(s==="string"||s==="number"||s==="boolean"){this.eGui=QL("<span>"+o+"</span>");return}if(o==null){this.eGui=Ss({tag:"span"});return}this.eGui=o}}return n}},QOe={moduleName:"CellRendererFunction",version:Le,beans:[ZOe]},JOe=class extends Do{constructor(){super(...arguments),this.beanName="registry"}
vendor: 4,159 bytes, line 827
827registerDynamicBeans(e){if(e){this.dynamicBeans??(this.dynamicBeans={});for(const t of Object.keys(e))this.dynamicBeans[t]=e[t]}}createDynamicBean(e,t,...n){if(!this.dynamicBeans)throw new Error(this.getDynamicError(e,!0));const r=this.dynamicBeans[e];if(r==null){if(t)throw new Error(this.getDynamicError(e,!1));return}return new r(...n)}};function eDe(e){return typeof e=="object"&&!!e.getComp}var tDe=class extends JOe{constructor(){super(...arguments),this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){const t=this.gos.get("components");if(t!=null)for(const n of Object.keys(t))this.jsComps[n]=t[n]}registerModule(t){const{icons:n,userComponents:r,dynamicBeans:i,selectors:o}=t;if(r){const s=(a,l,u,d)=>{this.agGridDefaults[a]=l,(u||d)&&(this.agGridDefaultOverrides[a]={params:u,processParams:d})};for(const a of Object.keys(r)){let l=r[a];if(eDe(l)&&(l=l.getComp(this.beans)),typeof l=="object"){const{classImp:u,params:d,processParams:f}=l;s(a,u,d,f)}else s(a,l)}}this.registerDynamicBeans(i);for(const s of o??[])this.selectors[s.selector]=s;if(n)for(const s of Object.keys(n))this.icons[s]=n[s]}getUserComponent(t,n){const r=(l,u,d,f)=>({componentFromFramework:u,component:l,params:d,processParams:f}),{frameworkOverrides:i}=this.beans,o=i.frameworkComponent(n,this.gos.get("components"));if(o!=null)return r(o,!0);const s=this.jsComps[n];if(s){const l=i.isFrameworkComponent(s);return r(s,l)}const a=this.agGridDefaults[n];if(a){const l=this.agGridDefaultOverrides[n];return r(a,!1,l?.params,l?.processParams)}return this.beans.validation?.missingUserComponent(t,n,this.agGridDefaults,this.jsComps),null}getSelector(t){return this.selectors[t]}getIcon(t){return this.icons[t]}getDynamicError(t,n){return n?ql(279,{name:t}):this.beans.validation?.missingDynamicBean(t)??ql(256)}},nDe=23,rDe=class extends Se{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",()=>{if(this.updateReady(),this.ready){for(const e of this.readyCallbacks)e(this.params);this.readyCallbacks.length=0}},this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){const e=Object.values(this.params);this.ready=e.length===nDe&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const n=this.readyCallbacks.indexOf(t);n>=0&&this.readyCallbacks.splice(n,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:n}=this.params;return[e,n,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},iDe=':where([class^=ag-]),:where([class^=ag-]):after,:where([class^=ag-]):before{box-sizing:border-box}:where([class^=ag-]):where(button){color:inherit}:where([class^=ag-]):where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}:where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block}.ag-measurement-element-border:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}.ag-popup-child{top:0;z-index:5}.ag-popup-child:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}
827.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-wrapper-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);font-weight:var(--ag-font-weight);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled .ag-icon,[disabled] .ag-icon{opacity:.5}.ag-icon-grip.ag-disabled,.ag-icon-grip[disabled]{opacity:.35}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}',TN=typeof window!="object"||!window?.document?.fonts?.forEach,Dne=!1,Yf=(e,t,n,r,i,o,s=!1)=>{if(TN||Dne)return;let a=e;r&&(a=`@layer ${CSS.escape(r).replaceAll("\\.",".")} { ${e} }`);let l=Gl.map.get(t);if(l||(l=[],Gl.map.set(t,l)),l.some(g=>g.injectedCss===a))return;const u=document.createElement("style");o&&u.setAttribute("nonce",o),u.dataset.agCss=n,u.dataset.agCssVersion=Le,u.textContent=a;const d={rawCss:e,injectedCss:a,el:u,priority:i,isParams:s};let f;for(const g of l){if(g.priority>i)break;f=g}if(f){f.el.after(u);const g=l.indexOf(f);l.splice(g+1,0,d)}else t.nodeName==="STYLE"?t.after(u):t.insertBefore(u,t.querySelector(":not(title, meta)")),l.push(d)},Mne=(e,t,n,r)=>{Yf(iDe,e,"shared",t,0,n),r?.forEach((i,o)=>i.forEach(s=>Yf(s,e,o,t,0,n)))},oDe=(e,t,n,r,i,o)=>{if(TN||Dne)return;const s=Gl.grids.get(e);s?s.paramsCss=t:Gl.grids.set(e,{styleContainer:r,paramsCss:t}),dF(r),t&&n&&Yf(t,r,n,i,2,o,!0)},sDe=e=>{const t=Gl.grids.get(e)?.styleContainer;if(!t)return;Gl.grids.delete(e),Array.from(Gl.grids.values()).some(r=>r.styleContainer===t)?dF(t):(dF(t,!0),Gl.map.delete(t))},dF=(e,t=!1)=>{const n=new Set;for(const i of Gl.grids.values())i.styleContainer===e&&n.add(i.paramsCss);const r=Gl.map.get(e)??[];for(let i=r.length-1;i>=0;i--)(t||r[i].isParams&&!n.has(r[i].rawCss))&&(r[i].el.remove(),r.splice(i,1))},Ine=()=>{const e=globalThis.agStyleInjectionVersions??(globalThis.agStyleInjectionVersions=new Map);let t=e.get(Le);return t||(t={map:new WeakMap,grids:new Map,paramsId:0},e.set(Le,t)),t},Gl=Ine(),da=e=>new _ne(e),wd="$default",aDe=0,_ne=class{constructor({feature:e,params:t,modeParams:n={},css:r,cssImports:i}){this.feature=e,this.css=r,this.cssImports=i,this.modeParams={[w
vendor: 4,180 bytes, lines 827-831
827d]:{...n[wd]??{},...t??{}},...n}}use(e,t,n){let r=this._inject;if(r==null){let{css:i}=this;if(i){const o=`ag-theme-${this.feature??"part"}-${++aDe}`;typeof i=="function"&&(i=i()),i=`:where(.${o}) { 828${i} 829} 830`;for(const s of this.cssImports??[])i=`@import url(${JSON.stringify(s)}); 831${i}`;r={css:i,class:o}}else r=!1;this._inject=r}return r&&e&&Yf(r.css,e,r.class,t,1,n),r?r.class:!1}},lDe=e=>e.replace(/[A-Z]|\d+/g,t=>`-${t}`).toLowerCase(),PN=e=>`--ag-${lDe(e)}`,eu=e=>`var(${PN(e)})`,uDe=(e,t,n)=>Math.max(t,Math.min(n,e)),cDe=e=>{const t=new Map;return n=>{const r=n;return t.has(r)||t.set(r,e(n)),t.get(r)}},Ll=e=>({ref:"accentColor",mix:e}),Zs=e=>({ref:"foregroundColor",mix:e}),ra=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),dDe=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),Zi={ref:"backgroundColor"},gf={ref:"foregroundColor"},Hl={ref:"accentColor"},J1={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:Zs(.15),chromeBackgroundColor:ra(.02),browserColorScheme:"light"},Fne=()=>["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],hDe={...J1,textColor:gf,accentColor:"#2196f3",invalidColor:"#e02525",fontFamily:Fne(),subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,fontWeight:"inherit",focusShadow:{spread:3,color:Ll(.5)},focusErrorShadow:{spread:3,color:{ref:"invalidColor",onto:"backgroundColor",mix:.5}},popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},dragAndDropImageBackgroundColor:Zi,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:Hl,toggleButtonOffBackgroundColor:ra(.3),toggleButtonSwitchBackgroundColor:Zi,toggleButtonSwitchInset:2,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipErrorBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.1},tooltipTextColor:{ref:"textColor"},tooltipErrorTextColor:{ref:"invalidColor"},tooltipBorder:!0,tooltipErrorBorder:{color:{ref:"invalidColor",onto:"backgroundColor",mix:.25}},panelBackgroundColor:Zi,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontFamily:{ref:"headerFontFamily"},panelTitleBarFontSize:{ref:"headerFontSize"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,dialogShadow:{ref:"popupShadow"},dialogBorder:{color:Zs(.2)},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},dataFontSize:{ref:"fontSize"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},headerFontSize:{ref:"fontSize"},headerFontWeight:500,headerTextColor:{ref:"textColor"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,menuBorder:{color:Zs(.2)},menuBackgroundColor:ra(.03),menuTextColor:ra(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"}},fDe=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],gDe=cDe(e=>(e=e.toLowerCase(),fDe.find(t=>e.endsWith(t.toLowerCase()))??"length")),qE=e=>typeof e=="object"&&e?.ref?eu(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,ON=e=>{if(typeof e=="string")return e;if(typeof e=="object"&&e&&"ref"in e){const t=eu(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?eu(e.onto):"transparent"}, ${t} ${uDe(e.mix*100,0,100)}%)`}return!1},pDe=qE,Up=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:typeof e=="object"&&e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(
831])/gi,n=>n[0]==="-"?n:" "+eu(n)+" ")})`:typeof e=="object"&&e&&"ref"in e?eu(e.ref):!1,mDe=qE,hF=(e,t)=>typeof e=="string"?e:e===!0?hF({},t):e===!1?t==="columnBorder"?hF({color:"transparent"},t):"none":typeof e=="object"&&e&&"ref"in e?eu(e.ref):kne(e.style??"solid")+" "+Up(e.width??{ref:"borderWidth"})+" "+ON(e.color??{ref:"borderColor"}),dj=e=>[Up(e.offsetX??0),Up(e.offsetY??0),Up(e.radius??0),Up(e.spread??0),ON(e.color??{ref:"foregroundColor"}),...e.inset?["inset"]:[]].join(" "),vDe=e=>typeof e=="string"?e:e===!1?"none":typeof e=="object"&&e&&"ref"in e?eu(e.ref):Array.isArray(e)?e.map(dj).join(", "):dj(e),kne=qE,Lne=e=>typeof e=="string"?e.includes(",")?e:hj(e):typeof e=="object"&&e&&"googleFont"in e?Lne(e.googleFont):typeof e=="object"&&e&&"ref"in e?eu(e.ref):Array.isArray(e)?e.map(t=>(typeof t=="object"&&"googleFont"in t&&(t=t.googleFont),hj(t))).join(", "):!1,hj=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),yDe=qE,Nne=e=>typeof e=="string"?e:typeof e=="object"&&e&&"url"in e?`url(${JSON.stringify(e.url)})`:typeof e=="object"&&e&&"svg"in e?Nne({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):typeof e=="object"&&e&&"ref"in e?eu(e.ref):!1,bDe=(e,t,n)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&n?.warn(104,{value:e,param:t}),`${e}s`):typeof e=="object"&&e&&"ref"in e?eu(e.ref):!1,wDe={color:ON,colorScheme:pDe,length:Up,scale:mDe,border:hF,borderStyle:kne,shadow:vDe,image:Nne,fontFamily:Lne,fontWeight:yDe,duration:bDe},CDe=(e,t,n)=>{const r=gDe(e);return wDe[r](t,e,n)},SDe=(e,t)=>new Bne({themeLogger:e,overridePrefix:t}),Bne=class Hne{constructor(t,n=[]){this.params=t,this.parts=n}withPart(t){return typeof t=="function"&&(t=t()),t instanceof _ne?new Hne(this.params,[...this.parts,t]):(this.params.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(t){return this.withPart(da({feature:t}))}withParams(t,n=wd){return this.withPart(da({modeParams:{[n]:t}}))}_startUse({styleContainer:t,cssLayer:n,nonce:r,loadThemeGoogleFonts:i,moduleCss:o}){if(TN)return;EDe(),Mne(t,n,r,o);const s=xDe(this);if(s.length>0)for(const a of s)i&&RDe(a,r);for(const a of this.parts)a.use(t,n,r)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=fj(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).concat(this._getParamsClassName()).join(" "))}_getParamsClassName(){return this._paramsClassName??(this._paramsClassName=`ag-theme-params-${++Ine().paramsId}`)}_getModeParams(){let t=this._paramsCache;if(!t){const n={[wd]:{...hDe}};for(const r of fj(this.parts))for(const i of Object.keys(r.modeParams)){const o=r.modeParams[i];if(o){const s=n[i]??(n[i]={}),a=new Set;for(const l of Object.keys(o)){const u=o[l];u!==void 0&&(s[l]=u,a.add(l))}if(i===wd)for(const l of Object.keys(n)){const u=n[l];if(l!==wd)for(const d of a)delete u[d]}}}this._paramsCache=t=n}return t}_getParamsCss(){if(!this._paramsCssCache){let t="",n="";const r=this._getModeParams(),{overridePrefix:i,themeLogger:o}=this.params,s=i?`--ag-${i}-`:void 0;for(const u of Object.keys(r)){const d=r[u];if(u!==wd){const g=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(u):u}"]) & { 832`;t+=g,n+=g}for(const f of Object.keys(d).sort()){const g=d[f],m=CDe(f,g,o);if(m===!1)o.error(107,{key:f,value:g});else{const y=PN(f),b=s?y.replace("--ag-",s):y,w=y.replace("--ag-","--ag-inherited-");t+=` ${y}: var(${w}, ${m}); 833`,n+=` ${w}: var(${b}); 834`}}u!==wd&&(t+=`} 835`,n+=`} 836`)}const a=`:where(.${this._getParamsClassName()})`;let l=`${a} { 837${t}} 838`;l+=`:has(> ${a}):not(${a}) { 839${n}} 840`,this._paramsCssCache=l}return this._paramsCssCache}},fj=e=>{const t=new Map;for(const r of e)t.set(r.feature,r);const n=[];for(const r of e)(!r.feature||t.get(r.feature)===r)&&n.push(r);return n},xDe=e=>{const t=new Set,n=o=>{if(Array.isArray(o))o.forEach(n);else{const s=o?.googleFont;typeof s=="string"&&t.add(s)}};return Object.values(e._getModeParams()).flatMap(o=>Object.values(o)).forEach(n),Array.from(t).sort()},gj=!1,EDe=()=>{if(!gj){gj=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},RDe=async(e,t)=>{const n=`@import url('https://${ADe}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap'); 841`;Yf(n,document.head,`googleFont:${e}`,void 0,0,t)},ADe="fonts.googleapis.com",pj={changeKey:"listItemHeight",type:"length",defaultValue:24},TDe=class extends Do{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);const n=e.get("themeStyleContainer"),r=typeof ShadowRoot<"u",i=r&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=(typeof n=="function"?n():n)??(i?t:document.head),!n&&!i&&r&&PDe(t,this.shadowRootError.bind(this),this.addDestroyFunc.bind(this)),this.cssLayer=e.get("themeCssLayer"),this.styleNonce=e.get("styleNonce"),this.addManagedPropertyListener("theme",()=>
vendor: 7,420 bytes, line 841
841this.handleThemeChange()),this.handleThemeChange(),this.getSizeEl(pj),this.initVariables(),this.addDestroyFunc(()=>sDe(this)),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("theme")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){const{theme:n}=this,r=n?n._getCssClass():this.applyLegacyThemeClasses();for(const i of Array.from(e.classList))i.startsWith("ag-theme-")&&e.classList.remove(i);if(r){const i=e.className;e.className=`${i}${i?" ":""}${r}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;for(;t;){let n=!1;for(const r of Array.from(t.classList))r.startsWith("ag-theme-")&&(n=!0,e=e?`${e} ${r}`:r);n&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?Yf(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(pj)}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const n=this.measureSizeEl(e);return n==="detached"||n==="no-styles"?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,n),n)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const n=t.offsetWidth;return n===iD?"no-styles":(this.sizesMeasured=!0,n)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=Uf({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const n=this.getMeasurementContainer();t=Uf({tag:"div"});const r=this.setSizeElStyles(t,e);n.appendChild(t),this.sizeEls.set(e,t);const{type:i,noWarn:o}=e;if(i!=="length"&&i!=="border")return t;let s=this.measureSizeEl(e);s==="no-styles"&&!o&&this.varError(r,e.defaultValue);const a=Rc(this.beans,t,()=>{const l=this.measureSizeEl(e);l==="detached"||l==="no-styles"||(this.lastKnownValues.set(e,l),l!==s&&(s=l,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>a()),t}setSizeElStyles(e,t){const{changeKey:n,type:r}=t;let i=PN(n);return r==="border"?(i.endsWith("-width")&&(i=i.slice(0,-6)),e.className="ag-measurement-element-border",e.style.setProperty("--ag-internal-measurement-border",`var(${i}, solid ${iD}px)`)):e.style.width=`var(${i}, ${iD}px)`,i}handleThemeChange(){const{gos:e,theme:t}=this,n=e.get("theme");let r;if(n==="legacy")r=void 0;else{const i=n??this.getDefaultTheme();i instanceof Bne?r=i:this.themeError(i)}r!==t&&this.handleNewTheme(r),this.postProcessThemeChange(r,n)}handleNewTheme(e){const{gos:t,eRootDiv:n,globalCSS:r}=this,i=this.getAdditionalCss();if(e){Mne(this.eStyleContainer,this.cssLayer,this.styleNonce,i);for(const[o,s]of r)Yf(o,this.eStyleContainer,s,this.cssLayer,0,this.styleNonce);r.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:i}),oDe(this,e?._getParamsCss()??null,e?._getParamsClassName()??null,this.eStyleContainer,this.cssLayer,this.styleNonce),this.applyThemeClasses(n),this.fireStylesChangedEvent("theme")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[`${e}Changed`]:!0})}},iD=15538,PDe=(e,t,n)=>{let r=60;const i=setInterval(()=>{typeof ShadowRoot<"u"&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(i)),(e.isConnected||--r<0)&&clearInterval(i)},1e3);n(()=>clearInterval(i))},ODe='.ag-aria-description-container{border:0;clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:9999}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-body-viewport::-webkit-scrollbar,.ag-center-cols-viewport::-webkit-scrollbar,.ag-floating-bottom-viewport::-webkit-scrollbar,.ag-floating-top-viewport::-webkit-scrollbar,.ag-header-viewport::-webkit-scrollbar,.ag-sticky-bottom-viewport::-webkit-scrollbar,.ag-sticky-top-viewport::-webkit-scrollbar{display:none!important}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-left-sticky-bottom,.ag-pinned-right-cols-container,.ag-pinned-right-sticky-bottom,.ag-sticky-bottom-container,.ag-sticky-top-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}
841.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-active),&:where(.ag-scrollbar-scrolling){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{overflow-wrap:break-word;white-space:normal}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-sticky-bottom{box-sizing:content-box!important;:where(.ag-pinned-left-sticky-bottom),:where(.ag-pinned-right-sticky-bottom),:where(.ag-sticky-bottom-container){border-top:var(--ag-row-border);box-sizing:border-box}}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;:where(.ag-column-group-closed-icon),:where(.ag-column-group-opened-icon){cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-cell-font-size);
841font-weight:var(--ag-cell-font-weight);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}.ag-drag-handle-disabled{opacity:.35;pointer-events:none}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width)/2);content:"";height:var(--ag-row-drag-indicator-width);pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-viewport{min-height:150px}}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);
841font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label,:where(.ag-header-group-cell-selectable) .ag-header-cell-comp-wrapper{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden)),:where(.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)):before,.ag-header-group-cell:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}.ag-header-cell:where(:not(.ag-floating-filter)):where(:hover):before,.ag-header-group-cell:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:where(:not(.ag-floating-filter)):where(.ag-header-cell-moving):before,.ag-header-group-cell:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}:where(.ag-header-cell:not(.ag-floating-filter)>*,.ag-header-group-cell>*){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{overflow-wrap:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}
841.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-column-drag-indicator-color);border-radius:calc(var(--ag-column-drag-indicator-width)/2);content:"";height:100%;position:absolute;top:0;width:var(--ag-column-drag-indicator-width)}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2}:where(.ag-ltr) .ag-header-cell-resize{right:-3px}:where(.ag-rtl) .ag-header-cell-resize{left:-3px}.ag-header-cell-resize:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}:where(.ag-ltr) .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-rtl) .ag-header-cell-resize:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{container-type:normal;display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{container-type:normal;display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);container-type:inline-size;display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{content-visibility:auto;height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color)}.ag-chart-menu-icon:hover,.ag-chart-settings-next:hover,.ag-chart-settings-prev:hover,.ag-column-group-icons:hover,.ag-column-select-header-icon:hover,.ag-filter-toolpanel-expand:hover,.ag-floating-filter-button-button:hover,.ag-group-title-bar-icon:hover,.ag-header-cell-filter-button:hover,.ag-header-cell-menu-button:hover,.ag-header-expand-icon:hover,.ag-panel-title-bar-button-icon:hover,.ag-panel-title-bar-button:hover,.ag-set-filter-group-icons:hover,:where(.ag-group-contracted) .ag-icon:hover,:where(.ag-group-expanded) .ag-icon:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}:where(.ag-filter-active),:where(.ag-filter-toolpanel-group-instance-header-icon),:where(.ag-filter-toolpanel-instance-header-icon){position:relative}:where(.ag-filter-active):after,:where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-filter-toolpanel-instance-header-icon):after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-ltr) :where(.ag-filter-active):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-instance-header-icon):after{right:-1px}:where(.ag-rtl) :where(.ag-filter-active):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-instance-header-icon):after{left:-1px}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}',DDe={wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarPanelAnimationDuration:0,sideBarBackgroun
841dColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:Zi,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},cellFontFamily:{ref:"fontFamily"},cellFontSize:{ref:"dataFontSize"},cellFontWeight:{ref:"fontWeight"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:Hl,rangeSelectionBackgroundColor:Ll(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:Ll(.5),rangeHeaderHighlightColor:dDe(.08),rowNumbersSelectedColor:Ll(.5),rowHoverColor:Ll(.08),columnHoverColor:Ll(.05),selectedRowBackgroundColor:Ll(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:Zi,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBackgroundColor:Zi,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroun
841dColor:"#16a08580",rowHeight:{calc:"max(iconSize, cellFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:Zs(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:Zs(.1),iconButtonActiveColor:Hl,iconButtonActiveBackgroundColor:Ll(.28),iconButtonActiveIndicatorColor:Hl,setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:Zs(.8),cellEditingBorder:{color:Hl},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},columnSelectIndentSize:{ref:"iconSize"},toolbarBackgroundColor:{ref:"headerBackgroundColor"},toolbarTextColor:{ref:"headerTextColor"},toolbarSeparatorBorder:!0,toolPanelSeparatorBorder:!0,columnDropCellBackgroun
841dColor:Zs(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:Zs(.13)},selectCellBackgroundColor:Zs(.07),selectCellBorder:{color:Zs(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:Zi,filterPanelApplyButtonBackgroundColor:Hl,columnPanelApplyButtonColor:Zi,columnPanelApplyButtonBackgroundColor:Hl,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:gf,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:gf,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:Zs(.15),statusBarLabelColor:gf,statusBarLabelFontWeight:500,statusBarValueColor:gf,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedRowTextColor:{ref:"textColor"},rowDragIndicatorColor:{ref:"rangeSelectionBorderColor"},rowDragIndicatorWidth:2,columnDragIndicatorColor:{ref:"accentColor"},columnDragIndicatorWidth:2},MDe=".ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}",Vne={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},IDe={...Vne,cellBatchEditTextColor:"#f3d0b3"},_De=()=>da({feature:"batchEditStyle",params:Vne,css:MDe}),FDe=_De(),kDe=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}.ag-standard-button:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}",LDe={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},NDe=()=>da({feature:"buttonStyle",params:{...LDe,buttonBackgroundColor:Zi,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:Hl}},css:kDe}),BDe=NDe(),HDe=".ag-column-drop-vertical-empty-message{align-items:center;border:dashed var(--ag-border-width);border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}",VDe=()=>da({feature:"columnDropStyle",css:HDe}),zne=VDe(),zDe={formulaToken1Color:"#3269c6",formulaToken1Backgroun
vendor: 4,189 bytes, line 841
841dColor:{ref:"formulaToken1Color",mix:.08},formulaToken1Border:{color:{ref:"formulaToken1Color"}},formulaToken2Color:"#c0343f",formulaToken2BackgroundColor:{ref:"formulaToken2Color",mix:.06},formulaToken2Border:{color:{ref:"formulaToken2Color"}},formulaToken3Color:"#8156b8",formulaToken3BackgroundColor:{ref:"formulaToken3Color",mix:.08},formulaToken3Border:{color:{ref:"formulaToken3Color"}},formulaToken4Color:"#007c1f",formulaToken4BackgroundColor:{ref:"formulaToken4Color",mix:.06},formulaToken4Border:{color:{ref:"formulaToken4Color"}},formulaToken5Color:"#b03e85",formulaToken5BackgroundColor:{ref:"formulaToken5Color",mix:.08},formulaToken5Border:{color:{ref:"formulaToken5Color"}},formulaToken6Color:"#b74900",formulaToken6BackgroundColor:{ref:"formulaToken6Color",mix:.06},formulaToken6Border:{color:{ref:"formulaToken6Color"}},formulaToken7Color:"#247492",formulaToken7BackgroundColor:{ref:"formulaToken7Color",mix:.08},formulaToken7Border:{color:{ref:"formulaToken7Color"}}},GDe=()=>da({feature:"formulaStyle",params:zDe}),jDe=GDe(),UDe={noteIndicatorColor:{ref:"accentColor"},noteIndicatorSize:"8px",notePopupBackgroundColor:{ref:"menuBackgroundColor"},notePopupTextColor:{ref:"menuTextColor",mix:.75},notePopupInputTextColor:{ref:"inputTextColor"},notePopupInputBackgroundColor:{ref:"inputBackgroundColor"},notePopupBorder:{ref:"dialogBorder"},notePopupPadding:{calc:"spacing * 0.5"}},WDe=()=>da({feature:"noteStyle",params:UDe}),$De=WDe(),qDe={warn:(...e)=>{Me(e[0],e[1])},error:(...e)=>{on(e[0],e[1])},preInitErr:(...e)=>{Hy(e[0],e[2],e[1])}},KDe=()=>SDe(qDe).withParams(DDe).withPart(BDe).withPart(zne).withPart(FDe).withPart(jDe).withPart($De),YDe='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color)}&:where(.ag-checked):after{background-color:var(--ag-checkbox-checked-shape-color)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input,.ag-radio-button-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}.ag-checkbox-input-wrapper:after,.ag-radio-button-input-wrapper:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}.ag-checkbox-input-wrapper:where(:focus-within,:active),.ag-radio-button-input-wrapper:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color)}&:where(.ag-indeterminate):after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',XDe=()=>da({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:Zi,checkboxUncheckedBorderColor:ra(.3),checkboxCheckedBackgroundColor:Hl,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'}
841,checkboxCheckedShapeColor:Zi,checkboxIndeterminateBackgroundColor:ra(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:Zi,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:YDe}),ZDe=XDe(),Gne=()=>({...J1,...IDe,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:ra(.05),rowHoverColor:Ll(.15),selectedRowBackgroundColor:Ll(.2),menuBackgroundColor:ra(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:gf,columnPanelApplyButtonColor:gf,findMatchColor:Zi,findActiveMatchColor:Zi,checkboxUncheckedBorderColor:ra(.4),toggleButtonOffBackgroundColor:ra(.4),rowBatchEditBackgroundColor:ra(.1),formulaToken1Color:"#4da3e5",formulaToken2Color:"#f55864",formulaToken3Color:"#b688f2",formulaToken4Color:"#24bb4a",formulaToken5Color:"#e772ba",formulaToken6Color:"#f69b5f",formulaToken7Color:"#a3e6ff"}),QDe=()=>({...Gne(),backgroundColor:"#1f2836"}),JDe=()=>da({feature:"colorScheme",params:J1,modeParams:{light:J1,dark:Gne(),"dark-blue":QDe()}}),eMe=JDe(),jne={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/>
841<path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>'},Une={aasc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2012 8.07928C13.6346 8.0793 14.0128 8.15365 14.3359 8.30193C14.6609 8.45018 14.9141 8.65595 15.0947 8.9201C15.2754 9.18439 15.3683 9.49109 15.374 9.83904H14.1904C14.1676 9.60898 14.0695 9.4303 13.8965 9.30291C13.7235 9.1756 13.4889 9.1115 13.1924 9.1115C12.9909 9.1115 12.8204 9.1404 12.6816 9.19744C12.543 9.25255 12.4364 9.32917 12.3623 9.42791C12.2901 9.52678 12.2539 9.63933 12.2539 9.76482C12.2501 9.8692 12.272 9.9604 12.3193 10.0383C12.3688 10.1162 12.4369 10.1843 12.5225 10.2414C12.6079 10.2964 12.7064 10.3451 12.8184 10.3869C12.9304 10.4268 13.0505 10.4609 13.1777 10.4894L13.7031 10.6144C13.9578 10.6715 14.1914 10.7479 14.4043 10.8429C14.6173 10.938 14.8021 11.0547 14.958 11.1935C15.1138 11.3323 15.2348 11.4957 15.3203 11.6838C15.4077 11.8719 15.4522 12.088 15.4541 12.3312C15.4522 12.6885 15.3611 12.9986 15.1807 13.2609C15.0019 13.5214 14.7427 13.7248 14.4043 13.8693C14.0678 14.0118 13.6617 14.0832 13.1865 14.0832C12.7153 14.0832 12.3048 14.0107 11.9551 13.8664C11.6071 13.7219 11.3345 13.5071 11.1387 13.2238C10.9449 12.9387 10.8435 12.5862 10.834 12.1662H12.0283C12.0416 12.362 12.0984 12.5252 12.1973 12.6564C12.298 12.7857 12.4323 12.8838 12.5996 12.9504C12.7688 13.0149 12.96 13.047 13.1729 13.047C13.3817 13.047 13.563 13.0169 13.7168 12.9562C13.8727 12.8954 13.9935 12.8106 14.0791 12.7023C14.1647 12.5939 14.208 12.469 14.208 12.3283C14.2079 12.1974 14.1686 12.0875 14.0908 11.9982C14.0148 11.9089 13.9022 11.8324 13.7539 11.7697C13.6076 11.707 13.4276 11.6501 13.2148 11.5988L12.5791 11.4387C12.0869 11.3189 11.6982 11.1318 11.4131 10.8771C11.128 10.6224 10.9855 10.2793 10.9873 9.84783C10.9854 9.49418
84111.0804 9.18439 11.2705 8.9201C11.4625 8.65603 11.7261 8.45015 12.0605 8.30193C12.3951 8.15369 12.7754 8.07928 13.2012 8.07928Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 14.0002H4.48926L4.05664 12.6681H1.94824L1.51465 14.0002H0.19043L2.20703 8.15935H3.79883L5.8125 14.0002ZM2.26172 11.7043H3.74316L3.02539 9.49334H2.98047L2.26172 11.7043Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 8.15935C8.88165 8.15935 9.24031 8.22251 9.52734 8.34978C9.81445 8.47717 10.0303 8.65477 10.1748 8.88103C10.3192 9.10536 10.3916 9.36368 10.3916 9.65642C10.3916 9.88452 10.3461 10.085 10.2549 10.258C10.1637 10.4289 10.0384 10.5696 9.87891 10.6799C9.72117 10.7882 9.54024 10.8657 9.33691 10.9113V10.9679C9.55917 10.9775 9.76716 11.0406 9.96094 11.1564C10.1568 11.2724 10.3158 11.4356 10.4375 11.6447C10.5591 11.8519 10.6201 12.099 10.6201 12.3859C10.6201 12.6958 10.5427 12.9727 10.3887 13.216C10.2366 13.4573 10.0113 13.6486 9.71289 13.7892C9.41443 13.9299 9.04655 14.0002 8.60938 14.0002H6.11426V8.15935H8.45215ZM7.34863 12.9904H8.35547C8.69943 12.9904 8.95057 12.9252 9.1084 12.7941C9.26621 12.661 9.34473 12.4834 9.34473 12.2629C9.34468 12.1014 9.30643 11.9587 9.22852 11.8351C9.15056 11.7116 9.03903 11.6145 8.89453 11.5441C8.75195 11.4738 8.58148 11.4387 8.38379 11.4387H7.34863V12.9904ZM7.34863 10.6037H8.26465C8.43369 10.6036 8.58376 10.5737 8.71484 10.5148C8.84793 10.454 8.95227 10.3683 9.02832 10.258C9.10628 10.1477 9.14551 10.0155 9.14551 9.8615C9.14546 9.65055 9.07008 9.48001 8.91992 9.35076C8.77165 9.22169 8.56064 9.15741 8.28711 9.1574H7.34863V10.6037Z" fill="black"/><path d="M7.16602 0.377127C7.44584 0.189493 7.82551 0.20905 8.08496 0.442557L11.418 3.44256C11.7257 3.71966 11.7507 4.19428 11.4736 4.50213C11.1966 4.80961 10.7228 4.83441 10.415 4.55779L7.60938 2.03338L5.11328 4.53045C4.82042 4.82326 4.34562 4.82322 4.05273 4.53045C3.75986 4.23757 3.75989 3.7628 4.05273 3.4699L7.05273 0.4699L7.16602 0.377127Z" fill="black"/></svg>',adesc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.3867 11.4697C10.6796 11.1771 11.1544 11.1769 11.4473 11.4697C11.7399 11.7626 11.7399 12.2374 11.4473 12.5303L8.44727 15.5303L8.33398 15.623C8.05425 15.8106 7.67449 15.7909 7.41504 15.5576L4.08203 12.5576C3.77415 12.2805 3.74927 11.8059 4.02637 11.498C4.30342 11.1907 4.77722 11.1657 5.08496 11.4424L7.89062 13.9668L10.3867 11.4697Z" fill="black"/><path d="M13.2012 3.0791C13.6346 3.07912 14.0128 3.1535 14.3359 3.30176C14.6611 3.45006 14.9141 3.65661 15.0947 3.9209C15.2752 4.18513 15.3683 4.49104 15.374 4.83887H14.1904C14.1676 4.60882 14.0695 4.43012 13.8965 4.30273C13.7235 4.17546 13.4889 4.11133 13.1924 4.11133C12.9909 4.11133 12.8204 4.14023 12.6816 4.19727C12.5431 4.25236 12.4364 4.32902 12.3623 4.42773C12.2901 4.52659 12.2539 4.63919 12.2539 4.76465C12.2501 4.86901 12.272 4.96023 12.3193 5.03809C12.3688 5.11604 12.4369 5.18417 12.5225 5.24121C12.6079 5.29623 12.7064 5.34496 12.8184 5.38672C12.9304 5.42661 13.0505 5.46075 13.1777 5.48926L13.7031 5.61426C13.9578 5.67128 14.1914 5.74776 14.4043 5.84277C14.6172 5.93784 14.8021 6.05457 14.958 6.19336C15.1139 6.33216 15.2348 6.49633 15.3203 6.68457C15.4076 6.8727 15.4522 7.08885 15.4541 7.33203C15.4521 7.68929 15.3612 7.99944 15.1807 8.26172C15.0019 8.52216 14.7427 8.72465 14.4043 8.86914C14.0678 9.01165 13.6617 9.08301 13.1865 9.08301C12.7153 9.08299 12.3048 9.01057 11.9551 8.86621C11.6072 8.72173 11.3345 8.50786 11.1387 8.22461C10.9447 7.9394 10.8435 7.58622 10.834 7.16602H12.0283C12.0416 7.36176 12.0985 7.52509 12.1973 7.65625C12.298 7.78554 12.4323 7.88365 12.5996 7.9502C12.7688 8.01477 12.96 8.04785 13.1729 8.04785C13.3817 8.04781 13.5629 8.01678 13.7168 7.95605C13.8727 7.89522 13.9935 7.81051 14.0791 7.70215C14.1646 7.59387 14.2079 7.46965 14.208 7.3291C14.208 7.19796 14.1687 7.08739 14.0908 6.99805C14.0148 6.90868 13.9022 6.83228 13.7539 6.76953C13.6076 6.70685 13.4276 6.64993 13.2148 6.59863L12.5791 6.43848C12.0868 6.31871 11.6982 6.13163 11.4131 5.87695C11.1279 5.62221 10.9855 5.27916 10.9873 4.84766C10.9854 4.49404 11.0804 4.18517 11.2705 3.9209C11.4625 3.65661 11.7259 3.45006 12.0605 3.30176C12.3951 3.15353 12.7754 3.0791 13.2012 3.0791Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 9H4.48926L4.05664 7.66797H1.94824L1.51465 9H0.19043L2.20703 3.15918H3.79883L5.8125 9ZM2.26172 6.7041H3.74316L3.02539 4.49414H2.98047L2.26172 6.7041Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 3.15918C8.88181 3.15918 9.24025 3.22322 9.52734 3.35059C9.81445 3.47798 10.0303 3.6546 10.1748 3.88086C10.3193 4.10518 10.3916 4.36351 10.3916 4.65625C10.3916 4.88432 10.3461 5.08484 10.2549 5.25781C10.1636 5.4289 10.0386 5.57039 9.87891 5.68066C9.72118 5.78898 9.54022 5.86549 9.33691 5.9
8411113V5.96875C9.55913 5.9783 9.76719 6.04044 9.96094 6.15625C10.1568 6.27223 10.3158 6.43538 10.4375 6.64453C10.5591 6.85173 10.6201 7.09875 10.6201 7.38574C10.6201 7.69567 10.5427 7.97245 10.3887 8.21582C10.2366 8.45719 10.0113 8.64841 9.71289 8.78906C9.41442 8.9297 9.04658 8.99999 8.60938 9H6.11426V3.15918H8.45215ZM7.34863 7.99023H8.35547C8.69948 7.99023 8.95057 7.92504 9.1084 7.79395C9.26621 7.66085 9.34473 7.48325 9.34473 7.2627C9.34466 7.10125 9.3064 6.95844 9.22852 6.83496C9.15056 6.71143 9.03899 6.61427 8.89453 6.54395C8.75196 6.47365 8.58145 6.43848 8.38379 6.43848H7.34863V7.99023ZM7.34863 5.60352H8.26465C8.43369 5.60347 8.58376 5.57354 8.71484 5.51465C8.84791 5.45381 8.95228 5.36807 9.02832 5.25781C9.10623 5.14755 9.14551 5.01529 9.14551 4.86133C9.14542 4.65046 9.07002 4.48078 8.91992 4.35156C8.77163 4.22228 8.56087 4.15724 8.28711 4.15723H7.34863V5.60352Z" fill="black"/></svg>',"chevron-down":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 6L8 10L4 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-left":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-right":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-up":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 10L8 6L12 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',edit:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 10.6262V12.5012H5.375L10.905 6.97122L9.03 5.09622L3.5 10.6262ZM12.355 5.52122C12.4014 5.47497 12.4381 5.42002 12.4632 5.35953C12.4883 5.29905 12.5012 5.23421 12.5012 5.16872C12.5012 5.10324 12.4883 5.0384 12.4632 4.97791C12.4381 4.91742 12.4014 4.86248 12.355 4.81622L11.185 3.64622C11.1387 3.59987 11.0838 3.5631 11.0233 3.53801C10.9628 3.51291 10.898 3.5 10.8325 3.5C10.767 3.5 10.7022 3.51291 10.6417 3.53801C10.5812 3.5631 10.5263 3.59987 10.48 3.64622L9.565 4.56122L11.44 6.43622L12.355 5.52122Z" fill="currentColor"/></svg>',"filter-add":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.12126 7.75L10.8517 7.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M6.65934 11.748L9.32778 11.748" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M12.2943 1.04872V6.19184M14.9886 3.74341H9.68478" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M8.25488 3C8.04799 3.18323 7.91706 3.45099 7.91699 3.74902C7.91713 4.04868 8.04988 4.31681 8.25879 4.5H2C1.58579 4.5 1.25 4.16421 1.25 3.75C1.25 3.33579 1.58579 3 2 3H8.25488Z" fill="currentColor"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewB
841ox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>'},tMe=(e={})=>{let t="";for(const n of[...Object.keys(jne),...Object.keys(Une)]){const r=nMe(n,e.strokeWidth);t+=`.ag-icon-${n}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(r)}'); } 842`}return t},nMe=(e,t=1.5)=>{const n=Une[e];if(n)return n;const r=jne[e];if(!r)throw new Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+r+"</svg>"},rMe=(e={})=>da({feature:"iconSet",css:()=>tMe(e)}),iMe=rMe(),oMe=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}&:where(.ag-ltr,.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding:0 var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper),:where(.ag-filter-add-select),:where(.ag-filter-filter),:where(.ag-filter-toolpanel-search),:where(.ag-floating-filter-search-icon),:where(.ag-mini-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper),:where(.ag-ltr) :where(.ag-filter-add-select),:where(.ag-ltr) :where(.ag-filter-filter),:where(.ag-ltr) :where(.ag-filter-toolpanel-search),:where(.ag-ltr) :where(.ag-floating-filter-search-icon),:where(.ag-ltr) :where(.ag-mini-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper),:where(.ag-rtl) :where(.ag-filter-add-select),:where(.ag-rtl) :where(.ag-filter-filter),:where(.ag-rtl) :where(.ag-filter-toolpanel-search),:where(.ag-rtl) :where(.ag-floating-filter-search-icon),:where(.ag-rtl) :where(.ag-mini-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',sMe=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}
842",aMe={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"},colorPickerThumbSize:18,colorPickerTrackSize:12,colorPickerThumbBorderWidth:3,colorPickerTrackBorderRadius:12,colorPickerColorBorderRadius:4},lMe=()=>da({feature:"inputStyle",params:{...aMe,inputBackgroundColor:Zi,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:Hl},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:ra(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>oMe+sMe}),uMe=lMe(),cMe='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative}.ag-tab:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}.ag-tab.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}.ag-tab:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}.ag-tab.ag-tab-selected:after{opacity:1}',dMe={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:{ref:"borderWidth"},tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},hMe=()=>da({feature:"tabStyle",params:{...dMe,tabBarBorder:!0,tabBarBackgroun
842dColor:Zs(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:Zi},css:cMe}),fMe=hMe(),gMe=()=>({fontFamily:[{googleFont:"IBM Plex Sans"},...Fne()]}),pMe=()=>KDe().withPart(ZDe).withPart(eMe).withPart(iMe).withPart(fMe).withPart(uMe).withPart(zne).withParams(gMe()),mMe=pMe(),oh=(e,t,n,r,i)=>({changeKey:e,type:t,defaultValue:n,noWarn:r,cacheDefault:i}),vMe=oh("cellHorizontalPadding","length",16),yMe=oh("indentationLevel","length",0,!0,!0),bMe=oh("rowGroupIndentSize","length",0),mj=oh("rowHeight","length",42),vj=oh("headerHeight","length",48),oD=oh("rowBorderWidth","border",1),yj=oh("pinnedRowBorderWidth","border",1),wMe=oh("headerRowBorderWidth","border",1);function CMe(e,t){for(const n of t.sort((r,i)=>r.moduleName.localeCompare(i.moduleName))){const r=n.css;r&&e.set(`module-${n.moduleName}`,r)}}var SMe=class extends TDe{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(mj),this.getSizeEl(vj),this.getSizeEl(oD),this.getSizeEl(yj),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(yj)}getRowBorderWidth(){return this.getCSSVariablePixelValue(oD)}getHeaderRowBorderWidth(){return this.getCSSVariablePixelValue(wMe)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(mj)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(vj)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(vMe)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(yMe),n=this.getCSSVariablePixelValue(bMe);return e-1+n*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}
vendor: 5,649 bytes, line 842
842refreshRowHeightVariable(){const{eRootDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),n=this.gos.get("rowHeight");if(n==null||isNaN(n)||!isFinite(n))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const r=`${n}px`;return t!=r?(e.style.setProperty("--ag-line-height",r),n):t!=""?Number.parseFloat(t):-1}fireStylesChangedEvent(e){e==="rowBorderWidth"&&this.refreshRowBorderWidthVariable(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(oD);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&on(t?106:239)}getAdditionalCss(){const e=new Map;return e.set("core",[ODe]),CMe(e,Array.from(Zxe())),e}getDefaultTheme(){return mMe}varError(e,t){Me(9,{variable:{cssName:e,defaultValue:t}})}themeError(e){on(240,{theme:e})}shadowRootError(){on(293)}},xMe=class extends Do{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new Gf}addListener(e,t,n){this.globalSvc.addEventListener(e,t,n)}removeListener(e,t,n){this.globalSvc.removeEventListener(e,t,n)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchEvent(e){this.globalSvc.dispatchEvent(this.gos.addCommon(e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(this.gos.addCommon(e))}},EMe=class extends xMe{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function fF(e,t,n){const r=e.visibleCols.headerGroupRowCount;if(n>=r)return{column:t,headerRowIndex:n};let i=t.parent;for(;i&&i.getProvidedColumnGroup().getLevel()>n;)i=i.parent;const o=t.isSpanHeaderHeight();return!i||o&&i.isPadding()?{column:t,headerRowIndex:r}:{column:i,headerRowIndex:i.getProvidedColumnGroup().getLevel()}}var RMe=class extends Se{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,n=>{this.gridBodyCon=n.gridBodyCtrl});const t=Kr(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let n;const{colModel:r,colGroupSvc:i,ctrlsSvc:o}=this.beans;if(typeof e=="string"?(n=r.getCol(e),n||(n=i?.getColumnGroup(e)??null)):n=e,!n)return null;const a=o.getHeaderRowContainerCtrl()?.getAllCtrls(),l=gn(a||[]).type==="filter",u=Js(this.beans)-1;let d=-1,f=n;for(;f;)d++,f=f.parent;let g=d;return t&&l&&g===u-1&&g++,g===-1?null:{headerRowIndex:g,column:n}}navigateVertically(e,t){const{focusSvc:n,visibleCols:r}=this.beans,{focusedHeader:i}=n;if(!i)return!1;const{headerRowIndex:o}=i,s=i.column,a=Js(this.beans),l=this.getHeaderRowType(o),u=r.headerGroupRowCount;let{headerRowIndex:d,column:f,headerRowIndexWithoutSpan:g}=e==="UP"?AMe(l,s,o):TMe(s,o,u),m=!1;return d<0&&(d=0,f=s,m=!0),d>=a?(d=-1,this.currentHeaderRowWithoutSpan=-1):g!==void 0&&(this.currentHeaderRowWithoutSpan=g),!m&&!f?!1:n.focusHeaderPosition({headerPosition:{headerRowIndex:d,column:f},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,n){const{focusSvc:r,gos:i}=this.beans,o={...r.focusedHeader};let s,a;this.currentHeaderRowWithoutSpan!==-1?o.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=o.headerRowIndex,e==="LEFT"!==i.get("enableRtl")?(a="Before",s=this.findHeader(o,a)):(a="After",s=this.findHeader(o,a));const l=i.getCallback("tabToNextHeader");if(t&&l){const u=r.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:s,direction:a});if(u){const{headerRowIndex:d}=r.focusedHeader||{};d!=null&&d!=o.headerRowIndex&&(this.currentHeaderRowWithoutSpan=d)}return u}return s||!t?r.focusHeaderPosition({headerPosition:s,direction:a,fromTab:t,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(o,a,n)}focusNextHeaderRow(e,t,n){const r=this.beans,i=e.headerRowIndex;let o,s;const a=Js(r),l=this.beans.visibleCols.allCols;if(t==="Before"){if(i<=0)return!1;o=gn(l),s=i-1,this.currentHeaderRowWithoutSpan-=1}else o=l[0],s=i+1,this.currentHeaderRowWithoutSpan<a?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:u,headerRowIndex:d}=fF(this.beans,o,s);return d>=a&&(d=-1),r.focusSvc.focusHeaderPosition({headerPosition:{column:u,headerRowIndex:d},direction:t,fromTab:!0,allowUserOverride:!0,event:n})}scrollToColumn(e,t="After"){if(e.getPinned())return;let n;if(xr(e)){const r=e.getDisplayedLeafColumns();n=t==="Before"?gn(r):r[0]}else n=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(n)}findHeader(e,t){const{colGroupSvc:n,visibleCols:r}=this.beans;let i=e.column;if(i instanceof Lb){const l=i.getDisplayedLeafColumns();i=t==="Before"?l[0]:l[l.length-1]}const o=t==="Before"?r.getColBefore(i):r.getColAfter(i);if(!o)return;const s=r.headerGroupRowCount;if(e.headerRowIndex>=s)return{headerRowIndex:e.headerRowIndex,column:o};const a=n?.getColGroupAtLevel(o,e.headerRowIndex);return a?a.isPadding()&&o.isSpanHeaderHeight()?{headerRowIndex:r.headerGroupRowCount,column:o}:{headerRowIndex:e.headerRowIndex,column:a??o}:{headerRowIndex:o instanceof mg&&o.isSpanHeaderHeight()?r.headerGroupRowCount:e.headerRowIndex,column:o}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}};function AMe(e,t,n){const r=n-1;if(e!=="filter"){const i=t instanceof mg&&t.isSpanHeaderHeight();let o=t.parent;for(;o&&(o.getProvidedColumnGroup().getLevel()>r||i&&o.isPadding());)o=o.parent;
vendor: 8,430 bytes, line 842
842if(o)return i?{column:o,headerRowIndex:o.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:r}:{column:o,headerRowIndex:r,headerRowIndexWithoutSpan:r}}return{column:t,headerRowIndex:r,headerRowIndexWithoutSpan:r}}function TMe(e,t,n){const r=t+1,i={column:e,headerRowIndex:r,headerRowIndexWithoutSpan:r};if(e instanceof Lb){if(r>=n)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:n,headerRowIndexWithoutSpan:r};let s=e.getDisplayedChildren()[0];if(s instanceof Lb&&s.isPadding()){const l=s.getDisplayedLeafColumns()[0];l.isSpanHeaderHeight()&&(s=l)}i.column=s,s instanceof mg&&s.isSpanHeaderHeight()&&(i.headerRowIndex=n,i.headerRowIndexWithoutSpan=r)}return i}var PMe=class extends Se{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){const e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(VRe(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,this.focusFallbackTimeout!=null&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,this.focusFallbackTimeout!=null&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t||!this.doesRowOrCellHaveBrowserFocus()?null:t}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||!this.isDomDataPresentInHierarchy($n(this.beans),ene)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=$n(this.beans);return this.isDomDataPresentInHierarchy(e,Y1,!0)?!0:this.isDomDataPresentInHierarchy(e,X1,!0)}isDomDataPresentInHierarchy(e,t,n){let r=e;for(;r;){const i=vte(this.gos,r,t);if(i)return i.destroyed&&n?(this.attemptToRecoverFocus(),!1):!0;r=r.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:n,column:r}=e,i={rowIndex:t,rowPinned:n,column:r,isFullWidthCell:!1},o=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n});return o&&(i.isFullWidthCell=o.isFullWidth()),i}clearFocusedCell(){if(this.focusedCell==null)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:n,rowPinned:r,forceBrowserFocus:i=!1,preventScrollOnBrowserFocus:o=!1,sourceEvent:s}=e,a=this.colModel.getCol(t);if(!a){this.focusedCell=null;return}this.focusedCell={rowIndex:n,rowPinned:oc(r),column:a};const l=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...l,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:i,preventScrollOnBrowserFocus:o,sourceEvent:s}),this.previousCellFocusParams=l}isCellFocused(e){return this.focusedCell==null?!1:mN(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:n,pinned:r}}=e,{column:i,headerRowIndex:o}=this.focusedHeader;return t===i&&n===o&&r==i.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),Ga(this.beans))return!1;const{direction:t,fromTab:n,allowUserOverride:r,event:i,fromCell:o,rowWithoutSpanValue:s,scroll:a=!0}=e;let{headerPosition:l}=e;if(o&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(l);if(r){const u=this.focusedHeader,d=Js(this.beans);if(n){const f=this.gos.getCallback("tabToNextHeader");f&&(l=this.getHeaderPositionFromUserFunc({userFunc:f,direction:t,currentPosition:u,headerPosition:l,headerRowCount:d}))}else{const f=this.gos.getCallback("navigateToNextHeader");if(f&&i){const g={key:i.key,previousHeaderPosition:u,nextHeaderPosition:l,headerRowCount:d,event:i},m=f(g);l=m===null?u:m}}}return l?this.focusProvidedHeaderPosition({headerPosition:l,direction:t,event:i,fromCell:o,rowWithoutSpanValue:s,scroll:a}):!1}focusHeaderPositionFromUserFunc(e){if(Ga(this.beans))return!1;const{userFunc:t,headerPosition:n,direction:r,event:i}=e,o=this.focusedHeader,s=Js(this.beans),a=this.getHeaderPositionFromUserFunc({userFunc:t,direction:r,currentPosition:o,headerPosition:n,headerRowCount:s});return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:r,event:i})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:n,currentPosition:r,headerPosition:i,headerRowCount:o}=e,a=t({backwards:n==="Before",previousHeaderPosition:r,nextHeaderPosition:i,headerRowCount:o});return a===!0?r:a===!1?null:a}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:n,fromCell:r,rowWithoutSpanValue:i,event:o,scroll:s=!0}=e,{column:a,headerRowIndex:l}=t,{filterManager:u,ctrlsSvc:d,headerNavigation:f}=this.beans;if(this.focusedHeader&&RAe(e.headerPosition,this.focusedHeader))return!1;if(l===-1)return u?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:o});s&&f?.scrollToColumn(a,n);const m=d.getHeaderRowContainerCtrl(a.getPinned())?.focusHeader(t.headerRowIndex,a,o)||!1;return f&&m&&(i!=null||r)&&(f.currentHeaderRowWithoutSpan=i??-1),m}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=fF(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;const t=Js(this.beans)-1,n=gn(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return this.focusedCell==null?!1:this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===oc(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&qf(t,e)}getDefaultTabToNextGridContainerTarget(e){const{backwards:t,focusableContainers:n}=e,r=t?-1:1;let i;const o=()=>(i===void 0&&(i=this.getGridBodyTabTarget(t)),i);for(let s=e.nextIndex;s>=0&&s<n.length;s+=r){const a=bAe(n[s],o);if(a)return a}return null}getGridBodyTabTarget(e){if(e)return this.getGridViewTabTarget({column:gn(this.visibleCols.allCols),backwards:!0});const t=this.visibleCols.allCols[0];return this.gos.get("headerHeight")===0||Ga(this.beans)?this.getGridViewTabTarget({column:t}):t?fF(this.beans,t,0):null}getGridViewTabTarget(e){const{backwards:t=!1}=e,n=e.column??this.focusedHeader?.column;if(!n||this.overlays?.exclusive)return null;if(Nb(this.beans))return t&&!Ga(this.beans)?{headerRowIndex:Js(this.beans)-1,column:n}:null;const r=t?U6(this.beans):j6(this.beans);if(r?.rowIndex==null){if(this.overlays?.isVisible())return null;if(t&&!Ga(this.beans)){const o=gn(this.visibleCols.allCols);if(o)return{headerRowIndex:Js(this.beans)-1,column:o}}return null}const i=Jl(this.beans,r);return!i||n.isSuppressNavigable(i)||t&&this.rowRenderer.getRowByPosition(r)?.isFullWidth()?null:{rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:n}}focusGridView(e){const{backwards:t=!1,canFocusOverlay:n=!0,event:r}=e;if(this.overlays?.exclusive)return n&&this.focusOverlay(t);if(Nb(this.beans))return t&&!Ga(this.beans)?this.focusLastHeader():n&&this.focusOverlay(t)?!0:t?!1:Sm(this.beans,t);const i=t?U6(this.beans):j6(this.beans);if(i){const o=e.column??this.focusedHeader?.column,{rowIndex:s,rowPinned:a}=i,l=Jl(this.beans,i);if(!o||!l||s==null)return!1;if(o.isSuppressNavigable(l)){const u=this.gos.get("enableRtl");let d;
vendor: 4,957 bytes, line 842
842return!r||r.key===fe.TAB?d=u?fe.LEFT:fe.RIGHT:d=r.key,this.beans.navigation?.navigateToNextCell(null,d,{rowIndex:s,column:o,rowPinned:a||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:s,column:o,rowPinned:a}),t&&this.rowRenderer.getRowByPosition(i)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(i,t)||(this.setFocusedCell({rowIndex:s,column:o,rowPinned:oc(a),forceBrowserFocus:!0}),Ro(o)||this.beans.rangeSvc?.setRangeToCell({rowIndex:s,rowPinned:a,column:o})),!0}return!!(n&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const n=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:n,headerRowIndex:Js(this.beans)-1}}):this.focusGridView({column:n})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},OMe=class extends Se{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){const{gos:e}=this;this.horizontalScrollShowing=e.get("alwaysShowHorizontalScroll")===!0,this.verticalScrollShowing=e.get("alwaysShowVerticalScroll")===!0,this.getScrollbarWidth();const t=this.updateScrollVisible.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t,displayedColumnsWidthChanged:t,newColumnsLoaded:t})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),n=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==n)&&(this.horizontalScrollGap=t,this.verticalScrollGap=n,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){const e=this.gos.get("scrollbarWidth"),n=typeof e=="number"&&e>=0?e:cN();n!=null&&(this.scrollbarWidth=n,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},DMe=class extends Se{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:n}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),n.destroy(),super.destroy()}},MMe=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterUiChanged","filterOpened","floatingFilterUiChanged","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDrag
842Cancel","findChanged","rowResizeStarted","rowResizeEnded","columnsReset","bulkEditingStarted","bulkEditingStopped","batchEditingStarted","batchEditingStopped"],c1=new Set(["gridPreDestroyed","fillStart","pasteStart"]),DN=MMe.reduce((e,t)=>(e[t]=SEe(t),e),{}),IMe=["__ob__","__v_skip","__metadata__"];function Wne(e,t,n){return new Set([...IMe,...n??[],...Object.keys(t),...e])}var im={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agExportingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agNoMatchingRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agBigIntColumnFilter:"BigIntFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agBigIntColumnFloatingFilter:"BigIntFilter",agDateColumnFloatingFilter:"DateFilter",agFormulaCellEditor:"Formula",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find",agButtonToolbarItem:"Toolbar",agFindToolbarItem:"Toolbar",agMenuToolbarItem:"Toolbar",agPivotPanelToolbarItem:"Toolbar",agQuickFilterToolbarItem:"Toolbar",agRowGroupPanelToolbarItem:"Toolbar"};function bj(e){return`"${e}"`}var _Me=()=>({checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."},rowGroupingHierarchy:{version:"34.3",message:"Use `colDef.groupHierarchy` instead."}}),FMe={allowFormula:"Formula",aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cell
vendor: 8,455 bytes, lines 842-843
842ClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t,groupRowEditable:n})=>!!t||!!n?typeof e=="string"?im[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:im[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,groupRowEditable:({groupRowEditable:e,cellEditor:t})=>e?t?"RowGroupingEdit":["RowGroupingEdit","TextEditor"]:null,groupRowValueSetter:({groupRowValueSetter:e})=>e?"RowGroupingEdit":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?im[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(n=>t.includes(n))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},kMe=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:n})=>n?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},allowFormula:{supportedRowModels:["clientSide"]},cellRendererParams:{validate:t=>(t.rowGroup!=null||t.rowGroupIndex!=null||t.cellRenderer==="agGroupCellRenderer")&&"checkbox"in t.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},flex:{validate:(t,n)=>n.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const n=t.headerValueGetter;return typeof n=="function"||typeof n=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return ql(262);if(t.smallLeft)return ql(263);if(t.smallRight)return ql(264)}return null}},sort:{validate:t=>tm(t.sort)||Bd(t.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${typeof t.sort=="object"?JSON.stringify(t.sort):t1(t.sort)}`},initialSort:{validate:t=>tm(t.initialSort)||Bd(t.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${typeof t.initialSort=="object"?JSON.stringify(t.initialSort):t1(t.initialSort)}`},sortingOrder:{validate:t=>{const n=t.sortingOrder;if(Array.isArray(n)&&n.length>0){const r=n.filter(i=>!(tm(i)||Bd(i)));if(r.length>0)return`sortingOrder must be an array of type non-null (SortDirection | SortDef)[], incorrect items are: [${r.map(i=>typeof i=="string"||i==null?t1(i):JSON.stringify(i)).join(", ")}]`}else if(!Array.isArray(n)||!n.length)return`sortingOrder must be an array with at least one element, currently it is [${n}]`;return null}},type:{validate:t=>{const n=t.type;return n instanceof Array?n.some(i=>typeof i!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof n=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:n})=>n?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},groupRowEditable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:n,cellSelection:r,suppressRowTransform:i,enableCellSpan:o,rowDragEntireRow:s,enableCellTextSelection:a})=>typeof n=="object"&&n?.mode==="singleRow"&&n?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":r?"colDef.spanRows is not supported with cellSelection.":i?"colDef.spanRows is not supported with suppressRowTransform.":o?s?"colDef.spanRows is not supported with rowDragEntireRow.":a?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."},groupHierarchy:{validate(t,{groupHierarchyConfig:n={}},r){const i=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),o=[];for(const s of t.groupHierarchy??[]){if(typeof s=="object"){r.validation?.validateColDef(s);continue}!i.has(s)&&!(s in n)&&o.push(bj(s))}if(o.length>0){const s=`The following parts of colDef.groupHierarchy are not recognised: ${o.join(", ")}.`,a=`Choose one of ${[...i].map(bj).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${s} 843${a}`}return null}}}),LMe={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,groupRowEditable:void 0,groupRowValueSetter:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressS
843panHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0,allowFormula:void 0,suppressNoteActions:void 0},NMe=()=>Object.keys(LMe),wj,BMe=()=>wj??(wj=(()=>{const e=NMe(),t=_Me();return{objectName:"colDef",allProperties:e,allValidNames:Wne(e,t),docsUrl:"column-properties/",deprecations:t,validations:kMe()}})()),HMe=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","noteTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"],VMe=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","activeOverlayParams","popupParent","themeStyleContainer","toolbar","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","advancedFilterParams","formulaDataSource","formulaFuncs","notesDataSource","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers","groupHierarchyConfig"],zMe=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","paginationPanels","suppressOverlays"],$ne=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipSwitchShowDelay","tooltipHideDelay","noteShowDelay","noteHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],GMe=["theme","rowSelection"],jMe=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],qne=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","refreshAfterGroupEdit","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupHideColumnsUntilExpanded","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressContentVisibilityAuto","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows","animateColumnResizing"],UMe=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","overlayComponent","loadingOverlayComponent","noRowsOverlayComponent","overlayComponentSelector","activeOverlay","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","
843sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","tabToNextGridContainer","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"],WMe=()=>[...zMe,...VMe,...HMe,...$ne,...UMe,...qne,...jMe,...GMe],$Me=()=>({suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."},suppressAdvancedFilterEval:{version:"34",message:"Advanced filter no longer uses function evaluation, so this option has no effect."}});function Pl(e,t,n){return typeof t=="number"||t==null?t==null||t>=n?null:`${e}: value should be greater than or equal to ${n}`:`${e}: value should be a number`}var qMe={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",invalidEditValueMode:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getFullRowEditValidationErrors:"EditCore",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"RowGrouping",grandTotalRow:["CsrmHierarchy","ServerSideRowModel"],initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDetail:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"MasterDetail",notesDataSource:"Notes",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"Pivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",refreshAfterGroupEdit:["RowGrouping","TreeData"],rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"RowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"TreeData",toolbar:"Toolbar",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},KMe=()=>{const e={autoSizePadding:{validate({autoSizePadding:n}){return Pl("autoSizePadding",n,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:n}){return Pl("cacheBlockSize",n,1)}},cacheOverflowSize:{validate({cacheOverflowSize:n}){return Pl("cacheOverflowSize",n,1)}}
vendor: 5,159 bytes, lines 843-844
843,datasource:{supportedRowModels:["infinite"]},domLayout:{validate:n=>{const r=n.domLayout,i=["autoHeight","normal","print"];return r&&!i.includes(r)?`domLayout must be one of [${i.join()}], currently it's ${r}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableCellSpan:{supportedRowModels:["clientSide","serverSide"]},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,pinnedTopRowData:r,pinnedBottomRowData:i}){return n&&(r||i)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},isRowPinnable:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,isRowPinnable:r,pinnedTopRowData:i,pinnedBottomRowData:o}){return r&&(i||o)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!n&&r?"`isRowPinnable` requires `enableRowPinning` to be set.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,isRowPinned:r,pinnedTopRowData:i,pinnedBottomRowData:o}){return r&&(i||o)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!n&&r?"`isRowPinned` requires `enableRowPinning` to be set.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideColumnsUntilExpanded:{supportedRowModels:["clientSide"],validate({groupHideColumnsUntilExpanded:n,groupHideOpenParents:r,groupDisplayType:i}){return n&&!r&&i!=="multipleColumns"?"`groupHideColumnsUntilExpanded = true` requires either `groupDisplayType = 'multipleColumns'` or `groupHideOpenParents = true`":null}},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},groupDisplayType:{required:[void 0,"multipleColumns"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:n={}},r,i){for(const o of Object.keys(n))i.validation?.validateColDef(n[o]);return null}},icons:{validate:({icons:n})=>{if(n){if(n.smallDown)return ql(262);if(n.smallLeft)return ql(263);if(n.smallRight)return ql(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:n}){return Pl("infiniteInitialRowCount",n,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:n=>{if(typeof n.ssrmExpandAllAffectsAllRows=="boolean"){if(n.rowModelType!=="serverSide")return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(n.ssrmExpandAllAffectsAllRows&&typeof n.getRowId!="function")return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:n}){return Pl("keepDetailRowsCount",n,1)}},paginationPageSize:{validate({paginationPageSize:n}){return Pl("paginationPageSize",n,1)}},paginationPageSizeSelector:{validate:n=>{const r=n.paginationPageSizeSelector;return typeof r=="boolean"||r==null||r.length?null:`'paginationPageSizeSelector' cannot be an empty array. 844 If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},paginationPanels:{validate:({paginationPanels:n})=>{const r=new Set(["pageSize","rowSummary","pageSummary"]);return n!=null&&(!Array.isArray(n)||n.some(i=>!r.has(i)))?"'paginationPanels' expects an array of panel names: ['pageSize', 'rowSummary', 'pageSummary']":null}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate({rowBuffer:n}){return Pl("rowBuffer",n,0)}},rowClass:{validate:n=>typeof n.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[!1,void 0]}}},rowSelection:{validate({rowSelection:n}){return n&&typeof n=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':n&&typeof n!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":n&&n.mode!=="multiRow"&&n.mode!=="singleRow"?`Selection mode "${n.mode}
844" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:n=>{const r=n.rowStyle;return r&&typeof r=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},notesDataSource:{validate:({getRowId:n})=>n?null:"'getRowId' callback must be provided for Notes to work correctly."},noteHideDelay:{validate:n=>n.noteHideDelay!=null&&n.noteHideDelay<0?"noteHideDelay should not be lower than 0":null},noteShowDelay:{validate:n=>n.noteShowDelay!=null&&n.noteShowDelay<0?"noteShowDelay should not be lower than 0":null},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:n}){return Pl("serverSideInitialRowCount",n,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:n=>{const r=n.sortingOrder;if(Array.isArray(r)&&r.length>0){const i=r.filter(o=>!na(o));if(i.length>0)return`sortingOrder must be an array of type (SortDirection | SortDef)[], incorrect items are: ${i.map(o=>typeof o=="string"||o==null?t1(o):JSON.stringify(o))}]`}else if(!Array.isArray(r)||!r.length)return`sortingOrder must be an array with at least one element, currently it's ${r}`;return null}},tooltipHideDelay:{validate:n=>n.tooltipHideDelay&&n.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:n=>n.tooltipShowDelay&&n.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},tooltipSwitchShowDelay:{validate:n=>n.tooltipSwitchShowDelay&&n.tooltipSwitchShowDelay<0?"tooltipSwitchShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:n=>{const r=n.rowModelType??"clientSide";switch(r){case"clientSide":{const{treeDataChildrenField:i,treeDataParentIdField:o,getDataPath:s,getRowId:a}=n;if(!i&&!o&&!s)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(i){if(s)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(o)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(o){if(!a)return"getRowId callback not provided, tree data with parent id cannot be built.";if(s)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const i=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${r} row model.`;return n.isServerSideGroup&&n.getServerSideGroupKey?null:i}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:n}){return Pl("viewportRowModelBufferSize",n,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:n}){return Pl("viewportRowModelPageSize",n,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:n,showOpenedGroup:r}){return n?.field&&r?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":n?.valueGetter&&r?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}},renderingMode:{validate:n=>{const r=n.renderingMode,i=["default","legacy"];return r&&!i.includes(r)?`renderingMode must be one of [${i.join()}], currently it's ${r}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:n})=>{if(!n)return null;const r=["fitCellContents","fitGridWidth","fitProvidedWidth"],i=n.type;return i!=="fitCellContents"&&i!=="fitGridWidth"&&i!=="fitProvidedWidth"?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${r.map(o=>'"'+o+'"').join(", ")}, currently it's ${i}`:i==="fitProvidedWidth"&&typeof n.width!="number"?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${n.width}`:null}}},t={};for(const n of qne)t[n]={expectedType:"boolean"};for(const n of $ne)t[n]={expectedType:"number"};return Eo(t,e),t},Cj,YMe=()=>Cj??(Cj=(()=>{const e=[...WMe(),...Object.values(DN)],t=$Me(),n=["api"];return{objectName:"gridOptions",allProperties:e,allValidNames:Wne(e,t,n),propertyExceptions:n,docsUrl:"grid-options/",deprecations:t,validations:KMe()}})()),XMe=0,ZMe=0,Sj="__ag_grid_instance",QMe=class extends Se{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=ZMe++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new Gf,this.globalEventHandlerFactory=e=>(t,n)=>{if(!this.isAlive())return;const r=c1.has(t);if(r&&!e||!r&&e||!JMe(t))return;const i=(o,s)=>{const a=DN[o],l=this.gridOptions[a];typeof l=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>l(s))};if(this.gridReadyFired)i(t,n);else if(t==="gridReady"){i(t,n),this.gridReadyFired=!0;for(const o of this.queueEvents)i(o.eventName,o.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:n})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"optionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??rte[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return Ve(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(n=>
vendor: 21,146 bytes, line 844
844e(this.addCommon(n)))}updateGridOptions({options:e,force:t,source:n="api"}){const r={id:XMe++,properties:[]},i=[],{gridOptions:o,validation:s}=this;for(const a of Object.keys(e)){const l=rN.applyGlobalGridOption(a,e[a]);s?.warnOnInitialPropertyUpdate(n,a);const u=t||typeof l=="object"&&n==="api",d=o[a];if(u||d!==l){o[a]=l;const f={type:a,currentValue:l,previousValue:d,changeSet:r,source:n};i.push(f)}}this.validateGridOptions(this.gridOptions),r.properties=i.map(a=>a.type);for(const a of i)Wf(this,`Updated property ${a.type} from`,a.previousValue," to ",a.currentValue),this.propEventSvc.dispatchEvent(a)}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addCommon(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const n of Object.keys(e)){const r=e[n];if(r==null||r===!1)continue;let i=t[n];typeof i=="function"&&(i=i(e,this.gridOptions,this.beans)),i&&this.assertModuleRegistered(i,n)}}validateGridOptions(e){this.validateOptions(e,qMe),this.validation?.processGridOptions(e)}validateColDef(e,t,n){(n||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,FMe),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const n=Array.isArray(e)?e.some(r=>this.isModuleRegistered(r)):this.isModuleRegistered(e);return n||on(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),n}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:iN(),rowModelType:this.get("rowModelType"),isUmd:ute(),usesAgGridProvider:this.beans.frameworkOverrides.usesAgGridProvider??!1}}isModuleRegistered(e){return K_(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[Sj]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){const n=t[Sj];if(Ve(n))return n===this.instanceId;t=t.parentElement}return!1}};function JMe(e){return!!DN[e]}var e2e=class extends Se{constructor(e,t){super(),this.column=e,this.eGui=t,this.lastMovingChanged=0}postConstruct(){this.addManagedElementListeners(this.eGui,{click:e=>e&&this.onClick(e)}),this.addManagedListeners(this.column,{movingChanged:()=>{this.lastMovingChanged=Date.now()}})}onClick(e){const{sortSvc:t,rangeSvc:n,gos:r}=this.beans;if(!(Tf(r)?e.altKey:!0))n?.handleColumnSelection(this.column,e);else if(this.column.isSortable()){const o=this.column.isMoving(),a=Date.now()-this.lastMovingChanged<50;o||a||t?.progressSortFromEvent(this.column,e)}}};function t2e(e,t){const n={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:n},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:n},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[e?{tag:"span",ref:"eColRef",cls:"ag-header-col-ref"}:null,{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:n},t?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var n2e=class extends qn{constructor(){super(...arguments),this.eFilter=Ye,this.eFilterButton=Ye,this.eSortIndicator=Ye,this.eMenu=Ye,this.eLabel=Ye,this.eText=Ye,this.eColRef=Ye,this.eSortOrder=Ye,this.eSortAsc=Ye,this.eSortDesc=Ye,this.eSortMixed=Ye,this.eSortNone=Ye,this.eSortAbsoluteAsc=Ye,this.eSortAbsoluteDesc=Ye,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||e.column.formulaRef!=this.currentRef||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const n={...e};Eo(n,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(n)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const{formula:n}=this.beans,r=e.template;return r?r?.trim?r.trim():r:t2e(!!n?.active,t)}init(e){this.params=e;const{sortSvc:t,touchSvc:n,rowNumbersSvc:r,userCompFactory:i}=this.beans,o=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!o),this.setTemplate(this.currentTemplate,o?[o]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new e2e(e.column,this.eLabel)))),n?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),r?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(i,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const n=CRe(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderComponent=r,this.eText&&this.eText.appendChild(r.getGui())):this.destroyBean(r))}))}setDisplayName(e){const{displayName:t}=e,n=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||n===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=Um(t))}addInIcon(e,t,n){const r=Ko(e,this.beans,n);r&&t.appendChild(r)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){Ql(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:n}=this,r=qo(e);this.addInIcon(r?"menu":"menuAlt",t,n.column),t.classList.toggle("ag-header-menu-icon",!r);const i=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=i,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(i)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:n}=this;t||this.toggleMenuAlwaysShow(!0),n.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:n,beans:r,eMenu:i,eFilterButton:o}=this,s=t.column,a=qo(n);if(e&&!a){if(r.menuSvc?.isFilterMenuInHeaderEnabled(s))return t.showFilter(o??i??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(i??o??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:n}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:r,eSortOrder:i,eSortAsc:o,eSortDesc:s,eSortMixed:a,eSortNone:l,eSortAbsoluteAsc:u,eSortAbsoluteDesc:d}=this;r.attachCustomElements(i,o,s,a,l,u,d)}this.eSortIndicator.setupSort(n),this.currentSort&&e.setupHeader(this,n)}setupColumnRefIndicator(){const{eColRef:e,beans:{editModelSvc:t},params:n}=this;e&&(this.currentRef=n.column.formulaRef,e.textContent=this.currentRef,Cn(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{const r=t?.getEditPositions(),i=!!this.currentRef&&!!r?.some(o=>o.column.isAllowFormula());Cn(e,i)},cellEditingStopped:()=>{Cn(e,!1)}}))}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const n=()=>{const r=t.column.isFilterActive();Cn(e,r,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,n,"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0}configureFilter(e,t,n,r){if(!e)return Ql(t),!1;const i=this.params.column;return this.addInIcon(r,t,i),this.addManagedListeners(i,{filterChanged:n}),n(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:n}=this;return e?t??n??this.getGui():n??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},r2e=class extends Se{constructor(e,t){super(),this.eLabel=e,this.columnGroup=t,this.isSticky=!1,this.left=null,this.right=null}postConstruct(){const{columnGroup:e,beans:t}=this,{ctrlsSvc:n}=t;n.whenReady(this,()=>{const r=this.refreshPosition.bind(this);e.getPinned()==null&&this.addManagedEventListeners({bodyScroll:i=>{i.direction==="horizontal"&&this.updateSticky(i.left)}}),this.addManagedListeners(e,{leftChanged:r,displayedChildrenChanged:r}),this.addManagedEventListeners({columnResized:r}),this.refreshPosition()})}refreshPosition(){const{columnGroup:e,beans:t}=this,n=e.getLeft(),r=e.getActualWidth();if(n==null||r===0){this.left=null,this.right=null,this.setSticky(!1);return}this.left=n,this.right=n+r;const i=t.colViewport.getScrollPosition();i!=null&&this.updateSticky(i)}updateSticky(e){const{beans:t,left:n,right:r}=this;if(n==null||r==null){this.setSticky(!1);return}const{gos:i,visibleCols:o}=t,a=i.get("enableRtl")?o.bodyWidth-e:e;this.setSticky(n<a&&r>a)}setSticky(e){const{isSticky:t,eLabel:n}=this;t!==e&&(this.isSticky=e,n.classList.toggle("ag-sticky-label",e))}},i2e={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},o2e=class extends qn{constructor(){super(i2e),this.agOpened=Ye,this.agClosed=Ye,this.agLabel=Ye,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:n}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),n?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&Me(89)}workOutInnerHeaderGroupComponent(e,t){const n=xRe(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderGroupComponent=r,this.agLabel.appendChild(r.getGui())):this.destroyBean(r))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:n},beans:{colGroupSvc:r}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const i=l=>{if(ac(l))return;const u=!n.isExpanded();r.setColumnGroupOpened(n.getProvidedColumnGroup(),u,"uiColumnExpanded")};this.addTouchAndClickListeners(t,i),this.addTouchAndClickListeners(e,i);const o=l=>{Kf(l)};this.addManagedElementListeners(t,{dblclick:o}),this.addManagedElementListeners(e,{dblclick:o}),this.addManagedElementListeners(this.getGui(),{dblclick:i}),this.updateIconVisibility();const s=n.getProvidedColumnGroup(),a=this.updateIconVisibility.bind(this);this.addManagedListeners(s,{expandedChanged:a,expandableChanged:a})}addTouchAndClickListeners(e,t){this.beans.touchSvc?.setupForHeaderGroupElement(this,e,t),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:n}}=this;if(n.isExpandable()){const r=n.isExpanded();Cn(e,r),Cn(t,!r)}else Cn(e,!1),Cn(t,!1)}addInIcon(e,t){const n=Ko(e,this.beans,null);n&&t.appendChild(n)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:n}=this;Cn(t,!1),Cn(n,!1)}}setupLabel(e){const{displayName:t,columnGroup:n}=e,{innerHeaderGroupComponent:r,isLoadingInnerComponent:i}=this,o=r||i;Ve(t)&&!o&&(this.agLabel.textContent=Um(t)),n.getColGroupDef()?.suppressStickyLabel||this.createManagedBean(new r2e(this.getGui(),n))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},s2e={moduleName:"ColumnHeaderComp",version:Le,userComponents:{agColumnHeader:n2e},icons:{menu:"menu",menuAlt:"menu-alt"}},a2e={moduleName:"ColumnGroupHeaderComp",version:Le,userComponents:{agColumnGroupHeader:o2e},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},l2e=class extends Se{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,e===0&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){this.active===!1&&Me(92)}createTask(e,t,n,r,i=!1){this.verify();let o=n;r&&this.batchFrameworkComps&&(o="f1");const s={task:e,index:t,createOrder:++this.taskCount,deferred:i};this.addTaskToList(this[o],s),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((n,r)=>n.deferred!==r.deferred?n.deferred?-1:1:n.index!==r.index?t*(r.index-n.index):r.createOrder-n.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:n,f1:r,destroyTasks:i,beans:o}=this,{ctrlsSvc:s,frameworkOverrides:a}=o,l=t.list,u=n.list,d=r.list,f=Date.now();let g=0;const m=e<=0,y=s.getScrollFeature();for(;m||g<e;){if(!y.scrollGridIfNeeded()){let w;if(l.length)this.sortTaskList(t),w=l.pop().task;else if(u.length)this.sortTaskList(n),w=u.pop().task;else if(d.length)a.wrapOutgoing(()=>{for(;(m||g<e)&&!y.scrollGridIfNeeded();){if(d.length)this.sortTaskList(r),w=d.pop().task,w();else break;g=Date.now()-f}}),w=()=>{};else if(i.length)w=i.pop();else break;w()}g=Date.now()-f}l.length||u.length||d.length||i.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);nh(this.beans,e)}isQueueEmpty(){return!this.ticking}},u2e={moduleName:"AnimationFrame",version:Le,beans:[l2e]},c2e=class extends Se{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return Ko(e,this.beans,t?.column)}},d2e=(e,t,n)=>t||e&&n,h2e=class extends Se{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){if(!Pf())return;const t=(n,r,i)=>{const{rowCtrl:o,cellCtrl:s}=e.getControlsForEventTarget(i?.target??null);s?.column&&s.dispatchCellContextMenuEvent(i??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,i,o,s)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return(()=>{if(!Pf()||N1("dblclick"))return!1;const r=Date.now(),i=r-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=r,i})()?(e.onCellDoubleClicked(t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:n,menuSvc:r}=this.beans;if(t.get("suppressTouch"))return;const{params:i,eMenu:o,eFilterButton:s}=e,a=new ef(e.getGui(),!0);e.addDestroyFunc(()=>a.destroy());const l=e.shouldSuppressMenuHide(),u=l&&Ve(o)&&i.enableMenu,d=!!r?.isHeaderContextMenuEnabled(i.column),f=d2e(i.enableMenu,d,qo(t));let g=a;u&&(g=new ef(o,!0),e.addDestroyFunc(()=>g.destroy()));const m=y=>i.showColumnMenuAfterMouseClick(y.touchStart);if(u&&i.enableMenu&&e.addManagedListeners(g,{tap:m}),f&&e.addManagedListeners(a,{longTap:m}),i.enableSorting){const y=b=>{const w=b.touchStart.target;l&&(o?.contains(w)||s?.contains(w))||n?.progressSort(i.column,!1,"uiColumnSorted")};e.addManagedListeners(a,{tap:y})}if(i.enableFilterButton&&s){const y=new ef(s,!0);e.addManagedListeners(y,{tap:()=>i.showFilter(s)}),e.addDestroyFunc(()=>y.destroy())}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const n=new ef(t.eGridHeader,!0),r=i=>t.showColumnMenuAfterMouseClick(i.touchStart);e.addManagedListeners(n,{longTap:r}),e.addDestroyFunc(()=>n.destroy())}}setupForHeaderGroupElement(e,t,n){const r=new ef(t,!0);e.addManagedListeners(r,{tap:n}),e.addDestroyFunc(()=>r.destroy())}mockContextMenu(e,t,n){if(!Pf())return;const r=new ef(t),i=o=>{_b(this.beans,o.touchEvent)&&n(void 0,o.touchStart,o.touchEvent)};e.addManagedListeners(r,{longTap:i}),e.addDestroyFunc(()=>r.destroy())}},f2e={moduleName:"Touch",version:Le,beans:[h2e]},g2e=class extends Se{constructor(){super(...arguments),this.beanName="cellNavigation"}getNextCellToFocus(e,t,n=!1){return n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const n=e===fe.UP,r=e===fe.DOWN,i=e===fe.LEFT;let o,s;const{pageBounds:a,gos:l,visibleCols:u,pinnedRowModel:d}=this.beans,{rowPinned:f}=t;if(n||r)f&&d?n?s=0:s=f==="top"?d.getPinnedTopRowCount()-1:d.getPinnedBottomRowCount()-1:s=n?a.getFirstRow():a.getLastRow(),o=t.column;else{const g=l.get("enableRtl");s=t.rowIndex,o=(i!==g?u.allCols:[...u.allCols].reverse()).find(y=>!Ro(y)&&this.isCellGoodToFocusOn({rowIndex:s,rowPinned:null,column:y}))}return o?{rowIndex:s,rowPinned:f,column:o}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let n=t,r=!1;for(;!r;){switch(e){case fe.UP:n=this.getCellAbove(n);break;case fe.DOWN:n=this.getCellBelow(n);break;case fe.RIGHT:n=this.gos.get("enableRtl")?this.getCellToLeft(n):this.getCellToRight(n);break;case fe.LEFT:n=this.gos.get("enableRtl")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,Me(8,{key:e});break}n?r=this.isCellGoodToFocusOn(n):r=!0}return n}isCellGoodToFocusOn(e){const t=e.column;let n;const{pinnedRowModel:r,rowModel:i}=this.beans;switch(e.rowPinned){case"top":n=r?.getPinnedTopRow(e.rowIndex);break;case"bottom":n=r?.getPinnedBottomRow(e.rowIndex);break;default:n=i.getRow(e.rowIndex);break}return n?!this.isSuppressNavigable(t,n):!1}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const{beans:t}=this,n=t.rowSpanSvc?.getCellEnd(e)??e,r=W6(t,n,!0);return r?{rowIndex:r.rowIndex,column:e.column,rowPinned:r.rowPinned}:null}getCellAbove(e){if(!e)return null;const{beans:t}=this,n=t.rowSpanSvc?.getCellStart(e)??e,r=K1(t,{rowIndex:n.rowIndex,rowPinned:n.rowPinned},!0);return r?{rowIndex:r.rowIndex,column:e.column,rowPinned:r.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:n}=this.beans,r=t.allCols;let i=e.rowIndex,o=e.rowPinned,s=t.getColAfter(e.column);if(!s){s=r[0];const a=W6(this.beans,e,!0);if(rr(a)||!a.rowPinned&&!(n?.isRowInPage(a.rowIndex)??!0))return null;i=a?a.rowIndex:null,o=a?a.rowPinned:null}return{rowIndex:i,column:s,rowPinned:o}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:n,pagination:r}=t,i=n.allCols;let o=e.rowIndex,s=e.rowPinned,a=n.getColBefore(e.column);if(!a){a=gn(i);const l=K1(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(rr(l)||!l.rowPinned&&!(r?.isRowInPage(l.rowIndex)??!0))return null;o=l?l.rowIndex:null,s=l?l.rowPinned:null}return{rowIndex:o,column:a,rowPinned:s}}isSuppressNavigable(e,t){const{suppressNavigable:n}=e.colDef;if(typeof n=="boolean")return n;if(typeof n=="function"){const r=e.createColumnFunctionCallbackParams(t);return n(r)}return!1}};function p2e(e){return e.focusSvc.getFocusedCell()}function m2e(e){return e.focusSvc.clearFocusedCell()}function v2e(e,t,n,r){e.focusSvc.setFocusedCell({rowIndex:t,column:n,rowPinned:r,forceBrowserFocus:!0})}function y2e(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function b2e(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function w2e(e,t,n=!1){const r=e.headerNavigation?.getHeaderPositionForColumn(t,n);r&&e.focusSvc.focusHeaderPosition({headerPosition:r})}function Xf(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var C2e=class extends Se{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new Kne,this.rowValidations=new Yne,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const n=this.getEditRow(e);t?n.delete(t):n.clear(),n.size===0&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits||this.edits.size===0)return;const n=e&&this.edits.get(e);if(n)return n;if(t.checkSiblings){const r=e.pinnedSibling;if(r)return this.getEditRow(r)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||this.edits.size===0)return;const n=this.getEditRow(e),r=e.pinnedSibling,i=t&&r&&this.getEditRow(r);if(!n&&!i)return;const o={...e.data},s=(a,l)=>
844a.forEach(({editorValue:u,pendingValue:d},f)=>{const g=u===void 0?d:u;g!==ci&&(l[f.getColId()]=g)});return n&&s(n,o),i&&s(i,o),o}getEdit(e={},t){const{rowNode:n,column:r}=e,i=this.edits;if(this.suspendEdits||i.size===0||!n||!r)return;const o=i.get(n)?.get(r);if(o)return o;if(t?.checkSiblings){const s=n.pinnedSibling;if(s)return i.get(s)?.get(r)}}getEditMap(e=!0){if(this.suspendEdits||this.edits.size===0)return new Map;if(!e)return this.edits;const t=new Map;return this.edits.forEach((n,r)=>{const i=new Map;n.forEach(({editorState:o,...s},a)=>i.set(a,{...s})),t.set(r,i)}),t}setEditMap(e){this.edits.clear(),e.forEach((t,n)=>{const r=new Map;t.forEach((i,o)=>r.set(o,{...i})),this.edits.set(n,r)})}setEdit(e,t){const n=this.edits;(n.size===0||!n.has(e.rowNode))&&n.set(e.rowNode,new Map);const r=this.getEdit(e),i={editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...r,...t};return this.getEditRow(e.rowNode).set(e.column,i),i}clearEditValue(e){const{rowNode:t,column:n}=e;if(!t)return;const r=o=>{o.editorValue=void 0,o.pendingValue=o.sourceValue,o.state="changed"};if(!n){this.getEditRow(t)?.forEach(r);return}const i=this.getEdit(e);i&&r(i)}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||(e??this.edits).size===0)return[];const t=[];return(e??this.edits).forEach((n,r)=>{for(const i of n.keys()){const{editorState:o,...s}=n.get(i);t.push({rowNode:r,column:i,...s})}}),t}hasRowEdits(e,t){return this.suspendEdits||this.edits.size===0?!1:!!this.getEditRow(e,t)}hasEdits(e={},t={}){if(this.suspendEdits||this.edits.size===0)return!1;const{rowNode:n,column:r}=e,{withOpenEditor:i}=t;if(n){const o=this.getEditRow(n,t);return o?r?i?this.getEdit(e)?.state==="editing":o.has(r):o.size!==0?i?Array.from(o.values()).some(({state:s})=>s==="editing"):!0:!1:!1}return i?this.getEditPositions().some(({state:o})=>o==="editing"):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:n,column:r}=e;r&&!t.has(r)&&t.set(r,{editorValue:void 0,pendingValue:ci,sourceValue:this.beans.valueSvc.getValue(r,n,"data"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(n,t)}stop(e,t,n){if(this.hasEdits(e))if(t){const r=this.getEditRow(e.rowNode)?.get(e.column);r&&(r.pendingValue===ci||r.pendingValue===r.sourceValue)?this.removeEdits(e):r&&n&&(r.editorValue=void 0)}else this.removeEdits(e)}clear(){for(const e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},Kne=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:n}=e||{};return this.cellValidations?.get(t)?.get(n)}hasCellValidation(e){return!e?.rowNode||!e.column?this.cellValidations.size>0:!!this.getCellValidation(e)}setCellValidation(e,t){const{rowNode:n,column:r}=e;this.cellValidations.has(n)||this.cellValidations.set(n,new Map),this.cellValidations.get(n).set(r,t)}clearCellValidation(e){const{rowNode:t,column:n}=e;this.cellValidations.get(t)?.delete(n)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},Yne=class{constructor(){this.rowValidations=new Map}getRowValidation(e){const{rowNode:t}=e||{};return this.rowValidations.get(t)}hasRowValidation(e){return e?.rowNode?!!this.getRowValidation(e):this.rowValidations.size>0}setRowValidation({rowNode:e},t){this.rowValidations.set(e,t)}clearRowValidation({rowNode:e}){this.rowValidations.delete(e)}setRowValidationMap(e){this.rowValidations=e}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}};function ex(e,t={}){const{rowIndex:n,rowId:r,rowCtrl:i,rowPinned:o}=t;if(i)return i;const{rowModel:s,rowRenderer:a}=e;let{rowNode:l}=t;return l||(r?l=gAe(e,r,o):n!=null&&(l=s.getRow(n))),l?a.getRowCtrlByNode(l):void 0}function zt(e,t={}){const{cellCtrl:n,colId:r,columnId:i,column:o}=t;if(n)return n;const s=e.colModel.getCol(r??i??gF(o)),a=t.rowCtrl??ex(e,t),l=a?.getCellCtrl(s)??void 0;if(l)return l;const u=t.rowNode??a?.rowNode;if(u)return e.rowRenderer.getCellCtrls([u],[s])?.[0]}function xj(e){const{editSvc:t}=e;t?.isBatchEditing()?(Id(e,{persist:!0}),Rd(e)):t?.stopEditing(void 0,{source:"api"})}function S2e(e,t,n){const{gos:r,popupSvc:i}=t;if(!r.get("stopEditingWhenCellsLoseFocus"))return;const o=s=>{const a=s.relatedTarget;if(nF(a)===null){xj(t);return}let l=n.some(u=>u.contains(a))&&r.isElementInThisInstance(a);l||(l=!!i&&(i.getActivePopups().some(u=>u.contains(a))||i.isElementWithinCustomPopup(a))),l||xj(t)};for(const s of n)e.addManagedElementListeners(s,{focusout:o})}function gF(e){if(e)return typeof e=="string"?e:e.getColId()}var ci=Symbol("unedited"),x2e=(e,t={})=>{const n=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns),r=new Array(n.length);let i=0;for(let o=0,s=n.length;o<s;++o){const l=n[o].comp?.getCellEditor();l&&(r[i++]=Xf(l))}return r.length=i,r};function E2e(e,t,n,r,i,o){t.length===0&&n?.rowNode&&n?.column&&Zf(e,n,{key:r,event:i,
vendor: 3,027 bytes, line 844
844cellStartedEdit:o});const{valueSvc:s,editSvc:a,editModelSvc:l}=e,{rowNode:u,column:d}=n??{};for(const f of t){const{rowNode:g,column:m}=f,y=zt(e,f);if(!y){if(g&&m){const w=s.getValue(m,g,"data"),A=(n?.rowNode===g&&n?.column===m&&r||void 0)??a?.getCellDataValue(f)??s.getValueForDisplay({column:m,node:g,from:"edit"})?.value??w??ci;l?.setEdit(f,{pendingValue:Em(e,A,!1,m),sourceValue:w,state:"editing"})}continue}const b=o&&u===y.rowNode&&y.column===d;Zf(e,{rowNode:u,column:y.column},{key:b?r:null,event:b?i:null,cellStartedEdit:b&&o})}}function Ka({pendingValue:e,sourceValue:t}){return e===ci&&(e=t),e!==t}function R2e(e){const t=new Map;for(const[n,r]of e){const i=new Map;for(const[o,s]of r)Ka(s)&&i.set(o,s);i.size>0&&t.set(n,i)}return t}function Zf(e,t,n){const{key:r,event:i,cellStartedEdit:o,silent:s}=n??{},{editModelSvc:a,gos:l,userCompFactory:u}=e,d=zt(e,t),f=d?.comp?.getCellEditor(),g=Zne(e,t,r,o&&!s),m=a?.getEdit(t),y=g.value??m?.sourceValue;if(f){a?.setEdit(t,{editorValue:Em(e,y,!0,t.column),state:"editing"}),f.refresh?.(g);return}const b=t.column.getColDef(),w=kte(u,b,g);if(!w)return;const{popupFromSelector:C,popupPositionFromSelector:E}=w,A=C??!!b.cellEditorPopup,T=E??b.cellEditorPopupPosition;if(Qne(w.params,i),!d)return;const{rangeFeature:P,rowCtrl:O,comp:D,onEditorAttachedFuncs:F}=d;a?.setEdit(t,{editorValue:Em(e,y,!0,t.column),state:"editing",editorState:{cellStartedEditing:void 0,cellStoppedEditing:void 0}}),d.editCompDetails=w,F.push(()=>P?.unsetComp()),D?.setEditDetails(w,A,T,l.get("reactiveCustomComponents")),O?.refreshRow({suppressFlash:!0}),d.refreshNoteState(),A2e(e,t,i,y,s)}function A2e(e,t,n,r,i){const{editSvc:o,editModelSvc:s}=e,a=s?.getEdit(t);!i&&a?.state==="editing"&&!a?.editorState?.cellStartedEditing&&(o?.dispatchCellEvent(t,n,"cellEditingStarted",{value:r}),s?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function Xne(e,t,n){const r={editorValueExists:!1};if(MN(e)&&(t.getValidationErrors?.()?.length??0)>0||n?.isCancelling)return r;if(n?.isStopping){const o=t?.isCancelAfterEnd?.();if(o)return{...r,isCancelAfterEnd:o}}return{editorValue:t.getValue(),editorValueExists:!0}}function Zne(e,t,n,r){const{valueSvc:i,gos:o,editSvc:s}=e,a=e.gos.get("enableGroupEdit"),l=zt(e,t),u=t.rowNode?.rowIndex??void 0,d=s?.isBatchEditing(),f=e.colModel.getCol(t.column.getId()),{rowNode:g,column:m}=t,y=l.comp?.getCellEditor(),b=s?.getCellDataValue(t),w=b===void 0?y?Xne(e,y)?.editorValue:void 0:b,C=w===ci?i.getValueForDisplay({column:f,node:g,from:"edit"})?.value:w;let E=a?w:C;return m.isAllowFormula()&&e.formula?.isFormula(E)&&(E=e.formula?.normaliseFormula(E,!0)??E),ft(o,{value:E,eventKey:n??null,column:m,colDef:m.getColDef(),rowIndex:u,node:g,data:g.data,cellStartedEdit:!!r,onKeyDown:l?.onKeyDown.bind(l),stopEditing:A=>{s.stopEditing(t,{source:d?"ui":"api",suppressNavigateAfterEdit:A}),Bb(e,t,{})},eGridCell:l?.eGui,parseValue:A=>i.parseValue(f,g,A,l?.value),formatValue:l?.formatValue.bind(l),validate:()=>{s?.validateEdit()}})}function zy(e,t){const{editModelSvc:n}=e;
844n?.getEditMap().forEach((r,i)=>{r.forEach((o,s)=>{!t&&(o.state==="editing"||o.pendingValue===ci)||!Ka(o)&&(o.state!=="editing"||t)&&n?.removeEdits({rowNode:i,column:s})})})}function T2e(e,t){const n=t.comp?.getCellEditor();if(!n?.refresh)return;const{eventKey:r,cellStartedEdit:i}=t.editCompDetails.params,{column:o}=t,s=Zne(e,t,r,i),a=o.getColDef(),l=kte(e.userCompFactory,a,s);n.refresh(Qne(l.params,r))}function Qne(e,t){return t instanceof KeyboardEvent&&e.column.getColDef().cellEditor==="agNumberCellEditor"?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function Id(e,t){for(const n of e.editModelSvc?.getEditPositions()??[]){const r=zt(e,n);if(!r)continue;const i=r.comp?.getCellEditor();if(!i)continue;const{editorValue:o,editorValueExists:s,isCancelAfterEnd:a}=Xne(e,i,t);if(a){const{cellStartedEditing:l,cellStoppedEditing:u}=e.editModelSvc?.getEdit(n)?.editorState||{};e.editModelSvc?.setEdit(n,{editorState:{isCancelAfterEnd:a,cellStartedEditing:l,cellStoppedEditing:u}})}Ip(e,n,o,void 0,!s,t)}}function Ip(e,t,n,r,i,o){const{editModelSvc:s,valueSvc:a}=e;if(!s)return;const{rowNode:l,column:u}=t;if(!(l&&u))return;let d=s.getEdit(t);if(d?.sourceValue===void 0){const f=d?Em(e,d.editorValue,!1,u):ci,g={sourceValue:a.getValue(u,l,"data"),pendingValue:f};o?.persist&&(g.state="changed"),d=s.setEdit(t,g)}s.setEdit(t,{editorValue:i?Em(e,d.sourceValue,!0,u):n}),o?.persist&&P2e(e,t)}function Em(e,t,n,r){const{formula:i}=e;return r.isAllowFormula()&&i?.isFormula(t)?i?.normaliseFormula(t,n)??t:t}function P2e(e,t){const{editModelSvc:n}=e,r=n?.getEdit(t),o={pendingValue:Em(e,r?.editorValue,!1,t.column)};!r?.editorState?.cellStoppedEditing&&r?.state!=="editing"&&(o.state="changed"),n?.setEdit(t,o)}function Rd(e,t,n={}){if(t||(t=e.editModelSvc?.getEditPositions()),t)for(const r of t)Bb(e,r,n)}function Bb(e,t,n,r=zt(e,t)){const i=e.editModelSvc,o=i?.getEdit(t);let s;if(o&&o.state!=="editing"&&o.editorState?.cellStoppedEditing?s=o.state:s="changed",!r){o&&i?.setEdit(t,{state:s});return}const a=r.comp,l=a?.getCellEditor();if(a&&!l){if(r?.refreshCell(),o){i?.setEdit(t,{state:s});const d=e.gos.get("enableGroupEdit")?Ej(o,n?.cancel):{valueChanged:!1,newValue:void 0,oldValue:o.sourceValue};Rj(e,t,d,n)}return}if(MN(e)){const d=o&&l?.getValidationErrors?.(),f=i?.getCellValidationModel();d?.length?f?.setCellValidation(t,{errorMessages:d}):f?.clearCellValidation(t)}o&&i?.setEdit(t,{state:s}),a?.setEditDetails(),a?.refreshEditStyles(!1,!1),r?.refreshCell({force:!0,suppressFlash:!0});const u=i?.getEdit(t);if(u&&u.state!=="editing"){const d=n?.cancel,f=e.gos.get("enableGroupEdit")?Ej(u,d):O2e(u,o,d);Rj(e,t,f,n)}}function Ej(e,t){const{sourceValue:n,pendingValue:r}=e;let i;return!t&&r!==ci&&(i=r),{valueChanged:!t&&Ka(e),newValue:i,oldValue:n,value:n}}function O2e(e,t,n){if(n||e.editorState.isCancelAfterEnd)return{valueChanged:!1,newValue:void 0,oldValue:e.sourceValue};let r=e.editorValue;return(r==null||r===ci)&&(r=t?.pendingValue),r===ci&&(r=void 0),{valueChanged:Ka(e),newValue:r,oldValue:e.sourceValue}}function Rj(e,t,n,{silent:r,event:i}={}){const{editSvc:o,editModelSvc:s}=e,a=s?.getEdit(t),{editorState:l}=a||{},{isCancelBeforeStart:u,cellStartedEditing:d,cellStoppedEditing:f}=l||{};!r&&!u&&d&&!f&&(o?.dispatchCellEvent(t,i,"cellEditingStopped",n),s?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function D2e(e){if(!e)return!1;for(let t=0,n=e.length;t<n;++t){const r=e[t],i=r.cellEditorParams;if(!(!i||!r.editable&&!r.groupRowEditable)&&(i.minLength!==void 0||i.maxLength!==void 0||i.getValidationErrors!==void 0||i.min!==void 0||i.max!==void 0))return!0}return!1}function M2e(e){const t=e.rowRenderer.getCellCtrls();for(let n=0,r=t.length;n<r;++n){const o=t[n].comp?.getCellEditor();if(o){const s=Xf(o);if(s.getValidationElement||s.getValidationErrors)return!0}}return!1}function MN(e){return!!e.gos.get("getFullRowEditValidationErrors")||D2e(e.colModel.getColumnDefs())||M2e(e)}function Hd(e,t){if(!(t||MN(e)))return;const n=new Kne,{ariaAnnounce:r,localeSvc:i,editModelSvc:o,gos:s}=e,a=s.get("editType")==="fullRow",u=ete(i)("ariaValidationErrorPrefix","Cell Editor V
844alidation"),d=new Set;for(const f of e.rowRenderer.getCellCtrls()){const g=f.comp?.getCellEditor();if(!g)continue;const m=Xf(g),{rowNode:y,column:b}=f,w=m.getValidationErrors?.()??[],C=m.getValidationElement?.(!1)||!m.isPopup?.()&&f.eGui;if(C){const E=w!=null&&w.length>0,A=E?w.join(". "):"";YL(C,E),E&&r.announceValue(`${u} ${w}`,"editorValidation"),C instanceof HTMLInputElement?C.setCustomValidity(A):C.classList.toggle("invalid",E)}w?.length>0&&n.setCellValidation({rowNode:y,column:b},{errorMessages:w}),d.add(f.rowCtrl)}if(Id(e,{persist:!1}),o?.setCellValidationModel(n),a){const f=I2e(e);o?.setRowValidationModel(f)}for(const f of d.values()){f.rowEditStyleFeature?.applyRowStyles();for(const g of f.getAllCellCtrls())g.tooltipFeature?.refreshTooltip(!0),g.editorTooltipFeature?.refreshTooltip(!0),g.editStyleFeature?.applyCellStyles?.()}}var I2e=e=>{const t=new Yne,n=e.gos.get("getFullRowEditValidationErrors"),r=e.editModelSvc?.getEditMap();if(!r)return t;for(const i of r.keys()){const o=r.get(i);if(!o)continue;const s=[],{rowIndex:a,rowPinned:l}=i;for(const d of o.keys()){const f=o.get(d);if(!f)continue;const{editorValue:g,pendingValue:m,sourceValue:y}=f,b=g??(m===ci?void 0:m)??y;s.push({column:d,colId:d.getColId(),rowIndex:a,rowPinned:l,oldValue:y,newValue:b})}const u=n?.({editorsState:s})??[];u.length>0&&t.setRowValidation({rowNode:i},{errorMessages:u})}return t};function _2e(e){Hd(e,!0);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const n=[];return t.forEach((r,i)=>{r.forEach(({errorMessages:o},s)=>{n.push({column:s,rowIndex:i.rowIndex,rowPinned:i.rowPinned,messages:o??null})})}),n}function KE(e){return!!(e.rowPinned&&e.pinnedSibling)}function Ys(e,t,n,r){const i=t==="top";if(!n)return Ys(e,t,i?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),r);if(!r){const l=i?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return Ys(e,t,n,i?e.getPinnedTopRow(l-1):e.getPinnedBottomRow(l-1))}let o=!1,s=!1;const a=[];return e.forEachPinnedRow(t,l=>{if(l===n&&!o){o=!0,a.push(l);return}if(o&&l===r){s=!0,a.push(l);return}o&&!s&&a.push(l)}),a}function F2e(e,t,n,{rowNode:r,column:i},o){return ft(e.gos,{type:n,node:r,data:r.data,value:o,column:i,colDef:i.getColDef(),rowPinned:r.rowPinned,event:t,rowIndex:r.rowIndex})}function k2e(e,t=!1){return e===fe.DELETE?!0:!t&&e===fe.BACKSPACE?Hte():!1}var L2e=class extends Se{constructor(e,t,n,r){super(),this.cellCtrl=e,this.rowNode=n,this.rowCtrl=r,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;if(!(t===fe.ENTER&&Ro(this.cellCtrl.column)&&this.beans.rowNumbersSvc?.handleKeyDownOnCell(this.cellCtrl.cellPosition,e)))switch(t){case fe.ENTER:this.onEnterKeyDown(e);break;case fe.F2:this.onF2KeyDown(e);break;case fe.ESCAPE:this.onEscapeKeyDown(e);break;case fe.TAB:this.onTabKeyDown(e);break;case fe.BACKSPACE:case fe.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case fe.DOWN:case fe.UP:case fe.RIGHT:case fe.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){const{cellCtrl:n,beans:r}=this;if(!r.editSvc?.isEditing(n,{withOpenEditor:!0})){if(e.shiftKey&&n.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const i=n.getFocusedCellPosition();r.navigation?.navigateToNextCell(e,t,i,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:n}=this.beans;if(!t)return;const r=t.extendLatestRangeInDirection(e);r&&(e.key===fe.LEFT||e.key===fe.RIGHT?n?.ensureColumnVisible(r.column):n?.ensureRowVisible(r.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:n,beans:r,rowNode:i}=this,{gos:o,rangeSvc:s,eventSvc:a,editSvc:l}=r;if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),k2e(e,o.get("enableCellEditingOnBackspace"))&&!l?.isEditing(n,{withOpenEditor:!0})){if(s&&qd(o))s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(n.isCellEditable()){const u=r.valueSvc.getDeleteValue(n.column,i);i.setDataValue(n.column,u,"cellClear")}}else l?.isEditing(n,{withOpenEditor:!0})||r.editSvc?.startEditing(n,{startedEdit:!0,event:t});a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}
vendor: 4,524 bytes, line 844
844onEnterKeyDown(e){const{cellCtrl:t,beans:n}=this,{editSvc:r,navigation:i}=n,o=r?.isEditing(t,{withOpenEditor:!0}),s=t.rowNode,a=r?.isRowEditing(s,{withOpenEditor:!0}),l=u=>{r?.startEditing(u,{startedEdit:!0,event:e,source:"edit"})&&e.preventDefault()};if(o||a){if(this.isCtrlEnter(e)){r?.applyBulkEdit(t,n?.rangeSvc?.getCellRanges()||[]);return}if(Hd(n),r?.checkNavWithValidation(void 0,e)==="block-stop")return;r?.isEditing(t,{withOpenEditor:!0})?r?.stopEditing(t,{event:e,source:"edit"}):a&&!t.isCellEditable()?r?.stopEditing({rowNode:s},{event:e,source:"edit"}):l(t)}else if(n.gos.get("enterNavigatesVertically")){const u=e.shiftKey?fe.UP:fe.DOWN;i?.navigateToNextCell(null,u,t.cellPosition,!1)}else{if(r?.hasValidationErrors())return;r?.hasValidationErrors(t)&&r.revertSingleCellEdit(t,!0),l(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&e.key===fe.ENTER}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:n,notesSvc:r}}=this,i=n?.isEditing();if(e.shiftKey&&r?.hasDataSource()&&!i){const o=r.getNoteAccess({rowNode:this.rowNode,column:t.column});if(o&&(!o.isSuppressed||o.canView)){r.showNote(o.params,!0),e.preventDefault();return}}i&&(Hd(this.beans),n?.checkNavWithValidation(void 0,e)==="block-stop")||n?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:n}}=this;n?.checkNavWithValidation(t,e)==="block-stop"&&n.revertSingleCellEdit(t),setTimeout(()=>{n?.stopEditing(t,{event:e,cancel:!0})})}processCharacter(e){const n=e.target!==this.eGui,{beans:{editSvc:r},cellCtrl:i}=this;if(n||r?.isEditing(i,{withOpenEditor:!0}))return;if(e.key===fe.SPACE)this.onSpaceKeyDown(e);else if(r?.isCellEditable(i,"ui")){if(r?.hasValidationErrors()&&!r?.hasValidationErrors(i))return;r?.startEditing(i,{startedEdit:!0,event:e,source:"api",editable:!0}),!i.editCompDetails?.params?.suppressPreventDefault&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:n}=this.beans,{rowNode:r}=this.cellCtrl;!n?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&Rf(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,r,"spaceKey"),e.preventDefault()}},N2e=class extends Se{constructor(e,t,n){super(),this.cellCtrl=e,this.column=n,this.beans=t}onMouseEvent(e,t){if(!ac(t))switch(e){case"click":this.onCellClicked(t);break;case"pointerdown":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:n,editSvc:r,editModelSvc:i,frameworkOverrides:o,gos:s}=this.beans,a=e.ctrlKey||e.metaKey,{cellCtrl:l}=this,{column:u,cellPosition:d,rowNode:f}=l,g=a1(s,u,f,e);n&&a&&!g&&n.getCellRangeCount(d)>1&&n.intersectLastRange(!0);const m=l.createEvent(e,"cellClicked");m.isEventHandlingSuppressed=g,t.dispatchEvent(m);const y=u.colDef;if(y.onCellClicked&&window.setTimeout(()=>{o.wrapOutgoing(()=>{y.onCellClicked(m)})},0),!g&&i?.getState(l)!=="editing"){const b=r?.isEditing(),w=r?.isRangeSelectionEnabledWhileEditing(),C=i?.getCellValidationModel().getCellValidationMap().size??0,E=i?.getRowValidationModel().getRowValidationMap().size??0;if(b&&(w||C>0||E>0))return;r?.shouldStartEditing(l,e)?r?.startEditing(l,{event:e}):r?.shouldStopEditing(l,e)&&(this.beans.gos.get("editType")==="fullRow"?r?.stopEditing(l,{event:e,source:"edit"}):r?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){const{column:t,beans:n,cellCtrl:r}=this,{eventSvc:i,frameworkOverrides:o,editSvc:s,editModelSvc:a,gos:l}=n,u=a1(l,r.column,r.rowNode,e),d=t.colDef,f=r.createEvent(e,"cellDoubleClicked");if(f.isEventHandlingSuppressed=u,i.dispatchEvent(f),typeof d.onCellDoubleClicked=="function"&&window.setTimeout(()=>{o.wrapOutgoing(()=>{d.onCellDoubleClicked(f)})},0),!u&&s?.shouldStartEditing(r,e)&&a?.getState(r)!=="editing"){const g=s?.isEditing(),m=s?.isRangeSelectionEnabledWhileEditing(),y=a?.getCellValidationModel().getCellValidationMap().size??0,b=a?.getRowValidationModel().getRowValidationMap().size??0;if(g&&(m||y>0||b>0))return;s?.startEditing(r,{event:e})}}onMouseDown(e){const{shiftKey:t}=e,n=e.target,{cellCtrl:r,beans:i}=this,{eventSvc:o,rangeSvc:s,rowNumbersSvc:a,focusSvc:l,gos:u,editSvc:d}=i,{column:f,rowNode:g,cellPosition:m}=r,y=a1(u,f,g,e),b=()=>{const A=r.createEvent(e,"cellMouseDown");A.isEventHandlingSuppressed=y,o.dispatchEvent(A)};if(y){b();return}if(this.isRightClickInExistingRange(e))return;const w=s&&!s.isEmpty(),C=this.containsWidget(n),E=Ro(f);
844if(!(a&&E&&!a.handleMouseDownOnCell(m,e))){if(!t||!w){const A=d?.isEditing(r),P=u.get("enableCellTextSelection")&&e.defaultPrevented,O=(ih()||P)&&!A&&!tb(n)&&!C;r.focusCell(O,e)}if(t&&w&&!l.isCellFocused(m)){e.preventDefault();const A=l.getFocusedCell();if(A){const{column:T,rowIndex:P,rowPinned:O}=A,D=!!d?.isRangeSelectionEnabledWhileEditing?.();d?.isEditing(A)&&!D&&d?.stopEditing(A),D||l.setFocusedCell({column:T,rowIndex:P,rowPinned:O,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}C||(s?.handleCellMouseDown(e,m),b())}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const n=t.isCellInAnyRange(this.cellCtrl.cellPosition),r=REe(this.beans,e);if(n&&r)return!0}return!1}containsWidget(e){return xf(e,"ag-selection-checkbox",3)||xf(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),n?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),n?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,n=t.contains(e.target),r=t.contains(e.relatedTarget);return n&&r}},B2e=class extends Se{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode;const n=e.getCellSpan();if(n){const r=this.refreshSpanHeight.bind(this,n);this.addManagedListeners(this.beans.eventSvc,{paginationChanged:r,recalculateRowBounds:r,pinnedHeightChanged:r})}else this.setupColSpan(),this.setupRowSpan()}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.onLeftChanged(),this.onWidthChanged();const e=this.cellCtrl.getCellSpan();e?this.refreshSpanHeight(e):this._legacyApplyRowSpan()}refreshSpanHeight(e){const t=e.getCellHeight(),n=this.cellCtrl.eGui;t!=null&&n&&(n.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();th(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.colDef.colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){const e=this.cellCtrl.eGui;e&&(e.style.width=`${this.getCellWidth()}px`)}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,n=e.getColSpan(t),r=[];if(n===1)r.push(e);else{let i=e;const o=e.getPinned();for(let s=0;i&&s<n&&(r.push(i),i=this.beans.visibleCols.getColAfter(i),!(!i||rr(i)||o!==i.getPinned()));s++);}return r}onLeftChanged(){const e=this.cellCtrl.getRootElement();e&&(e.style.left=this.modifyLeftForPrintLayout(this.getCellLeft())+"px")}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=gn(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,n=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const r=t.bodyWidth;return n+r+(e||0)}return n+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const t=this.cellCtrl.eGui;if(!t)return;const n=Af(this.beans);t.style.height=`${n*this.rowSpan}px`,t.style.zIndex="1"}destroy(){super.destroy()}},H2e="ag-cell",V2e="ag-cell-auto-height",z2e="ag-cell-normal-height",G2e="ag-cell-focus",j2e="ag-cell-first-right-pinned",U2e="ag-cell-last-left-pinned",W2e="ag-cell-not-inline-editing",$2e="ag-cell-wrap-text",q2e=0,om=class extends Se{constructor(e,t,n,r){super(),this.column=e,this.rowNode=t,this.rowCtrl=r,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.notesFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.beans=n,this.gos=n.gos,this.editSvc=n.editSvc,this.hasEdit=!!n.editSvc;const{colId:i}=e;this.instanceId=i+"-"+q2e++,this.createCellPosition(),this.updateAndFormatValue(!1),this.positionFeature=new B2e(this,n)}addFeatures(){const{beans:e}=this;this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature
844(this),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this),this.mouseListener=new N2e(this,e,this.column),this.keyboardListener=new L2e(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature();const{rangeSvc:t}=e;t&&qd(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(this)),Ro(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(this)),this.notesFeature=this.beans.notesSvc?.createNotesFeature(this)}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.notesFeature=e.destroyBean(this.notesFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),Hd(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,n,r,i,o,s){this.comp=e,this.eGui=t,this.printLayout=i,s??(s=this),this.addDomData(s),this.addFeatures(),s.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(r,s),this.refreshFirstAndLastStyles(),this.checkFormulaError(),this.refreshAriaRowIndex(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer();const a=o?this.isCellEditable():void 0,l=!a&&this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0});if(a||l?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0,editable:a}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(const u of this.onCompAttachedFuncs)u();this.onCompAttachedFuncs=[]}}checkFormulaError(){this.beans.formula&&this.eGui.classList.toggle("formula-error",this.hasFormulaError())}hasFormulaError(){const{formula:e}=this.beans;return e?!!e.getFormulaError(this.column,this.rowNode):!1}hasCellValidationError(){const{editModelSvc:e}=this.beans;return e?e.getCellValidationModel().hasCellValidation(this):!1}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.colDef.cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.colDef;return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:n,ctrlsSvc:r,eventSvc:i}=e,o=t.colDef,s=this.createCellRendererParams();s.deferRender=!0;const a=I6(n,o,s);if(r.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let l;const u=new _t(f=>{l=f}),[d]=this.addManagedListeners(i,{bodyScrollEnd:()=>{l(),d()}});return{loadingComp:a,onReady:u}}return{loadingComp:a,onReady:_t.resolve()}}showValue(e,t){const{beans:n,column:r,rowNode:i,rangeFeature:o}=this,{userCompFactory:s}=n;let a=this.getValueToDisplay(),l;const u=i.stub&&i.groupData?.[r.getId()]==null,d=r.colDef;if(u||this.isCellRenderer()){const f=this.createCellRendererParams();!u||Ro(r)?l=M6(s,d,f):l=I6(s,d,f)}if(!l&&!u&&n.findSvc?.isMatch(i,r)){const f=this.createCellRendererParams();l=M6(s,{...r.colDef,cellRenderer:"agFindCellRenderer"},f)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(i,{checkSiblings:!0}
844)){const f=this.editSvc.prepDetailsDuringBatch(this,{compDetails:l,valueToDisplay:a});f&&(f.compDetails?l=f.compDetails:f.valueToDisplay&&(a=f.valueToDisplay))}this.comp.setRenderDetails(l,a,e),this.customRowDragComp?.refreshVisibility(),!t&&o&&o.scheduleRefreshRangeStyleAndHandle(),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.colDef;this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}getCellValueClass(){const e="ag-cell-value",t=this.column.colDef.cellRenderer==="agCheckboxCellRenderer";let n="";return t&&(n=" ag-allow-overflow"),`${e}${n}`}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&KE(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:n}=this.beans.gridOptions,r=V1(t),i=rh(this.column);return n==="custom"&&r!=="selectionColumn"&&i?!1:e.checkboxSelection||i&&typeof t=="object"&&em(t)}refreshShouldDestroy(){const e=this.column.colDef,t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource),i=this.isAutoHeight!=this.column.isAutoHeight();return t||n||r||i}onPopupEditorClosed(e){const{editSvc:t}=this.beans;if(!t?.isEditing(this,{withOpenEditor:!0}))return;const n=e instanceof KeyboardEvent,r=e instanceof MouseEvent,i=n&&e.key===fe.ESCAPE;t.stopEditing(this,{source:t.isBatchEditing()?"ui":"api",cancel:i,event:n||r?e:void 0}),i&&this.focusCell(!0,e)}stopEditing(e=!1){const{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:n,rowNode:r,comp:i,eGui:o,beans:{valueSvc:s,gos:a,editSvc:l}}=this;return ft(a,{value:e,valueFormatted:t,getValue:()=>s.getValueForDisplay({column:n,node:r,from:"edit"}).value,setValue:d=>l?.setDataValue({rowNode:r,column:n},d)||r.setDataValue(n,d),formatValue:this.formatValue.bind(this),data:r.data,node:r,pinned:n.getPinned(),colDef:n.colDef,column:n,refreshCell:this.refreshCell.bind(this),eGridCell:o,eParentOfValue:i.getParentOfValue(),registerRowDragger:(d,f,g,m)=>this.registerRowDragger(d,f,m),setTooltip:(d,f)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(d,f),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell()}refreshOrDestroyCell(e){if(this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e),this.hasEdit&&this.editCompDetails){const{editSvc:t,comp:n}=this;!n?.getCellEditor()&&t.isEditing(this,{withOpenEditor:!0})&&t.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell(e){const{editStyleFeature:t,customStyleFeature:n,rowCtrl:{rowEditStyleFeature:r},beans:{cellFlashSvc:i,filterManager:o},column:s,comp:a,suppressRefreshCell:l,tooltipFeature:u}=this;if(l)return;const{field:d,valueGetter:f,showRowGroup:g,enableCellChangeFlash:m}=s.colDef,y=d==null&&f==null&&g==null,b=e?.newData??!1,w=y||e&&(e.force||b),C=!!a,E=this.updateAndFormatValue(C),A=w||E;if(C){if(A){this.showValue(!!b,!1);const T=o?.isSuppressFlashingCellsBecauseFiltering();!e?.suppressFlash&&!T&&m&&i?.flashCell(this),t?.applyCellStyles?.(),n?.applyUserStyles(),n?.applyClassesFromColDef(),r?.applyRowStyles(),this.checkFormulaError()}u?.refreshTooltip(),this.refreshNoteState(),n?.applyCellClassRules()}}showNote(e=!1){this.notesFeature?.show({focusEditor:e})}refreshNoteState(){this.notesFeature?.refresh()}isNoteHoverSuppressed(){return!!this.editSvc?.isEditing(this)||this.hasFormulaError()||this.hasCellValidationError()}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)}
vendor: 8,408 bytes, line 844
844updateAndFormatValue(e){const t=this.value,n=this.valueFormatted,{value:r,valueFormatted:i}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0,from:"edit"});return this.value=r,this.valueFormatted=i,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n:!0}valuesAreEqual(e,t){const n=this.column.colDef;return n.equals?n.equals(e,t):e===t}addDomData(e){const t=this.eGui;$f(this.beans.gos,t,Y1,this),e.addDestroyFunc(()=>$f(this.beans.gos,t,Y1,null))}createEvent(e,t){const{rowNode:n,column:r,value:i,beans:o}=this;return F2e(o,e,t,{rowNode:n,column:r},i)}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:n}=this;Jte(e,t,n.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);Wee(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,t){const n=this.editSvc?.allowedFocusTargetOnValidation(this);n&&n!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:n},comp:r}=this;if(!r||t?.isEditing(this)||!this.isCellFocused()||!n.shouldTakeFocus())return;const i=()=>{if(!this.isAlive())return;const o=r.getFocusableElement();this.isCellFocused()&&o.focus({preventScroll:!0})};if(e){setTimeout(i,0);return}i()}onRowIndexChanged(){this.createCellPosition(),this.refreshAriaRowIndex(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&$o(t,"tabindex",e?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(j2e,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(U2e,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(Nb(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const n=this.isCellFocused(),r=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss(G2e,n),n&&(e?.forceBrowserFocus||!this.hasBrowserFocus()&&this.beans.focusSvc.shouldTakeFocus())){let i=this.comp.getFocusableElement();if(r){const s=Of(i,null,!0);s.length&&(i=s[0])}const o=e?e.preventScrollOnBrowserFocus:!0;i.focus({preventScroll:o}),Axe(t,i)}n&&this.focusEventWhileNotReady&&(this.focusEventWhileNotReady=null),n&&e&&this.rowCtrl.announceDescription(this)}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:oc(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(H2e,!0),e.toggleCss(W2e,!0);const t=this.column.isAutoHeight()==!0;e.toggleCss(V2e,t),e.toggleCss(z2e,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.colDef.wrapText==!0;this.comp.toggleCss($2e,e)}dispatchCellContextMenuEvent(e){const t=this.column.colDef,n=this.createEvent(e,"cellContextMenu"),{beans:r}=this;r.eventSvc.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout(()=>{r.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(n)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[];const{focusSvc:e,context:t}=this.beans;this.isCellFocused()&&this.hasBrowserFocus()&&e.attemptToRecoverFocus(),super.destroy(),this.positionFeature=t.destroyBean(this.positionFeature)}hasBrowserFocus(){return this.eGui?.contains($n(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,n){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const r=this.createRowDragComp(e,t,n);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}),r.refreshVisibility())}createRowDragComp(e,t,n){const r=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,n);if(r)return this.beans.context.createBean(r),r}cellEditorAttached(){for(const e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){if(!Ro(this.column)||!this.eGui)return;const{ariaRowIndex:e}=this.rowCtrl;e!=null&&XL(this.eGui,e)}getRootElement(){return this.eGui}};function IN(e,t,n,r,i,o){if(n==null&&t==null)return;const s={},a={},l=(u,d)=>{for(const f of u.split(" "))f.trim()!=""&&d(f)};if(n){const u=Object.keys(n);for(let d=0;d<u.length;d++){const f=u[d],g=n[f];let m;typeof g=="string"?m=e?e.evaluate(g,r):!0:typeof g=="function"&&(m=g(r)),l(f,y=>{m?s[y]=!0:a[y]=!0})}}if(t&&o)for(const u of Object.keys(t))l(u,d=>{s[d]||(a[d]=!0)});o&&Object.keys(a).forEach(o),Object.keys(s).forEach(i)}function Aj(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var K2e=class extends Se{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const n=this.gos,r=s=>{if(typeof s=="string")e.push(s);else if(Array.isArray(s))for(const a of s)e.push(a)},i=n.get("rowClass");i&&r(i);const o=n.getCallback("getRowClass");if(o){const s={data:t.data,node:t,rowIndex:t.rowIndex},a=o(s);r(a)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,n=>{e.push(n)},()=>{})}processRowClassRules(e,t,n){const{gos:r,expressionSvc:i}=this.beans,o=ft(r,{data:e.data,node:e,rowIndex:e.rowIndex});IN(i,void 0,r.get("rowClassRules"),o,t,n)}processStylesFromGridOptions(e){const t=this.gos,n=t.get("rowStyle"),r=t.getCallback("getRowStyle");let i;if(r){const o={data:e.data,node:e,rowIndex:e.rowIndex};i=r(o)}if(i||n)return Object.assign({},n,i)}},Y2e=0,tx=class extends Se{constructor(e,t,n,r,i){super(),this.rowNode=e,this.useAnimationFrameForCreate=r,this.printLayout=i,this.guiListenerOwners=new WeakMap,this.focusEventWhileNotReady=null,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.ariaRowIndex=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+Y2e++,this.rowId=eb(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=Aj(this.rowNode),this.setRowType(),this.setAnimateFlags(n),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature
844(this),this.fullWidthNotesFeature=this.isFullWidth()?t.notesSvc?.createFullWidthNotesFeature(this):void 0,this.addListeners(),!r&&!this.isFullWidth()&&this.createAllCellCtrls()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=eb(e)}updateGui(e,t){e==="left"?this.leftGui=t:e==="right"?this.rightGui=t:e==="fullWidth"?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,n,r){const{context:i,rowRenderer:o}=this.beans;r=mw(this,i,r);const s={rowComp:e,element:t,containerType:n,compBean:r};this.allRowGuis.push(s),this.updateGui(n,s),this.initialiseRowComp(s),this.fullWidthNotesFeature?.refresh();const a=this.rowNode,l=this.rowType==="FullWidthLoading"||a.stub,u=!a.data&&this.beans.rowModel.getType()==="infinite";!l&&!u&&!a.rowPinned&&o.dispatchFirstDataRenderedEvent(),this.setupFocus()}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";for(const n of this.allRowGuis)n.element.style.display=t}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Rf(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const n=e.rowComp,r=this.getInitialRowClasses(e.containerType);for(const i of r)n.toggleCss(i,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&W_(e.element,!!this.rowNode.expanded),this.setRowCompRowId(n),this.setRowCompRowBusinessKey(n),$f(t,e.element,X1,this),e.compBean.addDestroyFunc(()=>$f(t,e.element,X1,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){this.businessKey!=null&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=eb(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(q_(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(q_(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const n=this.createBean(t,this.beans.context);this.rowDragComps.push(n),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(r=>r!==n),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(n,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),n=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(n)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:n,beans:{visibleCols:r}}=this,i=!!e||!r.isPinningLeft(),o=!!t,s=!!n||!r.isPinningRight();return i&&o&&s}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this.rowNode}):!1}setRowType(){const{rowNode:e,gos:t,beans:{colModel:n}}=this,r=t.get("suppressServerSideFullWidthLoadingRow"),i=t.get("groupHideOpenParents"),o=e.stub&&!r&&!i,s=this.isNodeFullWidthCell(),a=t.get("masterDetail")&&e.detail,l=n.pivotMode,u=Cte(t,e,l),d=r&&e.stub&&u&&!i;o?this.rowType="FullWidthLoading":a?this.rowType="FullWidthDetail":s?this.rowType="FullWidth":u&&!d?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:n}=this.beans;if(!n?.active||e||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(n.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new om(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,n=null){const r={list:[],map:{}},i=(u,d,f)=>{f!=null?r.list.splice(f,0,d):r.list.push(d),r.map[u]=d},o=[];for(const u of t){const d=u.getInstanceId();let f=e.map[d];f&&!this.isCorrectCtrlForSpan(f)&&(f.destroy(),f=void 0),f||(f=this.getNewCellCtrl(u)),f&&i(d,f)}for(const u of e.list){const d=u.column.getInstanceId();if(r.map[d]!=null)continue;
844!this.isCellEligibleToBeRemoved(u,n)?o.push([d,u]):u.destroy()}if(o.length)for(const[u,d]of o){const f=r.list.findIndex(m=>m.column.getLeft()>d.column.getLeft()),g=f===-1?void 0:Math.max(f-1,0);i(u,d,g)}const{focusSvc:s,visibleCols:a}=this.beans,l=s.getFocusedCell();if(l&&l.column.getPinned()==n){const u=l.column.getInstanceId();if(!r.map[u]&&a.allCols.includes(l.column)){const f=this.createFocusedCellCtrl();if(f){const g=r.list.findIndex(y=>y.column.getLeft()>f.column.getLeft()),m=g===-1?void 0:Math.max(g-1,0);i(u,f,m)}}}return r}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,n=e.getFocusedCell();if(!n)return;const r=t?.getCellSpan(n.column,this.rowNode);if(r){if(r.firstNode!==this.rowNode||!r.doesSpanContain(n))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(n.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(const t of this.allRowGuis){const n=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(n,e)}}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const n=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);const r=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");const i=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,"right")}}getInitialCellCtrls(e){return this.useAnimationFrameForCreate||this.isFullWidth()?null:this.getCellCtrlsForContainer(e)}isCellEligibleToBeRemoved(e,t){const{column:i}=e;if(i.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{visibleCols:o,editSvc:s}=this.beans,a=s?.isEditing(e),l=e.isCellFocused();return a||l?!(o.allCols.indexOf(i)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||ki(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=Ve(this.rowNode.oldRowTop),{visibleCols:n}=this.beans,r=n.isPinningLeft(),i=n.isPinningRight();if(t){const{slideInAnimation:o}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){o.fullWidth=!0;return}o.center=!0,o.left=r,o.right=i}else{const{fadeInAnimation:o}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){o.fullWidth=!0;return}o.center=!0,o.left=r,o.right=i}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(s,a)=>s?s.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(s.element,a).params):!0,t=e(this.fullWidthGui,null),n=e(this.centerGui,null),r=e(this.leftGui,"left"),i=e(this.rightGui,"right"),o=t&&n&&r&&i;return this.fullWidthNotesFeature?.refresh(),o}getNotesFeature(){return this.fullWidthNotesFeature}addListeners(){const{beans:e,gos:t,rowNode:n}=this,{expansionSvc:r,eventSvc:i,context:o,rowSpanSvc:s}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...r?.getRowExpandedListeners(this)??{}}),n.detail&&this.addManagedListeners(n.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(n,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}
vendor: 7,278 bytes, line 844
844),this.addManagedListeners(i,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),s?.active&&this.addManagedListeners(s,{spannedCellsUpdated:({pinned:a})=>{a&&!n.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,o),this.tooltipFeature=this.destroyBean(this.tooltipFeature,o),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,o),this.fullWidthNotesFeature?.destroy()}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow")){for(const l of this.allRowGuis)this.addRowDraggerToRow(l);return}this.rowDragComps=this.destroyBeans(this.rowDragComps,o)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{for(const e of this.getAllCellCtrls())e.onRowIndexChanged()},cellChanged:e=>{for(const t of this.getAllCellCtrls())t.onCellChanged(e)}})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}for(const n of this.getAllCellCtrls())n.refreshCell(e);for(const n of this.allRowGuis)this.setRowCompRowId(n.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(n.rowComp);this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.rowEditStyleFeature?.applyRowStyles(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.beans.rowDropHighlightSvc,t=e?.row===this.rowNode?e.position:"none",n=t==="above",r=t==="inside",i=t==="below",o=t!=="none",s=n||i,a=this.rowNode.uiLevel,l=s&&a>0,u=l?a.toString():"0";for(const d of this.allRowGuis){const f=d.rowComp;f.toggleCss("ag-row-highlight-above",n),f.toggleCss("ag-row-highlight-inside",r),f.toggleCss("ag-row-highlight-below",i),f.toggleCss("ag-row-highlight-indent",l),o?d.element.style.setProperty("--ag-row-highlight-level",u):d.element.style.removeProperty("--ag-row-highlight-level")}}postProcessRowDragging(){const e=this.rowNode.dragging;for(const t of this.allRowGuis)t.rowComp.toggleCss("ag-row-dragging",e)}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:oc(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:n,column:r}=t;if(!(n.element===e.target))return;const s=this.rowNode,{focusSvc:a,navigation:l}=this.beans,u=a.getFocusedCell(),d={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:u?.column??r};l?.navigateToNextCell(e,e.key,d,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||ac(e))return;const t=this.allRowGuis.find(a=>a.element.contains(e.target)),n=t?t.element:null,r=n===e.target,i=$n(this.beans);let o=!1;n&&i&&(o=n.contains(i)&&i.classList.contains("ag-cell"));let s=null;!r&&!o&&(s=vg(this.beans,n,!1,e.shiftKey)),(this.isFullWidth()&&r||!s)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>Za(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(const n of this.allRowGuis)$o(n.element,"tabindex",t)}setupFocus(){this.isFullWidth()&&(this.restoreFullWidthFocus(!0),this.onFullWidthRowFocused(this.focusEventWhileNotReady??void 0))}restoreFullWidthFocus(e=!1){const{focusSvc:t,editSvc:n}=this.beans;if(n?.isEditing(this)||!t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)||!t.shouldTakeFocus())return;const r=this.getFullWidthRowGuiForFocus();if(!r)return;const i=()=>{this.isAlive()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned)&&r.element.focus({preventScroll:!0})};if(e){setTimeout(i,0);return}i()}getFullWidthRowGuiForFocus(e){if(this.fullWidthGui)return this.fullWidthGui;const t=this.beans.focusSvc.getFocusedCell(),n=this.beans.colModel.getCol(e?.column??t?.column);if(!n)return;const r=n?.pinned;return r==="right"?this.rightGui:r==="left"?this.leftGui:this.centerGui}setFullWidthRowFocusedClass(e,t){this.forEachGui(void 0,n=>{n.element.classList.toggle("ag-full-width-focus",t&&n===e)})}onFullWidthRowFocused(e){const{focusSvc:t}=this.beans;if(!(this.isFullWidth()&&t.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))){this.setFullWidthRowFocusedClass(void 0,!1);return}const r=this.getFullWidthRowGuiForFocus(e);if(!r){e&&(this.focusEventWhileNotReady=e),this.setFullWidthRowFocusedClass(void 0,!1);return}this.setFullWidthRowFocusedClass(r,!0),this.focusEventWhileNotReady=null,e?.forceBrowserFocus&&r.element.focus({preventScroll:!0})}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const n={list:[],map:{}};for(const r of e.list)r!==t&&(n.list.push(r),n.map[r.column.getInstanceId()]=r);return n}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"pointerdown":case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:n}=this;return ft(this.gos,{type:e,node:n,data:n.data,rowIndex:n.rowIndex,rowPinned:n.rowPinned,event:t})}createRowEventWithSource(e,t){const n=this.createRowEvent(e,t);return n.source=this,n}onRowDblClick(e){if(ac(e))return;const t=this.createRowEventWithSource("rowDoubleClicked",e);t.isEventHandlingSuppressed=this.isSuppressMouseEvent(e),this.beans.eventSvc.dispatchEvent(t)}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),n=this.getColumnForFullWidth(t),r=this.getPinnedForFullWidth(t);if(!(!t||!n))return{rowGui:t,column:n,pinned:r}}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}getPinnedForFullWidth(e){const t=e?.containerType;return t==="left"||t==="right"?t:void 0}
844addManagedGuiElementListeners(e,t){const{compBean:n,element:r}=e;this.guiListenerOwners.get(r)!==n&&(this.guiListenerOwners.set(r,n),n.addManagedElementListeners(r,t))}onRowMouseDown(e){if(this.lastMouseDownOnDragger=xf(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:n}=this.beans;t?.removeAllCellRanges();const r=this.findFullWidthInfoForEvent(e);if(!r)return;const{rowGui:i,column:o}=r,s=i.element,a=e.target,l=this.rowNode;let u=e.defaultPrevented||ih();s&&s.contains(a)&&tb(a)&&(u=!1),n.setFocusedCell({rowIndex:l.rowIndex,column:o,rowPinned:l.rowPinned,forceBrowserFocus:u})}isSuppressMouseEvent(e){const{gos:t,rowNode:n}=this;if(this.isFullWidth()){const i=this.findFullWidthRowGui(e.target);return WAe(t,i?.rowComp.getFullWidthCellRendererParams(),n,e)}const r=xN(t,e.target);return r!=null&&a1(t,r.column,n,e)}onRowClick(e){if(ac(e)||this.lastMouseDownOnDragger)return;const n=this.isSuppressMouseEvent(e),{eventSvc:r,selectionSvc:i}=this.beans,o=this.createRowEventWithSource("rowClicked",e);o.isEventHandlingSuppressed=n,r.dispatchEvent(o),!n&&i?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowType==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:n,rowNode:r}=this,i=ft(n,{fullWidth:!0,data:r.data,node:r,value:r.key,valueFormatted:r.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(s,a,l,u)=>this.addFullWidthRowDragging(s,a,l,u),setTooltip:(s,a)=>{n.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(s,a)}}),o=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return TRe(o,i);case"FullWidthGroup":{const{value:s,valueFormatted:a}=this.beans.valueSvc.getValueForDisplay({node:this.rowNode,includeValueFormatted:!0,from:"edit"});return i.value=s,i.valueFormatted=a,ARe(o,i)}case"FullWidthLoading":return RRe(o,i);default:return ERe(o,i)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,n="",r){const{rowDragSvc:i,context:o}=this.beans;if(!i||!this.isFullWidth())return;const s=i.createRowDragComp(()=>n,this.rowNode,void 0,e,t,r);this.createBean(s,o),this.addDestroyFunc(()=>{this.destroyBean(s,o)})}onUiLevelChanged(){const e=Aj(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;for(const r of this.allRowGuis)r.rowComp.toggleCss(t,!0),r.rowComp.toggleCss(n,!1)}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();if(this.firstRowOnPage!==e){this.firstRowOnPage=e;for(const n of this.allRowGuis)n.rowComp.toggleCss("ag-row-first",e)}if(this.lastRowOnPage!==t){this.lastRowOnPage=t;for(const n of this.allRowGuis)n.rowComp.toggleCss("ag-row-last",t)}}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=[];if(this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),!!e.length)for(const t of e)for(const n of this.allRowGuis)n.rowComp.toggleCss(t,!0)}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!0)},e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!1)})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,n=>n.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),n=this.isFullWidth(),{rowNode:r,beans:i}=this,o=[];o.push("ag-row"),o.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&o.push("ag-opacity-zero"),o.push(r.rowIndex%2===0?"ag-row-even":"ag-row-odd"),r.isRowPinned()&&(o.push("ag-row-pinned"),i.pinnedRowModel?.isManual()&&o.push("ag-row-pinned-manual")),!r.isRowPinned()&&r.pinnedSibling&&o.push("ag-row-pinned-source"),r.isSelected()&&o.push("ag-row-selected"),r.footer&&o.push("ag-row-footer"),o.push("ag-row-level-"+this.rowLevel),r.stub&&o.push("ag-row-loading"),n&&o.push("ag-full-width-row"),i.expansionSvc?.addExpandedCss(o,r),r.dragging&&o.push("ag-row-dragging");const{rowStyleSvc:s}=i;return s&&(s.processClassesFromGridOptions(o,r),s.preProcessRowClassRules(o,r)),o.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&o.push("ag-row-first"),this.isLastRowOnPage()&&o.push("ag-row-last"),n&&(t==="left"&&o.push("ag-cell-last-left-pinned"),t==="right"&&o.push("ag-cell-first-right-pinned")),o}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,t=>{(t===this.centerGui||t===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(e){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode),this.announceNoteDescription(e)}announceNoteDescription(e){const{notesSvc:t,ariaAnnounce:n}=this.beans;if(!t||!n||!e&&!this.isFullWidth())return;const r={rowNode:this.rowNode},i=e?{column:e.column}:{location:"fullWidthRow"},o={...r,...i};if(t.getNoteAccess(o)?.canView){const a=this.getLocaleTextFunc();n.announceValue(a("ariaHasNote","This cell has a note."),"note")}}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:n}=e,{rowNode:r,beans:i,gos:o}=this;n.addManagedListeners(t,{pointerenter:s=>{s.pointerType==="mouse"&&r.dispatchRowEvent("mouseEnter")},pointerleave:s=>{s.pointerType==="mouse"&&r.dispatchRowEvent("mouseLeave")}}),n.addManagedListeners(r,{mouseEnter:()=>{!i.dragSvc?.dragging&&!o.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),r.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(n=>n.element);for(const n of t)n.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature
844().getApproximateVScollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)}forEachGui(e,t){if(e)t(e);else for(const n of this.allRowGuis)t(n)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),i=mte(this.gos)?$d(this.beans,this.rowNode).height:void 0,o=i?`${Math.min(n,i)-2}px`:void 0;this.forEachGui(e,s=>{s.element.style.height=`${t}px`,o&&s.element.style.setProperty("--ag-line-height",o)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&Jp(this.gos)&&!t.sticky)if(t.rowTop!=null){const i=this.roundRowTopToBounds(t.rowTop);this.setRowTop(i)}else for(const i of this.allRowGuis)i.rowComp.toggleCss("ag-opacity-zero",!0);this.fullWidthGui?.element.contains($n(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const n=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(n),this.beans.eventSvc.dispatchEvent(n),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const e=t=>{for(const n of t.list)n.destroy();return{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.toggleCss("ag-row-focus",this.rowFocused),t.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e}=this.beans,t=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses())}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const n=this.beans.pageBounds.getPixelOffset();return e+n*(t?1:-1)}setRowTop(e){if(!this.printLayout&&Ve(e)){const t=this.applyPaginationOffset(e),i=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(i)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let n;if(t.sticky)n=t.stickyRowTop;else{const r=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,i=this.applyPaginationOffset(r);n=t.isRowPinned()?i:this.beans.rowContainerHeight.getRealPixelPosition(i)}return n+"px"}setRowTopStyle(e){for(const t of this.allRowGuis)this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)}getCellCtrl(e,t=!1){let n=null;for(const r of this.getAllCellCtrls())r.column==e&&(n=r);if(n!=null||t)return n;for(const r of this.getAllCellCtrls())r?.getColSpanningList().indexOf(e)>=0&&(n=r);return n}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(t===null)return;const n=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),r=this.rowNode.rowIndex%2===0,i=this.ariaRowIndex=n+this.rowNode.rowIndex+1;this.forEachGui(e,o=>{o.rowComp.setRowIndex(t),o.rowComp.toggleCss("ag-row-even",r),o.rowComp.toggleCss("ag-row-odd",!r),XL(o.element,i)})}},X2e=class extends Se{constructor(){super(),this.beanName="navigation",this.onPageDown=E6(this.onPageDown,100),this.onPageUp=E6(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const n=e.key,r=e.altKey,i=e.ctrlKey||e.metaKey,o=!!this.beans.rangeSvc&&e.shiftKey,s=WTe(this.gos,e);let a=!1;switch(n){case fe.PAGE_HOME:case fe.PAGE_END:!i&&!r&&(this.onHomeOrEndKey(n),a=!0);break;case fe.LEFT:case fe.RIGHT:case fe.UP:case fe.DOWN:if(!s)return!1;i&&!r&&!o&&(this.onCtrlUpDownLeftRight(n,s),a=!0);break;case fe.PAGE_DOWN:case fe.PAGE_UP:!i&&!r&&(a=this.handlePageUpDown(n,s,t));break}return a&&e.preventDefault(),a}handlePageUpDown(e,t,n){return n&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===fe.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}
vendor: 7,625 bytes, line 844
844navigateTo({scrollIndex:e,scrollType:t,scrollColumn:n,focusIndex:r,focusColumn:i,isAsync:o,rowPinned:s}){const{scrollFeature:a}=this.gridBodyCon;Ve(n)&&!n.isPinned()&&a.ensureColumnVisible(n),Ve(e)&&a.ensureIndexVisible(e,t),o||a.ensureIndexVisible(r);const{focusSvc:l}=this.beans;l.setFocusedCell({rowIndex:r,column:i,rowPinned:s,forceBrowserFocus:!0}),this.setRangeToCellIfSupported({rowIndex:r,rowPinned:s,column:i})}onPageDown(e){const t=this.beans,n=sD(t),r=this.getViewportHeight(),{pageBounds:i,rowModel:o,rowAutoHeight:s}=t,a=i.getPixelOffset(),l=n.top+r,u=o.getRowIndexAtPixel(l+a);s?.active?this.navigateToNextPageWithAutoHeight(e,u):this.navigateToNextPage(e,u)}onPageUp(e){const t=this.beans,n=sD(t),{pageBounds:r,rowModel:i,rowAutoHeight:o}=t,s=r.getPixelOffset(),a=n.top,l=i.getRowIndexAtPixel(a+s);o?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,n=!1){const{pageBounds:r,rowModel:i}=this.beans,o=this.getViewportHeight(),s=r.getFirstRow(),a=r.getLastRow(),l=r.getPixelOffset(),u=i.getRow(e.rowIndex),d=n?u?.rowHeight-o-l:o-l,f=u?.rowTop+d;let g=i.getRowIndexAtPixel(f+l);if(g===e.rowIndex){const E=n?-1:1;t=g=e.rowIndex+E}let m;n?(m="bottom",g<s&&(g=s),t<s&&(t=s)):(m="top",g>a&&(g=a),t>a&&(t=a)),this.isRowTallerThanView(i.getRow(g))&&(t=g,m="top");const y={rowIndex:g,column:e.column,rowPinned:null},b=this.getNormalisedPosition(y),{rowIndex:w,column:C}=b??y;this.navigateTo({scrollIndex:t,scrollType:m,scrollColumn:null,focusIndex:w,focusColumn:C})}navigateToNextPageWithAutoHeight(e,t,n=!1){this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const r=this.getNextFocusIndexForAutoHeight(e,n);this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const n=t?-1:1,r=this.getViewportHeight(),{pageBounds:i,rowModel:o}=this.beans,s=i.getLastRow();let a=0,l=e.rowIndex;for(;l>=0&&l<=s;){const u=o.getRow(l);if(u){const d=u.rowHeight??0;if(a+d>r)break;a+=d}l+=n}return Math.max(0,Math.min(l,s))}getViewportHeight(){const e=this.beans,t=sD(e),n=this.beans.scrollVisibleSvc.getScrollbarWidth();let r=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(r-=n),r}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const n=this.beans.cellNavigation.getNextCellToFocus(e,t,!0);if(!n)return;const r=this.getNormalisedPosition(n),{rowIndex:i,rowPinned:o,column:s}=r??n,a=s;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:a,focusIndex:i,focusColumn:a,rowPinned:o})}onHomeOrEndKey(e){const t=e===fe.PAGE_HOME,{visibleCols:n,pageBounds:r,rowModel:i}=this.beans,o=n.allCols,s=t?r.getFirstRow():r.getLastRow(),a=i.getRow(s);if(!a)return;const l=(t?o:[...o].reverse()).find(u=>!u.isSuppressNavigable(a)&&!Ro(u));l&&this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:l,focusIndex:s,focusColumn:l})}onTabKeyDown(e,t){const n=t.shiftKey,r=this.tabToNextCellCommon(e,n,t),i=this.beans,{ctrlsSvc:o,pageBounds:s,focusSvc:a,gos:l}=i;if(r!==!1){r?t.preventDefault():r===null&&o.get("gridCtrl").allowFocusForNextCoreContainer(n);return}if(n){const{rowIndex:u,rowPinned:d}=e.getRowPosition();(d?u===0:u===s.getFirstRow())&&(l.get("headerHeight")===0||Ga(i)?Sm(i,!0,!0):(t.preventDefault(),a.focusPreviousFromFirstCell(t)))}else e instanceof om&&e.focusCell(!0),(a.focusOverlay(!1)||Sm(i,n))&&t.preventDefault()}tabToNextCell(e,t){const n=this.beans,{focusSvc:r,rowRenderer:i}=n,o=r.getFocusedCell();if(!o)return!1;let s=Gp(n,o);return!s&&(s=i.getRowByPosition(o),!s?.isFullWidth())?!1:!!this.tabToNextCellCommon(s,e,t,"api")}tabToNextCellCommon(e,t,n,r="ui"){const{editSvc:i,focusSvc:o}=this.beans;let s;const a=e instanceof om?e:e.getAllCellCtrls()?.[0];return i?.isEditing()?s=i?.moveToNextCell(a,t,n,r):s=this.moveToNextCellNotEditing(e,t,n),s===null?s:s||!!o.focusedHeader}moveToNextCellNotEditing(e,t,n){const r=this.beans.visibleCols.allCols;let i;if(e instanceof tx){if(i={...e.getRowPosition(),column:t?r[0]:gn(r)},this.gos.get("embedFullWidthRows")&&n){const s=e.findFullWidthInfoForEvent(n);s&&(i.column=s.column)}}else i=e.getFocusedCellPosition();const o=this.findNextCellToFocusOn(i,{backwards:t,startEditing:!1});if(o===!1)return null;if(o instanceof om)o.focusCell(!0);else if(o)return this.tryToFocusFullWidthRow(o,t);return Ve(o)}findNextCellToFocusOn(e,{backwards:t,startEditing:n,skipToNextEditableCell:r}){let i=e;const o=this.beans,{cellNavigation:s,gos:a,focusSvc:l,rowRenderer:u}=o;for(;;){e!==i&&(e=i),t||(i=this.getLastCellOfColSpan(i)),i=s.getNextTabbedCell(i,t);const d=a.getCallback("tabToNextCell");if(Ve(d)){const y=d({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:i||null});if(y===!0)i=e;else{if(y===!1)return!1;i={rowIndex:y.rowIndex,column:y.column,rowPinned:y.rowPinned}}}if(!i)return null;if(i.rowIndex<0){const m=Js(o);return l.focusHeaderPosition({headerPosition:{headerRowIndex:m+i.rowIndex,column:i.column},fromCell:!0}),null}const f=a.get("editType")==="fullRow";if(n&&(!f||r)&&!this.isCellEditable(i))continue;this.ensureCellVisible(i);const g=Gp(o,i);if(!g){const m=u.getRowByPosition(i);if(!m||!m.isFullWidth()||n)continue;return{...m.getRowPosition(),column:i?.column}}if(!s.isSuppressNavigable(g.column,g.rowNode))return g.setFocusedCellPosition(i),this.setRangeToCellIfSupported(i),g}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:n,rowModel:r}=this.beans;return t==="top"?n?.getPinnedTopRow(e):t==="bottom"?n?.getPinnedBottomRow(e):r.getRow(e)}navigateToNextCell(e,t,n,r){let i=n,o=!1;const s=this.beans,{cellNavigation:a,focusSvc:l,gos:u}=s;for(;i&&(i===n||!this.isValidNavigateCell(i));)u.get("enableRtl")?t===fe.LEFT&&(i=this.getLastCellOfColSpan(i)):t===fe.RIGHT&&(i=this.getLastCellOfColSpan(i)),i=a.getNextCellToFocus(t,i),o=rr(i);if(o&&e?.key===fe.UP&&(i={rowIndex:-1,rowPinned:null,column:n.column}),r){const f=u.getCallback("navigateToNextCell");if(Ve(f)){const m=f({key:t,previousCellPosition:n,nextCellPosition:i||null,event:e});Ve(m)?i={rowPinned:m.rowPinned,rowIndex:m.rowIndex,column:m.column}:i=null}}if(!i)return;if(i.rowIndex<0){const f=Js(s);l.focusHeaderPosition({headerPosition:{headerRowIndex:f+i.rowIndex,column:i.column??n.column},event:e||void 0,fromCell:!0});return}const d=this.getNormalisedPosition(i);d?this.focusPosition(d):this.tryToFocusFullWidthRow(i)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const n=Gp(this.beans,e);return n?(e=n.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:n,rowRenderer:r,focusSvc:i,eventSvc:o}=this.beans,s=n.allCols;if(!r.getRowByPosition(e)?.isFullWidth())return!1;const l=i.getFocusedCell(),u={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?gn(s):s[0])};this.focusPosition(u);const d=t??(l!=null&&hAe(u,l));return o.dispatchEvent({type:"fullWidthRowFocused",rowIndex:u.rowIndex,rowPinned:u.rowPinned,column:u.column,isFullWidthCell:!0,fromBelow:d}),!0}focusPosition(e){const{focusSvc:t}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.setRangeToCellIfSupported(e)}setRangeToCellIfSupported(e){Ro(e.column)||this.beans.rangeSvc?.setRangeToCell(e)}isValidNavigateCell(e){return!!Jl(this.beans,e)}
vendor: 4,193 bytes, line 844
844getLastCellOfColSpan(e){const t=Gp(this.beans,e);if(!t)return e;const n=t.getColSpanningList();return n.length===1?e:{rowIndex:e.rowIndex,column:gn(n),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=yte(this.gos),n=this.beans.rowModel.getRow(e.rowIndex),r=t&&n?.sticky,{scrollFeature:i}=this.gridBodyCon;!r&&rr(e.rowPinned)&&i.ensureIndexVisible(e.rowIndex),e.column.isPinned()||i.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}};function sD(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var Z2e={moduleName:"KeyboardNavigation",version:Le,beans:[X2e,g2e,RMe],apiFunctions:{getFocusedCell:p2e,clearFocusedCell:m2e,setFocusedCell:v2e,setFocusedHeader:w2e,tabToNextCell:y2e,tabToPreviousCell:b2e}},Q2e=class extends Se{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:n}=this.beans;t?t.calculatePages():e.calculateBounds(0,n.getRowCount()-1)}},J2e=class extends Se{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return!e||!t?0:Math.max(t.rowTop+t.rowHeight-e.rowTop,0)}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this,n=e?.rowTop??0,r=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:n,pageLastPixel:r}}calculateBounds(e,t){const{rowModel:n}=this.beans,r=n.getRowBounds(e);r&&(r.rowIndex=e),this.topRowBounds=r;const i=n.getRowBounds(t);i&&(i.rowIndex=t),this.bottomRowBounds=i,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},eIe=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}",tIe=class extends Se{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left"
844:"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const n of this.elements)n&&(Cn(n,t),$l(n,e))}},d1=50,nIe=class extends Se{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl});const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:n}=this.beans,r=ki(e,"print"),i=r?0:t.getColsLeftWidth(),o=r?0:t.getDisplayedColumnsRightWidth();i!=this.leftWidth&&(this.leftWidth=i,n.dispatchEvent({type:"leftPinnedWidthChanged"})),o!=this.rightWidth&&(this.rightWidth=o,n.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=Mb(e);if(t<=d1)return;const n=this.getPinnedColumnsOverflowingViewport(t-d1),r=this.gos.getCallback("processUnpinnedColumns"),{columns:i,hasLockedPinned:o}=n;let s=i;!s.length&&!o||(r&&(s=r({columns:s,viewportWidth:t})),s?.length&&(s=s.filter(a=>!Ro(a)),this.setColsPinned(s,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new tIe(e,t)}setColsPinned(e,t,n){const{colModel:r,colAnimation:i,visibleCols:o,gos:s}=this.beans;if(!r.cols||!e?.length)return;if(ki(s,"print")){Me(37);return}i?.start();let a;t===!0||t==="left"?a="left":t==="right"?a="right":a=null;const l=[];for(const u of e){if(!u)continue;const d=r.getCol(u);d&&d.getPinned()!==a&&(this.setColPinned(d,a),l.push(d))}l.length&&(o.refresh(n),Ene(this.eventSvc,l,n)),i?.finish()}initCol(e){const{pinned:t,initialPinned:n}=e.colDef;t!==void 0?this.setColPinned(e,t):this.setColPinned(e,n)}setColPinned(e,t){t===!0||t==="left"?e.pinned="left":t==="right"?e.pinned="right":e.pinned=null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(e.pinned==null)return;const n=e.pinned==="left",r=e.pinned==="right";e.hidden=!0;const i=()=>{const o=n?this.leftWidth:this.rightWidth;if(o==null)return;const s=o==0,a=e.hidden!==s,l=this.gos.get("enableRtl"),u=t.getScrollbarWidth(),f=t.verticalScrollShowing&&(l&&n||!l&&r)?o+u:o;e.comp.setPinnedContainerWidth(`${f}px`),e.comp.setDisplayed(!s),a&&(e.hidden=s,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:i,rightPinnedWidthChanged:i,scrollVisibilityChanged:i,scrollbarWidthChanged:i})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:r,rightWidth:i}=this,o=Mb(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-d1;if(r+i+e>o)if(o>r+i)e=o-r-i;else return 0}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,n=this.leftWidth??0,r=t+n;let i=!1;if(r<e)return{columns:[],hasLockedPinned:i};const{visibleCols:o}=this.beans,s=[...o.leftCols],a=[...o.rightCols];let l=0,u=0;const d=0,f=[];let g=r-d-e;for(;(u<s.length||l<a.length)&&g>0;){if(l<a.length){const m=a[l++];if(m.colDef.lockPinned){i=!0;continue}g-=m.getActualWidth(),f.push(m)}if(u<s.length&&g>0){const m=s[u++];if(m.colDef.lockPinned){i=!0;continue}g-=m.getActualWidth(),f.push(m)}}return{columns:f,hasLockedPinned:i}}},rIe={moduleName:"PinnedColumn",version:Le,beans:[nIe],css:[eIe]},iIe=class extends Do{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=ui(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=Kr(e),n=this.descriptionContainer=t.createElement("div");n.classList.add("ag-aria-description-container"),jee(n,"polite"),dxe(n,"additions text"),cxe(n,!0),e.eRootDiv.appendChild(n)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;if(t==null||t.replace(/[ .]/g,"")==""){this.lastAnnouncement="";return}this.lastAnnouncement===t&&(t=`${t}â`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(Jo(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},oIe=class extends iIe{},sIe={moduleName:"Aria",version:Le,beans:[oIe]},aIe=":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}",Tj="ag-delay-render",lIe=class extends Se{constructor(){super(...arguments),this.beanName="
844colDelayRenderSvc",this.hideRequested=!1,this.alreadyRevealed=!1,this.timesRetried=0,this.requesters=new Set}hideColumns(e){this.alreadyRevealed||this.requesters.has(e)||(this.requesters.add(e),this.hideRequested||(this.beans.ctrlsSvc.whenReady(this,t=>{t.gridBodyCtrl.eGridBody.classList.add(Tj)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive()||(this.requesters.delete(e),this.requesters.size>0))return;const{renderStatus:t,ctrlsSvc:n}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++,setTimeout(()=>this.revealColumns(e));return}this.timesRetried=0}n.getGridBodyCtrl().eGridBody.classList.remove(Tj),this.alreadyRevealed=!0}},uIe={moduleName:"ColumnDelayRender",version:Le,beans:[lIe],css:[aIe]},YE=class extends qn{constructor(){super()}},cIe={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},dIe=class extends YE{constructor(){super(...arguments),this.eExportingIcon=Ye,this.eExportingText=Ye}init(e){const{beans:t}=this;this.setTemplate(cIe);const n=Ko("overlayExporting",t,null);n&&this.eExportingIcon.appendChild(n);const r=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=r,t.ariaAnnounce.announceValue(r,"overlay")}},hIe={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},fIe=class extends YE{constructor(){super(...arguments),this.eLoadingIcon=Ye,this.eLoadingText=Ye}init(e){const{beans:t,gos:n}=this,r=oc(n.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(r??hIe),!r){const i=Ko("overlayLoading",t,null);i&&this.eLoadingIcon.appendChild(i);const o=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}}},gIe={tag:"span",cls:"ag-overlay-no-matching-rows-center"},pIe=class extends YE{init(e){const{beans:t}=this;this.setTemplate(gIe);const n=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=n,t.ariaAnnounce.announceValue(n,"overlay")}},mIe={tag:"span",cls:"ag-overlay-no-rows-center"},vIe=class extends YE{init(e){const{beans:t,gos:n}=this,r=oc(n.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(r??mIe),!r){const i=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}}};function yIe(e){e.overlays?.showLoadingOverlay()}function bIe(e){e.overlays?.showNoRowsOverlay()}function wIe(e){e.overlays?.hideOverlay()}var CIe=".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{pointer-events:all}.ag-overlay-exporting-center,.ag-overlay-loading-center{background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);display:flex;padding:var(--ag-spacing)}",SIe={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},Jne=class extends qn{constructor(){super(SIe),this.eOverlayWrapper=Ye,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(CIe)}handleKeyDown(e){if(e.key!==fe.TAB||e.defaultPrevented||ac(e))return;const{beans:t,eOverlayWrapper:n}=this;if(n&&vg(t,n,!1,e.shiftKey))return;let i;e.shiftKey?i=t.focusSvc.focusGridView({column:gn(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):i=Sm(t,!1),i&&e.preventDefault()}updateLayoutClasses(e,t){const n=this.eOverlayWrapper;if(!n)return;const r=n.classList,{AUTO_HEIGHT:i,NORMAL:o,PRINT:s}=s1;r.toggle(i,t.autoHeight),r.toggle(o,t.normal),r.toggle(s,t.print)}postConstruct(){this.createManagedBean(new SN(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setWrapperComp(this,!1),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)}),this.addManagedEventListeners({gridSizeChanged:this.refreshWrapperPadding.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper?.classList;if(!t){this.activeCssClass=null;return}this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,n){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=n,!e)return this.refreshWrapperPadding(),_t.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),n&&this.isGridFocused()){const r=$n(this.beans);r&&!$L(this.beans)&&(this.elToFocusAfter=r)}return e.then(r=>{const i=this.eOverlayWrapper;if(!i){this.destroyBean(r);return}if(this.activePromise!==e){this.activeOverlay!==r&&this.destroyBean(r);return}this.activePromise=null,r&&(this.activeOverlay!==r&&(i.appendChild(r.getGui()),this.activeOverlay=r),n&&this.isGridFocused()&&qf(i))}),e}refreshWrapperPadding(){if(!this.eOverlayWrapper){this.oldWrapperPadding=null;return}const e=!!this.activeOverlay||!!this.activePromise;let t=0;e&&!this.overlayExclusive&&(t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0),t!==this.oldWrapperPadding&&(this.oldWrapperPadding=t,this.eOverlayWrapper.style.setProperty("padding-top",`${t}px`))}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e){this.overlayExclusive=!1,this.elToFocusAfter=null,this.refreshWrapperPadding();return}let t=this.elToFocusAfter;this.elToFocusAfter=null,this.activeOverlay=null,this.overlayExclusive=!1,t&&!this.isGridFocused()&&(t=null),this.destroyBean(e);const n=this.eOverlayWrapper;n&&Jo(n),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}
vendor: 4,972 bytes, line 844
844isGridFocused(){const e=$n(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setWrapperComp(this,!0),super.destroy(),this.eOverlayWrapper=null}},xIe={selector:"AG-OVERLAY-WRAPPER",component:Jne},EIe=["refresh"],yw=e=>({name:e,optionalMethods:EIe}),uf={id:"agLoadingOverlay",overlayType:"loading",comp:yw("loadingOverlayComponent"),wrapperCls:"ag-overlay-loading-wrapper",exclusive:!0,compKey:"loadingOverlayComponent",paramsKey:"loadingOverlayComponentParams",isSuppressed:e=>{const t=e.get("loading");return t===!1||e.get("suppressLoadingOverlay")===!0&&t!==!0}},Wp={id:"agNoRowsOverlay",overlayType:"noRows",comp:yw("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},_N={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:yw("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},nx={id:"agExportingOverlay",overlayType:"exporting",comp:yw("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},h1={id:"activeOverlay",comp:yw("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},RIe=e=>e?{agLoadingOverlay:uf,agNoRowsOverlay:Wp,agNoMatchingRowsOverlay:_N,agExportingOverlay:nx}[e]??h1:null,AIe=e=>e?{loading:uf,noRows:Wp,noMatchingRows:_N,exporting:nx}[e]:null,TIe=class extends Se{constructor(){super(...arguments),this.beanName="overlays",this.eWrapper=void 0,this.exclusive=!1,this.oldExclusive=!1,this.currentDef=null,this.showInitialOverlay=!0,this.userForcedNoRows=!1,this.exportsInProgress=0,this.newColumnsLoadedCleanup=null}postConstruct(){const e=this.gos;this.showInitialOverlay=hr(e);const t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[n,r,i,o]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),r()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=n,this.addManagedPropertyListeners(["loading","activeOverlay","activeOverlayParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams"],s=>this.onPropChange(new Set(s.changeSet?.properties)))}destroy(){this.doHideOverlay(),super.destroy(),this.eWrapper=void 0}setWrapperComp(e,t){this.isAlive()&&(t?this.eWrapper===e&&(this.eWrapper=void 0):this.eWrapper=e,this.updateOverlay(!1))}isVisible(){return!!this.currentDef}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos;if(!this.eWrapper||e.get("activeOverlay")||this.isDisabled(uf))return;const t=e.get("loading");!t&&t!==void 0||this.doShowOverlay(uf)}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;!this.eWrapper||e.get("activeOverlay")||e.get("loading")||this.isDisabled(Wp)||(this.userForcedNoRows=!0,this.doShowOverlay(Wp))}async showExportOverlay(e){const{gos:t,beans:n}=this;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(nx)||this.userForcedNoRows&&this.currentDef===Wp){e();return}const r=this.getDesiredDefWithOverride(nx);if(!r){e();return}this.exportsInProgress++,this.focusedCell=n.focusSvc.getFocusedCell(),await this.doShowOverlay(r),await new Promise(o=>setTimeout(()=>o()));const i=Date.now();try{e()}finally{const o=Date.now()-i,s=Math.max(0,300-o),a=()=>{this.exportsInProgress--,this.exportsInProgress===0&&(this.updateOverlay(!1),yAe(n,this.focusedCell),this.focusedCell=null)};s>0?setTimeout(()=>a(),s):a()}}hideOverlay(){const e=this.gos;this.showInitialOverlay=!1;const t=this.userForcedNoRows;if(this.userForcedNoRows=!1,e.get("loading")){Me(99);return}if(e.get("activeOverlay")){Me(296);return}if(this.currentDef===_N){Me(297);return}this.doHideOverlay(),t&&this.getOverlayDef()!==Wp&&this.updateOverlay(!1)}getOverlayWrapperSelector(){return xIe}getOverlayWrapperCompClass(){return Jne}onPropChange(e){const t=e.has("activeOverlay");if((t||e.has("loading"))&&this.updateOverlay(t))return;const n=this.currentDef,r=this.eWrapper?.activeOverlay;if(r&&n){const i=e.has("activeOverlayParams");if(n===h1)i&&r.refresh?.(this.makeCompParams(!0));else{const o=n.paramsKey;(e.has("overlayComponentParams")||o&&e.has(o))&&r.refresh?.(this.makeCompParams(!1,o,n.overlayType))}}}updateOverlay(e){const t=this.eWrapper;if(!t)return this.currentDef=null,!1;const n=this.getDesiredDefWithOverride(),r=this.currentDef,i=n===h1&&e;return n!==r?n?(this.doShowOverlay(n),!0):(this.disableInitialOverlay(),this.doHideOverlay()):i&&n?(t.hideOverlay(),this.doShowOverlay(n),!0):(n||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){const{gos:t}=this;let n=RIe(t.get("activeOverlay"));return n||(n=e??this.getOverlayDef(),n&&this.isDisabled(n)&&(n=null)),n}getOverlayDef(){const{gos:e,beans:t}=this,{rowModel:n}=t,r=e.get("loading");if(r!==void 0){if(this.disableInitialOverlay(),r)return uf}else if(this.showInitialOverlay){if(!this.isDisabled(uf)&&(!e.get("
844columnDefs")||!e.get("rowData")))return uf;this.disableInitialOverlay()}else this.disableInitialOverlay();const o=n.getOverlayType();return AIe(o)}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){const{gos:t,beans:n}=this,{userCompFactory:r}=n;this.currentDef=e;const i=e!==h1,o=!!e.exclusive;this.exclusive=o;let s;(e.paramsKey&&t.get(e.paramsKey)||e.compKey&&t.get(e.compKey))&&(s=e.paramsKey);let a;i&&(t.get("overlayComponent")||t.get("overlayComponentSelector"))&&(a=r.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),a??(a=r.getCompDetailsFromGridOptions(e.comp,i?e.id:void 0,this.makeCompParams(!i,s,e.overlayType),!1));const l=a?.newAgStackInstance()??null,u=this.eWrapper?this.eWrapper.showOverlay(l,e.wrapperCls,o):_t.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(o),u}makeCompParams(e,t,n){const{gos:r}=this,i=e?r.get("activeOverlayParams"):{...r.get("overlayComponentParams"),...t&&r.get(t)||null,overlayType:n};return ft(r,i??{})}doHideOverlay(){let e=!1;this.currentDef&&(this.currentDef=null,e=!0),this.exclusive=!1;const t=this.eWrapper;return t&&(t.hideOverlay(),t.refreshWrapperPadding(),this.setExclusive(!1)),e}setExclusive(e){this.oldExclusive!==e&&(this.oldExclusive=e,this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"}))}isDisabled(e){const{gos:t}=this;return e.overlayType&&t.get("suppressOverlays")?.includes(e.overlayType)||e.isSuppressed?.(t)===!0}},PIe={moduleName:"Overlay",version:Le,userComponents:{agLoadingOverlay:fIe,agNoRowsOverlay:vIe,agNoMatchingRowsOverlay:pIe,agExportingOverlay:dIe},apiFunctions:{showLoadingOverlay:yIe,showNoRowsOverlay:bIe,hideOverlay:wIe},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[TIe]},OIe=class extends Se{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=NRe(),Wf(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;Wf(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight(),n=e/t;return this.maxScrollY*n}},DIe=400,MIe=class extends Se{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{for(const o of this.getAllCellCtrls())o.onCellSelectionChanged()},t=()=>{for(const o of this.getAllCellCtrls())o.updateRangeBordersIfRangeCount()},n=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},r=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>r()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{qd(this.gos)?n():r()}),qd(this.gos)&&n()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc,this.editSvc=e.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}
vendor: 4,230 bytes, line 844
844),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",r=>this.onSuppressCellFocusChanged(r.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:r,previousValue:i})=>{(!i&&r||i&&!r)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:n}=this.beans;if(n&&this.addManagedPropertyListener("showOpenedGroup",()=>{const r=n.columns;r.length&&this.refreshCells({columns:r,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const r=this.gridBodyCtrl;r.setStickyTopHeight(0),r.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=ki(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new IIe(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),n=this.cachedRowCtrls?.getEntries()??[];t.length>0||n.length>0?this.allRowCtrls=[...e,...t,...n]:this.allRowCtrls=e}isCellBeingRendered(e,t){const n=this.rowCtrlsByRowIndex[e];return!t||!n?!!n:n.isFullWidth()?!0:!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!n.getCellCtrl(t)||!n.isRowRendered()}updateCellFocus(e){for(const t of this.getAllCellCtrls())t.onCellFocused(e);for(const t of this.getFullWidthRowCtrls())t.onFullWidthRowFocused(e)}onCellFocusChanged(e){if(e?.rowIndex!=null&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){for(const t of this.getAllCellCtrls())t.onSuppressCellFocusChanged(e);for(const t of this.getFullWidthRowCtrls())t.onSuppressCellFocusChanged(e)}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;if(t)for(const n of this.getAllCellCtrls())t.onFlashCells(n,e)},columnHoverChanged:()=>{for(const e of this.getAllCellCtrls())e.onColumnHover()},displayedColumnsChanged:()=>{for(const e of this.getAllCellCtrls())e.onDisplayedColumnsChanged()},displayedColumnsWidthChanged:()=>{if(this.printLayout)for(const e of this.getAllCellCtrls())e.onLeftChanged()}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){for(const e of this.destroyFuncsForColumnListeners)e();this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();const e=this.colModel.getCols();for(const t of e){const n=l=>{for(const u of this.getAllCellCtrls())u.column===t&&l(u)},r=()=>{n(l=>l.onLeftChanged())},i=()=>{n(l=>l.onWidthChanged())},o=()=>{n(l=>l.onFirstRightPinnedChanged())},s=()=>{n(l=>l.onLastLeftPinnedChanged())},a=()=>{n(l=>l.onColDefChanged())};t.__addEventListener("leftChanged",r),t.__addEventListener("widthChanged",i),t.__addEventListener("firstRightPinnedChanged",o),t.__addEventListener("lastLeftPinnedChanged",s),t.__addEventListener("colDefChanged",a),this.destroyFuncsF
vendor: 4,267 bytes, line 844
844orColumnListeners.push(()=>{t.__removeEventListener("leftChanged",r),t.__removeEventListener("widthChanged",i),t.__removeEventListener("firstRightPinnedChanged",o),t.__removeEventListener("lastLeftPinnedChanged",s),t.__removeEventListener("colDefChanged",a)})}}onDomLayoutChanged(){const e=ki(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];for(const n of this.getAllRowCtrls()){const r=n.getCellCtrl(e,!0)?.eGui;r&&t.push(r)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,n){const{pinnedRowModel:r,beans:i,printLayout:o}=this,s=Object.fromEntries(e.map(l=>[l.rowNode.id,l]));r?.forEachPinnedRow(t,(l,u)=>{const d=e[u];d&&r.getPinnedRowById(d.rowNode.id,t)===void 0&&(d.destroyFirstPass(),d.destroySecondPass()),l.id in s&&n?(e[u]=s[l.id],delete s[l.id]):e[u]=new tx(l,i,!1,!1,o)});const a=(t==="top"?r?.getPinnedTopRowCount():r?.getPinnedBottomRowCount())??0;e.length=a}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else if(this.cachedRowCtrls?.has(e)){this.cachedRowCtrls.removeRow(e);return}else{const n=r=>{const i=r[e.rowIndex];i&&i.rowNode===e&&(i.destroyFirstPass(),i.destroySecondPass(),r[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":n(this.topRowCtrls);break;case"bottom":n(this.bottomRowCtrls);break;default:n(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){const{editSvc:t}=this.beans;if(t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"})),e!=null){for(const r of e??[])this.redrawRow(r,!0);this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const n=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&Jp(this.gos),i=n?this.getRowsToRecycle():null;n||this.removeAllRowComps(!r),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:o,gos:s}=this;if(o){o.checkStickyRows();const a=o.extraTopHeight+o.extraBottomHeight;a&&this.updateContainerHeights(a)}this.recycleRows(i,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(s.get("enableRowPinning")?n:void 0),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,n=this.gos.get("suppressScrollOnNewData");t&&!n&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}let n=this.pageBounds.getCurrentPageHeight();n===0&&(n=1),t.setModelHeight(n+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(ql(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,n=this.findPositionToFocus(e);if(!n){t.focusHeaderPosition({headerPosition:{headerRowIndex:Js(this.beans)-1,column:e.column}});return}if(e.rowIndex!==n.rowIndex||e.rowPinned!=n.rowPinned){t.setFocusedCell({...n,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(ft(this.gos,{...n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,t
vendor: 4,132 bytes, line 844
844ype:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:n}=this.beans;let r=e;for(r.rowPinned==null&&t&&n&&!t.isRowInPage(r.rowIndex)&&(r={rowPinned:null,rowIndex:n.getFirstRow()});r;){if(r.rowPinned==null&&n)if(r.rowIndex<n.getFirstRow()){if(r=K1(this.beans,{rowPinned:null,rowIndex:0}),!r)return null}else r.rowIndex>n.getLastRow()&&(r={rowPinned:null,rowIndex:n.getLastRow()});const i=this.getRowByPosition(r);if(i?.isAlive())return{...i.getRowPosition(),column:e.column};r=K1(this.beans,r)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),n=t.length;for(let r=0;r<n;r++){const i=t[r].getAllCellCtrls(),o=i.length;for(let s=0;s<o;s++)e.push(i[s])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),n=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...n,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,n){const r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)}refreshCells({rowNodes:e,columns:t,force:n,suppressFlash:r}={}){const i={force:n,newData:!1,suppressFlash:r};for(const o of this.getCellCtrls(e,t))o.refreshOrDestroyCell(i);this.refreshFullWidth(e)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}getRowCtrlByNode(e){const t=e.rowIndex;if(t==null)return;const n=e.rowPinned;if(n==="top"){const i=this.topRowCtrls[t];return i?.rowNode===e?i:void 0}if(n==="bottom"){const i=this.bottomRowCtrls[t];return i?.rowNode===e?i:void 0}const r=this.rowCtrlsByRowIndex[t];return r?.rowNode===e?r:this.getStickyRowCtrlByNode(e)}getStickyRowCtrlByNode(e){const t=this.stickyRowFeature;if(t){for(const n of t.stickyTopRowCtrls)if(n.rowNode===e)return n;for(const n of t.stickyBottomRowCtrls)if(n.rowNode===e)return n}}refreshRowByNode(e){e&&this.getRowCtrlByNode(e)?.refreshRow()}refreshFullWidth(e){if(!e)return;let t=!1;for(const n of this.getRowCtrls(e)){if(!n.isFullWidth())continue;n.refreshFullWidth()||(t=!0,this.redrawRow(n.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=pF(e),n=this.getAllRowCtrls();return!e||!t?n:n.filter(r=>{const i=r.rowNode;return mF(i,t)})}getCellCtrls(e,t){let n;Ve(t)&&(n={},t.forEach(i=>{const o=this.colModel.getCol(i);Ve(o)&&(n[o.getId()]=!0)}));const r=[];for(const i of this.getRowCtrls(e))for(const o of i.getAllCellCtrls()){const s=o.column.getId();n&&!n[s]||r.push(o)}return r}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const n of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[n].rowNode.id==null&&e.push(n);this.removeRowCtrls(e);const t={};for(const n of Object.values(this.rowCtrlsByRowIndex)){const r=n.rowNode;t[r.id]=n}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const n of e){const r=this.rowCtrlsByRowIndex[n];r&&(r.destroyFirstPass(t),r.destroySecondPass()),delete this.rowCtrlsByRowIndex[n]}}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:n}=this.beans,{afterScroll:r}=e;let i;const o=this.stickyRowFeature;o&&(i=t?.getFocusCellToUseAfterRefresh()||void 0);const s=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(o){l=o.checkStickyRows();const d=o.extraTopHeight+o.extraBottomHeight;d&&this.updateContainerHeights(d)}const u=this.firstRenderedRow!==s||this.lastRenderedRow!==a;if(!(r&&!l&&!u)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,r),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(r&&!l),i!=null)){const d=t?.getFocusCellToUseAfterRefresh();i!=null&&d==null&&(n?.flushAllFrames(),this.restoreFocusedCell(i))}}removeRowCompsNotToDraw(e,t){const n={};for(const o of e)n[o]=!0;const i=Object.keys(this.rowCtrlsByRowIndex).filter(o=>!n[o]);this.removeRowCtrls(i,t)}calculateIndexesToDraw(e){const t=[];
vendor: 4,115 bytes, line 844
844for(let s=this.firstRenderedRow;s<=this.lastRenderedRow;s++)t.push(s);const n=this.beans.pagination,r=this.beans.focusSvc?.getFocusedCell()?.rowIndex;r!=null&&(r<this.firstRenderedRow||r>this.lastRenderedRow)&&(!n||n.isRowInPage(r))&&r<this.rowModel.getRowCount()&&t.push(r);const i=s=>{const a=s.rowNode.rowIndex;a==null||a===r||(a<this.firstRenderedRow||a>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(s)&&t.push(a)};for(const s of Object.values(this.rowCtrlsByRowIndex))i(s);if(e)for(const s of Object.values(e))i(s);t.sort((s,a)=>s-a);const o=[];for(let s=0;s<t.length;s++){const a=t[s],l=this.rowModel.getRow(a);l&&!l.sticky&&o.push(a)}return o}recycleRows(e,t=!1,n=!1){const r=this.calculateIndexesToDraw(e);(this.printLayout||n)&&(t=!1),this.removeRowCompsNotToDraw(r,!t);for(const i of r)this.createOrUpdateRowCtrl(i,e,t,n);if(e){const{animationFrameSvc:i}=this.beans;i?.active&&n&&!this.printLayout?i.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),n=e.isPinningRight();(this.pinningLeft!==t||n!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=n,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls()){const n=t.rowNode.rowIndex;e.push(n.toString())}this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=pF(e);return this.getAllRowCtrls().filter(n=>{if(!n.isFullWidth())return!1;const r=n.rowNode;return!(t!=null&&!mF(r,t))})}createOrUpdateRowCtrl(e,t,n,r){let i,o=this.rowCtrlsByRowIndex[e];if(o||(i=this.rowModel.getRow(e),Ve(i)&&Ve(t)&&t[i.id]&&i.alreadyRendered&&(o=t[i.id],t[i.id]=null)),!o)if(i||(i=this.rowModel.getRow(e)),Ve(i))o=this.createRowCon(i,n,r);else return;i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=o}destroyRowCtrls(e,t){const n=[];if(e){for(const r of Object.values(e))if(r){if(this.cachedRowCtrls&&r.isCacheable()){this.cachedRowCtrls.addRow(r);continue}if(r.destroyFirstPass(!t),t){const i=r.instanceId;this.zombieRowCtrls[i]=r,n.push(()=>{r.destroySecondPass(),delete this.zombieRowCtrls[i]})}else r.destroySecondPass()}}t&&(n.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const r of n)r()},DIe))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=Af(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:n}=this;e.updateOffset();let r,i;if(!n.isRowsToRender())r=0,i=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),r=t.getFirstRow(),i=t.getLastRow();else{const d=this.getRowBufferInPixels(),f=this.ctrlsSvc.getScrollFeature(),g=this.gos.get("suppressRowVirtualisation");let m,y,b;do{const T=t.getPixelOffset(),{pageFirstPixel:P,pageLastPixel:O}=t.getCurrentPagePixelRange(),D=e.divStretchOffset,F=f.getVScrollPosition(),L=F.top,N=F.bottom;g?(y=P+D,b=O+D):(y=Math.max(L+T-d,P)+D,b=Math.min(N+T+d,O)+D),this.firstVisibleVPixel=Math.max(L+T,P)+D,this.lastVisibleVPixel=Math.min(N+T,O)+D,m=this.ensureAllRowsInRangeHaveHeightsCalculated(y,b)}while(m);let w=n.getRowIndexAtPixel(y),C=n.getRowIndexAtPixel(b);const E=t.getFirstRow(),A=t.getLastRow();w<E&&(w=E),C>A&&(C=A),r=w,i=C}const o=ki(this.gos,"normal"),s=this.gos.get("suppressMaxRenderedRowRestriction"),a=Math.max(this.getRowBuffer(),500);o&&!s&&i-r>a&&(i=r+a);const l=r!==this.firstRenderedRow,u=i!==this.lastRenderedRow;(l||u)&&(this.firstRenderedRow=r,this.lastRenderedRow=i,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:r,lastRow:i}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,nh(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRen
vendor: 5,401 bytes, line 844
844deredRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const n=this.pinnedRowModel?.ensureRowHeightsValid(),r=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:i,rowModel:o}=this,s=o.ensureRowHeightsValid(e,t,i.getFirstRow(),i.getLastRow());return(s||r)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),r||s||n?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const r=e.rowNode,i=this.focusSvc.isRowFocused(r.rowIndex,r.rowPinned),o=this.editSvc?.isEditing(e),s=r.detail;return i||o||s?!!this.isRowPresent(r):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,n){const r=this.cachedRowCtrls?.getRow(e)??null;if(r)return r;const i=n&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new tx(e,this.beans,t,i,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(r=>r.rowNode),t=this.getStickyTopRowCtrls().map(r=>r.rowNode),n=this.getStickyBottomRowCtrls().map(r=>r.rowNode);return[...t,...e,...n]}getRowByPosition(e){let t;const{rowIndex:n}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[n];break;case"bottom":t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find(r=>r.rowNode.rowIndex===n)||null,t||(t=this.getStickyBottomRowCtrls().find(r=>r.rowNode.rowIndex===n)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const r=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!r}},IIe=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(e?.id==null)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode!=e?null:t):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){const t=e.id,n=this.entriesMap[t];delete this.entriesMap[t],Zl(this.entriesList,n)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],Zl(this.entriesList,e)}getEntries(){return this.entriesList}};function pF(e){if(!e)return;const t={top:{},bottom:{},normal:{}};for(const n of e){const r=n.id;switch(n.rowPinned){case"top":t.top[r]=n;break;case"bottom":t.bottom[r]=n;break;default:t.normal[r]=n;break}}return t}function mF(e,t){const n=e.id;switch(e.rowPinned){case"top":return t.top[n]!=null;case"bottom":return t.bottom[n]!=null;default:return t.normal[n]!=null}}var _Ie=class extends Se{constructor(){super(...arguments),this.beanName="rowNodeSorter",this.accentedSort=!1,this.primaryColumnsSortGroups=!1,this.pivotActive=!1}postConstruct(){this.firstLeaf=hr(this.gos)?Z1:FIe,this.addManagedPropertyListeners(["accentedSort","autoGroupColumnDef","treeData"],this.updateOptions.bind(this));const e=this.updatePivotModeState.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,columnPivotChanged:e}),this.updateOptions(),e()}updateOptions(){this.accentedSort=!!this.gos.get("accentedSort"),this.primaryColumnsSortGroups=Ed(this.gos)}updatePivotModeState(){this.pivotActive=this.beans.colModel.isPivotActive()}doFullSortInPlace(e,t){return e.sort((n,r)=>this.compareRowNodes(t,n,r))}compareRowNodes(e,t,n){if(t===n)return 0;const r=this.accentedSort;for(let i=0,o=e.length;i<o;++i){const s=e[i],a=s.sort==="desc",l=s.column;let u=this.getValue(t,l),d=this.getValue(n,l),f;const g=this.getComparator(s,t);if(g?f=g(u,d,t,n,a):(s.type==="absolute"&&(u=Pj(u),d=Pj(d)),f=txe(u,d,r)),f)return s.sort==="asc"?f:-f}return 0}getComparator(e,t){const n=e.column.colDef,r=this.getComparatorFromColDef(n,e);if(r)return r;if(!n.showRowGroup)return;const i=!t.group&&n.field;if(!i)return;const o=this.beans.colModel.getColDefCol(i);if(o)return this.getComparatorFromColDef(o.colDef,e)}getComparatorFromColDef(e,t){const n=e.comparator;if(n!=null)return typeof n=="object"?n[hc(t.type)]:n}getValue(e,t){const n=this.beans;if(this.primaryColumnsSortGroups){if(e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.colDef.showRowGroup)return}const r=n.valueSvc.getValue(t,e,"data");if(t.colDef.allowFormula){const i=n.formula;if(i?.isFormula(r))return i.resolveValue(t,e)}return r}getGroupDataValue(e,t){if(wte(this.gos,this.pivotActive)){const r=this.firstLeaf(e);return r&&this.beans.valueSvc.getValue(t,r,"data")}const n=this.beans.showRowGroupCols?.getShowRowGroupCol(t.getId());return n?e.groupData?.[n.getId()]:void 0}},FIe=e=>{if(e.data)return e;let t=e.childrenAfterGroup;for(;t?.length;){const n=t[0];if(n.data)return n;t=n.childrenAfterGroup}},Pj=e=>{if(!e)return e;if(typeof e=="bigint")return e<0n?-e:e;const t=Number(e);return isNaN(t)?e:Math.abs(t)};function kIe(e){e.sortSvc?.onSortChanged("api")}var Gh=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),LIe={tag:"span",cls:"ag-sort-indicator-container",children:[Gh("Order","order"),Gh("Asc","ascending-icon"),Gh("Desc","descending-icon"),Gh("Mixed","mixed-icon"),Gh("AbsoluteAsc","absolute-ascending-icon"),Gh("AbsoluteDesc","absolute-descending-icon"),Gh("None","none-icon")]},FN=class extends qn{constructor(e){super(),this.eSortOrder=Ye,this.eSortAsc=Ye,this.eSortDe
844sc=Ye,this.eSortMixed=Ye,this.eSortNone=Ye,this.eSortAbsoluteAsc=Ye,this.eSortAbsoluteDesc=Ye,e||this.setTemplate(LIe)}attachCustomElements(e,t,n,r,i,o,s){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=i,this.eSortAbsoluteAsc=o,this.eSortAbsoluteDesc=s}setupSort(e,t=!1,n){if(this.column=e,this.suppressOrder=t,this.getSortDefOverride=n,this.setupMultiSortIndicator(),!e.isSortable()&&!e.colDef.showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("sortAbsoluteAscending",this.eSortAbsoluteAsc,e),this.addInIcon("sortAbsoluteDescending",this.eSortAbsoluteDesc,e);const r=this.updateIcons.bind(this),i=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",r),this.addManagedEventListeners({newColumnsLoaded:r,sortChanged:i,columnRowGroupChanged:i}),this.onSortChanged()}addInIcon(e,t,n){if(t==null)return;const r=Ko(e,this.beans,n);r&&t.appendChild(r)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:n,eSortAbsoluteDesc:r,eSortNone:i,column:o,gos:s,beans:a}=this,l=DEe(o,a,this.getSortDefOverride),u=l.isDefaultSortAllowed,d=l.isAbsoluteSortAllowed,{isAbsoluteSort:f,isDefaultSort:g,isAscending:m,isDescending:y,direction:b}=l;if(e&&Cn(e,m&&g&&u,{skipAriaHidden:!0}),t&&Cn(t,y&&g&&u,{skipAriaHidden:!0}),i){const w=!o.colDef.unSortIcon&&!s.get("unSortIcon");Cn(i,!w&&!b,{skipAriaHidden:!0})}n&&Cn(n,m&&f&&d,{skipAriaHidden:!0}),r&&Cn(r,y&&f&&d,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:n}=this;this.addInIcon("sortUnSort",e,t);const r=t.colDef.showRowGroup;Ed(n)&&r&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:n}=this;if(e){const r=t.sortSvc.getDisplaySortForColumn(n)?.direction==="mixed";Cn(e,r,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:n}}=this;if(!e)return;const r=n.getColumnsWithSortingOrdered(),i=n.getDisplaySortIndexForColumn(t)??-1,o=r.some(a=>n.getDisplaySortIndexForColumn(a)??!1),s=i>=0&&o;Cn(e,s,{skipAriaHidden:!0}),i>=0?e.textContent=(i+1).toString():Jo(e)}refresh(){this.onSortChanged()}},NIe={selector:"AG-SORT-INDICATOR",component:FN},BIe=class extends Se{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,n){const r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)}progressSortFromEvent(e,t){const r=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,r,"uiColumnSorted")}setSortForColumn(e,t,n,r){const{gos:i,showRowGroupCols:o}=this.beans,s=Ed(i);let a=[e];if(s&&e.colDef.showRowGroup){const f=o?.getSourceColumnsForGroupColumn?.(e)?.filter(g=>g.isSortable());f&&(a=[e,...f])}for(const d of a)this.setColSort(d,t,r);const l=(n||i.get("alwaysMultiSort"))&&!i.get("suppressMultiSort"),u=[];if(!l){const d=this.clearSortBarTheseColumns(a,r);u.push(...d)}this.updateSortIndex(e),u.push(...a),this.dispatchSortChangedEvents(r,u)}updateSortIndex(e){const{gos:t,colModel:n,showRowGroupCols:r}=this.beans,i=Ed(t),o=r?.getShowRowGroupCol(e.getId()),s=i&&o||e,a=this.getColumnsWithSortingOrdered();n.forAllCols(d=>this.setColSortIndex(d,null));const l=a.filter(d=>i&&d.colDef.showRowGroup?!1:d!==s);(s.getSortDef()?[...l,s]:l).forEach((d,f)=>this.setColSortIndex(d,f))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{if(t.getSortDef())return e=!0,!0}),e}dispatchSortChangedEvents(e,t){const n={type:"sortChanged",source:e};t&&(n.columns=t),this.eventSvc.dispatchEvent(n)}clearSortBarTheseColumns(e,t){const n=[];return this.beans.colModel.forAllCols(r=>{if(!e.includes(r)){r.getSortDef()&&n.push(r);const i=na();this.setColSort(r,i,t)}}),n}getNextSortDirection(e,t){const n=e.getSortingOrder(),r=t===void 0?e.getSortDef():na(t);let o=n.findIndex(s=>i1(s,r))+1;return o>=n.length&&(o=0),na(n[o])}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:n,rowGroupColsSvc:r}=this.beans;let i=[];if(t.forAllCols(u=>{u.getSortDef()&&i.push(u)}),t.pivotMode){const u=Ed(e);i=i.filter(d=>{const f=!!d.aggFunc,g=!d.primary,m=u?n?.getShowRowGroupCol(d.getId()):d.colDef.showRowGroup;return f||g||m})}const o=r?.columns.filter(u=>!!u.getSortDef())??[],s={};
844i.forEach((u,d)=>s[u.getId()]=d),i.sort((u,d)=>{const f=u.getSortIndex(),g=d.getSortIndex();if(f!=null&&g!=null)return f-g;if(f==null&&g==null){const m=s[u.getId()],y=s[d.getId()];return m>y?1:-1}else return g==null?-1:1});const a=Ed(e)&&!!o.length;a&&(i=[...new Set(i.map(u=>n?.getShowRowGroupCol(u.getId())??u))]);const l=new Map;if(i.forEach((u,d)=>l.set(u,d)),a)for(const u of o){const d=n.getShowRowGroupCol(u.getId());l.set(u,l.get(d))}return l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}collectSortItems(e=!1){const t=[],n=this.getColumnsWithSortingOrdered();for(const r of n){const i=r.getSortDef()?.direction;if(!i)continue;const o=hc(r.getSortDef()?.type),s={sort:i,type:o};e?s.colId=r.getId():s.column=r,t.push(s)}return t}getSortModel(){return this.collectSortItems(!0)}getSortOptions(){return this.collectSortItems()}canColumnDisplayMixedSort(e){const t=Ed(this.gos),n=!!e.colDef.showRowGroup;return t&&n}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSortDef();const r=e.colDef.field!=null||!!e.colDef.valueGetter?[e,...t]:t,i=r[0].getSortDef();return r.every(s=>i1(s.getSortDef(),i))?i:{type:hc(e.getSortDef()?.type),direction:"mixed"}}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t){const n=()=>{const{type:r,direction:i}=na(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc",i==="asc"),e.toggleCss("ag-header-cell-sorted-desc",i==="desc"),e.toggleCss("ag-header-cell-sorted-abs-asc",r==="absolute"&&i==="asc"),e.toggleCss("ag-header-cell-sorted-abs-desc",r==="absolute"&&i==="desc"),e.toggleCss("ag-header-cell-sorted-none",!i),t.colDef.showRowGroup){const a=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(l=>i==l.getSortDef()?.direction);e.toggleCss("ag-header-cell-sorted-mixed",a)}};e.addManagedEventListeners({sortChanged:n,columnPinned:n,columnRowGroupChanged:n,displayedColumnsChanged:n})}initCol(e){const{sortIndex:t,initialSortIndex:n}=e.colDef,r=Dte(e.colDef);r&&e.setSortDef(r),t!==void 0?t!==null&&(e.sortIndex=t):n!==null&&(e.sortIndex=n)}updateColSort(e,t,n){t!==void 0&&this.setColSort(e,na(t),n)}setColSort(e,t,n){i1(e.getSortDef(),t)||(e.setSortDef(t),e.dispatchColEvent("sortChanged",n)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new FN(e)}getSortIndicatorSelector(){return NIe}},ere={moduleName:"Sort",version:Le,beans:[BIe,_Ie],apiFunctions:{onSortChanged:kIe},userComponents:{agSortIndicator:FN},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},HIe=class extends Se{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){const{colModel:t,rowModel:n}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),n.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),Wf(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,nm(e.source))}}};function VIe(e){e.valueCache?.expire()}function zIe(e,t){const{colKey:n,rowNode:r,useFormatter:i,from:o="edit"}=t,s=e.colModel.getColDefColOrCol(n);if(!s)return null;const a=e.valueSvc.getValueForDisplay({column:s,node:r,includeValueFormatted:i,from:o});return i?a.valueFormatted??Um(a.value):a.value}var GIe="paste",jIe=class extends Se{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.deferredDepth=0,this.batchedPath=null,this.batchedNodes=null}destroy(){super.destroy(),this.batchedPath=null,this.batchedNodes=null}postConstruct(){this.csrm=uu(this.beans),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}beginDeferred(){this.deferredDepth++}endDeferred(){if(this.deferredDepth===0||--this.deferredDepth>0)return;const e=this.batchedPath,t=this.batchedNodes;this.batchedPath=null,this.batchedNodes=null,e&&this.csrm?.doAggregate(e);const{rowRenderer:n}=this.beans;if(t)for(const r of t)Oj(n,r);if(e){const r=e.getSortedRows();for(let i=0,o=r.length;i<o;++i)Oj(n,r[i])}(this.batchedPath||this.batchedNodes)&&(this.deferredDepth=1,this.endDeferred())}onCellValueChanged(e){const{gos:t,rowModel:n,changedPathFactory:r}=this.beans;if(e.source===GIe||t.get("suppressChangeDetection")||!n.rootNode)return;const i=e.node.primaryRow;if(this.csrm){let o=this.batchedPath;o||(o=r?.newPath(t.get("aggregateOnlyChangedColumns"))??null,this.batchedPath=o);let s=i;i.group||((this.batchedNodes??(this.batchedNodes=new Set)).add(i),s=i.parent),o?.addCell(s,e.column.getColId())}else(this.batchedNodes??(this.batchedNodes=new Set)).add(i);this.deferredDepth===0&&(this.deferredDepth=1,this.endDeferred())}},Oj=(e,t)=>{const{sibling:n,pinnedSibling:r}=t;e.refreshRowByNode(t),e.refreshRowByNode(n),e.refreshRowByNode(r),e.refreshRowByNode(n?.pinnedSibling),e.refreshRowByNode(r?.sibling)},UIe=class extends Se{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);on(15,{expression:e})}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(n){return on(16,{expression:e,params:t,e:n}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const n=this.createFunctionBody(e),r=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",n);return t[e]=r,r}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},WIe=class extends Se{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0,this.neverExpires=!1}postConstruct(){this.neverExpires=this.gos.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){const r=this.cacheVersion;e.__cacheVersion!==r&&(e.__cacheVersion=r,e.__cacheData={}),e.__cacheData[t]=n}getValue(e,t){if(e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]}},$Ie={moduleName:"ValueCache",version:Le,beans:[WIe],apiFunctions:{expireValueCache:VIe}},qIe={moduleName:"Expression",version:Le,beans:[UIe]},KIe={moduleName:"ChangeDetection",version:Le,beans:[jIe]},YIe={moduleName:"CellApi",version:Le,apiFunctions:{getCellValue:zIe}},XIe=class extends Se{constructor(){super(...arguments),this.beanName="valueSvc",this.execute
844ValueGetter=this.executeValueGetterWithoutValueCache,this.isTreeData=!1,this.isSsrm=!1,this.cellExpressions=!1,this.groupSuppressBlankHeader=!1,this.editSvc=void 0,this.valueCache=void 0,this.rowGroupColsSvc=void 0,this.expressionSvc=void 0,this.dataTypeSvc=void 0,this.formulaDataSvc=void 0}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.formulaDataSvc=e.formulaDataSvc,this.rowGroupColsSvc=e.rowGroupColsSvc,this.init()}init(){const e=this.gos;this.isSsrm=Wm(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.groupSuppressBlankHeader=e.get("groupSuppressBlankHeader"),this.executeValueGetter=this.valueCache&&e.get("valueCache")?this.executeValueGetterWithValueCache:this.executeValueGetterWithoutValueCache}postConstruct(){this.init();const e=t=>this.callColumnCellValueChangedHandler(t);this.eventSvc.addListener("cellValueChanged",e,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",e,!0)),this.addManagedPropertyListener("treeData",t=>this.isTreeData=t.currentValue),this.addManagedPropertyListener("groupSuppressBlankHeader",t=>this.groupSuppressBlankHeader=t.currentValue)}getValueForDisplay(e){const t=this.beans,n=e.column,r=e.node,i=t.showRowGroupColValueSvc,o=!n&&r.group,s=!this.isTreeData||r.footer;if(i&&s&&(o||n?.colDef.showRowGroup)){const g=i.getGroupValue(r,n,this.displayIgnoresAggData(r));return g==null?{value:null,valueFormatted:null}:{value:g.value,valueFormatted:e.includeValueFormatted?i.formatAndPrefixGroupColValue(g,n,e.exporting):null}}if(!n)return{value:r.key,valueFormatted:null};let a=this.getValue(n,r,e.from,this.displayIgnoresAggData(r)),l=a;const u=t.formula,d=n.colDef;d.allowFormula&&u?.isFormula(a)&&(e.useRawFormula?(a=u.normaliseFormula(a,!0),l=u.resolveValue(n,r)):(a=u.resolveValue(n,r),l=a));const f=e.includeValueFormatted&&!(e.exporting&&d.useValueFormatterForExport===!1);return{value:a,valueFormatted:f?this.formatValue(n,r,l):null}}getValue(e,t,n,r=!1){if(!t)return;const i=e.colDef,o=t.group;if(!o&&!t.rowPinned){const l=i.pivotValueColumn;l&&(e=l)}const s=this.editSvc;if(s&&n!=="data"){const l=s.getPendingEditValue(t,e,n);if(l!==void 0)return l}let a=this.resolveValue(e,t,r,o);if(a===void 0){if(o){const l=i.showRowGroup;if(typeof l=="string"){const u=this.rowGroupColsSvc?.getColumnIndex(l);if(u!=null&&u>t.level)return null}}return}if(this.cellExpressions&&ixe(a)){const l=a.substring(1);a=this.executeValueGetter(l,t.data,e,t)}return a}displayIgnoresAggData(e){return!e.group||e.footer||e.level===-1||!e.sibling||this.groupSuppressBlankHeader||e.leafGroup&&this.colModel.pivotMode?!1:!!e.expanded}resolveValue(e,t,n,r){const i=e.colDef,o=e.colId;if(!r&&i.allowFormula){const C=this.beans.formula?.getDataSourceFormula(t,e);if(C!==void 0)return C}const s=r&&!n?t.aggData:void 0,a=this.isTreeData;if(a&&s?.[o]!==void 0)return s[o];const l=t.data,u=i.field,d=i.valueGetter;if(a){if(d)return this.executeValueGetter(d,l,e,t);if(u&&l)return e.fieldContainsDots?ob(l,u):l[u]}const f=t.groupData;if(f&&o in f)return f[o];if(s?.[o]!==void 0)return s[o];
844const g=i.showRowGroup,m=typeof g!="string"||!r,y=this.isSsrm,b=y&&n&&!!i.aggFunc;if(d&&!b)return m?this.executeValueGetter(d,l,e,t):void 0;if(y&&t.footer&&t.field&&(g===!0||g===t.field)){if(!l)return;const C=t.field;return e.fieldContainsDots?ob(l,C):l[C]}if(u&&l&&!b)return m?e.fieldContainsDots?ob(l,u):l[u]:void 0}parseValue(e,t,n,r){const i=e.colDef;if(i.allowFormula&&this.beans.formula?.isFormula(n))return n;const o=i.valueParser;if(Ve(o)){const s=ft(this.gos,{node:t,data:t?.data,oldValue:r,newValue:n,colDef:i,column:e});return typeof o=="function"?o(s):this.expressionSvc?.evaluate(o,s)}return n}getDeleteValue(e,t){return Ve(e.colDef.valueParser)?this.parseValue(e,t,"",this.getValueForDisplay({column:e,node:t,from:"edit"}).value)??null:null}formatValue(e,t,n,r,i=!0){const{expressionSvc:o}=this.beans;let s=null,a;const l=e.colDef;if(r?a=r:i&&(a=l.valueFormatter),a){const u=t?t.data:null,d=ft(this.gos,{value:n,node:t,data:u,colDef:l,column:e});typeof a=="function"?s=a(d):s=o?o.evaluate(a,d):null}else if(l.refData)return l.refData[n]||"";return s==null&&Array.isArray(n)&&(s=n.join(", ")),s}setValue(e,t,n,r){const i=t.colDef;if(!e.data&&this.canCreateRowNodeData(e,i)&&(e.data={}),!this.isSetValueSupported(t,e,n,i))return!1;const o=this.getValue(t,e,"data"),s=ft(this.gos,{node:e,data:e.data,oldValue:o,newValue:n,colDef:i,column:t});let a=!1;if(e.data){const u=this.handleExternalFormulaChange({column:t,eventSource:r,newValue:n,setterParams:s,rowNode:e});if(u!==null)return u;a=this.computeValueChange({column:t,rowNode:e,newValue:n,params:s,rowData:e.data,valueSetter:i.valueSetter,field:i.field})??!0}const l=this.beans.changeDetectionSvc;l?.beginDeferred();try{if(e.group){const u=this.beans.rowGroupingEditValueSvc?.setGroupDataValue(e,t,n,o,r,a||n!==o);if(u!==void 0)return!a&&!u?!1:this.finishValueChange(e,t,s,r,n)}return a?this.finishValueChange(e,t,s,r):!1}finally{l?.endDeferred()}}canCreateRowNodeData(e,t){return e.group?!(t.groupRowValueSetter!=null||t.groupRowEditable!=null||t.pivotValueColumn):!0}finishValueChange(e,t,n,r,i){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const o=i===void 0?this.getValue(t,e,"data"):i;return this.dispatchCellValueChangedEvent(e,n,o,r),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,n,o,r),!0}isSetValueSupported(e,t,n,r){const{field:i,valueSetter:o}=r,s=this.beans.formula,a=e.colDef.allowFormula&&s?.isFormula(n),l=!!this.formulaDataSvc?.hasDataSource();return rr(i)&&rr(o)&&!(l&&a)?t.group&&(r.groupRowValueSetter||r.groupRowEditable)?!0:(Me(17),!1):this.dataTypeSvc&&!this.dataTypeSvc.checkType(e,n)?(Me(135),!1):!0}handleExternalFormulaChange(e){const{column:t,rowNode:n,newValue:r,eventSource:i,setterParams:o}=e,s=this.beans.formula,a=this.formulaDataSvc;if(!t.colDef.allowFormula||!a?.hasDataSource())return null;const l=s?.isFormula(r),u=a.getFormula({column:t,rowNode:n});if(l){if(!(u!==r))return!1;a.setFormula({column:t,rowNode:n,formula:r});const f=s?.resolveValue(t,n),g=t.colDef;if(Ve(g.valueSetter)||!rr(g.field)){const m={...o,newValue:f};this.computeValueChange({column:t,rowNode:n,newValue:f,params:m,rowData:n.data,valueSetter:g.valueSetter,field:g.field})}return this.finishValueChange(n,t,o,i)}return u!==void 0&&a.setFormula({column:t,rowNode:n,formula:void 0}),null}computeValueChange(e){const{valueSetter:t,params:n,rowData:r,field:i,column:o,newValue:s}=e;return Ve(t)?typeof t=="function"?t(n):this.expressionSvc?.evaluate(t,n):!!r&&this.setValueUsingField(r,i,s,o.fieldContainsDots)}dispatchCellValueChangedEvent(e,t,n,r){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:n,newRawValue:t.
844newValue,value:n,source:r})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t(e)})}setValueUsingField(e,t,n,r){if(!t)return!1;let i=!1;if(!r)i=e[t]===n,i||(e[t]=n);else{const o=t.split(".");let s=e;for(;o.length>0&&s;){const a=o.shift();o.length===0?(i=s[a]===n,i||(s[a]=n)):s=s[a]}}return!i}executeValueGetterWithValueCache(e,t,n,r){const i=n.colId,o=this.valueCache.getValue(r,i);if(o!==void 0)return o;const s=this.executeValueGetterWithoutValueCache(e,t,n,r);return this.valueCache.setValue(r,i,s),s}executeValueGetterWithoutValueCache(e,t,n,r){const i=ft(this.gos,{data:t,node:r,column:n,colDef:n.colDef,getValue:s=>this.getValueCallback(r,s)});let o;return typeof e=="function"?o=e(i):o=this.expressionSvc?.evaluate(e,i),o}getValueCallback(e,t){const n=this.colModel.getColDefColOrCol(t);return n?this.getValue(n,e,"data"):null}getKeyForNode(e,t){const n=this.getValue(e,t,"data"),r=e.colDef.keyCreator;let i=n;if(r){const o=ft(this.gos,{value:n,colDef:e.colDef,column:e,node:t,data:t.data});i=r(o)}return typeof i=="string"||i==null||(i=String(i),i==="[object Object]"&&Me(121)),i}},ZIe={moduleName:"CommunityCore",version:Le,beans:[DMe,vTe,tDe,rRe,OIe,qPe,EMe,QMe,eOe,J2e,Q2e,MIe,XIe,PMe,SMe,OMe,rDe,HIe,KOe,YOe,c2e],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:yTe,destroy:bTe,isDestroyed:wTe,getGridOption:CTe,setGridOption:STe,updateGridOptions:fne,isModuleRegistered:xTe},dependsOn:[$Oe,xPe,IPe,ere,s2e,YPe,a2e,PIe,KIe,u2e,Z2e,rIe,sIe,f2e,QOe,qOe,qIe,cOe,uIe]};function vF(e){const{inputValue:t,allSuggestions:n,hideIrrelevant:r,maxSuggestions:i}=e;let o=(n??[]).map((l,u)=>({value:l,relevance:QIe(t,l),idx:u}));o.sort((l,u)=>l.relevance-u.relevance),r&&(o=o.filter(l=>l.relevance<Math.max(l.value.length,t.length))),i!=null&&i>0&&(o=o.slice(0,i));const s=[],a=[];
vendor: 4,378 bytes, lines 844-863
844for(const l of o)s.push(l.value),a.push(l.idx);return{values:s,indices:a}}function QIe(e,t){const n=e.length,r=t.length;if(r===0)return n||0;let i=e.toLocaleLowerCase(),o=t.toLocaleLowerCase(),s;if(n>0){const f=o.indexOf(i);if(f>=0)return f*.01}e.length<t.length&&(s=o,o=i,i=s,s=t,t=e,e=s);let a=new Uint16Array(r+1),l=new Uint16Array(r+1);for(let f=0;f<=r;f++)a[f]=f;let u=0;const d=n/2-10;for(let f=1;f<=n;f++){const g=e[f-1],m=i[f-1];l[0]=f;for(let y=1;y<=r;y++){const b=t[y-1],w=o[y-1];if(m!==w){const C=l[y-1],E=a[y],A=a[y-1];let T=C<E?C:E;A<T&&(T=A),l[y]=T+1|0;continue}if(u++,g===b&&u++,f>1&&y>1){const C=e[f-2],E=i[f-2],A=t[y-2],T=o[y-2];E===T&&(u++,C===A&&u++)}f<d&&u++,l[y]=a[y-1]}s=a,a=l,l=s}return a[r]/(u+1)}var tre={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingEdit:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,Toolbar:1,TreeData:1,ViewportRowModel:1,Formula:1,Notes:1},aD=["TextFilter","NumberFilter","BigIntFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],JIe={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],CsrmHierarchy:["RowGrouping","Pivot","TreeData"],CsrmGroupStages:["RowGrouping","Pivot","TreeData"],ColumnFilter:aD,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...aD,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...aD,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},e_e={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function t_e(e,t){const n=[];for(const r of Array.isArray(e)?e:[e]){const i=JIe[r];if(i)for(const o of i){const s=e_e[o];(!s||s===t)&&n.push(o)}else n.push(r)}return n}var nre=(e,t,n)=>n?`${["import { AgGridProvider, AgGridReact } from 'ag-grid-react';",...e].join(` 845`)} 846 847const modules = [ ${t} ]; 848 849function App() { 850 return ( 851 <AgGridProvider modules={modules}> 852 <AgGridReact /* ... props */ /> 853 </AgGridProvider> 854 ); 855}`:`${e.join(` 856`)} 857 858ModuleRegistry.registerModules([ ${t} ]);`,rre=e=>{const t=e!==void 0;return`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule: 859 860${nre([`import { ${t?"":"ModuleRegistry, "}AllCommunityModule } from 'ag-grid-community';`],"AllCommunityModule",t)} 861`},n_e=(e,t)=>{const n=e.map(o=>`import { ${sb(o)} } from '${tre[o]?"ag-grid-enterprise":"ag-grid-community"}';`);e.some(o=>o==="IntegratedCharts"||o==="Sparklines")&&n.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';");const i=e.map(o=>sb(o,!0)).join(", ");return t||n.unshift("import { ModuleRegistry } from 'ag-grid-community';"),`${nre(n,i,t)} 862 863For more info see: ${Qp}/modules/`};
vendor: 18,526 bytes, lines 863-885
863function sb(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function r_e(e,t){const n=t.filter(o=>o==="IntegratedCharts"||o==="Sparklines");let r="";return!globalThis?.agCharts&&n.length>0?r=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise. 864`:t.some(o=>tre[o])&&(r=r+`Unable to use ${e} as that requires the ag-grid-enterprise script to be included. 865`),r}function ire({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var lD=({reasonOrId:e,moduleName:t,gridScoped:n,gridId:r,rowModelType:i,additionalText:o,isUmd:s,usesAgGridProvider:a})=>{const l=t_e(t,i),u=typeof e=="string"?e:a_e[e];if(s)return r_e(u,l);const d=l.filter(m=>m==="IntegratedCharts"||m==="Sparklines"),f=d.length>0?`${d.map(m=>sb(m)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${u} as ${l.length>1?"one of "+l.map(m=>sb(m)).join(", "):sb(l[0])} is not registered${n?" for gridId: "+r:""}. ${f} Check if you have registered the module: 866`} 867${n_e(l,a)}`+(o?` 868 869${o}`:"")},Dj=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'. 870 871import { AgChartsEnterpriseModule } from 'ag-charts-enterprise'; 872import { ModuleRegistry } from 'ag-grid-community'; 873import { ${e} } from 'ag-grid-enterprise'; 874 875ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]); 876 `,i_e=e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,o_e={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:n})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",n],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions: 877 "alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed. 878 Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid. 879 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e} 880${i_e(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e,inferred:t,colId:n})=>{const r=t?" (inferred)":"",i=n?` for column "${n}"`:"";return`Cell data type is "object"${r} but no Value ${e} has been provided${i}. Please either provide an object data type definition with a Value ${e}, or set: 881 - "colDef.value${e}"${t&&e==="Parser"?` 882 - "colDef.cellDataType = 'object'"`:""}`},49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:n,pageSizeOptions:r})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${n?"":" the default"} paginationPageSizeSelector=[${r?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:n,jsComps:r})=>{const i=[],o=[...Object.keys(n??[]).filter(a=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(a)),...Object.keys(r??[]).filter(a=>!!r[a])],s=vF({inputValue:t,allSuggestions:o,hideIrrelevant:!0,maxSuggestions:4}).values;return i.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components. 883`),s.length>0&&i.push(` Did you mean: [${s.slice(0,3)}]? 884`),i.push("If using a custom component check it has been registered correctly."),i},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${Qp}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({inputValue:e,allSuggestions:t})=>{const n=vF({inputValue:e,allSuggestions:t,hideIrrelevant:!0,maxSuggestions:4}).values;return[`Could not find '${e}' aggregate function. It was configured as "aggFunc: '${e}'" but it wasn't found in the list of registered aggregations.`,n.length>0?` Did you mean: [${n.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join(` 885`)},110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel
885()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables. 886 Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:n})=>["duplicate group keys for row data, keys should be unique",e,t,...n??[]],187:({rowId:e,firstData:t,secondData:n})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",n],188:e=>`getRowId callback must be provided for Server Side Row Model ${e?.feature||"selection"} to work correctly.`,189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:lD,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${Qp}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did
886you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. 887Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>
vendor: 6,625 bytes, lines 887-890
887`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows. 888Your code probably called a grid API method while the grid was in the render stage. 889To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). 890To see what part of your code that caused the refresh check this stacktrace.`,253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>Dj("IntegratedChartsModule"),258:()=>Dj("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:n,gridId:r,rowModelType:i,usesAgGridProvider:o})=>lD({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:im[t],gridId:r,gridScoped:n,rowModelType:i,usesAgGridProvider:o}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${Qp}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>rre(),273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children.";break}return t},275:ire,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`,293:()=>"The grid was initialised detached from the DOM and was then inserted into a Shadow Root. Theme styles are probably broken. Pass the themeStyleContainer grid option to let the grid know where in the document to insert theme CSS.",294:()=>"When using the `agRichSelectCellEditor` setting `filterListAsync = true` requires `allowTyping = true` and the `values()` callback must return a Promise of filtered values.",295:({blockedService:e})=>`colDef.allowFormula is not supported with ${e}. Formulas has been turned off.`,296:()=>"Since v35, `api.hideOverlay()` does not hide the overlay when `activeOverlay` is set. Set `activeOverlay=null` instead.",297:()=>'`api.hideOverlay()` does not hide the no matching rows overlay as it is only controlled by grid state. Set `suppressOverlays=["noMatchingRows"] to not show it.',298:()=>"Columns Tool Panel 'buttons' requires 'apply' to enable Deferred Updates.",301:({key:e})=>`Toolbar item '${e}' is missing the 'toolbarItem' property and will not be rendered.`,302:({itemName:e,moduleName:t,gridScoped:n,gridId:r,rowModelType:i})=>lD({reasonOrId:`Toolbar item '${e}'`,moduleName:t,gridId:r,gridScoped:n,rowModelType:i,additionalText:"The item will not be rendered."}),303:({key:e})=>`Multiple toolbar items share the explicit key '${e}'. Only the first item is rendered.`};function s_e(e,t){const n=o_e[e];if(!n)return[`Missing error text for error id ${e}!`];const r=n(t),o=`
891See ${gte(e,t)}`;return Array.isArray(r)?r.concat(o):[r,o]}var a_e={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},ore=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.usesAgGridProvider=void 0,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${ite}/${this.frameworkName}-data-grid`,tEe(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}},Mj=new WeakMap,Ij=new WeakMap,l_e=1,u_e=class{create(e,t,n,r,i,o){const s=rN.applyGlobalGridOptions(t),a=s.gridId??String(l_e++),l=this.getRegisteredModules(i,a,s.rowModelType),u=this.createBeansList(s.rowModelType,l,a,i?.frameworkOverrides?.usesAgGridProvider),d=this.createProvidedBeans(e,s,i);if(!u)return;const g={providedBeanInstances:d,beanClasses:u,id:a,beanInitComparator:uAe,beanDestroyComparator:cAe,derivedBeans:[aAe],destroyCallback:()=>{Ij.delete(y),Mj.delete(e),Yxe(a),o?.()}},m=new sAe(g);this.registerModuleFeatures(m,l),n(m),m.getBean("syncSvc").start(),r?.(m);const y=m.getBean("gridApi");return Mj.set(e,y),Ij.set(y,e),y}getRegisteredModules(e,t,n){return Fb(ZIe,void 0,!0),e?.modules?.forEach(r=>Fb(r,t)),Xxe(t,_j(n))}registerModuleFeatures(e,t){const n=e.getBean("registry"),r=e.getBean("apiFunctionSvc");for(const i of t){n.registerModule(i);const o=i.apiFunctions;if(o){const s=Object.keys(o);for(const a of s)r?.addFunction(a,o[a])}}}createProvidedBeans(e,t,n){let r=n?n.frameworkOverrides:null;rr(r)&&(r=new ore);const i={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:n?n.globalListener:null,globalSyncListener:n?n.globalSyncListener:null,frameworkOverrides:r,withinStudio:n?.withinStudio};return n?.providedBeanInstances&&Object.assign(i,n.providedBeanInstances),i}createBeansList(e,t,n,r){const i={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},o=_j(e),s=i[o];if(!s){Hy(201,{rowModelType:o},`Unknown rowModelType ${o}.`);return}if(!Jxe()){Hy(272,void 0,rre(r));return}if(!e){const l=Object.entries(i).filter(([u,d])=>K_(d,n,u));if(l.length==1){const[u,d]=l[0];if(u!==o){const f={moduleName:d,rowModelType:u};Hy(275,f,ire(f));return}}}if(!K_(s,n,o)){const l=ute(),u=`rowModelType = '${o}'`,d=`Missing module ${s}Module for rowModelType ${o}.`;Hy(200,{reasonOrId:u,moduleName:s,gridScoped:iN(),gridId:n,rowModelType:o,isUmd:l},d);return}const a=new Set;for(const l of t)for(const u of l.beans??[])a.add(u);return Array.from(a)}};function _j(e){return e??"clientSide"}function c_e(e,t=!1){const n=[],r=[],i=[],o=[],s=[],a=[],l=[],u=[],d=[];let f=0;for(let g=0;g<e.length;g++){const{colId:m,sort:y,sortType:b,sortIndex:w,rowGroup:C,rowGroupIndex:E,aggFunc:A,pivot:T,pivotIndex:P,pinned:O,hide:D,width:F,flex:L}=e[g];d.push(m),y&&(n[w??f++]={colId:m,sort:y,type:b}),C&&(r[E??0]=m),typeof A=="string"&&i.push({colId:m,aggFunc:A}),T&&(o[P??0]=m),O&&(O==="right"?a:s).push(m),D&&l.push(m),(L!=null||F)&&u.push({colId:m,flex:L??void 0,width:F===null?void 0:F})}return{sort:n.length?{sortModel:uD(n)}:void 0,rowGroup:r.length?{groupColIds:uD(r)}:void 0,aggregation:i.length?{aggregationModel:i}:void 0,pivot:o.length||t?{pivotMode:t,pivotColIds:uD(o)}:void 0,columnPinning:s.length||a.length?{leftColIds:s,rightColIds:a}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:u.length?{columnSizingModel:u}:void 0,columnOrder:d.length?{orderedColIds:d}:void 0}}function uD(e){return e.filter(t=>t!=null)}function d_e(e){const t=[];for(const{groupId:n,open:r}of e)r&&t.push(n);return t.length?{openColumnGroupIds:t}:void 0}var h_e=class extends Se{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";return typeof e=="function"&&(e=e()),e.map(r=>{if(!r){on(18),t||on(20);return}if(this.isGridApi(r))return r;const i=r;return"current"in i?i.current?.api:(i.api||on(19),i.api)}).filter(r=>!!r&&!r.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){if(!this.consuming)for(const t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>
vendor: 9,540 bytes, line 891
891{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const n=[];return e.columns?e.columns.forEach(r=>{n.push(t(r))}):e.column&&n.push(t(e.column)),n}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.colId)}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":Me(21);break}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;if(t)for(const n of e.columnGroups){let r=null;n&&(r=t.getProvidedColGroup(n.getGroupId())),!(n&&!r)&&t.setColumnGroupOpened(r,n.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){const t=e.column;let n=null;const r=this.beans,{colResize:i,ctrlsSvc:o,colModel:s}=r;if(t&&(n=s.getColDefCol(t.getColId())),t&&!n)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const f=e.api.getColumnState().map(g=>({colId:g.colId}));Ya(r,{state:f,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const f=e.api.getColumnState().map(g=>({colId:g.colId,hide:g.hide}));Ya(r,{state:f},"alignedGridChanged")}break;case"columnPinned":{const f=e.api.getColumnState().map(g=>({colId:g.colId,pinned:g.pinned}));Ya(r,{state:f},"alignedGridChanged")}break;case"columnResized":{const d=e,f={};for(const g of a)f[g.getId()]={key:g.colId,newWidth:g.getActualWidth()};for(const g of d.flexColumns??[])f[g.getId()]&&delete f[g.getId()];i?.setColumnWidths(Object.values(f),!1,d.finished,"alignedGridChanged");break}}const u=o.getGridBodyCtrl().isVerticalScrollShowing();for(const d of this.getAlignedGridApis())d.setGridOption("alwaysShowVerticalScroll",u)}},f_e={moduleName:"AlignedGrids",version:Le,beans:[h_e],dependsOn:[One]};function g_e(e,t={}){const n=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(n))}function sre(e,t,n,r,i){t&&(r&&t.parent&&t.parent.level!==-1&&sre(e,t.parent,n,r,i),t.setExpanded(n,void 0,i))}function p_e(e,t){return e.rowModel.getRowNode(t)}function m_e(e,t,n,r){e.rowRenderer.addRenderedRowListener(t,n,r)}function v_e(e){return e.rowRenderer.getRenderedNodes()}function y_e(e,t,n){e.rowModel.forEachNode(t,n)}function b_e(e){return e.rowRenderer.firstRenderedRow}function w_e(e){return e.rowRenderer.lastRenderedRow}function C_e(e,t){return e.rowModel.getRow(t)}function S_e(e){return e.rowModel.getRowCount()}function x_e(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function E_e(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function are(e,t,n="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,n),"ensureVisible")}function lre(e,t,n){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,n),"ensureVisible")}function R_e(e,t,n=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,n),"ensureVisible")}var A_e={moduleName:"RowApi",version:Le,apiFunctions:{redrawRows:g_e,setRowNodeExpanded:sre,getRowNode:p_e,addRenderedRowListener:m_e,getRenderedNodes:v_e,forEachNode:y_e,getFirstDisplayedRowIndex:b_e,getLastDisplayedRowIndex:w_e,getDisplayedRowAtIndex:C_e,getDisplayedRowCount:S_e}},T_e={moduleName:"ScrollApi",version:Le,apiFunctions:{getVerticalPixelRange:x_e,getHorizontalPixelRange:E_e,ensureColumnVisible:are,ensureIndexVisible:lre,ensureNodeVisible:R_e}};function P_e(e){e.expansionSvc?.expandAll(!0)}function O_e(e){e.expansionSvc?.expandAll(!1)}function ure(e){e.rowModel?.onRowHeightChanged()}function cre(e){if(e.rowAutoHeight?.active){Me(3);return}e.rowModel?.resetRowHeights()}function D_e(e){e.expansionSvc?.resetExpansion()}function M_e(e,t,n){const r=URe(e);if(r){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){on(238);return}r.setRowCount(t,n);return}on(28);return}$E(e)?.setRowCount(t,n)}function I_e(e){return Wm(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function __e(e){return e.rowModel.isLastRowIndexKnown()}var F_e={moduleName:"CsrmSsrmSharedApi",version:Le,apiFunctions:{expandAll:P_e,collapseAll:O_e,resetRowGroupExpansion:D_e}},k_e={moduleName:"RowModelSharedApi",version:Le,apiFunctions:{onRowHeightChanged:ure,resetRowHeights:cre}},L_e={moduleName:"SsrmInfiniteSharedApi",version:Le,apiFunctions:{setRowCount:M_e,getCacheBlockState:I_e,isLastRowIndexKnown:__e}},N_e=class extends Se{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},Fj(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();const t=Fj(this.rootNode),n=new Array(e.length);t._leafs=n;let r=0;const i=this.beans.groupStage?.getNestedDataGetter(),o=i?new Set:null,s=(a,l)=>{const u=a.level+1;for(let d=0,f=l.length;d<f;++d){const g=l[d];if(!g)continue;const m=this.createRowNode(g,u,r);if(n[r++]=m,o&&!o.has(g)){o.add(g),m.treeParent=a;const y=i(g);y&&s(m,y)}}};s(t,e),n.length=r}destroyAllNodes(){const{selectionSvc:e,pinnedRowModel:t,groupStage:n}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),n?.clearNonLeafs();const r=this.rootNode._leafs;if(r)for(let i=0,o=r.length;i<o;++i)r[i]._destroy(null);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){const{rootNode:n,gos:r}=this;this.dispatchRowDataUpdateStarted(t);const i=wm(r),o=e.changedRowNodes,{adds:s,updates:a}=o,l=new Set,u=[],d=this.beans.groupStage?.getNestedDataGetter();let f=r.get("suppressMaintainUnsortedOrder")?void 0:!1,g=-1,m=!1;const y=(C,E)=>{if(!f&&f!==void 0){const A=C.sourceRowIndex;f=A<=g,g=A}C.data!==E&&(C.updateData(E),s.has(C)||a.add(C),!C.selectable&&C.isSelected()&&u.push(C))},b=(C,E,A)=>{for(let T=0,P=E.length;T<P;++T){const O=E[T];if(!O)continue;let D=this.getRowNode(i({data:O,level:A}));if(D?(y(D,O),m||(m=!!d&&D.treeParent!==C)):(D=this.createRowNode(O,A),s.add(D)),!d||l.has(D)){l.add(D);continue}l.add(D),D.treeParent=C;const F=d(O);F&&b(D,F,A+1)}};b(n,t,0);const w=this.deleteUnusedNodes(l,o,u,!!e.animate)||f||s.size>0;if(w){const C=n._leafs??(n._leafs=[]);f===void 0?G_e(C,l,o):z_e(C,l)&&(o.reordered=!0)}(w||m||a.size)&&(e.rowDataUpdated=!0,this.deselect(u))}deleteUnusedNodes(e,{removals:t},n,r){const i=this.rootNode._leafs;for(let o=0,s=i.length;o<s;o++){const a=i[o];e.has(a)||this.destroyNode(a,r)&&(t.push(a),a.isSelected()&&n.push(a))}return t.length>0}updateRowData(e,t,n){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return Me(268),{remove:[],update:[],add:[]};const r=[],i=wm(this.gos),o=this.executeRemove(i,e,t,r,n),s=this.executeUpdate(i,e,t,r),a=this.executeAdd(e,t);return this.deselect(r),{remove:o,update:s,add:a}}executeRemove(e,{remove:t},{adds:n,updates:r,removals:i},o,s){const a=this.rootNode._leafs,l=a?.length,u=t?.length;if(!u||!l)return[];let d=0,f=l,g=0;const m=new Array(u);for(let y=0;y<u;++y){const b=this.lookupNode(e,t[y]);if(!b)continue;const w=b.sourceRowIndex;w<f&&(f=w),w>g&&(g=w),m[d++]=b,this.destroyNode(b,s)&&(b.isSelected()&&o.push(b),n.delete(b)||(r.delete(b),i.push(b)))}return m.length=d,d&&V_e(a,f,g),m}executeUpdate(e,{update:t},{adds:n,updates:r},i){const o=t?.length;if(!o)return[];const s=new Array(o);let a=0;for(let l=0;l<o;l++){const u=t[l],d=this.lookupNode(e,u);d&&(d.updateData(u),!d.selectable&&d.isSelected()&&i.push(d),s[a++]=d,n.has(d)||r.add(d))}return s.length=a,s}executeAdd(e,t){var n;const r=(n=this.rootNode)._leafs??(n._leafs=[]),i=r.length,o=e.add,s=o?.length;if(!s)return[];const a=i+s;let l=this.sanitizeAddIndex(r,e.addIndex);if(l<i){for(let f=i-1,g=a-1;f>=l;--f){const m=r[f];m.sourceRowIndex=g,r[g--]=m}t.reordered=!0}r.length=a;const u=new Array(s),d=t.adds;for(let f=0;f<s;f++){const g=this.createRowNode(o[f],0,l);d.add(g),r[l]=g,u[f]=g,l++}return u}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",n=this.beans.selectionSvc;e.length&&n?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),n?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:n?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t,n){const r=new Yd(this.beans);r.parent=this.rootNode,r.level=t,r.group=!1,n!=null&&(r.sourceRowIndex=n),r.setDataAndId(e,String(this.nextId++));const i=r.id,o=this.allNodesMap;return o[i]&&Me(2,{nodeId:i}),o[i]=r,r}destroyNode(e,t){if(!e._destroy(t))return!1;const n=e.id,r=this.allNodesMap;return r[n]===e&&delete r[n],!0}lookupNode(e,t){if(!e)return H_e(this.rootNode._leafs,t);const n=e({data:t,level:0}),r=this.allNodesMap[n];return r||(on(4,{id:n}),null)}sanitizeAddIndex(e,t){const n=e.length;if(typeof t!="number"||t<0||t>=n||Number.isNaN(t))return n;t=Math.ceil(t);const r=this.gos;return t>0&&r.get("treeData")&&r.get("getDataPath")&&(t=B_e(e,t)),t}},B_e=(e,t)=>{for(let n=0,r=e.length;n<r;n++)if(e[n]?.rowIndex==t-1)return n+1;return t},Fj=e=>{e.group=!0,e.level=-1,e._expanded=!0,e.id=lN,e._leafs?.length!==0&&(e._leafs=[]);const t=[],n=[],r=[],i=[];e.childrenAfterGroup=t,e.childrenAfterSort=n,e.childrenAfterAggFilter=r,e.childrenAfterFilter=i;const o=e.sibling;return o&&(o.childrenAfterGroup=t,o.childrenAfterSort=n,o.childrenAfterAggFilter=r,o.childrenAfterFilter=i,o.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},H_e=(e,t)=>
vendor: 1,169 bytes, line 891
891{if(e)for(let n=0,r=e.length;n<r;n++){const i=e[n];if(i.data===t)return i}return on(5,{data:t}),null},V_e=(e,t,n)=>{t=Math.max(0,t);for(let r=t,i=e.length;r<i;++r){const o=e[r];r<=n&&o.destroyed||(o.sourceRowIndex=t,e[t++]=o)}e.length=t},z_e=(e,t)=>{const n=t.size;e.length=n;let r=0,i=!1,o=!1;for(const s of t){const a=s.sourceRowIndex;a===r?o||(o=i):(a>=0?o=!0:i=!0,s.sourceRowIndex=r,e[r]=s),++r}return o},G_e=(e,t,{adds:n})=>{const r=e.length,i=t.size;i>r&&(e.length=i);let o=0;for(let s=0;s<r;++s){const a=e[s];a.destroyed||(o!==s&&(a.sourceRowIndex=o,e[o]=a),++o)}for(const s of n)s.sourceRowIndex<0&&(s.sourceRowIndex=o,e[o++]=s);e.length=o},j_e=class extends Se{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.hierarchical=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.formulaRows=[],this.stages=null,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingData=!1,this.rowDataUpdatedPending=!1,this.refreshingModel=!1,this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1,this.rowNodesCountReady=!1,this.stagesRefreshPro
vendor: 19,474 bytes, line 891
891ps=new Map,this.onRowHeightChanged_debounced=ui(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new Yd(e);this.rootNode=t,this.nodeManager=this.createBean(new N_e(t));const n=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:n,columnRowGroupChanged:n,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:()=>this.refreshModel({step:"pivot"}),columnPivotModeChanged:()=>this.refreshModel({step:"group"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),stylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){const{beans:e,stagesRefreshProps:t}=this,n=[e.groupStage,e.filterStage,e.groupFilterStage,e.pivotStage,e.aggStage,e.sortStage,e.groupSortStage,e.filterAggStage,e.flattenStage].filter(r=>!!r);this.stages=n;for(let r=n.length-1;r>=0;--r){const i=n[r].refreshProps;if(i)for(const o of i)t.set(o,r)}this.addManagedPropertyListeners([...t.keys(),"rowData"],r=>{const i=r.changeSet?.properties;i&&this.onPropChange(i)}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,n,r){let i,o=!1;do{i=!1;const s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),u=Math.min(a,r);for(let d=l;d<=u;d++){const f=this.getRow(d);if(f.rowHeightEstimated){const g=$d(this.beans,f);f.setRowHeight(g.height),i=!0,o=!0}}i&&this.setRowTopAndRowIndex()}while(i);return o}onPropChange(e){const{nodeManager:t,gos:n,beans:r}=this,i=r.groupStage;if(!t)return;const o=new Set(e),s=i?.onPropChange(o);let a;o.has("rowData")?a=n.get("rowData"):s&&(a=i?.extractData()),a&&!Array.isArray(a)&&(a=null,Me(1));const l={step:"nothing",changedProps:o};if(a){const d=!s&&!this.isEmpty()&&a.length>0&&n.exists("getRowId")&&!n.get("resetRowDataOnUpdate");this.refreshingData=!0,d?(l.keepRenderedRows=!0,l.animate=!n.get("suppressAnimationFrame"),l.changedRowNodes=new l1,t.setImmutableRowData(l,a)):(l.rowDataUpdated=!0,l.newData=!0,t.setNewRowData(a),this.rowNodesCountReady=!0)}const u=l.rowDataUpdated?"group":this.getRefreshedStage(e);u&&(l.step=u,this.refreshModel(l))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:n}=this;if(!t)return null;const r=t.length;let i=r;for(let o=0,s=e.length;o<s&&i;++o)i=Math.min(i,n.get(e[o])??i);return i<r?t[i].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:n}=this,r=t.environment.getDefaultRowHeight();let i=0;const o=ki(this.gos,"normal");for(let s=0,a=n.length;s<a;++s){const l=n[s],u=l.id;if(u!=null&&e?.add(u),l.rowHeight==null){const d=$d(t,l,o,r);l.setRowHeight(d.height,d.estimated)}l.setRowTop(i),l.setRowIndex(s),i+=l.rowHeight}if(this.beans.formula?.active){const s=this.formulaRows;for(let a=0,l=s.length;a<l;++a){const u=s[a];u.formulaRowIndex=a}}}clearRowTopAndRowIndex(e,t){const n=o=>{o?.id!=null&&!t.has(o.id)&&o.clearRowTopAndRowIndex()},r=o=>{n(o),n(o.detailNode),n(o.sibling);const s=o.childrenAfterGroup;if(!(!o.hasChildren()||!s)&&!(e&&o.level!==-1&&!o.expanded))for(let a=0,l=s.length;a<l;++a)r(s[a])},i=this.rootNode;i&&r(i)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay.length}getTopLevelRowCount(){const{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;if(t[0]===e)return 1;const r=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+r}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:n,rowsToDisplay:r}=this;if(!n||!r.length||r[0]===n)return e;const o=n.childrenAfterSort,s=l=>{let u=o[l];if(this.gos.get("groupHideOpenParents"))for(;u.expanded&&u.childrenAfterSort&&u.childrenAfterSort.length>0;)u=u.childrenAfterSort[0];return u.rowIndex},a=t.footerSvc;return a?a?.getTopDisplayIndex(r,e,o,s):s(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:n}=this;if(!t||!n.length||n[0]===t)return e;let i=this.getRow(e);i.footer&&(i=i.sibling);let o=i.parent;for(;o&&o!==t;)i=o,o=i.parent;const s=t.childrenAfterSort?.indexOf(i)??-1;return s>=0?s:e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:!0,animate:Jp(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const r=t.length===0||t.some(i=>i.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:r,keepRenderedRows:!0,animate:Jp(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:Jp(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:n,rowDataUpdated:r}=e;return!(!t||n||!r||t.removals.length||t.adds.size)}reMapRows(){if(this.refreshingModel||this.refreshingData){this.noKeepRenderedRows=!0,this.noKeepUndoRedoStack=!0,this.noAnimate=!0;return}this.refreshModel({step:"map",keepRenderedRows:!1,keepUndoRedoStack:!1,animate:!1})}refreshModel(e){const{nodeManager:t,eventSvc:n,started:r}=this;if(!t)return;const i=!!e.rowDataUpdated;if(r&&i&&n.dispatchEvent({type:"rowDataUpdated"}),this.deferRefresh(e)){this.setPendingRefreshFlags(e),this.rowDataUpdatedPending||(this.rowDataUpdatedPending=i);return}this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.updateRefreshParams(e);let o=!1;this.refreshingModel=!0;try{this.executeRefresh(e,i),o=!0}finally{this.refreshingData=!1,this.refreshingModel=!1,o||this.setPendingRefreshFlags(e)}this.clearPendingRefreshFlags(),this.beans.formula?.onRowsChanged(e.changedRowNodes,e.newData),n.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}executeRefresh(e,t){const{beans:n,rootNode:r}=this;n.masterDetailSvc?.refreshModel(e),t&&e.step!=="group"&&n.colFilter?.refreshModel();let i=e.changedPath;switch(i?.addRow(r),e.step==="group"&&(this.doGrouping(r,e),i??(i=e.changedPath)),i??(i=n.changedPathFactory?.ensureRowsPath(e,r)),e.step){case"group":case"filter":this.doFilter(i);case"pivot":this.doPivot(i,e.changedProps)&&(i=void 0,e.changedPath=void 0);case"aggregate":this.doAggregate(i);case"filter_aggregates":this.doFilterAggregates(i);case"sort":this.doSort(i,e.changedRowNodes);case"map":this.doRowsToDisplay()}const o=new Set;this.setRowTopAndRowIndex(o),this.clearRowTopAndRowIndex(i,o),this.updateRefreshParams(e)}deferRefresh(e){return this.refreshingModel||this.beans.colModel.changeEventsDispatching?!0:this.isSuppressModelUpdateAfterUpdateTransaction(e)?(this.started&&(this.refreshingData=!1),!0):!this.started}setPendingRefreshFlags(e){this.pendingNewData||(this.pendingNewData=!!e.newData),this.noKeepRenderedRows||(this.noKeepRenderedRows=!e.keepRenderedRows),this.noKeepUndoRedoStack||(this.noKeepUndoRedoStack=!e.keepUndoRedoStack),this.noAnimate||(this.noAnimate=!e.animate)}clearPendingRefreshFlags(){this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1}updateRefreshParams(e){e.newData=this.pendingNewData||!!e.newData,e.keepRenderedRows=!this.noKeepRenderedRows&&!!e.keepRenderedRows,e.keepUndoRedoStack=!this.noKeepUndoRedoStack&&!!e.keepUndoRedoStack,e.animate=!this.noAnimate&&!!e.animate}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getOverlayType(){const{beans:e,gos:t}=this;if(this.rootNode?._leafs?.length){if(e.filterManager?.isAnyFilterPresent()&&this.getRowCount()===0)return"noMatchingRows"}else if(this.rowCountReady||(t.get("rowData")?.length??0)==0)return"noRows";return null}getNodesInRangeForSelection(e,t){let n=!1,r=!1;const i=[],o=kb(this.gos);return this.forEachNodeAfterFilterAndSort(s=>{if(r)return;if(n&&(s===t||s===e)&&(r=!0,o&&s.group)){dre(i,s);return}if(!n){if(s!==t&&s!==e)return;n=!0,t===e&&(r=!0)}(!s.group||!o)&&i.push(s)}),i}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}getFormulaRow(e){return this.formulaRows[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay,n=t.length;if(this.isEmpty()||n===0)return-1;let r=0,i=n-1;if(e<=0)return 0;if(t[i].rowTop<=e)return i;let s=-1,a=-1;for(;;){const l=Math.floor((r+i)/2),u=t[l];if(this.isRowInPixel(u,e)||(u.rowTop<e?r=l+1:u.rowTop>e&&(i=l-1),s===r&&a===i))return l;s=r,a=i}}isRowInPixel(e,t){const n=e.rowTop,r=n+e.rowHeight;return n<=t&&r>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let n=0,r=t.length;n<r;++n)e(t[n],n)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let n=0,r=t.length;n<r;++n)e(t[n],n)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterSort)}forEachPivotNode(e,t,n){const{colModel:r,rowGroupColsSvc:i}=this.beans;if(!r.pivotMode)return;if(!i?.columns.length){e(this.rootNode,0);return}const o=n?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,s=>s.leafGroup?null:s[o])}depthFirstSearchRowNodes(e,t=!1,n=o=>o.childrenAfterGroup,r=this.rootNode,i=0){let o=i;if(!r)return o;const s=r===this.rootNode;if(s||e(r,o++),r.hasChildren()&&!r.footer){const a=s||this.hierarchical?n(r):null;if(a){const l=this.beans.footerSvc;o=l?.addTotalRows(o,r,e,t,s,"top")??o;for(const u of a)o=this.depthFirstSearchRowNodes(e,t,n,u,o);return l?.addTotalRows(o,r,e,t,s,"bottom")??o}}return o}doAggregate(e){this.rootNode&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){if(this.hierarchical){const r=this.beans.filterAggStage;if(r){r.execute(e);return}}const t=this.rootNode;t.childrenAfterAggFilter=t.childrenAfterFilter;const n=t.sibling;n&&(n.childrenAfterAggFilter=t.childrenAfterFilter)}doSort(e,t){const n=this.beans;(this.hierarchical&&n.groupSortStage||n.sortStage).execute(e,t)}doGrouping(e,t){const r=this.beans.groupStage?.execute(t);if(r===void 0){const i=e._leafs;e.childrenAfterGroup=i,e.updateHasChildren();const o=e.sibling;o&&(o.childrenAfterGroup=i)}(r||t.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){const t=this.beans;(this.hierarchical&&t.groupFilterStage||t.filterStage).execute(e);const n=this.rootNode,r=n.sibling;r&&(r.childrenAfterFilter=n.childrenAfterFilter)}doPivot(e,t){return this.beans.pivotStage?.execute(e,t)??!1}getRowNode(e){typeof e!="string"&&(e=String(e));const t=this.nodeManager?.getRowNode(e);if(typeof t=="object")return t;const n=this.beans.groupStage?.getNonLeaf(e);return n||this.getSpecialRowNode(e)}getSpecialRowNode(e){if(e===lN)return this.rootNode??void 0;if(e===qEe){const t=this.rootNode?.sibling;return t?.footer?t:void 0}if(e.startsWith(J_)){const t=e.slice(J_.length),n=this.getRowNode(t);return n?.sibling?.footer?n.sibling:void 0}if(e.startsWith(D6)){const t=e.slice(D6.length),n=this.nodeManager?.getRowNode(t);if(typeof n=="object"&&n.detailNode?.id===e)return n.detailNode}}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const n=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),n)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:n,asyncTransactions:r}=this;if(!e)return;t.valueCache?.onDataChanged();const i=[],o=[],s=new l1,a=!this.gos.get("suppressAnimationFrame");for(const{rowDataTransaction:l,callback:u}of r??[]){this.rowNodesCountReady=!0,this.refreshingData=!0;const d=e.updateRowData(l,s,a);i.push(d),u&&o.push(u.bind(null,d))}this.commitTransactions(s,a),o.length>0&&setTimeout(()=>{for(let l=0,u=o.length;l<u;l++)o[l]()},0),i.length>0&&n.dispatchEvent({type:"asyncTransactionsFlushed",results:i}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const n=new l1,r=!this.gos.get("suppressAnimationFrame");this.refreshingData=!0;const i=t.updateRowData(e,n,r);return this.commitTransactions(n,r),i}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e})}doRowsToDisplay(){const{rootNode:e,beans:t}=this;if(t.formula?.active){const i=e?.childrenAfterSort??[];this.formulaRows=i,this.rowsToDisplay=i.filter(o=>!o.softFiltered);for(const o of this.rowsToDisplay)o.setUiLevel(0);return}const n=t.flattenStage;if(n){this.rowsToDisplay=n.execute();return}const r=this.rootNode.childrenAfterSort??[];for(const i of r)i.setUiLevel(0);this.rowsToDisplay=r}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);const n=e.sibling;n?.setRowHeight(n.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n?.setRowHeight(n.rowHeight,!0);const r=t.sibling;r?.setRowHeight(r.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){e.rowHeightChanged&&!this.beans.rowAutoHeight?.active&&this.resetRowHeights()}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy(),this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.asyncTransactions=null,this.stages=null,this.stagesRefreshProps.clear(),clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},dre=(e,t)=>{const n=t.childrenAfterGroup;if(n)for(let r=0,i=n.length;r<i;++r){const o=n[r];o.data&&e.push(o),o.group&&dre(e,o)}};function U_e(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function W_e(e,t){const n=uu(e);n&&((!t||t==="everything")&&(t="group"),n.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function $_e(e){return uu(e)?.isEmpty()??!0}function q_e(e,t){uu(e)?.forEachLeafNode(t)}function K_e(e,t){uu(e)?.forEachNodeAfterFilter(t)}function Y_e(e,t){uu(e)?.forEachNodeAfterFilterAndSort(t)}function X_e(e,t){return e.frameworkOverrides.wrapIncoming(()=>uu(e)?.updateRowData(t))}function Z_e(e,t,n){e.frameworkOverrides.wrapIncoming(()=>uu(e)?.batchUpdateRowData(t,n))}function Q_e(e){e.frameworkOverrides.wrapIncoming(()=>uu(e)?.flushAsyncTransactions())}function J_e(e){return e.selectionSvc?.getBestCostNodeSelection()}var eFe=class extends Se{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=null}wireBeans(e){this.filterManager=e.filterManager}execute(){const e=this.beans,t=e.rowModel.rootNode,n=t.childrenAfterGroup,r=n.length,i=this.filterManager,o=!!i?.isChildFilterPresent();if(e.formula?.active)if(t.childrenAfterFilter=n,o)for(let s=0;s<r;++s){const a=n[s];a.softFiltered=!i.doesRowPassFilter(a)}else for(let s=0;s<r;++s)n[s].softFiltered=!1;else o?t.childrenAfterFilter=tFe(n,r,t.childrenAfterFilter??n,i):t.childrenAfterFilter=n}},tFe=(e,t,n,r)=>{const i=n.length;let o=0;for(let s=0;s<t;++s){const a=e[s];if(r.doesRowPassFilter(a)){if(o>=i||n[o]!==a)return kj(e,t,s,o,n,r);++o}else if(o<i)return kj(e,t,s,o,n,r)}return o===i?n:e},kj=(e,t,n,r,i,o)=>{const s=r>0?i.slice(0,r):[];for(;n<t;){const a=e[n++];o.doesRowPassFilter(a)&&s.push(a)}return s},nFe=4,rFe=(e,t,n,r,i)=>{const o=t.childrenAfterSort,s=t.childrenAfterAggFilter;if(!s)return o&&o.length>0?o:[];const a=s.length;if(a<=1)return o?.length===a&&(a===0||o[0]===s[0])?o:s.slice();if(!o||a<=nFe)return e.doFullSortInPlace(s.slice(),i);const l=new Map,{updates:u,adds:d}=n,f=[];for(let m=0;m<a;++m){const y=s[m];u.has(y)||d.has(y)||r?.hasRow(y)?(l.set(y,~m),f.push(y)):l.set(y,m)}const g=f.length;return g===0?a===o.length?o:oFe(o,l,f):(f.sort((m,y)=>e.compareRowNodes(i,m,y)||~l.get(m)-~l.get(y)),g===a?f:iFe(e,i,f,o,l,a))},iFe=(e,t,n,r,i,o)=>{const s=new Array(o);let a=0,l=n[a],u,d=-1,f=0,g=0;const m=n.length,y=r.length;for(;;){if(d<0){if(f>=y)break;if(u=r[f++],d=i.get(u)??-1,d<0)continue}if((e.compareRowNodes(t,l,u)||~i.get(l)-d)<0){if(s[g++]=l,++a>=m)break;l=n[a]}else s[g++]=u,d=-1}for(;a<m;)s[g++]=n[a++];if(d<0)return s;for(s[g++]=u;f<y;){const b=r[f++];i.get(b)>=0&&(s[g++]=b)}return s},oFe=(e,t,n)=>{let r=0;n.length=t.size;for(let i=0,o=e.length;i<o;++i){const s=e[i];t.has(s)&&(n[r++]=s)}return n.length=r,n},sFe=e=>{const t=e.childrenAfterSort,n=e.sibling;if(n&&(n.childrenAfterSort=t),!!t)for(let r=0,i=t.length-1;r<=i;r++){const o=t[r],s=r===0,a=r===i;o.firstChild!==s&&(o.firstChild=s,o.dispatchRowEvent("firstChildChanged")),o.lastChild!==a&&(o.lastChild=a,o.dispatchRowEvent("lastChildChanged")),o.childIndex!==r&&(o.childIndex=r,o.dispatchRowEvent("childIndexChanged"))}},aFe=class extends Se{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","accentedSort"]}execute(e,t){const{rowModel:n,sortSvc:r,rowNodeSorter:i}=this.beans,o=n.rootNode,s=r.getSortOptions(),a=s.length>0,l=this.gos.getCallback("postSortRows"),u=a&&!l&&this.gos.get("deltaSort")&&t,d=o.childrenAfterSort,f=o.childrenAfterAggFilter;let g;a?u?g=rFe(i,o,u,e,s):g=i.doFullSortInPlace(f?.slice()??[],s):g=J1e(d,f),o.childrenAfterSort=g,sFe(o),l?.({nodes:g})}},lFe={moduleName:"ClientSideRowModel",version:Le,rowModels:["clientSide"],beans:[j_e,eFe,aFe],dependsOn:[ere]},uFe={moduleName:"ClientSideRowModelApi",version:Le,apiFunctions:{onGroupExpandedOrCollapsed:U_e,refreshClientSideRowModel:W_e,isRowDataEmpty:$_e,forEachLeafNode:q_e,forEachNodeAfterFilter:K_e,forEachNodeAfterFilterAndSort:Y_e,applyTransaction:X_e,applyTransactionAsync:Z_e,flushAsyncTransactions:Q_e,getBestCostNodeSelection:J_e,resetRowHeights:cre,onRowHeightChanged:ure},dependsOn:[F_e,k_e]},cFe=":where(.ag-ltr) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,left .2s ease-in-out}}:where(.ag-rtl) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell{transition:width .2s ease-in-out,right .2s ease-in-out}}";function dFe(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function hre({colAutosize:e,visibleCols:t},n,r){Array.isArray(n)?e?.autoSizeCols({colKeys:n,skipHeader:r,source:"api"}):e?.autoSizeCols({...n,colKeys:n.colIds??t.allCols,source:"api"})}function hFe(e,t){t&&typeof t=="object"?hre(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}var fFe=class extends Se{constructor(){super(...arguments),this.beanName="
891colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){const{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let n=!1;const r=t.type;if(r==="fitGridWidth"||r==="fitProvidedWidth")n=!0;else if(r==="fitCellContents"){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const i=e.get("rowData");n=i!=null&&i.length>0&&hr(e)}n&&this.beans.colDelayRenderSvc?.hideColumns(r)}}autoSizeCols(e){const{eventSvc:t,visibleCols:n,colModel:r}=this.beans;gy(this.beans,!0),this.innerAutoSizeCols(e).then(i=>{const o=d=>xm(t,Array.from(d),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return gy(this.beans,!1),o(i);const s=Lj(this.beans),a=d=>n.leftCols.some(f=>rb(f,d)),l=d=>n.rightCols.some(f=>rb(f,d)),u=e.colKeys.filter(d=>!r.getCol(d)?.colDef.suppressAutoSize&&!Ro(d)&&!a(d)&&!l(d));this.sizeColumnsToFit(s,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(d=>({...d,key:d.colId})),colKeys:u,onlyScaleUp:!0,animate:!1}),gy(this.beans,!1),o(i)})}innerAutoSizeCols(e){return new Promise((t,n)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,n));const{colKeys:r,skipHeader:i,skipHeaderGroups:o,stopAtGroup:s,defaultMaxWidth:a,defaultMinWidth:l,columnLimits:u=[],source:d="api"}=e,{animationFrameSvc:f,renderStatus:g,colModel:m,autoWidthCalc:y,visibleCols:b}=this.beans;if(f?.flushAllFrames(),this.timesDelayed<5&&g&&(!g.areHeaderCellsRendered()||!g.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,n)});return}this.timesDelayed=0;const w=new Set;let C=-1;const E=Object.fromEntries(u.map(({colId:P,...O})=>[P,O])),A=i??this.gos.get("skipHeaderOnAutoSize"),T=o??A;for(;C!==0;){C=0;const P=[];for(const O of r){if(!O||GEe(O))continue;const D=m.getCol(O);if(!D||w.has(D)||D.colDef.suppressAutoSize)continue;const F=y.getPreferredWidthForColumn(D,A);if(F>0){const L=E[D.colId]??{};L.minWidth??(L.minWidth=l),L.maxWidth??(L.maxWidth=a);const N=gFe(D,F,L);D.setActualWidth(N,d),w.add(D),C++}P.push(D)}P.length&&b.refresh(d)}T||this.autoSizeColumnGroupsByColumns(r,d,s),t(w)})}autoSizeColumn(e,t,n){this.autoSizeCols({colKeys:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){const{colModel:r,ctrlsSvc:i}=this.beans,o=new Set,s=r.getColsForKeys(e);for(const l of s){let u=l.parent;for(;u&&u!=n;)u.isPadding()||o.add(u),u=u.parent}let a;for(const l of o){for(const u of i.getHeaderRowContainerCtrls())if(a=u.getHeaderCtrlForColumn(l),a)break;a?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const n=this.gos.get("skipHeaderOnAutoSize"),r=()=>{this.autoSizeColumn(t,"uiColumnResized",n)};e.addEventListener("dblclick",r);const i=new ef(e);return i.addEventListener("doubleTap",r),()=>{e.removeEventListener("dblclick",r),i.destroy()}}addColumnGroupResize(e,t,n){const r=this.gos.get("skipHeaderOnAutoSize"),i=()=>{const o=[],s=t.getDisplayedLeafColumns();for(const a of s)a.colDef.suppressAutoSize||o.push(a.colId);o.length>0&&this.autoSizeCols({colKeys:o,skipHeader:r,stopAtGroup:t,source:"uiColumnResized"}),n()};return e.addEventListener("dblclick",i),()=>e.removeEventListener("dblclick",i)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;let n=Lj(this.beans);if(n>0&&this.beans.visibleCols.centerCols.length===0&&(n=Math.max(n-d1,0)),n>0){this.sizeColumnsToFit(n,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):Me(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",n,r){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,n,r));return}const{beans:i}=this,o=r?.animate??!0;o&&gy(i,!0);const s={};for(const{key:C,...E}of r?.columnLimits??[])s[typeof C=="string"?C:C.getColId()]=E;const a=i.visibleCols.allCols;if(e<=0||!a.length)return;const l=Xu(a);if(r?.onlyScaleUp&&l>e||e===l&&a.every(E=>
vendor: 6,985 bytes, line 891
891{if(E.colDef.suppressSizeToFit)return!0;const A=s?.[E.getId()],T=A?.minWidth??r?.defaultMinWidth,P=A?.maxWidth??r?.defaultMaxWidth,O=E.getActualWidth();return(T==null||O>=T)&&(P==null||O<=P)}))return;const d=[],f=[];for(const C of a){const E=r?.colKeys?.some(A=>rb(C,A))??!0;C.colDef.suppressSizeToFit||!E?f.push(C):d.push(C)}const g=d.slice(0);let m=!1;const y=C=>{Zl(d,C),f.push(C)},b={};for(const C of d){r?.onlyScaleUp&&(b[C.colId]=C.getActualWidth()),C.resetActualWidth(t);const E=s?.[C.getId()],A=E?.minWidth??r?.defaultMinWidth??-1/0,T=E?.maxWidth??r?.defaultMaxWidth??1/0,P=C.getActualWidth(),O=Math.max(Math.min(P,T),A);O!=P&&C.setActualWidth(O,t,!0)}for(;!m;){m=!0;const C=e-Xu(f);if(C<=0)for(const E of d){const A=s?.[E.getId()]?.minWidth??r?.defaultMinWidth??E.minWidth;E.setActualWidth(A,t,!0)}else{const E=C/Xu(d);let A=C;for(let T=d.length-1;T>=0;T--){const P=d[T],O=P.colId,D=b[O],F=s?.[O],L=F?.minWidth??r?.defaultMinWidth??D,N=F?.maxWidth??r?.defaultMaxWidth,M=Math.max(L??-1/0,P.getMinWidth()),k=Math.min(N??1/0,P.getMaxWidth());let B=Math.round(P.getActualWidth()*E);B<M?(B=M,y(P),m=!1):B>k?(B=k,y(P),m=!1):T===0&&(B=A),P.setActualWidth(B,t,!0),A-=B}}}for(const C of g)C.fireColumnWidthChangedEvent(t);const w=i.visibleCols;w.setLeftValues(t),w.updateBodyWidths(),!n&&(xm(this.eventSvc,g,!0,t),o&&gy(i,!1))}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,n=e.get("autoSizeStrategy");n?.type!=="fitGridWidth"&&n?.type!=="fitProvidedWidth"||setTimeout(()=>{if(!this.isAlive())return;const r=n.type;if(r==="fitGridWidth"){const{columnLimits:i,defaultMinWidth:o,defaultMaxWidth:s}=n,a=i?.map(({colId:l,minWidth:u,maxWidth:d})=>({key:l,minWidth:u,maxWidth:d}));this.sizeColumnsToFitGridBody({defaultMinWidth:o,defaultMaxWidth:s,columnLimits:a})}else r==="fitProvidedWidth"&&this.sizeColumnsToFit(n.width,"sizeColumnsToFit");t?.revealColumns(r)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;const n="autosizeColumns";e?this.autoSizeCols({...t,source:n,colKeys:e}):this.autoSizeAllColumns({...t,source:n}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){this.shouldQueueResizeOperations=!1;for(const e of this.resizeOperationQueue)e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function gFe(e,t,n={}){const r=n.minWidth??e.getMinWidth();t<r&&(t=r);const i=n.maxWidth??e.getMaxWidth();return t>i&&(t=i),t}function Lj({ctrlsSvc:e,scrollVisibleSvc:t}){const n=e.getGridBodyCtrl(),i=n.isVerticalScrollShowing()?t.getScrollbarWidth():0;return Mb(n.eGridBody)-i}var Nj="ag-animate-autosize";function gy({ctrlsSvc:e,gos:t},n){if(!t.get("animateColumnResizing")||t.get("enableRtl")||!e.isAlive())return;const r=e.getGridBodyCtrl().eGridBody.classList;n?r.add(Nj):r.remove(Nj)}var pFe={moduleName:"ColumnAutoSize",version:Le,beans:[fFe],apiFunctions:{sizeColumnsToFit:dFe,autoSizeColumns:hre,autoSizeAllColumns:hFe},dependsOn:[Sne],css:[cFe]};function mFe(e,t){return!!e.colHover?.isHovered(t)}var vFe=class extends Se{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=n=>{const{beans:r,gos:i,element:o,columns:s}=this,a=r.colHover;if(n??!!i.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(o,{mouseover:a.setMouseOver.bind(a,s),mouseout:a.clearMouseOver.bind(a)});else{for(const u of this.destroyManagedListeners)u();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},yFe="ag-column-hover",bFe=class extends Se{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,n){const r=()=>{const i=this.isHovered(n);t.toggleCss("ag-column-hover",i)};e.addManagedEventListeners({columnHoverChanged:r}),r()}onCellColumnHover(e,t){if(!t)return;const n=this.isHovered(e);t.toggleCss(yFe,n)}addHeaderFilterColumnHoverListener(e,t,n,r){this.createHoverFeature(e,[n],r);const i=()=>{const o=this.isHovered(n);t.toggleCss("ag-column-hover",o)};e.addManagedEventListeners({columnHoverChanged:i}),i()}createHoverFeature(e,t,n){e.createManagedBean(new vFe(t,n))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},wFe={moduleName:"ColumnHover",version:Le,beans:[bFe],apiFunctions:{isColumnHovered:mFe}},CFe=class extends Se{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:n,columnKeys:r,skipRowGroups:i,exportRowNumbers:o}=t,s=this.getColumnsToExport({allColumns:n,skipRowGroups:i,columnKeys:r,exportRowNumbers:o});return[this.prepareSession(s),this.prependContent(t),this.exportColumnGroups(t,s),this.exportHeaders(t,s),this.processPinnedTopRows(t,s),this.processRows(t,s),this.processPinnedBottomRows(t,s),this.appendContent(t)].reduce((a,l)=>l(a),e).parse()}processRow(e,t,n,r){const i=t.shouldRowBeSkipped||(()=>!1),s=t.rowPositions!=null||!!t.onlySelected,a=this.gos.get("groupHideOpenParents")&&!s,l=this.colModel.pivotMode?r.leafGroup:!r.group,u=!!r.footer,d=r.allChildrenCount===1&&r.childrenAfterGroup?.length===1&&fEe(this.gos,r);if(!l&&!u&&(t.skipRowGroups||d||a)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&r.rowPinned==="top"||t.skipPinnedBottom&&r.rowPinned==="bottom"||r.stub||r.level===-1&&!l&&!u||i(ft(this.gos,{node:r})))return;const m=e.onNewBodyRow(r);if(n.forEach((y,b)=>{m.onColumn(y,b,r)}),t.getCustomContentBelowRow){const y=t.getCustomContentBelowRow(ft(this.gos,{node:r}));y&&e.addCustomContent(y)}}appendContent(e){return t=>{const n=e.appendContent;return n&&t.addCustomContent(n),t}}prependContent(e){return t=>{const n=e.prependContent;return n&&t.addCustomContent(n),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return n=>{if(!e.skipColumnGroupHeaders){const r=new Rne,{colGroupSvc:i}=this.beans,o=i?i.createColumnGroups({columns:t,idCreator:r,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(o,n,e.processGroupHeaderCallback)}return n}}exportHeaders(e,t){return n=>{if(!e.skipColumnHeaders){const r=n.onNewHeaderRow();t.forEach((i,o)=>{r.onColumn(i,o,void 0)})}return n}}processPinnedTopRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="top").sort((i,o)=>i.rowIndex-o.rowIndex).map(i=>
891this.pinnedRowModel?.getPinnedTopRow(i.rowIndex)).forEach(r):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",r),n}}processRows(e,t){return n=>{const r=this.rowModel,i=hr(this.gos),o=Wm(this.gos),s=!i&&e.onlySelected,a=this.processRow.bind(this,n,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(u=>u.rowPinned==null).sort((u,d)=>u.rowIndex-d.rowIndex).map(u=>r.getRow(u.rowIndex)).forEach(a);else if(this.colModel.pivotMode)i?r.forEachPivotNode(a,!0,l==="filteredAndSorted"):o?r.forEachNodeAfterFilterAndSort(a,!0):r.forEachNode(a);else if(e.onlySelectedAllPages||s){const u=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(u),u.forEach(a)}else l==="all"?r.forEachNode(a):i||o?r.forEachNodeAfterFilterAndSort(a,!0):r.forEachNode(a);return n}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:n}=this.beans;if(!t||!n)return;const r=t.getSortOptions(),i=(o,s)=>o.rowIndex!=null&&s.rowIndex!=null?o.rowIndex-s.rowIndex:o.level===s.level?o.parent?.id===s.parent?.id?n.compareRowNodes(r,o,s)||(o.rowIndex??-1)-(s.rowIndex??-1):i(o.parent,s.parent):o.level>s.level?i(o.parent,s):i(o,s.parent);e.sort(i)}processPinnedBottomRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="bottom").sort((i,o)=>i.rowIndex-o.rowIndex).map(i=>this.pinnedRowModel?.getPinnedBottomRow(i.rowIndex)).forEach(r):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",r),n}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:n=!1,exportRowNumbers:r=!1,columnKeys:i}=e,{colModel:o,gos:s,visibleCols:a}=this,l=o.pivotMode,u=g=>rh(g)?!1:!Ro(g)||r;if(i?.length)return o.getColsForKeys(i).filter(u);const d=s.get("treeData");let f;return t&&!l?f=o.getCols():f=a.allCols,f=f.filter(g=>u(g)&&(n&&!d?!aN(g):!0)),f}recursivelyAddHeaderGroups(e,t,n){const r=[];for(const i of e){const o=i;if(o.getChildren)for(const s of o.getChildren()??[])r.push(s)}e.length>0&&xr(e[0])&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)}doAddHeaderHeader(e,t,n){const r=e.onNewHeaderGroupingRow();let i=0;for(const o of t){const s=o;let a;n?a=n(ft(this.gos,{columnGroup:s})):a=this.beans.colNames.getDisplayNameForColumnGroup(s,"header");const u=(s.isExpandable()?s.getLeafColumns():[]).reduce((d,f,g,m)=>{let y=gn(d);return f.getColumnGroupShow()==="open"?(!y||y[1]!=null)&&(y=[g],d.push(y)):y&&y[1]==null&&(y[1]=g-1),g===m.length-1&&y&&y[1]==null&&(y[1]=g),d},[]);r.onColumn(s,a||"",i++,s.getLeafColumns().length-1,u)}}},SFe={moduleName:"SharedExport",version:Le,beans:[CFe]};function xFe(e,t){const n=document.defaultView??window;if(!n)return;const r=document.createElement("a"),i=n.URL.createObjectURL(t);r.setAttribute("href",i),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),r.remove(),n.setTimeout(()=>{n.URL.revokeObjectURL(i)},0)}var EFe=class extends Se{getFileName(e){const t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(".")?e:`${e}.${t}`}getData(e){return this.beans.gridSerializer.serialize(this.createSerializingSession(e),e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},RFe=class{constructor(e){this.valueFrom="data";const{colModel:t,rowGroupColsSvc:n,colNames:r,valueSvc:i,gos:o,processCellCallback:s,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:u,valueFrom:d}=e;this.colModel=t,this.rowGroupColsSvc=n,this.colNames=r,this.valueSvc=i,this.gos=o,this.processCellCallback=s,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=u,d&&(this.valueFrom=d)}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e){const{column:t,node:n,currentColumnIndex:r,accumulatedRowIndex:i,type:o,useRawFormula:s}=e,a=r===0&&Cte(this.gos,n,this.colModel.pivotMode);if(this.processRowGroupCallback&&(this.gos.get("treeData")||n.group)&&(t.isRowGroupDisplayed(n.rowGroupColumn?.colId??"")||a))return{value:this.processRowGroupCallback(ft(this.gos,{column:t,node:n}))??""};if(this.processCellCallback)return{value:this.processCellCallback(ft(this.gos,{accumulatedRowIndex:i,column:t,node:n,value:this.valueSvc.getValueForDisplay({column:t,node:n,from:this.valueFrom}).value,type:o,parseValue:y=>this.valueSvc.parseValue(t,n,y,this.valueSvc.getValue(t,n,this.valueFrom)),formatValue:y=>this.valueSvc.formatValue(t,n,y)??y}))??""};const l=this.gos.get("treeData"),u=this.valueSvc,d=n.level===-1&&n.footer,f=t.colDef.showRowGroup===!0&&(n.group||l);if(!d&&(a||f)){let y="",b=n;for(;b&&b.level!==-1;){const{value:w,valueFormatted:C}
vendor: 12,135 bytes, lines 891-892
891=u.getValueForDisplay({column:a?void 0:t,node:b,includeValueFormatted:!0,exporting:!0,from:this.valueFrom});y=` -> ${C??w??""}${y}`,b=b.parent}return{value:y,valueFormatted:y}}const{value:g,valueFormatted:m}=u.getValueForDisplay({column:t,node:n,includeValueFormatted:!0,exporting:!0,useRawFormula:s,from:this.valueFrom});return{value:g??"",valueFormatted:m}}getHeaderName(e,t){return e?e(ft(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}},Bj=`\r 892`,AFe=class extends RFe{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:n}=e;this.suppressQuotes=t,this.columnSeparator=n}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,Bj),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((n,r)=>{r!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(n.data.value||""),n.mergeAcross&&this.appendEmptyCells(n.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,n,r){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,n){t!=0&&(this.result+=this.columnSeparator);const r=this.extractRowCellValue({column:e,node:n,currentColumnIndex:t,accumulatedRowIndex:t,type:"csv",useRawFormula:!1});this.result+=this.putInQuotes(r.valueFormatted??r.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(Me(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=Bj),this.isFirstLine=!1}},TFe=class extends EFe{constructor(){super(...arguments),this.beanName="csvCreator"}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){Me(51);return}const t=()=>{const r=this.getMergedParams(e),i=this.getData(r),o=new Blob(["\uFEFF",i],{type:"text/plain"}),s=r.fileName,a=typeof s=="function"?s(ft(this.gos,{})):s;xFe(this.getFileName(a),o)},{overlays:n}=this.beans;n?n.showExportOverlay(t):t()}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:n,rowGroupColsSvc:r,valueSvc:i,gos:o}=this.beans,{processCellCallback:s,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:u,suppressQuotes:d,columnSeparator:f,valueFrom:g}=e;return new AFe({colModel:t,colNames:n,valueSvc:i,gos:o,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:d||!1,columnSeparator:f||",",rowGroupColsSvc:r,valueFrom:g})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function PFe(e,t){return e.csvCreator?.getDataAsCsv(t)}function OFe(e,t){e.csvCreator?.exportDataAsCsv(t)}var DFe={moduleName:"CsvExport",version:Le,beans:[TFe],apiFunctions:{getDataAsCsv:PFe,exportDataAsCsv:OFe},dependsOn:[SFe]},fre=class extends Do{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const n="title",r=this.ctrl.getGui();r&&(e!=null&&(e!=""||t)?r.setAttribute(n,e):r.removeAttribute(n))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(this.tooltipManager==null){const e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,()=>this.tooltip);e&&(this.tooltipManager=this.createBean(e,this.beans.context))}}attemptToShowTooltip(){this.tooltipManager?.prepareToShowTooltip()}attemptToHideTooltip(){this.tooltipManager?.hideTooltip()}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},MFe=1e3,IFe=1e3,Hj=100,Vj,sS=!1,_Fe=class extends Do{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return this.tooltipCtrl[`getTooltip${e}DelayOverride`]?.()??this.getGridOptionsTooltipDelay(`tooltip${e}Delay`)}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Pf()&&(sS?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},Hj):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,n=this.tooltipCtrl.getGui(),r=this.tooltipComp?.getGui();this.isInteractingWithTooltip||n.contains(t)||this.interactionEnabled&&r?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||sS)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?this.getTooltipDelay("SwitchShow"):this.getTooltipDelay("Show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-Vj<MFe}setToDoNothing(e){!e&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!Ve(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const n=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const r=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(n,r)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),Vj=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");const i=this.getLocaleTextFunc(),o=this.popupSvc?.addPopup({eChild:r,ariaLabel:i("ariaLabelTooltip","Tooltip")});if(o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const s=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:s}),this.setEventHandlers(s)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(Kr(this.beans),{keydown:s=>{r.contains(s?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:r,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=$n(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,n=this.tooltipTrigger===0?IFe:0;window.setTimeout(()=>{e(),this.destroyBean(t)},n),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){for(const e of[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener])e&&e();this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){sS=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},Hj)}unlockService(){sS=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("Hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}},FFe=class extends fre{constructor(e,t,n){super(e,n),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}
vendor: 7,894 bytes, line 892
892postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){this.tooltipMode===1&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode=e==="focus"?1:0}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},kFe=class extends fN{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,n=this.getGui();n.textContent=Um(t);const r=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();n.classList.add(`ag-${r}-tooltip`)}},LFe=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip),&:where(.ag-cell-formula-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}";function zj(e,t){return{top:e.top-t.top,left:e.left-t.left,right:e.right-t.left,bottom:e.bottom-t.top}}function py(e,t,n,r=0){const[i,o]=n.split("-"),s=gre(e,o),a=NFe(t,i),l=BFe(i,o);return{x:s.x-a.x+l.dx*r,y:s.y-a.y+l.dy*r}}function gre(e,t){const n=(e.left+e.right)/2,r=(e.top+e.bottom)/2;switch(t){case"tl":return{x:e.left,y:e.top};case"tc":return{x:n,y:e.top};case"tr":return{x:e.right,y:e.top};case"l":return{x:e.left,y:r};case"c":return{x:n,y:r};case"r":return{x:e.right,y:r};case"bl":return{x:e.left,y:e.bottom};case"bc":return{x:n,y:e.bottom};case"br":return{x:e.right,y:e.bottom}}}function NFe(e,t){return gre({top:0,left:0,right:e.width,bottom:e.height},t)}function BFe(e,t){const n=Gj(e),r=Gj(t),i=jj(e),o=jj(t);return{dx:Math.sign(r-n),dy:Math.sign(o-i)}}function Gj(e){const t=e.length===2?e[1]:e;return t==="l"?-1:t==="r"?1:0}function jj(e){return e.length===1?0:e.startsWith("t")?-1:e.startsWith("b")?1:0}var aS=0,HFe=200,VFe=class extends Do{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.addManagedEventListeners({stylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:n,nudgeY:r,skipObserver:i}=e;this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:!0,skipObserver:i,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,eventSource:o,alignSide:s="left",position:a="over",type:l}=e,u=o.getBoundingClientRect(),d=this.getParentRect();this.setAlignedTo(o,t);const f=()=>{const g=zj(u,d),m={width:t.offsetWidth,height:t.offsetHeight},y=s==="right";if(a==="over")return this.setAlignedStyles(t,"over"),py(g,m,y?"tr-tr":"tl-tl");if(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,u,d,e.nudgeY||0)==="under")return py(g,m,y?"tr-br":"tl-bl");const w=py(g,m,y?"br-tr":"bl-tl");return w.y-=(r||0)*2,w};this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,updatePosition:f,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,l,t,o,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:n,event:r}=e,i=t.getBoundingClientRect(),o=this.getParentRect();this.setAlignedTo(t,n);let s=!1;const a=()=>{const l=zj(i,o),u=this.keepXYWithinBounds(n,l.top,0),d=n.clientWidth>0?n.clientWidth:200;s||(n.style.minWidth=`${d}px`,s=!0);const g=o.right-o.left-d,m={width:d,height:n.offsetHeight},y=py(l,m,"tl-tr").x-2,b=py(l,m,"tr-tl").x;let w;return this.gos.get("enableRtl")?(w=b,w<0&&(w=y,this.setAlignedStyles(n,"left")),w>g&&(w=0,this.setAlignedStyles(n,"right"))):(w=y,w>g&&(w=b,this.setAlignedStyles(n,"right")),w<0&&(w=0,this.setAlignedStyles(n,"left"))),{x:w,y:u}};this.positionPopup({ePopup:n,keepWithinBounds:!0,updatePosition:a,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",n,t,r instanceof MouseEvent?r:void 0)})}shouldRenderUnderOrAbove(e,t,n,r){const i=n.bottom-t.bottom,o=t.top-n.top,s=e.offsetHeight+r;return i>s?"under":o>s||o>i?"above":"under"}setAlignedStyles(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const r=this.popupList[n],{alignedToElement:i}=r;if(!i)return;const o=["right","left","over","above","under"];for(const s of o)i.classList.remove(`ag-has-popup-positioned-${s}`),e.classList.remove(`ag-popup-positioned-${s}`);t&&(i.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const n=this.getPopupIndex(t);if(n!==-1){const r=this.popupList[n];r.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:n,nudgeX:r,nudgeY:i,skipObserver:o,updatePosition:s}=e,a={width:0,height:0},l=(u=!1)=>{let{x:d,y:f}=s();u&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,r&&(d+=r),i&&(f+=i),n&&(d=this.keepXYWithinBounds(t,d,1),f=this.keepXYWithinBounds(t,f,0)),t.style.left=`${d}px`,t.style.top=`${f}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!o){const u=Rc(this.beans,t,()=>l(!0));setTimeout(()=>u(),HFe)}}getParentRect(){const e=Kr(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),Yee(t)}keepXYWithinBounds(e,t,n){const r=n===0,i=r?"clientHeight":"clientWidth",o=r?"top":"left",s=r?"height":"width",a=r?"scrollTop":"scrollLeft",l=Kr(this.beans),u=l.documentElement,d=this.getPopupParent(),f=e.getBoundingClientRect(),g=d.getBoundingClientRect(),m=l.documentElement.getBoundingClientRect(),y=d===l.body,b=Math.ceil(f[s]);let C=y?(r?Kee:_1)(u)+u[a]:d[i];y&&(C-=Math.abs(m[o]-g[o]));const E=C-b;return Math.min(Math.max(t,0),Math.max(E,0))}addPopup(e){const{eChild:t,ariaLabel:n,ariaOwns:r,alwaysOnTop:i,positionCallback:o,anchorToElement:s}=e,a=this.getPopupIndex(t);if(a!==-1)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(t);const l=this.createPopupWrapper(t,!!i,n,r),u=this.addEventListenersToPopup({...e,wrapperEl:l});return o&&o(),this.addPopupToPopupList(t,l,u,s),{hideFunc:u}}initialisePopupPosition(e){const n=this.getPopupParent().getBoundingClientRect();Ve(e.style.top)||(e.style.top=`${n.top*-1}px`),Ve(e.style.left)||(e.style.left=`${n.left*-1}px`)}createPopupWrapper(e,t,n,r){const i=this.getPopupParent(),{environment:o,gos:s}=this.beans,a=Uf({tag:"div"});return o.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(s.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||jf(e,"dialog"),n?bm(e,n):r&&(e.id||(e.id=`popup-component-${aS}`),S6(r,e.id)),a.appendChild(e),i.appendChild(a),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}addEventListenersToPopup(e){const t=this.beans,n=Kr(t),{wrapperEl:r,eChild:i,closedCallback:o,afterGuiAttached:s,closeOnEsc:a,modal:l,ariaOwns:u}=e;let d=!1;const f=b=>{if(!r.contains($n(t)))return;b.key===fe.ESCAPE&&!this.isStopPropagation(b)&&y({keyboardEvent:b})},g=b=>y({mouseEvent:b}),m=b=>y({touchEvent:b}),y=(b={})=>
vendor: 5,066 bytes, line 892
892{const{mouseEvent:w,touchEvent:C,keyboardEvent:E,forceHide:A}=b;!A&&(this.isEventFromCurrentPopup({mouseEvent:w,touchEvent:C},i)||d)||(d=!0,r.remove(),n.removeEventListener("keydown",f),n.removeEventListener("mousedown",g),n.removeEventListener("touchstart",m),n.removeEventListener("contextmenu",g),this.eventSvc.removeListener("dragStarted",g),o&&o(w||C||E),this.removePopupFromPopupList(i,u))};return s&&s({hidePopup:y}),window.setTimeout(()=>{a&&n.addEventListener("keydown",f),l&&(n.addEventListener("mousedown",g),this.eventSvc.addListener("dragStarted",g),n.addEventListener("touchstart",m),n.addEventListener("contextmenu",g))},0),y}addPopupToPopupList(e,t,n,r){this.popupList.push({element:e,wrapper:t,hideFunc:n,instanceId:aS,isAnchored:!!r}),r&&this.setPopupPositionRelatedToElement(e,r),aS=aS+1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const r=this.popupList[n];if(r.stopAnchoringPromise&&r.stopAnchoringPromise.then(o=>o?.()),r.stopAnchoringPromise=void 0,r.isAnchored=!1,!t)return;const i=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:r.hideFunc});return r.stopAnchoringPromise=i,r.isAnchored=!0,i}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&S6(t,null),this.popupList=this.popupList.filter(n=>n.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),n=t.getBoundingClientRect(),{element:r,ePopup:i}=e,o=r.getBoundingClientRect(),s=f=>Number.parseInt(f.substring(0,f.length-1),10),a=(f,g)=>{const m=n[f]-o[f],y=s(i.style[f]);return{initialDiff:m,lastDiff:m,initial:y,last:y,direction:g}},l=a("top",0),u=a("left",1),d=this.beans.frameworkOverrides;return new _t(f=>{d.wrapIncoming(()=>{eRe(()=>{const g=t.getBoundingClientRect(),m=r.getBoundingClientRect();if(m.top==0&&m.left==0&&m.height==0&&m.width==0){e.hidePopup();return}const b=(w,C)=>{const E=s(i.style[C]);w.last!==E&&(w.initial=E,w.last=E);const A=g[C]-m[C];if(A!=w.lastDiff){const T=this.keepXYWithinBounds(i,w.initial+w.initialDiff-A,w.direction);i.style[C]=`${T}px`,w.last=T}w.lastDiff=A};b(l,"top"),b(u,"left")},200).then(g=>{f(()=>{g!=null&&window.clearInterval(g)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:n,touchEvent:r}=e,i=n||r;if(!i)return!1;const o=this.getPopupIndex(t);if(o===-1)return!1;for(let s=o;s<this.popupList.length;s++){const a=this.popupList[s];if(Oxe(a.element,i))return!0}return this.isElementWithinCustomPopup(i.target)}isElementWithinCustomPopup(e){const t=Kr(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))}bringPopupToFront(e){const t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=n.length,i=this.getWrapper(e);if(!i||r<=1||!t.contains(e))return;const o=[],s=[];for(const g of n)g!==i&&(g.classList.contains("ag-always-on-top")?s.push(g):o.push(g));const a=[],l=s.length,f=i.classList.contains("ag-always-on-top")||!l?[...o,...s,i]:[...o,i,...s];for(let g=0;g<=r;g++){const m=f[g];if(n[g]===f[g]||m===i)continue;const y=m.querySelectorAll("div");for(const b of y)b.scrollTop!==0&&a.push([b,b.scrollTop]);g===0?t.prepend(m):f[g-1].after(m)}for(;a.length;){const g=a.pop();g[0].scrollTop=g[1]}}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const n of this.popupList)t.applyThemeClasses(n.wrapper)}}},zFe=class extends VFe{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,n,r,i){const o=this.gos.getCallback("postProcessPopup");if(o){const{column:s,rowNode:a}=e??{};o({column:s,rowNode:a,ePopup:n,type:t,eventSource:r,mouseEvent:i})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return ac(e)}},XE={moduleName:"Popup",version:Le,beans:[zFe]};function yF(e){return e.get("tooltipShowMode")==="whenTruncated"}var GFe=(e,t)=>{const n=e;return typeof n.getTranslatedMessage=="function"?n.getTranslatedMessage(t):e.message},bF=(e,t,n)=>{const{editModelSvc:r}=e,i=r?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,o=r?.getRowValidationModel().getRowValidation(t)?.errorMessages,s=i||o;return s?.length?s.join(n("tooltipValidationErrorSeparator",". ")):void 0},jFe=(e,t)=>{if(yF(e.gos)){if(t.isCellRenderer()){const r=t.column.colDef;return!!r.showRowGroup||r.cellRenderer==="agGroupCellRenderer"?Ib(()=>{const o=t.eGui;return o.querySelector(".ag-group-value")||o.querySelector(".ag-cell-value")||o}):void 0}return Ib(()=>{const r=t.eGui;return r.children.length===0?r:r.querySelector(".ag-cell-value")})}},UFe=(e,t,n)=>{const{editSvc:r}
892=e,{column:i}=t,o=jFe(e,t),s=()=>r?.isEditing(t)?!1:o?i.isTooltipEnabled()?o():!1:!0;return{shouldDisplayDefault:s,shouldDisplayColumnTooltip:s,shouldDisplayCustomTooltip:n??s}},WFe=({beans:e,ctrl:t,value:n,displayFunctions:r,translate:i})=>{const{editSvc:o,formula:s,gos:a}=e,{column:l,rowNode:u}=t,d=l.colDef;if(d.allowFormula&&s?.active){const w=s.getFormulaError(l,u);if(w)return{value:GFe(w,i),location:"cellFormula",shouldDisplay:()=>!!s?.getFormulaError(l,u)}}if(!!!o?.isEditing(t)){const w=bF(e,t,i);if(w)return{value:w,location:"cellEditor",shouldDisplay:()=>!o?.isEditing(t)&&!!bF(e,t,i)}}const{shouldDisplayCustomTooltip:g,shouldDisplayColumnTooltip:m}=r;if(n!=null)return{value:n,location:"cell",shouldDisplay:g};const y=u.data;if(d.tooltipField&&Ve(y)){const w=d.tooltipField;return{value:l.isTooltipFieldContainsDots()?ob(y,w):y[w],location:"cell",shouldDisplay:m}}const b=d.tooltipValueGetter;return b?{value:b(ft(a,{location:"cell",colDef:l.colDef,column:l,rowIndex:t.cellPosition.rowIndex,node:u,data:u.data,value:t.value,valueFormatted:t.valueFormatted})),location:"cell",shouldDisplay:m}:null},$Fe=class extends Se{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,n,r){if(e&&t.destroyBean(e),!t.isAlive())return;const i=this.gos,o=yF(i),{column:s,eGui:a}=t,l=s.colDef;!r&&o&&!l.headerComponent&&(r=Ib(()=>a.querySelector(".ag-header-cell-text")));const u="header",f=this.beans.colNames.getDisplayNameForColumn(s,"header",!0),g=n??f,m={getGui:()=>a,getLocation:()=>u,getTooltipValue:()=>n??l?.headerTooltipValueGetter?.(ft(i,{location:u,colDef:l,column:s,value:g,valueFormatted:f}))??l?.headerTooltip,shouldDisplayTooltip:r,getAdditionalParams:()=>({column:s,colDef:s.colDef})};let y=this.createTooltipFeature(m);return y&&(y=t.createBean(y),t.setRefreshFunction("tooltip",()=>y.refreshTooltip())),y}setupHeaderGroupTooltip(e,t,n,r){if(e&&t.destroyBean(e),!t.isAlive())return;const i=this.gos,o=yF(i),{column:s,eGui:a}=t,l=s.getColGroupDef();!r&&o&&!l?.headerGroupComponent&&(r=Ib(()=>a.querySelector(".ag-header-group-text")));const u="headerGroup",f=this.beans.colNames.getDisplayNameForColumnGroup(s,"header"),g=n??f,m={getGui:()=>a,getLocation:()=>u,getTooltipValue:()=>n??l?.headerTooltipValueGetter?.(ft(i,{location:u,colDef:l,column:s,value:g,valueFormatted:f}))??l?.headerTooltip,shouldDisplayTooltip:r,getAdditionalParams:()=>{const b={column:s};return l&&(b.colDef=l),b}},y=this.createTooltipFeature(m);return y&&t.createBean(y)}enableCellTooltipFeature(e,t,n){const{beans:r}=this,{column:i,rowNode:o}=e,s=UFe(r,e,n),a=this.getLocaleTextFunc();let l=null;const u=()=>(l=WFe({beans:r,ctrl:e,value:t,displayFunctions:s,translate:a}),l),f={getGui:()=>e.eGui,getLocation:()=>l?.location??"cell",getTooltipValue:()=>u()?.value,shouldDisplayTooltip:()=>{const g=l??u();return g?g.shouldDisplay?g.shouldDisplay():!0:!1},getAdditionalParams:()=>({column:i,colDef:i.colDef,rowIndex:e.cellPosition.rowIndex,node:o,data:o.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(f,r)}setupFullWidthRowTooltip(e,t,n,r){const i={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>n,getLocation:()=>
vendor: 5,039 bytes, line 892
892"fullWidthRow",shouldDisplayTooltip:r},o=this.beans,s=o.context;e&&t.destroyBean(e,s);const a=this.createTooltipFeature(i,o);if(a)return t.createBean(a,s)}setupCellEditorTooltip(e,t){const{beans:n}=this,{context:r}=n,i=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!i)return;const o={getGui:()=>i,getTooltipValue:()=>bF(n,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:a}=n,l=a?.getRowValidationModel()?.getRowValidationMap(),u=a?.getCellValidationModel()?.getCellValidationMap(),d=!!l&&l.size>0,f=!!u&&u.size>0;return d||f}},s=this.createTooltipFeature(o,n);if(s)return e.createBean(s,r)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=Ve(t.tooltipField)||Ve(t.tooltipValueGetter)||Ve(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},qFe=class extends _Fe{createTooltipComp(e,t){DRe(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},pre={moduleName:"Tooltip",version:Le,beans:[$Fe],dynamicBeans:{tooltipFeature:fre,highlightTooltipFeature:FFe,tooltipStateManager:qFe},userComponents:{agTooltipComponent:kFe},dependsOn:[XE],css:[LFe]},_p=class{constructor(e){this.cellValueChanges=e}},cD=class extends _p{constructor(e,t,n,r){super(e),this.initialRange=t,this.finalRange=n,this.ranges=r}},KFe=10,Uj=class{constructor(e){this.actionStack=[],this.maxStackSize=e||KFe,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},YFe=class extends Se{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.activeCellEdit!==null&&mN(this.activeCellEdit,t),r=this.activeRowEdit!==null&&fAe(this.activeRowEdit,t);if(!(n||r||this.isPasting||this.isRangeInAction))return;const{rowPinned:o,rowIndex:s,column:a,oldValue:l,value:u}=e,d={rowPinned:o,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const n=e.get("undoRedoCellEditingLimit");if(n<=0)return;this.undoStack=new Uj(n),this.redoStack=new Uj(n),this.addListeners();const r=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:i=>{i.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:r,newColumnsLoaded:r,columnGroupOpened:r,columnRowGroupChanged:r,columnMoved:r,columnPinned:r,columnVisible:r,rowDragEnd:r}),t.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:n,redoStack:r}=this;t.dispatchEvent({type:"undoStarted",source:e});const i=this.undoRedo(n,r,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:i})}redo(e){const{eventSvc:t,undoStack:n,redoStack:r}=this;t.dispatchEvent({type:"redoStarted",source:e});const i=this.undoRedo(r,n,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:i})}undoRedo(e,t,n,r,i){if(!e)return!1;const o=e.pop();return o?.cellValueChanges?(this.processAction(o,s=>s[r],i),o instanceof cD?this.processRange(o.ranges||[o[n]]):this.processCell(o.cellValueChanges),t.push(o),!0):!1}processAction(e,t,n){const{changeDetectionSvc:r}=this.beans;r?.beginDeferred();try{for(const i of e.cellValueChanges){const{rowIndex:o,rowPinned:s,columnId:a}=i,l={rowIndex:o,rowPinned:s},u=Jl(this.beans,l);u?.displayed&&u.setDataValue(a,t(i),n)}}finally{r?.endDeferred()}}processRange(e){let t;const n=this.beans.rangeSvc;n.removeAllCellRanges(!0),e.forEach((r,i)=>{if(!r)return;const o=r.startRow,s=r.endRow;i===e.length-1&&(t={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:r.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:r.startColumn,columns:r.columns};n.addCellRange(a)})}processCell(e){const t=e[0],{rowIndex:n,rowPinned:r}=t,i={rowIndex:n,rowPinned:r},o=Jl(this.beans,i),s={rowPinned:t.rowPinned,rowIndex:o.rowIndex,columnId:t.columnId};this.setLastFocusedCell(s)}setLastFocusedCell(e){const{rowIndex:t,columnId:n,rowPinned:r}
vendor: 4,185 bytes, line 892
892=e,{colModel:i,focusSvc:o,rangeSvc:s}=this.beans,a=i.getCol(n);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const u={rowIndex:t,column:a,rowPinned:r};o.setFocusedCell({...u,forceBrowserFocus:!0}),s?.setRangeToCell(u)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new _p(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const n=new _p(this.cellValueChanges);this.pushActionsToUndoStack(n)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new _p(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new cD(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:n}=this.beans;t&&qd(n)?e=new cD(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new _p(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){e==="bulkEditing"?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if(e==="bulkEditing"&&!this.bulkEditing||e==="batchEditing"&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;const n=new _p(t??[]);this.pushActionsToUndoStack(n),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},XFe=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) .ag-text-area-input{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}",ZFe={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},QFe=class extends WE{constructor(){super(ZFe,[RN]),this.eEditor=Ye}initialiseEditor(e){this.agSetEditValue(e.value),this.eEditor.getInputElement().setAttribute("tabindex","-1"),this.addManagedListeners(this.eEditor,{fieldValueChanged:n=>this.setAriaLabel(n.selected)})}agSetEditValue(e){this.params.value=e;const t=e??void 0;this.eEditor.setValue(t,!0),this.setAriaLabel(t)}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),n=VE(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${r} (${n})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getIn
vendor: 18,937 bytes, line 892
892putElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,n=this.getValue();return t?t({value:n,internalErrors:null,cellEditorParams:e}):null}},fc=class extends ff{constructor(e,t="ag-text-field",n="text"){super(e,t,n)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const n=this.eInput;return n.value!==e&&(n.value=Ve(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,n=e.length>0;t.setCustomValidity(e),n&&t.reportValidity(),YL(t,n)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=n=>{ine(n)&&n.key&&!e.test(n.key)&&n.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:n=>{n.clipboardData?.getData("text")?.split("").some(i=>!e.test(i))&&n.preventDefault()}})}},ZE={selector:"AG-INPUT-TEXT-FIELD",component:fc},JFe=class extends fc{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=ih();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){$n(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Ao(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,$o(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Ao(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,$o(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,$o(this.eInput,"step",e),this)}setIncludeTime(e){return this.includeTime===e?this:(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1),this)}getDate(){if(this.eInput.validity.valid)return Po(this.getValue())??void 0}setDate(e,t){this.setValue(Ao(e??null,this.includeTime),t)}},mre={selector:"AG-INPUT-DATE-FIELD",component:JFe},QE=class extends WE{constructor(e){super(),this.cellEditorInput=e,this.eEditor=Ye}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:n}=this,{cellStartedEdit:r,eventKey:i,suppressPreventDefault:o}=e;n.getInputElement().setAttribute("title",""),t.init(n,e);let s,a=!0;r?(this.focusAfterAttached=!0,i===fe.BACKSPACE||i===fe.DELETE?s="":i?.length===1?o?a=!1:s=i:(s=t.getStartValue(),i!==fe.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,s=t.getStartValue()),a&&s!=null&&n.setStartValue(s),this.addGuiEventListener("keydown",l=>{const{key:u}=l;(u===fe.PAGE_UP||u===fe.PAGE_DOWN)&&l.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;ih()||t.getFocusableElement().focus();const n=t.getInputElement();this.highlightAllOnFocus?n.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}agSetEditValue(e){this.params.value=e;const t=this.cellEditorInput.getStartValue();this.eEditor.setStartValue(t??null)}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},eke={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},tke=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return eke}getAgComponents(){return[mre]}init(e,t){this.eEditor=e,this.params=t;const{min:n,max:r,step:i,colDef:o}=t;n!=null&&e.setMin(n),r!=null&&e.setMax(r),i!=null&&e.setStep(i),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(o.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const t=this.eEditor.getInputElement().valueAsDate,{params:n}=this,{min:r,max:i,getValidationErrors:o}=n;let s=[];const a=this.getLocaleTextFunc();if(t instanceof Date&&!isNaN(t.getTime())){if(r){const l=r instanceof Date?r:new Date(r);if(t<l){const u=l.toLocaleDateString();s.push(a("minDateValidation",`Date must be after ${u}`,[u]))}}if(i){const l=i instanceof Date?i:new Date(i);if(t>l){const u=l.toLocaleDateString();s.push(a("maxDateValidation",`Date must be before ${u}`,[u]))}}}return s.length||(s=null),o?o({value:t,cellEditorParams:n,internalErrors:s}):s}getValue(){const{eEditor:e,params:t}=this,n=e.getDate();return!Ve(n)&&!Ve(t.value)?t.value:n??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return Ao(e,this.includeTime??!1)}},nke=class extends QE{constructor(){super(new tke(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},rke={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},ike=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t,this.cachedRaw=this}getTemplate(){return rke}getAgComponents(){return[mre]}init(e,t){this.eEditor=e,this.params=t;const{min:n,max:r,step:i,colDef:o}=t;n!=null&&e.setMin(n),r!=null&&e.setMax(r),i!=null&&e.setStep(i),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(o.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,n=e.getInputElement().value,r=this.formatDate(this.parseDate(n??void 0)),{min:i,max:o,getValidationErrors:s}=t;let a=[];if(r){const l=new Date(r),u=this.getLocaleTextFunc();if(i){const d=new Date(i);if(l<d){const f=d.toLocaleDateString();a.push(u("minDateValidation",`Date must be after ${f}`,[f]))}}if(o){const d=new Date(o);if(l>d){const f=d.toLocaleDateString();a.push(u("maxDateValidation",`Date must be before ${f}`,[f]))}}}return a.length||(a=null),s?s({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,n=this.formatDate(t.getDate());if(Object.is(this.cachedRaw,n))return this.cachedParsed;let r;return!Ve(n)&&!Ve(e.value)?r=e.value:r=e.parseValue(n??""),this.cachedRaw=n,this.cachedParsed=r,r}getStartValue(){return Ao(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):Po(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):Ao(e??null,this.includeTime??!1)??void 0}},oke=class extends QE{constructor(){super(new ike(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},ske=class extends ff{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const n=super.setValue(e,t);return this.eInput.value=e,n}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},ake={selector:"AG-INPUT-TEXT-AREA",component:ske},lke={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},uke=class extends WE{constructor(){super(lke,[ake]),this.eEditor=Ye,this.cachedRaw=this}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:n,eventKey:r,maxLength:i,cols:o,rows:s}=e;this.focusAfterAttached=n,t.getInputElement().setAttribute("title",""),t.setMaxLength(i||200).setCols(o||60).setRows(s||10);let a;n?(this.focusAfterAttached=!0,r===fe.BACKSPACE||r===fe.DELETE?a="":r?.length===1?a=r:(a=this.getStartValue(e),r!==fe.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,a=this.getStartValue(e)),a!=null&&t.setValue(a,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}agSetEditValue(e){this.params.value=e;const t=this.getStartValue(this.params);this.eEditor.setValue(t??"",!0)}onKeyDown(e){const t=e.key;(t===fe.LEFT||t===fe.UP||t===fe.RIGHT||t===fe.DOWN||e.shiftKey&&t===fe.ENTER)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:n}=this,r=this.getLocaleTextFunc();e.setInputAriaLabel(r("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),n&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:n}=t,r=e.getValue();if(!Ve(r)&&!Ve(n))return n;if(Object.is(this.cachedRaw,r))return this.cachedParsed;const i=t.parseValue(r);return this.cachedRaw=r,this.cachedParsed=i,i}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:n}=e,r=this.getLocaleTextFunc(),i=this.getValue();let o=[];return typeof i=="string"&&t!=null&&i.length>t&&o.push(r("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),o.length||(o=null),n?n({value:i,internalErrors:o,cellEditorParams:e}):o}},kN=class extends fc{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const o=Number.parseFloat(e.value),s=isNaN(o)?"":this.normalizeValue(o.toString());this.value!==s&&this.setValue(s)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:n,max:r,step:i}=this.config;typeof t=="number"&&this.setPrecision(t),typeof n=="number"&&this.setMin(n),typeof r=="number"&&this.setMax(r),typeof i=="number"&&this.setStep(i)}onWheel(e){$n(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const n=this.precision;if(n==null)return e;if(t){const i=Number.parseFloat(e).toFixed(n);return Number.parseFloat(i).toString()}const r=String(e).split(".");if(r.length>1){if(r[1].length<=n)return e;if(n>0)return`${r[0]}.${r[1].slice(0,n)}`}return r[0]}setMin(e){return this.min===e?this:(this.min=e,$o(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,$o(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,$o(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(n=>super.setValue(n,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,n){if(Ve(n)){let r=this.isScientificNotation(n);if(r&&this.eInput.validity.valid)return e(n);if(!r){n=this.adjustPrecision(n);const i=this.normalizeValue(n);r=n!=i}if(r)return t(n)}return e(n)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const n=t.value;return this.isScientificNotation(n)?this.adjustPrecision(n,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},cke={selector:"AG-INPUT-NUMBER-FIELD",component:kN},dke={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},hke=class{constructor(e){this.getLocaleTextFunc=e,this.cachedRaw=this}getTemplate(){return dke}getAgComponents(){return[cke]}init(e,t){this.eEditor=e,this.params=t;const{max:n,min:r,precision:i,step:o}=t;n!=null&&e.setMax(n),r!=null&&e.setMin(r),i!=null&&e.setPrecision(i),o!=null&&e.setStep(o);const s=e.getInputElement();t.preventStepping?e.addManagedElementListeners(s,{keydown:this.preventStepping}):t.showStepperButtons&&s.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:n,getValidationErrors:r}=e,o=this.eEditor.getInputElement().valueAsNumber,s=this.getLocaleTextFunc();let a=[];return typeof o=="number"&&(t!=null&&o<t&&a.push(s("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),n!=null&&o>n&&a.push(s("maxValueValidation",`Must be less than or equal to ${n}.`,[String(n)]))),a.length||(a=null),r?r({value:o,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){(e.key===fe.UP||e.key===fe.DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,n=e.getValue();if(!Ve(n)&&!Ve(t.value))return t.value;if(Object.is(this.cachedRaw,n))return this.cachedParsed;const r=t.parseValue(n);let i;if(r==null)i=r;else if(typeof r=="string")if(r==="")i=null;else{const o=Number(r);i=Number.isNaN(o)?null:o}else i=Number.isNaN(r)?null:r;return this.cachedRaw=n,this.cachedParsed=i,i}getStartValue(){return this.params.value}setCaret(){ih()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},fke=class extends QE{constructor(){super(new hke(()=>this.getLocaleTextFunc()))}},gke=".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}",pke="ag-active-item",mke=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",cls:`ag-list-item-text ag-${e}-list-item-text`,ref:"eText",children:t}]}),vke=class extends $m{constructor(e,t,n){super(mke(e,t)),this.label=t,this.value=n,this.eText=Ye}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(pke,e),$ee(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const n=this.getGui();gxe(n,e),fxe(n,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>Zee(this.eText)},t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,e,this));t&&(this.tooltipFeature=t)}addEventListeners(){const e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},yke=class extends $m{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(gke)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case fe.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const n=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(n)}break;case fe.DOWN:case fe.UP:e.preventDefault(),this.navigate(t);break;case fe.PAGE_DOWN:case fe.PAGE_UP:case fe.PAGE_HOME:case fe.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:n}=e,r=n??t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();Jo(this.getGui()),this.listItems=[],this.refreshAriaRole()}updateOptions(e){const t=this.options!==e;return t&&(this.clearOptions(),this.addOptions(e)),t}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const n=this.options.findIndex(r=>r.value===e);if(n!==-1){const r=this.options[n];this.value=r.value,this.displayValue=r.text,this.highlightItem(this.listItems[n]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Za(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const n=this.getGui(),{scrollTop:r,clientHeight:i}=n,{offsetTop:o,offsetHeight:s}=t;(o+s>r+i||o<r)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const n=new vke(this.cssIdentifier,t,e);n.setParentComponent(this);const r=this.createManagedBean(n);this.listItems.push(r),this.getGui().appendChild(r.getGui())}navigate(e){const t=e===fe.DOWN;let n;const{listItems:r,highlightedItem:i}=this;if(!i)n=t?r[0]:gn(r);else{let s=r.indexOf(i)+(t?1:-1);s=Math.min(Math.max(s,0),r.length-1),n=r[s]}this.highlightItem(n)}navigateToPage(e){const{listItems:t,highlightedItem:n}=this;if(!n||t.length===0)return;const r=t.indexOf(n),i=this.options.length-1,o=t[0].getHeight(),s=Math.floor(this.getGui().clientHeight/o);let a=-1;e===fe.PAGE_HOME?a=0:e===fe.PAGE_END?a=i:e===fe.PAGE_DOWN?a=Math.min(r+s,i):e===fe.PAGE_UP&&(a=Math.max(r-s,0)),a!==-1&&this.highlightItem(t[a])}refreshAriaRole(){jf(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((n,r)=>{n.setIndex(r+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},bke=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}.ag-picker-field-wrapper:where(.ag-picker-has-focus),.ag-picker-field-wrapper:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}.ag-picker-field-wrapper:disabled{opacity:.5}",wke={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},Cke=class extends Pne{constructor(e){if(super(e,e?.template||wke,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=Ye,this.eWrapper=Ye,this.eDisplayField=Ye,this.eIcon=Ye,this.registerCSS(bke),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:n,variableWidth:r,minPickerWidth:i,maxPickerWidth:o}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!r,n!=null&&this.setPickerMaxHeight(n),i!=null&&this.setPickerMinWidth(i),o!=null&&this.setPickerMaxWidth(o)}
vendor: 4,314 bytes, line 892
892postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:n,inputWidth:r}=this.config;if(n){const i=this.beans.iconSvc.createIconNoSpan(n);i&&this.eIcon.appendChild(i)}r!=null&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),W_(e,!1),this.ariaRole&&jf(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case fe.UP:case fe.DOWN:case fe.ENTER:case fe.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case fe.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:n,pickerAriaLabelValue:r,modalPicker:i=!0},maxPickerHeight:o,minPickerWidth:s,maxPickerWidth:a,variableWidth:l,beans:u,eWrapper:d}=this,f={modal:i,eChild:e,closeOnEsc:!0,closedCallback:()=>{const b=$L(u);this.beforeHidePicker(),b&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(n,r),anchorToElement:d};e.style.position="absolute";const g=u.popupSvc,m=g.addPopup(f);l?(s&&(e.style.minWidth=s),e.style.width=JL(_1(d)),a&&(e.style.maxWidth=a)):L1(e,a??_1(d));const y=o??`${ZL(g.getPopupParent())}px`;return e.style.setProperty("max-height",y),this.alignPickerToComponent(),m.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:n,gos:r},eWrapper:i,pickerComponent:o}=this,s=r.get("enableRtl")?"right":"left";n.positionPopupByComponent({type:t,eventSource:i,ePopup:o.getGui(),position:"under",alignSide:s,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();W_(t,e);const n=this.eWrapper.classList;n.toggle("ag-picker-expanded",e),n.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return L1(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},Ske=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}
892.ag-select:where(:not(.ag-cell-editor,.ag-label-align-top)){min-height:var(--ag-list-item-height)}:where(.ag-select){.ag-picker-field-wrapper{cursor:default;padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}:where(.ag-ltr) .ag-select-list-item{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-select-list-item{padding-right:var(--ag-spacing)}.ag-select-list-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",LN=class extends Cke{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(Ske)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:Ib(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:n}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),n&&t==null&&(this.eDisplayField.textContent=n),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new yke("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),n=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",n),Sxe(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:r=>{r?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){const{key:t}=e;switch(t===fe.TAB&&this.hidePicker(),t){case fe.ENTER:case fe.UP:case fe.DOWN:case fe.PAGE_UP:case fe.PAGE_DOWN:case fe.PAGE_HOME:case fe.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case fe.ESCAPE:super.onKeyDown(e);break;case fe.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}updateOptions(e){return this.listComponent?.updateOptions(e)&&this.setValue(void 0,!0),this}setValue(e,t,n){const{listComponent:r,config:{placeholder:i},eDisplayField:o,tooltipFeature:s}=this;if(this.value===e||!r)return this;if(n||r.setValue(e,!0),r.getValue()===this.getValue())return this;let l=r.getDisplayValue();return l==null&&i&&(l=i),o.textContent=l,s?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},xke={selector:"AG-SELECT",component:LN},Eke={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},Rke=class extends WE{constructor(){super(Eke,[xke]),this.eEditor=Ye,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:n,gos:r}=this,{values:i,value:o,eventKey:s}=e;if(rr(i)){Me(58);return}this.startedByEnter=s!=null?s===fe.ENTER:!1;let a=!1;
892i.forEach(f=>{const g={value:f},m=n.formatValue(e.column,null,f),y=m!=null;g.text=y?m:f,t.addOption(g),a=a||o===f}),a?t.setValue(e.value??void 0,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:u,valueListMaxHeight:d}=e;l!=null&&t.setPickerGap(l),d!=null&&t.setPickerMaxHeight(d),u!=null&&t.setPickerMaxWidth(u),r.get("editType")!=="fullRow"&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}agSetEditValue(e){this.params.value=e,this.eEditor.setValue(e??void 0,!0)}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:n}=e,r=this.getValue();let i=[];if(t&&r!=null&&!t.includes(r)){const o=this.getLocaleTextFunc();i.push(o("invalidSelectionValidation","Invalid selection."))}else i=null;return n?n({value:r,internalErrors:i,cellEditorParams:e}):i}},Ake={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},Tke=class{constructor(e){this.getLocaleTextFunc=e,this.cachedRaw=this}getTemplate(){return Ake}getAgComponents(){return[ZE]}init(e,t){this.eEditor=e,this.params=t;const n=t.maxLength;n!=null&&e.setMaxLength(n)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:n}=e,r=this.getValue(),i=this.getLocaleTextFunc();let o=[];return t!=null&&typeof r=="string"&&r.length>t&&o.push(i("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),o.length||(o=null),n?n({value:r,cellEditorParams:e,internalErrors:o}):o}getValue(){const{eEditor:e,params:t}=this,n=e.getValue();if(!Ve(n)&&!Ve(t.value))return t.value;if(Object.is(this.cachedRaw,n))return this.cachedParsed;const r=t.parseValue(n);return this.cachedRaw=n,this.cachedParsed=r,r}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){ih()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),n=Ve(t)&&t.length||0;n&&e.getInputElement().setSelectionRange(n,n)}},Wj=class extends QE{constructor(){super(new Tke(()=>this.getLocaleTextFunc()))}};function Pke(e){e.undoRedo?.undo("api")}function Oke(e){e.undoRedo?.redo("api")}function Dke(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function Mke(e){const t=e.editModelSvc?.getEditMap(),n=[];return t?.forEach((r,i)=>{const{rowIndex:o,rowPinned:s}=i;r.forEach((a,l)=>{const{editorValue:u,pendingValue:d,sourceValue:f,state:g}=a,m=Ka(a);let y=u??d;y===ci&&(y=void 0);const b={newValue:y,oldValue:f,state:g,column:l,colId:l.getColId(),colKey:l.getColId(),rowIndex:o,rowPinned:s},w=g==="editing";(w||!w&&m)&&n.push(b)})}),n}function Ike(e,t=!1){const{editSvc:n}=e;if(n?.isBatchEditing()){if(t)for(const r of e.editModelSvc?.getEditPositions()??[])r.state==="editing"&&n.revertSingleCellEdit(r);else Id(e,{persist:!0});Rd(e,void 0,{cancel:t})}else n?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function _ke(e,t){const n=zt(e,t);return!!e.editSvc?.isEditing(n)}function Fke(e,t){const{key:n,colKey:r,rowIndex:i,rowPinned:o}=t,{editSvc:s,colModel:a}=e,l=a.getCol(r);if(!l){Me(12,{colKey:r});return}const d=Jl(e,{rowIndex:i,rowPinned:o||null});if(!d){Me(290,{rowIndex:i,rowPinned:o});return}if(!s?.isCellEditable({rowNode:d,column:l},"api"))return;o==null&&lre(e,i),are(e,r),s?.startEditing({rowNode:d,column:l},{event:n?new KeyboardEvent("keydown",{key:n}):void 0,source:"api",editable:!0})}function kke(e){return e.editSvc?.validateEdit()||null}function Lke(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function Nke(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var Bke={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},Hke=class extends fN{constructor(e){super(Bke),this.params=e}postConstruct(){$f(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,n=r=>{aF(this.gos,r,t.node,t.column,!0)||t.onKeyDown(r)};this.addManagedElementListeners(e,{keydown:n})}};function Vke(e,{column:t},n,r,i="ui"){if(n instanceof KeyboardEvent&&(n.key===fe.TAB||n.key===fe.ENTER||n.key===fe.F2||n.key===fe.BACKSPACE&&r))return!0;
vendor: 14,646 bytes, line 892
892if(n?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const s=t?.getColDef(),a=zke(e.gos,s),l=n?.type;return l==="click"&&n?.detail===1&&a===1||l==="dblclick"&&n?.detail===2&&a===2?!0:i==="api"?!!r:!1}function zke(e,t){return e.get("suppressClickEdit")===!0?0:e.get("singleClickEdit")===!0||t?.singleClickEdit?1:2}function dD(e,t){return e.editModelSvc?.hasEdits(t,{withOpenEditor:!0})??!1}function wF(e,t){const n=t.column,r=t.rowNode,i=n.getColDef();if(!r)return dD(e,t);const o=i.editable;return r.group&&i.groupRowEditable!=null?e.rowGroupingEditValueSvc?.isGroupCellEditable(r,n)?!0:dD(e,t):n.isColumnFunc(r,o)?!0:dD(e,t)}function Gke(e,t,n="ui"){const r=wF(e,t);if(r||n==="ui")return r;const{rowNode:i,column:o}=t;for(const s of e.colModel.getCols())if(s!==o&&wF(e,{rowNode:i,column:s}))return!0;return!1}var rx=(e,t=!1)=>{if(e!==void 0)return Ka(e)||t&&e.state==="editing"};function vre(e,t,n=!1){return rx(e.editModelSvc?.getEdit(t),n)}var yre=(e,t,n)=>{if(e)for(let r=0,i=e.length;r<i;++r){const o=e[r];if(o.data&&(rx(t?.getEdit({rowNode:o,column:n}))||rx(t?.getEdit({rowNode:o.pinnedSibling,column:n})))||yre(o.childrenAfterGroup,t,n))return!0}};function bre(e,t){const{column:n,rowNode:r}=t;return e.gos.get("groupTotalRow")&&!r?.footer?!1:yre(r?.childrenAfterGroup,e.editModelSvc,n)}function wre(e,{rowNode:t,column:n}){if(t=t.pinnedSibling,!!t)return rx(e.editModelSvc?.getEdit({rowNode:t,column:n}))}var jke=class extends Se{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:n}=this;if(t?.isBatchEditing()&&t.isEditing()){const i=vre(n,e)||bre(n,e)||wre(n,e);this.applyBatchingStyle(i)}else this.applyBatchingStyle(!1);const r=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",r)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},Uke=class extends Se{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:n}=this;let r=e.rowNode,i=t?.getEditRow(r);const o=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:r});if(!i&&r.pinnedSibling&&(r=r.pinnedSibling,i=t?.getEditRow(r)),i){const s=Array.from(i.keys()).some(a=>{const l={rowNode:r,column:a};return vre(n,l,!0)||bre(n,l)||wre(n,l)});this.applyStyle(o,s);return}this.applyStyle(o)}applyStyle(e=!1,t=!1){const n=!!this.editSvc?.isBatchEditing(),r=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,({rowComp:i})=>{i.toggleCss("ag-row-editing",r&&t),i.toggleCss("ag-row-batch-edit",r&&t&&n),i.toggleCss("ag-row-inline-editing",t),i.toggleCss("ag-row-not-inline-editing",!t),i.toggleCss("ag-row-editing-invalid",r&&t&&e)})}},Wke=({rowModel:e,pinnedRowModel:t,editModelSvc:n},r)=>{const i=new Set;e.forEachNode(o=>r.has(o)&&i.add(o)),t?.forEachPinnedRow("top",o=>r.has(o)&&i.add(o)),t?.forEachPinnedRow("bottom",o=>r.has(o)&&i.add(o));for(const o of r)i.has(o)||n.removeEdits({rowNode:o});return i},$ke=({editModelSvc:e},t,n)=>{for(const r of t)e?.getEditRow(r)?.forEach((i,o)=>!n.has(o)&&e.removeEdits({rowNode:r,column:o}))},qke=e=>()=>{const t=new Set(e.colModel.getCols()),n=e.editModelSvc.getEditMap(!0),r=new Set(n.keys());$ke(e,Wke(e,r),t)},Kke=new Set(["undo","redo","paste","bulk","rangeSvc"]),Yke=new Set(["ui","api"]),Cre={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},Xke=new Set(Object.keys(Cre)),Zke=new Set(["paste","rangeSvc","cellClear","redo","undo"]),hD={cancel:!0,source:"api"},Qke={cancel:!1,source:"api"},jh={checkSiblings:!0},gd={force:!0,suppressFlash:!0},Jke={force:!0},eLe=class extends Se{constructor(){super(...arguments),this.beanName="editSvc",this.committing=!1,this.batch=!1,this.batchStartDispatched=!1,this.stopping=!1,this.rangeSelectionWhileEditing=0}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:r})=>{this.stopEditing(void 0,hD),this.createStrategy(r)});const t=qke(e),n=()=>{const r=this.model.getCellValidationModel().getCellValidationMap().size>0,i=this.model.getRowValidationModel().getRowValidationMap().size>0;return r||i?this.stopEditing(void 0,hD):this.isEditing()&&(this.batch?Rd(e,this.model.getEditPositions()):this.stopEditing(void 0,Qke)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:n,filterChanged:n,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}startBatchEditing(){this.batch||(this.batch=!0,this.batchStartDispatched=!1,this.stopEditing(void 0,hD))}stopBatchEditing(e){this.batch&&(e&&this.stopEditing(void 0,e),this.batchStartDispatched&&this.dispatchBatchStopped(new Map,!1),this.batch=!1,this.batchStartDispatched=!1)}ensureBatchStarted(){!this.batch||this.batchStartDispatched||(this.batchStartDispatched=!0,this.dispatchBatchEvent("batchEditingStarted",new Map))}createStrategy(e){const{beans:t,gos:n,strategy:r}=this,i=$j(n,e);if(r){if(r.beanName===i)return r;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(i,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,n,r="ui"){const i=Vke(this.beans,e,t,n,r);return i&&(this.strategy??(this.strategy=this.createStrategy())),i}shouldStopEditing(e,t,n="ui"){return this.strategy?.shouldStop(e,t,n)??null}shouldCancelEditing(e,t,n="ui"){return this.strategy?.shouldCancel(e,t,n)??null}validateEdit(){return _2e(this.beans)}isEditing(e,t){return this.model.hasEdits(e??void 0,t??jh)}isRowEditing(e,t){return!!e&&this.model.hasRowEdits(e,t)}enableRangeSelectionWhileEditing(){this.beans.rangeSvc&&this.gos.get("cellSelection")&&this.rangeSelectionWhileEditing++}disableRangeSelectionWhileEditing(){this.rangeSelectionWhileEditing=Math.max(0,this.rangeSelectionWhileEditing-1)}isRangeSelectionEnabledWhileEditing(){return this.rangeSelectionWhileEditing>0}startEditing(e,t){const{startedEdit:n=!0,event:r=null,source:i="ui",ignoreEventKey:o=!1,silent:s}=t;if(this.strategy??(this.strategy=this.createStrategy()),!(t.editable??this.isCellEditable(e,"api")))return;const l=zt(this.beans,e);if(l&&!l.comp){t.editable=void 0,l.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}const u=this.shouldStartEditing(e,r,n,i);if(u===!1&&i!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,i)&&!t.continueEditing&&this.stopEditing(void 0,{source:i}),u&&this.ensureBatchStarted(),this.strategy.start({position:e,event:r,source:i,ignoreEventKey:o,startedEdit:n,silent:s})}stopEditing(e,t){const n=this.prepareStopContext(e,t);if(!n)return!1;this.stopping=!0;let r=!1;try{const i=this.processStopRequest(n);return r||(r=i.res),this.finishStopEditing({...n,edits:i.edits,params:t,position:e,res:r}),r}finally{this.rangeSelectionWhileEditing=0,this.stopping=!1}}prepareStopContext(e,t){const{event:n=null,cancel:r=!1,source:i="ui",forceCancel:o=!1,forceStop:s=!1,commit:a=!1}=t||{};if(Xke.has(i)&&this.batch)return e?.rowNode&&e?.column&&this.bulkRefreshCell(e),null;const l=this.committing?Cre[i]:i;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,jh))||!this.strategy||this.stopping)return null;const d=zt(this.beans,e);d&&(d.onEditorAttachedFuncs=[]);const f=!r&&(!!this.shouldStopEditing(e,n,l)||(this.committing||i==="paste")&&!this.batch)||s,g=r&&!!this.shouldCancelEditing(e,n,l)||o;return{cancel:r,cellCtrl:d,edits:this.model.getEditMap(!0),event:n??null,forceCancel:o,forceStop:s,commit:a,position:e,source:i,treatAsSource:l,willCancel:g,willStop:f}}processStopRequest(e){const{event:t,position:n,willCancel:r,willStop:i}=e;return i||r?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,n)?{res:!1,edits:this.handleMidBatchKey(t,n,e)}:(Id(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(n),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){const{beans:t,model:n}=this,{cancel:r,commit:i,edits:o,event:s,source:a,willCancel:l,willStop:u}=e,d=!this.batch||!l;Id(t,{persist:d,isCancelling:l||r,isStopping:u});const f=n.getEditMap(),m=!l&&(!this.batch||i)?this.processEdits(f,a):[];r?this.strategy?.stopCancelled(e.forceCancel):this.strategy?.stopCommitted(s,i),this.clearValidationIfNoOpenEditors();for(const y of m)n.clearEditValue(y);this.bulkRefreshMap(o);for(const y of n.getEditPositions(f)){const b=zt(t,y),w=Ka(y);b?.refreshCell({force:!0,suppressFlash:!w})}return{res:u,edits:f}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,n){const{beans:r,model:i}=this,{cellCtrl:o,edits:s}=n,{key:a}=e,l=a===fe.ENTER,u=a===fe.ESCAPE,d=a===fe.TAB;if(l||d||u){if(l||d)Id(r,{persist:!0});else if(u&&o){const{rowNode:f,column:g}=o;if(this.batch&&f&&g){const m={rowNode:f,column:g};Rd(r,[m],{silent:!0}),this.model.stop(m,!0,!0),zt(r,m)?.refreshCell(gd)}else this.revertSingleCellEdit(o)}return this.batch?this.strategy?.cleanupEditors():Rd(r,i.getEditPositions(),{event:e,cancel:u}),e.preventDefault(),this.bulkRefreshMap(s,{suppressFlash:!0}),i.getEditMap()}return s}finishStopEditing({cellCtrl:e,edits:t,params:n,position:r,res:i,commit:o,forceCancel:s,willCancel:a,willStop:l}){const u=this.beans;i&&r&&(!this.batch||o)&&this.model.removeEdits(r),this.navigateAfterEdit(n,e?.cellPosition),zy(u),this.clearValidationIfNoOpenEditors();const{rowRenderer:d,formula:f}=u;if(a&&d.refreshRows({rowNodes:Array.from(t.keys())}),this.batch){f?f.refreshFormulas(!0):d.refreshRows({suppressFlash:!0,force:!0});const g=l&&o;(g||a&&s)&&this.dispatchBatchStopped(t,g)}}dispatchBatchStopped(e,t){let n;t&&(n=R2e(e),n.size>0&&this.ensureBatchStarted()),this.batchStartDispatched&&(this.batchStartDispatched=!1,this.dispatchBatchEvent("batchEditingStopped",n??new Map))}clearValidationIfNoOpenEditors(){this.model.hasEdits(void 0,{withOpenEditor:!0})||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap())}navigateAfterEdit(e,t){if(!e||!t)return;const{event:n,suppressNavigateAfterEdit:r}=e;if(!(n instanceof KeyboardEvent)||r)return;const{key:o,shiftKey:s}=n,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if(o!==fe.ENTER||!a)return;const l=s?fe.UP:fe.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t){const n=Array.from(e.keys()),r=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,i=[],{changeDetectionSvc:o}=this.beans;o?.beginDeferred();try{for(const s of n){const a=e.get(s);for(const l of a.keys()){const u=a.get(l),d={rowNode:s,column:l};if(Ka(u)&&!r){const f=zt(this.beans,d);this.setNodeDataValue(s,l,u.pendingValue,f,t)||i.push(d)}}}}finally{o?.endDeferred()}return i}setNodeDataValue(e,t,n,r,i="edit"){const o=Yke.has(i)?"edit":i;r&&(r.suppressRefreshCell=!0),this.committing=!0;try{return e.setDataValue(t,n,o)}finally{this.committing=!1,r&&(r.suppressRefreshCell=!1)}}syncEditAfterCommit(e,t){const n=this.model.getEdit(e);n&&n.state!=="editing"&&(t?this.beans.editModelSvc?.setEdit(e,{sourceValue:n.pendingValue}):this.model.clearEditValue(e))}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefreshMap(e);let n=gd;t?.forceRefreshOfEditCellsOnly&&(n={...tLe(e),...gd}),this.beans.rowRenderer.refreshCells(n)}dispatchEditValuesChanged({rowNode:e,column:t},n={}){if(!e||!t||!n)return;const{pendingValue:r,sourceValue:i}=n,{rowIndex:o,rowPinned:s,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:o,rowPinned:s,column:t,source:"api",data:a,newValue:r,oldValue:i,value:r,colDef:t.getColDef()})}bulkRefreshCell(e,t){hr(this.gos,this.beans.rowModel)&&this.refCell(e,this.model.getEdit(e),t)}bulkRefreshMap(e,t){hr(this.gos,this.beans.rowModel)&&e.forEach((n,r)=>{for(const i of n.keys())this.refCell({rowNode:r,column:i},n.get(i),t)})}refCell({rowNode:e,column:t},n,r={}){const{beans:i,gos:o}=this,s=new Set([e]),a=new Set,l=e.pinnedSibling;l&&s.add(l);const u=e.sibling;u&&a.add(u);let d=e.parent;for(;d;)d.sibling?.footer&&o.get("groupTotalRow")||!d.parent&&d.sibling&&o.get("grandTotalRow")?a.add(d.sibling):a.add(d),d=d.parent;for(const f of s)this.dispatchEditValuesChanged({rowNode:f,column:t},n);for(const f of s)zt(i,{rowNode:f,column:t})?.refreshCell(r);for(const f of a){const g=zt(i,{rowNode:f,column:t});g&&(g.refreshCell(r),!r.force&&this.batch&&g.editStyleFeature?.applyCellStyles?.())}}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{gos:n,beans:r}=this,i=e.rowNode;if(i.group&&e.column.getColDef().groupRowEditable==null){if(n.get("treeData")){if(!i.data&&!n.get("enableGroupEdit"))return!1}else if(!n.get("enableGroupEdit"))return!1}const o=$j(n)==="fullRow"?Gke(r,e,t):wF(r,e);return o&&(this.strategy??(this.strategy=this.createStrategy())),o}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,n=!0){if(this.hasValidationErrors(e)){const r=zt(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),n&&(r&&!r.hasBrowserFocus()&&r.focusCell(),r?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(r&&this.revertSingleCellEdit(r),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const n=zt(this.beans,e);n?.comp?.getCellEditor()&&(Rd(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),Zf(this.beans,e,{silent:!0}),Hd(this.beans),n?.refreshCell(gd),t&&(n?.focusCell(),n?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){Hd(this.beans);const t=zt(this.beans,e);t&&(t.refreshCell(gd),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let n=!1;return e?.rowNode?(n||(n=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(n||(n=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(n||(n=this.model.getCellValidationModel().getCellValidationMap().size>0),n||(n=this.model.getRowValidationModel().getRowValidationMap().size>0)),n}
892moveToNextCell(e,t,n,r="ui"){let i;const o=this.isEditing(),s=o&&this.checkNavWithValidation(void 0,n)==="block-stop";return e instanceof om&&o&&(i=this.strategy?.moveToNextEditingCell(e,t,n,r,s)),i===null||(i=i||!!this.beans.focusSvc.focusedHeader,i===!1&&!s&&this.stopEditing()),i}getPendingEditValue(e,t,n){if(n==="batch"&&!this.batch)return;const r=this.model.getEdit({rowNode:e,column:t},jh);if(!r||this.stopping&&!this.batch&&!r.editorState?.cellStartedEditing)return;if(n==="edit"){const o=r.editorValue;if(o!=null&&o!==ci)return o}const i=r.pendingValue;if(i!==ci)return i}getCellDataValue(e){const t=this.model.getEdit(e,jh);if(t){const n=t.pendingValue;if(n!==ci)return n;const r=t.sourceValue;if(r!=null)return r}return this.valueSvc.getValue(e.column,e.rowNode,"data")}addStopEditingWhenGridLosesFocus(e){S2e(this,this.beans,e)}createPopupEditorWrapper(e){return new Hke(e)}batchResetToSourceValue(e){if(!this.batch)return!1;const t=this.model.getEdit(e);if(!t)return!1;const{pendingValue:n,sourceValue:r,state:i}=t;return n===r||i==="editing"?!1:(this.dispatchEditValuesChanged(e,{...t,pendingValue:r}),this.beans.editModelSvc?.removeEdits(e),zt(this.beans,e)?.refreshCell(gd),!0)}setDataValue(e,t,n){try{const r=this.batch,i=this.isEditing(r?void 0:e);if((!i||this.committing)&&!r&&!Zke.has(n)||!i&&!r&&n==="paste"||n==="batch"&&!r)return;if(n==="edit"){if(i&&this.applyEditorValue(e,t))return!0;if(!r)return}if(this.strategy??(this.strategy=this.createStrategy()),n==="batch"||n==="edit")return this.applyDirectValue(e,t,n);const o=this.beans;let s;if(r?s="ui":this.committing?s=n??"api":s="api",!n||Kke.has(n))return this.applyDirectValue(e,t,n);const a=this.applyExistingEdit(e,t,n,s);return a!==void 0?a:(Ip(o,e,t,n,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:s,suppressNavigateAfterEdit:!0}),!0)}finally{this.committing=!1}}applyExistingEdit(e,t,n,r){const i=this.model.getEdit(e);if(i)return i.pendingValue===t?!1:i.sourceValue!==t?(Ip(this.beans,e,t,n,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:r,suppressNavigateAfterEdit:!0}),!0):(this.beans.editModelSvc?.removeEdits(e),this.ensureBatchStarted(),this.dispatchEditValuesChanged(e,{...i,pendingValue:t}),!0)}applyEditorValue(e,t){const n=this.beans,r=zt(n,e),i=r?.comp?.getCellEditor();return!r||!i?!1:(Ip(n,e,t,"edit",void 0,{persist:!0}),r.editStyleFeature?.applyCellStyles?.(),"agSetEditValue"in i?(i.agSetEditValue(t),!0):i.refresh&&r.editCompDetails?(i.refresh({...r.editCompDetails.params,value:t}),!0):(r.hasBrowserFocus()&&r.onEditorAttachedFuncs.push(()=>{const s=zt(this.beans,e);s?.focusCell(!0),s?.comp?.getCellEditor()?.focusIn?.()}),Rd(n,[e],{silent:!0,cancel:!0}),Zf(n,e,{silent:!0}),Hd(n),zt(n,e)?.refreshCell(gd),!0))}applyDirectValue(e,t,n){const r=this.beans;if(this.batch){if(n==="batch"&&zt(r,e)?.comp?.getCellEditor()){const{editModelSvc:s,valueSvc:a}=r,{rowNode:l,column:u}=e;s?.getEdit(e)?.sourceValue===void 0&&s?.setEdit(e,{sourceValue:a.getValue(u,l,"data")}),s?.setEdit(e,{pendingValue:t})}else Ip(r,e,t,n,void 0,{persist:!0}),n!=="batch"&&this.cleanupEditors();return zy(r),this.ensureBatchStarted(),this.bulkRefreshCell(e),!0}Ip(r,e,t,n,void 0,{persist:!0});const i=zt(r,e),o=this.setNodeDataValue(e.rowNode,e.column,t,i,n);return this.syncEditAfterCommit(e,o),zy(r),zt(r,e)?.refreshCell(o?Jke:gd),o}handleColDefChanged(e){T2e(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:n}=this;if(!this.batch||!n.hasRowEdits(e.rowNode,jh))return;const{rowNode:i}=e,{compDetails:o,valueToDisplay:s}=t;if(o){const{params:a}=o;return a.data=n.getEditRowDataValue(i,jh),{compDetails:o}}return{valueToDisplay:s}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,n,r){this.strategy?.dispatchCellEvent(e,t,n,r)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return ft(this.gos,{type:e,...e==="batchEditingStopped"?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(t=>({rowIndex:t.rowNode.rowIndex,rowPinned:t.rowNode.rowPinned,columnId:t.column.getColId(),newValue:t.pendingValue,oldValue:t.sourceValue}))}applyBulkEdit({rowNode:e,column:t},n){if(!n||n.length===0)return;const{beans:r,rangeSvc:i,valueSvc:o}=this,{formula:s}=r;Id(r,{persist:!0});const a=this.model.getEditMap(!0);let l=a.get(e)?.get(t)?.pendingValue,u=!1;this.batch||(this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),u=!0);const d=s?.isFormula(l)??!1;
892n.forEach(g=>{const m=g.columns.some(y=>y?.isAllowFormula());if(i?.forEachRowInRange(g,y=>{const b=Jl(r,y);if(b===void 0)return;const w=a.get(b)??new Map;let C=l;for(const E of g.columns){if(!E)continue;const A=!!d&&E.isAllowFormula();if(this.isCellEditable({rowNode:b,column:E},"api")){const T=o.getValue(E,b,"data",!0);let P=o.parseValue(E,b??null,C,T);Number.isNaN(P)&&(P=null),w.set(E,{editorValue:void 0,pendingValue:P,sourceValue:T,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}A&&(C=s?.updateFormulaByOffset({value:C,columnDelta:1}))}w.size>0&&a.set(b,w),d&&m&&(l=s?.updateFormulaByOffset({value:l,rowDelta:1}))}),this.setEditMap(a),this.batch){this.cleanupEditors(),zy(r),this.ensureBatchStarted();return}this.committing=!0;try{this.stopEditing(void 0,{source:"bulk"})}finally{this.committing=!1,u&&this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(a)})}});const f=zt(r,{rowNode:e,column:t});f&&f.focusCell(!0)}createCellStyleFeature(e){return new jke(e,this.beans)}
vendor: 5,850 bytes, line 892
892createRowStyleFeature(e){return new Uke(e,this.beans)}setEditingCells(e,t){const{beans:n}=this,{colModel:r,valueSvc:i}=n,o=new Map;for(let{colId:s,column:a,colKey:l,rowIndex:u,rowPinned:d,newValue:f,state:g}of e){const m=s?r.getCol(s):l?r.getCol(l):a;if(!m)continue;const y=Jl(n,{rowIndex:u,rowPinned:d});if(!y)continue;const b=i.getValue(m,y,"data",!0);if(!t?.forceRefreshOfEditCellsOnly&&!Ka({pendingValue:f,sourceValue:b})&&g!=="editing")continue;let w=o.get(y);w||(w=new Map,o.set(y,w)),f===void 0&&(f=ci),w.set(m,{editorValue:void 0,pendingValue:f,sourceValue:b,state:g??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(o,t)}onCellFocused(e){const t=zt(this.beans,e);if(!t||!this.isEditing(t,jh))return;const n=this.model.getEdit(t);if(!n||!Ka(n))return;const i=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(i,"pendingChange")}allowedFocusTargetOnValidation(e){return zt(this.beans,e)}};function tLe(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(t=>Array.from(t.keys())))]:void 0}}function $j(e,t){return t??e.get("editType")??"singleCell"}var Sre=class extends Se{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const n=e.previousParams,{editSvc:r,beans:i}=this,o=e.type==="cellFocused"?e.sourceEvent:null;n&&(t=zt(i,n));const{gos:s,editModelSvc:a}=i,l=e.type==="cellFocusCleared";if(r.isEditing(void 0,{withOpenEditor:!0})){const{column:u,rowIndex:d,rowPinned:f}=e,g={column:u,rowNode:Jl(i,{rowIndex:d,rowPinned:f})},m=s.get("invalidEditValueMode")==="block";if(m)return;const y=!m,b=!!a?.getCellValidationModel().hasCellValidation(g),w=y&&b;!(n||l)||r.stopEditing(void 0,{cancel:w,source:l&&y?"api":void 0,event:o})||(r.isBatchEditing()?r.cleanupEditors():r.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stopCancelled(e){const t=this.editSvc.isBatchEditing()&&!e;for(const n of this.model.getEditPositions())Bb(this.beans,n,{cancel:!0},zt(this.beans,n)),this.model.stop(n,t,!0);return!0}stopCommitted(e,t){const n=this.model.getEditPositions(),r={all:[],pass:[],fail:[]};for(const s of n)r.all.push(s),(this.model.getCellValidationModel().getCellValidation(s)?.errorMessages?.length??0)>0?r.fail.push(s):r.pass.push(s);const i=this.processValidationResults(r),o=this.editSvc.isBatchEditing()&&!t;for(const s of i.destroy)Bb(this.beans,s,{event:e},zt(this.beans,s)),this.model.stop(s,o,!1);for(const s of i.keep){const a=zt(this.beans,s);!this.editSvc.cellEditingInvalidCommitBlocks()&&a&&this.editSvc.revertSingleCellEdit(a)}return!0}cleanupEditors({rowNode:e}={},t){Id(this.beans,{persist:!1});const n=this.model.getEditPositions(),r=[];if(e)for(const i of n)i.rowNode!==e&&r.push(i);else for(const i of n)r.push(i);Rd(this.beans,r),zy(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,n=t?.getCellEditor();if(n?.focusIn)n.focusIn();else{const r=this.beans.gos.get("editType")==="fullRow";e.focusCell(r),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:n=!1,startedEdit:r,position:i,cells:o=this.model.getEditPositions()}=e,s=t instanceof KeyboardEvent&&!n&&t.key||void 0;E2e(this.beans,o,i,s,t,r)}dispatchCellEvent(e,t,n,r){const i=zt(this.beans,e);i&&this.eventSvc.dispatchEvent({...i.createEvent(t??null,n),...r})}dispatchRowEvent(e,t,n){if(n)return;const r=ex(this.beans,e);r&&this.eventSvc.dispatchEvent(r.createRowEvent(t))}shouldStop(e,t,n="ui"){const r=this.editSvc.isBatchEditing();return r&&n==="api"?!0:r&&(n==="ui"||n==="edit")?!1:n==="api"?!0:t instanceof KeyboardEvent&&!r?t.key===fe.ENTER:null}shouldCancel(e,t,n="ui"){const r=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!r&&t.key===fe.ESCAPE||r&&n==="api"||n==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const n=[];if(e.forEach((r,i)=>{r.forEach((o,s)=>{o.state==="editing"&&n.push({...o,rowNode:i,column:s})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),n.length>0){const r=n.at(-1),i=r.pendingValue===ci?void 0:r.pendingValue;this.start({position:r,event:new KeyboardEvent("keydown",{key:i}),source:"api"});const o=zt(this.beans,r);o&&this.setFocusInOnEditor(o)}}destroy(){this.cleanupEditors(),super.destroy()}},nLe=class extends Sre{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=new Set}shouldStop(e,t,n="ui"){const{rowNode:r,beans:i}=this,{rowNode:o}=e||{};if(!ex(i,{rowNode:r}))return!0;const a=super.shouldStop({rowNode:r},t,n);return a!==null?a:r?o!==r:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:n,startedEdit:r,event:i,ignoreEventKey:o}=e,{rowNode:s}=t,{beans:a,model:l,startedRows:u}=this;this.rowNode!==s&&super.cleanupEditors(t);const d=a.visibleCols.allCols,f=[],g=[];for(const m of d)m.isCellEditable(s)&&g.push(m);if(g.length!=0){u.has(s)||(this.dispatchRowEvent({rowNode:s},"rowEditingStarted",n),u.add(s));for(const m of g){const y={rowNode:s,column:m};f.push(y),l.start(y)}this.rowNode=s,this.setupEditors({cells:f,position:t,startedEdit:r,event:i,ignoreEventKey:o})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){const{rowNode:t,model:n}=this;return t&&!n.hasEdits()?!1:(super.stopCancelled(e),this.cleanupEditors({rowNode:t}
892,!0),this.rowNode=void 0,!0)}stopCommitted(e,t){const{rowNode:n,beans:r,model:i,editSvc:o}=this;if(n&&!i.hasEdits())return!1;const s=[];if(i.getEditMap().forEach((a,l)=>{if(!(!a||a.size===0)){for(const u of a.values())if(Ka(u)){s.push(l);break}}}),Hd(r),o.checkNavWithValidation({rowNode:n})==="block-stop")return!1;if(super.stopCommitted(e,t),t||!o.isBatchEditing())for(const a of s)this.dispatchRowEvent({rowNode:a},"rowValueChanged");return this.cleanupEditors({rowNode:n},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,n=e.previousParams;if(n?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const{beans:r,gos:i,model:o}=this;if(r.editSvc?.isRangeSelectionEnabledWhileEditing())return;const s=zt(r,n);i.get("invalidEditValueMode")==="block"&&s&&(o.getCellValidationModel().getCellValidation(s)||o.getRowValidationModel().getRowValidation(s))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);const{startedRows:n}=this;for(const r of n)this.dispatchRowEvent({rowNode:r},"rowEditingStopped"),this.destroyEditorsForRow(r);n.clear()}destroyEditorsForRow(e){const t=ex(this.beans,{rowNode:e});if(!t)return;const n={};for(const r of t.getAllCellCtrls())r.comp?.getCellEditor()&&Bb(this.beans,r,n,r)}moveToNextEditingCell(e,t,n,r="ui",i=!1){const{beans:o,model:s,gos:a,editSvc:l}=this,u=e.cellPosition;let d;s.suspend(!0);try{d=o.navigation?.findNextCellToFocusOn(u,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{s.suspend(!1)}if(d===!1)return null;if(d==null)return!1;const f=d.cellPosition,g=e.isCellEditable(),m=d.isCellEditable(),y=u.rowIndex===f?.rowIndex&&u.rowPinned===f.rowPinned;g&&this.setFocusOutOnEditor(e),this.restoreEditors();const b=a.get("suppressStartEditOnTab");return m&&!i?b?d.focusCell(!0,n):(d.comp?.getCellEditor()||Zf(o,d,{event:n,cellStartedEdit:!0}),this.setFocusInOnEditor(d),d.focusCell(!1,n)):(m&&i&&this.setFocusInOnEditor(d),d.focusCell(!0,n)),!y&&!i&&(l?.stopEditing({rowNode:e.rowNode},{event:n,forceStop:!0}),l?.isRowEditing(e.rowNode,{withOpenEditor:!0})&&this.cleanupEditors(d,!0),b?d.focusCell(!0,n):l.startEditing(d,{startedEdit:!0,event:n,source:r,ignoreEventKey:!0,editable:m||void 0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){const{beans:e,model:t}=this;
vendor: 18,442 bytes, line 892
892t.getEditMap().forEach((n,r)=>n.forEach(({state:i},o)=>{if(i!=="editing")return;const s=zt(e,{rowNode:r,column:o});s&&!s.comp?.getCellEditor()&&Zf(e,s,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.clear()}},rLe=class extends Sre{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,n="ui"){const r=super.shouldStop(e,t,n);if(r!==null)return r;const i=e?.rowNode,o=e?.column,s=this.rowNode,a=this.column;return(!s||!a)&&i&&o?null:s!==i||a!==o?!0:!s&&!a?this.model.hasEdits(void 0,{withOpenEditor:!0}):!1}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:n,event:r,ignoreEventKey:i}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:n,event:r,ignoreEventKey:i})}dispatchRowEvent(e,t,n){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){return super.stopCancelled(e),this.clearPosition()}stopCommitted(e,t){return super.stopCommitted(e,t),this.clearPosition()}clearPosition(){return this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:n}=this.beans,{rowIndex:r,column:i,rowPinned:o}=e,s=Jl(this.beans,{rowIndex:r,rowPinned:o}),a=gF(i),l=t.getCol(a),u=e.previousParams;if(u){const d=gF(u.column);if(u?.rowIndex===r&&d===a&&u?.rowPinned===o)return}e.type=="cellFocused"&&(n?.isRangeSelectionEnabledWhileEditing()||n?.isEditing({rowNode:s,column:l},{withOpenEditor:!0}))||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,n,r="ui",i=!1){const o=this.beans.focusSvc.getFocusedCell();o&&(e=Gp(this.beans,o)??e);const s=e.cellPosition;let a;const l=this.beans.gos.get("editType")==="fullRow";l&&this.model.suspend(!0),i||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:n}));try{a=this.beans.navigation?.findNextCellToFocusOn(s,{backwards:t,startEditing:!0})}finally{l&&this.model.suspend(!1)}if(a===!1)return null;if(a==null)return!1;const u=a.cellPosition,d=e.isCellEditable(),f=a.isCellEditable(),g=s.rowIndex===u?.rowIndex&&s.rowPinned===u.rowPinned;d&&!i&&this.setFocusOutOnEditor(e);const m=this.gos.get("suppressStartEditOnTab");let y=!1;if(!g&&!i&&(super.cleanupEditors(a,!0),m?a.focusCell(!0,n):(y=!0,this.editSvc.startEditing(a,{startedEdit:!0,event:n,source:r,ignoreEventKey:!0,editable:f}))),f&&!i){if(a.focusCell(!1,n),m)a.focusCell(!0,n);else if(!a.comp?.getCellEditor()){if(!y){const b=this.editSvc?.isEditing(a,{withOpenEditor:!0});Zf(this.beans,a,{event:n,cellStartedEdit:!0,silent:b})}this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else f&&i&&this.setFocusInOnEditor(a),a.focusCell(!0,n);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},sh={moduleName:"EditCore",version:Le,beans:[C2e,eLe],apiFunctions:{getEditingCells:Mke,getEditRowValues:Dke,getCellEditorInstances:x2e,startEditingCell:Fke,stopEditing:Ike,isEditing:_ke,validateEdit:kke},dynamicBeans:{singleCell:rLe,fullRow:nLe},dependsOn:[XE,pre],css:[XFe]},iLe={moduleName:"UndoRedoEdit",version:Le,beans:[YFe],apiFunctions:{undoCellEditing:Pke,redoCellEditing:Oke,getCurrentUndoSize:Lke,getCurrentRedoSize:Nke},dependsOn:[sh]},oLe={moduleName:"TextEditor",version:Le,userComponents:{agCellEditor:Wj,agTextCellEditor:Wj},dependsOn:[sh]},sLe={moduleName:"NumberEditor",version:Le,userComponents:{agNumberCellEditor:{classImp:fke}},dependsOn:[sh]},aLe={moduleName:"DateEditor",version:Le,userComponents:{agDateCellEditor:nke,agDateStringCellEditor:oke},dependsOn:[sh]},lLe={moduleName:"CheckboxEditor",version:Le,userComponents:{agCheckboxCellEditor:QFe},dependsOn:[sh]},uLe={moduleName:"SelectEditor",version:Le,userComponents:{agSelectCellEditor:Rke},dependsOn:[sh]},cLe={moduleName:"LargeTextEditor",version:Le,userComponents:{agLargeTextCellEditor:uke},dependsOn:[sh]},dLe={moduleName:"CustomEditor",version:Le,dependsOn:[sh]},xre={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agBigIntColumnFilter:"agBigIntColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},hLe=new Set(Object.values(xre));function pd(e,t){const n=e.filterUi;if(!n)return null;if(n.created)return n.promise;if(t)return null;const r=n.create(n.refreshed),i=n;return i.created=!0,i.promise=r,r}function fLe(e,t,n,r,i,o,s){return t.refresh?.({...n,model:r,source:o,additionalEventAttributes:s}),e().then(a=>{if(a){const{filter:l,filterParams:u}=a;Ere(l,u,r,i,o,s)}})}function Ere(e,t,n,r,i,o){e?.refresh?.({...t,model:n,state:r,source:i,additionalEventAttributes:o})}function Rre(e,t,n,r){const i=e();i?.created&&i.promise.then(o=>{const s=t();Ere(o,i.filterParams,s,n()??{model:s},"ui",r)})}function qj(e){let t,n=!1,r;const{action:i,filterParams:o,getFilterUi:s,getModel:a,getState:l,updateState:u,updateModel:d,processModelToApply:f}=e;switch(i){case"apply":{const g=l();r=g?.model??null,f&&(r=f(r)),t={state:g?.state,model:r},n=!0;break}case"clear":{t={model:null},o?.buttons?.includes("apply")||(n=!0,r=null);break}case"reset":{t={model:null},n=!0,r=null;break}case"cancel":{t={model:a()};break}}u(t),n?d(r):Rre(s,a,l,{fromAction:i})}function si(e,t){return e[t]??null}var gLe=class extends CN{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,n,r,i){this.comp=e;const o=mw(this,this.beans.context,i);this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r,this.setGui(t,o),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(o),this.setupLeft(o),this.setupHover(o),this.setupFocus(o),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(o),this.setupUi(),o.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(o);const s=()=>this.onColDefChanged(o);o.addManagedListeners(this.column,{colDefChanged:s}),o.addManagedEventListeners({filterSwitched:({column:a})=>{a===this.column&&s()}}),o.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return ft(t.gos,{colDef:n,column:e,floatingFilter:!0})}setupActive(){const e=this.column.colDef,t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=Ko("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new gw(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();bm(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if($n(t)===this.eGui)return;const i=vg(t,this.eGui,null,e.shiftKey);if(i){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),i.focus();return}const o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:o},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let n=this.column;do if(n=e?t.getColBefore(n):t.getColAfter(n),!n)break;while(!n.colDef.filter||!n.colDef.floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case fe.UP:case fe.DOWN:case fe.LEFT:case fe.RIGHT:if(t)return;Kf(e);case fe.ENTER:t&&qf(this.eGui)&&e.preventDefault();break;case fe.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&xf(e.relatedTarget,"ag-floating-filter");if(n&&r&&e.target===this.eGui){const i=this.lastFocusEvent,o=i?.key===fe.TAB;if(i&&o){const s=i.shiftKey;qf(this.eGui,s)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new wN(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!qo(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:n,gos:r}=this,i=o=>{if(o?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const s=this.comp.getFloatingFilterComp();s&&s.then(a=>{if(a){if(r.get("enableFilterHandlers")){const d=o;let f="filter";d?.afterFloatingFilter?f="ui":d?.afterDataChange?f="dataChanged":o?.source==="api"&&(f="api"),this.updateFloatingFilterParams(this.userCompDetails,f);return}const l=t?.getCurrentFloatingFilterParentModel(n),u=o?{...o,columns:o.columns??[],source:o.source==="api"?"api":"columnFilter"}:null;a.onParentModelChanged(l,u)}})};[this.destroySyncListener]=e.addManagedListeners(n,{filterChanged:i}),t?.isFilterActive(n)&&i(null)}setupWidth(e){const t=()=>{const n=`${this.column.getActualWidth()}px`;this.comp.setWidth(n)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const n=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const r=this.beans.colFilter,i=this.active?r?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,o=this.comp.getFloatingFilterComp();!o||!i?this.updateCompDetails(e,i,n):o.then(s=>{!s||r?.areFilterCompsDifferent(this.userCompDetails??null,i)?this.updateCompDetails(e,i,n):this.updateFloatingFilterParams(i,"colDef")})}updateCompDetails(e,t,n){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),n&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let n=e.params;this.comp.getFloatingFilterComp()?.then(r=>{typeof r?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(n={...n,model:si(this.beans.colFilter?.model??{},this.column.colId),source:t}),r.refresh(n))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function pLe(e,t){const n=e.colModel.getCol(t);if(!n){on(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:n,positionBy:"auto"})}function mLe(e){e.menuSvc?.hidePopupMenu()}var vLe=class extends Se{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){this.showColumnMenuCommon(Yj(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,n){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,n)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){Yj(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.colDef;return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(qo(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.colDef.suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&Kd(e)?e.colDef:e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(Pf()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!qo(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!qo(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return qo(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,n,r){const{positionBy:i,onClosedCallback:o}=t,s=t.column;if(i==="button"){const{buttonElement:a}=t;e?.showMenuAfterButtonClick(s,a,n,o,r)}else if(i==="mouse"){const{mouseEvent:a}=t;e?.showMenuAfterMouseEvent(s,a,n,o,r)}else if(s){const a=this.beans,l=a.ctrlsSvc;l.getScrollFeature().ensureColumnVisible(s,"auto"),nh(a,()=>{const u=l.getHeaderRowContainerCtrl(s.getPinned())?.getHeaderCtrlForColumn(s);u&&e?.showMenuAfterButtonClick(s,u.getAnchorElementForMenu(r),n,o,r)})}}};function Kj(e,t,n){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",n))}function Yj(e){const{enterpriseMenuFactory:t,filterMenuFactory:n,gos:r}=e;return t&&qo(r)?t:n}var yLe={moduleName:"SharedMenu",version:Le,beans:[vLe],apiFunctions:{showColumnMenu:pLe,hidePopupMenu:mLe}},bLe=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;:where(.ag-set-filter-group-closed-icon),:where(.ag-set-filter-group-indeterminate-icon),:where(.ag-set-filter-group-opened-icon){cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper{min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>:where(.ag-date-floating-filter-wrapper),>:where(.ag-floating-filter-input),>:where(.ag-input-field){flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(.ag-input-field-input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:max(200px,100%)}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}
892.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:var(--ag-widget-container-vertical-padding);:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function wLe(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function CLe(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function SLe(e,t){const n=e.colModel.getColDefColOrCol(t);if(n)return e.colFilter?.destroyFilter(n,"api")}function xLe(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function ELe(e){return e.filterManager?.getFilterModel()??{}}function RLe(e,t,n){const{gos:r,colModel:i,colFilter:o}=e;n&&!r.get("enableFilterHandlers")&&(Me(288),n=!1);const s=i.getColDefColOrCol(t);return s?o?.getModelForColumn(s,n)??null:null}function ALe(e,t,n){return e.filterManager?.setColumnFilterModel(t,n)??Promise.resolve()}function TLe(e,t){const n=e.colModel.getColDefColOrCol(t);if(!n){on(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:n,containerType:"columnFilter",positionBy:"auto"})}function PLe(e){e.menuSvc?.hideFilterMenu()}function OLe(e,t){const n=e.colModel.getColDefColOrCol(t);if(!n){on(12,{colKey:t});return}return e.colFilter?.getHandler(n,!0)}function DLe(e,t){const{colModel:n,colFilter:r,gos:i}=e;if(!i.get("enableFilterHandlers")){Me(287);return}const{colId:o,action:s}=t;if(o){const a=n.getColById(o);a&&r?.updateModel(a,s)}else r?.updateAllModels(s)}var Xj={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},Zj=["january","february","march","april","may","june","july","august","september","october","november","december"];function MLe(e,t){return e==null?-1:t==null?1:Number.parseFloat(e)-Number.parseFloat(t)}function ILe(e,t){if(e==null)return-1;if(t==null)return 1;const n=es(e),r=es(t);return n!=null&&r!=null?n===r?0:n>r?1:-1:String(e).localeCompare(String(t))}function Qj(e){return e instanceof Date&&!isNaN(e.getTime())}var CF={number:()=>{},bigint:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>t===!1,numberOfInputs:0}]}),date:()=>({isValidDate:Qj}),dateString:({dataTypeDefinition:e})=>({comparator:(t,n)=>{const r=e.dateParser(n);return n==null||r<t?-1:r>t?1:0},isValidDate:t=>typeof t=="string"&&Qj(e.dateParser(t))}),dateTime:e=>CF.date(e),dateTimeString:e=>CF.dateString(e),object:()=>{},text:()=>{}},SF={number:()=>({comparator:MLe}),bigint:()=>({comparator:ILe}),boolean:({t:e})=>({valueFormatter:t=>Ve(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:n=>{const r=e(n);return Ve(r)?r:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(n,r)=>{if(n==="NaN")return t("invalidDate","Invalid Date");if(r===1&&n!=null){const i=Zj[Number(n)-1];return t(i,Xj[i])}return n??t("blanks","(Blanks)")},treeListPathGetter:n=>oS(n,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:n})=>({valueFormatter:r=>{const i=e(r);return Ve(i)?i:n("blanks","(Blanks)")},treeList:!0,treeListPathGetter:r=>oS(t.dateParser(r??void 0),!1),treeListFormatter:(r,i)=>{if(i===1&&r!=null){const o=Zj[Number(r)-1];return n(o,Xj[o])}return r??n("blanks","(Blanks)")}}),dateTime:e=>{const t=SF.date(e);return t.treeListPathGetter=oS,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,n=SF.dateString(e);return n.treeListPathGetter=r=>oS(t(r??void 0)),n},object:({formatValue:e,t})=>({valueFormatter:n=>{const r=e(n);return Ve(r)?r:t("blanks","(Blanks)")}}),text:()=>{}};function _Le(e,t,n,r,i,o,s){let a=n;const l=e==="agSetColumnFilter";!a&&r.baseDataType==="object"&&!l&&(a=({column:m,node:y})=>i({column:m,node:y,value:o.valueSvc.getValue(m,y,"data")}));const d=(l?SF:CF)[r.baseDataType],f=d({dataTypeDefinition:r,formatValue:i,t:s});return{filterParams:typeof t=="object"?{...f,...t}:f,filterValueGetter:a}}var FLe={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",bigint:"agBigIntColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},kLe={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",bigint:"agBigIntColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function LLe(e,t=!1){return(t?kLe:FLe)[e??"text"]}function NLe(e,t,n){if(t==null)return null;let r=null;const{compName:i,jsComp:o,fwComp:s}=Lte(e,t);return i?r={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agBigIntColumnFilter:"agBigIntColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[i]:o==null&&s==null&&t.filter===!0&&(r=n()),r}var BLe={filterHandler:()=>({doesFilterPass:()=>!0})};function Jj(e,t,n,r){if(!e.isPrimary())return!0;const o=!n;return!e.isValueActive()||!o?!1:t?!0:r}
vendor: 4,762 bytes, line 892
892var HLe=class extends Se{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...xre},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.addManagedPropertyListener("pivotMode",this.onPivotModeChanged.bind(this));const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",n){const{colModel:r,dataTypeSvc:i,filterManager:o}=this.beans;if(i?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const s=[],a=this.getModel(!0);if(e){const l=new Set(Object.keys(e));this.allColumnFilters.forEach((u,d)=>{const f=e[d];s.push(this.setModelOnFilterWrapper(u,f)),l.delete(d)}),l.forEach(u=>{const d=r.getColDefColOrCol(u);if(!d){Me(62,{colId:u});return}if(!d.isFilterAllowed()){Me(63,{colId:u});return}const f=this.getOrCreateFilterWrapper(d,!0);if(!f){Me(64,{colId:u});return}s.push(this.setModelOnFilterWrapper(f,e[u],!0))})}else this.model={},this.allColumnFilters.forEach(l=>{s.push(this.setModelOnFilterWrapper(l,null))});_t.all(s).then(()=>{const l=this.getModel(!0),u=[];this.allColumnFilters.forEach((d,f)=>{const g=a?a[f]:null,m=l?l[f]:null;Pb(g,m)||u.push(d.column)}),u.length>0?o?.onFilterChanged({columns:u,source:t}):n&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:n,initialModel:r,beans:{colModel:i}}=this;if(n.forEach((o,s)=>{const a=this.getModelFromFilterWrapper(o);Ve(a)&&(t[s]=a)}),!e)for(const o of Object.keys(r)){const s=r[o];Ve(s)&&!n.has(o)&&i.getCol(o)?.isFilterAllowed()&&(t[o]=s)}return t}setState(e,t,n="api"){if(this.state.clear(),t)for(const r of Object.keys(t)){const i=t[r];this.state.set(r,{model:si(this.model,r),state:i})}this.setModel(e,n,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let n=!1;return e.forEach((r,i)=>{const o=r.state;o!=null&&(n=!0,t[i]=o)}),n?t:void 0}getModelFromFilterWrapper(e){const n=e.column.getColId();if(e.isHandler)return si(this.model,n);const r=e.filter;return r?typeof r.getModel!="function"?(Me(66),null):r.getModel():si(this.initialModel,n)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}updateActiveFilters(){const e=l=>l?l.isFilterActive?l.isFilterActive():(Me(67),!1):!1,{colModel:t,gos:n}=this.beans,r=!!H1(n),i=[],o=[],s=(l,u,d)=>{u&&(Jj(l,t.isPivotMode(),t.isPivotActive(),r)?i.push(d):o.push(d))},a=[];return this.allColumnFilters.forEach(l=>{const u=l.column,d=u.getColId();if(l.isHandler)a.push(_t.resolve().then(()=>{s(u,this.isHandlerActive(u),{colId:d,isHandler:!0,handler:l.handler,handlerParams:l.handlerParams})}));else{const f=pd(l);f&&a.push(f.then(g=>{s(u,e(g),{colId:d,isHandler:!1,comp:g})}))}}),_t.all(a).then(()=>{this.activeAggregateFilters=i,this.activeColumnFilters=o})}updateFilterFlagInColumns(e,t){const n=[];return this.allColumnFilters.forEach(r=>{const i=r.column;if(r.isHandler)n.push(_t.resolve().then(()=>{this.setColFilterActive(i,this.isHandlerActive(i),e,t)}));else{const o=pd(r);o&&n.push(o.then(s=>{this.setColFilterActive(i,s.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),_t.all(n)}doFiltersPass(e,t,n){const{data:r,aggData:i}=e,o=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?i:r,a=this.model;for(let l=0;l<o.length;l++){const u=o[l],{colId:d,isHandler:f}=u;if(d!==t)if(f){const{handler:g,handlerParams:m}=u;if(!g.doesFilterPass({node:e,data:s,model:si(a,d),handlerParams:m}))return!1}else{const g=u.comp;if(typeof g.doesFilterPass!="function"){on(91);continue}if(!g.doesFilterPass({node:e,data:s}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:n}=this.beans,r=()=>{this.isAlive()&&n?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(r,0):r()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:n}=e,r=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",n).then(()=>
vendor: 4,115 bytes, line 892
892{this.allColumnFilters.forEach(i=>{const{column:o,isHandler:s}=i;r!==o.getColId()&&(s&&i.handler.onAnyFilterChanged?.(),pd(i,s)?.then(a=>{typeof a?.onAnyFilterChanged=="function"&&a.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(n=>{const r=n.isHandler;r&&n.handler.onNewRowsLoaded?.();const i=pd(n,r);i&&t.push(i.then(o=>{o.onNewRowsLoaded?.()}))}),_t.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:n,colModel:r}=this.beans;return(i,o)=>{const s=o?r.getColDefColOrCol(o):e;return s?n.getValue(s,i,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const n=t?.filter;return n?n.isFilterActive():si(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=Ve(si(this.model,e.getColId()));if(t)return t;const n=this.beans.groupFilter;return n?.isGroupFilter(e)?n.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?pd(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const n=pd(t);return n?n.then(r=>({comp:r,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const n=this.getOrCreateFilterWrapper(e,t);return n?.isHandler?n.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let n=this.cachedFilter(e);return!n&&t&&(n=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,n)),n}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return wEe(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":LLe(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,n,r,i,o){const s=()=>{const u=this.createFilterCompParams(e,i,o),d=r(u,i);return PRe(this.beans.userCompFactory,t,d,n)},a=s();return a?{compDetails:a,createFilterUi:u=>(u?s():a).newAgStackInstance()}:null}createFilterInstance(e,t,n,r){const i=this.beans.selectableFilter;i?.isSelectable(t)&&(t=i.getFilterDef(e,t));const{handler:o,handlerParams:s,handlerGenerator:a}=this.createHandler(e,t,n)??{},l=this.createFilterComp(e,t,n,r,!!o,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:o,handlerGenerator:a,handlerParams:s};const{compDetails:u,createFilterUi:d}=l;return this.isGlobalButtons&&(u.params?.buttons?.length||Me(281,{colId:e.getColId()})),{compDetails:u,handler:o,handlerGenerator:a,handlerParams:s,createFilterUi:d}}createBaseFilterParams(e,t){const{filterManager:n,rowModel:r}=this.beans;return ft(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:i=>n?.doesRowPassFilter(i,e.getColId())??!0,rowModel:r})}createFilterCompParams(e,t,n,r){const i=this.filterChangedCallbackFactory(e),o=this.createBaseFilterParams(e,r);if(o.filterChangedCallback=i,o.filterModifiedCallback=r?()=>{}:s=>this.filterModified(e,s),t){const s=o,a=e.getColId(),l=si(this.model,a);s.model=l,s.state=this.state.get(a)??{model:l},s.onModelChange=(u,d)=>{this.updateStoredModel(a,u),this.refreshHandlerAndUi(e,u,"ui",!1,d).then(()=>{i({...d,source:"columnFilter"})})},s.onStateChange=u=>{this.updateState(e,u),this.updateOrRefreshFilterUi(e)},s.onAction=(u,d,f)=>{this.updateModel(e,u,d),this.dispatchLocalEvent({type:"filterAction",column:e,action:u,event:f})},s.getHandler=()=>this.getHandler(e,!0),s.onUiChange=u=>this.filterUiChanged(e,u),s.source=n}return o}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,n){const r=t(),i={created:!0,create:t,filterParams:e.params,compDetails:e,promise:r};return r.then(n),i}
vendor: 8,361 bytes, line 892
892createFilterWrapper(e){const{compDetails:t,handler:n,handlerGenerator:r,handlerParams:i,createFilterUi:o}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),a=>a),s=e.getColId();if(n)return delete this.initialModel[s],n.init?.({...i,source:"init",model:si(this.model,s)}),{column:e,isHandler:!0,handler:n,handlerGenerator:r,handlerParams:i,filterUi:this.createFilterUiForHandler(t,o)};if(o){const a={column:e,filterUi:null,isHandler:!1};return a.filterUi=this.createFilterUiLegacy(t,o,l=>{a.filter=l??void 0}),a}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,n){const{gos:r,frameworkOverrides:i,registry:o}=this.beans;let s;const a=m=>{const y=m.filter;if(_te(y)){const b=y.handler;return b||(s=y.doesFilterPass,s?()=>({doesFilterPass:s}):void 0)}return typeof y=="string"?y:void 0},l=r.get("enableFilterHandlers"),u=l?a(t):void 0,d=m=>()=>this.createBean(o.createDynamicBean(m,!0));let f,g;if(typeof u=="string"){const m=r.get("filterHandlers")?.[u];m!=null?f=m:hLe.has(u)&&(f=d(u),g=u)}else f=u;if(!f){let m;const{compName:y,jsComp:b,fwComp:w}=Lte(i,t);y?m=y:b==null&&w==null&&t.filter===!0&&(m=n),g=this.handlerMap[m],g&&(f=d(g))}return f?{filterHandler:f,handlerNameOrCallback:s??g}:l?(hr(r)&&Me(277,{colId:e.getColId()}),BLe):void 0}createHandler(e,t,n){const r=this.createHandlerFunc(e,t,n);if(!r)return;const i=kO(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:o,filterHandler:s}=r,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,s,i);return{handler:a,handlerParams:l,handlerGenerator:o??s}}createHandlerFromFunc(e,t,n){const r=e.getColDef(),i=t(ft(this.gos,{column:e,colDef:r})),o=this.createHandlerParams(e,n);return{handler:i,handlerParams:o}}createHandlerParams(e,t){const n=e.getColDef(),r=e.getColId(),i=this.filterChangedCallbackFactory(e);return ft(this.gos,{colDef:n,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:o=>this.beans.filterManager?.doesRowPassFilter(o,r)??!0,onModelChange:(o,s)=>{this.updateStoredModel(r,o),this.refreshHandlerAndUi(e,o,"handler",!1,s).then(()=>{i({...s,source:"columnFilter"})})},onModelAsStringChange:()=>{e.dispatchColEvent("filterChanged","filterChanged"),this.dispatchLocalEvent({type:"filterModelAsStringChanged",column:e})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:n,groupFilter:r}=this.beans;this.allColumnFilters.forEach((o,s)=>{let a;o.column.isPrimary()?a=t.getColDefCol(s):a=t.getCol(s),!(a&&a===o.column)&&(e.push(o.column),this.disposeFilterWrapper(o,"columnChanged"),this.disposeColumnListener(s))});const i=r&&e.every(o=>r.isGroupFilter(o));e.length>0&&!i&&n?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const n=this.beans.groupFilter;return n?.isGroupFilter(e)?n.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const{userCompFactory:n,frameworkOverrides:r,selectableFilter:i,gos:o}=this.beans,s=m=>{this.getOrCreateFilterUi(e)?.then(b=>{m(Xf(b))})},a=e.getColDef(),l=i?.isSelectable(a)?i.getFilterDef(e,a):a,u=NLe(r,l,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",d=o.get("enableFilterHandlers"),f=kO(n,l,this.createFilterCompParams(e,d,"init",!0)),g=ft(o,{column:e,filterParams:f,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:s,showParentFilter:t});if(d){const m=g,y=e.getColId(),b=this.filterChangedCallbackFactory(e);m.onUiChange=w=>this.floatingFilterUiChanged(e,w),m.model=si(this.model,y),m.onModelChange=(w,C)=>{this.updateStoredModel(y,w),this.refreshHandlerAndUi(e,w,"floating",!0,C).then(()=>{b({...C,source:"columnFilter"})})},m.getHandler=()=>this.getHandler(e,!0),m.source="init"}return MRe(n,a,g,u)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,n,r){const i="paramsUpdated";if(e.isHandler){const o=t.getColId();delete this.initialModel[o],this.state.delete(o);const s=e.filterUi,a=this.createFilterUiForHandler(n,r);e.filterUi=a;const l=this.eventSvc;s?.created?s.promise.then(u=>{this.destroyBean(u),l.dispatchEvent({type:"filterDestroyed",source:i,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:i,column:t})}else this.destroyFilter(t,i)}destroyFilter(e,t="api"){const n=e.getColId(),r=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialModel[n],r&&this.disposeFilterWrapper(r,t).then(i=>{i&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let n=!1;const{column:r,isHandler:i,filterUi:o}=e,s=r.getColId();i&&(n=this.isHandlerActive(r),this.destroyBean(e.handler),delete this.model[s],this.state.delete(s));const a=()=>{this.setColFilterActive(r,!1,"filterDestroyed"),this.allColumnFilters.delete(s),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:r})};if(o){if(o.created)return o.promise.then(l=>(n=i?n:!!l?.isFilterActive(),this.destroyBean(l),a(),n));a()}return _t.resolve(n)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const n=this.allColumnFilters.get(e);if(!n)return;const r=this.beans,i=n.column,o=i.getColDef(),s=i.isFilterAllowed(),a=this.getDefaultFilter(i),l=r.selectableFilter,u=l?.isSelectable(o)?l.getFilterDef(i,o):o,d=s?this.createHandlerFunc(i,u,this.getDefaultFilter(i)):void 0,f=!!d,g=n.isHandler;if(g!=f){this.destroyFilter(i,"paramsUpdated");return}const{compDetails:m,createFilterUi:y}=(s?this.createFilterComp(i,u,a,w=>w,f,"colDef"):null)??{compDetails:null,createFilterUi:null},b=m?.params??kO(r.userCompFactory,u,this.createFilterCompParams(i,f,"colDef"));if(g){const w=d?.handlerNameOrCallback??d?.filterHandler,C=si(this.model,e);if(n.handlerGenerator!=w){const E=n.handler,{handler:A,handlerParams:T}=this.createHandlerFromFunc(i,d.filterHandler,b);n.handler=A,n.handlerParams=T,n.handlerGenerator=w,delete this.model[e],A.init?.({...T,source:"init",model:null}),this.destroyBean(E),C!=null&&this.beans.filterManager?.onFilterChanged({columns:[i],source:t})}else{const E=this.createHandlerParams(i,m?.params);n.handlerParams=E,n.handler.refresh?.({...E,source:"colDef",model:C})}}if(this.areFilterCompsDifferent(n.filterUi?.compDetails??null,m)||!n.filterUi||!m){this.destroyFilterUi(n,i,m,y);return}n.filterUi.filterParams=b,pd(n,g)?.then(w=>{(w?.refresh?w.refresh(b):!0)===!1?this.destroyFilterUi(n,i,m,y):this.dispatchLocalEvent({type:"filterParamsChanged",column:i,params:b})})}refreshHandlerAndUi(e,t,n,r,i){const o=this.cachedFilter(e);if(!o)return r&&this.getOrCreateFilterWrapper(e,!0),_t.resolve();if(!o.isHandler)return _t.resolve();const{filterUi:s,handler:a,handlerParams:l}=o;return fLe(()=>{if(s){const{created:u,filterParams:d}=s;if(u)return s.promise.then(f=>f?{filter:f,filterParams:d}:void 0);s.refreshed=!0}return _t.resolve(void 0)},a,l,t,this.state.get(e.getColId())??{model:t},n,i)}setColumnFilterWrapper(e,t){const n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(n)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:n}=e,{componentClass:r}=t;return!(n===r||n?.render&&r?.render&&n.render===r.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getColDefColOrCol(e);if(!t)return Promise.resolve(void 0);const n=this.getOrCreateFilterUi(t);return n?new Promise(r=>{n.then(i=>{r(Xf(i))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:n})=>{this.setModelForColumn(e,t).then(()=>n())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:r,model:i}=this,o=e.getColId(),s=r.get(o);return s?s.model??null:si(i,o)}const n=this.cachedFilter(e);return n?this.getModelFromFilterWrapper(n):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let n=()=>{};const r=new Promise(i=>{n=i}
vendor: 8,976 bytes, line 892
892);return this.columnModelUpdates.push({key:e,model:t,resolve:n}),r}return new Promise(n=>{this.setModelForColumnLegacy(e,t).then(r=>n(r))})}getStateForColumn(e){return this.state.get(e)??{model:si(this.model,e)}}setModelForColumnLegacy(e,t){const n=this.beans.colModel.getColDefCol(e),r=n?this.getOrCreateFilterWrapper(n,!0):null;return r?this.setModelOnFilterWrapper(r,t):_t.resolve()}setColDefPropsForDataType(e,t,n){const r=e.filter,i=r===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):r;if(typeof i!="string")return;let o,s;const a=this.beans,{filterParams:l,filterValueGetter:u}=e;i==="agMultiColumnFilter"?{filterParams:o,filterValueGetter:s}=a.multiFilter?.getParamsForDataType(l,u,t,n)??{}:{filterParams:o,filterValueGetter:s}=_Le(i,l,u,t,n,a,this.getLocaleTextFunc()),e.filterParams=o,s&&(e.filterValueGetter=s)}setColFilterActive(e,t,n,r){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",n)),e.dispatchColEvent("filterChanged",n,r)}setModelOnFilterWrapper(e,t,n){return new _t(r=>{if(e.isHandler){const o=e.column,s=o.getColId(),a=this.model[s];if(this.updateStoredModel(s,t),n&&t===a){r();return}this.refreshHandlerAndUi(o,t,"api").then(()=>r());return}const i=pd(e);if(i){i.then(o=>{if(typeof o?.setModel!="function"){Me(65),r();return}(o.setModel(t)||_t.resolve()).then(()=>r())});return}r()})}updateStoredModel(e,t){Ve(t)?this.model[e]=t:delete this.model[e];const n=this.state.get(e),r={model:t,state:n?.state};this.state.set(e,r)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(n=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:n,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,n){const r=e.getColId(),i=this.cachedFilter(e),o=()=>i?.filterUi;qj({action:t,filterParams:i?.filterUi?.filterParams,getFilterUi:o,getModel:()=>si(this.model,r),getState:()=>this.state.get(r),updateState:s=>this.updateState(e,s),updateModel:s=>o()?.filterParams?.onModelChange(s,{...n,fromAction:t}),processModelToApply:i?.isHandler?i.handler.processModelToApply?.bind(i.handler):void 0})}updateAllModels(e,t){const n=[];this.allColumnFilters.forEach((r,i)=>{const o=this.beans.colModel.getColDefCol(i);o&&qj({action:e,filterParams:r.filterUi?.filterParams,getFilterUi:()=>r.filterUi,getModel:()=>si(this.model,i),getState:()=>this.state.get(i),updateState:s=>this.updateState(o,s),updateModel:s=>{this.updateStoredModel(i,s),this.dispatchLocalEvent({type:"filterAction",column:o,action:e}),n.push(this.refreshHandlerAndUi(o,s,"ui"))},processModelToApply:r?.isHandler?r.handler.processModelToApply?.bind(r.handler):void 0})}),n.length&&_t.all(n).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();Rre(()=>this.cachedFilter(e)?.filterUi,()=>si(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:n}=this;for(const i of n)if(i.source==="COLUMN_MENU")return!1;let r=!1;for(const i of e.keys()){const o=e.get(i);if(o.valid===!1)return!1;(o.model??null)!==si(t,i)&&(r=!0)}return r}hasUnappliedModel(e){const{model:t,state:n}=this;return(n.get(e)?.model??null)!==si(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const n=this.beans.filterPanelSvc;return n?.isActive?!!n.getState(e.getColId()):!1}onPivotModeChanged(e){const{colModel:t,pivotColsSvc:n}=this.beans,r=!!H1(this.gos),i=e.currentValue,o=i?this.activeColumnFilters:this.activeAggregateFilters,s=i?this.activeAggregateFilters:this.activeColumnFilters,a=[];for(const l of o){const u=t.getColById(l.colId),d=i&&!!n?.columns.length;u&&i===Jj(u,i,d,r)&&(s.push(l),a.push(l))}exe(o,a)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function VLe(e){return!!e.filterManager?.isAnyFilterPresent()}function zLe(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var GLe=class extends Se{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:r})=>this.onAdvFilterEnabledChanged(r),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:n}=this;this.alwaysPassFilter=n.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=n.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterState(e,t,n="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,n)}setFilterModel(e,t="api",n){if(this.isAdvFilterEnabled()){n||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){H1(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:n,columns:r=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):_t.resolve()).then(()=>{const i={source:t,type:"filterChanged",columns:r};n&&Eo(i,n),this.eventSvc.dispatchEvent(i),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!H1(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.pivotMode)&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e,t){return this.alwaysPassFilter?.(e)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(e)||this.externalFilterPresent&&!this.doesExternalFilterPass(e)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(e,t)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(e))}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}
vendor: 8,845 bytes, line 892
892setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){Me(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}};function jLe(e){return{tag:"div",cls:e}}var ULe=class extends qn{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(jLe(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const n=this.buttons;if(this.buttons=e,n===e)return;const r=this.getGui();Jo(r);let i;this.destroyListeners();const o=document.createDocumentFragment(),s=this.className,a=({type:u,label:d})=>{const f=C=>{this.dispatchLocalEvent({type:u,event:C})};["apply","clear","reset","cancel"].includes(u)||Me(75);const g=u==="apply",y=Ss({tag:"button",attrs:{type:g&&t?"submit":"button"},ref:`${u}FilterButton`,cls:`ag-button ag-standard-button ${s}-button${g?" "+s+"-apply-button":""}`,children:d});this.activateTabIndex([y]),g&&(i=y);const b=C=>{C.key===fe.ENTER&&(C.preventDefault(),f(C))},w=this.listeners;y.addEventListener("click",f),w.push(()=>y.removeEventListener("click",f)),y.addEventListener("keydown",b),w.push(()=>y.removeEventListener("keydown",b)),o.append(y)};for(const u of e)a(u);this.eApply=i;const l=this.validationTooltipFeature;i&&!l?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!i&&l&&(this.validationTooltipFeature=this.destroyBean(l)),r.append(o)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const n=this.eApply;n&&(Db(n,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},WLe=class extends qn{constructor(e,t,n,r,i,o){super(),this.column=e,this.wrapper=t,this.eventParent=n,this.updateModel=r,this.isGlobalButtons=i,this.enableGlobalButtonCheck=o,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,n=t,r=n.useForm,i=r?"form":"div";this.setTemplate({tag:i,cls:"ag-filter-wrapper"}),r&&this.addManagedElementListeners(this.getGui(),{submit:o=>{o?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=n,this.resetButtonsPanel(n),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:o,params:s})=>{o===this.column&&this.resetButtonsPanel(s,this.params)},filterStateChanged:({column:o,state:s})=>{o===this.column&&this.eButtons?.updateValidity(s.valid!==!1)},filterAction:({column:o,action:s,event:a})=>{o===this.column&&this.afterAction(s,a)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:o})=>{if(o!==this.isGlobalButtons){this.isGlobalButtons=o;const s=this.params;this.resetButtonsPanel(s,s,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,n){const{buttons:r,readOnly:i}=t??{},{buttons:o,readOnly:s,useForm:a}=e;if(!n&&i===s&&Pb(r,o))return;const l=o&&o.length>0&&!e.readOnly&&!this.isGlobalButtons;let u=this.eButtons;if(l){const d=o.map(f=>{const g=`${f}Filter`;return{type:f,label:Ua(this,g)}});if(this.applyActive=UE(this.params),!u){u=this.createBean(new ULe),this.appendChild(u.getGui());const f=this.column,g=m=>({event:y})=>{this.updateModel(f,m,{fromButtons:!0}),this.afterAction(m,y)};u?.addManagedListeners(u,{apply:g("apply"),clear:g("clear"),reset:g("reset"),cancel:g("cancel")}),this.eButtons=u}u.updateButtons(d,a)}else this.applyActive=!1,u&&(Ql(u.getGui()),this.eButtons=this.destroyBean(u))}close(e){const t=this.hidePopup;if(!t)return;const n=e,r=n?.key;let i;(r===fe.ENTER||r===fe.SPACE)&&(i={keyboardEvent:n}),t(i),this.hidePopup=null}afterAction(e,t){const{params:n,applyActive:r}=this,i=n?.closeOnApply;switch(e){case"apply":{t?.preventDefault(),i&&r&&this.close(t);break}case"reset":{i&&r&&this.close();break}case"cancel":{i&&this.close(t);break}}}handleKeyDown(e){!e.defaultPrevented&&e.key===fe.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},$Le=":where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}",qLe={tag:"div",cls:"ag-filter"},KLe=class extends qn{constructor(e,t,n){super(qLe),this.column=e,this.source=t,this.enableGlobalButtonCheck=n,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return this.wrapper!=null}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??_t.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then(t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)})}afterGuiDetached(){this.wrapper?.then(e=>{e?.comp?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:n,beans:{colFilter:r}}=this,i=r.getFilterUiForDisplay(t)??null;this.wrapper=i,i?.then(o=>{if(!o)return;const{isHandler:s,comp:a}=o;let l;if(s){const u=!!this.enableGlobalButtonCheck,d=this.createBean(new WLe(t,o,r,r.updateModel.bind(r),u&&r.isGlobalButtons,u));this.comp=d,l=d.getGui()}else this.registerCSS($Le),l=a.getGui(),Ve(l)||Me(69,{guiFromFilter:l});this.appendChild(l),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:n,eGui:this.getGui()}):a.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:n}=e;(t==="api"||t==="paramsUpdated")&&n.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Jo(this.getGui()),this.comp=this.destroyBean(this.comp),this.createFilter())}destroy(){this.beans.colFilter?.activeFilterComps.delete(this),this.eventSvc.dispatchEvent({type:"filterClosed",column:this.column}),this.wrapper=null,this.comp=this.destroyBean(this.comp),this.afterGuiAttachedParams=void 0,super.destroy()}},YLe=class extends Se{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,n,r){e&&!e.isColumn||this.showPopup(e,i=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:n,mouseEvent:t,ePopup:i})},n,t.target,qo(this.gos),r)}showMenuAfterButtonClick(e,t,n,r){if(e&&!e.isColumn)return;let i=-1,o="left";const s=qo(this.gos);!s&&this.gos.get("enableRtl")&&(i=1,o="right");const a=s?void 0:4*i,l=s?void 0:4;this.showPopup(e,u=>{this.popupSvc?.positionPopupByComponent({type:n,eventSource:t,ePopup:u,nudgeX:a,nudgeY:l,alignSide:o,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},n,t,s,r)}showPopup(e,t,n,r,i,o){const s=e?this.createBean(new KLe(e,"COLUMN_MENU")):void 0;if(this.activeMenu=s,!s?.hasFilter()||!e){on(57);return}const a=Ss({tag:"div",cls:`ag-menu${i?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(a,{keydown:b=>this.trapFocusWithin(b,a)}),a.appendChild(s?.getGui());let l;const u=()=>s?.afterGuiDetached(),d=CEe(this.gos)?r??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,f=b=>{Kj(e,!1,"contextMenu");const w=b instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),w&&r&&Za(r)&&jte(r)?.focus({preventScroll:!0}),u(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,n,e),o?.()},g=this.getLocaleTextFunc(),m=i&&n!=="columnFilter"?g("ariaLabelColumnMenu","Column Menu"):g("ariaLabelColumnFilter","Column Filter"),y=this.popupSvc?.addPopup({modal:!0,e
892Child:a,closeOnEsc:!0,closedCallback:f,positionCallback:()=>t(a),anchorToElement:d,ariaLabel:m});y&&(this.hidePopup=l=y.hideFunc),s.afterInit().then(()=>{t(a),s.afterGuiAttached({container:n,hidePopup:l})}),Kj(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==fe.TAB||e.defaultPrevented||vg(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),qf(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:n??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.colDef.menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},XLe=class extends Se{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,n){const r=e.colDef,i=this.beans,o=n??i.selectableFilter?.getFilterValueGetter(e.colId)??r.filterValueGetter,s=i.valueSvc;if(o){const l=typeof o=="function",u=i.expressionSvc;if(!l&&!u)return;const d=i.colModel,f={api:i.gridApi,context:i.gridOptions.context,data:t.data,node:t,column:e,colDef:r,getValue:g=>{const m=d.getColDefColOrCol(g);return m?s.getValue(m,t,"data"):null}};return l?o(f):u.evaluate(o,f)}const a=s.getValue(e,t,"data");if(e.colDef.allowFormula){const l=i.formula;if(l?.isFormula(a))return l.resolveValue(e,t)}return a}},ZLe={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},QLe=class extends qn{constructor(){super(ZLe,[ZE]),this.eFloatingFilterText=Ye}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){const n=e,r=n.getHandler();if(r.getModelAsString){const i=r.getModelAsString(n.model);this.eFloatingFilterText.setValue(i)}}}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})}refresh(e){this.init(e)}},JLe=class extends EN{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},NN=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const n=e.filterOptions??t;this.filterOptions!==n&&(this.filterOptions=n,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e){if(typeof t=="string")continue;const n=[["displayKey"],["displayName"],["predicate","test"]],r=i=>i.some(o=>t[o]!=null)?!0:(Me(72,{keys:i}),!1);if(!n.every(r)){this.filterOptions=e.filter(i=>i===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const n=t[0];if(typeof n=="string")return n;if(n.displayKey)return n.displayKey;Me(73)}else Me(74)}getCustomOption(e){return this.customFilterOptions[e]}};function ab(e,t,n){return n==null?e.splice(t):e.splice(t,n)}function ix(e){return e==null||typeof e=="string"&&e.trim().length===0}function eNe(e){return e==="AND"||e==="OR"?e:"AND"}function tNe(e,t,n){if(e==null)return;const{predicate:r}=e;if(r!=null&&!t.some(i=>i==null))return r(t,n)}function nNe(e,t){let n=e.length;return n>t&&(e.splice(t),Me(78),n=t),n}var rNe=new Set(["empty","notBlank","blank","today","yesterday","tomorrow","thisWeek","lastWeek","nextWeek","thisMonth","lastMonth","nextMonth","thisQuarter","lastQuarter","nextQuarter","thisYear","lastYear","nextYear","yearToDate","last7Days","last30Days","last90Days","last6Months","last12Months","last24Months"]);function Xd(e,t){const n=t.getCustomOption(e);if(n){const{numberOfInputs:r}=n;return r??1}return e&&rNe.has(e)?0:e==="inRange"?2:1}var JE=class extends jRe{constructor(e,t,n){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=n,this.eTypes=[],this.eJoinPanels=[],this.eJoinAn
vendor: 6,764 bytes, line 892
892ds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new NN;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=eNe(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),$o(this.getGui(),"tabindex",this.isReadOnly()?"-1":null)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,n)=>{const r=n===0?e:this.optionsFactory.defaultOption;t.setValue(r,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areNonNullModelsEqual(e,t){const n=!e.operator,r=!t.operator;if(!n&&r||n&&!r)return!1;let o;if(n){const s=e,a=t;o=this.areSimpleModelsEqual(s,a)}else{const s=e,a=t;o=s.operator===a.operator&&th(s.conditions,a.conditions,(l,u)=>this.areSimpleModelsEqual(l,u))}return o}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),_t.resolve();if(e.operator){const r=e;let i=r.conditions;i==null&&(i=[],Me(77));const o=nNe(i,this.maxNumConditions),s=this.getNumConditions();if(o<s)this.removeConditionsAndOperators(o);else if(o>s)for(let l=s;l<o;l++)this.createJoinOperatorPanel(),this.createOption();const a=r.operator==="OR";this.eJoinAnds.forEach(l=>l.setValue(!a,!0)),this.eJoinOrs.forEach(l=>l.setValue(a,!0)),i.forEach((l,u)=>{this.eTypes[u].setValue(l.type,!0),this.setConditionIntoUi(l,u)})}else{const r=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(r.type,!0),this.setConditionIntoUi(r,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),_t.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(Me(79),t=1),this.maxNumConditions=t;let n=e.numAlwaysVisibleConditions??1;n<1&&(Me(80),n=1),n>t&&(Me(81),n=t),this.numAlwaysVisibleConditions=n}createOption(){const e=this.getGui(),t=this.createManagedBean(new LN);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const n=this.createEValue();this.eConditionBodies.push(n),e.appendChild(n),this.putOptionsIntoDropdown(t),this.resetType(t);const r=this.getNumConditions()-1;this.forEachPositionInput(r,i=>this.resetInput(i)),this.addChangedListeners(t,r)}createJoinOperatorPanel(){const e=Ss({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),n=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const r=this.eJoinPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,i),this.resetJoinOperatorOr(n,r,i),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){const r=this.createManagedBean(new JLe);e.push(r);const i="ag-filter-condition-operator";return r.addCss(i),r.addCss(`${i}-${n}`),t.appendChild(r.getGui()),r}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const n of t)e.addOption(n);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let n=0;n<this.getNumConditions();n++)this.isConditionUiComplete(n)?e=n:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const n=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<n){this.removeConditionsAndOperators(n+1);const r=e+1,i=n-r;i>0&&this.removeConditionsAndOperators(r,i),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((r,i)=>{const o=this.isConditionDisabled(i,e);r.setDisabled(o||this.filterListOptions.length<=1),i===1&&(Db(this.eJoinPanels[0],o),this.eJoinAnds[0].setDisabled(o),this.eJoinOrs[0].setDisabled(o))}),this.eConditionBodies.forEach((r,i)=>{Cn(r,this.isConditionBodyVisible(i))});const n=(t??this.getJoinOperator())==="OR";for(const r of this.eJoinAnds)r.setValue(!n,!0);for(const r of this.eJoinOrs)r.setValue(n,!0);this.forEachInput((r,i,o,s)=>{this.setElementDisplayed(r,i<s),this.setElementDisabled(r,this.isConditionDisabled(o,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:n,eConditionBodies:r,eJoinPanels:i,eJoinAnds:o,eJoinOrs:s}=this;this.removeComponents(n,e,t),this.removeElements(r,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(i,a,t),this.removeComponents(o,a,t),this.removeComponents(s,a,t)}removeElements(e,t,n){const r=ab(e,t,n);for(const i of r)Ql(i)}removeComponents(e,t,n){const r=ab(e,t,n);for(const i of r)Ql(i.getGui()),this.destroyBean(i)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const n=this.getInputs(0)[0];n instanceof ff&&this.isConditionBodyVisible(0)?t=n.getInputElement():t=this.eTypes[0]?.getFocusableElement()}(t??this.getGui()).focus({preventScroll:!0})}}shouldKeepInvalidInputState(){return!1}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column)||this.shouldKeepInvalidInputState())return;e.onStateChange({model:e.model});let t=-1,n=-1,r=!1;const i=this.getJoinOperator();
vendor: 5,075 bytes, line 892
892for(let s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))t===-1&&(t=s,n=s);else{const a=s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1),l=s<t;(a||l)&&(this.removeConditionsAndOperators(s,1),r=!0,l&&n--)}let o=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),o=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),o=!0),o&&this.updateConditionStatusesAndValues(n,i),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:n}=this;this.forEachInput((r,i,o,s)=>{if(!(r instanceof ff))return;const a=i===0&&s>1?"inRangeStart":i===0?"filterOoo":"inRangeEnd",l=i===0&&s>1?e("ariaFilterFromValue","Filter from value"):i===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),u=n[o].getValue(),d=$te(this,t,a,u);r.setInputPlaceholder(d),r.setInputAriaLabel(l)})}setElementValue(e,t,n){e instanceof ff&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){_6(e)&&Cn(e.getGui(),t)}setElementDisabled(e,t){_6(e)&&Db(e.getGui(),t)}attachElementOnChange(e,t){e instanceof ff&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,n)=>{this.forEachPositionTypeInput(n,t,e)})}forEachPositionInput(e,t){const n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){const r=Xd(t,this.optionsFactory),i=this.getInputs(e);for(let o=0;o<i.length;o++){const s=i[o];s!=null&&n(s,o,e,r)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return Xd(t,this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(n=>n==null)||this.positionHasInvalidInputs(e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinAnds.forEach((t,n)=>this.resetJoinOperatorAnd(t,n,this.joinOperatorId+n)),this.eJoinOrs.forEach((t,n)=>this.resetJoinOperatorOr(t,n,this.joinOperatorId+n)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const n=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(n).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),n)}resetJoinOperator(e,t,n,r,i){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${i}`).setLabel(r),t)}updateJoinOperatorsDisabled(){const e=(t,n)=>this.updateJoinOperatorDisabled(t,n);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const n=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((r,i,o)=>{o===t&&this.setElementValue(r,n[i]!=null?n[i]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,n,r)=>{this.setElementValue(t,n===0&&r===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,n=>{this.attachElementOnChange(n,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},BN=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function xF(e){return e?.allowedCharPattern??null}function Are(e,t){const{filter:n,filterTo:r,type:i}=e||{};return[es(n),es(r)].slice(0,Xd(i,t))}var iNe=class extends JE{constructor(){super("bigintFilter",Are,BN),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="bigint",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!Cm()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;
892e++){const t=this.eValuesFrom[e],n=this.eValuesTo[e];this.refreshInputPairValidation(t,n)}}refreshInputPairValidation(e,t,n=!1){const{bigintParser:r}=this.params,i=this.getParsedValue(e,r),o=this.getParsedValue(t,r),s=this.isInvalidValue(e,i),a=this.isInvalidValue(t,o),l=n?e:t,u=n?t:e,d=n?s:a,f=n?a:s;let g="";if(d)g=this.getLocaleTextFunc()("invalidBigInt","Invalid BigInt");else if(!s&&!a){const m=oNe(i,o,n);m&&(g=this.translate(m,[String(n?t.getValue():e.getValue())]))}l.setCustomValidity(g),f||u.setCustomValidity(""),g.length>0&&this.beans.ariaAnnounce.announceValue(g,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:n,additionalEventAttributes:r}=e,i=this.state,o=r?.fromAction;return(o&&o!="apply"||n.model!==i.model||!this.areStatesEqual(n.state,i.state))&&this.refreshInputValidation(),t}setElementValue(e,t,n){super.setElementValue(e,t,n),t===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:n}=this,r=xF(e),i=Ss({tag:"div",cls:"ag-filter-body",role:"presentation"}),o=this.createFromToElement(i,t,"from",r),s=this.createFromToElement(i,n,"to",r),a=(d,f,g)=>()=>this.refreshInputPairValidation(d,f,g),l=a(o,s,!0);o.onValueChange(l),o.addGuiEventListener("focusin",l);const u=a(o,s,!1);return s.onValueChange(u),s.addGuiEventListener("focusin",u),i}createFromToElement(e,t,n,r){const i=this.createManagedBean(r?new fc({allowedCharPattern:r}):new fc);return i.addCss(`ag-filter-${n}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui()),i}removeEValues(e,t){const n=r=>this.removeComponents(r,e,t);
892n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,r,i,o)=>{r<o&&t.push(es(n.getValue()??null))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(n.filter=String(r[0])),r.length>1&&(n.filterTo=String(r[1])),n}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!n.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}getParsedValue(e,t){const n=e.getValue();return n==null||typeof n=="string"&&n.trim()===""?null:t?t(n):es(n)}isInvalidValue(e,t){const n=e.getValue();return n!=null&&String(n).trim()!==""&&t===null}};function oNe(e,t,n){return e!=null&&t!=null&&e>=t?`strict${n?"Max":"Min"}ValueValidation`:null}var Tre=class extends Se{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,n=new NN;this.optionsFactory=n,n.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(n,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,n=this.optionsFactory;n.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:n,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(t==null)return!0;const{operator:n}=t,r=[];if(n){const s=t;r.push(...s.conditions??[])}else r.push(t);const i=n&&n==="OR"?"some":"every",o=this.params.getValue(e.node);return r[i](s=>this.individualConditionPasses(e,s,o))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:n,maxNumConditions:r}}=e;if(t==null)return;let o=Nte(t)?t.conditions:[t];const s=n?.map(d=>typeof d=="string"?d:d.displayKey)??this.defaultOptions;if(!(!o||o.every(d=>s.find(f=>f===d.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let l=!1;const u=this.filterType;if((o&&!o.every(d=>d.filterType===u)||t.filterType!==u)&&(o=o.map(d=>({...d,filterType:u})),l=!0),typeof r=="number"&&o&&o.length>r&&(o=o.slice(0,r),l=!0),l){const d=o.length>1?{...t,filterType:u,conditions:o}:{...o[0],filterType:u};this.params={...e,model:d},e.onModelChange(d)}}individualConditionPasses(e,t,n){const r=this.optionsFactory,i=this.mapValuesFromModel(t,r),o=r.getCustomOption(t.type),s=tNe(o,i,n);return s??(n==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(i,n,t,e))}},HN=class extends Tre{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:n,includeBlanksInGreaterThan:r,includeBlanksInLessThan:i,includeBlanksInRange:o}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(n)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(r)return!0;break;case"lessThan":case"lessThanOrEqual":if(i)return!0;break;case"inRange":if(o)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,n){const r=n.type;if(!this.isValid(t))return r==="notEqual"||r==="notBlank";const i=this.comparator(),o=e[0]!=null?i(e[0],t):0;switch(r){case"equals":return o===0;case"notEqual":return o!==0;case"greaterThan":return o>0;case"greaterThanOrEqual":return o>=0;case"lessThan":return o<0;case"lessThanOrEqual":return o<=0;case"inRange":{const s=i(e[1],t);return this.params.filterParams.inRangeInclusive?o>=0&&s<=0:o>0&&s<0}case"blank":return ix(t);case"notBlank":return!ix(t);default:return Me(76,{filterModelType:r}),!0}}},VN={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},sNe={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},eR=class extends Se{constructor(e,t,n){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=n}getModelAsString(e,t){const n=this.getLocaleTextFunc(),r=t==="filterToolPanel";if(!e)return r?Ua(this,"filterSummaryInactive"):null;if(e.operator!=null){const o=e,a=(o.conditions??[]).map(u=>this.getModelAsString(u,t)),l=o.operator==="AND"?"andCondition":"orCondition";return a.join(` ${Ua(this,l)} `)}else{if(e.type==="blank"||e.type==="notBlank")return r?Ua(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):n(e.type,e.type);{const o=e,s=this.optionsFactory.getCustomOption(o.type),{displayKey:a,displayName:l,numberOfInputs:u}=s||{};return a&&l&&u===0?n(a,l):this.conditionToString(o,r,o.type==="inRange"||u===2,a,l)}}}updateParams(e){const{optionsFactory:t,filterParams:n}=e;this.optionsFactory=t,this.filterParams=n}conditionForToolPanel(e,t,n,r,i,o){let s;const a=this.getTypeKey(e);return a&&(s=Ua(this,a)),i&&o&&(s=this.getLocaleTextFunc()(i,o)),s!=null?t?`${s} ${Ua(this,"filterSummaryInRangeValues",[n(),r()])}`:`${s} ${n()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},Pre=class extends eR{constructor(e,t){super(e,t,t.bigintFormatter),this.filterTypeKeys=VN}conditionToString(e,t,n,r,i){const{filter:o,filterTo:s,type:a}=e,l=this.formatValue.bind(this),u=es(o),d=es(s);if(t){const f=this.conditionForToolPanel(a,n,()=>l(u),()=>l(d),r,i);if(f!=null)return f}return n?`${l(u)}-${l(d)}`:o!=null?l(u):`${a}`}},aNe=class extends HN{constructor(){super(Are,BN),this.filterType="bigint",this.FilterModelFormatterClass=Pre}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return es(e)!==null}},zN=class extends Se{constructor(e){super(),this.params=e,this.eInput=Ye,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new fc(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const n=r=>this.onValueChanged(r);this.addManagedListeners(t,{input:n,keydown:n})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t,placeholder:n}){const{eInput:r}=this;r.setInputAriaLabel(e),t!==void 0&&r.setAutoComplete(t),r.toggleCss("ag-floating-filter-search-icon",!!n),r.setInputPlaceholder(n)}};function EF(e){const t=e?.trim();return t===""?e:t}function Ore(e,t){const{filter:n,filterTo:r,type:i}=e||{};return[n||null,r||null].slice(0,Xd(i,t))}var Dre=class extends qn{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let n;t?n=e.conditions[0]:n=e,this.lastType=n.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const n=e;return this.isTypeEditable(n.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const n=e;this.onModelUpdated(n.model)}}setParams(e){const t=new NN;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParam
vendor: 12,191 bytes, line 892
892s(e,!1)}setSimpleParams(e,t=!0){const n=this.optionsFactory.defaultOption;t||(this.lastType=n),this.readOnly=!!e.filterParams.readOnly;const r=this.isTypeEditable(n);this.setEditable(r)}refresh(e){this.params=e;const t=e,n=this.reactive;if((!n||t.source==="colDef")&&this.updateParams(e),n){const{source:r,model:i}=t;if(r==="dataChanged"||r==="ui")return;this.onModelUpdated(i)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}isTypeEditable(e){return!!e&&!this.readOnly&&Xd(e,this.optionsFactory)===1}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},lNe={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},GN=class extends Dre{constructor(){super(...arguments),this.eFloatingFilterInputContainer=Ye,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(lNe)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const{inputSvc:t,defaultDebounceMs:n,readOnly:r}=this,{filterPlaceholder:i,column:o,browserAutoComplete:s,filterParams:a}=e,l=this.lastType??this.optionsFactory.defaultOption,u=e.filterParams.filterPlaceholder,d=i===!0?$te(this,u,"filterOoo",l):i||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(o),autoComplete:s??!1,placeholder:d}),this.applyActive=UE(a),!r){const f=hN(a,n);t.setValueChangedListener(ui(this,this.syncUpWithParentFilter.bind(this),f))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,n=t.getValue();Jo(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(n,!0)}syncUpWithParentFilter(e){const t=e.key===fe.ENTER,n=this.reactive;if(n&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:r,params:i,lastType:o}=this;let s=r.getValue();if(i.filterParams.trimInput&&(s=EF(s),r.setValue(s,!0)),n){const a=i,l=a.model,u=this.convertValue(s),d=u==null?null:{...l??{filterType:this.filterType,type:o??this.optionsFactory.defaultOption},filter:u};a.onModelChange(d,{afterFloatingFilter:!0})}else i.parentFilterInstance(a=>{a?.onFloatingFilterChanged(o||null,s||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},uNe=class extends GN{constructor(){super(...arguments),this.FilterModelFormatterClass=Pre,this.filterType="bigint",this.defaultOptions=BN}updateParams(e){const t=e.filterParams;xF(t)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),this.bigintParser=t?.bigintParser,super.updateParams(e)}createFloatingFilterInputService(e){const t=e.filterParams;this.allowedCharPattern=xF(t),this.bigintParser=t?.bigintParser;const n=this.allowedCharPattern?{allowedCharPattern:this.allowedCharPattern}:void 0;return this.createManagedBean(new zN({config:n}))}convertValue(e){return e==null||e===""?null:this.bigintParser?this.bigintParser(e):es(e)}},eU=".ag-input-field-input",Mre=class{constructor(e,t,n,r,i,o){this.context=e,this.eParent=i,this.alive=!0,this.debouncedReport=ui({isAlive:()=>this.alive},tU,500),this.timeoutHandle=null,ORe(t,n,r)?.newAgStackInstance().then(a=>{if(!this.alive){e.destroyBean(a);return}if(this.dateComp=a,!a)return;i.appendChild(a.getGui()),a?.afterGuiAttached?.();const{tempValue:l,disabled:u}=this;l&&a.setDate(l),u!=null&&a.setDisabled?.(u),o?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){Cn(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}setCustomValidity(e,t=!1){const n=this.dateComp?.getGui().querySelector(eU);if(n&&"setCustomValidity"in n){const r=e.length>0;n.setCustomValidity(e),r?t?this.timeoutHandle=this.debouncedReport(n):tU(n):this.timeoutHandle&&window.clearTimeout(this.timeoutHandle),YL(n,r)}}getValidity(){return this.dateComp?.getGui().querySelector(eU)?.validity}};function tU(e){e.reportValidity()}var jN=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function Ire(e,t){const{dateFrom:n,dateTo:r,type:i}=e||{};return[n&&Po(n,void 0,!0)||null,r&&Po(r,void 0,!0)||null].slice(0,Xd(i,t))}var nU=1e3,rU=1/0,cNe=class extends JE{constructor(){super("dateFilter",Ire,jN),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=nU,this.maxValidYear=rU,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!Cm()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(l,u)=>{const d=e[l];if(d!=null)if(isNaN(d))Me(82,{param:l});else return d==null?u:Number(d);return u},n=t("minValidYear",nU),r=t("maxValidYear",rU);this.minValidYear=n,this.maxValidYear=r,n>r&&Me(83);const{minValidDate:i,maxValidDate:o}=e,s=i instanceof Date?i:Po(i);this.minValidDate=s;const a=o instanceof Date?o:Po(o);this.maxValidDate=a,s&&a&&s>a&&Me(84)}refreshInputValidation(){for(let e=0;e<this.dateConditionFromComps.length;e++)this.refreshInputPairValidation(e,!1,!0)}refreshInputPairValidation(e,t=!1,n=!1){const{dateConditionFromComps:r,dateConditionToComps:i,beans:o}=this,s=r[e],a=i[e],l=Xd(this.getConditionType(e),this.optionsFactory),u=s.getDate(),d=a.getDate(),f=l>=2?dNe(u,d,t):null,g=f?this.translate(f,[String(t?d:u)]):"",m=!Cm()&&!n;(t?s:a).setCustomValidity(g,m),(t?a:s).setCustomValidity("",m),g.length>0&&o.ariaAnnounce.announceValue(g,"dateFilter")}createDateCompWrapper(e,t,n){const{beans:{userCompFactory:r,context:i,gos:o},params:s}=this,a=n==="from",l=new Mre(i,r,s.colDef,ft(o,{onDateChanged:()=>{this.refreshInputPairValidation(t,a),this.onUiChanged()},onFocusIn:()=>this.refreshInputPairValidation(t,a),filterParams:s,location:"filter"}),e);return this.addDestroyFunc(()=>l.destroy()),l}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}setElementValue(e,t){e.setDate(t),t||e.setCustomValidity("")}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=Ss({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,n,r){const i=Ss({tag:"div",cls:`ag-filter-${r} ag-filter-date-${r}`});t.push(i),e.appendChild(i),n.push(this.createDateCompWrapper(i,t.length-1,r))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),ab(this.eConditionPanelsFrom,e,t),ab(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,n){const r=ab(e,t,n);for(const i of r)i.destroy()}isValidDateValue(e){if(e===null)return!1;const{minValidDate:t,maxValidDate:n,minValidYear:r,maxValidYear:i}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<r)return!1;if(n){if(e>n)return!1}else if(e.getUTCFullYear()>i)return!1;return!0}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=t.getDate()!=null&&!(t.getValidity()?.valid??!0))),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!(n.getValidity()?.valid??!0))),t}canApply(e){return!this.hasInvalidInputs()}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachPositionInput(e,(n,r,i,o)=>{!t||r>=o||t&&(t=this.isValidDateValue(n.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={},{params:r,filterType:i}=this,o=this.getValues(e),s=r.useIsoSeparator?"T":" ";return o.length>0&&(n.dateFrom=Ao(o[0],!0,s)),o.length>1&&(n.dateTo=Ao(o[1],!0,s)),{dateFrom:null,dateTo:null,filterType:i,type:t,...n}}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput(r=>{r.setInputPlaceholder(t),r.setInputAriaLabel(n)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(n,r,i,o)=>{r<o&&t.push(n.getDate())}),t}translate(e,t){let n=e;return e==="lessThan"?n="before":e==="greaterThan"&&(n="after"),super.translate(n,t)}};function dNe(e,t,n){return e!=null&&t!=null&&e>=t?`${n?"max":"min"}DateValidation`:null}var _re=class extends eR{constructor(e,t){super(e,t,n=>{const{dataTypeSvc:r,valueSvc:i}=this.beans,o=t.column,s=r?.getDateFormatterFunction(o),a=s?s(n??void 0):n;return i.formatValue(o,null,a)}),this.filterTypeKeys=VN}conditionToString(e,t,n,r,i){const{type:o}=e,s=Po(e.dateFrom),a=Po(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,u=t?this.formatValue.bind(this):g=>LOe(g,l),d=()=>s!==null?u(s):"null",f=()=>a!==null?u(a):"null";if(s==null&&a==null)return Ua(this,o);if(t){const g=this.conditionForToolPanel(o,n,d,f,r,i);if(g!=null)return g}return n?`${d()}-${f()}`:s!=null?u(s):`${o}`}};function hNe(e,t){const n=t;return n<e?-1:n>e?1:0}var fNe=class extends HN{constructor(){super(Ire,jN),this.filterType="date",this.FilterModelFormatterClass=_re,this.filterTypeToRangeCache=new Map}getOrRefreshRangeCacheItem(e,t){const{filterTypeToRangeCache:n}=this,r=Date.now();let i=n.get(e);if(i&&i.expires<r&&(i=void 0),!i){const[o,s]=t(new Date(r),new Date(r));i={from:o,to:s,expires:ya(new Date(r)).getTime()-r},n.set(e,i)}return i}comparator(){return this.params.filterParams.comparator??hNe}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}evaluateNonNullValue(e,t,n){const r=n.type,i=this.comparator();if(!this.isValid(t))return r==="notEqual"||r==="notBlank";const o=r,s=_Ne[o];if(s){const{from:a,to:l}=this.getOrRefreshRangeCacheItem(o,s);return i(a,t)>=0&&i(l,t)<0}return super.evaluateNonNullValue(e,t,n)}},gNe=1,lS=null,pNe=()=>{if(lS!=null)return lS;let e;const t=typeof navigator>"u"?void 0:navigator.languages?.[0]??navigator.language;if(t&&typeof Intl<"u"&&typeof Intl.Locale=="function")try{e=new Intl.Locale(t).getWeekInfo?.()?.firstDay}catch{e=void 0}return lS=e==null?gNe:e%7,lS},Rs=e=>(e.setHours(0,0,0,0),e),tR=e=>{const t=e.getDay(),n=pNe(),r=(t-n+7)%7;return e.setDate(e.getDate()-r),Rs(e)},nR=(e,t=1)=>(e.setDate(e.getDate()-t),e),ya=e=>(e.setDate(e.getDate()+1),Rs(e)),Fre=e=>(tR(e),e.setDate(e.getDate()+6),ya(e)),rR=e=>(e.setDate(1),Rs(e)),UN=e=>(e.setDate(1),e.setMonth(e.getMonth()+1),Rs(e)),WN=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3),rR(e)},kre=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3+2),UN(e)},$N=e=>(e.setMonth(0,1),Rs(e)),Lre=e=>(e.setMonth(12,0),ya(e)),Rm=e=>nR(e),RF=e=>Rm(tR(e)),AF=e=>Rm(rR(e)),TF=e=>Rm(WN(e)),qN=(e,t)=>[Rs(e),ya(t)],mNe=(e,t)=>qN(Rm(e),Rm(t)),KN=(e,t)=>[tR(e),Fre(t)],vNe=(e,t)=>KN(RF(e),RF(t)),YN=(e,t)=>[rR(e),UN(t)],yNe=(e,t)=>YN(AF(e),AF(t)),XN=(e,t)=>
vendor: 4,099 bytes, line 892
892[WN(e),kre(t)],bNe=(e,t)=>XN(TF(e),TF(t)),ZN=(e,t)=>[$N(e),Lre(t)],wNe=(e,t)=>[$N(e),ya(t)],CNe=(e,t)=>[Rs(nR(e,7)),ya(t)],SNe=(e,t)=>[Rs(nR(e,30)),ya(t)],xNe=(e,t)=>[Rs(nR(e,90)),ya(t)],ENe=(e,t)=>(e.setFullYear(e.getFullYear()-1),e.setMonth(e.getMonth()+6),[Rs(e),ya(t)]),RNe=(e,t)=>(e.setFullYear(e.getFullYear()-1),[Rs(e),ya(t)]),ANe=(e,t)=>(e.setFullYear(e.getFullYear()-2),[Rs(e),ya(t)]),TNe=(e,t)=>(e.setFullYear(e.getFullYear()-1),t.setFullYear(t.getFullYear()-1),ZN(e,t)),PNe=(e,t)=>(e.setFullYear(e.getFullYear()+1),t.setFullYear(t.getFullYear()+1),ZN(e,t)),ONe=(e,t)=>(e.setMonth(e.getMonth()+3),t.setMonth(t.getMonth()+3),XN(e,t)),DNe=(e,t)=>(e.setMonth(e.getMonth()+1),t.setMonth(t.getMonth()+1),YN(e,t)),MNe=(e,t)=>(e.setDate(e.getDate()+7),t.setDate(t.getDate()+7),KN(e,t)),INe=(e,t)=>(e.setDate(e.getDate()+1),t.setDate(t.getDate()+1),qN(e,t)),_Ne={today:qN,yesterday:mNe,tomorrow:INe,thisWeek:KN,lastWeek:vNe,nextWeek:MNe,thisMonth:YN,lastMonth:yNe,nextMonth:DNe,thisQuarter:XN,lastQuarter:bNe,nextQuarter:ONe,thisYear:ZN,lastYear:TNe,nextYear:PNe,yearToDate:wNe,last7Days:CNe,last30Days:SNe,last90Days:xNe,last6Months:ENe,last12Months:RNe,last24Months:ANe,setStartOfDay:Rs,setStartOfWeek:tR,setStartOfNextDay:ya,setStartOfNextWeek:Fre,setStartOfMonth:rR,setStartOfNextMonth:UN,setStartOfQuarter:WN,setStartOfNextQuarter:kre,setStartOfYear:$N,setStartOfNextYear:Lre,setPreviousDay:Rm,setPreviousWeek:RF,setPreviousMonth:AF,setPreviousQuarter:TF},FNe={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},kNe=class extends Dre{constructor(){super(FNe,[ZE]),this.eReadOnlyText=Ye,this.eDateWrapper=Ye,this.FilterModelFormatterClass=_re,this.filterType="date",this.defaultOptions=jN}setParams(e){super.setParams(e),this.createDateComponent();const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const n=e?Po(e.dateFrom):null;this.dateComp.setDate(n),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){Cn(this.eDateWrapper,e),Cn(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){const e=this.dateComp.getDate();if(this.reactive){const t=this.params;t.onUiChange();const n=t.model,r=Ao(e),i=r==null?null:{...n??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:r};t.onModelChange(i,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=hN(e,this.defaultDebounceMs);return ft(this.gos,{onDateChanged:ui(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:n,params:{column:r}}=this;this.dateComp=new Mre(e,t,r.getColDef(),this.getDateComponentParams(),n,i=>{i.setInputAriaLabel(this.getAriaLabel(r))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},LNe={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},NNe=class extends qn{constructor(){super(LNe,[ZE]),this.eDateInput=Ye,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this),focusin:this.handleFocusIn.bind(this)})}
vendor: 3,792 bytes, line 892
892handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}handleFocusIn(){this.params.onFocusIn?.()}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&ih();const{minValidYear:r,maxValidYear:i,minValidDate:o,maxValidDate:s,buttons:a,includeTime:l,colDef:u}=e.filterParams||{},d=this.beans.dataTypeSvc,f=l??d?.getDateIncludesTimeFlag?.(u.cellDataType)??!1;n?f?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text";const g=iU(o,r,!0),m=iU(s,i,!1);g&&m&&g.getTime()>m.getTime()&&Me(87),g&&(t.min=Ao(g,f)),m&&(t.max=Ao(m,f)),this.isApply=e.location==="floatingFilter"&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return Po(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,n=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(Ao(e,n))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}};function iU(e,t,n){return e&&t&&Me(n?85:86),e instanceof Date?e:e?Po(e):t?Po(`${t}-${n?"01-01":"12-31"}`):null}var QN=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function PF(e){return e?.allowedCharPattern??null}function ox(e){return e==null||isNaN(e)?null:e}function Nre(e,t){const{filter:n,filterTo:r,type:i}=e||{};return[ox(n),ox(r)].slice(0,Xd(i,t))}var BNe=class extends JE{constructor(){super("numberFilter",Nre,QN),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!Cm()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],n=this.eValuesTo[e];this.refreshInputPairValidation(t,n)}}refreshInputPairValidation(e,t,n=!1){const r=this.params.numberParser,i=oU(r,e),o=oU(r,t),s=HNe(i,o,n),a=s?this.translate(s,[String(n?o:i)]):"";(n?e:t).setCustomValidity(a),(n?t:e).setCustomValidity(""),a.length>0&&this.beans.ariaAnnounce.announceValue(a,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:n,additionalEventAttributes:r}=e,i=this.state,o=r?.fromAction;return(o&&o!="apply"||n.model!==i.model||!this.areStatesEqual(n.state,i.state))&&this.refreshInputValidation(),t}setElementValue(e,t,n){const{numberFormatter:r}=this.params,i=!n&&r?r(t??null):t;super.setElementValue(e,i),i===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:n}=this,r=PF(e),i=Ss({tag:"div",cls:"ag-filter-body",role:"presentation"}),o=this.createFromToElement(i,t,"from",r),s=this.createFromToElement(i,n,"to",r),a=(d,f,g)=>()=>this.refreshInputPairValidation(d,f,g),l=a(o,s,!0);o.onValueChange(l),o.addGuiEventListener("focusin",l);const u=a(o,s,!1);return s.onValueChange(u),s.addGuiEventListener("focusin",u),i}createFromToElement(e,t,n,r){const i=this.createManagedBean(r?new fc({allowedCharPattern:r}):new kN);return i.addCss(`ag-filter-${n}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui()),i}removeEValues(e,t){const n=r=>this.removeComponents(r,e,t);
892n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,r,i,o)=>{r<o&&t.push(ox(Bre(this.params.numberParser,n.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,n=>t||(t=!n.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}};function Bre(e,t){if(typeof t=="number")return t;let n=oc(t);return n?.trim()===""&&(n=null),e?e(n):n==null||n.trim()==="-"?null:Number.parseFloat(n)}function oU(e,t){return ox(Bre(e,t.getValue(!0)))}function HNe(e,t,n){return e!=null&&t!=null&&e>=t?`strict${n?"Max":"Min"}ValueValidation`:null}var Hre=class extends eR{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=VN}conditionToString(e,t,n,r,i){const{filter:o,filterTo:s,type:a}=e,l=this.formatValue.bind(this);if(t){const u=this.conditionForToolPanel(a,n,()=>l(o),()=>l(s),r,i);if(u!=null)return u}return n?`${l(o)}-${l(s)}`:o!=null?l(o):`${a}`}},VNe=class extends HN{constructor(){super(Nre,QN),this.filterType="number",this.FilterModelFormatterClass=Hre}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}},zNe=class extends Se{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new kN),this.eTextInput=this.createManagedBean(new fc),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),n=this.eTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,r=>this.onValueChanged(r)),this.setupListeners(n,r=>this.onValueChanged(r))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}
vendor: 7,453 bytes, lines 892-893
892setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams({ariaLabel:e,autoComplete:t,placeholder:n}){this.setAriaLabel(e),t!==void 0&&this.setAutoComplete(t),this.setPlaceholder(this.eNumberInput,n),this.setPlaceholder(this.eTextInput,n)}setPlaceholder(e,t){e.toggleCss("ag-floating-filter-search-icon",!!t),e.setInputPlaceholder(t)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},GNe=class extends GN{constructor(){super(...arguments),this.FilterModelFormatterClass=Hre,this.filterType="number",this.defaultOptions=QN}updateParams(e){PF(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=PF(e.filterParams),this.allowedCharPattern?this.createManagedBean(new zN({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new zNe)}convertValue(e){return e?Number(e):null}},JN=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],jNe=class extends JE{constructor(){super("textFilter",Ore,JN),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(n,r,i,o)=>{r<o&&t.push(oc(n.getValue()))}),t}createEValue(){const e=Ss({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:n}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,n,"to"),e}createFromToElement(e,t,n){const r=this.createManagedBean(new fc);r.addCss(`ag-filter-${n}`),r.addCss("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())}removeEValues(e,t){const n=o=>this.removeComponents(o,e,t),{eValuesFrom:r,eValuesTo:i}=this;n(r),n(i)}},Vre=class extends eR{constructor(){super(...arguments),this.filterTypeKeys=sNe}conditionToString(e,t,n,r,i){const{filter:o,filterTo:s,type:a}=e;if(t){const l=d=>()=>Ua(this,"filterSummaryTextQuote",[d]),u=this.conditionForToolPanel(a,n,l(o),l(s),r,i);if(u!=null)return u}return n?`${o}-${s}`:o!=null?`${o}`:`${a}`}},UNe=({filterOption:e,value:t,filterText:n})=>{if(n==null)return!1;switch(e){case"contains":return t.includes(n);case"notContains":return!t.includes(n);case"equals":return t===n;case"notEqual":return t!=n;case"startsWith":return t.indexOf(n)===0;case"endsWith":{const r=t.lastIndexOf(n);return r>=0&&r===t.length-n.length}default:return!1}},WNe=e=>e,$Ne=e=>e==null?null:e.toString().toLowerCase(),qNe=class extends Tre{constructor(){super(Ore,JN),this.filterType="text",this.FilterModelFormatterClass=Vre}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??UNe,this.formatter=t.textFormatter??(t.caseSensitive?WNe:$Ne)}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,n,r){const i=e.map(g=>this.formatter(g))||[],o=this.formatter(t),{api:s,colDef:a,column:l,context:u,filterParams:{textFormatter:d}}=this.params;if(n.type==="blank")return ix(t);if(n.type==="notBlank")return!ix(t);const f={api:s,colDef:a,column:l,context:u,node:r.node,data:r.data,filterOption:n.type,value:o,textFormatter:d};return i.some(g=>this.matcher({...f,filterText:g}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=n=>{const r={...n},{filter:i,filterTo:o}=n;return i&&(r.filter=EF(i)??null),o&&(r.filterTo=EF(o)??null),r};return Nte(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},KNe=class extends GN{constructor(){super(...arguments),this.FilterModelFormatterClass=Vre,this.filterType="text",this.defaultOptions=JN}createFloatingFilterInputService(){return this.createManagedBean(new zN)}};function YNe(e){return!!e.quickFilter?.isFilterPresent()}function XNe(e){return e.quickFilter?.getText()}function ZNe(e){e.quickFilter?.resetCache()}var QNe=class extends Se{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",n=>this.setFilter(n.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:n,pivotResultCols:r}=this.beans,i=t.pivotMode,o=e?.getColumns(),s=t.getColDefCols();let a=(i&&!n.get("applyQuickFilterBeforePivotOrAgg")?r?.getPivotResultCols()?.list:s)??[];o&&(a=a.concat(o)),this.colsToUse=n.get("includeHiddenColumnsInQuickFilter")?a:a.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(n=>t?this.doesRowPassCache(e,n):this.doesRowPassNoCache(e,n))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return Ve(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){Me(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(n=>{const r=this.getTextForColumn(n,e);return Ve(r)&&r.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let n;e?(this.checkGenerateAggText(t),n=t.quickFilterAggregateText):n=this.getAggText(t);const{quickFilterParts:r,matcher:i}=this;return i(r,n)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let n=this.beans.filterValueSvc.getValue(e,t);const r=e.colDef;if(r.getQuickFilterText){const i=ft(this.gos,{value:n,node:t,data:t.data,column:e,colDef:r});n=r.getQuickFilterText(i)}return Ve(n)?n.toString().toUpperCase():null}getAggText(e){const t=[];for(const n of this.colsToUse){const r=this.getTextForColumn(n,e);Ve(r)&&t.push(r)}return t.join(` 893`)}}
vendor: 5,518 bytes, line 893
893,eB={moduleName:"FilterCore",version:Le,beans:[GLe],apiFunctions:{isAnyFilterPresent:VLe,onFilterChanged:zLe},css:[bLe]},zre={moduleName:"FilterValue",version:Le,beans:[XLe]},bw={moduleName:"ColumnFilter",version:Le,beans:[HLe,YLe],dynamicBeans:{headerFilterCellCtrl:gLe},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:wLe,getColumnFilterInstance:CLe,destroyFilter:SLe,setFilterModel:xLe,getFilterModel:ELe,getColumnFilterModel:RLe,setColumnFilterModel:ALe,showColumnFilter:TLe,hideColumnFilter:PLe,getColumnFilterHandler:OLe,doFilterAction:DLe},dependsOn:[eB,XE,zre,yLe]},JNe={moduleName:"CustomFilter",version:Le,userComponents:{agReadOnlyFloatingFilter:QLe},dependsOn:[bw]},eBe={moduleName:"TextFilter",version:Le,dependsOn:[bw],userComponents:{agTextColumnFilter:{classImp:jNe,params:{useForm:!0}},agTextColumnFloatingFilter:KNe},dynamicBeans:{agTextColumnFilterHandler:qNe}},tBe={moduleName:"NumberFilter",version:Le,dependsOn:[bw],userComponents:{agNumberColumnFilter:{classImp:BNe,params:{useForm:!0}},agNumberColumnFloatingFilter:GNe},dynamicBeans:{agNumberColumnFilterHandler:VNe}},nBe={moduleName:"BigIntFilter",version:Le,dependsOn:[bw],userComponents:{agBigIntColumnFilter:{classImp:iNe,params:{useForm:!0}},agBigIntColumnFloatingFilter:uNe},dynamicBeans:{agBigIntColumnFilterHandler:aNe}},rBe={moduleName:"DateFilter",version:Le,dependsOn:[bw],userComponents:{agDateColumnFilter:{classImp:cNe,params:{useForm:!0}},agDateInput:NNe,agDateColumnFloatingFilter:kNe},dynamicBeans:{agDateColumnFilterHandler:fNe}},iBe={moduleName:"QuickFilterCore",version:Le,rowModels:["clientSide"],beans:[QNe],dependsOn:[eB,zre]},oBe={moduleName:"QuickFilter",version:Le,apiFunctions:{isQuickFilterPresent:YNe,getQuickFilter:XNe,resetQuickFilter:ZNe},dependsOn:[iBe]},sBe={moduleName:"ExternalFilter",version:Le,dependsOn:[eB]},aBe=class extends Se{constructor(e,t,n){super(),this.id=e,this.parentCache=t,this.params=n,this.state="needsLoading",this.version=0,this.startRow=e*n.blockSize,this.endRow=this.startRow+n.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){const t=e===this.version,n=this.isAlive();return t&&n}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:n,beans:r,rowNodes:i}=this;for(let o=0;o<e;o++){const s=n+o,a=new Yd(r);a.setRowHeight(t),a.uiLevel=0,a.setRowIndex(s),a.setRowTop(t*s),i.push(a)}}getBlockStateJson(){const{id:e,startRow:t,endRow:n,state:r}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:n,pageStatus:r}}}setDataAndId(e,t,n){Ve(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(rr(this.params.datasource.getRows)){Me(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:n,params:{sortModel:r,filterModel:i},gos:o}=this;return ft(o,{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,n),failCallback:this.pageLoadFailed.bind(this,n),sortModel:r,filterModel:i})}forEachNode(e,t,n){this.rowNodes.forEach((r,i)=>{this.startRow+i<n&&e(r,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const n=e-this.startRow;return this.rowNodes[n]}processServerResult(e){const{rowNodes:t,beans:n}=this;t.forEach((i,o)=>{const s=e.rowData?e.rowData[o]:void 0;!i.id&&i.alreadyRendered&&s&&(t[o]=new Yd(n),t[o].setRowIndex(i.rowIndex),t[o].setRowTop(i.rowTop),t[o].setRowHeight(i.rowHeight),i._destroy(!0)),this.setDataAndId(t[o],s,this.startRow+o)});const r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)}destroy(){const e=this.rowNodes;for(let t=0,n=e.length;t<n;t++)e[t]._destroy(!1);e.length=0,super.destroy()}},lBe=2,uBe=class extends Se{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const n=Math.floor(e/this.params.blockSize);let r=this.blocks[n];if(!r){if(t)return;r=this.createBlock(n)}return r.getRow(e)}createBlock(e){const t=this.params,n=this.createBean(new aBe(e,this,t));return this.blocks[n.id]=n,this.blockCount++,this.purgeBlocksIfNeeded(n),t.rowNodeBlockLoader.addBlock(n),n}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Wf(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(s=>s!=e),n=(s,a)=>a.lastAccessed-s.lastAccessed;t.sort(n);const r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,o=lBe-1;t.forEach((s,a)=>{const l=s.state==="needsLoading"&&a>=o,u=r?a>=i:!1;if(l||u){if(this.isBlockCurrentlyDisplayed(s)||this.isBlockFocused(s))return;
vendor: 6,038 bytes, line 893
893this.removeBlockFromCache(s)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:n,endRow:r}=e;return t.rowIndex>=n&&t.rowIndex<r}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:n}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,n-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:n,overflowSize:r}=this.params,o=(e.id+1)*n+r;this.rowCount<o&&(this.rowCount=o)}}setRowCount(e,t){this.rowCount=e,Ve(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const n of this.getBlocksInOrder())n.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(n,r)=>n.id-r.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const n=[];let r=-1,i=!1;const o={value:0};let s=!1;for(const l of this.getBlocksInOrder())if(!s){if(i&&r+1!==l.id){s=!0;continue}r=l.id,l.forEachNode(u=>{const d=u===e||u===t;(i||d)&&n.push(u),d&&(i=!i)},o,this.rowCount)}return s||i?[]:n}},cBe=class extends Se{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.hierarchical=!1}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get("rowModelType")!=="infinite")return;const e=this.beans,t=new Yd(e);this.rootNode=t,t.level=-1,this.rowHeight=Af(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=Af(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!Pb(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getOverlayType(){return this.infiniteCache?.getRowCount()===0?this.beans.filterManager?.isAnyFilterPresent()?"noMatchingRows":"noRows":null}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;wm(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:n,rowNodeBlockLoader:r,eventSvc:i,gos:o}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:n?.getSortModel()??[],rowNodeBlockLoader:r,initialRowCount:o.get("infiniteInitialRowCount"),maxBlocksInCache:o.get("maxBlocksInCache"),rowHeight:Af(e),overflowSize:o.get("cacheOverflowSize"),blockSize:o.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new uBe(this.cacheParams)),i.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}};function dBe(e){$E(e)?.refreshCache()}function hBe(e){$E(e)?.purgeCache()}function fBe(e){return $E(e)?.getRowCount()}var gBe=class extends Se{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=gEe(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=ui(this,this.performCheckBlocksToLoad.bind(this),e))}
vendor: 4,671 bytes, line 893
893addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){Zl(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Wf(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(n=>n.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length;for(const n of t)n.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:n,state:r}=t.getBlockStateJson();e[n]=r}),e}printCacheStatus(){Wf(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},pBe={moduleName:"InfiniteRowModelCore",version:Le,rowModels:["infinite"],beans:[cBe,gBe]},mBe={moduleName:"InfiniteRowModel",version:Le,apiFunctions:{refreshInfiniteCache:dBe,purgeInfiniteCache:hBe,getInfiniteRowCount:fBe},dependsOn:[pBe,L_e]},vBe=class extends Se{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){const n=this.wrapSvc?.wrap(e,t)??t,r=!c1.has(e),i=r?this.asyncListeners:this.syncListeners;i.has(e)||i.set(e,new Set),i.get(e).add(n),this.eventSvc.addListener(e,n,r)}removeListener(e,t){const n=this.wrapSvc?.unwrap(e,t)??t,i=!!this.asyncListeners.get(e)?.delete(n);i||this.syncListeners.get(e)?.delete(n),this.eventSvc.removeListener(e,n,i)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,n=(o,s)=>{c1.has(o)&&t(o,s)},r=(o,s)=>{c1.has(o)||t(o,s)};this.globalListenerPairs.set(e,{syncListener:n,asyncListener:r});const i=this.eventSvc;i.addGlobalListener(n,!1),i.addGlobalListener(r,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:n,globalListenerPairs:r}=this,i=n?.unwrapGlobal(e)??e;if(r.has(i)){const{syncListener:s,asyncListener:a}=r.get(i);t.removeGlobalListener(s,!1),t.removeGlobalListener(a,!0),r.delete(e)}else this.syncGlobalListeners.delete(i),t.removeGlobalListener(i,!1)}destroyEventListeners(e,t){e.forEach((n,r)=>{n.forEach(i=>this.eventSvc.removeListener(r,i,t)),n.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const n of e)this.eventSvc.removeGlobalListener(n,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:n,asyncListener:r})=>{t.removeGlobalListener(n,!1),t.removeGlobalListener(r,!0)}),e.clear()}};function yBe(e,t,n){e.apiEventSvc?.addListener(t,n)}function bBe(e,t,n){e.apiEventSvc?.removeListener(t,n)}function wBe(e,t){e.apiEventSvc?.addGlobalListener(t)}function CBe(e,t){e.apiEventSvc?.removeGlobalListener(t)}var SBe={moduleName:"EventApi",version:Le,apiFunctions:{addEventListener:yBe,addGlobalListener:wBe,removeEventListener:bBe,removeGlobalListener:CBe},beans:[vBe]},xBe=class extends Se{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");return t?Nxe(t):Bxe(e.get("localeText"))}},EBe={moduleName:"Locale",version:Le,beans:[xBe]};function RBe(e){return e.stateSvc?.getState()??{}}function ABe(e,t,n){return e.stateSvc?.setState(t,n)}function sU(e){return e={...e},e.version||(e.version="32.1.0"),e.version==="32.1.0"&&(e=TBe(e)),e.version=Le,e}function TBe(e){return e.cellSelection=PBe(e,"rangeSelection"),e}function PBe(e,t){if(e&&typeof e=="object")return e[t]}var OBe=class extends Se{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=ui(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=ui(this,()=>this.updateGroupExpansionState(),0),this.onRowSelectedDebounced=ui(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}
vendor: 4,718 bytes, line 893
893postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:n}=this.beans;this.isClientSideRowModel=hr(e);const r=sU(e.get("initialState")??{}),i=r.partialColumnState;delete r.partialColumnState,this.cachedState=r;const o=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>o(()=>this.setupStateOnGridReady(r))),(r.columnOrder||r.columnVisibility||r.columnSizing||r.columnPinning||r.columnGroup)&&n?.hideColumns("columnState");const[s,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:u})=>{u==="gridInitializing"&&(s(),o(()=>{this.setupStateOnColumnsInitialised(r,!!i),n?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),o(()=>this.setupStateOnRowCountReady(r))},firstDataRendered:()=>{l?.(),o(()=>this.setupStateOnFirstDataRendered(r))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const n=sU(e);delete n.partialColumnState,this.cachedState=n,this.startSuppressEvents();const r="api",i=t?new Set(t):void 0;this.setGridReadyState(n,r,i),this.setColumnsInitialisedState(n,r,!!i,i),this.setRowCountState(n,r,i),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(n,r,i),this.stopSuppressEvents(r)})}setGridReadyState(e,t,n){t==="api"&&!n?.has("sideBar")&&this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,n,r){this.setColumnState(e,t,n,r),this.setColumnGroupState(e,t,r),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const n=r=>()=>this.updateColumnState([r]);this.addManagedEventListeners({columnValueChanged:n("aggregation"),columnMoved:n("columnOrder"),columnPinned:n("columnPinning"),columnResized:n("columnSizing"),columnVisible:n("columnVisibility"),columnPivotChanged:n("pivot"),columnPivotModeChanged:n("pivot"),columnRowGroupChanged:n("rowGroup"),sortChanged:n("sort"),newColumnsLoaded:({source:r})=>{this.updateColumnAndGroupState(),r!=="gridInitializing"&&this.isClientSideRowModel&&this.onRowGroupOpenedDebounced()},columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,n){const{filter:r,rowGroupExpansion:i,ssrmRowGroupExpansion:o,rowSelection:s,pagination:a,rowPinning:l}=e,u=(f,g)=>!n?.has(f)&&(g||t==="api");u("filter",r)&&this.setFilterState(r),(u("rowGroupExpansion",i)||u("ssrmRowGroupExpansion",o))&&this.setRowGroupExpansionState(o,i,t),u("rowSelection",s)&&this.setRowSelectionState(s,t),u("pagination",a)&&this.setPaginationState(a,t),u("rowPinning",l)&&this.setRowPinningState(l);const d=this.updateCachedState.bind(this);d("filter",this.getFilterState()),this.updateGroupExpansionState(),d("rowSelection",this.getRowSelectionState()),d("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),n=()=>{this.updateRowGroupExpansionStateTimer=0,this.updateGroupExpansionState()},r=()=>t("filter",this.getFilterState()),{gos:i,colFilter:o,selectableFilter:s}=this.beans;this.addManagedEventListeners({filterChanged:r,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:n,columnRowGroupChanged:n,rowDataUpdated:()=>{(i.get("groupDefaultExpanded")!==0||i.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(n)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&t("pagination",this.getPaginationState())},pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())}),o&&this.addManagedListeners(o,{filterStateChanged:r}),s&&this.addManagedListeners(s,{selectedFilterChanged:r})}setFirstDataRenderedState(e,t,n){const{scroll:r,cellSelection:i,focusedCell:o,columnOrder:s}=e,a=(d,f)=>!n?.has(d)&&(f||t==="api");a("focusedCell",o)&&this.setFocusedCellState(o),a("cellSelection",i)&&this.setCellSelectionState(i),a("scroll",r)&&this.setScrollState(r),this.setColumnPivotState(!!s?.orderedColIds,t);const l=this.updateCachedState.bind(this);
893l("sideBar",this.getSideBarState()),l("focusedCell",this.getFocusedCellState());const u=this.getRangeSelectionState();l("rangeSelection",u),l("cellSelection",u),l("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),n=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:n,cellFocusCleared:n,cellSelectionChanged:r=>{if(r.finished){const i=this.getRangeSelectionState();t("rangeSelection",i),t("cellSelection",i)}},bodyScrollEnd:()=>t("scroll",this.getScrollState())})}getColumnState(){const e=this.beans;return c_e(Q1(e),e.colModel.pivotMode)}setColumnState(e,t,n,r){const{sort:i,rowGroup:o,aggregation:s,pivot:a,columnPinning:l,columnVisibility:u,columnSizing:d,columnOrder:f}=e;let g=!1;const m=(M,k)=>{const B=!r?.has(M)&&!!(k||t==="api");return g||(g=B),B},y={},b=M=>{let k=y[M];return k||(k={colId:M},y[M]=k,k)},w={},C=m("sort",i);C&&i?.sortModel.forEach(({colId:M,sort:k,type:B},j)=>{const z=b(M);z.sort=k,z.sortIndex=j,z.sortType=B}),(C||!n)&&(w.sort=null,w.sortIndex=null);const E=m("rowGroup",o);E&&o?.groupColIds.forEach((M,k)=>{const B=b(M);B.rowGroup=!0,B.rowGroupIndex=k}),(E||!n)&&(w.rowGroup=null,w.rowGroupIndex=null);const A=m("aggregation",s);A&&s?.aggregationModel.forEach(({colId:M,aggFunc:k})=>{b(M).aggFunc=k}),(A||!n)&&(w.aggFunc=null);const T=m("pivot",a);T&&(a?.pivotColIds.forEach((M,k)=>{const B=b(M);B.pivot=!0,B.pivotIndex=k}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),(T||!n)&&(w.pivot=null,w.pivotIndex=null);const P=m("columnPinning",l);if(P){for(const M of l?.leftColIds??[])b(M).pinned="left";for(const M of l?.rightColIds??[])b(M).pinned="right"}(P||!n)&&(w.pinned=null);const O=m("columnVisibility",u);if(O)for(const M of u?.hiddenColIds??[])b(M).hide=!0;(O||!n)&&(w.hide=null);const D=m("columnSizing",d);if(D)for(const{colId:M,flex:k,width:B}of d?.columnSizingModel??[]){const j=b(M);j.flex=k??null,j.width=B}(D||!n)&&(w.flex=null);const F=f?.orderedColIds,L=!!F?.length&&!r?.has("columnOrder"),N=L?F.map(M=>b(M)):Object.values(y);(N.length||g)&&(this.columnStates=N,Ya(this.beans,{state:N,applyOrder:L,defaultState:w},t))}setColumnPivotState(e,t){const n=this.columnStates;this.columnStates=void 0;const r=this.columnGroupStates;this.columnGroupStates=void 0;const i=this.beans,{pivotResultCols:o,colGroupSvc:s}=i;if(o?.isPivotResultColsPresent()){if(n){const a=[];for(const l of n)o.getPivotResultCol(l.colId)&&a.push(l);Ya(i,{state:a,applyOrder:e},t)}r&&s?.setColumnGroupState(r,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return d_e(t)}setColumnGroupState(e,t,n){const r=this.beans.colGroupSvc;if(!r||n?.has("columnGroup")||t!=="api"&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const i=new Set(e.columnGroup?.openColumnGroupIds),s=r.getColumnGroupState().map(({groupId:a})=>{const l=i.has(a);return l&&i.delete(a),{groupId:a,open:l}});for(const a of i)s.push({groupId:a,open:!0});s.length&&(this.columnGroupStates=s),r.setColumnGroupState(s,t)}getFilterState(){const{filterManager:e,selectableFilter:t}=this.beans;let n=e?.getFilterModel();n&&Object.keys(n).length===0&&(n=void 0);const r=e?.getFilterState(),i=e?.getAdvFilterModel()??void 0,o=t?.getState();return n||i||r||o?{filterModel:n,columnFilterState:r,advancedFilterModel:i,selectableFilters:o}:void 0}setFilterState(e){const{filterManager:t,selectableFilter:n}=this.beans,{filterModel:r,columnFilterState:i,advancedFilterModel:o,selectableFilters:s}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};s!==void 0&&n?.setState(s??{}),(r!==void 0||i!==void 0)&&t?.setFilterState(r??null,i??null,"columnFilter"),o!==void 0&&t?.setAdvFilterModel(o??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:n,type:r,startRow:i,endRow:o,columns:s,startColumn:a}=t;return{id:n,type:r,startRow:i,endRow:o,colIds:s.map(l=>l.getColId()),startColId:a.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:n,colModel:r,visibleCols:i}=this.beans;if(!qd(t)||!n)return;const o=[];for(const s of e?.cellRanges??[]){const a=[];for(const u of s.colIds){const d=r.getCol(u);d&&a.push(d)}if(!a.length)continue;let l=r.getCol(s.startColId);
vendor: 12,747 bytes, line 893
893if(!l){const u=i.allCols,d=new Set(a);l=u.find(f=>d.has(f))}o.push({...s,columns:a,startColumn:l})}n.setCellRanges(o)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:n}=e?.getVScrollPosition()??{top:0};return n||t?{top:n,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:n}=e??{top:0,left:0},{frameworkOverrides:r,rowRenderer:i,animationFrameSvc:o,ctrlsSvc:s}=this.beans;r.wrapIncoming(()=>{s.get("center").setCenterViewportScrollLeft(n),s.getScrollFeature()?.setVerticalScrollPosition(t),i.redraw({afterScroll:!0}),o?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:n,rowPinned:r}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:r}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:n}=this.beans;if(!e){t.clearFocusedCell();return}const{colId:r,rowIndex:i,rowPinned:o}=e;t.setFocusedCell({column:n.getCol(r),rowIndex:i,rowPinned:o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const n=e.getCurrentPage(),r=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!n&&!r))return{page:n,pageSize:r}}setPaginationState(e,t){const{pagination:n,gos:r}=this.beans;if(!n)return;const{pageSize:i,page:o}=e??{page:0,pageSize:r.get("paginationPageSize")},s=t==="gridInitializing";i&&!r.get("paginationAutoPageSize")&&n.setPageSize(i,s?"initialState":"pageSizeSelector"),typeof o=="number"&&(s?n.setPage(o):n.goToPage(o))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t==="api")}updateGroupExpansionState(){const{expansionSvc:e,gos:t}=this.beans,n=e?.getExpansionState(),r=t.get("ssrmExpandAllAffectsAllRows");this.updateCachedState("ssrmRowGroupExpansion",r?n:void 0),this.updateCachedState("rowGroupExpansion",r?void 0:n)}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,n){const r=e??t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};this.beans.expansionSvc?.setExpansionState(r,n)}updateColumnState(e){const t=this.getColumnState();let n=!1;const r=this.cachedState;for(const i of Object.keys(t)){const o=t[i];Pb(o,r[i])||(n=!0)}this.cachedState={...r,...t},n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const n=this.cachedState[e];this.setCachedStateValue(e,t),Pb(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)t==="rowSelection"&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}},DBe={moduleName:"GridState",version:Le,beans:[OBe],apiFunctions:{getState:RBe,setState:ABe}};function MBe(e){return e.rowModel.isLastRowIndexKnown()}function IBe(e){return e.pagination?.getPageSize()??100}function _Be(e){return e.pagination?.getCurrentPage()??0}function FBe(e){return e.pagination?.getTotalPages()??1}function kBe(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function LBe(e){e.pagination?.goToNextPage()}function NBe(e){e.pagination?.goToPreviousPage()}function BBe(e){e.pagination?.goToFirstPage()}function HBe(e){e.pagination?.goToLastPage()}function VBe(e,t){e.pagination?.goToPage(t)}var zBe=class extends Se{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,n=()=>{const r=Math.max(Af(t),1),i=Math.floor(e/r);t.pagination.setPageSize(i,"autoCalculated")};this.isBodyRendered?ui(this,n,50)():(n(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},my="paginationPageSizeSelector",GBe={tag:"span",cls:"ag-paging-page-size"},jBe=class extends qn{constructor(){super(GBe),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(my,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Jo(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return!this.gos.get("paginationAutoPageSize")&&this.gos.get(my)!==!1}updateVisibility(){const e=this.shouldShowPageSizeSelector();this.toggleSelectDisplay(e),this.setDisplayed(e)}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),n=!t||!e.includes(t);if(n){const i=this.gos.exists("paginationPageSize"),o=this.gos.get(my)!==!0;Me(94,{pageSizeSet:i,pageSizesSet:o,pageSizeOptions:e,paginationPageSizeOption:t}),o||Me(95,{paginationPageSizeOption:t,paginationPageSizeSelector:my}),e.unshift("")}const r=String(n?"":t);this.selectPageSizeComp?(th(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(r,!0)):this.createPageSizeSelectorComp(e,r),this.hasEmptyOption=n}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const n=this.getLocaleTextFunc(),r=n("pageSizeSelectorLabel","Page Size:"),i=n("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new LN).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(i).setLabel(r).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(my);return!Array.isArray(t)||!t?.length?e:[...t].sort((n,r)=>n-r)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}};function UBe(e,t){if(typeof e!="number")return"";const n=t(),r=n("thousandSeparator",","),i=n("decimalSeparator",".");return e.toString().replace(".",i).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${r}`)}function Gre(e,t,n){const r=t.getCallback("paginationNumberFormatter");return r?r({value:e}):UBe(e,n)}var WBe=class extends qn{constructor(e){super(),this.btFirst=Ye,this.btPrevious=Ye,this.btNext=Ye,this.btLast=Ye,this.lbCurrent=Ye,this.lbTotal=Ye,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.ariaStatus="",this.idPrefix=e}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination}postConstruct(){const e=this.idPrefix,t=this.getLocaleTextFunc();this.setTemplate({tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":t("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":t("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${e}-start-page`},children:t("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${e}-start-page-number`}},{tag:"span",attrs:{id:`${e}-of-page`},children:t("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${e}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":t("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":t("lastPage","Last Page")}}]});const{gos:n,btFirst:r,btPrevious:i,btNext:o,btLast:s,beans:a}=this,l=n.get("enableRtl");r.insertAdjacentElement("afterbegin",Ko(l?"last":"first",a)),i.insertAdjacentElement("afterbegin",Ko(l?"next":"previous",a)),o.insertAdjacentElement("afterbegin",Ko(l?"previous":"next",a)),s.insertAdjacentElement("afterbegin",Ko(l?"first":"last",a)),this.activateTabIndex([r,i,o,s]);for(const{el:u,fn:d}of[{el:r,fn:this.onBtFirst.bind(this)},{el:i,fn:this.onBtPrevious.bind(this)},{el:o,fn:this.onBtNext.bind(this)},{el:s,fn:this.onBtLast.bind(this)}])this.addManagedListeners(u,{click:d,keydown:f=>{(f.key===fe.ENTER||f.key===fe.SPACE)&&(f.preventDefault(),d())}});this.refresh()}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}refresh(){this.enableOrDisableButtons(),this.updateLabels()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),n=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const r=t&&n===0,i=e===n-1;this.nextButtonDisabled=i||r,this.lastButtonDisabled=!t||r||i,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){hxe(e,t),e.classList.toggle("ag-disabled",t)}updateLabels(){const{rowModel:e,pagination:t}=this,n=e.isLastRowIndexKnown(),r=t.getTotalPages(),i=t.getCurrentPage(),o=this.getLocaleTextFunc(),s=r>0,a=this.formatNumber(s?i+1:0);this.lbCurrent.textContent=a;let l;n?l=this.formatNumber(r):l=o("more","more"),this.lbTotal.textContent=l;const u=o("page","Page"),d=o("of","of");this.ariaStatus=`${u} ${a} ${d} ${l}`}formatNumber(e){return Gre(e,this.gos,this.getLocaleTextFunc.bind(this))}},$Be=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;flex-wrap:wrap-reverse;gap:calc(var(--ag-spacing)*4);justify-content:flex-end;min-height:var(--ag-pagination-panel-height);padding:calc(var(--ag-spacing)*.5) var(--ag-cell-horizontal-padding);row-gap:calc(var(--ag-spacing)*.5);@container (width < 600px){justify-content:center}}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel,.ag-paging-row-summary-panel{margin:calc(var(--ag-spacing)*.5)}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}
893.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-variant-numeric:tabular-nums;font-weight:500}.ag-paging-description{line-height:0}",qBe=class extends qn{constructor(e){super(),this.lbFirstRowOnPage=Ye,this.lbLastRowOnPage=Ye,this.lbRecordCount=Ye,this.ariaStatus="",this.idPrefix=e}wireBeans(e){this.pagination=e.pagination}postConstruct(){const e=this.idPrefix,t=this.getLocaleTextFunc();this.setTemplate({tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${e}-first-row`}},{tag:"span",attrs:{id:`${e}-to`},children:t("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${e}-last-row`}},{tag:"span",attrs:{id:`${e}-of`},children:t("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${e}-row-count`}}]}),this.refresh()}isZeroPages(){return this.beans.rowModel.isLastRowIndexKnown()&&this.pagination.getTotalPages()===0}refresh(){const{pagination:e,beans:{rowModel:t},gos:n}=this,r=t.isLastRowIndexKnown(),i=e.getMasterRowCount(),o=r?i:null,s=e.getCurrentPage(),a=e.getPageSize(),l=this.getLocaleTextFunc();let u,d;this.isZeroPages()?u=d=0:(u=a*s+1,d=u+a-1,r&&d>o&&(d=o));const f=u+a-1,g=!r&&i<f,m=A=>Gre(A,n,this.getLocaleTextFunc.bind(this)),y=m(u);this.lbFirstRowOnPage.textContent=y;let b;g?b=l("pageLastRowUnknown","?"):b=m(d),this.lbLastRowOnPage.textContent=b;let w;r?w=m(o):w=l("more","more"),this.lbRecordCount.textContent=w;const C=l("to","to"),E=l("of","of");this.ariaStatus=`${y} ${C} ${b} ${E} ${w}`}},KBe=["pageSize","rowSummary","pageSummary"],YBe=class extends fTe{constructor(){super(),this.hasVisiblePanel=!1,this.allowFocusInnerElement=!1,this.lastAriaAnnounced={paginationRow:"",paginationPage:""},this.registerCSS($Be)}postConstruct(){const e=`ag-${this.getCompId()}`;this.setTemplate({tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:e}}),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:t=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(t):vAe(this.beans,t),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.buildComponents(e),this.addManagedPropertyListeners(["pagination","suppressPaginationPanel"],()=>this.onPaginationChanged()),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.addManagedPropertyListener("paginationPanels",()=>this.rebuildComponents(e)),this.addManagedEventListeners({paginationChanged:()=>this.onPaginationEvent()}),mAe(this.beans,this,this.getGui()),this.onPaginationChanged(),this.announceAriaStatus()}setAllowFocus(e){this.allowFocusInnerElement=e}getFocusableContainerName(){return"pagination"}buildComponents(e){const t=this.gos.get("paginationPanels")??KBe,n=new Set;for(const r of t)n.has(r)||(n.add(r),r==="pageSize"?(this.pageSizeComp=this.createManagedBean(new jBe),this.pageSizeComp.updateVisibility(),this.appendChild(this.pageSizeComp)):r==="rowSummary"?(this.rowSummaryComp=this.createManagedBean(new qBe(e)),this.appendChild(this.rowSummaryComp)):r==="pageSummary"&&(this.pageSummaryComp=this.createManagedBean(new WBe(e)),this.appendChild(this.pageSummaryComp)));this.updateHasVisiblePanel()}updateHasVisiblePanel(){this.hasVisiblePanel=this.rowSummaryComp!=null||this.pageSummaryComp!=null||this.pageSizeComp?.shouldShowPageSizeSelector()===!0}rebuildComponents(e){for(const t of[this.pageSizeComp,this.rowSummaryComp,this.pageSummaryComp])t&&Ql(t.getGui());this.pageSizeComp=this.destroyBean(this.pageSizeComp),this.rowSummaryComp=this.destroyBean(this.rowSummaryComp),this.pageSummaryComp=this.destroyBean(this.pageSummaryComp),this.buildComponents(e),this.onPaginationChanged(),this.announceAriaStatus()}onPaginationChanged(){const e=this.hasVisiblePanel&&this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(e)}onPageSizeRelatedOptionsChange(){this.pageSizeComp?.updateVisibility(),this.updateHasVisiblePanel(),this.onPaginationChanged()}onPaginationEvent(){this.rowSummaryComp?.refresh(),this.pageSummaryComp?.refresh(),this.announceAriaStatus()}announceAriaStatus(){!this.gos.get("pagination")||this.gos.get("suppressPaginationPanel")||(this.announceIfChanged(this.rowSummaryComp,"paginationRow"),this.announceIfChanged(this.pageSummaryComp,"paginationPage"))}announceIfChanged(e,t){if(!e)return;const n=e.ariaStatus;n!==this.lastAriaAnnounced[t]&&(this.lastAriaAnnounced[t]=n,this.beans.ariaAnnounce?.announceValue(n,t))}},XBe={selector:"AG-PAGINATION",component:YBe},ZBe=100,QBe=class extends Se{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDis
vendor: 4,230 bytes, line 893
893playedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return XBe}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||typeof t!="number")return;const{editSvc:n}=this.beans;n?.isEditing()&&(n.isBatchEditing()?n.cleanupEditors():n.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){const{pageSizeAutoCalculated:e,pageSizeFromInitialState:t,pageSizeFromGridOptions:n,pageSizeFromPageSizeSelector:r,gos:i}=this;return(i.get("paginationAutoPageSize")?e:void 0)??r??t??n??ZBe}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const n=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}n!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const n=this.pageSize,r=t-1;this.totalPages=Math.floor(r/n)+1,this.adjustCurrentPageIfInvalid();const i=this.currentPage,o=n*i;let s=n*(i+1)-1;if(s>r&&(s=r),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(o),s===r)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const a=e.getTopLevelRowDisplayedIndex(s+1);this.bottomDisplayedRowIndex=a-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:n}=this,r=e-1;this.totalPages=Math.floor(r/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*n,this.bottomDis
vendor: 3,570 bytes, line 893
893playedRowIndex=t*(n+1)-1,this.bottomDisplayedRowIndex>r&&(this.bottomDisplayedRowIndex=r)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:n=!1,newPageSize:r=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:n,newPageSize:r,keepRenderedRows:t})}},JBe={moduleName:"Pagination",version:Le,beans:[QBe,zBe],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:MBe,paginationGetPageSize:IBe,paginationGetCurrentPage:_Be,paginationGetTotalPages:FBe,paginationGetRowCount:kBe,paginationGoToNextPage:LBe,paginationGoToPreviousPage:NBe,paginationGoToFirstPage:BBe,paginationGoToLastPage:HBe,paginationGoToPage:VBe},dependsOn:[XE]},eHe=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function tHe(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function nHe(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function rHe(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function iHe(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function oHe(e,t,n){return e.pinnedRowModel?.forEachPinnedRow(t,n)}var sHe={moduleName:"PinnedRow",version:Le,beans:[tAe],css:[eHe],apiFunctions:{getPinnedTopRowCount:tHe,getPinnedBottomRowCount:nHe,getPinnedTopRow:rHe,getPinnedBottomRow:iHe,forEachPinnedRow:oHe},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},aHe="â",lHe="â",uHe={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},cHe=class extends qn{constructor(){super(uHe),this.eValue=Ye,this.eDelta=Ye,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const n=Math.abs(t),r=e.formatValue(n),i=Ve(r)?r:n,o=t>=0,s=this.eDelta;o?s.textContent=aHe+i:s.textContent=lHe+i,s.classList.toggle("ag-value-change-delta-up",o),s.classList.toggle("ag-value-change-delta-down",!o)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Jo(this.eDelta)}refresh(e,t=!1){const{value:n,valueFormatted:r}=e,{eValue:i,lastValue:o,beans:s}=this;if(n===o||(Ve(r)?i.textContent=r:Ve(n)?i.textContent=n:Jo(i),s.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const a=n&&typeof n=="object"&&"toNumber"in n?n.toNumber():n,l=o&&typeof o=="object"&&"toNumber"in o?o.toNumber():o;if(a===l)return!1;if(typeof a=="number"&&typeof l=="number"){const u=a-l;this.showDelta(e,u)}return o&&i.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}},dHe=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}
893:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",hHe={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},fHe=class extends qn{constructor(){super(hHe),this.eCurrent=Ye,this.refreshCount=0,this.registerCSS(dHe)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:n}=this,r=Ss({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=r,r.textContent=n.textContent,this.getGui().insertBefore(r,n),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let n=e.value;if(rr(n)&&(n=""),n===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=n;const r=this.eCurrent;return Ve(e.valueFormatted)?r.textContent=e.valueFormatted:Ve(e.value)?r.textContent=n:Jo(r),!0}},gHe=class extends Se{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,n=this.beans.gos.get("cellFlashDuration"),r=this.beans.gos.get("cellFadeDuration")){const i=this.animations[t];i.delete(e);const o=Date.now(),s=o+n,a=o+n+r,l={phase:"flash",flashEndTime:s,fadeEndTime:a};i.set(e,l);const u=`ag-cell-${t}`,d=`${u}-animation`,{comp:f,eGui:{style:g}}=e;f.toggleCss(u,!0),f.toggleCss(d,!1),g.removeProperty("transition"),g.removeProperty("transition-delay"),this.nextAnimationTime&&s+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),n)}),this.nextAnimationTime=s)}advanceAnimations(){const e=Date.now();let t=null;for(const n of Object.keys(this.animations)){const r=this.animations[n],i=`ag-cell-${n}`,o=`${i}-animation`;for(const[s,a]of r){if(!s.isAlive()||!s.comp){r.delete(s);continue}const{phase:l,flashEndTime:u,fadeEndTime:d}=a,f=l==="flash"?u:d;if(!(e+15>=f)){t=Math.min(f,t??1/0);continue}const{comp:m,eGui:{style:y}}=s;switch(l){case"flash":m.toggleCss(i,!1),m.toggleCss(o,!0),y.transition=`background-color ${d-u}ms`,y.transitionDelay=`${u-e}ms`,t=Math.min(d,t??1/0),a.phase="fade";break;case"fade":m.toggleCss(i,!1),m.toggleCss(o,!1),y.removeProperty("transition"),y.removeProperty("transition-delay"),r.delete(s);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const n=dAe(e.cellPosition);t.cells[n]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}};function pHe(e,t={}){const{cellFlashSvc:n}=e;n&&e.frameworkOverrides.wrapIncoming(()=>{for(const r of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))n.flashCell(r,t)})}var mHe={moduleName:"HighlightChanges",version:Le,beans:[gHe],userComponents:{agAnimateShowChangeCellRenderer:cHe,agAnimateSlideCellRenderer:fHe}
vendor: 11,464 bytes, line 893
893,apiFunctions:{flashCells:pHe}};function vHe(e,t,n){if(!t)return;const r=e.ctrlsSvc.getGridBodyCtrl().eGridBody,i=`aria-${t}`;n===null?r.removeAttribute(i):r.setAttribute(i,n)}function yHe(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function bHe(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function wHe(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function CHe(e){e.animationFrameSvc?.flushAllFrames()}function SHe(e){return{rowHeight:Af(e),headerHeight:pw(e)}}function xHe(e,t={}){const n=[];for(const o of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const s=o.getCellRenderer();s!=null&&n.push(Xf(s))}if(t.columns?.length)return n;const r=[],i=pF(t.rowNodes);for(const o of e.rowRenderer.getAllRowCtrls()){if(i&&!mF(o.rowNode,i)||!o.isFullWidth())continue;const s=o.getFullWidthCellRenderers();for(let a=0;a<s.length;a++){const l=s[a];l!=null&&r.push(Xf(l))}}return[...r,...n]}var EHe={moduleName:"RenderApi",version:Le,apiFunctions:{setGridAriaProperty:vHe,refreshCells:yHe,refreshHeader:bHe,isAnimationFrameQueueEmpty:wHe,flushAllAnimationFrames:CHe,getSizesForCurrentTheme:SHe,getCellRendererInstances:xHe}},RHe=class extends Se{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=ui(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:n,pinnedRowModel:r}=this.beans,i=e.autoHeightCols;let o=!1;const s=a=>{const l=a.__autoHeights;let u=$d(this.beans,a).height;for(const d of i){let f=l?.[d.colId];const g=n?.getCellSpan(d,a);if(g){if(g.getLastNode()!==a)continue;if(f=n?.getCellSpan(d,a)?.getLastNodeAutoHeight(),!f)return}if(f==null){if(this.colSpanSkipCell(d,a))continue;return}u=Math.max(f,u)}u!==a.rowHeight&&(a.setRowHeight(u),o=!0)};r?.forEachPinnedRow?.("top",s),r?.forEachPinnedRow?.("bottom",s),t.forEachDisplayedNode?.(s),o&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,n){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[n.getId()];return}const r=e.__autoHeights[n.getId()];e.__autoHeights[n.getId()]=t,r!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:n,colViewport:r,visibleCols:i}=this.beans;if(!n.colSpanActive)return!1;let o=[];switch(e.getPinned()){case"left":o=i.getLeftColsForRow(t);break;case"right":o=i.getRightColsForRow(t);break;case null:o=r.getColsWithinViewport(t);break}return!o.includes(e)}setupCellAutoHeight(e,t,n){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const r=t.parentElement,{rowNode:i,column:o}=e,s=this.beans,a=d=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!n.isAlive())return;const{paddingTop:f,paddingBottom:g,borderBottomWidth:m,borderTopWidth:y}=pg(r),b=f+g+m+y,C=t.offsetHeight+b;if(d<5){const A=!Kr(s)?.contains(t),T=C==0;if(A||T){window.setTimeout(()=>a(d+1),0);return}}this.setRowAutoHeight(i,C,o)},l=()=>a(0);l();const u=Rc(s,t,l);return n.addDestroyFunc(()=>{u(),this.setRowAutoHeight(i,void 0,o)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:n}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(n).filter(i=>i.isAutoHeight())),t.length!==0){if(!n.__autoHeights)return!1;for(const r of t){const i=n.__autoHeights[r.colId];if(!i||n.rowHeight<i)return!1}}return!0}},AHe={moduleName:"RowAutoHeight",version:Le,beans:[RHe]},THe=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.colId];if(e==null)return;let t=0;for(const n of this.spannedNodes)n!==this.lastNode&&(t+=n.rowHeight);return e-t}},PHe=class extends Se{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:n,pinnedRowModel:r,rowModel:i,valueSvc:o,pagination:s}}=this,{colDef:a}=t,l=this.getNodeMap(e),u=new Map,d=n.getCallback("isFullWidthRow"),f=a.equals,g=a.spanRows,m=typeof g=="function";let y=null,b=null,w;const C=(A,T)=>{y=A,b=null,w=T},E=A=>{const T=!A.isExpandable()&&!A.group&&!A.detail&&(d?!d({rowNode:A}):!0);if(A.rowIndex==null||!T){C(null,null);return}if(A.level!==y?.level||A.footer||b&&A.rowIndex-1!==b?.getLastNode().rowIndex){C(A,o.getValue(t,A,"data"));return}const P=o.getValue(t,A,"data");if(m){const O=ft(n,{valueA:w,nodeA:y,valueB:P,nodeB:A,column:t,colDef:a});if(!g(O)){C(A,P);return}}else if(f?!f(w,P):w!==P){C(A,P);return}if(!b){const O=l?.get(y);O?.firstNode===y?(O.reset(),b=O):b=new THe(t,y),u.set(y,b)}b.addSpannedNode(A),u.set(A,b)};switch(e){case"center":i.forEachDisplayedNode?.(A=>{(!s||s.isRowInPage(A.rowIndex))&&E(A)}),this.centerValueNodeMap=u;break;case"top":r?.forEachPinnedRow("top",E),this.topValueNodeMap=u;break;case"bottom":r?.forEachPinnedRow("bottom",E),this.bottomValueNodeMap=u;break}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},OHe=class extends Se{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.active=!1,this.spanningColumns=new Map,this.debouncePinnedEvent=ui(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=ui(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){if(!this.gos.get("enableCellSpan"))return;this.active=!0;const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){if(!this.active||this.spanningColumns.has(e))return;const t=this.createManagedBean(new PHe(e));this.spanningColumns.set(e,t),t.buildCache("top"),t.buildCache("bottom"),t.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){if(!this.active)return!1;const n=this.spanningColumns.get(e);return n?n.isCellSpanning(t):!1}getCellSpanByPosition(e){const{column:t,rowIndex:n}=e,r=this.spanningColumns.get(t);if(!r)return;const{pinnedRowModel:i,rowModel:o}=this.beans;let s;switch(e.rowPinned){case"top":s=i?.getPinnedTopRow(n);break;case"bottom":s=i?.getPinnedBottomRow(n);break;default:s=o.getRow(n)}if(s)return r.getCellSpan(s)}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const n=this.spanningColumns.get(e);if(n)return n.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[n,r]of this.spanningColumns)if(r.isCellSpanning(e)){const i=r.getCellSpan(e);t(n,i)}}destroy(){super.destroy(),this.spanningColumns.clear()}},DHe=class extends om{constructor(e,t,n){super(e.col,e.firstNode,n,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,n,r,i,o,s){this.eWrapper=n,super.setComp(e,t,n,r,i,o,s),this.setAriaRowSpan()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;!e||t.rowIndex==null||XL(e,t.rowIndex)}setAriaRowSpan(){mxe(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(Nb(t)){this.focusedCellPosition=void 0;return}const n=this.isCellFocused();n||(this.focusedCellPosition=void 0),e&&n&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},MHe=class extends tx{getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new DHe(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},IHe=class extends Se{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,n=this.getCtrlsMap(e),r=n.size,i=this.getAllRelevantRowControls(e),o=new Map;let s=!1;for(const l of i)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(u,d)=>{if(o.has(d.firstNode))return;const f=n.get(d.firstNode);if(f){o.set(d.firstNode,f),n.delete(d.firstNode);return}s=!0;const g=new MHe(d.firstNode,this.beans,!1,!1,!1);o.set(d.firstNode,g)});this.setCtrlsMap(e,o);const a=o.size===r;if(!(!s&&a)){for(const l of n.values())l.destroyFirstPass(!0),l.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,n=t?.getCellSpanByPosition(e);if(!n)return;const r=this.getCtrlsMap(e.rowPinned).get(n.firstNode);if(r)return r.getAllCellCtrls().find(i=>i.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.de
vendor: 1,351 bytes, line 893
893stroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},_He={moduleName:"CellSpan",version:Le,beans:[OHe,IHe]},FHe=class extends Se{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,nm(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),UEe(e))}createColumns(e,t){const n=()=>{U1(this.beans,this.columns?.tree),this.columns=null},r=e.treeDepth,o=(this.columns?.treeDepth??-1)==r,s=this.generateSelectionCols();if(jEe(s,this.columns?.list??[])&&o)return;n();const{colGroupSvc:l}=this.beans,u=l?.findDepth(e.tree)??0,d=l?.balanceTreeForAutoCols(s,u)??[];this.columns={list:s,tree:d,treeDepth:u,map:{}},t(g=>{if(!g)return null;const m=g.filter(y=>!rh(y));return[...s,...m]}
893)}updateColumns(e){const t=nm(e.source),{beans:n}=this;for(const r of this.columns?.list??[]){const i=this.createSelectionColDef(e.currentValue);r.setColDef(i,null,t),Ya(n,{state:[$Ee(i,r.colId)]},t)}}getColumn(e){return this.columns?.list.find(t=>rb(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,n=e.get("rowSelection");if(typeof n!="object"||!Rf(e))return!1;const r=(t.autoColSvc?.getColumns()?.length??0)>0;if(n.checkboxLocation==="autoGroupColumn"&&r)return!1;const i=!!em(n),o=n1(n);return i||o}createSelectionColDef(e){const{gos:t}=this,n=e??t.get("selectionColumnDef"),r=t.get("enableRtl"),{rowSpan:i,spanRows:o,...s}=n??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:r?"right":"left",comparator(a,l,u,d){const f=u.isSelected(),g=d.isSelected();return f===g?0:f?1:-1},editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,pinned:null,...s,colId:Tte,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const n=new mg(e,null,t,!1);return this.createBean(n),[n]}onSelectionOptionsChanged(e,t,n){const r=t&&typeof t!="string"?em(t):void 0,i=e&&typeof e!="string"?em(e):void 0,o=r!==i,s=t&&typeof t!="string"?n1(t):void 0,a=e&&typeof e!="string"?n1(e):void 0,l=s!==a,u=V1(e),d=V1(t);(o||l||u!==d)&&this.beans.colModel.refreshAll(n)}destroy(){U1(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,n){if(!this.columns?.list.length)return;const r=e.length+t.length+n.length;if(r===0)return;const i=this.columns.list[0];if(!i.isVisible())return;const o=()=>{let l;switch(i.pinned){case"left":case!0:l=e;break;case"right":l=n;break;default:l=t}
vendor: 15,765 bytes, line 893
893l&&Zl(l,i)};(this.beans.rowNumbersSvc?.getColumn(Pte)?2:1)===r&&o()}},kHe=':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper:before{content:"";cursor:pointer;inset:-8px;position:absolute}';function LHe(e,t){if(!t.nodes.every(s=>s.rowPinned&&!KE(s)?(Me(59),!1):s.id===void 0?(Me(60),!1):!0))return;const{nodes:r,source:i,newValue:o}=t;e.selectionSvc?.setNodesSelected({nodes:r,source:i??"api",newValue:o})}function NHe(e,t,n="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:n,selectAll:t})}function BHe(e,t,n="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:n,selectAll:t})}function HHe(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function VHe(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function zHe(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function GHe(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function jHe(e){return e.selectionSvc?.getSelectedNodes()??[]}function UHe(e){return e.selectionSvc?.getSelectedRows()??[]}var jre=(e,t)=>{for(let n=0,r=e.length;n<r;++n){const i=e[n],o=i.childrenAfterGroup;o!==null&&(jre(o,t),t(i))}},aU=(e,t,n,r)=>{if(n!=null){const o=n.getSortedRows();for(let s=0,a=o.length;s<a;++s){const l=o[s];l.childrenAfterGroup!==null&&!l.destroyed&&r(l)}return}if(e==null)return;const i=e.childrenAfterGroup;i!==null&&(t&&jre(i,r),r(e))},WHe={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},$He=class extends qn{constructor(){super(WHe,[RN]),this.eCheckbox=Ye}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:n}=this,r=t.isSelected(),i=VE(e,r),[o,s]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(o,s);n.setValue(r,!0),n.setInputAriaLabel(`${a} (${i})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:Kf,click:r=>{Kf(r),!this.eCheckbox.isDisabled()&&this.beans.selectionSvc?.handleSelectionEvent(r,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:i})=>{const o=typeof r=="object"?FO(r):void 0,s=typeof i=="object"?FO(i):void 0;o!==s&&this.onSelectableChanged()}),Z_(this.gos)||typeof this.getIsVisible()=="function"){const r=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:r}),this.addManagedListeners(this.rowNode,{dataChanged:r,cellChanged:r}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:n,gos:r}=this,i=t.selectable,o=this.getIsVisible();let s;if(typeof o=="function"){const f=n?.callbackParams;if(!e)s=o({...f,node:t,data:t.data});else{const g=e.createColumnFunctionCallbackParams(t);s=o({...f,...g})}}else s=o??!1;const a=i&&!s||!i&&s,l=i||s,u=r.get("rowSelection"),d=u&&typeof u!="string"?!FO(u):!!e?.colDef.showDisabledCheckboxes;this.setVisible(l&&(a?d:!0)),this.setDisplayed(l&&(a?d:!0)),l&&this.eCheckbox.setDisabled(a),n?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?em(t):this.column?.colDef?.checkboxSelection}},qHe=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(e){if(this.rootId)return this.getRowNode(this.rootId);if(e)return this.setRoot(e),e}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:n,pinnedRowModel:r}=this;return t??(t=n.getRowNode(e)),r?.isManual()&&(t??(t=r.getPinnedRowById(e,"top")),t??(t=r.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const n=t[0].id===this.rootId,r=t.findIndex(i=>i.id===e.id);if(r>-1){const i=t.slice(0,r),o=t.slice(r+1);return this.setEndRange(e),n?{keep:i,discard:o}:{keep:o,discard:i}}else return{keep:t,discard:[]}}extend(e,t=!1){const n=this.getRoot();if(n==null){const i=this.getRange().slice();return t&&e.depthFirstSearch(o=>!o.group&&i.push(o)),i.push(e),this.setRoot(e),{keep:i,discard:[]}}const r=this.getNodesInRange(n,e);if(!r)return this.setRoot(e),{keep:[e],discard:[]};if(r.find(i=>i.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const i=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:i}}}getNodesInRange(e,t){const{pinnedRowModel:n,rowModel:r}=this;if(!n?.isManual())return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned)return Ys(n,"top",e,void 0).concat(r.getNodesInRangeForSelection(r.getRow(0),t)??[]);if(e.rowPinned==="bottom"&&!t.rowPinned){const i=Ys(n,"bottom",void 0,e),o=r.getRowCount(),s=r.getRow(o-1);return(r.getNodesInRangeForSelection(t,s)??[]).concat(i)}if(!e.rowPinned&&!t.rowPinned)return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return Ys(n,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const i=Ys(n,"top",t,void 0),o=Ys(n,"bottom",void 0,e),s=r.getRow(0),a=r.getRow(r.getRowCount()-1);return i.concat(r.getNodesInRangeForSelection(s,a)??[]).concat(o)}if(!e.rowPinned&&t.rowPinned==="top")return Ys(n,"top",t,void 0).concat(r.getNodesInRangeForSelection(r.getRow(0),e)??[]);if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const i=Ys(n,"top",e,void 0),o=Ys(n,"bottom",void 0,t),s=r.getRow(0),a=r.getRow(r.getRowCount()-1);return i.concat(r.getNodesInRangeForSelection(s,a)??[]).concat(o)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return Ys(n,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const i=Ys(n,"bottom",void 0,t),o=r.getRow(r.getRowCount());return(r.getNodesInRangeForSelection(e,o)??[]).concat(i)}return null}},KHe=class extends Se{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains($n(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new EN);this.cbSelectAll=t,t.addCss("ag-header-select-all"),jf(t.getGui(),"presentation"),this.showOrHideSelectAll();const n=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:n,paginationChanged:n,modelUpdated:n}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:i})=>{const o=s=>typeof s=="string"||!s||s.mode==="singleRow"?void 0:s.selectAll;o(r)!==o(i)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll(e.source==="uiColumnMoved")}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,n=this.cbSelectAll,r=t.getSelectAllState(e);n.setValue(r);const i=t.hasNodesToSelect(e);n.setDisabled(!i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:n,cbSelectAll:r,cbSelectAllVisible:i}=this,o=r.getValue(),s=VE(t,o),a=t("ariaRowSelectAll","Press Space to toggle all rows selection");n.setAriaDescriptionProperty("selectAll",i?`${a} (${s})`:null),r.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||n.announceAriaDescription()}checkSelectionType(e){return G1(this.gos)?!0:(Me(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:n}=this.beans;return hr(t)||Wm(t)?!0:(Me(129,{feature:e,rowModel:n.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let n="uiSelectAll";t==="currentPage"?n="uiSelectAllCurrentPage":t==="filtered"&&(n="uiSelectAllFiltered");const r={source:n,selectAll:t},i=this.beans.selectionSvc;e?i.selectAllRowNodes(r):i.deselectAllRowNodes(r)}isCheckboxSelection(){const{column:e,gos:t,beans:n}=this,o=typeof t.get("rowSelection")=="object"?"headerCheckbox":"headerCheckboxSelection";return Ure(n,e)&&this.checkRightRowModelType(o)&&this.checkSelectionType(o)}getSelectAllMode(){const e=xte(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:n}=this.column.colDef;return t?"currentPage":n?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function Ure({gos:e,selectionColSvc:t},n){const r=e.get("rowSelection"),i=n.colDef,{headerCheckboxSelection:o}=i;let s=!1;if(typeof r=="object"){const l=rh(n),u=aN(n);(V1(r)==="autoGroupColumn"&&u||l&&t?.isSelectionColumnEnabled())&&(s=n1(r))}else typeof o=="function"?s=o(ft(e,{column:n,colDef:i})):s=!!o;return s}var YHe=class extends Se{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new qHe(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const n=Z_(e);n!==this.isRowSelectable&&(this.isRowSelectable=n,this.updateSelectable())}),this.isRowSelectable=Z_(e),this.addManagedEventListeners({cellValueChanged:n=>this.updateRowSelectable(n.node),rowNodeDataChanged:n=>this.updateRowSelectable(n.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new $He}createSelectAllFeature(e){if(Ure(this.beans,e))return new KHe(e)}isMultiSelect(){return G1(this.gos)}onRowCtrlSelected(e,t,n){const r=!!e.rowNode.isSelected();e.forEachGui(n,i=>{i.rowComp.toggleCss("ag-row-selected",r);const o=i.element;$ee(o,r),o.contains($n(this.beans))&&t(i)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected(),n=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||n)return;const i=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(i,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!KE(e)||!Rf(this.gos)}updateRowSelectable(e,t){const n=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,n,t),n}setRowSelectable(e,t,n){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),n)return;if(kb(this.gos)){const i=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:i??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,n=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let r=0;r<e.childrenAfterGroup.length;r++){const i=e.childrenAfterGroup[r];let o=i.isSelected();if(!i.selectable){const s=this.calculateSelectedFromChildren(i);if(s===null)continue;o=s}switch(o){case!0:t=!0;break;case!1:n=!0;break;default:return}}if(!(t&&n))return t?!0:n?!1:e.selectable?e.__selected:null}selectRowNode(e,t,n,r="api"){if(t&&e.destroyed)return!1;const i=!e.selectable&&t,o=e.__selected===t;if(i||o)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const s=e.sibling;s&&s.footer&&s.__localEventService&&s.dispatchRowEvent("rowSelected");const a=e.pinnedSibling;return a?.rowPinned&&a.__localEventService&&a.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...$Re(e,this.gos,"rowSelected"),event:n||null,source:r}),!0}isCellCheckboxSelection(e,t){const n=this.gos.get("rowSelection");if(n&&typeof n!="string"){const r=rh(e)&&em(n);return e.isColumnFunc(t,r)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,n,r){const{gos:i,selectionCtx:o}=this,s=e.isSelected(),a=kb(i),l=mEe(i),u=vEe(i),d=this.isMultiSelect(),f=r==="rowClicked";if(f&&!(l||u))return null;if(t&&n&&d){const g=o.getRoot();if(g)if(g.isSelected()){const m=o.isInRange(e)?o.truncate(e):o.extend(e,a);return{deselect:m.discard,select:m.keep,reset:!1}}else{const m=o.extend(e,a);return{select:[],deselect:m.keep,reset:!1}}else return null}else if(t&&d){const g=o.selectAll?this.beans.rowModel.getRow(0):void 0,m=o.getRoot(g),y=o.isInRange(e)?o.truncate(e):o.extend(e,a);return{select:y.keep,deselect:y.discard,reset:o.selectAll||!!(m&&!m.isSelected())}}else if(n){if(f){const g=!s;return g&&!l||!g&&!u?null:(o.setRoot(e),{node:e,newValue:g,clearSelection:!1})}return o.setRoot(e),{node:e,newValue:!s,clearSelection:!d}}else{o.setRoot(e);const g=yEe(i),m=j1(i)==="filteredDescendants",y=f&&(!g||!l);if(m&&s===void 0&&hr(i))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!d||y};if(f){const b=s?!g:l;return b===s&&!y||b&&!l||!b&&!u?null:{node:e,newValue:b,clearSelection:!d||y,keepDescendants:e.group&&a}}return{node:e,newValue:!s,clearSelection:!d||y}}}},XHe=class extends YHe{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=z1(e),this.groupSelectsDescendants=kb(e),this.groupSelectsFiltered=j1(e)==="filteredDescendants",this.masterSelectsDetail=P6(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=kb(e),n=z1(e),r=j1(e)==="filteredDescendants";this.masterSelectsDetail=P6(e)==="detail",(t!==this.groupSelectsDescendants||r!==this.groupSelectsFiltered||n!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=r,this.mode=n)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,n){if(this.isRowSelectionBlocked(t))return 0;const r=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,n);if(r==null)return 0;if(this.selectionCtx.selectAll=!1,"select"in r)return r.reset?this.resetNodes():this.selectRange(r.deselect,!1,n),this.selectRange(r.select,!0,n);{const i=r.checkFilteredNodes?$re(r.node):r.newValue;
893return this.setNodesSelected({nodes:[r.node],newValue:i,clearSelection:r.clearSelection,keepDescendants:r.keepDescendants,event:e,source:n})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:n,nodes:r,event:i,source:o,keepDescendants:s=!1}){if(r.length===0)return 0;const{gos:a}=this;if(!Rf(a)&&e)return Me(132),0;if(r.length>1&&!this.isMultiSelect())return Me(130),0;let l=0;for(let u=0;u<r.length;u++){const d=r[u],f=d.primaryRow;if(f.rowPinned&&!KE(f)){Me(59);continue}if(f.id===void 0){Me(60);continue}if(e&&d.destroyed)continue;this.groupSelectsFiltered&&f.group&&!a.get("treeData")||this.selectRowNode(f,e,i,o)&&(this.detailSelection.delete(f.id),l++),this.groupSelectsDescendants&&f.childrenAfterGroup?.length&&(l+=this.selectChildren(f,e,o))}return n||(r.length===1&&o==="api"&&this.selectionCtx.setRoot(r[0].primaryRow),e&&(t||!this.isMultiSelect())&&(l+=this.clearOtherNodes(r[0].primaryRow,s,o)),l>0&&(this.updateGroupsFromChildrenSelections(o),this.dispatchSelectionChanged(o))),l}selectRange(e,t,n){let r=0;return e.forEach(i=>{const o=i.primaryRow;if(o.group&&this.groupSelectsDescendants)return;this.selectRowNode(o,t,void 0,n)&&r++}),r>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n)),r}selectChildren(e,t,n){const r=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return r?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:n,nodes:r}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((n,r)=>{e(n)&&t.set(r,n)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:n,rowModel:r}=this.beans;if(!hr(n))return!1;const i=r.rootNode;if(!i)return!1;let o=!1;const s=a=>{if(a!==i){const l=this.calculateSelectedFromChildren(a);o=this.selectRowNode(a,l===null?!1:l,void 0,e)||o}};return aU(i,this.beans.rowModel.hierarchical,t,s),o}clearOtherNodes(e,t,n){const r=new Map;let i=0;return this.selectedNodes.forEach(o=>{const s=o.id==e.id;if((t?!QHe(e,o):!0)&&!s){const l=this.selectedNodes.get(o.id);i+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:n}),this.groupSelectsDescendants&&o.parent&&r.set(o.parent.id,o.parent)}}),r.forEach(o=>{const s=this.calculateSelectedFromChildren(o);this.selectRowNode(o,s===null?!1:s,void 0,n)}),i}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new Yd(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!hr(e))return;const n=t.getTopLevelNodes();if(n===null)return;const r=[];function i(o){for(let s=0,a=o.length;s<a;s++){const l=o[s];l.isSelected()?r.push(l):l.group&&l.childrenAfterGroup&&i(l.childrenAfterGroup)}}return i(n),r}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const n=hr(this.gos);let r=!1;const i=o=>{const s=this.selectRowNode(o.primaryRow,!1,void 0,e);r||(r=s)};if(t==="currentPage"||t==="filtered"){if(!n){on(102);return}this.getNodesToSelect(t).forEach(i)}else this.selectedNodes.forEach(i),this.reset(e);if(this.selectionCtx.selectAll=!1,n&&this.groupSelectsDescendants){const o=this.updateGroupsFromChildrenSelections(e);r||(r=o)}r&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,n=0;return this.getNodesToSelect(e).forEach(r=>{this.groupSelectsDescendants&&r.group||(r.isSelected()?t++:r.selectable&&n++)}),{selectedCount:t,notSelectedCount:n}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:n}=this.getSelectedCounts(e);return Wre(t,n)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],n=i=>t.push(i);if(e==="currentPage")return this.forEachNodeOnPage(i=>{if(!i.group){n(i);return}if(!i.footer&&!i.expanded){const o=s=>{n(s);const a=s.childrenAfterFilter;if(a)for(let l=0,u=a.length;l<u;++l)o(a[l])};o(i);return}this.groupSelectsDescendants||n(i)}),t;const r=this.beans.rowModel;return e==="filtered"?(r.forEachNodeAfterFilter(n),t):(r.forEachNode(n),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:n}=this.beans,r=t.getFirstRow(),i=t.getLastRow();for(let o=r;o<=i;o++){const s=n.getRow(o);s&&e(s)}}selectAllRowNodes(e){const{gos:t,selectionCtx:n}=this;if(!Rf(t)){Me(132);return}if(pEe(t)&&!G1(t)){Me(130);return}if(!this.canSelectAll())return;const{source:r,selectAll:i}=e;let o=!1;
893if(this.getNodesToSelect(i).forEach(s=>{const a=this.selectRowNode(s.primaryRow,!0,void 0,r);o||(o=a)}),n.selectAll=!0,hr(t)&&this.groupSelectsDescendants){const s=this.updateGroupsFromChildrenSelections(r);o||(o=s)}o&&this.dispatchSelectionChanged(r)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,n){if(e||(e=[]),!Array.isArray(e)){on(103);return}const r=new Set(e),i=[];this.beans.rowModel.forEachNode(o=>{r.has(o.id)&&i.push(o)}),n&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:i,source:t})}canSelectAll(){return hr(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:n}=this.beans;if(!Rf(t))return;const r="selectableChanged",i=hr(t)&&this.groupSelectsDescendants,o=[];if(i){const s=n.rootNode;s&&aU(s,n.hierarchical,e,a=>{let l=!1;for(const u of a.childrenAfterGroup)l||(l=u.selectable),!u.group&&!this.updateRowSelectable(u,!0)&&u.isSelected()&&o.push(u);this.setRowSelectable(a,l,!0)})}else n.forEachNode(s=>{!this.updateRowSelectable(s,!0)&&s.isSelected()&&o.push(s)});o.length&&this.setNodesSelected({nodes:o,newValue:!1,source:r}),!e&&i&&this.updateGroupsFromChildrenSelections?.(r)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const n=e.detailNode?.detailGridInfo?.api;if(!n)return;const r=ZHe(n);e.isSelected()!==r&&this.selectRowNode(e,r,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),r||this.detailSelection.set(e.id,new Set(n.getSelectedNodes().map(o=>o.id)))}setDetailSelectionState(e,t,n){if(this.masterSelectsDetail){if(!G1(t)){Me(269);return}switch(e.isSelected()){case!0:{n.selectAll();break}case!1:{n.deselectAll();break}case void 0:{const r=this.detailSelection.get(e.id);if(r){const i=[];for(const o of r){const s=n.getRowNode(o);s&&i.push(s)}n.setNodesSelected({nodes:i,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function ZHe(e){let t=0,n=0;return e.forEachNode(r=>{r.isSelected()?t++:r.selectable&&n++}),Wre(t,n)}function Wre(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function QHe(e,t){let n=t.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}function $re(e){const t=e.isSelected()===!1,n=e.childrenAfterFilter?.some($re)??!1;return t||n}var JHe={moduleName:"SharedRowSelection",version:Le,beans:[FHe],css:[kHe],apiFunctions:{setNodesSelected:LHe,selectAll:NHe,deselectAll:BHe,selectAllFiltered:HHe,deselectAllFiltered:VHe,selectAllOnCurrentPage:zHe,deselectAllOnCurrentPage:GHe,getSelectedNodes:jHe,getSelectedRows:UHe}},e3e={moduleName:"RowSelection",version:Le,rowModels:["clientSide","infinite","viewport"],beans:[XHe],dependsOn:[JHe]},t3e=class extends Se{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,n=e.colDef,r=n.cellClassRules,i=this.getCellClassParams(e,n);IN(this.beans.expressionSvc,r===this.cellClassRules?void 0:this.cellClassRules,r,i,o=>t.toggleCss(o,!0),o=>t.toggleCss(o,!1)),this.cellClassRules=r}applyUserStyles(){const e=this.column,t=e.colDef,n=t.cellStyle;if(!n)return;let r;if(typeof n=="function"){const i=this.getCellClassParams(e,t);r=n(i)}else r=n;r&&this.cellComp.setUserStyles(r)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,n=e.colDef,r=this.getCellClassParams(e,n);for(const o of this.staticClasses)t.toggleCss(o,!1);const i=this.beans.cellStyles.getStaticCellClasses(n,r);this.staticClasses=i;for(const o of i)t.toggleCss(o,!0)}getCellClassParams(e,t){const{value:n,rowNode:r}=this.cellCtrl;return ft(this.beans.gos,{value:n,data:r.data,node:r,colDef:t,column:e,rowIndex:r.rowIndex})}},n3e=class extends Se{constructor(){super(...arguments),this.beanName="
893cellStyles"}processAllCellClasses(e,t,n,r){IN(this.beans.expressionSvc,void 0,e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)}getStaticCellClasses(e,t){const{cellClass:n}=e;if(!n)return[];let r;return typeof n=="function"?r=n(t):r=n,typeof r=="string"&&(r=[r]),r||[]}createCellCustomStyleFeature(e){return new t3e(e,this.beans)}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach(i=>{n(i)})}},r3e={moduleName:"CellStyle",version:Le,beans:[n3e]},i3e={moduleName:"RowStyle",version:Le,beans:[K2e]},o3e={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,overlayComponent:!0,suppressOverlays:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,suppressContentVisibilityAuto:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},Go="clientSide",Wi="serverSide",xp="infinite",s3e={onGroupExpandedOrCollapsed:[Go],refreshClientSideRowModel:[Go],isRowDataEmpty:[Go],forEachLeafNode:[Go],forEachNodeAfterFilter:[Go],forEachNodeAfterFilterAndSort:[Go],resetRowHeights:[Go,Wi],applyTransaction:[Go],applyTransactionAsync:[Go],flushAsyncTransactions:[Go],getBestCostNodeSelection:[Go],getServerSideSelectionState:[Wi],setServerSideSelectionState:[Wi],applyServerSideTransaction:[Wi],applyServerSideTransactionAsync:[Wi],applyServerSideRowData:[Wi],retryServerSideLoads:[Wi],flushServerSideAsyncTransactions:[Wi],refreshServerSide:[Wi],getServerSideGroupLevelState:[Wi],refreshInfiniteCache:[xp],purgeInfiniteCache:[xp],getInfiniteRowCount:[xp],isLastRowIndexKnown:[xp,Wi],expandAll:[Go,Wi],collapseAll:[Go,Wi],onRowHeightChanged:[Go,Wi],setRowCount:[xp,Wi],getCacheBlockState:[xp,Wi]},a3e={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function l3e(e,t,n){const r=a3e[e];if(r){const{version:o,new:s,old:a,message:l}=r,u=a??e;return(...d)=>{const f=s?`Please use ${s} instead. `:"";return lf(`Since ${o} api.${u} is deprecated. ${f}${l??""}`),t.apply(t,d)}}const i=s3e[e];return i?(...o)=>{const s=n.rowModel.getType();if(!i.includes(s)){Zp(`api.${e} can only be called when gridOptions.rowModelType is ${i.join(" or ")}`);return}return t.apply(t,o)}:t}var u3e={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agBigIntColumnFilterHandler:"BigIntFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},c3e={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,aasc:1,adesc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1,search:1},d3e={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",overlayLoading:"Overlay",overlayExporting:"Overlay",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",richSelectLoading:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDe
893scending:["MenuCore","Sort"],sortAbsoluteAscending:["MenuCore","Sort"],sortAbsoluteDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow",search:"Find"},h3e=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),f3e=class extends Se{constructor(){super(...arguments),this.beanName="validation",this.propertyNameCache=new Map}wireBeans(e){this.gridOptions=e.gridOptions,eEe(s_e)}warnOnInitialPropertyUpdate(e,t){e==="api"&&o3e[t]&&Me(22,{key:t})}processGridOptions(e){this.processOptions(e,YMe())}validateApiFunction(e,t){return l3e(e,t,this.beans)}missingUserComponent(e,t,n,r){const i=im[t];i?this.gos.assertModuleRegistered(i,`AG Grid '${e}' component: ${t}`):Me(101,{propertyName:e,componentName:t,agGridDefaults:n,jsComps:r})}missingDynamicBean(e){const t=u3e[e];return t?ql(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){g3e.has(e)&&Me(10,{eventType:e})}validateIcon(e){if(h3e.has(e)&&Me(43,{iconName:e}),c3e[e])return;const t=d3e[e];if(t){on(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:iN(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}Me(134,{iconName:e})}isProvidedUserComp(e){return!!im[e]}validateColDef(e){this.processOptions(e,BMe())}processOptions(e,t){const{validations:n,deprecations:r,allProperties:i,allValidNames:o,objectName:s,docsUrl:a}=t,l=Object.keys(e);let u=this.propertyNameCache.get(s);u||(u=new Map,this.propertyNameCache.set(s,u));const d=this.gridOptions.suppressPropertyNamesCheck!==!0;let f=!1;for(const m of l){if(u.has(m))continue;const y=r[m];if(y){const{message:C,version:E}=y;lf(`As of v${E}, ${m} is deprecated. ${C??""}`)}const b=n[m],w=this.gridOptions.rowModelType??"clientSide";if(b?.supportedRowModels&&!b.supportedRowModels.includes(w)){const C=e[m];if(C==null||C===!1)continue;lf(`${m} is not supported with the '${w}' row model. It is only valid with: ${b.supportedRowModels.join(", ")}.`),u.set(m,!1);continue}if(!o.has(m)){if(d){const C=vF({inputValue:m,allSuggestions:i}).values;let E=`invalid ${s} property '${m}' did you mean any of these: ${C.slice(0,8).join(", ")}.`;o.has("context")&&(E+=` 894If you are trying to annotate ${s} with application data, use the '${s}.context' property instead.`),lf(E)}f=!0,u.set(m,!1);continue}u.set(m,!0)}if(f&&a&&d){const m=this.beans.frameworkOverrides.getDocLink(a);lf(`to see all the valid ${s} properties please check: ${m}`)}const g=new Set;if(l.forEach(m=>{if(u.get(m)===!1)return;const y=e[m];if(y==null||y===!1)return;const b=n[m];if(!b)return;const{dependencies:w,validate:C,expectedType:E}=b;if(E){const A=typeof y;if(A!==E){g.add(`${String(m)} should be of type '${E}' but received '${A}' (${y}).`);return}}if(w){const A=this.checkForRequiredDependencies(m,w,e);if(A){g.add(A);return}}if(C){const A=C(e,this.gridOptions,this.beans);if(A){g.add(A);return}}}),g.size>0)for(const m of g)lf(m)}checkForRequiredDependencies(e,t,n){const i=Object.entries(t).filter(([o,s])=>{const a=n[o];return!s.required.includes(a)});return i.length===0?null:i.map(([o,s])=>`'${String(e)}' requires '${o}' to be one of [${s.required.map(a=>a===null?"null":a===void 0?"undefined":a).join(", ")}]. ${s.reason??""}`).join(` 895 `)}}
vendor: 16,816 bytes, line 895
895,g3e=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),p3e={moduleName:"Validation",version:Le,beans:[f3e]},_wt={moduleName:"AllCommunity",version:Le,dependsOn:[lFe,DFe,mBe,p3e,oLe,sLe,aLe,lLe,uLe,cLe,dLe,iLe,eBe,tBe,nBe,rBe,JNe,oBe,sBe,DBe,f_e,JBe,One,A_e,T_e,EHe,pFe,ePe,sHe,e3e,$Ie,r3e,wFe,i3e,SBe,YIe,mHe,pre,EBe,AHe,JTe,uFe,_He]},m3e=class{wrap(e,t,n,r){const i=this.createWrapper(e,r);for(const o of t??[])this.createMethod(i,o,!0);for(const o of n??[])this.createMethod(i,o,!1);return i}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&Me(49,{methodName:t}),null)}}},v3e=class extends dne{constructor(e){super(e,dN)}},uo=ye.createContext({}),qre=ye.createContext("default"),ww=(e,t,n,r)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const o=e.newAgStackInstance();let s,a,l=!1;return o.then(u=>{if(l){t.destroyBean(u);return}s=u,a=s.getGui(),n.appendChild(a),lU(r,s)}),()=>{l=!0,s&&(a?.remove(),t.destroyBean(s),r&&lU(r,void 0))}},lU=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const n=e;n.current=t}},Qs=(...e)=>e.filter(n=>n!=null&&n!=="").join(" "),sa=class Kre{constructor(...t){this.classesMap={};for(const n of t)this.classesMap[n]=!0}setClass(t,n){if(!!this.classesMap[t]==n)return this;const i=new Kre;return i.classesMap={...this.classesMap},i.classesMap[t]=n,i}toString(){return Object.keys(this.classesMap).filter(n=>this.classesMap[n]).join(" ")}},Km=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,n=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===n()},OF=ye.version?.split(".")[0],Yre=OF==="16"||OF==="17";function y3e(){return OF==="19"}var f1=!1;function b3e(e){return f1||setTimeout(()=>f1=!1,0),f1=!0,e()}var Hb=(e,t)=>{!Yre&&e&&!f1?xve.flushSync(t):t()},w3e=e=>{Yre?e():ye.startTransition(e)};function C3e(e,t,n){return ye.useSyncExternalStore?ye.useSyncExternalStore(e,t):n}function sx(e,t,n){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(n||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const r=[],i=[],o=new Map,s=new Map;for(let a=0;a<t.length;a++){const l=t[a];s.set(l.instanceId,l)}for(let a=0;a<e.length;a++){const l=e[a];o.set(l.instanceId,l),s.has(l.instanceId)&&r.push(l)}for(let a=0;a<t.length;a++){const l=t[a],u=l.instanceId;o.has(u)||i.push(l)}return r.length===e.length&&i.length===0?e:r.length===0&&i.length===t.length?t:r.length===0?i:i.length===0?r:[...r,...i]}var Xre=R.forwardRef((e,t)=>{const{registry:n,context:r}=R.useContext(uo),i=R.useRef(null),o=R.useRef(null),s=R.useRef(null),a=R.useRef(null),l=R.useRef(null),u=R.useRef(),[d,f]=R.useState(),[g,m]=R.useState(),[y,b]=R.useState(),[w,C]=R.useState(()=>new sa),[E,A]=R.useState(()=>new sa("ag-hidden")),[T,P]=R.useState(()=>new sa("ag-hidden")),[O,D]=R.useState(()=>new sa("ag-invisible"));R.useImperativeHandle(t,()=>({refresh(){return!1}})),R.useLayoutEffect(()=>ww(d,r,o.current),[d]);const F=R.useCallback(G=>{if(i.current=G,!G||r.isDestroyed()){u.current=r.destroyBean(u.current);return}const $={setInnerRenderer:(K,se)=>{f(K),b(se)},setChildCount:K=>m(K),toggleCss:(K,se)=>C(re=>re.setClass(K,se)),setContractedDisplayed:K=>P(se=>se.setClass("ag-hidden",!K)),setExpandedDisplayed:K=>A(se=>se.setClass("ag-hidden",!K)),setCheckboxVisible:K=>D(se=>se.setClass("ag-invisible",!K)),setCheckboxSpacing:K=>D(se=>se.setClass("ag-group-checkbox-spacing",K))},Y=n.createDynamicBean("groupCellRendererCtrl",!0);Y&&(u.current=r.createBean(Y),u.current.init($,G,s.current,a.current,l.current,Xre,e))},[]),L=R.useMemo(()=>`ag-cell-wrapper ${w.toString()}`,[w]),N=R.useMemo(()=>`ag-group-expanded ${E.toString()}`,[E]),M=R.useMemo(()=>`ag-group-contracted ${T.toString()}`,[T]),k=R.useMemo(()=>`ag-group-checkbox ${O.toString()}`,[O]),B=d?.componentFromFramework,j=B?d.componentClass:void 0,z=d==null&&y!=null,H=Um(y);return ye.createElement("span",{className:L,ref:F,...e.colDef?{}:{role:u.current?.getCellAriaRole()}},ye.createElement("span",{className:N,ref:a}),ye.createElement("span",{className:M,ref:l}),ye.createElement("span",{className:k,ref:s}),ye.createElement("span",{className:"ag-group-value",ref:o},z?H:B?ye.createElement(j,{...d.params}):null),ye.createElement("span",{className:"ag-group-child-count"},g))}),uU=Xre,tB=R.createContext({setMethods:()=>{}}),S3e=e=>{const{initialProps:t,addUpdateCallback:n,CustomComponentClass:r,setMethods:i}=e,[{key:o,...s},a]=R.useState(t);return R.useEffect(()=>{n(l=>a(l))},[]),ye.createElement(tB.Provider,{value:{setMethods:i}},ye.createElement(r,{key:o,...s}))},x3e=R.memo(S3e),E3e=0;function cU(){return`agPortalKey_${++E3e}`}var Zre=class{constructor(e,t,n,r){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=n,this.suppressFallbackMethods=!!r,this.statelessComponent=this.isStateless(this.reactComponent),this.key=cU(),this.portalKey=cU(),this.instanceCreated=this.isStatelessComponent()?_t.resolve(!1):new _t(i=>{this.resolveInstanceCreated=i})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const n=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!n){setTimeout(()=>this.callMethod(e,t));return}const r=n[e];if(r)return r.apply(n,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new _t(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=zm.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return R.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const n=this[`${e}Component`];if(!this.suppressFallbackMethods&&n)return n.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function iR(e,t,n){for(const r of e){const i=t[r];i&&(n[r]=i)}}var ba=class extends Zre{constructor(){super(...arguments),this.awaitUpdateCallback=new _t(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=x3e}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:n=>this.setMethods(n),addUpdateCallback:n=>{this.updateCallback=()=>(n(this.getProps()),new _t(r=>{setTimeout(()=>{r()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,iR(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new _t(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},R3e=class extends ba{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},A3e=class extends ba{refresh(e){this.sourceParams=e,this.refreshProps()}},T3e=class extends ba{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},P3e=class extends ba{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:n,shake:r}=this;return e.label=t,e.icon=n,e.shake=r,e}},O3e=class extends ba{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new _t(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback(),this.resolveFilterPassCallback?.(),this.resolveFilterPassCallback=void 0}updateModel(e){this.resolveFilterPassCallback?.();const t=new _t(n=>{this.resolveFilterPassCallback=n});this.setModel(e).then(()=>{t.then(()=>{this.sourceParams.filterChangedCallback()})})}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,e}},D3e=class extends ba{constructor(){super(...arguments),this.awaitSetMethodsCallback=new _t(e=>{this.resolveSetMethodsCallback=e})}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","onAnyFilterChanged"]}setMethods(e){super.setMethods(e),this.resolveSetMethodsCallback()}};function Qre(e,t){e.parentFilterInstance(n=>{(n.setModel(t)||_t.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var M3e=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=n=>this.updateModel(n)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){iR(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),Qre(this.floatingFilterParams,e)}},I3e=class extends ba{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),Qre(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},_3e=class extends ba{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},F3e=class extends ba{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},k3e=class extends ba{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},L3e=class extends ba{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},N3e=class extends ba{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function nB(){Me(231)}var B3e=1e3,H3e=class{constructor(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=n||B3e}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,n){this.portals=[...this.portals,e],this.waitForInstance(t,n),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,n=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){Hb(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,n)})}}},V3e=ye.createContext(null),z3e=ye.createContext(void 0),G3e=({ctrl:e})=>{const t=e.isAlive(),{context:n}=R.useContext(uo),[r,i]=R.useState(),[o,s]=R.useState(),a=R.useRef(),l=R.useRef(null),u=R.useRef(null),d=R.useRef(null),f=R.useRef(),g=R.useRef();t&&!g.current&&(g.current=new fw(()=>l.current));const m=R.useCallback(C=>{if(l.current=C,!C||!e.isAlive()||n.isDestroyed()){a.current=n.destroyBean(a.current);return}a.current=n.createBean(new qm);const E=()=>{const T=e.getSelectAllGui();T&&(u.current?.insertAdjacentElement("afterend",T),a.current.addDestroyFunc(()=>T.remove()))},A={setWidth:T=>{l.current&&(l.current.style.width=T)},toggleCss:(T,P)=>g.current.toggleCss(T,P),setUserStyles:T=>s(T),setAriaSort:T=>{l.current&&(T?bxe(l.current,T):wxe(l.current))},setUserCompDetails:T=>i(T),getUserCompInstance:()=>f.current||void 0,refreshSelectAllGui:E,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(A,C,u.current,d.current,a.current),E()},[]);R.useLayoutEffect(()=>ww(r,n,d.current,f),[r]),R.useEffect(()=>{e.setDragSource(l.current)},[r]);const y=R.useMemo(()=>!!(r?.componentFromFramework&&Km(r.componentClass)),[r]),b=r?.componentFromFramework,w=r?.componentClass;return ye.createElement("div",{ref:m,style:o,className:"ag-header-cell",role:"columnheader"},ye.createElement("div",{ref:u,className:"ag-header-cell-resize",role:"presentation"}),ye.createElement("div",{ref:d,className:"ag-header-cell-comp-wrapper",role:"presentation"},b?y?ye.createElement(w,{...r.params}):ye.createElement(w,{...r.params,ref:f}):null))},j3e=R.memo(G3e),U3e=class{constructor(e,t){this.floatingFilterParams=e,this.refreshPro
895ps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){iR(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}},W3e=({ctrl:e})=>{const{context:t,gos:n}=R.useContext(uo),[r,i]=R.useState(),[o,s]=R.useState(()=>new sa("ag-header-cell","ag-floating-filter")),[a,l]=R.useState(()=>new sa),[u,d]=R.useState(()=>new sa("ag-floating-filter-button","ag-hidden")),[f,g]=R.useState("false"),[m,y]=R.useState(),[,b]=R.useState(1),w=R.useRef(),C=R.useRef(null),E=R.useRef(null),A=R.useRef(null),T=R.useRef(null),P=R.useRef(),O=R.useRef(),D=K=>{K!=null&&P.current?.(K)},F=R.useCallback(K=>{if(C.current=K,!K||!e.isAlive()||t.isDestroyed()){w.current=t.destroyBean(w.current);return}w.current=t.createBean(new qm),O.current=new _t(re=>{P.current=re});const se={toggleCss:(re,ue)=>s(U=>U.setClass(re,ue)),setUserStyles:re=>i(re),addOrRemoveBodyCssClass:(re,ue)=>l(U=>U.setClass(re,ue)),setButtonWrapperDisplayed:re=>{d(ue=>ue.setClass("ag-hidden",!re)),g(re?"false":"true")},setWidth:re=>{C.current&&(C.current.style.width=re)},setCompDetails:re=>y(re),getFloatingFilterComp:()=>O.current?O.current:null,setMenuIcon:re=>T.current?.appendChild(re)};e.setComp(se,K,T.current,E.current,w.current)},[]);R.useLayoutEffect(()=>ww(m,t,E.current,D),[m]);const L=R.useMemo(()=>o.toString(),[o]),N=R.useMemo(()=>a.toString(),[a]),M=R.useMemo(()=>u.toString(),[u]),k=R.useMemo(()=>!!(m&&m.componentFromFramework&&Km(m.componentClass)),[m]),B=R.useMemo(()=>n.get("reactiveCustomComponents"),[]),j=R.useMemo(()=>n.get("enableFilterHandlers"),[]),[z,H]=R.useState();R.useEffect(()=>{if(m?.componentFromFramework)if(B){const K=j?U3e:M3e,se=new K(m.params,()=>b(re=>re+1));D(se),H(se)}else nB()},[m]);const G=z?.getProps(),$=m?.componentFromFramework,Y=m?.componentClass;return ye.createElement("div",{ref:F,style:r,className:L,role:"gridcell"},ye.createElement("div",{ref:E,className:N,role:"presentation"},$?B?G&&ye.createElement(tB.Provider,{value:{setMethods:K=>z.setMethods(K)}},ye.createElement(Y,{...G})):ye.createElement(Y,{...m.params,ref:k?()=>{}:D}):null),ye.createElement("div",{ref:A,"aria-hidden":f,className:M,role:"presentation"},ye.createElement("button",{ref:T,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},$3e=R.memo(W3e),q3e=({ctrl:e})=>{const{context:t}=R.useContext(uo),[n,r]=R.useState(),[i,o]=R.useState(()=>new sa),[s,a]=R.useState(()=>new sa),[l,u]=R.useState("false"),[d,f]=R.useState(),[g,m]=R.useState(),y=R.useRef(),b=R.useRef(null),w=R.useRef(null),C=R.useRef(null),E=R.useRef(),A=R.useCallback(L=>{if(b.current=L,!L||!e.isAlive()||t.isDestroyed()){y.current=t.destroyBean(y.current);return}y.current=t.createBean(new qm);const N={setWidth:M=>{b.current&&(b.current.style.width=M)},toggleCss:(M,k)=>o(B=>B.setClass(M,k)),setUserStyles:M=>r(M),setHeaderWrapperHidden:M=>{const k=C.current;k&&(M?k.style.setProperty("display","none"):k.style.removeProperty("display"))},setHeaderWrapperMaxHeight:M=>{const k=C.current;k&&(M!=null?k.style.setProperty("max-height",`${M}px`):k.style.removeProperty("max-height"),k.classList.toggle("ag-header-cell-comp-wrapper-limited-height",M!=null))},setUserCompDetails:M=>m(M),setResizableDisplayed:M=>{a(k=>k.setClass("ag-hidden",!M)),u(M?"false":"true")},setAriaExpanded:M=>f(M),getUserCompInstance:()=>E.current||void 0};e.setComp(N,L,w.current,C.current,y.current)},[]);R.useLayoutEffect(()=>ww(g,t,C.current),[g]),R.useEffect(()=>{b.current&&e.setDragSource(b.current)},[g]);const T=R.useMemo(()=>!!(g?.componentFromFramework&&Km(g.componentClass)),[g]),P=R.useMemo(()=>"ag-header-group-cell "+i.toString(),[i]),O=R.useMemo(()=>"ag-header-cell-resize "+s.toString(),[s]),D=g?.componentFromFramework,F=g?.componentClass;return ye.createElement("div",{ref:A,style:n,className:P,role:"columnheader","aria-expanded":d},ye.createElement("div",{ref:C,className:"ag-header-cell-comp-wrapper",role:"presentation"},D?T?ye.createElement(F,{...g.params}):ye.createElement(F,{...g.params,ref:E}):null),ye.createElement("div",{ref:w,"aria-hidden":l,className:O}))},K3e=R.memo(q3e),Y3e=({ctrl:e})=>{const{gos:t,context:n}=R.useContext(uo),{topOffset:r,rowHeight:i}=R.useMemo(()=>e.getTopAndHeight(),[]),o=R.useMemo(()=>t.get("tabIndex"),[]),[s,a]=R.useState(()=>e.getAriaRowIndex()),l=e.headerRowClass,[u,d]=R.useState(()=>i+"px"),[f,g]=R.useState(()=>r+"px"),m=R.useRef(null),[y,b]=R.useState(()=>e.getUpdatedHeaderCtrls()),w=R.useRef(),C=R.useRef(null),E=R.useCallback(P=>{if(C.current=P,!P||!e.isAlive()||n.isDestroyed()){w.current=n.destroyBean(w.
895current);return}w.current=n.createBean(new qm);const O={setHeight:D=>d(D),setTop:D=>g(D),setHeaderCtrls:(D,F,L)=>{const N=m.current,M=sx(N,D,F);M!==N&&(m.current=M,Hb(L,()=>b(M)))},setWidth:D=>{C.current&&(C.current.style.width=D)},setRowIndex:D=>{a(D)}};e.setComp(O,w.current,!1)},[]),A=R.useMemo(()=>({height:u,top:f}),[u,f]),T=R.useCallback(P=>{switch(e.type){case"group":return ye.createElement(K3e,{ctrl:P,key:P.instanceId});case"filter":return ye.createElement($3e,{ctrl:P,key:P.instanceId});default:return ye.createElement(j3e,{ctrl:P,key:P.instanceId})}},[]);return ye.createElement("div",{ref:E,className:l,role:"row",style:A,tabIndex:o,"aria-rowindex":s},y.map(T))},X3e=R.memo(Y3e),Z3e=({pinned:e})=>{const[t,n]=R.useState(!0),[r,i]=R.useState([]),{context:o}=R.useContext(uo),s=R.useRef(null),a=R.useRef(null),l=R.useRef(),u=e==="left",d=e==="right",f=!u&&!d,g=R.useCallback(b=>{if(s.current=b,!b||o.isDestroyed()){l.current=o.destroyBean(l.current);return}l.current=o.createBean(new kAe(e));const w={setDisplayed:n,setCtrls:C=>i(C),setCenterWidth:C=>{a.current&&(a.current.style.width=C)},setViewportScrollLeft:C=>{s.current&&(s.current.scrollLeft=C)},setPinnedContainerWidth:C=>{s.current&&(s.current.style.width=C,s.current.style.minWidth=C,s.current.style.maxWidth=C)}};l.current.setComp(w,s.current)},[]),m=t?"":"ag-hidden",y=()=>r.map(b=>ye.createElement(X3e,{ctrl:b,key:b.instanceId}));return u?ye.createElement("div",{ref:g,className:"ag-pinned-left-header "+m,"aria-hidden":!t,role:"rowgroup"},y()):d?ye.createElement("div",{ref:g,className:"ag-pinned-right-header "+m,"aria-hidden":!t,role:"rowgroup"},y()):f?ye.createElement("div",{ref:g,className:"ag-header-viewport "+m,role:"rowgroup",tabIndex:-1},ye.createElement("div",{ref:a,className:"ag-header-container",role:"presentation"},y())):null},fD=R.memo(Z3e),Q3e=()=>{const[e,t]=R.useState(()=>new sa),[n,r]=R.useState(),{context:i}=R.useContext(uo),o=R.useRef(null),s=R.useRef(),a=R.useCallback(d=>{if(o.current=d,!d||i.isDestroyed()){s.current=i.destroyBean(s.current);return}s.current=i.createBean(new TAe);const f={toggleCss:(g,m)=>t(y=>y.setClass(g,m)),setHeightAndMinHeight:g=>r(g)};s.current.setComp(f,d,d)},[]),l=R.useMemo(()=>"ag-header "+e.toString(),[e]),u=R.useMemo(()=>({height:n,minHeight:n}),[n]);return ye.createElement("div",{ref:a,className:l,style:u,role:"presentation"},ye.createElement(fD,{pinned:"left"}),ye.createElement(fD,{pinned:null}),ye.createElement(fD,{pinned:"right"}))},J3e=R.memo(Q3e),e5e=(e,t)=>{R.useEffect(()=>{const n=t.current;if(n){const r=n.parentElement;if(r){const i=document.createComment(e);return r.insertBefore(i,n),()=>{i.remove()}}}},[e])},cf=e5e,t5e=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new _t(n=>{this.resolveInstanceCreated=n}),this.onValueChange=n=>this.updateValue(n),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){iR(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached","getValidationErrors","getValidationElement"]}updateValue(e){this.value=e,this.refreshProps()}},n5e=e=>{const t=R.useRef(e),n=R.useRef(),r=R.useRef(!1),i=R.useRef(!1),[,o]=R.useState(0);r.current&&(i.current=!0),R.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),o(s=>s+1),()=>{i.current&&n.current?.()}),[])},r5e=e=>{const[t,n]=R.useState(),r=R.useContext(uo),{context:i,popupSvc:o,gos:s,editSvc:a}=r,{editDetails:l,cellCtrl:u,eParentCell:d}=e;return n5e(()=>{const{compDetails:f}=l,g=s.get("stopEditingWhenCellsLoseFocus");let m,y;if(!i.isDestroyed()){y=i.createBean(a.createPopupEditorWrapper(f.params));const b=y.getGui();if(e.jsChildComp){const P=e.jsChildComp.getGui();P&&b.appendChild(P)}const{column:w,rowNode:C}=u,E={column:w,rowNode:C,type:"popupCellEditor",eventSource:d,ePopup:b,position:l.popupPosition,keepWithinBounds:!0},A=o?.positionPopupByComponent.bind(o,E),T=o?.addPopup({modal:g,eChild:b,closeOnEsc:!0,closedCallback:P=>{u.onPopupEditorClosed(P)},anchorToElement:d,positionCallback:A,ariaOwns:d});m=T?T.hideFunc:void 0,n(y),e.jsChildComp?.afterGuiAttached?.()}return()=>{m?.(),i.destroyBean(y)}}),R.useLayoutEffect(()=>()=>{u.isCellFocused()&&t?.getGui().contains($n(r))&&d.focus({preventScroll:!0})},[t]),t&&e.wrappedContent?zm.createPortal(e.wrappedContent,t.getGui()):null},dU=R.memo(r5e),i5e=(e,t,n)=>{const{compProxy:r}=e;n(r);const i=r.getProps(),o=Km(t);return ye.createElement(tB.Provider,{value:{setMethods:s=>r.setMethods(s)}},o?ye.createElement(t,{...i}):ye.createElement(t,{...i,ref:s=>r.setRef(s)}))},hU=(e,t,n)=>
895e.compProxy?i5e(e,t,n):ye.createElement(t,{...e.compDetails.params,ref:n}),o5e=(e,t,n,r,i)=>{const o=e.compDetails,s=o.componentClass,a=o.componentFromFramework&&!e.popup,l=o.componentFromFramework&&e.popup,u=!o.componentFromFramework&&e.popup;return a?hU(e,s,t):l?ye.createElement(dU,{editDetails:e,cellCtrl:r,eParentCell:n,wrappedContent:hU(e,s,t)}):u&&i?ye.createElement(dU,{editDetails:e,cellCtrl:r,eParentCell:n,jsChildComp:i}):null},s5e=(e,t,n,r,i,o,s=!1)=>{const{context:a}=R.useContext(uo),l=R.useCallback(()=>{const u=i.current;if(!u)return;const d=u.getGui();d&&d.parentElement&&d.remove(),a.destroyBean(u),i.current=void 0},[]);R.useEffect(()=>{const u=e!=null&&!s,d=e?.compDetails&&!e.compDetails.componentFromFramework,f=t&&n==null;if(!(u&&d&&!f)){l();return}const m=e.compDetails;if(i.current){const b=i.current,C=b.refresh!=null&&e.force==!1?b.refresh(m.params):!1;if(C===!0||C===void 0)return;l()}m.newAgStackInstance().then(b=>{if(!b)return;const w=b.getGui();if(!w)return;(t?n:o.current).appendChild(w),i.current=b})},[e,t,r,s]),R.useEffect(()=>l,[])},Jre=s5e,a5e=({cellCtrl:e,parent:t})=>{const n=R.useRef(),r=R.useMemo(()=>{const{loadingComp:i}=e.getDeferLoadingCellRenderer();return i?{value:void 0,compDetails:i,force:!1}:void 0},[e]);if(Jre(r,!1,void 0,1,n,t),r?.compDetails?.componentFromFramework){const i=r.compDetails.componentClass;return ye.createElement(i,{...r.compDetails.params})}return ye.createElement(ye.Fragment,null)},l5e=({cellCtrl:e,printLayout:t,editingCell:n})=>{const r=R.useContext(uo),{context:i}=r,{column:{colIdSanitised:o},instanceId:s}=e,a=R.useRef(),[l,u]=R.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[d,f]=R.useState(),[g,m]=R.useState(1),[y,b]=R.useState(),[w,C]=R.useState(!1),[E,A]=R.useState(!1),[T,P]=R.useState(!1),O=R.useRef(null),[D,F]=R.useState(),L=R.useMemo(()=>e.isForceWrapper(),[e]),N=R.useMemo(()=>e.getCellAriaRole(),[e]),M=R.useRef(null),k=R.useRef(null),B=R.useRef(null),j=R.useRef(),z=R.useRef(),H=R.useRef(),G=R.useRef([]),$=R.useRef(),Y=R.useRef(),[K,se]=R.useState(0),re=R.useCallback(xe=>{Y.current=xe,se(We=>We+1)},[]),ue=l!=null&&(w||T||E)&&(d==null||!!d.popup),U=L||ue,X=R.useMemo(()=>e.getCellValueClass(),[e]),be=R.useCallback(xe=>{if(z.current=xe,xe){const We=xe.isCancelBeforeStart&&xe.isCancelBeforeStart();setTimeout(()=>{We?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(xe))})}},[e]),me=R.useRef();me.current||(me.current=new fw(()=>M.current));const Oe=!!d&&!d.popup;Jre(l,U,Y.current,K,j,M,Oe);const ge=R.useRef();R.useLayoutEffect(()=>{const xe=ge.current,We=l;ge.current=l;const rt=xe?.compDetails,Ke=We?.compDetails;if(rt==null||Ke==null||rt===Ke||($.current?.refreshVisibility(),rt.componentClass!=Ke.componentClass)||B.current?.refresh==null)return;B.current.refresh(Ke.params)!=!0&&m(pt=>pt+1)},[l]),R.useLayoutEffect(()=>{if(!(d&&!d.compDetails.componentFromFramework)||i.isDestroyed())return;const We=d.compDetails,rt=d.popup===!0,Ke=We.newAgStackInstance();return Ke.then(Be=>{if(!Be)return;const pt=Be.getGui();be(Be),rt||((L?H:M).current?.appendChild(pt),Be.afterGuiAttached?.()),F(Be)}),()=>{Ke.then(Be=>{const pt=Be.getGui();e.disableEditorTooltipFeature(),i.destroyBean(Be),be(void 0),F(void 0),pt?.remove()})}},[d]);const ve=R.useCallback(xe=>{if(H.current=xe,!xe||i.isDestroyed()||!e.isAlive()){const Ke=G.current;G.current=[];for(const Be of Ke)Be();return}let We;const rt=Ke=>{Ke&&(xe.insertAdjacentElement("afterbegin",Ke.getGui()),G.current.push(()=>{Ql(Ke.getGui()),i.destroyBean(Ke),$.current===We&&($.current=void 0)}))};w&&rt(e.createSelectionCheckbox()),T&&rt(e.createDndSource()),E&&(We=e.createRowDragComp(),$.current=We,We&&(rt(We),We.refreshVisibility()))},[e,i,T,E,w]),de=R.useCallback(()=>{const xe=!e.isCellSpanning()||k.current,We=M.current;if(!We||!xe||!e||!e.isAlive()||i.isDestroyed()){a.current=i.destroyBean(a.current);return}a.current=i.createBean(new qm);const rt={toggleCss:(Be,pt)=>me.current.toggleCss(Be,pt),setUserStyles:Be=>b(Be),getFocusableElement:()=>M.current,setIncludeSelection:Be=>C(Be),setIncludeRowDrag:Be=>A(Be),setIncludeDndSource:Be=>
vendor: 2,718 bytes, line 895
895P(Be),setRowResizerElement:Be=>{O.current&&Ql(O.current),O.current=Be,Be&&M.current&&M.current.appendChild(Be)},getCellEditor:()=>z.current??null,getCellRenderer:()=>B.current??j.current,getParentOfValue:()=>Y.current??H.current??M.current,setRenderDetails:(Be,pt,Ee)=>{const Ze=()=>{u(st=>st?.compDetails!==Be||st?.value!==pt||st?.force!==Ee?{value:pt,compDetails:Be,force:Ee}:st)};if(Be?.params?.deferRender&&!e.rowNode.group){const{loadingComp:st,onReady:tt}=e.getDeferLoadingCellRenderer();if(st){u({value:void 0,compDetails:st,force:!1}),tt.then(()=>w3e(Ze));return}}Ze()},setEditDetails:(Be,pt,Ee,Ze)=>{if(Be){let st;Be.componentFromFramework&&(Ze?st=new t5e(Be.params,()=>m(tt=>tt+1)):nB()),f({compDetails:Be,popup:pt,popupPosition:Ee,compProxy:st}),pt||u(void 0)}else e.hasBrowserFocus()&&rt.getFocusableElement().focus({preventScroll:!0}),z.current=void 0,f(void 0)},refreshEditStyles:(Be,pt)=>{if(!M.current)return;const{current:Ee}=me;Ee.toggleCss("ag-cell-value",!U),Ee.toggleCss("ag-cell-inline-editing",!!Be&&!pt),Ee.toggleCss("ag-cell-popup-editing",!!Be&&!!pt),Ee.toggleCss("ag-cell-not-inline-editing",!Be||!!pt)}},Ke=H.current||void 0;e.setComp(rt,We,k.current??void 0,Ke,t,n,a.current)},[]),J=R.useCallback(xe=>{M.current=xe,de()},[]),Fe=R.useCallback(xe=>{k.current=xe,de()},[]),ke=R.useMemo(()=>!!(l?.compDetails?.componentFromFramework&&Km(l.compDetails.componentClass)),[l]);R.useLayoutEffect(()=>{if(!M.current)return;const{current:xe}=me;xe.toggleCss("ag-cell-value",!U),xe.toggleCss("ag-cell-inline-editing",!!d&&!d.popup),xe.toggleCss("ag-cell-popup-editing",!!d&&!!d.popup),xe.toggleCss("ag-cell-not-inline-editing",!d||!!d.popup)});const Te=()=>{const{compDetails:xe,value:We}=l;if(!xe)return We?.toString?.()??We;if(xe.componentFromFramework){const rt=xe.componentClass;return ye.createElement(R.Suspense,{fallback:ye.createElement(a5e,{cellCtrl:e,parent:M})},ke?ye.createElement(rt,{...xe.params,key:g}):ye.createElement(rt,{...xe.params,key:g,ref:B}))}},dt=()=>{const xe=()=>l==null?null:U?ye.createElement("span",{role:"presentation",id:`cell-${s}`,className:X,ref:re},Te()):Te(),We=rt=>o5e(rt,be,M.current,e,D);return d!=null?d.popup?ye.createElement(ye.Fragment,null,xe(),We(d)):We(d):xe()},Ne=()=>ye.createElement("div",{ref:J,style:y,role:N,"col-id":o},U?ye.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ve},dt()):dt());return e.isCellSpanning()?ye.createElement("div",{ref:Fe,className:"ag-spanned-cell-wrapper",role:"presentation"},Ne()):Ne()},u5e=R.memo(l5e),c5e=({rowCtrl:e,containerType:t})=>{const{context:n,gos:r,editSvc:i}=R.useContext(uo),o=R.useContext(qre)==="default",s=R.useRef(),a=R.useRef(e.getDomOrder()),l=e.isFullWidth(),u=e.rowNode.dis
895played,[d,f]=R.useState(()=>u?e.rowNode.getRowIndexString():null),[g,m]=R.useState(()=>e.rowId),[y,b]=R.useState(()=>e.businessKey),[w,C]=R.useState(()=>e.rowStyles),[E,A]=R.useState(()=>e.getInitialCellCtrls(t)),T=R.useRef(E),[P,O]=R.useState(),[D,F]=R.useState(()=>u?e.getInitialRowTop(t):void 0),[L,N]=R.useState(()=>u?e.getInitialTransform(t):void 0),M=R.useRef(null),k=R.useRef(),B=R.useRef(),j=R.useRef(!1),[z,H]=R.useState(0);R.useEffect(()=>{if(j.current||!P||z>10)return;const ve=M.current?.firstChild;ve?(e.setupDetailRowAutoHeight(ve),j.current=!0):H(de=>de+1)},[P,z]);const G=R.useRef();G.current||(G.current=new fw(()=>M.current));const $=R.useRef(()=>{}),Y=R.useCallback(ve=>($.current=ve,()=>{$.current=()=>{}}),[]),K=C3e(Y,()=>T.current,[]),se=o?K:E,re=R.useCallback(ve=>{if(M.current=ve,s.current=ve?n.createBean(new qm):n.destroyBean(s.current),!ve){e.unsetComp(t);return}if(!e.isAlive()||n.isDestroyed())return;const de={setTop:F,setTransform:N,toggleCss:(J,Fe)=>G.current.toggleCss(J,Fe),setDomOrder:J=>a.current=J,setRowIndex:f,setRowId:m,setRowBusinessKey:b,setUserStyles:C,setCellCtrls:(J,Fe)=>{const ke=T.current,Te=sx(ke,J,a.current);Te!==ke&&(T.current=Te,o?$.current():Hb(Fe,()=>A(Te)))},showFullWidth:J=>{B.current=J.params,O(J)},getFullWidthCellRenderer:()=>k.current,getFullWidthCellRendererParams:()=>B.current,refreshFullWidth:J=>{const Fe=J();return B.current=Fe,me.current?(O(ke=>({...ke,params:Fe})),!0):!k.current||!k.current.refresh?!1:k.current.refresh(Fe)}};e.setComp(de,ve,t,s.current)},[]);R.useLayoutEffect(()=>ww(P,n,M.current,k),[P]);const ue=R.useMemo(()=>{const ve={top:D,transform:L};return Object.assign(ve,w),ve},[D,L,w]),U=l&&P?.componentFromFramework,X=!l&&se!=null,be=R.useMemo(()=>!!(P?.componentFromFramework&&Km(P.componentClass)),[P]),me=R.useRef(!1);R.useEffect(()=>{me.current=be&&!!P&&!!r.get("reactiveCustomComponents")},[be,P]);const Oe=()=>se?.map(ve=>ye.createElement(u5e,{cellCtrl:ve,editingCell:i?.isEditing(ve,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:ve.instanceId})),ge=()=>{const ve=P.componentClass;return be?ye.createElement(ve,{...P.params}):ye.createElement(ve,{...P.params,ref:k})};return ye.createElement("div",{ref:re,role:"row",style:ue,"row-index":d,"row-id":g,"row-business-key":y},X?Oe():U?ge():null)},fU=R.memo(c5e),d5e=({name:e})=>{const{context:t,gos:n}=R.useContext(uo),r=R.useMemo(()=>vw(e),[e]),i=R.useRef(null),o=R.useRef(null),s=R.useRef(null),a=R.useRef([]),l=R.useRef([]),[u,d]=R.useState(()=>[]),f=!!n.get("enableCellSpan")&&!!r.getSpannedRowCtrls,g=R.useRef([]),m=R.useRef([]),[y,b]=R.useState(()=>[]),w=R.useRef(!1),C=R.useRef(),E=R.useMemo(()=>Qs("ag-viewport",ane(e)),[e]),A=R.useMemo(()=>Qs(lne(e)),[e]),T=R.useMemo(()=>Qs("ag-spanning-container",XAe(e)),[e]),P=r.type==="center"||f,O=P?i:o;cf(" AG Row Container "+e+" ",O);const D=R.useCallback(()=>{const z=!P||i.current!=null,H=o.current!=null,G=!f||s.current!=null;return z&&H&&G},[]),F=R.useCallback(()=>i.current==null&&o.current==null&&s.current==null,[]),L=R.useCallback(()=>{if(F()&&(C.current=t.destroyBean(C.current)),!t.isDestroyed()&&D()){const z=$=>{const Y=sx(l.current,a.current,w.current);Y!==l.current&&(l.current=Y,Hb($,()=>d(Y)))},H=$=>{const Y=sx(m.current,g.current,w.current);Y!==m.current&&(m.current=Y,Hb($,()=>b(Y)))},G={setHorizontalScroll:$=>{i.current&&(i.current.scrollLeft=$)},setViewportHeight:$=>{i.current&&(i.current.style.height=$)},setRowCtrls:({rowCtrls:$,useFlushSync:Y})=>{const K=!!Y&&a.current.length>0&&$.length>0;a.current=$,z(K)},setSpannedRowCtrls:($,Y)=>{const K=!!Y&&g.current.length>0&&$.length>0;g.current=$,H(K)},setDomOrder:$=>{w.current!=$&&(w.current=$,z(!1))},setContainerWidth:$=>{o.current&&(o.current.style.width=$)},setOffsetTop:$=>{o.current&&(o.current.style.transform=`translateY(${$})`)}};C.current=t.createBean(new sTe(e)),C.current.setComp(G,o.current,s.current??void 0,i.current)}},[D,F]),N=R.useCallback(z=>{o.current=z,L()},[L]),M=R.useCallback(z=>{s.current=z,L()},[L]),k=R.useCallback(z=>{i.current=z,L()},[L]),B=()=>ye.createElement("div",{className:A,ref:N,role:P?"presentation":"rowgroup"},u.map(z=>ye.createElement(fU,{rowCtrl:z,containerType:r.type,key:z.instanceId})));if(!P)return B();const j=()=>ye.createElement("div",{className:T,ref:M,role:"presentation"},y.map(z=>ye.createElement(fU,{rowCtrl:z,containerType:r.type,key:z.instanceId})));return ye.createElement("div",{className:E,ref:k,role:"rowgroup"},B(),f?j():null)},h5e=R.memo(d5e),f5e=()=>{const e=R.useContext(uo),{context:t,overlays:n}
895=e,[r,i]=R.useState(""),[o,s]=R.useState(0),[a,l]=R.useState(0),[u,d]=R.useState("0px"),[f,g]=R.useState("0px"),[m,y]=R.useState("100%"),[b,w]=R.useState("0px"),[C,E]=R.useState("0px"),[A,T]=R.useState("100%"),[P,O]=R.useState(!0),[D,F]=R.useState(!0),[L,N]=R.useState(null),[M,k]=R.useState(""),[B,j]=R.useState(null),[z,H]=R.useState("ag-layout-normal"),G=R.useRef();G.current||(G.current=new fw(()=>$.current));const $=R.useRef(null),Y=R.useRef(null),K=R.useRef(null),se=R.useRef(null),re=R.useRef(null),ue=R.useRef(null),U=R.useRef(null),X=R.useRef([]),be=R.useRef([]);cf(" AG Grid Body ",$),cf(" AG Pinned Top ",Y),cf(" AG Sticky Top ",K),cf(" AG Middle ",ue),cf(" AG Pinned Bottom ",U);const me=R.useCallback(Ke=>{if($.current=Ke,!Ke||t.isDestroyed()){X.current=t.destroyBeans(X.current);for(const qe of be.current)qe();be.current=[];return}const Be=(qe,mt)=>{qe.appendChild(mt),be.current.push(()=>mt.remove())},pt=qe=>{const mt=t.createBean(new qe);return X.current.push(mt),mt},Ee=(qe,mt,$t)=>{Be(qe,document.createComment($t)),Be(qe,pt(mt).getGui())};Ee(Ke,NAe," AG Fake Horizontal Scroll ");const Ze=n?.getOverlayWrapperCompClass();Ze&&Ee(Ke,Ze," AG Overlay Wrapper "),re.current&&Ee(re.current,HAe," AG Fake Vertical Scroll ");const st={setRowAnimationCssOnBodyViewport:i,setColumnCount:qe=>{$.current&&vxe($.current,qe)},setRowCount:qe=>{$.current&&pxe($.current,qe)},setTopHeight:s,setBottomHeight:l,setStickyTopHeight:d,setStickyTopTop:g,setStickyTopWidth:y,setTopInvisible:O,setBottomInvisible:F,setColumnMovingCss:(qe,mt)=>G.current.toggleCss(qe,mt),updateLayoutClasses:H,setAlwaysVerticalScrollClass:N,setPinnedTopBottomOverflowY:k,setCellSelectableCss:(qe,mt)=>j(mt?qe:null),setBodyViewportWidth:qe=>{ue.current&&(ue.current.style.width=qe)},registerBodyViewportResizeListener:qe=>{if(ue.current){const mt=Rc(e,ue.current,qe);be.current.push(()=>mt())}},setStickyBottomHeight:w,setStickyBottomBottom:E,setStickyBottomWidth:T,setGridRootRole:qe=>Ke.setAttribute("role",qe)},tt=t.createBean(new cTe);X.current.push(tt),tt.setComp(st,Ke,ue.current,Y.current,U.current,K.current,se.current)},[]),Oe=R.useMemo(()=>Qs("ag-root","ag-unselectable",z),[z]),ge=R.useMemo(()=>Qs("ag-body-viewport",r,z,L,B),[r,z,L,B]),ve=R.useMemo(()=>Qs("ag-body",z),[z]),de=R.useMemo(()=>Qs("ag-floating-top",P?"ag-invisible":null,B),[B,P]),J=R.useMemo(()=>Qs("ag-sticky-top",B),[B]),Fe=R.useMemo(()=>Qs("ag-sticky-bottom",b==="0px"?"ag-invisible":null,B),[B,b]),ke=R.useMemo(()=>Qs("ag-floating-bottom",D?"ag-invisible":null,B),[B,D]),Te=R.useMemo(()=>({height:o,minHeight:o,overflowY:M}),[o,M]),dt=R.useMemo(()=>({height:u,top:f,width:m}),[u,f,m]),Ne=R.useMemo(()=>({height:b,bottom:C,width:A}),[b,C,A]),xe=R.useMemo(()=>({height:a,minHeight:a,overflowY:M}),[a,M]),We=Ke=>ye.createElement(h5e,{name:Ke,key:`${Ke}-container`}),rt=({section:Ke,children:Be,className:pt,style:Ee})=>ye.createElement("div",{ref:Ke,className:pt,role:"presentation",style:Ee},Be.map(We));return ye.createElement("div",{ref:me,className:Oe},ye.createElement(J3e,null),rt({section:Y,className:de,style:Te,children:["topLeft","topCenter","topRight","topFullWidth"]}),ye.createElement("div",{className:ve,ref:re,role:"presentation"},rt({section:ue,className:ge,children:["left","center","right","fullWidth"]})),rt({section:K,className:J,style:dt,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),rt({section:se,className:Fe,style:Ne,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),rt({section:U,className:ke,style:xe,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},g5e=R.memo(f5e),p5e=(e,t)=>{const{children:n,eFocusableElement:r,onTabKeyDown:i,gridCtrl:o,forceFocusOutWhenTabGuardsAreEmpty:s,isEmpty:a}=e,{context:l}=R.useContext(uo),u=R.useRef(null),d=R.useRef(null),f=R.useRef(),g=C=>{const E=C==null?void 0:parseInt(C,10).toString();for(const A of[u,d])E===void 0?A.current?.removeAttribute("tabindex"):A.current?.setAttribute("tabindex",E)};R.useImperativeHandle(t,()=>({forceFocusOutOfContainer(C){f.current?.forceFocusOutOfContainer(C)}}));const m=R.useCallback(()=>{const C=u.current,E=d.current;if(!C&&!E||l.isDestroyed()){f.current=l.destroyBean(f.current);return}if(C&&E){const A={setTabIndex:g};f.current=l.createBean(new v3e({comp:A,eTopGuard:C,eBottomGuard:E,eFocusableElement:r,onTabKeyDown:i,forceFocusOutWhenTabGuardsAreEmpty:s,focusInnerElement:T=>o.focusInnerElement(T),isEmpty:a}))}},[]),y=R.useCallback(C=>{u.current=C,m()},[m]),b=R.useCallback(C=>{d.current=C,m()},[m]),w=C=>{const E=C==="top"?rm.TAB_GUARD_TOP:rm.TAB_GUARD_BOTTOM;return ye.createElement("div",{className:`${rm.TAB_GUARD} ${E}`,role:"presentation",ref:C==="top"?y:b})};return ye.createElement(ye.Fragment,null,w("top"),n,w("bottom"))},m5e=R.forwardRef(p5e),v5e=R.memo(m5e),y5e=({context:e})=>
895{const[t,n]=R.useState(""),[r,i]=R.useState(""),[o,s]=R.useState(null),[a,l]=R.useState(null),[u,d]=R.useState(!1),[f,g]=R.useState(),m=R.useRef(),y=R.useRef(null),b=R.useRef(),[w,C]=R.useState(null),E=R.useRef(()=>{}),A=R.useRef(),T=R.useRef([]),P=R.useCallback(()=>{},[]);cf(" AG Grid ",y);const O=R.useCallback(k=>{if(y.current=k,m.current=k?e.createBean(new pTe):e.destroyBean(m.current),!k||e.isDestroyed())return;const B=m.current;E.current=B.focusInnerElement.bind(B);const j={destroyGridUi:()=>{},setRtlClass:n,forceFocusOutOfContainer:z=>{if(!z&&A.current?.isDisplayed()){A.current.forceFocusOutOfContainer(z);return}b.current?.forceFocusOutOfContainer(z)},updateLayoutClasses:i,getFocusableContainers:()=>{const z=[],H=[],G=y.current?.querySelector(".ag-root");for(const Y of T.current){if(!Y.isDisplayed())continue;const K=Y.getFocusableContainerName();if(K==="toolbar"||K==="rowGroupToolbar"||K==="pivotToolbar"){z.push(Y);continue}H.push(Y)}const $=[...z];return G&&$.push({getGui:()=>G,getFocusableContainerName:()=>"gridBody"}),$.push(...H),$},setCursor:s,setUserSelect:l};B.setComp(j,k,k),d(!0)},[]);R.useEffect(()=>{const k=m.current,B=y.current;if(!f||!k||!w||!B||e.isDestroyed())return;const j=[];T.current=[],A.current=void 0;const{watermarkSelector:z,paginationSelector:H,sideBarSelector:G,statusBarSelector:$,toolbarSelector:Y,gridHeaderDropZonesSelector:K}=k.getOptionalSelectors(),se=[],re=(ue,U="beforeend")=>{const X=e.createBean(new ue),be=X.getGui();return B.insertAdjacentElement(U,be),se.push(be),j.push(X),X};if(Y){const ue=re(Y.component,"afterbegin");T.current.push(ue)}if(K){const ue=e.createBean(new K.component),U=ue.getGui(),X=B.querySelector(".ag-toolbar");X?X.after(U):B.prepend(U),se.push(U),j.push(ue),T.current.push(...ue.getFocusableContainers?.()??[])}if(G){const ue=e.createBean(new G.component),U=ue.getGui(),X=w.querySelector(".ag-tab-guard-bottom");X&&(X.insertAdjacentElement("beforebegin",U),se.push(U)),j.push(ue),T.current.push(ue)}if($){const ue=re($.component);T.current.push(ue)}if(H){const ue=re(H.component);A.current=ue,T.current.push(ue)}return z&&re(z.component),()=>{e.destroyBeans(j),T.current=[],A.current=void 0;for(const ue of se)ue.remove()}},[f,w,e]);const D=R.useMemo(()=>Qs("ag-root-wrapper",t,r),[t,r]),F=R.useMemo(()=>Qs("ag-root-wrapper-body","ag-focus-managed",r),[r]),L=R.useMemo(()=>({userSelect:a??"",WebkitUserSelect:a??"",cursor:o??""}),[a,o]),N=R.useCallback(k=>{b.current=k,g(k!==null)},[]),M=R.useCallback(()=>!m.current?.isFocusable(),[]);return ye.createElement("div",{ref:O,className:D,style:L,role:"presentation"},ye.createElement("div",{className:F,ref:C,role:"presentation"},u&&w&&!e.isDestroyed()&&ye.createElement(uo.Provider,{value:e.getBeans()},ye.createElement(v5e,{ref:N,eFocusableElement:w,onTabKeyDown:P,gridCtrl:m.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:M},ye.createElement(g5e,null)))))},b5e=R.memo(y5e),w5e=class extends Se{postConstruct(){if(this.beans.colAutosize){const e=this.queueResizeOperationsForTick.bind(this);this.addManagedEventListeners({rowExpansionStateChanged:e,expandOrCollapseAll:e,cellValueChanged:e,rowNodeDataChanged:e,rowDataUpdated:e})}}queueResizeOperationsForTick(){const e=this.beans.colAutosize;e.shouldQueueResizeOperations=!0,setTimeout(()=>{e.processResizeOperations()},0)}areHeaderCellsRendered(){return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}areCellsRendered(){return this.beans.rowRenderer.getAllRowCtrls().every(e=>e.isRowRendered()&&e.getAllCellCtrls().every(t=>!!t.eGui))}},C5e=typeof window>"u"?R.useEffect:R.useLayoutEffect,eie={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},S5e={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...eie},tie=new Set(Object.keys(S5e)),x5e=new Set(Object.keys(eie)),nie=e=>{const t=R.useContext(V3e),n=R.useContext(z3e),r=t!==null,i=R.useRef(),o=R.useRef(null),s=R.useRef(null),a=R.useRef([]),l=R.useRef([]),u=R.useRef(e),d=R.useRef(),f=R.useRef(),g=R.useRef(!1),[m,y]=R.use
895State(void 0),[,b]=R.useState(0),w=R.useRef(),C=O=>{const D=o.current?.classList,F=(L="")=>L.trim().split(/\s+/g).filter(Boolean);if(w.current!==O){for(const L of F(w.current))D?.contains(L)&&D.remove(L);for(const L of F(O))D?.contains(L)||D?.add(L);w.current=O}};C5e(()=>{C(e.className)},[e.className]);const E=R.useCallback(O=>{if(o.current=O,C(e.className),!O){g.current=!1;for(const H of a.current)H();a.current.length=0;return}const D=[...e.modules??[],...t??[]];n&&cte(D)?.setLicenseKey(n),s.current||(s.current=new H3e(()=>b(H=>H+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),a.current.push(()=>{s.current?.destroy(),s.current=null}));const F=xEe(e.gridOptions,e,Object.keys(e).filter(H=>!tie.has(H))),L=()=>{if(g.current){const H=()=>d.current?.shouldQueueUpdates()?void 0:l.current.shift();let G=H();for(;G;)G(),G=H()}},N=new T5e(L,r);d.current=N;const M=new w5e,k={providedBeanInstances:{frameworkCompWrapper:new R5e(s.current,F),renderStatus:M},modules:D,frameworkOverrides:N,setThemeOnGridDiv:!0},B=H=>{y(H),H.createBean(M),a.current.push(()=>{H.destroy()}),H.getBean("ctrlsSvc").whenReady({addDestroyFunc:G=>{a.current.push(G)}},()=>{if(H.isDestroyed())return;const G=i.current;G&&e.passGridApi?.(G)})},j=H=>{H.getBean("ctrlsSvc").whenReady({addDestroyFunc:G=>{a.current.push(G)}},()=>{for(const G of l.current)G();l.current.length=0,g.current=!0})},z=new u_e;F.gridId??(F.gridId=f.current),i.current=z.create(O,F,B,j,k),a.current.push(()=>{i.current=void 0}),i.current&&(f.current=i.current.getGridId())},[]),A=R.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),T=R.useCallback(O=>{g.current&&!d.current?.shouldQueueUpdates()?O():l.current.push(O)},[]);R.useEffect(()=>{const O=E5e(u.current,e);u.current=e,T(()=>{i.current&&EEe(O,i.current)})},[e]);const P=!ye.useSyncExternalStore||r1(e,"renderingMode")==="legacy"?"legacy":"default";return ye.createElement("div",{style:A,ref:E},ye.createElement(qre.Provider,{value:P},m&&!m.isDestroyed()?ye.createElement(b5e,{key:m.instanceId,context:m}):null,s.current?.getPortals()??null))};function E5e(e,t){const n={};for(const r of Object.keys(t)){if(tie.has(r)){x5e.has(r)&&Me(274,{prop:r});continue}const i=t[r];e[r]!==i&&(n[r]=i)}return n}var R5e=class extends m3e{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const n=this.gridOptions;if(r1(n,"reactiveCustomComponents")){const s=(a=>{switch(a){case"filter":return r1(n,"enableFilterHandlers")?D3e:O3e;case"floatingFilterComponent":return r1(n,"enableFilterHandlers")?_3e:I3e;case"dateComponent":return T3e;case"dragAndDropImageComponent":return P3e;case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":return A3e;case"statusPanel":return L3e;case"toolPanel":return N3e;case"menuItem":return k3e;case"cellRenderer":return R3e;case"innerHeaderComponent":return F3e}})(t.name);if(s)return new s(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":nB();break}const i=!t.cellRenderer&&t.name!=="toolPanel";return new Zre(e,this.parent,t,i)}},A5e=R.forwardRef((e,t)=>{const n=R.useContext(uo),{registry:r,context:i,gos:o,rowModel:s}=n,[a,l]=R.useState(()=>new sa),[u,d]=R.useState(()=>new sa),[f,g]=R.useState(),[m,y]=R.useState(),b=R.useRef(),w=R.useRef(null),C=R.useRef(),E=R.useMemo(()=>Qxe(e.api.getGridId(),f?.rowModelType??"clientSide"),[e]),A=R.useMemo(()=>a.toString()+" ag-details-row",[a]),T=R.useMemo(()=>u.toString()+" ag-details-grid",[u]);t&&R.useImperativeHandle(t,()=>({refresh(){return b.current?.refresh()??!1}})),e.template&&Me(230);const P=R.useCallback(D=>{if(w.current=D,!D||i.isDestroyed()){b.current=i.destroyBean(b.current),C.current?.();return}const F={toggleCss:(N,M)=>l(k=>k.setClass(N,M)),toggleDetailGridCss:(N,M)=>d(k=>k.setClass(N,M)),setDetailGrid:N=>g(N),setRowData:N=>y(N),getGui:()=>w.current},L=r.createDynamicBean("detailCellRendererCtrl",!0);if(L&&(i.createBean(L),L.init(F,e),b.current=L,o.get("detailRowAutoHeight"))){const N=()=>
895{if(w.current==null)return;const M=w.current.clientHeight;M!=null&&M>0&&setTimeout(()=>{e.node.setRowHeight(M),(hr(o)||Wm(o))&&s.onRowHeightChanged()},0)};C.current=Rc(n,D,N),N()}},[]),O=R.useCallback(D=>{b.current?.registerDetailWithMaster(D)},[]);return ye.createElement("div",{className:A,ref:P},f&&ye.createElement(nie,{className:T,...f,modules:E,rowData:m,passGridApi:O}))}),T5e=class extends ore{constructor(e,t){super("react"),this.processQueuedUpdates=e,this.usesAgGridProvider=t,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:uU,agGroupRowRenderer:uU,agDetailCellRenderer:A5e},this.wrapIncoming=(n,r)=>r==="ensureVisible"?b3e(n):n()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return y3e()}},Fwt=class extends R.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e;for(const t of this.apiListeners)t(e)}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return ye.createElement(nie,{...this.props,passGridApi:this.setGridApi})}},rie=typeof global=="object"&&global&&global.Object===Object&&global,P5e=typeof self=="object"&&self&&self.Object===Object&&self,cu=rie||P5e||Function("return this")(),Zd=cu.Symbol,iie=Object.prototype,O5e=iie.hasOwnProperty,D5e=iie.toString,vy=Zd?Zd.toStringTag:void 0;function M5e(e){var t=O5e.call(e,vy),n=e[vy];try{e[vy]=void 0;var r=!0}catch{}var i=D5e.call(e);return r&&(t?e[vy]=n:delete e[vy]),i}var I5e=Object.prototype,_5e=I5e.toString;function F5e(e){return _5e.call(e)}var k5e="[object Null]",L5e="[object Undefined]",gU=Zd?Zd.toStringTag:void 0;function Ym(e){return e==null?e===void 0?L5e:k5e:gU&&gU in Object(e)?M5e(e):F5e(e)}function gc(e){return e!=null&&typeof e=="object"}var Qf=Array.isArray;function ah(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oie(e){return e}var N5e="[object AsyncFunction]",B5e="[object Function]",H5e="[object GeneratorFunction]",V5e="[object Proxy]";function rB(e){if(!ah(e))return!1;var t=Ym(e);return t==B5e||t==H5e||t==N5e||t==V5e}var gD=cu["__core-js_shared__"],pU=(function(){var e=/[^.]+$/.exec(gD&&gD.keys&&gD.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function z5e(e){return!!pU&&pU in e}var G5e=Function.prototype,j5e=G5e.toString;function yg(e){if(e!=null){try{return j5e.call(e)}catch{}try{return e+""}catch{}}return""}var U5e=/[\\^$.*+?()[\]{}|]/g,W5e=/^\[object .+?Constructor\]$/,$5e=Function.prototype,q5e=Object.prototype,K5e=$5e.toString,Y5e=q5e.hasOwnProperty,X5e=RegExp("^"+K5e.call(Y5e).replace(U5e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Z5e(e){if(!ah(e)||z5e(e))return!1;var t=rB(e)?X5e:W5e;return t.test(yg(e))}function Q5e(e,t){return e?.[t]}function bg(e,t){var n=Q5e(e,t);return Z5e(n)?n:void 0}var DF=bg(cu,"WeakMap"),mU=Object.create,J5e=(function(){function e(){}return function(t){if(!ah(t))return{};if(mU)return mU(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function eVe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function tVe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var nVe=800,rVe=16,iVe=Date.now;function oVe(e){var t=0,n=0;return function(){var r=iVe(),i=rVe-(r-n);if(n=r,i>0){if(++t>=nVe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function sVe(e){return function(){return e}}var ax=(function(){try{var e=bg(Object,"defineProperty");return e({},"",{}),e}catch{}})(),aVe=ax?function(e,t){return ax(e,"toString",{configurable:!0,enumerable:!1,value:sVe(t),writable:!0})}:oie,lVe=oVe(aVe);function uVe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var cVe=9007199254740991,dVe=/^(?:0|[1-9]\d*)$/;function sie(e,t){var n=typeof e;return t=t??cVe,!!t&&(n=="number"||n!="symbol"&&dVe.test(e))&&e>-1&&e%1==0&&e<t}function iB(e,t,n){t=="__proto__"&&ax?ax(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Cw(e,t){return e===t||e!==e&&t!==t}var hVe=Object.prototype,fVe=hVe.hasOwnProperty;function aie(e,t,n){var r=e[t];(!(fVe.call(e,t)&&Cw(r,n))||n===void 0&&!(t in e))&&iB(e,t,n)}function gVe(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=void 0;l===void 0&&(l=e[a]),i?iB(n,a,l):aie(n,a,l)}return n}var vU=Math.max;function pVe(e,t,n){return t=vU(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=vU(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),eVe(e,this,a)}}function mVe(e,t){return lVe(pVe(e,t,oie),e+"")}var vVe=9007199254740991;function lie(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vVe}function oR(e){return e!=null&&lie(e.length)&&!rB(e)}function yVe(e,t,n){if(!ah(n))return!1;var r=typeof t;return(r=="number"?oR(n)&&sie(t,n.length):r=="string"&&t in n)?Cw(n[t],e):!1}
vendor: 6,909 bytes, line 895
895function bVe(e){return mVe(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&yVe(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}var wVe=Object.prototype;function oB(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||wVe;return e===n}function CVe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var SVe="[object Arguments]";function yU(e){return gc(e)&&Ym(e)==SVe}var uie=Object.prototype,xVe=uie.hasOwnProperty,EVe=uie.propertyIsEnumerable,MF=yU((function(){return arguments})())?yU:function(e){return gc(e)&&xVe.call(e,"callee")&&!EVe.call(e,"callee")};function RVe(){return!1}var cie=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bU=cie&&typeof module=="object"&&module&&!module.nodeType&&module,AVe=bU&&bU.exports===cie,wU=AVe?cu.Buffer:void 0,TVe=wU?wU.isBuffer:void 0,Vb=TVe||RVe,PVe="[object Arguments]",OVe="[object Array]",DVe="[object Boolean]",MVe="[object Date]",IVe="[object Error]",_Ve="[object Function]",FVe="[object Map]",kVe="[object Number]",LVe="[object Object]",NVe="[object RegExp]",BVe="[object Set]",HVe="[object String]",VVe="[object WeakMap]",zVe="[object ArrayBuffer]",GVe="[object DataView]",jVe="[object Float32Array]",UVe="[object Float64Array]",WVe="[object Int8Array]",$Ve="[object Int16Array]",qVe="[object Int32Array]",KVe="[object Uint8Array]",YVe="[object Uint8ClampedArray]",XVe="[object Uint16Array]",ZVe="[object Uint32Array]",kn={};kn[jVe]=kn[UVe]=kn[WVe]=kn[$Ve]=kn[qVe]=kn[KVe]=kn[YVe]=kn[XVe]=kn[ZVe]=!0;kn[PVe]=kn[OVe]=kn[zVe]=kn[DVe]=kn[GVe]=kn[MVe]=kn[IVe]=kn[_Ve]=kn[FVe]=kn[kVe]=kn[LVe]=kn[NVe]=kn[BVe]=kn[HVe]=kn[VVe]=!1;function QVe(e){return gc(e)&&lie(e.length)&&!!kn[Ym(e)]}function sB(e){return function(t){return e(t)}}var die=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lb=die&&typeof module=="object"&&module&&!module.nodeType&&module,JVe=lb&&lb.exports===die,pD=JVe&&rie.process,Am=(function(){try{var e=lb&&lb.require&&lb.require("util").types;return e||pD&&pD.binding&&pD.binding("util")}catch{}})(),CU=Am&&Am.isTypedArray,aB=CU?sB(CU):QVe,eze=Object.prototype,tze=eze.hasOwnProperty;function hie(e,t){var n=Qf(e),r=!n&&MF(e),i=!n&&!r&&Vb(e),o=!n&&!r&&!i&&aB(e),s=n||r||i||o,a=s?CVe(e.length,String):[],l=a.length;for(var u in e)(t||tze.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||sie(u,l)))&&a.push(u);return a}function fie(e,t){return function(n){return e(t(n))}}var nze=fie(Object.keys,Object),rze=Object.prototype,ize=rze.hasOwnProperty;function oze(e){if(!oB(e))return nze(e);var t=[];for(var n in Object(e))ize.call(e,n)&&n!="constructor"&&t.push(n);return t}function sze(e){return oR(e)?hie(e):oze(e)}function aze(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var lze=Object.prototype,uze=lze.hasOwnProperty;function cze(e){if(!ah(e))return aze(e);var t=oB(e),n=[];for(var r in e)r=="constructor"&&(t||!uze.call(e,r))||n.push(r);return n}function gie(e){return oR(e)?hie(e,!0):cze(e)}var zb=bg(Object,"create");function dze(){this.__data__=zb?zb(null):{},this.size=0}function hze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fze="__lodash_hash_undefined__",gze=Object.prototype,pze=gze.hasOwnProperty;function mze(e){var t=this.__data__;if(zb){var n=t[e];return n===fze?void 0:n}return pze.call(t,e)?t[e]:void 0}var vze=Object.prototype,yze=vze.hasOwnProperty;function bze(e){var t=this.__data__;return zb?t[e]!==void 0:yze.call(t,e)}var wze="__lodash_hash_undefined__";function Cze(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zb&&t===void 0?wze:t,this}function Jf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Jf.prototype.clear=dze;Jf.prototype.delete=hze;Jf.prototype.get=mze;Jf.prototype.has=bze;Jf.prototype.set=Cze;function Sze(){this.__data__=[],this.size=0}function sR(e,t){for(var n=e.length;n--;)if(Cw(e[n][0],t))return n;return-1}var xze=Array.prototype,Eze=xze.splice;function Rze(e){var t=this.__data__,n=sR(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Eze.call(t,n,1),--this.size,!0}function Aze(e){var t=this.__data__,n=sR(t,e);return n<0?void 0:t[n][1]}function Tze(e){return sR(this.__data__,e)>-1}function Pze(e,t){var n=this.__data__,r=sR(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ac(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ac.prototype.clear=Sze;Ac.prototype.delete=Rze;Ac.prototype.get=Aze;Ac.prototype.has=Tze;Ac.prototype.set=Pze;var Gb=bg(cu,"Map");function Oze(){this.size=0,this.__data__={hash:new Jf,map:new(Gb||Ac),string:new Jf}}function Dze(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function aR(e,t){var n=e.__data__;return Dze(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Mze(e){var t=aR(this,e).delete(e);return this.size-=t?1:0,t}function Ize(e){return aR(this,e).get(e)}function _ze(e){return aR(this,e).has(e)}function Fze(e,t){var n=aR(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function wg(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wg.prototype.clear=Oze;wg.prototype.delete=Mze;wg.prototype.get=Ize;wg.prototype.has=_ze;wg.prototype.set=Fze;function kze(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var pie=fie(Object.getPrototypeOf,Object),Lze="[object Object]",Nze=Function.prototype,Bze=Object.prototype,mie=Nze.toString,Hze=Bze.hasOwnProperty,Vze=mie.call(Object);function zze(e){if(!gc(e)||Ym(e)!=Lze)return!1;var t=pie(e);if(t===null)return!0;var n=Hze.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mie.call(n)==Vze}function Gze(){this.__data__=new Ac,this.size=0}function jze(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Uze(e){return this.__data__.get(e)}function Wze(e){return this.__data__.has(e)}var $ze=200;function qze(e,t){var n=this.__data__;if(n instanceof Ac){var r=n.__data__;if(!Gb||r.length<$ze-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wg(r)}return n.set(e,t),this.size=n.size,this}function Kl(e){var t=this.__data__=new Ac(e);this.size=t.size}Kl.prototype.clear=Gze;Kl.prototype.delete=jze;Kl.prototype.get=Uze;Kl.prototype.has=Wze;Kl.prototype.set=qze;var vie=typeof exports=="object"&&exports&&!exports.nodeType&&exports,SU=vie&&typeof module=="object"&&module&&!module.nodeType&&module,Kze=SU&&SU.exports===vie,xU=Kze?cu.Buffer:void 0,EU=xU?xU.allocUnsafe:void 0;function yie(e,t){if(t)return e.slice();var n=e.length,r=EU?EU(n):new e.constructor(n);return e.copy(r),r}function Yze(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}
vendor: 4,916 bytes, line 895
895function Xze(){return[]}var Zze=Object.prototype,Qze=Zze.propertyIsEnumerable,RU=Object.getOwnPropertySymbols,Jze=RU?function(e){return e==null?[]:(e=Object(e),Yze(RU(e),function(t){return Qze.call(e,t)}))}:Xze;function e4e(e,t,n){var r=t(e);return Qf(e)?r:kze(r,n(e))}function IF(e){return e4e(e,sze,Jze)}var _F=bg(cu,"DataView"),FF=bg(cu,"Promise"),kF=bg(cu,"Set"),AU="[object Map]",t4e="[object Object]",TU="[object Promise]",PU="[object Set]",OU="[object WeakMap]",DU="[object DataView]",n4e=yg(_F),r4e=yg(Gb),i4e=yg(FF),o4e=yg(kF),s4e=yg(DF),ja=Ym;(_F&&ja(new _F(new ArrayBuffer(1)))!=DU||Gb&&ja(new Gb)!=AU||FF&&ja(FF.resolve())!=TU||kF&&ja(new kF)!=PU||DF&&ja(new DF)!=OU)&&(ja=function(e){var t=Ym(e),n=t==t4e?e.constructor:void 0,r=n?yg(n):"";if(r)switch(r){case n4e:return DU;case r4e:return AU;case i4e:return TU;case o4e:return PU;case s4e:return OU}return t});var a4e=Object.prototype,l4e=a4e.hasOwnProperty;function u4e(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&l4e.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var lx=cu.Uint8Array;function lB(e){var t=new e.constructor(e.byteLength);return new lx(t).set(new lx(e)),t}function c4e(e,t){var n=lB(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var d4e=/\w*$/;function h4e(e){var t=new e.constructor(e.source,d4e.exec(e));return t.lastIndex=e.lastIndex,t}var MU=Zd?Zd.prototype:void 0,IU=MU?MU.valueOf:void 0;function f4e(e){return IU?Object(IU.call(e)):{}}function bie(e,t){var n=t?lB(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var g4e="[object Boolean]",p4e="[object Date]",m4e="[object Map]",v4e="[object Number]",y4e="[object RegExp]",b4e="[object Set]",w4e="[object String]",C4e="[object Symbol]",S4e="[object ArrayBuffer]",x4e="[object DataView]",E4e="[object Float32Array]",R4e="[object Float64Array]",A4e="[object Int8Array]",T4e="[object Int16Array]",P4e="[object Int32Array]",O4e="[object Uint8Array]",D4e="[object Uint8ClampedArray]",M4e="[object Uint16Array]",I4e="[object Uint32Array]";function _4e(e,t,n){var r=e.constructor;switch(t){case S4e:return lB(e);case g4e:case p4e:return new r(+e);case x4e:return c4e(e);case E4e:case R4e:case A4e:case T4e:case P4e:case O4e:case D4e:case M4e:case I4e:return bie(e,n);case m4e:return new r;case v4e:case w4e:return new r(e);case y4e:return h4e(e);case b4e:return new r;case C4e:return f4e(e)}}function wie(e){return typeof e.constructor=="function"&&!oB(e)?J5e(pie(e)):{}}var F4e="[object Map]";function k4e(e){return gc(e)&&ja(e)==F4e}var _U=Am&&Am.isMap,L4e=_U?sB(_U):k4e,N4e="[object Set]";function B4e(e){return gc(e)&&ja(e)==N4e}var FU=Am&&Am.isSet,H4e=FU?sB(FU):B4e,V4e=1,Cie="[object Arguments]",z4e="[object Array]",G4e="[object Boolean]",j4e="[object Date]",U4e="[object Error]",Sie="[object Function]",W4e="[object GeneratorFunction]",$4e="[object Map]",q4e="[object Number]",xie="[object Object]",K4e="[object RegExp]",Y4e="[object Set]",X4e="[object String]",Z4e="[object Symbol]",Q4e="[object WeakMap]",J4e="[object ArrayBuffer]",eGe="[object DataView]",tGe="[object Float32Array]",nGe="[object Float64Array]",rGe="[object Int8Array]",iGe="[object Int16Array]",oGe="[object Int32Array]",sGe="[object Uint8Array]",aGe="[object Uint8ClampedArray]",lGe="[object Uint16Array]",uGe="[object Uint32Array]",Pn={};Pn[Cie]=Pn[z4e]=Pn[J4e]=Pn[eGe]=Pn[G4e]=Pn[j4e]=Pn[tGe]=Pn[nGe]=Pn[rGe]=Pn[iGe]=Pn[oGe]=Pn[$4e]=Pn[q4e]=Pn[xie]=Pn[K4e]=Pn[Y4e]=Pn[X4e]=Pn[Z4e]=Pn[sGe]=Pn[aGe]=Pn[lGe]=Pn[uGe]=!0;Pn[U4e]=Pn[Sie]=Pn[Q4e]=!1;function g1(e,t,n,r,i,o){var s,a=t&V4e;if(s!==void 0)return s;if(!ah(e))return e;var l=Qf(e);if(l)s=u4e(e);else{var u=ja(e),d=u==Sie||u==W4e;if(Vb(e))return yie(e,a);if(u==xie||u==Cie||d&&!i)s=d?{}:wie(e);else{if(!Pn[u])return i?e:{};s=_4e(e,u,a)}}o||(o=new Kl);var f=o.get(e);if(f)return f;o.set(e,s),H4e(e)?e.forEach(function(y){s.add(g1(y,t,n,y,e,o))}):L4e(e)&&e.forEach(function(y,b){s.set(b,g1(y,t,n,b,e,o))});var g=IF,m=l?void 0:g(e);return uVe(m||e,function(y,b){m&&(b=y,y=e[b]),aie(s,b,g1(y,t,n,b,e,o))}),s}var cGe=1,dGe=4;function sm(e){return g1(e,cGe|dGe)}var hGe="__lodash_hash_undefined__";function fGe(e){return this.__data__.set(e,hGe),this}function gGe(e){return this.__data__.has(e)}function ux(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new wg;++t<n;)this.add(e[t])}ux.prototype.add=ux.prototype.push=fGe;ux.prototype.has=gGe;function pGe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function mGe(e,t){return e.has(t)}var vGe=1,yGe=2;function Eie(e,t,n,r,i,o){var s=n&vGe,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,g=!0,m=n&yGe?new ux:void 0;for(o.set(e,t),o.set(t,e);++f<a;){var y=e[f],b=t[f];if(r)var w=s?r(b,y,f,t,e,o):r(y,b,f,e,t,o);if(w!==void 0){if(w)continue;g=!1;break}if(m){if(!pGe(t,function(C,E){if(!mGe(m,E)&&(y===C||i(y,C,n,r,o)))return m.push(E)}
vendor: 2,253 bytes, line 895
895)){g=!1;break}}else if(!(y===b||i(y,b,n,r,o))){g=!1;break}}return o.delete(e),o.delete(t),g}function bGe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function wGe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var CGe=1,SGe=2,xGe="[object Boolean]",EGe="[object Date]",RGe="[object Error]",AGe="[object Map]",TGe="[object Number]",PGe="[object RegExp]",OGe="[object Set]",DGe="[object String]",MGe="[object Symbol]",IGe="[object ArrayBuffer]",_Ge="[object DataView]",kU=Zd?Zd.prototype:void 0,mD=kU?kU.valueOf:void 0;function FGe(e,t,n,r,i,o,s){switch(n){case _Ge:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case IGe:return!(e.byteLength!=t.byteLength||!o(new lx(e),new lx(t)));case xGe:case EGe:case TGe:return Cw(+e,+t);case RGe:return e.name==t.name&&e.message==t.message;case PGe:case DGe:return e==t+"";case AGe:var a=bGe;case OGe:var l=r&CGe;if(a||(a=wGe),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=SGe,s.set(e,t);var d=Eie(a(e),a(t),r,i,o,s);return s.delete(e),d;case MGe:if(mD)return mD.call(e)==mD.call(t)}return!1}var kGe=1,LGe=Object.prototype,NGe=LGe.hasOwnProperty;function BGe(e,t,n,r,i,o){var s=n&kGe,a=IF(e),l=a.length,u=IF(t),d=u.length;if(l!=d&&!s)return!1;for(var f=l;f--;){var g=a[f];if(!(s?g in t:NGe.call(t,g)))return!1}var m=o.get(e),y=o.get(t);if(m&&y)return m==t&&y==e;var b=!0;o.set(e,t),o.set(t,e);for(var w=s;++f<l;){g=a[f];var C=e[g],E=t[g];if(r)var A=s?r(E,C,g,t,e,o):r(C,E,g,e,t,o);if(!(A===void 0?C===E||i(C,E,n,r,o):A)){b=!1;break}w||(w=g=="constructor")}if(b&&!w){var T=e.constructor,P=t.constructor;T!=P&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof P=="function"&&P instanceof P)&&(b=!1)}return o.delete(e),o.delete(t),b}var HGe=1,LU="[object Arguments]",NU="[object Array]",uS="[object Object]",VGe=Object.prototype,BU=VGe.hasOwnProperty;function zGe(e,t,n,r,i,o){var s=Qf(e),a=Qf(t),l=s?NU:ja(e),u=a?NU:ja(t);l=l==LU?uS:l,u=u==LU?uS:u;var d=l==uS,f=u==uS,g=l==u;if(g&&Vb(e)){if(!Vb(t))return!1;s=!0,d=!1}if(g&&!d)return o||(o=new Kl),s||aB(e)?Eie(e,t,n,r,i,o):FGe(e,t,l,n,r,i,o);if(!(n&HGe)){var m=d&&BU.call(e,"__wrapped__"),y=f&&BU.call(t,"__wrapped__");
vendor: 5,252 bytes, line 895
895if(m||y){var b=m?e.value():e,w=y?t.value():t;return o||(o=new Kl),i(b,w,n,r,o)}}return g?(o||(o=new Kl),BGe(e,t,n,r,i,o)):!1}function Rie(e,t,n,r,i){return e===t?!0:e==null||t==null||!gc(e)&&!gc(t)?e!==e&&t!==t:zGe(e,t,n,r,Rie,i)}function GGe(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[++i];if(n(o[l],l,o)===!1)break}return t}}var jGe=GGe();function LF(e,t,n){(n!==void 0&&!Cw(e[t],n)||n===void 0&&!(t in e))&&iB(e,t,n)}function UGe(e){return gc(e)&&oR(e)}function NF(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function WGe(e){return gVe(e,gie(e))}function $Ge(e,t,n,r,i,o,s){var a=NF(e,n),l=NF(t,n),u=s.get(l);if(u){LF(e,n,u);return}var d=o?o(a,l,n+"",e,t,s):void 0,f=d===void 0;if(f){var g=Qf(l),m=!g&&Vb(l),y=!g&&!m&&aB(l);d=l,g||m||y?Qf(a)?d=a:UGe(a)?d=tVe(a):m?(f=!1,d=yie(l,!0)):y?(f=!1,d=bie(l,!0)):d=[]:zze(l)||MF(l)?(d=a,MF(a)?d=WGe(a):(!ah(a)||rB(a))&&(d=wie(l))):f=!1}f&&(s.set(l,d),i(d,l,r,o,s),s.delete(l)),LF(e,n,d)}function Aie(e,t,n,r,i){e!==t&&jGe(t,function(o,s){if(i||(i=new Kl),ah(o))$Ge(e,t,s,n,Aie,r,i);else{var a=r?r(NF(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),LF(e,s,a)}},gie)}function Ad(e,t){return Rie(e,t)}var Vd=bVe(function(e,t,n){Aie(e,t,n)}),ot=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(ot||{});class tu{constructor(t,n,r={}){this.attrName=t,this.keyName=n;const i=ot.TYPE&ot.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ot.LEVEL|i:ot.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map(n=>n.name)}add(t,n){return this.canAdd(t,n)?(t.setAttribute(this.keyName,n),!0):!1}canAdd(t,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const n=t.getAttribute(this.keyName);return this.canAdd(t,n)&&n?n:""}}class am extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const Tie=class BF{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,n=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(n){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,n)}return null}create(t,n,r){const i=this.query(n);if(i==null)throw new am(`Unable to create ${n} blot`);const o=i,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:o.create(r),a=new o(t,s,r);return BF.blots.set(a.domNode,a),a}find(t,n=!1){return BF.find(t,n)}query(t,n=ot.ANY){let r;return typeof t=="string"?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:typeof t=="number"?t&ot.LEVEL&ot.BLOCK?r=this.types.block:t&ot.LEVEL&ot.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[t.tagName]),r==null?null:"scope"in r&&n&ot.LEVEL&r.scope&&n&ot.TYPE&r.scope?r:null}register(...t){return t.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new am("Invalid definition");if(r&&n.blotName==="abstract")throw new am("Cannot register abstract class");const o=r?n.blotName:i?n.attrName:void 0;return this.types[o]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(s=>s.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(s=>{(this.tags[s]==null||n.className==null)&&(this.tags[s]=n)}))),n})}};Tie.blots=new WeakMap;let Tm=Tie;function HU(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${t}-`)===0)}class qGe extends tu{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(t,n){return this.canAdd(t,n)?(this.remove(t),t.classList.add(`${this.keyName}-${n}`),!0):!1}remove(t){HU(t,this.keyName).forEach(n=>{t.classList.remove(n)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const n=(HU(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,n)?n:""}}const il=qGe;function vD(e){const t=e.split("-"),n=t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return t[0]+n}class KGe extends tu{static keys(t){return(t.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(t,n){return this.canAdd(t,n)?(t.style[vD(this.keyName)]=n,!0):!1}remove(t){t.style[vD(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const n=t.style[vD(this.keyName)];return this.canAdd(t,n)?n:""}}const lh=KGe;class YGe{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,n){n?t.add(this.domNode,n)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=Tm.find(this.domNode);
vendor: 12,786 bytes, line 895
895if(t==null)return;const n=tu.keys(this.domNode),r=il.keys(this.domNode),i=lh.keys(this.domNode);n.concat(r).concat(i).forEach(o=>{const s=t.scroll.query(o,ot.ATTRIBUTE);s instanceof tu&&(this.attributes[s.attrName]=s)})}copy(t){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);t.format(n,r)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,n)=>(t[n]=this.attributes[n].value(this.domNode),t),{})}}const lR=YGe,Pie=class{constructor(t,n){this.scroll=t,this.domNode=n,Tm.blots.set(n,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new am("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof t=="string"?(r=t.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof t=="number"&&(r=t),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),Tm.blots.delete(this.domNode)}deleteAt(t,n){this.isolate(t,n).remove()}formatAt(t,n,r,i){const o=this.isolate(t,n);if(this.scroll.query(r,ot.BLOT)!=null&&i)o.wrap(r,i);else if(this.scroll.query(r,ot.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);o.wrap(s),s.format(r,i)}}insertAt(t,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),o=this.split(t);this.parent.insertBefore(i,o||void 0)}isolate(t,n){const r=this.split(t);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(t,n){return t===0?this:this.next}update(t,n){}wrap(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new am(`Cannot wrap ${t}`);return r.appendChild(this),r}};Pie.blotName="abstract";let Oie=Pie;const Die=class extends Oie{static value(t){return!0}index(t,n){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(t,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Die.scope=ot.INLINE_BLOT;let XGe=Die;const Qi=XGe;class ZGe{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const n=t.slice(1);this.append(...n)}}at(t){const n=this.iterator();let r=n();for(;r&&t>0;)t-=1,r=n();return r}contains(t){const n=this.iterator();let r=n();for(;r;){if(r===t)return!0;r=n()}return!1}indexOf(t){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===t)return i;i+=1,r=n()}return-1}insertBefore(t,n){t!=null&&(this.remove(t),t.next=n,n!=null?(t.prev=n.prev,n.prev!=null&&(n.prev.next=t),n.prev=t,n===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let n=0,r=this.head;for(;r!=null;){if(r===t)return n;n+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const n=t;return t!=null&&(t=t.next),n}}find(t,n=!1){const r=this.iterator();let i=r();for(;i;){const o=i.length();if(t<o||n&&t===o&&(i.next==null||i.next.length()!==0))return[i,t];t-=o,i=r()}return[null,0]}forEach(t){const n=this.iterator();let r=n();for(;r;)t(r),r=n()}forEachAt(t,n,r){if(n<=0)return;const[i,o]=this.find(t);let s=t-o;const a=this.iterator(i);let l=a();for(;l&&s<t+n;){const u=l.length();t>s?r(l,t-s,Math.min(n,s+u-t)):r(l,0,Math.min(u,t+n-s)),s+=u,l=a()}}map(t){return this.reduce((n,r)=>(n.push(t(r)),n),[])}reduce(t,n){const r=this.iterator();let i=r();for(;i;)n=t(n,i),i=r();return n}}function VU(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const r=t.create(ot.INLINE);return Array.from(e.childNodes).forEach(i=>{r.domNode.appendChild(i)}),e.parentNode&&e.parentNode.replaceChild(r.domNode,e),r.attach(),r}}const Mie=class bd extends Oie{constructor(t,n){super(t,n),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,bd.uiClass&&this.uiNode.classList.add(bd.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new ZGe,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const n=VU(t,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof am)return;throw n}})}deleteAt(t,n){if(t===0&&n===this.length())return this.remove();this.children.forEachAt(t,n,(r,i,o)=>{r.deleteAt(i,o)})}descendant(t,n=0){const[r,i]=this.children.find(n);return t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t?[r,i]:r instanceof bd?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(n,r,(s,a,l)=>{(t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t)&&i.push(s),s instanceof bd&&(i=i.concat(s.descendants(t,a,o))),o-=l}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ot.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof bd?n.unwrap():n.remove())})}formatAt(t,n,r,i){this.children.forEachAt(t,n,(o,s,a)=>{o.formatAt(s,a,r,i)})}insertAt(t,n,r){const[i,o]=this.children.find(t);if(i)i.insertAt(o,n,r);else{const s=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(s)}}insertBefore(t,n){t.parent!=null&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,n||null),t.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,n)=>t+n.length(),0)}moveChildren(t,n){this.children.forEach(r=>{t.insertBefore(r,n)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(t,n=!1){const[r,i]=this.children.find(t,n),o=[[this,t]];return r instanceof bd?o.concat(r.path(i,n)):(r!=null&&o.push([r,i]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return r instanceof bd&&this.moveChildren(r),super.replaceWith(r)}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(i,o,s)=>{const a=i.split(o,n);a!=null&&r.appendChild(a)}),r}splitAfter(t){const n=this.clone();for(;t.next!=null;)n.appendChild(t.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,n){const r=[],i=[];t.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(r.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(o);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,s)=>o===s?0:o.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let s=null;o.nextSibling!=null&&(s=this.scroll.find(o.nextSibling));const a=VU(o,this.scroll);(a.next!==s||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,s||void 0))}),this.enforceAllowedChildren()}};Mie.uiClass="";let QGe=Mie;const Xa=QGe;function JGe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}const Fp=class kp extends Xa{static create(t){return super.create(t)}static formats(t,n){const r=n.query(kp.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new lR(this.domNode)}format(t,n){if(t===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof kp||(r=r.wrap(kp.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(t,ot.INLINE);if(r==null)return;r instanceof tu?this.attributes.attribute(r,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.formats()[r]!=null||this.scroll.query(r,ot.ATTRIBUTE)?this.isolate(t,n).format(r,i):super.formatAt(t,n,r,i)}optimize(t){super.optimize(t);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof kp&&r.prev===this&&JGe(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof kp&&this.attributes.move(r),r}};Fp.allowedChildren=[Fp,Qi],Fp.blotName="inline",Fp.scope=ot.INLINE_BLOT,Fp.tagName="SPAN";let e8e=Fp;const uB=e8e,Lp=class HF extends Xa{static create(t){return super.create(t)}static formats(t,n){const r=n.query(HF.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new lR(this.domNode)}format(t,n){const r=this.scroll.query(t,ot.BLOCK);r!=null&&(r instanceof tu?this.attributes.attribute(r,n):t===this.statics.blotName&&!n?this.replaceWith(HF.blotName):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n))}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.scroll.query(r,ot.BLOCK)!=null?this.format(r,i):super.formatAt(t,n,r,i)}insertAt(t,n,r){if(r==null||this.scroll.query(n,ot.INLINE)!=null)super.insertAt(t,n,r);else{const i=this.split(t);if(i!=null){const o=this.scroll.create(n,r);i.parent.insertBefore(o,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};Lp.blotName="block",Lp.scope=ot.BLOCK_BLOT,Lp.tagName="P",Lp.allowedChildren=[uB,Lp,Qi];let t8e=Lp;const jb=t8e,VF=class extends Xa{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,n){super.deleteAt(t,n),this.enforceAllowedChildren()}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.enforceAllowedChildren()}insertAt(t,n,r){super.insertAt(t,n,r),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};VF.blotName="container",VF.scope=ot.BLOCK_BLOT;let n8e=VF;const uR=n8e;class r8e extends Qi{static formats(t,n){}
vendor: 13,656 bytes, line 895
895format(t,n){super.formatAt(0,this.length(),t,n)}formatAt(t,n,r,i){t===0&&n===this.length()?this.format(r,i):super.formatAt(t,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const As=r8e,i8e={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},o8e=100,Np=class extends Xa{constructor(t,n){super(null,n),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,i8e),this.attach()}create(t,n){return this.registry.create(this,t,n)}find(t,n=!1){const r=this.registry.find(t,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(t,n=ot.ANY){return this.registry.query(t,n)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,n){this.update(),t===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(t,n)}formatAt(t,n,r,i){this.update(),super.formatAt(t,n,r,i)}insertAt(t,n,r){this.update(),super.insertAt(t,n,r)}optimize(t=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const o=(l,u=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(r.has(l.domNode)||r.set(l.domNode,[]),u&&o(l.parent))},s=l=>{r.has(l.domNode)&&(l instanceof Xa&&l.children.forEach(s),r.delete(l.domNode),l.optimize(n))};let a=t;for(let l=0;a.length>0;l+=1){if(l>=o8e)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(o(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{const g=this.find(f,!1);o(g,!1),g instanceof Xa&&g.children.forEach(m=>{o(m,!1)})})):u.type==="attributes"&&o(d.prev)),o(d))}),this.children.forEach(s),a=Array.from(this.observer.takeRecords()),i=a.slice();i.length>0;)t.push(i.pop())}}update(t,n={}){t=t||this.observer.takeRecords();const r=new WeakMap;t.map(i=>{const o=this.find(i.target,!0);return o==null?null:r.has(o.domNode)?(r.get(o.domNode).push(i),null):(r.set(o.domNode,[i]),o)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(t,n)}};Np.blotName="scroll",Np.defaultChild=jb,Np.allowedChildren=[jb,uR],Np.scope=ot.BLOCK_BLOT,Np.tagName="DIV";let s8e=Np;const cB=s8e,zF=class Iie extends Qi{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,n){super(t,n),this.text=this.statics.value(this.domNode)}deleteAt(t,n){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+n)}index(t,n){return this.domNode===t?n:-1}insertAt(t,n,r){r==null?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,n,r)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Iie&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,n=!1){return[this.domNode,t]}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,n){t.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};zF.blotName="text",zF.scope=ot.INLINE_BLOT;let a8e=zF;const cx=a8e,l8e=Object.freeze(Object.defineProperty({__proto__:null,Attributor:tu,AttributorStore:lR,BlockBlot:jb,ClassAttributor:il,ContainerBlot:uR,EmbedBlot:As,InlineBlot:uB,LeafBlot:Qi,ParentBlot:Xa,Registry:Tm,Scope:ot,ScrollBlot:cB,StyleAttributor:lh,TextBlot:cx},Symbol.toStringTag,{value:"Module"}));var cS={exports:{}},yD,zU;function u8e(){if(zU)return yD;zU=1;var e=-1,t=1,n=0;function r(M,k,B,j,z){if(M===k)return M?[[n,M]]:[];if(B!=null){var H=L(M,k,B);if(H)return H}var G=a(M,k),$=M.substring(0,G);M=M.substring(G),k=k.substring(G),G=u(M,k);var Y=M.substring(M.length-G);M=M.substring(0,M.length-G),k=k.substring(0,k.length-G);var K=i(M,k);return $&&K.unshift([n,$]),Y&&K.push([n,Y]),E(K,z),j&&f(K),K}function i(M,k){var B;if(!M)return[[t,k]];if(!k)return[[e,M]];var j=M.length>k.length?M:k,z=M.length>k.length?k:M,H=j.indexOf(z);if(H!==-1)return B=[[t,j.substring(0,H)],[n,z],[t,j.substring(H+z.length)]],M.length>k.length&&(B[0][0]=B[2][0]=e),B;if(z.length===1)return[[e,M],[t,k]];var G=d(M,k);if(G){var $=G[0],Y=G[1],K=G[2],se=G[3],re=G[4],ue=r($,K),U=r(Y,se);return ue.concat([[n,re]],U)}return o(M,k)}function o(M,k){for(var B=M.length,j=k.length,z=Math.ceil((B+j)/2),H=z,G=2*z,$=new Array(G),Y=new Array(G),K=0;K<G;K++)$[K]=-1,Y[K]=-1;$[H+1]=0,Y[H+1]=0;for(var se=B-j,re=se%2!==0,ue=0,U=0,X=0,be=0,me=0;me<z;me++){for(var Oe=-me+ue;Oe<=me-U;Oe+=2){var ge=H+Oe,ve;Oe===-me||Oe!==me&&$[ge-1]<$[ge+1]?ve=$[ge+1]:ve=$[ge-1]+1;for(var de=ve-Oe;ve<B&&de<j&&M.charAt(ve)===k.charAt(de);)ve++,de++;if($[ge]=ve,ve>B)U+=2;else if(de>j)ue+=2;else if(re){var J=H+se-Oe;if(J>=0&&J<G&&Y[J]!==-1){var Fe=B-Y[J];if(ve>=Fe)return s(M,k,ve,de)}}}for(var ke=-me+X;ke<=me-be;ke+=2){var J=H+ke,Fe;ke===-me||ke!==me&&Y[J-1]<Y[J+1]?Fe=Y[J+1]:Fe=Y[J-1]+1;for(var Te=Fe-ke;Fe<B&&Te<j&&M.charAt(B-Fe-1)===k.charAt(j-Te-1);)Fe++,Te++;if(Y[J]=Fe,Fe>B)be+=2;else if(Te>j)X+=2;else if(!re){var ge=H+se-ke;if(ge>=0&&ge<G&&$[ge]!==-1){var ve=$[ge],de=H+ve-ge;if(Fe=B-Fe,ve>=Fe)return s(M,k,ve,de)}}}}return[[e,M],[t,k]]}function s(M,k,B,j){var z=M.substring(0,B),H=k.substring(0,j),G=M.substring(B),$=k.substring(j),Y=r(z,H),K=r(G,$);return Y.concat(K)}function a(M,k){if(!M||!k||M.charAt(0)!==k.charAt(0))return 0;for(var B=0,j=Math.min(M.length,k.length),z=j,H=0;B<z;)M.substring(H,z)==k.substring(H,z)?(B=z,H=B):j=z,z=Math.floor((j-B)/2+B);return A(M.charCodeAt(z-1))&&z--,z}function l(M,k){var B=M.length,j=k.length;if(B==0||j==0)return 0;B>j?M=M.substring(B-j):B<j&&(k=k.substring(0,B));var z=Math.min(B,j);if(M==k)return z;for(var H=0,G=1;;){var $=M.substring(z-G),Y=k.indexOf($);if(Y==-1)return H;G+=Y,(Y==0||M.substring(z-G)==k.substring(0,G))&&(H=G,G++)}}function u(M,k){if(!M||!k||M.slice(-1)!==k.slice(-1))return 0;for(var B=0,j=Math.min(M.length,k.length),z=j,H=0;B<z;)M.substring(M.length-z,M.length-H)==k.substring(k.length-z,k.length-H)?(B=z,H=B):j=z,z=Math.floor((j-B)/2+B);return T(M.charCodeAt(M.length-z))&&z--,z}function d(M,k){var B=M.length>k.length?M:k,j=M.length>k.length?k:M;if(B.length<4||j.length*2<B.length)return null;function z(U,X,be){for(var me=U.substring(be,be+Math.floor(U.length/4)),Oe=-1,ge="",ve,de,J,Fe;(Oe=X.indexOf(me,Oe+1))!==-1;){var ke=a(U.substring(be),X.substring(Oe)),Te=u(U.substring(0,be),X.substring(0,Oe));ge.length<Te+ke&&(ge=X.substring(Oe-Te,Oe)+X.substring(Oe,Oe+ke),ve=U.substring(0,be-Te),de=U.substring(be+ke),J=X.substring(0,Oe-Te),Fe=X.substring(Oe+ke))}return ge.length*2>=U.length?[ve,de,J,Fe,ge]:null}var H=z(B,j,Math.ceil(B.length/4)),G=z(B,j,Math.ceil(B.length/2)),$;if(!H&&!G)return null;G?H?$=H[4].length>G[4].length?H:G:$=G:$=H;var Y,K,se,re;M.length>k.length?(Y=$[0],K=$[1],se=$[2],re=$[3]):(se=$[0],re=$[1],Y=$[2],K=$[3]);var ue=$[4];return[Y,K,se,re,ue]}function f(M){for(var k=!1,B=[],j=0,z=null,H=0,G=0,$=0,Y=0,K=0;H<M.length;)M[H][0]==n?(B[j++]=H,G=Y,$=K,Y=0,K=0,z=M[H][1]):(M[H][0]==t?Y+=M[H][1].length:K+=M[H][1].length,z&&z.length<=Math.max(G,$)&&z.length<=Math.max(Y,K)&&(M.splice(B[j-1],0,[e,z]),M[B[j-1]+1][0]=t,j--,j--,H=j>0?B[j-1]:-1,G=0,$=0,Y=0,K=0,z=null,k=!0)),H++;for(k&&E(M),C(M),H=1;H<M.length;){if(M[H-1][0]==e&&M[H][0]==t){var se=M[H-1][1],re=M[H][1],ue=l(se,re),U=l(re,se);ue>=U?(ue>=se.length/2||ue>=re.length/2)&&(M.splice(H,0,[n,re.substring(0,ue)]),M[H-1][1]=se.substring(0,se.length-ue),M[H+1][1]=re.substring(ue),H++):(U>=se.length/2||U>=re.length/2)&&(M.splice(H,0,[n,se.substring(0,U)]),M[H-1][0]=t,M[H-1][1]=re.substring(0,re.length-U),M[H+1][0]=e,M[H+1][1]=se.substring(U),H++),H++}H++}}var g=/[^a-zA-Z0-9]/,m=/\s/,y=/[\r\n]/,b=/\n\r?\n$/,w=/^\r?\n\r?\n/;function C(M){function k(U,X){if(!U||!X)return 6;var be=U.charAt(U.length-1),me=X.charAt(0),Oe=be.match(g),ge=me.match(g),ve=Oe&&be.match(m),de=ge&&me.match(m),J=ve&&be.match(y),Fe=de&&me.match(y),ke=J&&U.match(b),Te=Fe&&X.match(w);return ke||Te?5:J||Fe?4:Oe&&!ve&&de?3:ve||de?2:Oe||ge?1:0}for(var B=1;B<M.length-1;){if(M[B-1][0]==n&&M[B+1][0]==n){var j=M[B-1][1],z=M[B][1],H=M[B+1][1],G=u(j,z);if(G){var $=z.substring(z.length-G);j=j.substring(0,j.length-G),z=$+z.substring(0,z.length-G),H=$+H}for(var Y=j,K=z,se=H,re=k(j,z)+k(z,H);z.charAt(0)===H.charAt(0);){j+=z.charAt(0),z=z.substring(1)+H.charAt(0),H=H.substring(1);var ue=k(j,z)+k(z,H);ue>=re&&(re=ue,Y=j,K=z,se=H)}M[B-1][1]!=Y&&(Y?M[B-1][1]=Y:(M.splice(B-1,1),B--),M[B][1]=K,se?M[B+1][1]=se:(M.splice(B+1,1),B--))}B++}}function E(M,k){M.push([n,""]);for(var B=0,j=0,z=0,H="",G="",$;B<M.length;){if(B<M.length-1&&!M[B][1]){M.splice(B,1);continue}switch(M[B][0]){case t:z++,G+=M[B][1],B++;break;case e:j++,H+=M[B][1],B++;break;case n:var Y=B-z-j-1;if(k){if(Y>=0&&O(M[Y][1])){var K=M[Y][1].slice(-1);if(M[Y][1]=M[Y][1].slice(0,-1),H=K+H,G=K+G,!M[Y][1]){M.splice(Y,1),B--;var se=Y-1;M[se]&&M[se][0]===t&&(z++,G=M[se][1]+G,se--),M[se]&&M[se][0]===e&&(j++,H=M[se][1]+H,se--),Y=se}}if(P(M[B][1])){var K=M[B][1].charAt(0);M[B][1]=M[B][1].slice(1),H+=K,G+=K}}if(B<M.length-1&&!M[B][1]){M.splice(B,1);break}if(H.length>0||G.length>0){H.length>0&&G.length>0&&($=a(G,H),$!==0&&(Y>=0?M[Y][1]+=G.substring(0,$):(M.splice(0,0,[n,G.substring(0,$)]),B++),G=G.substring($),H=H.substring($)),$=u(G,H),$!==0&&(M[B][1]=G.substring(G.length-$)+M[B][1],G=G.substring(0,G.length-$),H=H.substring(0,H.length-$)));var re=z+j;H.length===0&&G.length===0?(M.splice(B-re,re),B=B-re):H.length===0?(M.splice(B-re,re,[t,G]),B=B-re+1):G.length===0?(M.splice(B-re,re,[e,H]),B=B-re+1):(M.splice(B-re,re,[e,H],[t,G]),B=B-re+2)}B!==0&&M[B-1][0]===n?(M[B-1][1]+=M[B][1],M.splice(B,1)):B++,z=0,j=0,H="",G="";break}}M[M.length-1][1]===""&&M.pop();var ue=!1;for(B=1;B<M.length-1;)M[B-1][0]===n&&M[B+1][0]===n&&(M[B][1].substring(M[B][1].length-M[B-1][1].length)===M[B-1][1]?(M[B][1]=M[B-1][1]+M[B][1].substring(0,M[B][1].length-M[B-1][1].length),M[B+1][1]=M[B-1][1]+M[B+1][1],M.splice(B-1,1),ue=!0):M[B][1].substring(0,M[B+1][1].length)==M[B+1][1]&&(M[B-1][1]+=M[B+1][1],M[B][1]=M[B][1].substring(M[B+1][1].length)+M[B+1][1],M.splice(B+1,1),ue=!0)),B++;ue&&E(M,k)}function A(M){return M>=55296&&M<=56319}function T(M){return M>=56320&&M<=57343}function P(M){return T(M.charCodeAt(0))}function O(M){return A(M.charCodeAt(M.length-1))}function D(M){for(var k=[],B=0;B<M.length;B++)M[B][1].length>0&&k.push(M[B]);return k}function F(M,k,B,j){return O(M)||P(j)?null:D([[n,M],[e,k],[t,B],[n,j]])}function L(M,k,B){var j=typeof B=="number"?{index:B,length:0}:B.oldRange,z=typeof B=="number"?null:B.newRange,H=M.length,G=k.length;if(j.length===0&&(z===null||z.length===0)){var $=j.index,Y=M.slice(0,$),K=M.slice($),se=z?z.index:null;e:{var re=$+G-H;if(se!==null&&se!==re||re<0||re>G)break e;var ue=k.slice(0,re),U=k.slice(re);if(U!==K)break e;var X=Math.min($,re),be=Y.slice(0,X),me=ue.slice(0,X);if(be!==me)break e;var Oe=Y.slice(X),ge=ue.slice(X);return F(be,Oe,ge,K)}e:{if(se!==null&&se!==$)break e;var ve=$,ue=k.slice(0,ve),U=k.slice(ve);if(ue!==Y)break e;var de=Math.min(H-ve,G-ve),J=K.slice(K.length-de),Fe=U.slice(U.length-de);if(J!==Fe)break e;var Oe=K.slice(0,K.length-de),ge=U.slice(0,U.length-de);return F(Y,Oe,ge,J)}}if(j.length>0&&z&&z.length===0)e:{var be=M.slice(0,j.index),J=M.slice(j.index+j.length),X=be.length,de=J.length;if(G<X+de)break e;var me=k.slice(0,X),Fe=k.slice(G-de);if(be!==me||J!==Fe)break e;var Oe=M.slice(X,H-de),ge=k.slice(X,G-de);return F(be,Oe,ge,J)}return null}function N(M,k,B,j){return r(M,k,B,j,!0)}return N.INSERT=t,N.DELETE=e,N.EQUAL=n,yD=N,yD}var Gy={exports:{}};Gy.exports;var GU;function _ie(){return GU||(GU=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",g="[object Map]",m="[object Number]",y="[object Object]",b="[object Promise]",w="[object RegExp]",C="[object Set]",E="[object String]",A="[object Symbol]",T="[object WeakMap]",P="[object ArrayBuffer]",O="[object DataView]",D="[object Float32Array]",F="[object Float64Array]",L="[object Int8Array]",N="[object Int16Array]",M="[object Int32Array]",k="[object Uint8Array]",B="[object Uint8ClampedArray]",j="[object Uint16Array]",z="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,G=/\w*$/,$=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,K={};K[o]=K[s]=K[P]=K[O]=K[a]=K[l]=K[D]=K[F]=K[L]=K[N]=K[M]=K[g]=K[m]=K[y]=K[w]=K[C]=K[E]=K[A]=K[k]=K[B]=K[j]=K[z]=!0,K[u]=K[d]=K[T]=!1;var se=typeof wo=="object"&&wo&&wo.Object===Object&&wo,re=typeof self=="object"&&self&&self.Object===Object&&self,ue=se||re||Function("return this")(),U=t&&!t.nodeType&&t,X=U&&!0&&e&&!e.nodeType&&e,be=X&&X.exports===U;function me(_,W){return _.set(W[0],W[1]),_}function Oe(_,W){return _.add(W),_}function ge(_,W){for(var Q=-1,we=_?_.length:0;++Q<we&&W(_[Q],Q,_)!==!1;);return _}function ve(_,W){for(var Q=-1,we=W.length,vt=_.length;++Q<we;)_[vt+Q]=W[Q];return _}function de(_,W,Q,we){for(var vt=-1,it=_?_.length:0;++vt<it;)Q=W(Q,_[vt],vt,_);return Q}function J(_,W){for(var Q=-1,we=Array(_);++Q<_;)we[Q]=W(Q);return we}function Fe(_,W){return _?.[W]}function ke(_){var W=!1;
vendor: 7,457 bytes, line 895
895if(_!=null&&typeof _.toString!="function")try{W=!!(_+"")}catch{}return W}function Te(_){var W=-1,Q=Array(_.size);return _.forEach(function(we,vt){Q[++W]=[vt,we]}),Q}function dt(_,W){return function(Q){return _(W(Q))}}function Ne(_){var W=-1,Q=Array(_.size);return _.forEach(function(we){Q[++W]=we}),Q}var xe=Array.prototype,We=Function.prototype,rt=Object.prototype,Ke=ue["__core-js_shared__"],Be=(function(){var _=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""})(),pt=We.toString,Ee=rt.hasOwnProperty,Ze=rt.toString,st=RegExp("^"+pt.call(Ee).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tt=be?ue.Buffer:void 0,qe=ue.Symbol,mt=ue.Uint8Array,$t=dt(Object.getPrototypeOf,Object),_n=Object.create,Yn=rt.propertyIsEnumerable,Bi=xe.splice,sr=Object.getOwnPropertySymbols,yr=tt?tt.isBuffer:void 0,yi=dt(Object.keys,Object),ho=xi(ue,"DataView"),Hi=xi(ue,"Map"),jt=xi(ue,"Promise"),bi=xi(ue,"Set"),Vi=xi(ue,"WeakMap"),qt=xi(Object,"create"),wi=ie(ho),Os=ie(Hi),Ra=ie(jt),dl=ie(bi),hl=ie(Vi),Ci=qe?qe.prototype:void 0,Xn=Ci?Ci.valueOf:void 0;function Zn(_){var W=-1,Q=_?_.length:0;for(this.clear();++W<Q;){var we=_[W];this.set(we[0],we[1])}}function vn(){this.__data__=qt?qt(null):{}}function Ds(_){return this.has(_)&&delete this.__data__[_]}function bu(_){var W=this.__data__;if(qt){var Q=W[_];return Q===r?void 0:Q}return Ee.call(W,_)?W[_]:void 0}function fl(_){var W=this.__data__;return qt?W[_]!==void 0:Ee.call(W,_)}function Ms(_,W){var Q=this.__data__;return Q[_]=qt&&W===void 0?r:W,this}Zn.prototype.clear=vn,Zn.prototype.delete=Ds,Zn.prototype.get=bu,Zn.prototype.has=fl,Zn.prototype.set=Ms;function Fn(_){var W=-1,Q=_?_.length:0;for(this.clear();++W<Q;){var we=_[W];this.set(we[0],we[1])}}function Is(){this.__data__=[]}function Fo(_){var W=this.__data__,Q=Vn(W,_);if(Q<0)return!1;var we=W.length-1;return Q==we?W.pop():Bi.call(W,Q,1),!0}function _s(_){var W=this.__data__,Q=Vn(W,_);return Q<0?void 0:W[Q][1]}function Aa(_){return Vn(this.__data__,_)>-1}function Fs(_,W){var Q=this.__data__,we=Vn(Q,_);return we<0?Q.push([_,W]):Q[we][1]=W,this}Fn.prototype.clear=Is,Fn.prototype.delete=Fo,Fn.prototype.get=_s,Fn.prototype.has=Aa,Fn.prototype.set=Fs;function Ar(_){var W=-1,Q=_?_.length:0;for(this.clear();++W<Q;){var we=_[W];this.set(we[0],we[1])}}function Fc(){this.__data__={hash:new Zn,map:new(Hi||Fn),string:new Zn}}function sn(_){return is(this,_).delete(_)}function zi(_){return is(this,_).get(_)}function mh(_){return is(this,_).has(_)}function wu(_,W){return is(this,_).set(_,W),this}Ar.prototype.clear=Fc,Ar.prototype.delete=sn,Ar.prototype.get=zi,Ar.prototype.has=mh,Ar.prototype.set=wu;function br(_){this.__data__=new Fn(_)}function Cu(){this.__data__=new Fn}function gl(_){return this.__data__.delete(_)}function Su(_){return this.__data__.get(_)}function kc(_){return this.__data__.has(_)}function Lc(_,W){var Q=this.__data__;if(Q instanceof Fn){var we=Q.__data__;if(!Hi||we.length<n-1)return we.push([_,W]),this;Q=this.__data__=new Ar(we)}return Q.set(_,W),this}br.prototype.clear=Cu,br.prototype.delete=gl,br.prototype.get=Su,br.prototype.has=kc,br.prototype.set=Lc;function Qr(_,W){var Q=lt(_)||je(_)?J(_.length,String):[],we=Q.length,vt=!!we;for(var it in _)Ee.call(_,it)&&!(vt&&(it=="length"||ni(it,we)))&&Q.push(it);return Q}function Xt(_,W,Q){var we=_[W];(!(Ee.call(_,W)&&Ge(we,Q))||Q===void 0&&!(W in _))&&(_[W]=Q)}function Vn(_,W){for(var Q=_.length;Q--;)if(Ge(_[Q][0],W))return Q;return-1}function ar(_,W){return _&&go(W,Ru(W),_)}function Gi(_,W,Q,we,vt,it,Tt){var Rt;if(we&&(Rt=it?we(_,vt,it,Tt):we(_)),Rt!==void 0)return Rt;if(!Ut(_))return _;var Jn=lt(_);if(Jn){if(Rt=Hc(_),!W)return Oa(_,Rt)}else{var Ht=bt(_),Gr=Ht==d||Ht==f;if(Rn(_))return ko(_,W);if(Ht==y||Ht==o||Gr&&!it){if(ke(_))return it?_:{};if(Rt=Ei(Gr?{}:_),!W)return rs(_,ar(Rt,_))}else{if(!K[Ht])return it?_:{};Rt=Da(_,Ht,Gi,W)}}Tt||(Tt=new br);var Tr=Tt.get(_);if(Tr)return Tr;if(Tt.set(_,Rt),!Jn)var an=Q?Bc(_):Ru(_);return ge(an||_,function(Pr,er){an&&(er=Pr,Pr=_[er]),Xt(Rt,er,Gi(Pr,W,Q,we,er,_,Tt))}),Rt}function vh(_){return Ut(_)?_n(_):{}}function pl(_,W,Q){var we=W(_);return lt(_)?we:ve(we,Q(_))}function xu(_){return Ze.call(_)}function Ta(_){if(!Ut(_)||_e(_))return!1;var W=Qn(_)||ke(_)?st:$;return W.test(ie(_))}function Pa(_){if(!q(_))return yi(_);var W=[];for(var Q in Object(_))Ee.call(_,Q)&&Q!="constructor"&&W.push(Q);return W}function ko(_,W){if(W)return _.slice();var Q=new _.constructor(_.length);return _.copy(Q),Q}function Jr(_){var W=new _.constructor(_.byteLength);return new mt(W).set(new mt(_)),W}function ei(_,W){var Q=W?Jr(_.buffer):_.buffer;return new _.constructor(Q,_.byteOffset,_.byteLength)}function fo(_,W,Q){var we=W?Q(Te(_),!0):Te(_);return de(we,me,new _.constructor)}function ti(_){var W=new _.constructor(_.source,G.exec(_));return W.lastIndex=_.lastIndex,W}function yn(_,W,Q){var we=W?Q(Ne(_),!0):Ne(_);return de(we,Oe,new _.constructor)}function Si(_){return Xn?Object(Xn.call(_)):{}}function Nc(_,W){var Q=W?Jr(_.buffer):_.buffer;return new _.constructor(Q,_.byteOffset,_.length)}function Oa(_,W){var Q=-1,we=_.length;for(W||(W=Array(we));++Q<we;)W[Q]=_[Q];return W}function go(_,W,Q,we){Q||(Q={});for(var vt=-1,it=W.length;++vt<it;){var Tt=W[vt],Rt=void 0;Xt(Q,Tt,Rt===void 0?_[Tt]:Rt)}return Q}function rs(_,W){return go(_,os(_),W)}function Bc(_){return pl(_,Ru,os)}function is(_,W){var Q=_.__data__;return wr(W)?Q[typeof W=="string"?"string":"hash"]:Q.map}function xi(_,W){var Q=Fe(_,W);return Ta(Q)?Q:void 0}var os=sr?dt(sr,Object):Ng,bt=xu;(ho&&bt(new ho(new ArrayBuffer(1)))!=O||Hi&&bt(new Hi)!=g||jt&&bt(jt.resolve())!=b||bi&&bt(new bi)!=C||Vi&&bt(new Vi)!=T)&&(bt=function(_){var W=Ze.call(_),Q=W==y?_.constructor:void 0,we=Q?ie(Q):void 0;if(we)switch(we){case wi:return O;case Os:return g;case Ra:return b;case dl:return C;case hl:return T}return W});function Hc(_){var W=_.length,Q=_.constructor(W);return W&&typeof _[0]=="string"&&Ee.call(_,"index")&&(Q.index=_.index,Q.input=_.input),Q}function Ei(_){return typeof _.constructor=="function"&&!q(_)?vh($t(_)):{}}function Da(_,W,Q,we){var vt=_.constructor;switch(W){case P:return Jr(_);case a:case l:return new vt(+_);case O:return ei(_,we);case D:case F:case L:case N:case M:case k:case B:case j:case z:return Nc(_,we);case g:return fo(_,we,Q);case m:case E:return new vt(_);case w:return ti(_);case C:return yn(_,we,Q);case A:return Si(_)}}function ni(_,W){return W=W??i,!!W&&(typeof _=="number"||Y.test(_))&&_>-1&&_%1==0&&_<W}function wr(_){var W=typeof _;return W=="string"||W=="number"||W=="symbol"||W=="boolean"?_!=="__proto__":_===null}function _e(_){return!!Be&&Be in _}function q(_){var W=_&&_.constructor,Q=typeof W=="function"&&W.prototype||rt;return _===Q}function ie(_){if(_!=null){try{return pt.call(_)}catch{}try{return _+""}catch{}}return""}function De(_){return Gi(_,!0,!0)}function Ge(_,W){return _===W||_!==_&&W!==W}function je(_){return Zt(_)&&Ee.call(_,"callee")&&(!Yn.call(_,"callee")||Ze.call(_)==o)}var lt=Array.isArray;function Ft(_){return _!=null&&Ma(_.length)&&!Qn(_)}function Zt(_){return Eu(_)&&Ft(_)}var Rn=yr||yh;function Qn(_){var W=Ut(_)?Ze.call(_):"";return W==d||W==f}function Ma(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=i}function Ut(_){var W=typeof _;return!!_&&(W=="object"||W=="function")}function Eu(_){return!!_&&typeof _=="object"}function Ru(_){return Ft(_)?Qr(_):Pa(_)}function Ng(){return[]}function yh(){return!1}e.exports=De}
vendor: 17,258 bytes, line 895
895)(Gy,Gy.exports)),Gy.exports}var jy={exports:{}};jy.exports;var jU;function Fie(){return jU||(jU=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",g="[object Error]",m="[object Function]",y="[object GeneratorFunction]",b="[object Map]",w="[object Number]",C="[object Null]",E="[object Object]",A="[object Promise]",T="[object Proxy]",P="[object RegExp]",O="[object Set]",D="[object String]",F="[object Symbol]",L="[object Undefined]",N="[object WeakMap]",M="[object ArrayBuffer]",k="[object DataView]",B="[object Float32Array]",j="[object Float64Array]",z="[object Int8Array]",H="[object Int16Array]",G="[object Int32Array]",$="[object Uint8Array]",Y="[object Uint8ClampedArray]",K="[object Uint16Array]",se="[object Uint32Array]",re=/[\\^$.*+?()[\]{}|]/g,ue=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,X={};X[B]=X[j]=X[z]=X[H]=X[G]=X[$]=X[Y]=X[K]=X[se]=!0,X[a]=X[l]=X[M]=X[d]=X[k]=X[f]=X[g]=X[m]=X[b]=X[w]=X[E]=X[P]=X[O]=X[D]=X[N]=!1;var be=typeof wo=="object"&&wo&&wo.Object===Object&&wo,me=typeof self=="object"&&self&&self.Object===Object&&self,Oe=be||me||Function("return this")(),ge=t&&!t.nodeType&&t,ve=ge&&!0&&e&&!e.nodeType&&e,de=ve&&ve.exports===ge,J=de&&be.process,Fe=(function(){try{return J&&J.binding&&J.binding("util")}catch{}})(),ke=Fe&&Fe.isTypedArray;function Te(_,W){for(var Q=-1,we=_==null?0:_.length,vt=0,it=[];++Q<we;){var Tt=_[Q];W(Tt,Q,_)&&(it[vt++]=Tt)}return it}function dt(_,W){for(var Q=-1,we=W.length,vt=_.length;++Q<we;)_[vt+Q]=W[Q];return _}function Ne(_,W){for(var Q=-1,we=_==null?0:_.length;++Q<we;)if(W(_[Q],Q,_))return!0;return!1}function xe(_,W){for(var Q=-1,we=Array(_);++Q<_;)we[Q]=W(Q);return we}function We(_){return function(W){return _(W)}}function rt(_,W){return _.has(W)}function Ke(_,W){return _?.[W]}function Be(_){var W=-1,Q=Array(_.size);return _.forEach(function(we,vt){Q[++W]=[vt,we]}),Q}function pt(_,W){return function(Q){return _(W(Q))}}function Ee(_){var W=-1,Q=Array(_.size);return _.forEach(function(we){Q[++W]=we}),Q}var Ze=Array.prototype,st=Function.prototype,tt=Object.prototype,qe=Oe["__core-js_shared__"],mt=st.toString,$t=tt.hasOwnProperty,_n=(function(){var _=/[^.]+$/.exec(qe&&qe.keys&&qe.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""})(),Yn=tt.toString,Bi=RegExp("^"+mt.call($t).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sr=de?Oe.Buffer:void 0,yr=Oe.Symbol,yi=Oe.Uint8Array,ho=tt.propertyIsEnumerable,Hi=Ze.splice,jt=yr?yr.toStringTag:void 0,bi=Object.getOwnPropertySymbols,Vi=sr?sr.isBuffer:void 0,qt=pt(Object.keys,Object),wi=os(Oe,"DataView"),Os=os(Oe,"Map"),Ra=os(Oe,"Promise"),dl=os(Oe,"Set"),hl=os(Oe,"WeakMap"),Ci=os(Object,"create"),Xn=ie(wi),Zn=ie(Os),vn=ie(Ra),Ds=ie(dl),bu=ie(hl),fl=yr?yr.prototype:void 0,Ms=fl?fl.valueOf:void 0;function Fn(_){var W=-1,Q=_==null?0:_.length;for(this.clear();++W<Q;){var we=_[W];this.set(we[0],we[1])}}function Is(){this.__data__=Ci?Ci(null):{},this.size=0}function Fo(_){var W=this.has(_)&&delete this.__data__[_];return this.size-=W?1:0,W}function _s(_){var W=this.__data__;if(Ci){var Q=W[_];return Q===r?void 0:Q}return $t.call(W,_)?W[_]:void 0}function Aa(_){var W=this.__data__;return Ci?W[_]!==void 0:$t.call(W,_)}function Fs(_,W){var Q=this.__data__;return this.size+=this.has(_)?0:1,Q[_]=Ci&&W===void 0?r:W,this}Fn.prototype.clear=Is,Fn.prototype.delete=Fo,Fn.prototype.get=_s,Fn.prototype.has=Aa,Fn.prototype.set=Fs;function Ar(_){var W=-1,Q=_==null?0:_.length;for(this.clear();++W<Q;){var we=_[W];this.set(we[0],we[1])}}function Fc(){this.__data__=[],this.size=0}function sn(_){var W=this.__data__,Q=ko(W,_);if(Q<0)return!1;var we=W.length-1;return Q==we?W.pop():Hi.call(W,Q,1),--this.size,!0}function zi(_){var W=this.__data__,Q=ko(W,_);return Q<0?void 0:W[Q][1]}function mh(_){return ko(this.__data__,_)>-1}function wu(_,W){var Q=this.__data__,we=ko(Q,_);return we<0?(++this.size,Q.push([_,W])):Q[we][1]=W,this}Ar.prototype.clear=Fc,Ar.prototype.delete=sn,Ar.prototype.get=zi,Ar.prototype.has=mh,Ar.prototype.set=wu;function br(_){var W=-1,Q=_==null?0:_.length;for(this.clear();++W<Q;){var we=_[W];this.set(we[0],we[1])}}function Cu(){this.size=0,this.__data__={hash:new Fn,map:new(Os||Ar),string:new Fn}}function gl(_){var W=xi(this,_).delete(_);return this.size-=W?1:0,W}function Su(_){return xi(this,_).get(_)}function kc(_){return xi(this,_).has(_)}function Lc(_,W){var Q=xi(this,_),we=Q.size;return Q.set(_,W),this.size+=Q.size==we?0:1,this}br.prototype.clear=Cu,br.prototype.delete=gl,br.prototype.get=Su,br.prototype.has=kc,br.prototype.set=Lc;function Qr(_){var W=-1,Q=_==null?0:_.length;for(this.__data__=new br;++W<Q;)this.add(_[W])}function Xt(_){return this.__data__.set(_,r),this}function Vn(_){return this.__data__.has(_)}Qr.prototype.add=Qr.prototype.push=Xt,Qr.prototype.has=Vn;function ar(_){var W=this.__data__=new Ar(_);this.size=W.size}function Gi(){this.__data__=new Ar,this.size=0}function vh(_){var W=this.__data__,Q=W.delete(_);return this.size=W.size,Q}function pl(_){return this.__data__.get(_)}function xu(_){return this.__data__.has(_)}function Ta(_,W){var Q=this.__data__;if(Q instanceof Ar){var we=Q.__data__;if(!Os||we.length<n-1)return we.push([_,W]),this.size=++Q.size,this;Q=this.__data__=new br(we)}return Q.set(_,W),this.size=Q.size,this}ar.prototype.clear=Gi,ar.prototype.delete=vh,ar.prototype.get=pl,ar.prototype.has=xu,ar.prototype.set=Ta;function Pa(_,W){var Q=je(_),we=!Q&&Ge(_),vt=!Q&&!we&&Ft(_),it=!Q&&!we&&!vt&&Eu(_),Tt=Q||we||vt||it,Rt=Tt?xe(_.length,String):[],Jn=Rt.length;for(var Ht in _)$t.call(_,Ht)&&!(Tt&&(Ht=="length"||vt&&(Ht=="offset"||Ht=="parent")||it&&(Ht=="buffer"||Ht=="byteLength"||Ht=="byteOffset")||Da(Ht,Jn)))&&Rt.push(Ht);return Rt}function ko(_,W){for(var Q=_.length;Q--;)if(De(_[Q][0],W))return Q;return-1}function Jr(_,W,Q){var we=W(_);return je(_)?we:dt(we,Q(_))}function ei(_){return _==null?_===void 0?L:C:jt&&jt in Object(_)?bt(_):q(_)}function fo(_){return Ut(_)&&ei(_)==a}function ti(_,W,Q,we,vt){return _===W?!0:_==null||W==null||!Ut(_)&&!Ut(W)?_!==_&&W!==W:yn(_,W,Q,we,ti,vt)}function yn(_,W,Q,we,vt,it){var Tt=je(_),Rt=je(W),Jn=Tt?l:Ei(_),Ht=Rt?l:Ei(W);Jn=Jn==a?E:Jn,Ht=Ht==a?E:Ht;var Gr=Jn==E,Tr=Ht==E,an=Jn==Ht;if(an&&Ft(_)){if(!Ft(W))return!1;Tt=!0,Gr=!1}if(an&&!Gr)return it||(it=new ar),Tt||Eu(_)?go(_,W,Q,we,vt,it):rs(_,W,Jn,Q,we,vt,it);if(!(Q&i)){var Pr=Gr&&$t.call(_,"__wrapped__"),er=Tr&&$t.call(W,"__wrapped__");if(Pr||er){var Ri=Pr?_.value():_,ss=er?W.value():W;return it||(it=new ar),vt(Ri,ss,Q,we,it)}}return an?(it||(it=new ar),Bc(_,W,Q,we,vt,it)):!1}function Si(_){if(!Ma(_)||wr(_))return!1;var W=Rn(_)?Bi:ue;return W.test(ie(_))}function Nc(_){return Ut(_)&&Qn(_.length)&&!!X[ei(_)]}function Oa(_){if(!_e(_))return qt(_);var W=[];for(var Q in Object(_))$t.call(_,Q)&&Q!="constructor"&&W.push(Q);return W}function go(_,W,Q,we,vt,it){var Tt=Q&i,Rt=_.length,Jn=W.length;if(Rt!=Jn&&!(Tt&&Jn>Rt))return!1;var Ht=it.get(_);if(Ht&&it.get(W))return Ht==W;var Gr=-1,Tr=!0,an=Q&o?new Qr:void 0;for(it.set(_,W),it.set(W,_);++Gr<Rt;){var Pr=_[Gr],er=W[Gr];if(we)var Ri=Tt?we(er,Pr,Gr,W,_,it):we(Pr,er,Gr,_,W,it);if(Ri!==void 0){if(Ri)continue;Tr=!1;break}if(an){if(!Ne(W,function(ss,ks){if(!rt(an,ks)&&(Pr===ss||vt(Pr,ss,Q,we,it)))return an.push(ks)})){Tr=!1;break}}else if(!(Pr===er||vt(Pr,er,Q,we,it))){Tr=!1;break}}return it.delete(_),it.delete(W),Tr}function rs(_,W,Q,we,vt,it,Tt){switch(Q){case k:if(_.byteLength!=W.byteLength||_.byteOffset!=W.byteOffset)return!1;_=_.buffer,W=W.buffer;case M:return!(_.byteLength!=W.byteLength||!it(new yi(_),new yi(W)));case d:case f:case w:return De(+_,+W);case g:return _.name==W.name&&_.message==W.message;case P:case D:return _==W+"";case b:var Rt=Be;case O:var Jn=we&i;if(Rt||(Rt=Ee),_.size!=W.size&&!Jn)return!1;var Ht=Tt.get(_);if(Ht)return Ht==W;we|=o,Tt.set(_,W);var Gr=go(Rt(_),Rt(W),we,vt,it,Tt);return Tt.delete(_),Gr;case F:if(Ms)return Ms.call(_)==Ms.call(W)}return!1}function Bc(_,W,Q,we,vt,it){var Tt=Q&i,Rt=is(_),Jn=Rt.length,Ht=is(W),Gr=Ht.length;if(Jn!=Gr&&!Tt)return!1;for(var Tr=Jn;Tr--;){var an=Rt[Tr];if(!(Tt?an in W:$t.call(W,an)))return!1}var Pr=it.get(_);if(Pr&&it.get(W))return Pr==W;var er=!0;it.set(_,W),it.set(W,_);for(var Ri=Tt;++Tr<Jn;){an=Rt[Tr];var ss=_[an],ks=W[an];if(we)var pv=Tt?we(ks,ss,an,W,_,it):we(ss,ks,an,_,W,it);if(!(pv===void 0?ss===ks||vt(ss,ks,Q,we,it):pv)){er=!1;break}Ri||(Ri=an=="constructor")}if(er&&!Ri){var Au=_.constructor,Tu=W.constructor;Au!=Tu&&"constructor"in _&&"constructor"in W&&!(typeof Au=="function"&&Au instanceof Au&&typeof Tu=="function"&&Tu instanceof Tu)&&(er=!1)}return it.delete(_),it.delete(W),er}function is(_){return Jr(_,Ru,Hc)}function xi(_,W){var Q=_.__data__;return ni(W)?Q[typeof W=="string"?"string":"hash"]:Q.map}function os(_,W){var Q=Ke(_,W);return Si(Q)?Q:void 0}function bt(_){var W=$t.call(_,jt),Q=_[jt];try{_[jt]=void 0;var we=!0}catch{}var vt=Yn.call(_);return we&&(W?_[jt]=Q:delete _[jt]),vt}var Hc=bi?function(_){return _==null?[]:(_=Object(_),Te(bi(_),function(W){return ho.call(_,W)}))}:Ng,Ei=ei;(wi&&Ei(new wi(new ArrayBuffer(1)))!=k||Os&&Ei(new Os)!=b||Ra&&Ei(Ra.resolve())!=A||dl&&Ei(new dl)!=O||hl&&Ei(new hl)!=N)&&(Ei=function(_){var W=ei(_),Q=W==E?_.constructor:void 0,we=Q?ie(Q):"";if(we)switch(we){case Xn:return k;case Zn:return b;case vn:return A;case Ds:return O;case bu:return N}return W});function Da(_,W){return W=W??s,!!W&&(typeof _=="number"||U.test(_))&&_>-1&&_%1==0&&_<W}function ni(_){var W=typeof _;return W=="string"||W=="number"||W=="symbol"||W=="boolean"?_!=="__proto__":_===null}function wr(_){return!!_n&&_n in _}function _e(_){var W=_&&_.constructor,Q=typeof W=="function"&&W.prototype||tt;return _===Q}function q(_){return Yn.call(_)}function ie(_){if(_!=null){try{return mt.call(_)}catch{}try{return _+""}catch{}}return""}function De(_,W){return _===W||_!==_&&W!==W}var Ge=fo((function(){return arguments})())?fo:function(_){return Ut(_)&&$t.call(_,"callee")&&!ho.call(_,"callee")},je=Array.isArray;function lt(_){return _!=null&&Qn(_.length)&&!Rn(_)}var Ft=Vi||yh;function Zt(_,W){return ti(_,W)}function Rn(_){if(!Ma(_))return!1;var W=ei(_);return W==m||W==y||W==u||W==T}function Qn(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=s}function Ma(_){var W=typeof _;return _!=null&&(W=="object"||W=="function")}function Ut(_){return _!=null&&typeof _=="object"}var Eu=ke?We(ke):Nc;function Ru(_){return lt(_)?Pa(_):Oa(_)}function Ng(){return[]}function yh(){return!1}e.exports=Zt})(jy,jy.exports)),jy.exports}var dS={},UU;function c8e(){if(UU)return dS;UU=1,Object.defineProperty(dS,"__esModule",{value:!0});const e=_ie(),t=Fie();var n;return(function(r){function i(l={},u={},d=!1){typeof l!="object"&&(l={}),typeof u!="object"&&(u={});let f=e(u);d||(f=Object.keys(f).reduce((g,m)=>(f[m]!=null&&(g[m]=f[m]),g),{}));for(const g in l)l[g]!==void 0&&u[g]===void 0&&(f[g]=l[g]);return Object.keys(f).length>0?f:void 0}r.compose=i;function o(l={},u={}){typeof l!="object"&&(l={}),typeof u!="object"&&(u={});const d=Object.keys(l).concat(Object.keys(u)).reduce((f,g)=>(t(l[g],u[g])||(f[g]=u[g]===void 0?null:u[g]),f),{});return Object.keys(d).length>0?d:void 0}r.diff=o;function s(l={},u={}){l=l||{};const d=Object.keys(u).reduce((f,g)=>(u[g]!==l[g]&&l[g]!==void 0&&(f[g]=u[g]),f),{});return Object.keys(l).reduce((f,g)=>(l[g]!==u[g]&&u[g]===void 0&&(f[g]=null),f),d)}r.invert=s;function a(l,u,d=!1){if(typeof l!="object")return u;if(typeof u!="object")return;if(!d)return u;const f=Object.keys(u).reduce((g,m)=>(l[m]===void 0&&(g[m]=u[m]),g),{});return Object.keys(f).length>0?f:void 0}r.transform=a})(n||(n={})),dS.default=n,dS}var hS={},WU;function kie(){if(WU)return hS;WU=1,Object.defineProperty(hS,"__esModule",{value:!0});var e;return(function(t){function n(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}t.length=n})(e||(e={})),hS.default=e,hS}var fS={},$U;function d8e(){if($U)return fS;$U=1,Object.defineProperty(fS,"__esModule",{value:!0});const e=kie();class t{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const o=this.offset,s=e.default.length(i);if(r>=s-o?(r=s-o,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const a={};return i.attributes&&(a.attributes=i.attributes),typeof i.retain=="number"?a.retain=r:typeof i.retain=="object"&&i.retain!==null?a.retain=i.retain:typeof i.insert=="string"?a.insert=i.insert.substr(o,r):a.insert=i.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,o=this.next(),s=this.ops.slice(this.index);return this.offset=r,this.index=i,[o].concat(s)}}else return[]}}return fS.default=t,fS}var qU;function h8e(){return qU||(qU=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=u8e(),r=_ie(),i=Fie(),o=c8e();t.AttributeMap=o.default;const s=kie();t.Op=s.default;const a=d8e();t.OpIterator=a.default;const l="\0",u=(f,g)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);const m=Object.keys(f)[0];if(!m||m!==Object.keys(g)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(g)[0]}`);return[m,f[m],g[m]]};class d{constructor(g){Array.isArray(g)?this.ops=g:g!=null&&Array.isArray(g.ops)?this.ops=g.ops:this.ops=[]}static registerEmbed(g,m){this.handlers[g]=m}static unregisterEmbed(g){delete this.handlers[g]}static getHandler(g){const m=this.handlers[g];if(!m)throw new Error(`no handlers for embed type "${g}"`);return m}insert(g,m){const y={};return typeof g=="string"&&g.length===0?this:(y.insert=g,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y))}delete(g){return g<=0?this:this.push({delete:g})}retain(g,m){if(typeof g=="number"&&g<=0)return this;const y={retain:g};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y)}push(g){let m=this.ops.length,y=this.ops[m-1];if(g=r(g),typeof y=="object"){if(typeof g.delete=="number"&&typeof y.delete=="number")return this.ops[m-1]={delete:y.delete+g.delete},this;if(typeof y.delete=="number"&&g.insert!=null&&(m-=1,y=this.ops[m-1],typeof y!="object"))return this.ops.unshift(g),this;if(i(g.attributes,y.attributes)){if(typeof g.insert=="string"&&typeof y.insert=="string")return this.ops[m-1]={insert:y.insert+g.insert},typeof g.attributes=="object"&&(this.ops[m-1].attributes=g.attributes),this;if(typeof g.retain=="number"&&typeof y.retain=="number")return this.ops[m-1]={retain:y.retain+g.retain},typeof g.attributes=="object"&&(this.ops[m-1].attributes=g.attributes),this}}return m===this.ops.length?this.ops.push(g):this.ops.splice(m,0,g),this}chop(){const g=this.ops[this.ops.length-1];return g&&typeof g.retain=="number"&&!g.attributes&&this.ops.pop(),this}filter(g){return this.ops.filter(g)}forEach(g){this.ops.forEach(g)}map(g){return this.ops.map(g)}partition(g){const m=[],y=[];return this.forEach(b=>{(g(b)?m:y).push(b)}),[m,y]}reduce(g,m){return this.ops.reduce(g,m)}changeLength(){return this.reduce((g,m)=>m.insert?g+s.default.length(m):m.delete?g-m.delete:g,0)}length(){return this.reduce((g,m)=>g+s.default.length(m),0)}slice(g=0,m=1/0){const y=[],b=new a.default(this.ops);let w=0;for(;w<m&&b.hasNext();){let C;w<g?C=b.next(g-w):(C=b.next(m-w),y.push(C)),w+=s.default.length(C)}return new d(y)}compose(g){const m=new a.default(this.ops),y=new a.default(g.ops),b=[],w=y.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let E=w.retain;for(;m.peekType()==="insert"&&m.peekLength()<=E;)E-=m.peekLength(),b.push(m.next());w.retain-E>0&&y.next(w.retain-E)}const C=new d(b);for(;m.hasNext()||y.hasNext();)if(y.peekType()==="insert")C.push(y.next());else if(m.peekType()==="delete")C.push(m.next());else{const E=Math.min(m.peekLength(),y.peekLength()),A=m.next(E),T=y.next(E);if(T.retain){const P={};if(typeof A.retain=="number")P.retain=typeof T.retain=="number"?E:T.retain;else if(typeof T.retain=="number")A.retain==null?P.insert=A.insert:P.retain=A.retain;else{const D=A.retain==null?"insert":"retain",[F,L,N]=u(A[D],T.retain),M=d.getHandler(F);P[D]={[F]:M.compose(L,N,D==="retain")}}const O=o.default.compose(A.attributes,T.attributes,typeof A.retain=="number");if(O&&(P.attributes=O),C.push(P),!y.hasNext()&&i(C.ops[C.ops.length-1],P)){const D=new d(m.rest());return C.concat(D).chop()}}else typeof T.delete=="number"&&(typeof A.retain=="number"||typeof A.retain=="object"&&A.retain!==null)&&C.push(T)}return C.chop()}concat(g){const m=new d(this.ops.slice());return g.ops.length>0&&(m.push(g.ops[0]),m.ops=m.ops.concat(g.ops.slice(1))),m}
895diff(g,m){if(this.ops===g.ops)return new d;const y=[this,g].map(A=>A.map(T=>{if(T.insert!=null)return typeof T.insert=="string"?T.insert:l;const P=A===g?"on":"with";throw new Error("diff() called "+P+" non-document")}).join("")),b=new d,w=n(y[0],y[1],m,!0),C=new a.default(this.ops),E=new a.default(g.ops);return w.forEach(A=>{let T=A[1].length;for(;T>0;){let P=0;switch(A[0]){case n.INSERT:P=Math.min(E.peekLength(),T),b.push(E.next(P));break;case n.DELETE:P=Math.min(T,C.peekLength()),C.next(P),b.delete(P);break;case n.EQUAL:P=Math.min(C.peekLength(),E.peekLength(),T);const O=C.next(P),D=E.next(P);i(O.insert,D.insert)?b.retain(P,o.default.diff(O.attributes,D.attributes)):b.push(D).delete(P);break}T-=P}}),b.chop()}eachLine(g,m=` 896`){const y=new a.default(this.ops);let b=new d,w=0;for(;y.hasNext();){if(y.peekType()!=="insert")return;const C=y.peek(),E=s.default.length(C)-y.peekLength(),A=typeof C.insert=="string"?C.insert.indexOf(m,E)-E:-1;if(A<0)b.push(y.next());else if(A>0)b.push(y.next(A));else{if(g(b,y.next(1).attributes||{},w)===!1)return;w+=1,b=new d}}b.length()>0&&g(b,{},w)}invert(g){const m=new d;return this.reduce((y,b)=>{if(b.insert)m.delete(s.default.length(b));else{if(typeof b.retain=="number"&&b.attributes==null)return m.retain(b.retain),y+b.retain;if(b.delete||typeof b.retain=="number"){const w=b.delete||b.retain;return g.slice(y,y+w).forEach(E=>{b.delete?m.push(E):b.retain&&b.attributes&&m.retain(s.default.length(E),o.default.invert(b.attributes,E.attributes))}),y+w}else if(typeof b.retain=="object"&&b.retain!==null){const w=g.slice(y,y+1),C=new a.default(w.ops).next(),[E,A,T]=u(b.retain,C.insert),P=d.getHandler(E);return m.retain({[E]:P.invert(A,T)},o.default.invert(b.attributes,C.attributes)),y+1}}return y},0),m.chop()}transform(g,m=!1){if(m=!!m,typeof g=="number")return this.transformPosition(g,m);const y=g,b=new a.default(this.ops),w=new a.default(y.ops),C=new d;for(;b.hasNext()||w.hasNext();)if(b.peekType()==="insert"&&(m||w.peekType()!=="insert"))C.retain(s.default.length(b.next()));else if(w.peekType()==="insert")C.push(w.next());else{const E=Math.min(b.peekLength(),w.peekLength()),A=b.next(E),T=w.next(E);if(A.delete)continue;if(T.delete)C.push(T);else{const P=A.retain,O=T.retain;let D=typeof O=="object"&&O!==null?O:E;if(typeof P=="object"&&P!==null&&typeof O=="object"&&O!==null){const F=Object.keys(P)[0];if(F===Object.keys(O)[0]){const L=d.getHandler(F);L&&(D={[F]:L.transform(P[F],O[F],m)})}}C.retain(D,o.default.transform(A.attributes,T.attributes,m))}}return C.chop()}transformPosition(g,m=!1){m=!!m;const y=new a.default(this.ops);let b=0;for(;y.hasNext()&&b<=g;){const w=y.peekLength(),C=y.peekType();if(y.next(),C==="delete"){g-=Math.min(w,g-b);continue}else C==="insert"&&(b<g||!m)&&(g+=w);b+=w}return g}}d.Op=s.default,d.OpIterator=a.default,d.AttributeMap=o.default,d.handlers={},t.default=d,e.exports=d,e.exports.default=d}
vendor: 18,928 bytes, lines 896-901
896)(cS,cS.exports)),cS.exports}var aa=h8e();const nt=fg(aa);class ol extends As{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}ol.blotName="break";ol.tagName="BR";let Qa=class extends cx{};const f8e={"&":"&","<":"<",">":">",'"':""","'":"'"};function cR(e){return e.replace(/[&<>"']/g,t=>f8e[t])}class bo extends uB{static allowedChildren=[bo,ol,As,Qa];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,n){const r=bo.order.indexOf(t),i=bo.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}formatAt(t,n,r,i){if(bo.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ot.BLOT)){const o=this.isolate(t,n);i&&o.wrap(r,i)}else super.formatAt(t,n,r,i)}optimize(t){if(super.optimize(t),this.parent instanceof bo&&bo.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}const KU=1;class Li extends jb{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=Lie(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,r,i){n<=0||(this.scroll.query(r,ot.BLOCK)?t+n===this.length()&&this.format(r,i):super.formatAt(t,Math.min(n,this.length()-t-1),r,i),this.cache={})}insertAt(t,n,r){if(r!=null){super.insertAt(t,n,r),this.cache={};return}if(n.length===0)return;const i=n.split(` 897`),o=i.shift();o.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let s=this;i.reduce((a,l)=>(s=s.split(a,!0),s.insertAt(0,l),l.length),t+o.length)}insertBefore(t,n){const{head:r}=this.children;super.insertBefore(t,n),r instanceof ol&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+KU),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(t===0||t>=this.length()-KU)){const i=this.clone();return t===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const r=super.split(t,n);return this.cache={},r}}Li.blotName="block";Li.tagName="P";Li.defaultChild=ol;Li.allowedChildren=[ol,bo,As,Qa];class ia extends As{attach(){super.attach(),this.attributes=new lR(this.domNode)}delta(){return new nt().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,n){const r=this.scroll.query(t,ot.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(t,n,r,i){this.format(r,i)}insertAt(t,n,r){if(r!=null){super.insertAt(t,n,r);return}const i=n.split(` 898`),o=i.pop(),s=i.map(l=>{const u=this.scroll.create(Li.blotName);return u.insertAt(0,l),u}),a=this.split(t);s.forEach(l=>{this.parent.insertBefore(l,a)}),o&&this.parent.insertBefore(this.scroll.create("text",o),a)}}ia.scope=ot.BLOCK_BLOT;function Lie(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.descendants(Qi).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),ea(r,{},t)),new nt).insert(` 899`,ea(e))}function ea(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e==null||("formats"in e&&typeof e.formats=="function"&&(t={...t,...e.formats()},n&&delete t["code-token"]),e.parent==null||e.parent.statics.blotName==="scroll"||e.parent.statics.scope!==e.statics.scope)?t:ea(e.parent,t,n)}let dR=class tf extends As{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(t,n,r){super(t,n),this.selection=r,this.textNode=document.createTextNode(tf.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,n){if(this.savedLength!==0){super.format(t,n);return}let r=this,i=0;for(;r!=null&&r.statics.scope!==ot.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=tf.CONTENTS.length,r.optimize(),r.formatAt(i,tf.CONTENTS.length,t,n),this.savedLength=0)}index(t,n){return t===this.textNode?0:super.index(t,n)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const n=this.prev instanceof Qa?this.prev:null,r=n?n.length():0,i=this.next instanceof Qa?this.next:null,o=i?i.text:"",{textNode:s}=this,a=s.data.split(tf.CONTENTS).join("");s.data=tf.CONTENTS;let l;if(n)l=n,(a||i)&&(n.insertAt(n.length(),a+o),i&&i.remove());else if(i)l=i,i.insertAt(0,a);else{const u=document.createTextNode(a);l=this.scroll.create(u),this.parent.insertBefore(l,this)}if(this.remove(),t){const u=(g,m)=>n&&g===n.domNode?m:g===s?r+m-1:i&&g===i.domNode?r+a.length+m:null,d=u(t.start.node,t.start.offset),f=u(t.end.node,t.end.offset);if(d!==null&&f!==null)return{startNode:l.domNode,startOffset:d,endNode:l.domNode,endOffset:f}}return null}update(t,n){if(t.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(n.range=r)}}optimize(t){super.optimize(t);let{parent:n}=this;for(;n;){if(n.domNode.tagName==="A"){this.savedLength=tf.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}};var bD={exports:{}},YU;function g8e(){return YU||(YU=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function o(l,u,d,f,g){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new i(d,f||l,g),y=n?n+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],m]:l._events[y].push(m):(l._events[y]=m,l._eventsCount++),l}function s(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)t.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},a.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var g=0,m=f.length,y=new Array(m);g<m;g++)y[g]=f[g].fn;return y},a.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},a.prototype.emit=function(u,d,f,g,m,y){var b=n?n+u:u;if(!this._events[b])return!1;var w=this._events[b],C=arguments.length,E,A;if(w.fn){switch(w.once&&this.removeListener(u,w.fn,void 0,!0),C){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,d),!0;case 3:return w.fn.call(w.context,d,f),!0;case 4:return w.fn.call(w.context,d,f,g),!0;case 5:return w.fn.call(w.context,d,f,g,m),!0;case 6:return w.fn.call(w.context,d,f,g,m,y),!0}for(A=1,E=new Array(C-1);A<C;A++)E[A-1]=arguments[A];w.fn.apply(w.context,E)}else{var T=w.length,P;for(A=0;A<T;A++)switch(w[A].once&&this.removeListener(u,w[A].fn,void 0,!0),C){case 1:w[A].fn.call(w[A].context);break;case 2:w[A].fn.call(w[A].context,d);break;case 3:w[A].fn.call(w[A].context,d,f);break;case 4:w[A].fn.call(w[A].context,d,f,g);break;default:if(!E)for(P=1,E=new Array(C-1);P<C;P++)E[P-1]=arguments[P];w[A].fn.apply(w[A].context,E)}}return!0},a.prototype.on=function(u,d,f){return o(this,u,d,f,!1)},a.prototype.once=function(u,d,f){return o(this,u,d,f,!0)},a.prototype.removeListener=function(u,d,f,g){var m=n?n+u:u;if(!this._events[m])return this;if(!d)return s(this,m),this;var y=this._events[m];if(y.fn)y.fn===d&&(!g||y.once)&&(!f||y.context===f)&&s(this,m);else{for(var b=0,w=[],C=y.length;b<C;b++)(y[b].fn!==d||g&&!y[b].once||f&&y[b].context!==f)&&w.push(y[b]);w.length?this._events[m]=w.length===1?w[0]:w:s(this,m)}return this},a.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&s(this,d)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(bD)),bD.exports}var p8e=g8e();const Nie=fg(p8e),GF=new WeakMap,jF=["error","warn","log","info"];let UF="warn";function Bie(e){if(UF&&jF.indexOf(e)<=jF.indexOf(UF)){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console[e](...n)}}function Tc(e){return jF.reduce((t,n)=>(t[n]=Bie.bind(console,n,e),t),{})}Tc.level=e=>{UF=e};Bie.level=Tc.level;const wD=Tc("quill:events"),m8e=["selectionchange","mousedown","mouseup","click"];m8e.forEach(e=>{document.addEventListener(e,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const o=GF.get(i);o&&o.emitter&&o.emitter.handleDOM(...n)})})});class et extends Nie{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",wD.error)}emit(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wD.log.call(wD,...n),super.emit(...n)}handleDOM(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(this.domListeners[t.type]||[]).forEach(o=>{let{node:s,handler:a}=o;(t.target===s||s.contains(t.target))&&a(t,...r)})}listenDOM(t,n,r){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:n,handler:r})}}const CD=Tc("quill:selection");class eg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=n}}class v8e{constructor(t,n){this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new eg(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,et.sources.USER),1)}),this.emitter.on(et.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(et.events.SCROLL_UPDATE,(i,o)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const s=o.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(s?et.sources.SILENT:i)}catch{}})}),this.emitter.on(et.events.SCROLL_OPTIMIZE,(r,i)=>{if(i.range){const{startNode:o,startOffset:s,endNode:a,endOffset:l}=i.range;this.setNativeRange(o,s,a,l),this.update(et.sources.SILENT)}}),this.update(et.sources.SILENT)}handleComposition(){this.emitter.on(et.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(et.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(et.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,n){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(t,ot.BLOCK))){if(r.start.node!==this.cursor.textNode){const i=this.scroll.find(r.start.node,!1);if(i==null)return;if(i instanceof Qi){const o=i.split(r.start.offset);i.parent.insertBefore(this.cursor,o)}else i.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(t,n),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();t=Math.min(t,r-1),n=Math.min(t+n,r-1)-t;let i,[o,s]=this.scroll.leaf(t);if(o==null)return null;if(n>0&&s===o.length()){const[d]=this.scroll.leaf(t+1);if(d){const[f]=this.scroll.line(t),[g]=this.scroll.line(t+1);f===g&&(o=d,s=0)}}[i,s]=o.position(s,!0);const a=document.createRange();if(n>0)return a.setStart(i,s),[o,s]=this.scroll.leaf(t+n),o==null?null:([i,s]=o.position(s,!0),a.setEnd(i,s),a.getBoundingClientRect());let l="left",u;if(i instanceof Text){if(!i.data.length)return null;s<i.data.length?(a.setStart(i,s),a.setEnd(i,s+1)):(a.setStart(i,s-1),a.setEnd(i,s),l="right"),u=a.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;u=o.domNode.getBoundingClientRect(),s>0&&(l="right")}return{bottom:u.top+u.height,height:u.height,left:u[l],right:u[l],top:u.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const n=t.getRangeAt(0);if(n==null)return null;const r=this.normalizeNative(n);return CD.info("getNativeRange",r),r}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const n=this.getNativeRange();return n==null?[null,null]:[this.normalizedToRange(n),n]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&SD(this.root,document.activeElement)}normalizedToRange(t){const n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);const r=n.map(s=>{const[a,l]=s,u=this.scroll.find(a,!0),d=u.offset(this.scroll);return l===0?d:u instanceof Qi?d+u.index(a,l):d+u.length()}),i=Math.min(Math.max(...r),this.scroll.length()-1),o=Math.min(i,...r);return new eg(o,i-o)}normalizeNative(t){if(!SD(this.root,t.startContainer)||!t.collapsed&&!SD(this.root,t.endContainer))return null;const n={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[n.start,n.end].forEach(r=>{let{node:i,offset:o}=r;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>o)i=i.childNodes[o],o=0;else if(i.childNodes.length===o)i=i.lastChild,i instanceof Text?o=i.data.length:i.childNodes.length>0?o=i.childNodes.length:o=i.childNodes.length+1;else break;r.node=i,r.offset=o}),n}rangeToNative(t){const n=this.scroll.length(),r=(i,o)=>{i=Math.min(n-1,i);const[s,a]=this.scroll.leaf(i);return s?s.position(a,o):[null,-1]};return[...r(t.index,!1),...r(t.index+t.length,!0)]}setNativeRange(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(CD.info("setNativeRange",t,n,r,i),t!=null&&(this.root.parentNode==null||t.parentNode==null||r.parentNode==null))return;const s=document.getSelection();if(s!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(a==null||o||t!==a.startContainer||n!==a.startOffset||r!==a.endContainer||i!==a.endOffset){t instanceof Element&&t.tagName==="BR"&&(n=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),r instanceof Element&&r.tagName==="BR"&&(i=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const l=document.createRange();l.setStart(t,n),l.setEnd(r,i),s.removeAllRanges(),s.addRange(l)}}else s.removeAllRanges(),this.root.blur()}setRange(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:et.sources.API;if(typeof n=="string"&&(r=n,n=!1),CD.info("setRange",t),t!=null){const i=this.rangeToNative(t);this.setNativeRange(...i,n)}else this.setNativeRange(null);this.update(r)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:et.sources.USER;const n=this.lastRange,[r,i]=this.getRange();if(this.lastRange=r,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!Ad(n,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}const o=[et.events.SELECTION_CHANGE,sm(this.lastRange),sm(n),t];this.emitter.emit(et.events.EDITOR_CHANGE,...o),t!==et.sources.SILENT&&this.emitter.emit(...o)}}}function SD(e,t){try{t.parentNode}catch{return!1}return e.contains(t)}const y8e=/^[ -~]*$/;class b8e{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let n=this.scroll.length();this.scroll.batchStart();const r=XU(t),i=new nt;return C8e(r.ops.slice()).reduce((s,a)=>{const l=aa.Op.length(a);let u=a.attributes||{},d=!1,f=!1;if(a.insert!=null){if(i.retain(l),typeof a.insert=="string"){const y=a.insert;f=!y.endsWith(` 900`)&&(n<=s||!!this.scroll.descendant(ia,s)[0]),this.scroll.insertAt(s,y);const[b,w]=this.scroll.line(s);let C=Vd({},ea(b));if(b instanceof Li){const[E]=b.descendant(Qi,w);E&&(C=Vd(C,ea(E)))}u=aa.AttributeMap.diff(C,u)||{}}else if(typeof a.insert=="object"){const y=Object.keys(a.insert)[0];if(y==null)return s;const b=this.scroll.query(y,ot.INLINE)!=null;if(b)(n<=s||this.scroll.descendant(ia,s)[0])&&(f=!0);else if(s>0){const[w,C]=this.scroll.descendant(Qi,s-1);w instanceof Qa?w.value()[C]!==` 901`&&(d=!0):w instanceof As&&w.statics.scope===ot.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(s,y,a.insert[y]),b){const[w]=this.scroll.descendant(Qi,s);if(w){const C=Vd({},ea(w));u=aa.AttributeMap.diff(C,u)||{}}}}n+=l}else if(i.push(a),a.retain!==null&&typeof a.retain=="object"){const y=Object.keys(a.retain)[0];if(y==null)return s;this.scroll.updateEmbedAt(s,y,a.retain[y])}Object.keys(u).forEach(y=>{this.scroll.formatAt(s,l,y,u[y])});const g=d?1:0,m=f?1:0;return n+=g+m,i.retain(g),i.delete(m),s+l+g+m},0),i.reduce((s,a)=>typeof a.delete=="number"?(this.scroll.deleteAt(s,a.delete),s):s+aa.Op.length(a),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(t,n){return this.scroll.deleteAt(t,n),this.update(new nt().retain(t).delete(n))}formatLine(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
901this.scroll.update(),Object.keys(r).forEach(o=>{this.scroll.lines(t,Math.max(n,1)).forEach(s=>{s.format(o,r[o])})}),this.scroll.optimize();const i=new nt().retain(t).retain(n,sm(r));return this.update(i)}formatText(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(o=>{this.scroll.formatAt(t,n,o,r[o])});const i=new nt().retain(t).retain(n,sm(r));return this.update(i)}getContents(t,n){return this.delta.slice(t,t+n)}getDelta(){return this.scroll.lines().reduce((t,n)=>t.concat(n.delta()),new nt)}getFormat(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],i=[];n===0?this.scroll.path(t).forEach(a=>{const[l]=a;l instanceof Li?r.push(l):l instanceof Qi&&i.push(l)}):(r=this.scroll.lines(t,n),i=this.scroll.descendants(Qi,t,n));const[o,s]=[r,i].map(a=>{const l=a.shift();if(l==null)return{};let u=ea(l);for(;Object.keys(u).length>0;){const d=a.shift();if(d==null)return u;u=w8e(ea(d),u)}return u});return{...o,...s}}getHTML(t,n){const[r,i]=this.scroll.line(t);if(r){const o=r.length();return r.length()>=i+n&&!(i===0&&n===o)?Ub(r,i,n,!0):Ub(this.scroll,t,n,!0)}return""}getText(t,n){return this.getContents(t,n).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(t,n){const r=XU(n),i=new nt().retain(t).concat(r);return this.scroll.insertContents(t,r),this.update(i)}insertEmbed(t,n,r){return this.scroll.insertAt(t,n,r),this.update(new nt().retain(t).insert({[n]:r}))}insertText(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n=n.replace(/\r\n/g,` 902`).replace(/\r/g,` 903`),this.scroll.insertAt(t,n),Object.keys(r).forEach(i=>{this.scroll.formatAt(t,n.length,i,r[i])}),this.update(new nt().retain(t).insert(n,sm(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if(t?.statics.blotName!==Li.blotName)return!1;const n=t;return n.children.length>1?!1:n.children.head instanceof ol}removeFormat(t,n){const r=this.getText(t,n),[i,o]=this.scroll.line(t+n);let s=0,a=new nt;i!=null&&(s=i.length()-o,a=i.delta().slice(o,o+s-1).insert(` 904`));const u=this.getContents(t,n+s).diff(new nt().insert(r).concat(a)),d=new nt().retain(t).concat(u);return this.applyDelta(d)}update(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(n.length===1&&n[0].type==="characterData"&&n[0].target.data.match(y8e)&&this.scroll.find(n[0].target)){const o=this.scroll.find(n[0].target),s=ea(o),a=o.offset(this.scroll),l=n[0].oldValue.replace(dR.CONTENTS,""),u=new nt().insert(l),d=new nt().insert(o.value()),f=r&&{oldRange:ZU(r.oldRange,-a),newRange:ZU(r.newRange,-a)};t=new nt().retain(a).concat(u.diff(d,f)).reduce((m,y)=>y.insert?m.insert(y.insert,s):m.push(y),new nt),this.delta=i.compose(t)}else this.delta=this.getDelta(),(!t||!Ad(i.compose(t),this.delta))&&(t=i.diff(this.delta,r));return t}}function Bp(e,t,n){if(e.length===0){const[m]=xD(n.pop());return t<=0?`</li></${m}>`:`</li></${m}>${Bp([],t-1,n)}`}const[{child:r,offset:i,length:o,indent:s,type:a},...l]=e,[u,d]=xD(a);if(s>t)return n.push(a),s===t+1?`<${u}><li${d}>${Ub(r,i,o)}${Bp(l,s,n)}`:`<${u}><li>${Bp(e,t+1,n)}`;const f=n[n.length-1];if(s===t&&a===f)return`</li><li${d}>${Ub(r,i,o)}${Bp(l,s,n)}`;const[g]=xD(n.pop());return`</li></${g}>${Bp(e,t-1,n)}`}function Ub(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in e&&typeof e.html=="function")return e.html(t,n);if(e instanceof Qa)return cR(e.value().slice(t,t+n)).replaceAll(" "," ");if(e instanceof Xa){if(e.statics.blotName==="list-container"){const u=[];return e.children.forEachAt(t,n,(d,f,g)=>{const m="formats"in d&&typeof d.formats=="function"?d.formats():{};u.push({child:d,offset:f,length:g,indent:m.indent||0,type:m.list})}),Bp(u,-1,[])}const i=[];if(e.children.forEachAt(t,n,(u,d,f)=>{i.push(Ub(u,d,f))}),r||e.statics.blotName==="list")return i.join("");const{outerHTML:o,innerHTML:s}=e.domNode,[a,l]=o.split(`>${s}<`);return a==="<table"?`<table style="border: 1px solid #000;">${i.join("")}<${l}
904`:`${a}>${i.join("")}<${l}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function w8e(e,t){return Object.keys(t).reduce((n,r)=>{if(e[r]==null)return n;const i=t[r];return i===e[r]?n[r]=i:Array.isArray(i)?i.indexOf(e[r])<0?n[r]=i.concat([e[r]]):n[r]=i:n[r]=[i,e[r]],n},{})}function xD(e){const t=e==="ordered"?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function XU(e){return e.reduce((t,n)=>{if(typeof n.insert=="string"){const r=n.insert.replace(/\r\n/g,` 905`).replace(/\r/g,` 906`);return t.insert(r,n.attributes)}return t.push(n)},new nt)}function ZU(e,t){let{index:n,length:r}=e;return new eg(n+t,r)}function C8e(e){const t=[];return e.forEach(n=>{typeof n.insert=="string"?n.insert.split(` 907`).forEach((i,o)=>{o&&t.push({insert:` 908`,attributes:n.attributes}),i&&t.push({insert:i,attributes:n.attributes})}):t.push(n)}),t}class du{static DEFAULTS={};constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=n}}const gS="\uFEFF";class dB extends As{constructor(t,n){super(t,n),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(gS),this.rightGuard=document.createTextNode(gS),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,n)}restore(t){let n=null,r;const i=t.data.split(gS).join("");if(t===this.leftGuard)if(this.prev instanceof Qa){const o=this.prev.length();this.prev.insertAt(o,i),n={startNode:this.prev.domNode,startOffset:o+i.length}}else r=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(r),this),n={startNode:r,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof Qa?(this.next.insertAt(0,i),n={startNode:this.next.domNode,startOffset:i.length}):(r=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(r),this.next),n={startNode:r,startOffset:i.length}));return t.data=gS,n}update(t,n){t.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const i=this.restore(r.target);i&&(n.range=i)}})}}class S8e{isComposing=!1;constructor(t,n){this.scroll=t,this.emitter=n,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const n=t.target instanceof Node?this.scroll.find(t.target,!0):null;n&&!(n instanceof dB)&&(this.emitter.emit(et.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(et.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(et.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(et.events.COMPOSITION_END,t),this.isComposing=!1}}class Xm{static DEFAULTS={modules:{}};static themes={default:Xm};modules={};constructor(t,n){this.quill=t,this.options=n}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const n=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new n(this.quill,this.options.modules[t]||{}),this.modules[t]}}const x8e=e=>e.parentElement||e.getRootNode().host||null,E8e=e=>{const t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,r="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*r,left:t.left}},pS=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},QU=(e,t,n,r,i,o)=>e<n&&t>r?0:e<n?-(n-e+i):t>r?t-e>r-n?e+i-n:t-r+o:0,R8e=(e,t)=>{const n=e.ownerDocument;let r=t,i=e;for(;i;){const o=i===n.body,s=o?{top:0,right:window.visualViewport?.width??n.documentElement.clientWidth,bottom:window.visualVie
vendor: 16,726 bytes, lines 908-913
908wport?.height??n.documentElement.clientHeight,left:0}:E8e(i),a=getComputedStyle(i),l=QU(r.left,r.right,s.left,s.right,pS(a.scrollPaddingLeft),pS(a.scrollPaddingRight)),u=QU(r.top,r.bottom,s.top,s.bottom,pS(a.scrollPaddingTop),pS(a.scrollPaddingBottom));if(l||u)if(o)n.defaultView?.scrollBy(l,u);else{const{scrollLeft:d,scrollTop:f}=i;u&&(i.scrollTop+=u),l&&(i.scrollLeft+=l);const g=i.scrollLeft-d,m=i.scrollTop-f;r={left:r.left-g,top:r.top-m,right:r.right-g,bottom:r.bottom-m}}i=o||a.position==="fixed"?null:x8e(i)}},A8e=100,T8e=["block","break","cursor","inline","scroll","text"],P8e=(e,t,n)=>{const r=new Tm;return T8e.forEach(i=>{const o=t.query(i);o&&r.register(o)}),e.forEach(i=>{let o=t.query(i);o||n.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;o;)if(r.register(o),o="blotName"in o?o.requiredContainer??null:null,s+=1,s>A8e){n.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),r},lm=Tc("quill"),mS=new Tm;Xa.uiClass="ql-ui";class Pe{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:mS,theme:"default"};static events=et.events;static sources=et.sources;static version="2.0.3";static imports={delta:nt,parchment:l8e,"core/module":du,"core/theme":Xm};static debug(t){t===!0&&(t="log"),Tc.level(t)}static find(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return GF.get(t)||mS.find(t,n)}static import(t){return this.imports[t]==null&&lm.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const t=arguments.length<=0?void 0:arguments[0],n=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in t?t.attrName:t.blotName;typeof r=="string"?this.register(`formats/${r}`,t,n):Object.keys(t).forEach(i=>{this.register(i,t[i],n)})}else{const t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[t]!=null&&!r&&lm.warn(`Overwriting ${t} with`,n),this.imports[t]=n,(t.startsWith("blots/")||t.startsWith("formats/"))&&n&&typeof n!="boolean"&&n.blotName!=="abstract"&&mS.register(n),typeof n.register=="function"&&n.register(mS)}}constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=O8e(t,n),this.container=this.options.container,this.container==null){lm.error("Invalid Quill container",t);return}this.options.debug&&Pe.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",GF.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new et;const i=cB.blotName,o=this.options.registry.query(i);if(!o||!("blotName"in o))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new o(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new b8e(this.scroll),this.selection=new v8e(this.scroll,this.emitter),this.composition=new S8e(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(et.events.EDITOR_CHANGE,s=>{s===et.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(et.events.SCROLL_UPDATE,(s,a)=>{const l=this.selection.lastRange,[u]=this.selection.getRange(),d=l&&u?{oldRange:l,newRange:u}:void 0;Ba.call(this,()=>this.editor.update(null,a,d),s)}),this.emitter.on(et.events.SCROLL_EMBED_UPDATE,(s,a)=>{const l=this.selection.lastRange,[u]=this.selection.getRange(),d=l&&u?{oldRange:l,newRange:u}:void 0;Ba.call(this,()=>{const f=new nt().retain(s.offset(this)).retain({[s.statics.blotName]:a});return this.editor.update(f,[],d)},Pe.sources.USER)}),r){const s=this.clipboard.convert({html:`${r}<p><br></p>`,text:` 909`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const r=t;t=document.createElement("div"),t.classList.add(r)}return this.container.insertBefore(t,n),t}blur(){this.selection.setRange(null)}deleteText(t,n,r){return[t,n,,r]=zu(t,n,r),Ba.call(this,()=>this.editor.deleteText(t,n),r,t,-1*n)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const n=t();return this.allowReadOnlyEdits=!1,n}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:et.sources.API;return Ba.call(this,()=>{const i=this.getSelection(!0);let o=new nt;if(i==null)return o;if(this.scroll.query(t,ot.BLOCK))o=this.editor.formatLine(i.index,i.length,{[t]:n});else{if(i.length===0)return this.selection.format(t,n),o;o=this.editor.formatText(i.index,i.length,{[t]:n})}return this.setSelection(i,et.sources.SILENT),o},r)}formatLine(t,n,r,i,o){let s;return[t,n,s,o]=zu(t,n,r,i,o),Ba.call(this,()=>this.editor.formatLine(t,n,s),o,t,0)}formatText(t,n,r,i,o){let s;return[t,n,s,o]=zu(t,n,r,i,o),Ba.call(this,()=>this.editor.formatText(t,n,s),o,t,0)}getBounds(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof t=="number"?r=this.selection.getBounds(t,n):r=this.selection.getBounds(t.index,t.length),!r)return null;const i=this.container.getBoundingClientRect();return{bottom:r.bottom-i.top,height:r.height,left:r.left-i.left,right:r.right-i.left,top:r.top-i.top,width:r.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,n]=zu(t,n),this.editor.getContents(t,n)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,n):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,n)}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(n=n??this.getLength()-t),[t,n]=zu(t,n),this.editor.getHTML(t,n)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(n=n??this.getLength()-t),[t,n]=zu(t,n),this.editor.getText(t,n)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Pe.sources.API;return Ba.call(this,()=>this.editor.insertEmbed(t,n,r),i,t)}insertText(t,n,r,i,o){let s;return[t,,s,o]=zu(t,0,r,i,o),Ba.call(this,()=>this.editor.insertText(t,n,s),o,t,n.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,n,r){return[t,n,,r]=zu(t,n,r),Ba.call(this,()=>this.editor.removeFormat(t,n),r,t)}scrollRectIntoView(t){R8e(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,n=t&&this.selection.getBounds(t.index,t.length);n&&this.scrollRectIntoView(n)}setContents(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:et.sources.API;return Ba.call(this,()=>{t=new nt(t);const r=this.getLength(),i=this.editor.deleteText(0,r),o=this.editor.insertContents(0,t),s=this.editor.deleteText(this.getLength()-1,1);return i.compose(o).compose(s)},n)}setSelection(t,n,r){t==null?this.selection.setRange(null,n||Pe.sources.API):([t,n,,r]=zu(t,n,r),this.selection.setRange(new eg(Math.max(0,t),n),r),r!==et.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:et.sources.API;const r=new nt().insert(t);return this.setContents(r,n)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:et.sources.USER;const n=this.scroll.update(t);return this.selection.update(t),n}updateContents(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:et.sources.API;return Ba.call(this,()=>(t=new nt(t),this.editor.applyDelta(t)),n,!0)}}function JU(e){return typeof e=="string"?document.querySelector(e):e}function ED(e){return Object.entries(e??{}).reduce((t,n)=>{let[r,i]=n;return{...t,[r]:i===!0?{}:i}},{})}function eW(e){return Object.fromEntries(Object.entries(e).filter(t=>t[1]!==void 0))}function O8e(e,t){const n=JU(e);if(!n)throw new Error("Invalid Quill container");const i=!t.theme||t.theme===Pe.DEFAULTS.theme?Xm:Pe.import(`themes/${t.theme}`);if(!i)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:o,...s}=Pe.DEFAULTS,{modules:a,...l}=i.DEFAULTS;let u=ED(t.modules);u!=null&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const d=Vd({},ED(o),ED(a),u),f={...s,...eW(l),...eW(t)};let g=t.registry;return g?t.formats&&lm.warn('Ignoring "formats" option because "registry" is specified'):g=t.formats?P8e(t.formats,f.registry,lm):f.registry,{...f,registry:g,container:n,theme:i,modules:Object.entries(d).reduce((m,y)=>{let[b,w]=y;if(!w)return m;const C=Pe.import(`modules/${b}`);return C==null?(lm.error(`Cannot load ${b} module. Are you sure you registered it?`),m):{...m,[b]:Vd({},C.DEFAULTS||{},w)}},{}),bounds:JU(f.bounds)}}function Ba(e,t,n,r){if(!this.isEnabled()&&t===et.sources.USER&&!this.allowReadOnlyEdits)return new nt;let i=n==null?null:this.getSelection();const o=this.editor.delta,s=e();if(i!=null&&(n===!0&&(n=i.index),r==null?i=tW(i,s,t):r!==0&&(i=tW(i,n,r,t)),this.setSelection(i,et.sources.SILENT)),s.length()>0){const a=[et.events.TEXT_CHANGE,s,o,t];this.emitter.emit(et.events.EDITOR_CHANGE,...a),t!==et.sources.SILENT&&this.emitter.emit(...a)}return s}function zu(e,t,n,r,i){let o={};return typeof e.index=="number"&&typeof e.length=="number"?typeof t!="number"?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):typeof t!="number"&&(i=r,r=n,n=t,t=0),typeof n=="object"?(o=n,i=r):typeof n=="string"&&(r!=null?o[n]=r:i=n),i=i||et.sources.API,[e,t,o,i]}function tW(e,t,n,r){const i=typeof n=="number"?n:0;if(e==null)return null;let o,s;return t&&typeof t.transformPosition=="function"?[o,s]=[e.index,e.index+e.length].map(a=>t.transformPosition(a,r!==et.sources.USER)):[o,s]=[e.index,e.index+e.length].map(a=>a<t||a===t&&r===et.sources.USER?a:i>=0?a+i:Math.max(t,a+i)),new eg(o,s-o)}class Cg extends uR{}function nW(e){return e instanceof Li||e instanceof ia}function rW(e){return typeof e.updateContent=="function"}class D8e extends cB{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Li;static allowedChildren=[Li,ia,Cg];constructor(t,n,r){let{emitter:i}=r;super(t,n),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",o=>this.handleDragStart(o))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(et.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(et.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,n){this.emitter.emit(et.events.SCROLL_EMBED_UPDATE,t,n)}deleteAt(t,n){const[r,i]=this.line(t),[o]=this.line(t+n);if(super.deleteAt(t,n),o!=null&&r!==o&&i>0){if(r instanceof ia||o instanceof ia){this.optimize();return}const s=o.children.head instanceof ol?null:o.children.head;r.moveChildren(o,s),r.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.optimize()}insertAt(t,n,r){if(t>=this.length())if(r==null||this.scroll.query(n,ot.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),r==null&&n.endsWith(` 910`)?i.insertAt(0,n.slice(0,-1),r):i.insertAt(0,n,r)}else{const i=this.scroll.create(n,r);this.appendChild(i)}else super.insertAt(t,n,r);this.optimize()}insertBefore(t,n){if(t.statics.scope===ot.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(t),super.insertBefore(r,n)}else super.insertBefore(t,n)}insertContents(t,n){const r=this.deltaToRenderBlocks(n.concat(new nt().insert(` 911`))),i=r.pop();if(i==null)return;this.batchStart();const o=r.shift();if(o){const l=o.type==="block"&&(o.delta.length()===0||!this.descendant(ia,t)[0]&&t<this.length()),u=o.type==="block"?o.delta:new nt().insert({[o.key]:o.value});RD(this,t,u);const d=o.type==="block"?1:0,f=t+u.length()+d;l&&this.insertAt(f-1,` 912`);const g=ea(this.line(t)[0]),m=aa.AttributeMap.diff(g,o.attributes)||{};Object.keys(m).forEach(y=>{this.formatAt(f-1,1,y,m[y])}),t=f}let[s,a]=this.children.find(t);if(r.length&&(s&&(s=s.split(a),a=0),r.forEach(l=>{if(l.type==="block"){const u=this.createBlock(l.attributes,s||void 0);RD(u,0,l.delta)}else{const u=this.create(l.key,l.value);this.insertBefore(u,s||void 0),Object.keys(l.attributes).forEach(d=>{u.format(d,l.attributes[d])})}})),i.type==="block"&&i.delta.length()){const l=s?s.offset(s.scroll)+a:this.length();RD(this,l,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const n=this.path(t).pop();if(!n)return[null,-1];const[r,i]=n;return r instanceof Qi?[r,i]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(nW,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(i,o,s)=>{let a=[],l=s;return i.children.forEachAt(o,s,(u,d,f)=>{nW(u)?a.push(u):u instanceof uR&&(a=a.concat(r(u,d,l))),l-=f}),a};return r(this,t,n)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,n),t.length>0&&this.emitter.emit(et.events.SCROLL_OPTIMIZE,t,n))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let n=et.sources.USER;typeof t=="string"&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(r=>{let{target:i}=r;const o=this.find(i,!0);return o&&!rW(o)}),t.length>0&&this.emitter.emit(et.events.SCROLL_BEFORE_UPDATE,n,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(et.events.SCROLL_UPDATE,n,t)}updateEmbedAt(t,n,r){const[i]=this.descendant(o=>o instanceof ia,t);i&&i.statics.blotName===n&&rW(i)&&i.updateContent(r)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const n=[];let r=new nt;return t.forEach(i=>{const o=i?.insert;if(o)if(typeof o=="string"){const s=o.split(` 913`);s.slice(0,-1).forEach(l=>{r.insert(l,i.attributes),n.push({type:"block",delta:r,attributes:i.attributes??{}}),r=new nt});const a=s[s.length-1];a&&r.insert(a,i.attributes)}else{const s=Object.keys(o)[0];if(!s)return;this.query(s,ot.INLINE)?r.push(i):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new nt,n.push({type:"blockEmbed",key:s,value:o[s],attributes:i.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(t,n){let r;const i={};Object.entries(t).forEach(a=>{let[l,u]=a;this.query(l,ot.BLOCK&ot.BLOT)!=null?r=l:i[l]=u});const o=this.create(r||this.statics.defaultChild.blotName,r?t[r]:void 0);this.insertBefore(o,n||void 0);const s=o.length();
913return Object.entries(i).forEach(a=>{let[l,u]=a;o.formatAt(0,s,l,u)}),o}}function RD(e,t,n){n.reduce((r,i)=>{const o=aa.Op.length(i);let s=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const a=i.insert;e.insertAt(r,a);const[l]=e.descendant(Qi,r),u=ea(l);s=aa.AttributeMap.diff(u,s)||{}}else if(typeof i.insert=="object"){const a=Object.keys(i.insert)[0];if(a==null)return r;if(e.insertAt(r,a,i.insert[a]),e.scroll.query(a,ot.INLINE)!=null){const[u]=e.descendant(Qi,r),d=ea(u);s=aa.AttributeMap.diff(d,s)||{}}}}return Object.keys(s).forEach(a=>{e.formatAt(r,o,a,s[a])}),r+o},t)}const hB={scope:ot.BLOCK,whitelist:["right","center","justify"]},M8e=new tu("align","align",hB),Hie=new il("align","ql-align",hB),Vie=new lh("align","text-align",hB);class zie extends lh{value(t){let n=super.value(t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${n.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):n}}const I8e=new il("color","ql-color",{scope:ot.INLINE}),fB=new zie("color","color",{scope:ot.INLINE}),_8e=new il("background","ql-bg",{scope:ot.INLINE}),gB=new zie("background","background-color",{scope:ot.INLINE});class Sg extends Cg{static create(t){const n=super.create(t);return n.setAttribute("spellcheck","false"),n}code(t,n){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(` 914`).slice(t,t+n)}html(t,n){return`<pre> 915${cR(this.code(t,n))} 916</pre>`}}class To extends Li{static TAB=" ";static register(){Pe.register(Sg)}}class pB extends bo{}pB.blotName="code";pB.tagName="CODE";To.blotName="code-block";To.className="ql-code-block";To.tagName="DIV";Sg.blotName="code-block-container";Sg.className="ql-code-block-container";Sg.tagName="DIV";Sg.allowedChildren=[To];To.allowedChildren=[Qa,ol,dR];To.requiredContainer=Sg;const mB={scope:ot.BLOCK,whitelist:["rtl"]},Gie=new tu("direction","dir",mB),jie=new il("direction","ql-direction",mB),Uie=new lh("direction","direction",mB),Wie={scope:ot.INLINE,whitelist:["serif","monospace"]},$ie=new il("font","ql-font",Wie);class F8e extends lh{value(t){return super.value(t).replace(/["']/g,"")}}const qie=new F8e("font","font-family",Wie),Kie=new il("size","ql-size",{scope:ot.INLINE,whitelist:["small","large","huge"]}),Yie=new lh("size","font-size",{scope:ot.INLINE,whitelist:["10px","18px","32px"]}),k8e=Tc("quill:keyboard"),L8e=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class hR extends du{static match(t,n){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!n[r]!==t[r]&&n[r]!==null)?!1:n.key===t.key||n.key===t.which}constructor(t,n){super(t,n),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=B8e(t);if(i==null){k8e.warn("Attempted to add invalid keyboard binding",i);return}typeof n=="function"&&(n={handler:n}),typeof r=="function"&&(r={handler:r}),(Array.isArray(i.key)?i.key:[i.key]).forEach(s=>{const a={...i,key:s,...n,...r};this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;const i=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(C=>hR.match(t,C));if(i.length===0)return;const o=Pe.find(t.target,!0);if(o&&o.scroll!==this.quill.scroll)return;const s=this.quill.getSelection();if(s==null||!this.quill.hasFocus())return;const[a,l]=this.quill.getLine(s.index),[u,d]=this.quill.getLeaf(s.index),[f,g]=s.length===0?[u,d]:this.quill.getLeaf(s.index+s.length),m=u instanceof cx?u.value().slice(0,d):"",y=f instanceof cx?f.value().slice(g):"",b={collapsed:s.length===0,empty:s.length===0&&a.length()<=1,format:this.quill.getFormat(s),line:a,offset:l,prefix:m,suffix:y,event:t};i.some(C=>{if(C.collapsed!=null&&C.collapsed!==b.collapsed||C.empty!=null&&C.empty!==b.empty||C.offset!=null&&
vendor: 8,862 bytes, lines 916-921
916C.offset!==b.offset)return!1;if(Array.isArray(C.format)){if(C.format.every(E=>b.format[E]==null))return!1}else if(typeof C.format=="object"&&!Object.keys(C.format).every(E=>C.format[E]===!0?b.format[E]!=null:C.format[E]===!1?b.format[E]==null:Ad(C.format[E],b.format[E])))return!1;return C.prefix!=null&&!C.prefix.test(b.prefix)||C.suffix!=null&&!C.suffix.test(b.suffix)?!1:C.handler.call(this,s,b,C)!==!0})&&t.preventDefault()})}handleBackspace(t,n){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(n.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let i={};const[o]=this.quill.getLine(t.index);let s=new nt().retain(t.index-r).delete(r);if(n.offset===0){const[a]=this.quill.getLine(t.index-1);if(a&&!(a.statics.blotName==="block"&&a.length()<=1)){const u=o.formats(),d=this.quill.getFormat(t.index-1,1);if(i=aa.AttributeMap.diff(u,d)||{},Object.keys(i).length>0){const f=new nt().retain(t.index+o.length()-2).retain(1,i);s=s.compose(f)}}}this.quill.updateContents(s,Pe.sources.USER),this.quill.focus()}handleDelete(t,n){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(n.suffix)?2:1;if(t.index>=this.quill.getLength()-r)return;let i={};const[o]=this.quill.getLine(t.index);let s=new nt().retain(t.index).delete(r);if(n.offset>=o.length()-1){const[a]=this.quill.getLine(t.index+1);if(a){const l=o.formats(),u=this.quill.getFormat(t.index,1);i=aa.AttributeMap.diff(l,u)||{},Object.keys(i).length>0&&(s=s.retain(a.length()-1).retain(1,i))}}this.quill.updateContents(s,Pe.sources.USER),this.quill.focus()}handleDeleteRange(t){vB({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,n){const r=Object.keys(n.format).reduce((o,s)=>(this.quill.scroll.query(s,ot.BLOCK)&&!Array.isArray(n.format[s])&&(o[s]=n.format[s]),o),{}),i=new nt().retain(t.index).delete(t.length).insert(` 917`,r);this.quill.updateContents(i,Pe.sources.USER),this.quill.setSelection(t.index+1,Pe.sources.SILENT),this.quill.focus()}}const N8e={bindings:{bold:AD("bold"),italic:AD("italic"),underline:AD("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",Pe.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",Pe.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(e,t){t.format.indent!=null?this.quill.format("indent","-1",Pe.sources.USER):t.format.list!=null&&this.quill.format("list",!1,Pe.sources.USER)}},"indent code-block":iW(!0),"outdent code-block":iW(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,Pe.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();const n=new nt().retain(e.index).delete(e.length).insert(" ");return this.quill.updateContents(n,Pe.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,Pe.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Pe.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(e,t){const n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,Pe.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(e){const[t,n]=this.quill.getLine(e.index),r={...t.formats(),list:"checked"},i=new nt().retain(e.index).insert(` 918`,r).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Pe.sources.USER),this.quill.setSelection(e.index+1,Pe.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(e,t){const[n,r]=this.quill.getLine(e.index),i=new nt().retain(e.index).insert(` 919`,t.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,Pe.sources.USER),this.quill.setSelection(e.index+1,Pe.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){const t=this.quill.getModule("table");if(t){const[n,r,i,o]=t.getTable(e),s=H8e(n,r,i,o);if(s==null)return;let a=n.offset();if(s<0){const l=new nt().retain(a).insert(` 920`);this.quill.updateContents(l,Pe.sources.USER),this.quill.setSelection(e.index+1,e.length,Pe.sources.SILENT)}else if(s>0){a+=n.length();const l=new nt().retain(a).insert(` 921`);this.quill.updateContents(l,Pe.sources.USER),this.quill.setSelection(a,Pe.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){const{event:n,line:r}=t,i=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(i-1,Pe.sources.USER):this.quill.setSelection(i+r.length(),Pe.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){if(this.quill.scroll.query("list")==null)return!0;const{length:n}=t.prefix,[r,i]=this.quill.getLine(e.index);if(i>n)return!0;let o;switch(t.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(e.index," ",Pe.sources.USER),this.quill.history.cutoff();const s=new nt().retain(e.index-i).delete(n+1).retain(r.length()-2-i).retain(1,{list:o});return this.quill.updateContents(s,Pe.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,Pe.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){const[t,n]=this.quill.getLine(e.index);let r=2,i=t;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,r-=1,r<=0){const o=new nt().retain(e.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Pe.sources.USER),this.quill.setSelection(e.index-1,Pe.sources.SILENT),!1}return!0}},"embed left":vS("ArrowLeft",!1),"embed left shift":vS("ArrowLeft",!0),"embed right":vS("ArrowRight",!1),"embed right shift":vS("ArrowRight",!0),"table down":oW(!1),"table up":oW(!0)}};hR.DEFAULTS=N8e;function iW(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler(t,n){let{event:r}=n;const i=this.quill.scroll.query("code-block"),{TAB:o}=i;if(t.length===0&&!r.shiftKey){this.quill.insertText(t.index,o,Pe.sources.USER),this.quill.setSelection(t.index+o.length,Pe.sources.SILENT);return}const s=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:a,length:l}=t;s.forEach((u,d)=>{e?(u.insertAt(0,o),d===0?a+=o.length:l+=o.length):u.domNode.textContent.startsWith(o)&&(u.deleteAt(0,o.length),d===0?a-=o.length:l-=o.length)}),this.quill.update(Pe.sources.USER),this.quill.setSelection(a,l,Pe.sources.SILENT)}}}function vS(e,t){return{key:e,shiftKey:t,altKey:null,[e==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:i}=r;e==="ArrowRight"&&(i+=r.length+1);const[o]=this.quill.getLeaf(i);return o instanceof As?(e==="ArrowLeft"?t?this.quill.setSelection(r.index-1,r.length+1,Pe.sources.USER):this.quill.setSelection(r.index-1,Pe.sources.USER):t?this.quill.setSelection(r.index,r.length+1,Pe.sources.USER):this.quill.setSelection(r.index+r.length+1,Pe.sources.USER),!1):!0}}}function AD(e){return{key:e[0],shortKey:!0,handler(t,n){this.quill.format(e,!n.format[e],Pe.sources.USER)}}}function oW(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,n){const r=e?"prev":"next",i=n.line,o=i.parent[r];if(o!=null){if(o.statics.blotName==="table-row"){let s=o.children.head,a=i;for(;a.prev!=null;)a=a.prev,s=s.next;const l=s.offset(this.quill.scroll)+Math.min(n.offset,s.length()-1);this.quill.setSelection(l,0,Pe.sources.USER)}}else{const s=i.table()[r];s!=null&&(e?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,Pe.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,Pe.sources.USER))}return!1}}}function B8e(e){if(typeof e=="string"||typeof e=="number")e={key:e};else if(typeof e=="object")e=sm(e);else return null;return e.shortKey&&(e[L8e]=e.shortKey,delete e.shortKey),e}function vB(e){let{quill:t,range:n}=e;const r=t.getLines(n);let i={};if(r.length>1){const o=r[0].formats(),s=r[r.length-1].formats();i=aa.AttributeMap.diff(s,o)||{}}t.deleteText(n,Pe.sources.USER),Object.keys(i).length>0&&t.formatLine(n.index,1,i,Pe.sources.USER),t.setSelection(n.index,Pe.sources.SILENT)}function H8e(e,t,n,r){return t.prev==null&&t.next==null?n.prev==null&&n.next==null?r===0?-1:1:n.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}
921const V8e=/font-weight:\s*normal/,z8e=["P","OL","UL"],sW=e=>e&&z8e.includes(e.tagName),G8e=e=>{Array.from(e.querySelectorAll("br")).filter(t=>sW(t.previousElementSibling)&&sW(t.nextElementSibling)).forEach(t=>{t.parentNode?.removeChild(t)})},j8e=e=>{Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter(t=>t.getAttribute("style")?.match(V8e)).forEach(t=>{const n=e.createDocumentFragment();n.append(...t.childNodes),t.parentNode?.replaceChild(n,t)})};function U8e(e){e.querySelector('[id^="docs-internal-guid-"]')&&(j8e(e),G8e(e))}const W8e=/\bmso-list:[^;]*ignore/i,$8e=/\bmso-list:[^;]*\bl(\d+)/i,q8e=/\bmso-list:[^;]*\blevel(\d+)/i,K8e=(e,t)=>{const n=e.getAttribute("style"),r=n?.match($8e);if(!r)return null;const i=Number(r[1]),o=n?.match(q8e),s=o?Number(o[1]):1,a=new RegExp(`@list l${i}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=t.match(a),u=l&&l[1]==="bullet"?"bullet":"ordered";return{id:i,indent:s,type:u,element:e}},Y8e=e=>{const t=Array.from(e.querySelectorAll("[style*=mso-list]")),n=[],r=[];t.forEach(s=>{(s.getAttribute("style")||"").match(W8e)?n.push(s):r.push(s)}),n.forEach(s=>s.parentNode?.removeChild(s));const i=e.documentElement.innerHTML,o=r.map(s=>K8e(s,i)).filter(s=>s);for(;o.length;){const s=[];let a=o.shift();for(;a;)s.push(a),a=o.length&&o[0]?.element===a.element.nextElementSibling&&o[0].id===a.id?o.shift():null;const l=document.createElement("ul");s.forEach(f=>{const g=document.createElement("li");g.setAttribute("data-list",f.type),f.indent>1&&g.setAttribute("class",`ql-indent-${f.indent-1}`),g.innerHTML=f.element.innerHTML,l.appendChild(g)});const u=s[0]?.element,{parentNode:d}=u??{};u&&d?.replaceChild(l,u),s.slice(1).forEach(f=>{let{element:g}=f;d?.removeChild(g)})}};function X8e(e){e.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Y8e(e)}const Z8e=[X8e,U8e],Q8e=e=>{e.documentElement&&Z8e.forEach(t=>{t(e)})},J8e=Tc("quill:clipboard"),e6e=[[Node.TEXT_NODE,f6e],[Node.TEXT_NODE,lW],["br",s6e],[Node.ELEMENT_NODE,lW],[Node.ELEMENT_NODE,o6e],[Node.ELEMENT_NODE,i6e],[Node.ELEMENT_NODE,d6e],["li",u6e],["ol, ul",c6e],["pre",a6e],["tr",h6e],["b",TD("bold")],["i",TD("italic")],["strike",TD("strike")],["style",l6e]],t6e=[M8e,Gie].reduce((e,t)=>(e[t.keyName]=t,e),{}),aW=[Vie,gB,fB,Uie,qie,Yie].reduce((e,t)=>(e[t.keyName]=t,e),{});class n6e extends du{static DEFAULTS={matchers:[]};constructor(t,n){super(t,n),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],e6e.concat(this.options.matchers??[]).forEach(r=>{let[i,o]=r;this.addMatcher(i,o)})}addMatcher(t,n){this.matchers.push([t,n])}convert(t){let{html:n,text:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[To.blotName])return new nt().insert(r||"",{[To.blotName]:i[To.blotName]});if(!n)return new nt().insert(r||"",i);const o=this.convertHTML(n);return Sw(o,` 922`)&&(o.ops[o.ops.length-1].attributes==null||i.table)?o.compose(new nt().retain(o.length()-1).delete(1)):o}normalizeHTML(t){Q8e(t)}convertHTML(t){const n=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(n);const r=n.body,i=new WeakMap,[o,s]=this.prepareMatching(r,i);return yB(this.quill.scroll,r,o,s,i)}dangerouslyPasteHTML(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe.sources.API;if(typeof t=="string"){const i=this.convert({html:t,text:""});this.quill.setContents(i,n),this.quill.setSelection(0,Pe.sources.SILENT)}else{const i=this.convert({html:n,text:""});this.quill.updateContents(new nt().retain(t).concat(i),r),this.quill.setSelection(t+i.length(),Pe.sources.SILENT)}}onCaptureCopy(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:i,text:o}=this.onCopy(r,n);t.clipboardData?.setData("text/plain",o),t.clipboardData?.setData("text/html",i),n&&vB({range:r,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(n=>n[0]!=="#").join(` 923`)}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const n=this.quill.getSelection(!0);if(n==null)return;const r=t.clipboardData?.getData("text/html");let i=t.clipboardData?.getData("text/plain");
923if(!r&&!i){const s=t.clipboardData?.getData("text/uri-list");s&&(i=this.normalizeURIList(s))}const o=Array.from(t.clipboardData?.files||[]);if(!r&&o.length>0){this.quill.uploader.upload(n,o);return}if(r&&o.length>0){const s=new DOMParser().parseFromString(r,"text/html");if(s.body.childElementCount===1&&s.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(n,o);return}}this.onPaste(n,{html:r,text:i})}onCopy(t){const n=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:n}}onPaste(t,n){let{text:r,html:i}=n;const o=this.quill.getFormat(t.index),s=this.convert({text:r,html:i},o);J8e.log("onPaste",s,{text:r,html:i});const a=new nt().retain(t.index).delete(t.length).concat(s);this.quill.updateContents(a,Pe.sources.USER),this.quill.setSelection(a.length()-t.length,Pe.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,n){const r=[],i=[];return this.matchers.forEach(o=>{const[s,a]=o;switch(s){case Node.TEXT_NODE:i.push(a);break;case Node.ELEMENT_NODE:r.push(a);break;default:Array.from(t.querySelectorAll(s)).forEach(l=>{n.has(l)?n.get(l)?.push(a):n.set(l,[a])});break}}),[r,i]}}function xg(e,t,n,r){return r.query(t)?e.reduce((i,o)=>
vendor: 6,630 bytes, lines 923-933
923{if(!o.insert)return i;if(o.attributes&&o.attributes[t])return i.push(o);const s=n?{[t]:n}:{};return i.insert(o.insert,{...s,...o.attributes})},new nt):e}function Sw(e,t){let n="";for(let r=e.ops.length-1;r>=0&&n.length<t.length;--r){const i=e.ops[r];if(typeof i.insert!="string")break;n=i.insert+n}return n.slice(-1*t.length)===t}function _d(e,t){if(!(e instanceof Element))return!1;const n=t.query(e);return n&&n.prototype instanceof As?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}function r6e(e,t){return e.previousElementSibling&&e.nextElementSibling&&!_d(e.previousElementSibling,t)&&!_d(e.nextElementSibling,t)}const yS=new WeakMap;function Xie(e){return e==null?!1:(yS.has(e)||(e.tagName==="PRE"?yS.set(e,!0):yS.set(e,Xie(e.parentNode))),yS.get(e))}function yB(e,t,n,r,i){return t.nodeType===t.TEXT_NODE?r.reduce((o,s)=>s(t,o,e),new nt):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((o,s)=>{let a=yB(e,s,n,r,i);return s.nodeType===t.ELEMENT_NODE&&(a=n.reduce((l,u)=>u(s,l,e),a),a=(i.get(s)||[]).reduce((l,u)=>u(s,l,e),a)),o.concat(a)},new nt):new nt}function TD(e){return(t,n,r)=>xg(n,e,!0,r)}function i6e(e,t,n){const r=tu.keys(e),i=il.keys(e),o=lh.keys(e),s={};return r.concat(i).concat(o).forEach(a=>{let l=n.query(a,ot.ATTRIBUTE);l!=null&&(s[l.attrName]=l.value(e),s[l.attrName])||(l=t6e[a],l!=null&&(l.attrName===a||l.keyName===a)&&(s[l.attrName]=l.value(e)||void 0),l=aW[a],l!=null&&(l.attrName===a||l.keyName===a)&&(l=aW[a],s[l.attrName]=l.value(e)||void 0))}),Object.entries(s).reduce((a,l)=>{let[u,d]=l;return xg(a,u,d,n)},t)}function o6e(e,t,n){const r=n.query(e);if(r==null)return t;if(r.prototype instanceof As){const i={},o=r.value(e);if(o!=null)return i[r.blotName]=o,new nt().insert(i,r.formats(e,n))}else if(r.prototype instanceof jb&&!Sw(t,` 924`)&&t.insert(` 925`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return xg(t,r.blotName,r.formats(e,n),n);return t}function s6e(e,t){return Sw(t,` 926`)||t.insert(` 927`),t}function a6e(e,t,n){const r=n.query("code-block"),i=r&&"formats"in r&&typeof r.formats=="function"?r.formats(e,n):!0;return xg(t,"code-block",i,n)}function l6e(){return new nt}function u6e(e,t,n){const r=n.query(e);if(r==null||r.blotName!=="list"||!Sw(t,` 928`))return t;let i=-1,o=e.parentNode;for(;o!=null;)["OL","UL"].includes(o.tagName)&&(i+=1),o=o.parentNode;return i<=0?t:t.reduce((s,a)=>a.insert?a.attributes&&typeof a.attributes.indent=="number"?s.push(a):s.insert(a.insert,{indent:i,...a.attributes||{}}):s,new nt)}function c6e(e,t,n){const r=e;let i=r.tagName==="OL"?"ordered":"bullet";const o=r.getAttribute("data-checked");return o&&(i=o==="true"?"checked":"unchecked"),xg(t,"list",i,n)}function lW(e,t,n){if(!Sw(t,` 929`)){if(_d(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert(` 930`);if(t.length()>0&&e.nextSibling){let r=e.nextSibling;for(;r!=null;){if(_d(r,n))return t.insert(` 931`);const i=n.query(r);if(i&&i.prototype instanceof ia)return t.insert(` 932`);r=r.firstChild}}}return t}function d6e(e,t,n){const r={},i=e.style||{};return i.fontStyle==="italic"&&(r.italic=!0),i.textDecoration==="underline"&&(r.underline=!0),i.textDecoration==="line-through"&&(r.strike=!0),(i.fontWeight?.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0),t=Object.entries(r).reduce((o,s)=>{let[a,l]=s;return xg(o,a,l,n)},t),parseFloat(i.textIndent||0)>0?new nt().insert(" ").concat(t):t}function h6e(e,t,n){const r=e.parentElement?.tagName==="TABLE"?e.parentElement:e.parentElement?.parentElement;if(r!=null){const o=Array.from(r.querySelectorAll("tr")).indexOf(e)+1;return xg(t,"table",o,n)}return t}function f6e(e,t,n){let r=e.data;if(e.parentElement?.tagName==="O:P")return t.insert(r.trim());if(!Xie(e)){if(r.trim().length===0&&r.includes(` 933`)&&!r6e(e,n))return t;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(e.previousSibling==null&&e.parentElement!=null&&_d(e.parentElement,n)||e.previousSibling instanceof Element&&_d(e.previousSibling,n))&&(r=r.replace(/^ /,"")),(e.nextSibling==null&&e.parentElement!=null&&_d(e.parentElement,n)||e.nextSibling instanceof Element&&_d(e.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll("Â "," ")}return t.insert(r)}class g6e extends du{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,n){super(t,n),this.quill.on(Pe.events.EDITOR_CHANGE,(r,i,o,s)=>{r===Pe.events.SELECTION_CHANGE?i&&s!==Pe.sources.SILENT&&(this.currentRange=i):r===Pe.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||s===Pe.sources.USER?this.record(i,o):this.transform(i)),this.currentRange=WF(this.currentRange,i))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",r=>{r.inputType==="historyUndo"?(this.undo(),r.preventDefault()):r.inputType==="historyRedo"&&(this.redo(),r.preventDefault())})}change(t,n){if(this.stack[t].length===0)return;const r=this.stack[t].pop();if(!r)return;const i=this.quill.getContents(),o=r.delta.invert(i);this.stack[n].push({delta:o,range:WF(r.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,Pe.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,n){if(t.ops.length===0)return;this.stack.redo=[];let r=t.invert(n),i=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const s=this.stack.undo.pop();s&&(r=r.compose(s.delta),i=s.range)}else this.lastRecorded=o;r.length()!==0&&(this.stack.undo.push({delta:r,range:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){uW(this.stack.undo,t),uW(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Pe.sources.USER);else{const n=m6e(this.quill.scroll,t.delta);this.quill.setSelection(n,Pe.sources.USER)}}}function uW(e,t){let n=t;for(let r=e.length-1;r>=0;r-=1){const i=e[r];e[r]={delta:n.transform(i.delta,!0),range:i.range&&WF(i.range,n)},n=i.delta.transform(n),e[r].delta.length()===0&&e.splice(r,1)}}
933function p6e(e,t){const n=t.ops[t.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(` 934`):n.attributes!=null?Object.keys(n.attributes).some(r=>e.query(r,ot.BLOCK)!=null):!1}function m6e(e,t){const n=t.reduce((i,o)=>i+(o.delete||0),0);let r=t.length()-n;return p6e(e,t)&&(r-=1),r}function WF(e,t){if(!e)return e;const n=t.transformPosition(e.index),r=t.transformPosition(e.index+e.length);return{index:n,length:r-n}}class Zie extends du{constructor(t,n){super(t,n),t.root.addEventListener("drop",r=>{r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const s=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(s.offsetNode,s.offset),i.setEnd(s.offsetNode,s.offset)}const o=i&&t.selection.normalizeNative(i);if(o){const s=t.selection.normalizedToRange(o);r.dataTransfer?.files&&this.upload(s,r.dataTransfer.files)}})}upload(t,n){const r=[];Array.from(n).forEach(i=>{i&&this.options.mimetypes?.includes(i.type)&&r.push(i)}),r.length>0&&this.options.handler.call(this,t,r)}}Zie.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const n=t.map(r=>new Promise(i=>{const o=new FileReader;o.onload=()=>{i(o.result)},o.readAsDataURL(r)}));Promise.all(n).then(r=>{const i=r.reduce((o,s)=>o.insert({image:s}),new nt().retain(e.index).delete(e.length));this.quill.updateContents(i,et.sources.USER),this.quill.setSelection(e.index+r.length,et.sources.SILENT)})}};const v6e=["insertText","insertReplacementText"];class y6e extends du{constructor(t,n){super(t,n),t.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||t.on(Pe.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){vB({range:t,quill:this.quill})}replaceText(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(n){const r=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new nt().retain(t.index).insert(n,r),Pe.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+n.length,0,Pe.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!v6e.includes(t.inputType))return;const n=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const r=b6e(t);if(r==null)return;const i=this.quill.selection.normalizeNative(n),o=i?this.quill.selection.normalizedToRange(i):null;o&&this.replaceText(o,r)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function b6e(e){return typeof e.data=="string"?e.data:e.dataTransfer?.types.includes("text/plain")?e.dataTransfer.getData("text/plain"):null}const w6e=/Mac/i.test(navigator.platform),C6e=100,S6e=e=>!!(e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="ArrowUp"||e.key==="ArrowDown"||e.key==="Home"||w6e&&e.key==="a"&&e.ctrlKey===!0);class x6e extends du{isListening=!1;selectionChangeDeadline=0;constructor(t,n){super(t,n),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,n){let{line:r,event:i}=n;if(!(r instanceof Xa)||!r.uiNode)return!0;const o=getComputedStyle(r.domNode).direction==="rtl";return o&&i.key!=="ArrowRight"||!o&&i.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(i.shiftKey?1:0),Pe.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&S6e(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+C6e,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const n=t.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const r=this.quill.scroll.find(n.startContainer);if(!(r instanceof Xa)||!r.uiNode)return;const i=document.createRange();i.setStartAfter(r.uiNode),i.setEndAfter(r.uiNode),t.removeAllRanges(),t.addRange(i)}}Pe.register({"blots/block":Li,"blots/block/embed":ia,"blots/break":ol,"blots/container":Cg,"blots/cursor":d
934R,"blots/embed":dB,"blots/inline":bo,"blots/scroll":D8e,"blots/text":Qa,"modules/clipboard":n6e,"modules/history":g6e,"modules/keyboard":hR,"modules/uploader":Zie,"modules/input":y6e,"modules/uiNode":x6e});class E6e extends il{add(t,n){let r=0;if(n==="+1"||n==="-1"){const i=this.value(t)||0;r=n==="+1"?i+1:i-1}else typeof n=="number"&&(r=n);return r===0?(this.remove(t),!0):super.add(t,r.toString())}canAdd(t,n){return super.canAdd(t,n)||super.canAdd(t,parseInt(n,10))}value(t){return parseInt(super.value(t),10)||void 0}}const R6e=new E6e("indent","ql-indent",{scope:ot.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class A6e extends Li{static blotName="blockquote";static tagName="blockquote"}class T6e extends Li{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}}class xw extends Cg{}xw.blotName="list-container";xw.tagName="OL";class Ew extends Li{static create(t){const n=super.create();return n.setAttribute("data-list",t),n}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Pe.register(xw)}constructor(t,n){super(t,n);const r=n.ownerDocument.createElement("span"),i=o=>{if(!t.isEnabled())return;const s=this.statics.formats(n,t);s==="checked"?(this.format("list","unchecked"),o.preventDefault()):s==="unchecked"&&(this.format("list","checked"),o.preventDefault())};r.addEventListener("mousedown",i),r.addEventListener("touchstart",i),this.attachUI(r)}format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):super.format(t,n)}}Ew.blotName="list";Ew.tagName="LI";xw.allowedChildren=[Ew];Ew.requiredContainer=xw;class bB extends bo{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}class P6e extends bB{static blotName="italic";static tagName=["EM","I"]}class dx extends bo{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const n=super.create(t);return n.setAttribute("href",this.sanitize(t)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}static formats(t){return t.getAttribute("href")}static sanitize(t){return Qie(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,n){t!==this.statics.blotName||!n?super.format(t,n):this.domNode.setAttribute("href",this.constructor.sanitize(n))}}function Qie(e,t){const n=document.createElement("a");n.href=e;const r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}class O6e extends bo{static blotName="script";static tagName=["SUB","SUP"];static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}class D6e extends bB{static blotName="strike";static tagName=["S","STRIKE"]}class M6e extends bo{static blotName="underline";static tagName="U"}class I6e extends dB{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const n=super.create(t);return typeof t=="string"&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}const cW=["alt","height","width"];class _6e extends As{static blotName="image";static tagName="IMG";static create(t){const n=super.create(t);return typeof t=="string"&&n.setAttribute("src",this.sanitize(t)),n}static formats(t){return cW.reduce((n,r)=>(t.hasAttribute(r)&&(n[r]=t.getAttribute(r)),n),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return Qie(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,n){cW.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):super.format(t,n)}}const dW=["height","width"];class F6e extends ia{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const n=super.create(t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(t)),n}static formats(t){return dW.reduce((n,r)=>(t.hasAttribute(r)&&(n[r]=t.getAttribute(r)),n),{})}static sanitize(t){return dx.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,n){dW.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):super.format(t,n)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}const Uy=new il("code-token","hljs",{scope:ot.INLINE});class pc extends bo{static formats(t,n){for(;t!=null&&t!==n.domNode;){if(t.classList&&t.classList.contains(To.className))return super.formats(t,n);t=t.parentNode}}constructor(t,n,r){super(t,n,r),Uy.add(this.domNode,r)}format(t,n){t!==pc.blotName?super.format(t,n):n?Uy.add(this.domNode,n):(Uy.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Uy.value(this.domNode)||this.unwrap()}}pc.blotName="code-token";pc.className="ql-token";class ta extends To{static create(t){const n=super.create(t);return typeof t=="string"&&n.setAttribute("data-language",t),n}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("data-language",n):super.format(t,n)}replaceWith(t,n){return this.formatAt(0,this.length(),pc.blotName,!1),super.replaceWith(t,n)}}class ub extends Sg{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,n){t===ta.blotName&&(this.forceNext=!0,this.children.forEac
934h(r=>{r.format(t,n)}))}formatAt(t,n,r,i){r===ta.blotName&&(this.forceNext=!0),super.formatAt(t,n,r,i)}highlight(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(` 935`)} 936`,o=ta.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const s=this.children.reduce((l,u)=>l.concat(Lie(u,!1)),new nt),a=t(i,o);s.diff(a).reduce((l,u)=>{let{retain:d,attributes:f}=u;return d?(f&&Object.keys(f).forEach(g=>{[ta.blotName,pc.blotName].includes(g)&&this.formatAt(l,d,g,f[g])}),l+d):l},0)}this.cachedText=i,this.forceNext=!1}}html(t,n){const[r]=this.children.find(t);return`<pre data-language="${r?ta.formats(r.domNode):"plain"}"> 937${cR(this.code(t,n))} 938</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const n=ta.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}ub.allowedChildren=[ta];ta.requiredContainer=ub;ta.allowedChildren=[pc,dR,Qa,ol];const k6e=(e,t,n)=>{if(typeof e.versionString=="string"){const r=e.versionString.split(".")[0];if(parseInt(r,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value};class Jie extends du{static register(){Pe.register(pc,!0),Pe.register(ta,!0),Pe.register(ub,!0)}constructor(t,n){if(super(t,n),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,i)=>{let{key:o}=i;return r[o]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Pe.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof ub))return;const n=this.quill.root.ownerDocument.createElement("select");
938this.options.languages.forEach(r=>{let{key:i,label:o}=r;const s=n.ownerDocument.createElement("option");s.textContent=o,s.setAttribute("value",i),n.appendChild(s)}),n.addEventListener("change",()=>{t.format(ta.blotName,n.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(n),t.children.head&&(n.value=ta.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Pe.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(Pe.sources.USER);const r=this.quill.getSelection();(t==null?this.quill.scroll.descendants(ub):[t]).forEach(o=>{o.highlight(this.highlightBlot,n)}),this.quill.update(Pe.sources.SILENT),r!=null&&this.quill.setSelection(r,Pe.sources.SILENT)}highlightBlot(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(n=this.languages[n]?n:"plain",n==="plain")return cR(t).split(` 939`).reduce((i,o,s)=>(s!==0&&i.insert(` 940`,{[To.blotName]:n}),i.insert(o)),new nt);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(To.className),r.innerHTML=k6e(this.options.hljs,n,t),yB(this.quill.scroll,r,[(i,o)=>{const s=Uy.value(i);return s?o.compose(new nt().retain(o.length(),{[pc.blotName]:s})):o}],[(i,o)=>i.data.split(` 941`).reduce((s,a,l)=>(l!==0&&s.insert(` 942`,{[To.blotName]:n}),s.insert(a)),o)],new WeakMap)}}Jie.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class Wa extends Li{static blotName="table";static tagName="TD";static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",wB()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===Wa.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class tg extends Cg{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),i=n.next.formats();if(r.table!==i.table){const o=this.splitAfter(n);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class zd extends Cg{static blotName="table-body";static tagName="TBODY"}class hx extends Cg{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(tg),n=t.reduce((r,i)=>Math.max(i.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=Wa.formats(r.children.head.domNode));const o=this.scroll.create(Wa.blotName,i);r.appendChild(o),o.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(zd);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t);i?.remove()})}insertColumn(t){const[n]=this.descendant(zd);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t),o=Wa.formats(r.children.head.domNode),s=this.scroll.create(Wa.blotName,o);r.insertBefore(s,i)})}insertRow(t){const[n]=this.descendant(zd);if(n==null||n.children.head==null)return;const r=wB(),i=this.scroll.create(tg.blotName);
942n.children.head.children.forEach(()=>{const s=this.scroll.create(Wa.blotName,r);i.appendChild(s)});const o=n.children.at(t);n.insertBefore(i,o)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}hx.allowedChildren=[zd];zd.requiredContainer=hx;zd.allowedChildren=[tg];tg.requiredContainer=zd;tg.allowedChildren=[Wa];Wa.requiredContainer=tg;function wB(){return`row-${Math.random().toString(36).slice(2,6)}`}let L6e=class extends du{static register(){Pe.register(Wa),Pe.register(tg),Pe.register(zd),Pe.register(hx)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(hx).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(Pe.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(Pe.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(Pe.sources.USER),this.quill.setSelection(n,Pe.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(t.index);if(n==null||n.statics.blotName!==Wa.blotName)return[null,null,null,-1];const i=n.parent;return[i.parent.parent,i,n,r]}insertColumn(t){const n=this.quill.getSelection();if(!n)return;const[r,i,o]=this.getTable(n);if(o==null)return;const s=o.cellOffset();r.insertColumn(s+t),this.quill.update(Pe.sources.USER);let a=i.rowOffset();t===0&&(a+=1),this.quill.setSelection(n.index+a,n.length,Pe.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const n=this.quill.getSelection();if(!n)return;const[r,i,o]=this.getTable(n);if(o==null)return;const s=i.rowOffset();r.insertRow(s+t),this.quill.update(Pe.sources.USER),t>0?this.quill.setSelection(n,Pe.sources.SILENT):this.quill.setSelection(n.index+i.children.length,n.length,Pe.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,n){const r=this.quill.getSelection();if(r==null)return;const i=new Array(t).fill(0).reduce(o=>{const s=new Array(n).fill(` 943`).join("");return o.insert(s,{table:wB()})},new nt().retain(r.index));this.quill.updateContents(i,Pe.sources.USER),this.quill.setSelection(r.index,Pe.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Pe.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(Pe.events.TEXT_CHANGE,(r,i,o)=>{o===Pe.sources.USER&&this.balanceTables()}),!0):!1)})}};const hW=Tc("quill:toolbar");class CB extends du{constructor(t,n){if(super(t,n),Array.isArray(this.options.container)){const r=document.createElement("div");r.setAttribute("role","toolbar"),N6e(r,this.options.container),t.container?.parentNode?.insertBefore(r,t.container),this.container=r}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){hW.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(r=>{const i=this.options.handlers?.[r];i&&this.addHandler(r,i)}),Array.from(this.container.querySelectorAll("button, select")).forEac
vendor: 6,612 bytes, line 943
943h(r=>{this.attach(r)}),this.quill.on(Pe.events.EDITOR_CHANGE,()=>{const[r]=this.quill.selection.getRange();this.update(r)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){hW.warn("ignoring attaching to nonexistent format",n,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,i=>{let o;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const a=t.options[t.selectedIndex];a.hasAttribute("selected")?o=!1:o=a.value||!1}else t.classList.contains("ql-active")?o=!1:o=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,o);else if(this.quill.scroll.query(n).prototype instanceof As){if(o=prompt(`Enter ${n}`),!o)return;this.quill.updateContents(new nt().retain(s.index).delete(s.length).insert({[n]:o}),Pe.sources.USER)}else this.quill.format(n,o,Pe.sources.USER);this.update(s)}),this.controls.push([n,t])}update(t){const n=t==null?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[i,o]=r;if(o.tagName==="SELECT"){let s=null;if(t==null)s=null;else if(n[i]==null)s=o.querySelector("option[selected]");else if(!Array.isArray(n[i])){let a=n[i];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),s=o.querySelector(`option[value="${a}"]`)}s==null?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(t==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const s=n[i],a=s===o.getAttribute("value")||s!=null&&s.toString()===o.getAttribute("value")||s==null&&!o.getAttribute("value");o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}else{const s=n[i]!=null;o.classList.toggle("ql-active",s),o.setAttribute("aria-pressed",s.toString())}})}}CB.DEFAULTS={};function fW(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}function N6e(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(i=>{if(typeof i=="string")fW(r,i);else{const o=Object.keys(i)[0],s=i[o];Array.isArray(s)?B6e(r,o,s):fW(r,o,s)}}),e.appendChild(r)})}function B6e(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(i=>{const o=document.createElement("option");i!==!1?o.setAttribute("value",String(i)):o.setAttribute("selected","selected"),r.appendChild(o)}),e.appendChild(r)}CB.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(e!=null)if(e.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(n=>{this.quill.scroll.query(n,ot.INLINE)!=null&&this.quill.format(n,!1,Pe.sources.USER)})}else this.quill.removeFormat(e.index,e.length,Pe.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();e==="rtl"&&t==null?this.quill.format("align","right",Pe.sources.USER):!e&&t==="right"&&this.quill.format("align",!1,Pe.sources.USER),this.quill.format("direction",e,Pe.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if(e==="+1"||e==="-1"){let i=e==="+1"?1:-1;n.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,Pe.sources.USER)}},link(e){e===!0&&(e=prompt("Enter link URL:")),this.quill.format("link",e,Pe.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);e==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,Pe.sources.USER):this.quill.format("list","unchecked",Pe.sources.USER):this.quill.format("list",e,Pe.sources.USER)}}};const H6e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',V6e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',z6e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',G6e='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',j6e='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/>
943<path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',U6e='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',W6e='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',$6e='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',gW='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',q6e='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',K6e='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',Y6e='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',X6e='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',Z6e='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',Q6e='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',J6e='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816
943H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',eje='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',tje='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',nje='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',rje='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',ije='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',oje='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',sje='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',aje='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',lje='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',uje='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',cje='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/>
943<path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',dje='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',hje='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',fje='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',gje='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',pje='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',mje='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Wb={align:{"":H6e,center:V6e,right:z6e,justify:G6e},background:j6e,blockquote:U6e,bold:W6e,clean:$6e,code:gW,"code-block":gW,color:q6e,direction:{"":K6e,rtl:Y6e},formula:X6e,header:{1:Z6e,2:Q6e,3:J6e,4:eje,5:tje,6:nje},italic:rje,image:ije,indent:{"+1":oje,"-1":sje},link:aje,list:{bullet:lje,check:uje,ordered:cje},script:{sub:dje,super:hje},strike:fje,table:gje,underline:pje,video:mje},vje='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let pW=0;function mW(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class fR{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),mW(this.label,"aria-expanded"),mW(this.options,"aria-hidden")}buildItem(t){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=t.getAttribute("value");return r&&n.setAttribute("data-value",r),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(n,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),n}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=vje,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","fal
943se"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${pW}`,pW+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);t.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");t!==r&&(r?.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class eoe extends fR{constructor(t,n){super(t),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(t){const n=super.buildItem(t);return n.style.backgroundColor=t.getAttribute("value")||"",n}selectItem(t,n){super.selectItem(t,n);const r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class toe extends fR{constructor(t,n){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,n){super.selectItem(t,n);const r=t||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const yje=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};let noe=class{constructor(t,n){this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,yje(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const n=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let s=0;if(o.right>i.right&&(s=i.right-o.right,this.root.style.left=`${n+s}px`),o.left<i.left&&(s=i.left-o.left,this.root.style.left=`${n+s}px`),o.bottom>i.bottom){const a=o.bottom-o.top,l=t.bottom-t.top+a;this.root.style.top=`${r-l}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}};const bje=[!1,"center","right","justify"],wje=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Cje=[!1,"serif","monospace"],Sje=["1","2","3",!1],xje=["small",!1,"large","huge"];class Rw extends Xm{constructor(t,n){super(t,n);const r=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEac
vendor: 8,421 bytes, line 943
943h(o=>{o.container.contains(i.target)||o.close()})};t.emitter.listenDOM("click",document.body,r)}addModule(t){const n=super.addModule(t);return t==="toolbar"&&this.extendToolbar(n),n}buildButtons(t,n){Array.from(t).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(o=>{if(o.startsWith("ql-")&&(o=o.slice(3),n[o]!=null))if(o==="direction")r.innerHTML=n[o][""]+n[o].rtl;else if(typeof n[o]=="string")r.innerHTML=n[o];else{const s=r.value||"";s!=null&&n[o][s]&&(r.innerHTML=n[o][s])}})})}buildPickers(t,n){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&yy(i,bje),typeof n.align=="object"))return new toe(i,n.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const o=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&yy(i,wje,o==="background"?"#ffffff":"#000000"),new eoe(i,n[o])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?yy(i,Cje):i.classList.contains("ql-header")?yy(i,Sje):i.classList.contains("ql-size")&&yy(i,xje)),new fR(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(et.events.EDITOR_CHANGE,r)}}Rw.DEFAULTS=Vd({},Xm.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");e==null&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class roe extends noe{constructor(t,n){super(t,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,et.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,et.sources.USER)),this.quill.root.scrollTop=n;break}case"video":t=Eje(t);case"formula":{if(!t)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,et.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",et.sources.USER),this.quill.setSelection(r+2,et.sources.USER)}break}}this.textbox.value="",this.hide()}}function Eje(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}function yy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(r=>{const i=document.createElement("option");r===n?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),e.appendChild(i)})}const Rje=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Aje extends roe{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(t,n){super(t,n),this.quill.on(et.events.EDITOR_CHANGE,(r,i,o,s)=>{if(r===et.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&s===et.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(i.index,i.length);if(a.length===1){const l=this.quill.getBounds(i);l!=null&&this.position(l)}else{const l=a[a.length-1],u=this.quill.getIndex(l),d=Math.min(l.length()-1,i.index+i.length-u),f=this.quill.getBounds(new eg(u,d));f!=null&&this.position(f)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(et.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const n=this.quill.getBounds(t);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(t){const n=super.position(t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}class ioe extends Rw{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Rje),super(t,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Aje(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Wb),this.buildPickers(t.container.querySelectorAll("select"),Wb))}}ioe.DEFAULTS=Vd({},Rw.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Pe.sources.USER)}}}}});const Tje=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Pje extends roe{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,et.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(et.events.SELECTION_CHANGE,(t,n,r)=>{if(t!=null){if(t.length===0&&r===et.sources.USER){const[i,o]=this.quill.scroll.descendant(dx,t.index);if(i!=null){this.linkRange=new eg(t.index-o,i.length());const s=dx.formats(i.domNode);this.preview.textContent=s,this.preview.setAttribute("href",s),this.show();const a=this.quill.getBounds(this.linkRange);a!=null&&this.position(a);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class ooe extends Rw{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Tje),super(t,n),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Wb),this.buildPickers(t.container.querySelectorAll("select"),Wb),this.tooltip=new Pje(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{t.handlers.link.call(t,!r.format.link)}))}}ooe.DEFAULTS=Vd({},Rw.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const t=this.quill.getSelection();if(t==null||t.length===0)return;let n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;
943r.edit("link",n)}else this.quill.format("link",!1,Pe.sources.USER)}}}}});Pe.register({"attributors/attribute/direction":Gie,"attributors/class/align":Hie,"attributors/class/background":_8e,"attributors/class/color":I8e,"attributors/class/direction":jie,"attributors/class/font":$ie,"attributors/class/size":Kie,"attributors/style/align":Vie,"attributors/style/background":gB,"attributors/style/color":fB,"attributors/style/direction":Uie,"attributors/style/font":qie,"attributors/style/size":Yie},!0);Pe.register({"formats/align":Hie,"formats/direction":jie,"formats/indent":R6e,"formats/background":gB,"formats/color":fB,"formats/font":$ie,"formats/size":Kie,"formats/blockquote":A6e,"formats/code-block":To,"formats/header":T6e,"formats/list":Ew,"formats/bold":bB,"formats/code":pB,"formats/italic":P6e,"formats/link":dx,"formats/script":O6e,"formats/strike":D6e,"formats/underline":M6e,"formats/formula":I6e,"formats/image":_6e,"formats/video":F6e,"modules/syntax":Jie,"modules/table":L6e,"modules/toolbar":CB,"themes/bubble":ioe,"themes/snow":ooe,"ui/icons":Wb,"ui/picker":fR,"ui/icon-picker":toe,"ui/color-picker":eoe,"ui/tooltip":noe},!0);var gR=class extends ye.Component{constructor(e){super(e),this.editingAreaRef=R.createRef(),this.containerRef=R.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp","useSemanticHTML"],this.state={generation:0},this.selection=null,this.onEditorChange=(n,r,i,o)=>{n==="text-change"?this.onEditorChangeText?.(this.props.useSemanticHTML!==!1?this.editor.getSemanticHTML():this.editor.root.innerHTML,r,o,this.unprivilegedEditor):n==="selection-change"&&this.onEditorChangeSelection?.(r,o,this.unprivilegedEditor)};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(ye.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(ye.Children.count(e.children)&&ye.Children.only(e.children)?.type==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const n=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,n)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(n=>!Ad(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!Ad(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const n=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.editor&&e.placeholder!==this.props.placeholder&&(this.editor.root.dataset.placeholder=this.props.placeholder||""),this.state.generation!==t.generation){const{delta:n,selection:r}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const i=this.editor;i.setContents(n),vW(()=>this.setEditorSelection(i,r))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){if(!this.editor)return;this.unhookEditor(this.editor);const e=this.props.modules?.toolbar;if(!(typeof e=="object"&&e&&"container"in e&&typeof e.container=="string"||typeof e=="string")){const n=this.containerRef.current?.querySelector(".ql-toolbar");n&&n.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const n=new Pe(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?Ad(e.ops,t.ops):Ad(e,t)}setEditorContents(e,t){this.value=t;const n=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),vW(()=>this.setEditorSelection(e,n))}setEditorSelection(e,t){if(this.selection=t,t){const n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){e?.scroll?.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:n}=this.state;return ye.Children.count(e)?ye.cloneElement(ye.Children.only(e),{key:n,ref:this.editingAreaRef}):t?Yy.jsx("pre",{ref:this.editingAreaRef},n):Yy.jsx("div",{ref:this.editingAreaRef},n)}render(){return Yy.jsx("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,children:this.renderEditingArea()},this.state.generation)}onEditorChangeText(e,t,n,r){if(!this.editor)return;const i=this.isDelta(this.value)?r.getContents():this.props.useSemanticHTML!==!1?r.getSemanticHTML():r.getHTML();i!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=i,this.props.onChange?.(e,t,n,r))}onEditorChangeSelection(e,t,n){if(!this.editor)return;const r=this.getEditorSelection(),i=!r&&e,o=r&&!e;Ad(e,r)||(this.selection=e,this.props.onChangeSelection?.(e,t,n),i?this.props.onFocus?.(e,t,n):o&&this.props.onBlur?.(r,t,n))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}};gR.displayName="React Quill";gR.Quill=Pe;gR.defaultProps={theme:"snow",modules:{},readOnly:!1};function vW(e){Promise.resolve().then(e)}var Gwt=gR;function soe(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Oje(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yW(e,t){return e.get(soe(e,t))}function Dje(e,t,n){Oje(e,t),t.set(e,n)}function Mje(e,t,n){return e.set(soe(e,t),n),n}const Ije=100,at={},_je=()=>{at.previousActiveElement instanceof HTMLElement?(at.previousActiveElement.focus(),at.previousActiveElement=null):document.body&&document.body.focus()},Fje=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;at.restoreFocusTimeout=setTimeout(()=>{_je(),t()},Ije),window.scrollTo(n,r)}),aoe="swal2-",kje=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","to
943p-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],Ce=kje.reduce((e,t)=>(e[t]=aoe+t,e),{}),Lje=["success","warning","info","question","error"],fx=Lje.reduce((e,t)=>(e[t]=aoe+t,e),{}),loe="SweetAlert2:",SB=e=>e.charAt(0).toUpperCase()+e.slice(1),Oo=e=>{console.warn(`${loe} ${typeof e=="object"?e.join(" "):e}`)},Eg=e=>{console.error(`${loe} ${e}`)},bW=[],Nje=e=>{bW.includes(e)||(bW.push(e),Oo(e))},uoe=(e,t=null)=>{Nje(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},pR=e=>typeof e=="function"?e():e,xB=e=>e&&typeof e.toPromise=="function",Aw=e=>xB(e)?e.toPromise():Promise.resolve(e),EB=e=>e&&Promise.resolve(e)===e,Bje=()=>navigator.userAgent.includes("Firefox"),Mo=()=>document.body.querySelector(`.${Ce.container}`),Tw=e=>{const t=Mo();return t?t.querySelector(e):null},Ts=e=>Tw(`.${e}`),en=()=>Ts(Ce.popup),Zm=()=>Ts(Ce.icon),Hje=()=>Ts(Ce["icon-content"]),coe=()=>Ts(Ce.title),RB=()=>Ts(Ce["html-container"]),doe=()=>Ts(Ce.image),AB=()=>Ts(Ce["progress-steps"]),mR=()=>Ts(Ce["validation-message"]),nu=()=>Tw(`.${Ce.actions} .${Ce.confirm}`),Qm=()=>Tw(`.${Ce.actions} .${Ce.cancel}`),Rg=()=>Tw(`.${Ce.actions} .${Ce.deny}`),Vje=()=>Ts(Ce["input-label"]),Jm=()=>Tw(`.${Ce.loader}`),Pw=()=>Ts(Ce.actions),hoe=()=>Ts(Ce.footer),vR=()=>Ts(Ce["timer-progress-bar"]),TB=()=>Ts(Ce.close),zje=` 944 a[href], 945 area[href], 946 input:not([disabled]), 947 select:not([disabled]), 948 textarea:not([disabled]), 949 button:not([disabled]), 950 iframe, 951 object, 952 embed, 953 [tabindex="0"], 954 [contenteditable], 955 audio[controls], 956 video[controls], 957 summary 958`,PB=()=>{const e=en();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((o,s)=>{const a=parseInt(o.getAttribute("tabindex")||"0"),l=parseInt(s.getAttribute("tabindex")||"0");return a>l?1:a<l?-1:0}),r=e.querySelectorAll(zje),i=Array.from(r).filter(o=>o.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(i))].filter(o=>Zo(o))},OB=()=>lc(document.body,Ce.shown)&&!lc(document.body,Ce["toast-shown"])&&!lc(document.body,Ce["no-backdrop"]),yR=()=>{const e=en();return e?lc(e,Ce.toast):!1},Gje=()=>{const e=en();return e?e.hasAttribute("data-loading"):!1},Ps=(e,t)=>{if(e.textContent="",t){const r=new DOMParser().parseFromString(t,"text/html"),i=r.querySelector("head");i&&Array.from(i.childNodes).forEach(s=>{e.appendChild(s)});const o=r.querySelector("body");o&&Array.from(o.childNodes).forEach(s=>{s instanceof HTMLVideoElement||s instanceof HTMLAudioElement?e.appendChild(s.cloneNode(!0)):e.appendChild(s)})}},lc=(e,t)=>t?t.split(/\s+/).every(n=>e.classList.contains(n)):!1,jje=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(Ce).includes(n)&&!Object.values(fx).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},xs=(e,t,n)=>{if(jje(e,t),!t.customClass)return;const r=t.customClass[n];if(r){if(typeof r!="string"&&!r.forEach){Oo(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}Jt(e,r)}},bR=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${Ce.popup} > .${Ce[t]}`);case"checkbox":return e.querySelector(`.${Ce.popup} > .${Ce.checkbox} input`);case"radio":return e.querySelector(`.${Ce.popup} > .${Ce.radio} input:checked`)||e.querySelector(`.${Ce.popup} > .${Ce.radio} input:first-child`);case"range":return e.querySelector(`.${Ce.popup} > .${Ce.range} input`);default:return e.querySelector(`.${Ce.popup} > .${Ce.input}`)}},foe=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},goe=(e,t,n)=>{if(!e||!t)return;const r=typeof t=="string"?t.split(/\s+/).filter(Boolean):t;(Array.isArray(e)?e:[e]).forEach(o=>{r.forEach(s=>{n?o.classList.add(s):o.classList.remove(s)})})},Jt=(e,t)=>{goe(e,t,!0)},ha=(e,t)=>{goe(e,t,!1)},Fd=(e,t)=>Array.from(e.children).find(n=>
958n instanceof HTMLElement&&lc(n,t)),Mf=(e,t,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||n===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},di=(e,t="flex")=>{e&&(e.style.display=t)},so=e=>{e&&(e.style.display="none")},DB=(e,t="block")=>{e&&new MutationObserver(()=>{Ow(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},wW=(e,t,n,r)=>{const i=e.querySelector(t);i&&i.style.setProperty(n,r)},Ow=(e,t,n="flex")=>{t?di(e,n):so(e)},Zo=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Uje=()=>!Zo(nu())&&!Zo(Rg())&&!Zo(Qm()),$F=e=>e.scrollHeight>e.clientHeight,Wje=(e,t)=>{let n=e;for(;n&&n!==t;){if($F(n))return!0;n=n.parentElement}return!1},poe=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},MB=(e,t=!1)=>{const n=vR();n&&Zo(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},$je=()=>{const e=vR();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),r=t/n*100;e.style.width=`${r}%`},qje=()=>typeof window>"u"||typeof document>"u",Kje=` 959 <div aria-labelledby="${Ce.title}" aria-describedby="${Ce["html-container"]}" class="${Ce.popup}" tabindex="-1"> 960 <button type="button" class="${Ce.close}"></button> 961 <ul class="${Ce["progress-steps"]}"></ul> 962 <div class="${Ce.icon}"></div> 963 <img class="${Ce.image}" /> 964 <h2 class="${Ce.title}" id="${Ce.title}"></h2> 965 <div class="${Ce["html-container"]}" id="${Ce["html-container"]}"></div> 966 <input class="${Ce.input}" id="${Ce.input}" /> 967 <input type="file" class="${Ce.file}" /> 968 <div class="${Ce.range}"> 969 <input type="range" /> 970 <output></output> 971 </div> 972 <select class="${Ce.select}" id="${Ce.select}"></select> 973 <div class="${Ce.radio}"></div> 974 <label class="${Ce.checkbox}"> 975 <input type="checkbox" id="${Ce.checkbox}" /> 976 <span class="${Ce.label}"></span> 977 </label> 978 <textarea class="${Ce.textarea}" id="${Ce.textarea}"></textarea> 979 <div class="${Ce["validation-message"]}" id="${Ce["validation-message"]}"></div> 980 <div class="${Ce.actions}"> 981 <div class="${Ce.loader}"></div> 982 <button type="button" class="${Ce.confirm}"></button> 983 <button type="button" class="${Ce.deny}"></button> 984 <button type="button" class="${Ce.cancel}"></button> 985 </div> 986 <div class="${Ce.footer}"></div> 987 <div class="${Ce["timer-progress-bar-container"]}"> 988 <div class="${Ce["timer-progress-bar"]}"></div> 989 </div> 990 </div> 991`.replace(/(^|\n)\s*/g,""),Yje=()=>{const e=Mo();return e?(e.remove(),ha([document.documentElement,document.body],[Ce["no-backdrop"],Ce["toast-shown"],Ce["has-column"]]),!0):!1},Uh=()=>{at.currentInstance&&at.currentInstance.resetValidationMessage()},Xje=()=>{const e=en();if(!e)return;const t=Fd(e,Ce.input),n=Fd(e,Ce.file),r=e.querySelector(`.${Ce.range} input`),i=e.querySelector(`.${Ce.range} output`),o=Fd(e,Ce.select),s=e.querySelector(`.${Ce.checkbox} input`),a=Fd(e,Ce.textarea);t&&(t.oninput=Uh),n&&(n.onchange=Uh),o&&(o.onchange=Uh),s&&(s.onchange=Uh),a&&(a.oninput=Uh),r&&i&&(r.oninput=()=>{Uh(),i.value=r.value},r.onchange=()=>{Uh(),i.value=r.value})},Zje=e=>{if(typeof e=="string"){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Qje=e=>{const t=en();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Jje=e=>{window.getComputedStyle(e).direction==="rtl"&&(Jt(Mo(),Ce.rtl),at.isRTL=!0)},eUe=e=>{const t=Yje();if(qje()){Eg("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=Ce.container,t&&Jt(n,Ce["no-transition"]),Ps(n,Kje),n.dataset.swal2Theme=e.theme;const r=Zje(e.target||"body");r.appendChild(n),e.topLayer&&(n.setAttribute("popover",""),n.showPopover()),Qje(e),Jje(r),Xje()},IB=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?tUe(e,t):e&&Ps(t,e)},tUe=(e,t)=>{"jquery"in e?nUe(t,e):Ps(t,e.toString())},nUe=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},rUe=(e,t)=>{const n=Pw(),r=Jm();!n||!r||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?so(n):di(n),xs(n,t,"actions"),iUe(n,r,t),Ps(r,t.loaderHtml||""),xs(r,t,"loader"))};function iUe(e,t,n){const r=nu(),i=Rg(),o=Qm();!r||!i||!o||(PD(r,"confirm",n),PD(i,"deny",n),PD(o,"cancel",n),oUe(r,i,o,n),n.reverseButtons&&(n.toast?(e.insertBefore(o,r),e.insertBefore(i,r)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(r,t))))}function oUe(e,t,n,r){if(!r.buttonsStyling){ha([e,t,n],Ce.styled);return}Jt([e,t,n],Ce.styled),[[e,"confirm",r.confirmButtonColor],[t,"deny",r.denyButtonColor],[n,"cancel",r.cancelButtonColor]].forEac
991h(([o,s,a])=>{a&&o.style.setProperty(`--swal2-${s}-button-background-color`,a),sUe(o)})}function sUe(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function PD(e,t,n){const r=SB(t);Ow(e,n[`show${r}Button`],"inline-block"),Ps(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=Ce[t],xs(e,n,`${t}Button`)}const aUe=(e,t)=>{const n=TB();n&&(Ps(n,t.closeButtonHtml||""),xs(n,t,"closeButton"),Ow(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},lUe=(e,t)=>{const n=Mo();n&&(uUe(n,t.backdrop),cUe(n,t.position),dUe(n,t.grow),xs(n,t,"container"))};function uUe(e,t){typeof t=="string"?e.style.background=t:t||Jt([document.documentElement,document.body],Ce["no-backdrop"])}function cUe(e,t){t&&(t in Ce?Jt(e,Ce[t]):(Oo('The "position" parameter is not valid, defaulting to "center"'),Jt(e,Ce.center)))}function dUe(e,t){t&&Jt(e,Ce[`grow-${t}`])}var pn={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const hUe=["input","file","range","select","radio","checkbox","textarea"],fUe=(e,t)=>{const n=en();if(!n)return;const r=pn.innerParams.get(e),i=!r||t.input!==r.input;hUe.forEach(o=>{const s=Fd(n,Ce[o]);s&&(mUe(o,t.inputAttributes),s.className=Ce[o],i&&so(s))}),t.input&&(i&&gUe(t),vUe(t))},gUe=e=>{if(!e.input)return;if(!Sr[e.input]){Eg(`Unexpected type of input! Expected ${Object.keys(Sr).join(" | ")}, got "${e.input}"`);return}const t=moe(e.input);if(!t)return;const n=Sr[e.input](t,e);di(t),e.inputAutoFocus&&setTimeout(()=>{foe(n)})},pUe=e=>{for(const{name:t}of Array.from(e.attributes))["id","type","value","style"].includes(t)||e.removeAttribute(t)},mUe=(e,t)=>{const n=en();if(!n)return;const r=bR(n,e);if(r){pUe(r);for(const i in t)r.setAttribute(i,t[i])}},vUe=e=>{if(!e.input)return;const t=moe(e.input);t&&xs(t,e,"input")},_B=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Dw=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),i=Ce["input-label"];r.setAttribute("for",e.id),r.className=i,typeof n.customClass=="object"&&Jt(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},moe=e=>{const t=en();if(t)return Fd(t,Ce[e]||Ce.input)},gx=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:EB(t)||Oo(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Sr={};Sr.text=Sr.email=Sr.password=Sr.number=Sr.tel=Sr.url=Sr.search=Sr.date=Sr["datetime-local"]=Sr.time=Sr.week=Sr.month=(e,t)=>{const n=e;return gx(n,t.inputValue),Dw(n,n,t),_B(n,t),n.type=t.input,n};Sr.file=(e,t)=>{const n=e;return Dw(n,n,t),_B(n,t),n};Sr.range=(e,t)=>{const n=e,r=n.querySelector("input"),i=n.querySelector("output");return r&&(gx(r,t.inputValue),r.type=t.input,Dw(r,e,t)),i&&gx(i,t.inputValue),e};Sr.select=(e,t)=>{const n=e;if(n.textContent="",t.inputPlaceholder){const r=document.createElement("option");Ps(r,t.inputPlaceholder),r.value="",r.disabled=!0,r.selected=!0,n.appendChild(r)}return Dw(n,n,t),n};Sr.radio=e=>{const t=e;return t.textContent="",e};Sr.checkbox=(e,t)=>{const n=en();if(!n)throw new Error("Popup not found");const r=bR(n,"checkbox");if(!r)throw new Error("Checkbox input not found");r.value="1",r.checked=!!t.inputValue;const o=e.querySelector("span");if(o){const s=t.inputPlaceholder||t.inputLabel;s&&Ps(o,s)}return r};Sr.textarea=(e,t)=>{const n=e;gx(n,t.inputValue),_B(n,t),Dw(n,n,t);const r=i=>parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const i=en();if(!i)return;const o=parseInt(window.getComputedStyle(i).width),s=()=>
991{if(!document.body.contains(n))return;const a=n.offsetWidth+r(n),l=en();l&&(a>o?l.style.width=`${a}px`:Mf(l,"width",t.width))};new MutationObserver(s).observe(n,{attributes:!0,attributeFilter:["style"]})}}),n};const yUe=(e,t)=>{const n=RB();n&&(DB(n),xs(n,t,"htmlContainer"),t.html?(IB(t.html,n),di(n,"block")):t.text?(n.textContent=t.text,di(n,"block")):so(n),fUe(e,t))},bUe=(e,t)=>{const n=hoe();n&&(DB(n),Ow(n,!!t.footer,"block"),t.footer&&IB(t.footer,n),xs(n,t,"footer"))},wUe=(e,t)=>{const n=pn.innerParams.get(e),r=Zm();if(!r)return;if(n&&t.icon===n.icon){SW(r,t),CW(r,t);return}if(!t.icon&&!t.iconHtml){so(r);return}if(t.icon&&Object.keys(fx).indexOf(t.icon)===-1){Eg(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),so(r);return}di(r),SW(r,t),CW(r,t),Jt(r,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",voe)},CW=(e,t)=>{for(const[n,r]of Object.entries(fx))t.icon!==n&&ha(e,r);Jt(e,t.icon&&fx[t.icon]),xUe(e,t),voe(),xs(e,t,"icon")},voe=()=>{const e=en();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color");e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix").forEach(r=>{r.style.backgroundColor=t})},CUe=e=>` 992 ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""} 993 <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span> 994 <div class="swal2-success-ring"></div> 995 ${e.animation?'<div class="swal2-success-fix"></div>':""} 996 ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""} 997`,SUe=` 998 <span class="swal2-x-mark"> 999 <span class="swal2-x-mark-line-left"></span> 1000 <span class="swal2-x-mark-line-right"></span> 1001 </span> 1002`,SW=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";t.iconHtml?r=xW(t.iconHtml):t.icon==="success"?(r=CUe(t),n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?r=SUe:t.icon&&(r=xW({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==r.trim()&&Ps(e,r)},xUe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])wW(e,n,"background-color",t.iconColor);wW(e,".swal2-success-ring","border-color",t.iconColor)}},xW=e=>`<div class="${Ce["icon-content"]}">${e}</div>`,EUe=(e,t)=>{const n=doe();if(n){if(!t.imageUrl){so(n);return}di(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),Mf(n,"width",t.imageWidth),Mf(n,"height",t.imageHeight),n.className=Ce.image,xs(n,t,"image")}};let FB=!1,yoe=0,boe=0,woe=0,Coe=0;const RUe=e=>{e.addEventListener("mousedown",px),document.body.addEventListener("mousemove",mx),e.addEventListener("mouseup",vx),e.addEventListener("touchstart",px),document.body.addEventListener("touchmove",mx),e.addEventListener("touchend",vx)},AUe=e=>{e.removeEventListener("mousedown",px),document.body.removeEventListener("mousemove",mx),e.removeEventListener("mouseup",vx),e.removeEventListener("touchstart",px),document.body.removeEventListener("touchmove",mx),e.removeEventListener("touchend",vx)},px=e=>{const t=en();if(!t)return;const n=Zm();if(e.target===t||n&&n.contains(e.target)){FB=!0;const r=Soe(e);yoe=r.clientX,boe=r.clientY,woe=parseInt(t.style.insetInlineStart)||0,Coe=parseInt(t.style.insetBlockStart)||0,Jt(t,"swal2-dragging")}},mx=e=>{const t=en();if(t&&FB){let{clientX:n,clientY:r}=Soe(e);const i=n-yoe;t.style.insetInlineStart=`${woe+(at.isRTL?-i:i)}px`,t.style.insetBlockStart=`${Coe+(r-boe)}px`}},vx=()=>{const e=en();FB=!1,ha(e,"swal2-dragging")},Soe=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},TUe=(e,t)=>{const n=Mo(),r=en();if(!(!n||!r)){if(t.toast){Mf(n,"width",t.width),r.style.width="100%";const i=Jm();i&&r.insertBefore(i,Zm())}else Mf(r,"width",t.width);Mf(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),so(mR()),PUe(r,t),t.draggable&&!t.toast?(Jt(r,Ce.draggable),RUe(r)):(ha(r,Ce.draggable),AUe(r))}},PUe=(e,t)=>{const n=t.showClass||{};e.className=`${Ce.popup} ${Zo(e)?n.popup:""}`,t.toast?(Jt([document.documentElement,document.body],Ce["toast-shown"]),Jt(e,Ce.toast)):Jt(e,Ce.modal),xs(e,t,"popup"),typeof t.customClass=="string"&&Jt(e,t.customClass),t.icon&&Jt(e,Ce[`icon-${t.icon}`])},OUe=(e,t)=>{const n=AB();if(!n)return;const{progressSteps:r,currentProgressStep:i}=t;if(!r||r.length===0||i===void 0){so(n);return}di(n),n.textContent="",i>=r.length&&Oo("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((o,s)=>{const a=DUe(o);if(n.appendChild(a),s===i&&Jt(a,Ce["active-progress-step"]),s!==r.length-1){const l=MUe(t);n.appendChild(l)}})},DUe=e=>{const t=document.createElement("li");return Jt(t,Ce["progress-step"]),Ps(t,e),t},MUe=e=>{const t=document.createElement("li");return Jt(t,Ce["progress-step-line"]),e.progressStepsDistance&&Mf(t,"width",e.progressStepsDistance),t},IUe=(e,t)=>{const n=coe();n&&(DB(n),Ow(n,!!(t.title||t.titleText),"block"),t.title&&IB(t.title,n),t.titleText&&(n.innerText=t.titleText),xs(n,t,"title"))},xoe=(e,t)=>{var n;TUe(e,t),lUe(e,t),OUe(e,t),wUe(e,t),EUe(e,t),IUe(e,t),aUe(e,t),yUe(e,t),rUe(e,t),bUe(e,t);const r=en();typeof t.didRender=="function"&&r&&t.didRender(r),(n=at.eventEmitter)===null||n===void 0||n.emit("didRender",r)},_Ue=()=>
1002Zo(en()),Eoe=()=>{var e;return(e=nu())===null||e===void 0?void 0:e.click()},FUe=()=>{var e;return(e=Rg())===null||e===void 0?void 0:e.click()},kUe=()=>{var e;return(e=Qm())===null||e===void 0?void 0:e.click()},ev=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Roe=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},LUe=(e,t,n)=>{if(Roe(e),!t.toast){const r=o=>BUe(t,o,n);e.keydownHandler=r;const i=t.keydownListenerCapture?window:en();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const o=r;e.keydownTarget.addEventListener("keydown",o,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},qF=(e,t)=>{var n;const r=PB();return r.length?(e=e+t,e===-2&&(e=r.length-1),e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus(),!(Bje()&&r[e]instanceof HTMLIFrameElement)):((n=en())===null||n===void 0||n.focus(),!0)},Aoe=["ArrowRight","ArrowDown"],NUe=["ArrowLeft","ArrowUp"],BUe=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?HUe(t,e):t.key==="Tab"?VUe(t):[...Aoe,...NUe].includes(t.key)?zUe(t.key):t.key==="Escape"&&GUe(t,e,n)))},HUe=(e,t)=>{if(!pR(t.allowEnterKey))return;const n=en();if(!n||!t.input)return;const r=bR(n,t.input);if(e.target&&r&&e.target instanceof HTMLElement&&e.target.outerHTML===r.outerHTML){if(["textarea","file"].includes(t.input))return;Eoe(),e.preventDefault()}},VUe=e=>{const t=e.target,r=PB().findIndex(o=>o===t);let i=!0;e.shiftKey?i=qF(r,-1):i=qF(r,1),e.stopPropagation(),i&&e.preventDefault()},zUe=e=>{const t=Pw(),n=nu(),r=Rg(),i=Qm();if(!t||!n||!r||!i)return;const o=[n,r,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Aoe.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let l=0;l<t.children.length;l++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&Zo(a))break}a instanceof HTMLButtonElement&&a.focus()}},GUe=(e,t,n)=>{e.preventDefault(),pR(t.allowEscapeKey)&&n(ev.esc)};var Pm={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const jUe=()=>{const e=Mo();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Toe=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},kB=typeof window<"u"&&!!window.GestureEvent,UUe=kB&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,WUe=()=>{if(kB&&!lc(document.body,Ce.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,Jt(document.body,Ce.iosfix),$Ue()}},$Ue=()=>{const e=Mo();if(!e)return;let t;e.ontouchstart=n=>{t=qUe(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},qUe=e=>{const t=e.target,n=Mo(),r=RB();return!n||!r||KUe(e)||YUe(e)?!1:t===n||!$F(n)&&t instanceof HTMLElement&&!Wje(t,r)&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!($F(r)&&r.contains(t))},KUe=e=>!!(e.touches&&e.touches.length&&e.touches[0].touchType==="stylus"),YUe=e=>e.touches&&e.touches.length>1,XUe=()=>{if(lc(document.body,Ce.iosfix)){const e=parseInt(document.body.style.top,10);ha(document.body,Ce.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},ZUe=()=>{const e=document.createElement("div");e.className=Ce["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let um=null;const QUe=e=>{um===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(um=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${um+ZUe()}px`)},JUe=()=>{um!==null&&(document.body.style.paddingRight=`${um}px`,um=null)};function Poe(e,t,n,r){yR()?EW(e,r):(Fje(n).then(()=>EW(e,r)),Roe(at)),kB?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),OB()&&(JUe(),XUe(),Toe()),eWe()}function eWe(){ha([document.documentElement,document.body],[Ce.shown,Ce["height-auto"],Ce["no-backdrop"],Ce["toast-shown"]])}function kd(e){e=nWe(e);const t=Pm.swalPromiseResolve.get(this),n=tWe(this);this.isAwaitingPromise?e.isDismissed||(Mw(this),t(e)):n&&t(e)}const tWe=e=>{const t=en();if(!t)return!1;const n=pn.innerParams.get(e);if(!n||lc(t,n.hideClass.popup))return!1;ha(t,n.showClass.popup),Jt(t,n.hideClass.popup);const r=Mo();return ha(r,n.showClass.backdrop),Jt(r,n.hideClass.backdrop),rWe(e,t,n),!0};function Ooe(e){const t=Pm.swalPromiseReject.get(this);Mw(this),t&&t(e)}const Mw=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,pn.innerParams.get(e)||e._destroy())},nWe=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1}
1002,e),rWe=(e,t,n)=>{var r;const i=Mo(),o=poe(t);typeof n.willClose=="function"&&n.willClose(t),(r=at.eventEmitter)===null||r===void 0||r.emit("willClose",t),o&&i?iWe(e,t,i,!!n.returnFocus,n.didClose):i&&Poe(e,i,!!n.returnFocus,n.didClose)},iWe=(e,t,n,r,i)=>{at.swalCloseEventFinishedCallback=Poe.bind(null,e,n,r,i);const o=function(s){if(s.target===t){var a;(a=at.swalCloseEventFinishedCallback)===null||a===void 0||a.call(at),delete at.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o)}};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},EW=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=at.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},Om=e=>{let t=en();if(t||new XF,t=en(),!t)return;const n=Jm();yR()?so(Zm()):oWe(t,e),di(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},oWe=(e,t)=>{const n=Pw(),r=Jm();!n||!r||(!t&&Zo(nu())&&(t=nu()),di(n),t&&(so(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),Jt([e,n],Ce.loading))},sWe=(e,t)=>{t.input==="select"||t.input==="radio"?dWe(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(xB(t.inputValue)||EB(t.inputValue))&&(Om(nu()),hWe(e,t))},aWe=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return lWe(n);case"radio":return uWe(n);case"file":return cWe(n);default:return t.inputAutoTrim?n.value.trim():n.value}},lWe=e=>e.checked?1:0,uWe=e=>e.checked?e.value:null,cWe=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,dWe=(e,t)=>{const n=en();if(!n)return;const r=i=>{t.input==="select"?fWe(n,KF(i),t):t.input==="radio"&&gWe(n,KF(i),t)};xB(t.inputOptions)||EB(t.inputOptions)?(Om(nu()),Aw(t.inputOptions).then(i=>
1002{e.hideLoading(),r(i)})):typeof t.inputOptions=="object"?r(t.inputOptions):Eg(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},hWe=(e,t)=>{const n=e.getInput();n&&(so(n),Aw(t.inputValue).then(r=>{n.value=t.input==="number"?`${parseFloat(r)||0}`:`${r}`,di(n),n.focus(),e.hideLoading()}).catch(r=>{Eg(`Error in inputValue promise: ${r}`),n.value="",di(n),n.focus(),e.hideLoading()}))};function fWe(e,t,n){const r=Fd(e,Ce.select);if(!r)return;const i=(o,s,a)=>{const l=document.createElement("option");l.value=a,Ps(l,s),l.selected=Doe(a,n.inputValue),o.appendChild(l)};t.forEach(o=>{const s=o[0],a=o[1];if(Array.isArray(a)){const l=document.createElement("optgroup");l.label=s,l.disabled=!1,r.appendChild(l),a.forEach(u=>i(l,u[1],u[0]))}else i(r,a,s)}),r.focus()}function gWe(e,t,n){const r=Fd(e,Ce.radio);if(!r)return;t.forEach(o=>{const s=o[0],a=o[1],l=document.createElement("input"),u=document.createElement("label");l.type="radio",l.name=Ce.radio,l.value=s,Doe(s,n.inputValue)&&(l.checked=!0);const d=document.createElement("span");Ps(d,a),d.className=Ce.label,u.appendChild(l),u.appendChild(d),r.appendChild(u)});const i=r.querySelectorAll("input");i.length&&i[0].focus()}const KF=e=>(e instanceof Map?Array.from(e):Object.entries(e)).map(([n,r])=>[n,typeof r=="object"?KF(r):r]),Doe=(e,t)=>!!t&&t!=null&&t.toString()===e.toString(),pWe=e=>{const t=pn.innerParams.get(e);e.disableButtons(),t.input?Moe(e,"confirm"):NB(e,!0)},mWe=e=>{const t=pn.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Moe(e,"deny"):LB(e,!1)},vWe=(e,t)=>{e.disableButtons(),t(ev.cancel)},Moe=(e,t)=>{const n=pn.innerParams.get(e);if(!n.input){Eg(`The "input" parameter is needed to be set when using returnInputValueOn${SB(t)}`);return}const r=e.getInput(),i=aWe(e,n);n.inputValidator?yWe(e,i,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):t==="deny"?LB(e,i):NB(e,i)},yWe=(e,t,n)=>{const r=pn.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>Aw(r.inputValidator(t,r.validationMessage))).then(o=>{e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):n==="deny"?LB(e,t):NB(e,t)})},LB=(e,t)=>{const n=pn.innerParams.get(e);n.showLoaderOnDeny&&Om(Rg()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>Aw(n.preDeny(t,n.validationMessage))).then(i=>{i===!1?(e.hideLoading(),Mw(e)):e.close({isDenied:!0,value:typeof i>"u"?t:i})}).catch(i=>Ioe(e,i))):e.close({isDenied:!0,value:t})},RW=(e,t)=>{e.close({isConfirmed:!0,value:t})},Ioe=(e,t)=>{e.rejectPromise(t)},NB=(e,t)=>{const n=pn.innerParams.get(e);n.showLoaderOnConfirm&&Om(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>Aw(n.preConfirm(t,n.validationMessage))).then(i=>{Zo(mR())||i===!1?(e.hideLoading(),Mw(e)):RW(e,typeof i>"u"?t:i)}).catch(i=>Ioe(e,i))):RW(e,t)};function yx(){const e=pn.innerParams.get(this);if(!e)return;const t=pn.domCache.get(this);so(t.loader),yR()?e.icon&&di(Zm()):bWe(t),ha([t.popup,t.actions],Ce.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),this.enableButtons()}const bWe=e=>{const t=e.loader.getAttribute("data-button-to-replace"),n=t?e.popup.getElementsByClassName(t):[];n.length?di(n[0],"inline-block"):Uje()&&so(e.actions)};function _oe(){const e=pn.innerParams.get(this),t=pn.domCache.get(this);return t?bR(t.popup,e.input):null}function Foe(e,t,n){const r=pn.domCache.get(e);t.forEach(i=>{r[i].disabled=n})}function koe(e,t){const n=en();!n||!e||(e.type==="radio"?n.querySelectorAll(`[name="${Ce.radio}"]`).forEach(i=>{i.disabled=t}):e.disabled=t)}function Loe(){Foe(this,["confirmButton","denyButton","cancelButton"],!1);const e=pn.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),pn.focusedElement.delete(this)}function Noe(){pn.focusedElement.set(this,document.activeElement),Foe(this,["confirmButton","denyButton","cancelButton"],!0)}function Boe(){koe(this.getInput(),!1)}function Hoe(){koe(this.getInput(),!0)}function Voe(e){const t=pn.domCache.get(this),n=pn.innerParams.get(this);Ps(t.validationMessage,e),t.validationMessage.className=Ce["validation-message"],n.customClass&&n.customClass.validationMessage&&Jt(t.validationMessage,n.customClass.validationMessage),di(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",Ce["validation-message"]),foe(r),Jt(r,Ce.inputerror))}function zoe(){const e=pn.domCache.get(this);e.validationMessage&&so(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),ha(t,Ce.inputerror))}const Ld={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose
vendor: 4,182 bytes, line 1002
1002:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},wWe=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],CWe={allowEnterKey:void 0},SWe=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Goe=e=>Object.prototype.hasOwnProperty.call(Ld,e),joe=e=>wWe.indexOf(e)!==-1,Uoe=e=>CWe[e],xWe=e=>{Goe(e)||Oo(`Unknown parameter "${e}"`)},EWe=e=>{SWe.includes(e)&&Oo(`The parameter "${e}" is incompatible with toasts`)},RWe=e=>{const t=Uoe(e);t&&uoe(e,t)},Woe=e=>{e.backdrop===!1&&e.allowOutsideClick&&Oo('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&Oo(`Invalid theme "${e.theme}"`);for(const t in e)xWe(t),e.toast&&EWe(t),RWe(t)};function $oe(e){const t=Mo(),n=en(),r=pn.innerParams.get(this);if(!n||lc(n,r.hideClass.popup)){Oo("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const i=AWe(e),o=Object.assign({},r,i);Woe(o),t&&(t.dataset.swal2Theme=o.theme),xoe(this,o),pn.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const AWe=e=>{const t={};return Object.keys(e).forEach(n=>{if(joe(n)){const r=e;t[n]=r[n]}else Oo(`Invalid parameter to update: ${n}`)}),t};function qoe(){var e;const t=pn.domCache.get(this),n=pn.innerParams.get(this);if(!n){Koe(this);return}t.popup&&at.swalCloseEventFinishedCallback&&(at.swalCloseEventFinishedCallback(),delete at.swalCloseEventFinishedCallback),typeof n.didDestroy=="function"&&n.didDestroy(),(e=at.eventEmitter)===null||e===void 0||e.emit("didDestroy"),TWe(this)}const TWe=e=>{Koe(e),delete e.params,delete at.keydownHandler,delete at.keydownTarget,delete at.currentInstance},Koe=e=>{e.isAwaitingPromise?(OD(pn,e),e.isAwaitingPromise=!0):(OD(Pm,e),OD(pn,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},OD=(e,t)=>{for(const n in e)e[n].delete(t)};var PWe=Object.freeze({__proto__:null,_destroy:qoe,close:kd,closeModal:kd,closePopup:kd,closeToast:kd,disableButtons:Noe,disableInput:Hoe,disableLoading:yx,enableButtons:Loe,enableInput:Boe,getInput:_oe,handleAwaitingPromise:Mw,hideLoading:yx,rejectPromise:Ooe,resetValidationMessage:zoe,showValidationMessage:Voe,update:$oe});const OWe=(e,t,n)=>{e.toast?DWe(e,t,n):(IWe(t),_We(t),FWe(e,t,n))},DWe=(e,t,n)=>{t.popup.onclick=()=>{e&&(MWe(e)||e.timer||e.input)||n(ev.close)}},MWe=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let bx=!1;const IWe=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(bx=!0)}}},_We=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(bx=!0)}}}
1002,FWe=(e,t,n)=>{t.container.onclick=r=>{if(bx){bx=!1;return}r.target===t.container&&pR(e.allowOutsideClick)&&n(ev.backdrop)}},kWe=e=>typeof e=="object"&&e!==null&&"jquery"in e,AW=e=>e instanceof Element||kWe(e),LWe=e=>{const t={};return typeof e[0]=="object"&&!AW(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,r)=>{const i=e[r];typeof i=="string"||AW(i)?t[n]=i:i!==void 0&&Eg(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),t};function NWe(...e){return new this(...e)}function BWe(e){class t extends this{_main(r,i){return super._main(r,Object.assign({},e,i))}}return t}const HWe=()=>at.timeout&&at.timeout.getTimerLeft(),Yoe=()=>{if(at.timeout)return $je(),at.timeout.stop()},Xoe=()=>{if(at.timeout){const e=at.timeout.start();return MB(e),e}},VWe=()=>{const e=at.timeout;return e&&(e.running?Yoe():Xoe())},zWe=e=>{if(at.timeout){const t=at.timeout.increase(e);return MB(t,!0),t}},GWe=()=>!!(at.timeout&&at.timeout.isRunning());let TW=!1;const YF={};function jWe(e="data-swal-template"){YF[e]=this,TW||(document.body.addEventListener("click",UWe),TW=!0)}const UWe=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in YF){const r=t.getAttribute&&t.getAttribute(n);if(r){YF[n].fire({template:r});return}}};class WWe{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const r=this._getHandlersByEventName(t);r.includes(n)||r.push(n)}once(t,n){const r=(...i)=>{this.removeListener(t,r),n.apply(this,i)};this.on(t,r)}emit(t,...n){this._getHandlersByEventName(t).forEach(r=>{try{r.apply(this,n)}catch(i){console.error(i)}})}removeListener(t,n){const r=this._getHandlersByEventName(t),i=r.indexOf(n);i>-1&&r.splice(i,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}at.eventEmitter=new WWe;const $We=(e,t)=>{at.eventEmitter&&at.eventEmitter.on(e,t)},qWe=(e,t)=>{at.eventEmitter&&at.eventEmitter.once(e,t)},KWe=(e,t)=>{if(at.eventEmitter){if(!e){at.eventEmitter.reset();return}t?at.eventEmitter.removeListener(e,t):at.eventEmitter.removeAllListeners(e)}};var YWe=Object.freeze({__proto__:null,argsToParams:LWe,bindClickHandler:jWe,clickCancel:kUe,clickConfirm:Eoe,clickDeny:FUe,enableLoading:Om,fire:NWe,getActions:Pw,getCancelButton:Qm,getCloseButton:TB,getConfirmButton:nu,getContainer:Mo,getDenyButton:Rg,getFocusableElements:PB,getFooter:hoe,getHtmlContainer:RB,getIcon:Zm,getIconContent:Hje,getImage:doe,getInputLabel:Vje,getLoader:Jm,getPopup:en,getProgressSteps:AB,getTimerLeft:HWe,getTimerProgressBar:vR,getTitle:coe,getValidationMessage:mR,increaseTimer:zWe,isDeprecatedParameter:Uoe,isLoading:Gje,isTimerRunning:GWe,isUpdatableParameter:joe,isValidParameter:Goe,isVisible:_Ue,mixin:BWe,off:KWe,on:$We,once:qWe,resumeTimer:Xoe,showLoading:Om,stopTimer:Yoe,toggleTimer:VWe});class XWe{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Zoe=["swal-title","swal-html","swal-footer"],ZWe=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return o$e(n),Object.assign(QWe(n),JWe(n),e$e(n),t$e(n),n$e(n),r$e(n),i$e(n,Zoe))},QWe=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(r=>{ng(r,["name","value"]);const i=r.getAttribute("name"),o=r.getAttribute("value");!i||!o||(i in Ld&&typeof Ld[i]=="boolean"?t[i]=o!=="false":i in Ld&&typeof Ld[i]=="object"?t[i]=JSON.parse(o):t[i]=o)}),t},JWe=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(r=>{const i=r.getAttribute("name"),o=r.getAttribute("value");!i||!o||(t[i]=new Function(`return ${o}`)())}),t},e$e=e=>{const t={};
1002return Array.from(e.querySelectorAll("swal-button")).forEach(r=>{ng(r,["type","color","aria-label"]);const i=r.getAttribute("type");if(!i||!["confirm","cancel","deny"].includes(i))return;t[`${i}ButtonText`]=r.innerHTML,t[`show${SB(i)}Button`]=!0;const o=r.getAttribute("color");o!==null&&(t[`${i}ButtonColor`]=o);const s=r.getAttribute("aria-label");s!==null&&(t[`${i}ButtonAriaLabel`]=s)}),t},t$e=e=>{const t={},n=e.querySelector("swal-image");if(n){ng(n,["src","width","height","alt"]);const r=n.getAttribute("src");r!==null&&(t.imageUrl=r||void 0);const i=n.getAttribute("width");i!==null&&(t.imageWidth=i||void 0);const o=n.getAttribute("height");o!==null&&(t.imageHeight=o||void 0);const s=n.getAttribute("alt");s!==null&&(t.imageAlt=s||void 0)}return t},n$e=e=>{const t={},n=e.querySelector("swal-icon");return n&&(ng(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},r$e=e=>{const t={},n=e.querySelector("swal-input");n&&(ng(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach(i=>{ng(i,["value"]);const o=i.getAttribute("value");if(!o)return;const s=i.innerHTML;t.inputOptions[o]=s})),t},i$e=(e,t)=>{const n={};for(const r in t){const i=t[r],o=e.querySelector(i);o&&(ng(o,[]),n[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return n},o$e=e=>{const t=Zoe.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const r=n.tagName.toLowerCase();t.includes(r)||Oo(`Unrecognized element <${r}>`)})},ng=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&Oo([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Qoe=10,s$e=e=>{var t,n;const r=Mo(),i=en();if(!r||!i)return;typeof e.willOpen=="function"&&e.willOpen(i),(t=at.eventEmitter)===null||t===void 0||t.emit("willOpen",i);const s=window.getComputedStyle(document.body).overflowY;if(u$e(r,i,e),setTimeout(()=>{a$e(r,i)},Qoe),OB()&&(l$e(r,e.scrollbarPadding!==void 0?e.scrollbarPadding:!1,s),jUe()),UUe&&e.backdrop===!1&&i.scrollHeight>r.clientHeight&&(r.style.pointerEvents="auto"),!yR()&&!at.previousActiveElement&&(at.previousActiveElement=document.activeElement),typeof e.didOpen=="function"){const a=e.didOpen;setTimeout(()=>a(i))}(n=at.eventEmitter)===null||n===void 0||n.emit("didOpen",i)},wx=e=>{const t=en();if(!t||e.target!==t)return;const n=Mo();n&&(t.removeEventListener("animationend",wx),t.removeEventListener("transitionend",wx),n.style.overflowY="auto",ha(n,Ce["no-transition"]))},a$e=(e,t)=>{poe(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",wx),t.addEventListener("transitionend",wx)):e.style.overflowY="auto"},l$e=(e,t,n)=>{WUe(),t&&n!=="hidden"&&QUe(n),setTimeout(()=>{e.scrollTop=0})},u$e=(e,t,n)=>{var r;(r=n.showClass)!==null&&r!==void 0&&r.backdrop&&Jt(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),di(t,"grid"),setTimeout(()=>{var i;(i=n.showClass)!==null&&i!==void 0&&i.popup&&Jt(t,n.showClass.popup),t.style.removeProperty("opacity")},Qoe)):di(t,"grid"),Jt([document.documentElement,document.body],Ce.shown),n.heightAuto&&n.backdrop&&!n.toast&&Jt([document.documentElement,document.body],Ce["height-auto"])};var PW={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function c$e(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=PW.email),e.input==="url"&&(e.inputValidator=PW.url))}function d$e(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(Oo('Target parameter is not val
1002id, defaulting to "body"'),e.target="body")}function h$e(e){c$e(e),e.showLoaderOnConfirm&&!e.preConfirm&&Oo(`showLoaderOnConfirm is set to true, but preConfirm is not defined. 1003showLoaderOnConfirm should be used together with preConfirm, see usage example: 1004https://sweetalert2.github.io/#ajax-request`),d$e(e),typeof e.title=="string"&&(e.title=e.title.split(` 1005`).join("<br />")),eUe(e)}let Nl;var bS=new WeakMap;class Rr{constructor(...t){if(Dje(this,bS,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),typeof window>"u")return;Nl=this;const n=Object.freeze(this.constructor.argsToParams(t));this.params=n,this.isAwaitingPromise=!1,Mje(bS,this,this._main(Nl.params))}_main(t,n={}){if(Woe(Object.assign({},n,t)),at.currentInstance){const o=Pm.swalPromiseResolve.get(at.currentInstance),{isAwaitingPromise:s}=at.currentInstance;at.currentInstance._destroy(),s||o({isDismissed:!0}),OB()&&Toe()}at.currentInstance=Nl;const r=g$e(t,n);h$e(r),Object.freeze(r),at.timeout&&(at.timeout.stop(),delete at.timeout),clearTimeout(at.restoreFocusTimeout);const i=p$e(Nl);return xoe(Nl,r),pn.innerParams.set(Nl,r),f$e(Nl,i,r)}then(t){return yW(bS,this).then(t)}finally(t){return yW(bS,this).finally(t)}}const f$e=(e,t,n)=>new Promise((r,i)=>{const o=s=>{e.close({isDismissed:!0,dismiss:s,isConfirmed:!1,isDenied:!1})};Pm.swalPromiseResolve.set(e,r),Pm.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{pWe(e)},t.denyButton.onclick=()=>{mWe(e)},t.cancelButton.onclick=()=>{vWe(e,o)},t.closeButton.onclick=()=>{o(ev.close)},OWe(n,t,o),LUe(at,n,o),sWe(e,n),s$e(n),m$e(at,n,o),v$e(t,n),setTimeout(()=>{t.container.scrollTop=0})}),g$e=(e,t)=>{const n=ZWe(e),r=Object.assign({},Ld,t,n,e);return r.showClass=Object.assign({},Ld.showClass,r.showClass),r.hideClass=Object.assign({},Ld.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},p$e=e=>{const t={popup:en(),container:Mo(),actions:Pw(),confirmButton:nu(),denyButton:Rg(),cancelButton:Qm(),loader:Jm(),closeButton:TB(),validationMessage:mR(),progressSteps:AB()};return pn.domCache.set(e,t),t},m$e=(e,t,n)=>{const r=vR();so(r),t.timer&&(e.timeout=new XWe(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&r&&(di(r),xs(r,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&MB(t.timer)})))},v$e=(e,t)=>{if(!t.toast){if(!pR(t.allowEnterKey)){uoe("allowEnterKey","preConfirm: () => false"),e.popup.focus();return}y$e(e)||b$e(e,t)||qF(-1,1)}},y$e=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&Zo(n))return n.focus(),!0;return!1},b$e=(e,t)=>t.focusDeny&&Zo(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&Zo(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&Zo(e.confirmButton)?(e.confirmButton.focus(),!0):!1;Rr.prototype.disableButtons=Noe;Rr.prototype.enableButtons=Loe;Rr.prototype.getInput=_oe;Rr.prototype.disableInput=Hoe;Rr.prototype.enableInput=Boe;Rr.prototype.hideLoading=yx;Rr.prototype.disableLoading=yx;Rr.prototype.showValidationMessage=Voe;Rr.prototype.resetValidationMessage=zoe;Rr.prototype.close=kd;Rr.prototype.closePopup=kd;Rr.prototype.closeModal=kd;Rr.prototype.closeToast=kd;Rr.prototype.rejectPromise=Ooe;Rr.prototype.update=$oe;Rr.prototype._destroy=qoe;Object.assign(Rr,YWe);Object.keys(PWe).forEach(e=>{Rr[e]=function(...t){if(Nl&&Nl[e])return Nl[e](...t)}});Rr.DismissReason=ev;Rr.version="11.26.25";const XF=Rr;XF.default=XF;typeof document<"u"&&(function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;
1005--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end
vendor: 12,791 bytes, line 1005
1005";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:
1005"!
vendor: 11,078 bytes, line 1005
1005";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}
1005');var DD,OW;function Joe(){if(OW)return DD;OW=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return DD=e,DD}var MD,DW;function w$e(){if(DW)return MD;DW=1;var e=typeof wo=="object"&&wo&&wo.Object===Object&&wo;return MD=e,MD}var ID,MW;function ese(){if(MW)return ID;MW=1;var e=w$e(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ID=n,ID}var _D,IW;function C$e(){if(IW)return _D;IW=1;var e=ese(),t=function(){return e.Date.now()};return _D=t,_D}var FD,_W;function S$e(){if(_W)return FD;_W=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return FD=t,FD}var kD,FW;function x$e(){if(FW)return kD;FW=1;var e=S$e(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return kD=n,kD}var LD,kW;function tse(){if(kW)return LD;kW=1;var e=ese(),t=e.Symbol;return LD=t,LD}var ND,LW;function E$e(){if(LW)return ND;LW=1;var e=tse(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(s){var a=n.call(s,i),l=s[i];try{s[i]=void 0;var u=!0}catch{}var d=r.call(s);return u&&(a?s[i]=l:delete s[i]),d}return ND=o,ND}var BD,NW;function R$e(){if(NW)return BD;NW=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return BD=n,BD}var HD,BW;function A$e(){if(BW)return HD;BW=1;var e=tse(),t=E$e(),n=R$e(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function s(a){return a==null?a===void 0?i:r:o&&o in Object(a)?t(a):n(a)}return HD=s,HD}var VD,HW;function T$e(){if(HW)return VD;HW=1;function e(t){return t!=null&&typeof t=="object"}return VD=e,VD}var zD,VW;function P$e(){if(VW)return zD;VW=1;var e=A$e(),t=T$e(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return zD=r,zD}var GD,zW;function O$e(){if(zW)return GD;zW=1;var e=x$e(),t=Joe(),n=P$e(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=o.test(u);return f||s.test(u)?a(u.slice(2),f?2:8):i.test(u)?r:+u}return GD=l,GD}var jD,GW;function D$e(){if(GW)return jD;GW=1;var e=Joe(),t=C$e(),n=O$e(),r="Expected a function",i=Math.max,o=Math.min;function s(a,l,u){var d,f,g,m,y,b,w=0,C=!1,E=!1,A=!0;if(typeof a!="function")throw new TypeError(r);l=n(l)||0,e(u)&&(C=!!u.leading,E="maxWait"in u,g=E?i(n(u.maxWait)||0,l):g,A="trailing"in u?!!u.trailing:A);function T(B){var j=d,z=f;return d=f=void 0,w=B,m=a.apply(z,j),m}function P(B){return w=B,y=setTimeout(F,l),C?T(B):m}function O(B){var j=B-b,z=B-w,H=l-j;return E?o(H,g-z):H}function D(B){var j=B-b,z=B-w;return b===void 0||j>=l||j<0||E&&z>=g}function F(){var B=t();if(D(B))return L(B);y=setTimeout(F,O(B))}function L(B){return y=void 0,A&&d?T(B):(d=f=void 0,m)}function N(){y!==void 0&&clearTimeout(y),w=0,d=b=f=y=void 0}function M(){return y===void 0?m:L(t())}function k(){var B=t(),j=D(B);if(d=arguments,f=this,b=B,j){if(y===void 0)return P(b);if(E)return clearTimeout(y),y=setTimeout(F,l),T(b)}return y===void 0&&(y=setTimeout(F,l)),m}return k.cancel=N,k.flush=M,k}return jD=s,jD}var M$e=D$e();const jwt=fg(M$e);var I$e=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdate
1005Capture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function BB(e){if(typeof e!="string")return!1;var t=I$e;return t.includes(e)}var _$e=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],F$e=new Set(_$e);function nse(e){return typeof e!="string"?!1:F$e.has(e)}function rse(e){return typeof e=="string"&&e.startsWith("data-")}function ao(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(nse(n)||rse(n))&&(t[n]=e[n]);return t}function Qd(e){if(e==null)return null;if(R.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ao(t)}return typeof e=="object"&&!Array.isArray(e)?ao(e):null}function ts(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(nse(n)||rse(n)||BB(n))&&(t[n]=e[n]);return t}function k$e(e){return e==null?null:R.isValidElement(e)?ts(e.props):typeof e=="object"&&!Array.isArray(e)?ts(e):null}var L$e=["children","width","height","viewBox","className","style","title","desc"];function ZF(){return ZF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZF.apply(null,arguments)}function N$e(e,t){if(e==null)return{};var n,r,i=B$e(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function B$e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var HB=R.forwardRef((e,t)=>
1005{var n=e.children,r=e.width,i=e.height,o=e.viewBox,s=e.className,a=e.style,l=e.title,u=e.desc,d=N$e(e,L$e),f=o||{width:r,height:i,x:0,y:0},g=Et("recharts-surface",s);return R.createElement("svg",ZF({},ts(d),{className:g,width:r,height:i,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),R.createElement("title",null,l),R.createElement("desc",null,u),n)}),H$e=["children","className"];function QF(){return QF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QF.apply(null,arguments)}function V$e(e,t){if(e==null)return{};var n,r,i=z$e(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function z$e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Dn=R.forwardRef((e,t)=>{var n=e.children,r=e.className,i=V$e(e,H$e),o=Et("recharts-layer",r);return R.createElement("g",QF({className:o},ts(i),{ref:t}),n)});function JF(e){return e==="__proto__"}const G$e=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function ise(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e===""||e.startsWith(".")||e.endsWith(".")?!1:G$e.test(e);default:return!1}}function wR(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function VB(e){return typeof e=="symbol"||e instanceof Symbol}function j$e(e){return e==null?"":ose(e)}function ose(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(ose).join(",");if(VB(e))return e.toString();const t=e+"";return t==="0"&&Object.is(Number(e),-0)?"-0":t}function zB(e){if(Array.isArray(e))return e.map(wR);if(typeof e=="symbol")return[e];e=j$e(e);const t=[],n=e.length;if(n===0)return t;let r=0,i="",o="",s=!1,a=!1;const l=/^-?\d+(?:\.\d+)?$/;
1005for(e.charCodeAt(0)===46&&t.push("");r<n;){const u=e[r];if(o)u==="\\"&&r+1<n?(r++,i+=e[r]):u===o?o="":i+=u;else if(s)if(u==='"'||u==="'")o=u,a=!0;else if(u==="]"){if(s=!1,!a&&i.includes(".")&&!l.test(i)){const d=i.split(".");for(let f=0;f<d.length;f++)d[f]!==""&&t.push(d[f])}else t.push(i);i=""}else i+=u;else if(u==="[")s=!0,a=!1,i&&(t.push(i),i="");else if(u==="."){i&&(t.push(i),i="");const d=e[r+1];(d===void 0||d===".")&&t.push("")}else i+=u;r++}return i&&t.push(i),t}function ru(e,t,n){if(e==null)return n;switch(typeof t){case"string":{if(JF(t))return n;const r=e[t];return r===void 0?ise(t)&&!Object.hasOwn(e,t)?ru(e,zB(t),n):n:r}case"number":case"symbol":{typeof t=="number"&&(t=wR(t));const r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return U$e(e,t,n);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),JF(t))return n;const r=e[t];return r===void 0?n:r}}}function U$e(e,t,n){if(t.length===0)return n;let r=e;for(let i=0;i<t.length;i++){if(r==null||JF(t[i]))return n;r=r[t[i]]}return r===void 0?n:r}var W$e=4;function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W$e,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function _i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((i,o,s)=>{var a=n[s-1];return typeof a=="string"?i+a+o:a!==void 0?i+tc(a)+o:i+o},"")}var Lr=e=>e===0?0:e>0?1:-1,Ja=e=>typeof e=="number"&&e!=+e,rg=e=>typeof e=="string"&&e.length>1&&e.indexOf("%")===e.length-1,ze=e=>(typeof e=="number"||e instanceof Number)&&!Ja(e),iu=e=>ze(e)||typeof e=="string",$$e=0,$b=e=>{var t=++$$e;return"".concat(e||"").concat(t)},io=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ze(t)&&typeof t!="string")return r;var o;if(rg(t)){if(n==null)return r;var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return Ja(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},sse=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function hn(e,t,n){return ze(e)&&ze(t)?tc(e+n*(t-e)):t}function ase(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):ru(r,t))===n)}var Mn=e=>e===null||typeof e>"u",Iw=e=>Mn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function So(e){return e!=null}function Pc(){}function GB(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function jW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jW(Object(n),!0).forEach(function(r){q$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q$e(e,t,n){return(t=K$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K$e(e){var t=Y$e(e,"string");return typeof t=="symbol"?t:t+""}function Y$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lse=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,o=e.parentViewBox,s=e.clamp,a=GB(t),l=a.x,u=a.y,d=a.height,f=a.upperWidth,g=a.lowerWidth,m=l,y=l+(f-g)/2,b=(m+y)/2,w=(f+g)/2,C=m+f/2,E=d>=0?1:-1,A=E*i,T=E>0?"end":"start",P=E>0?"start":"end",O=f>=0?1:-1,D=O*i,F=O>0?"end":"start",L=O>0?"start":"end",N=o;if(n==="top"){var M={x:m+f/2,y:u-A,horizontalAnchor:"middle",verticalAnchor:T};return s&&N&&(M.height=Math.max(u-N.y,0),M.width=f),M}if(n==="bottom"){var k={x:y+g/2,y:u+d+A,horizontalAnchor:"middle",verticalAnchor:P};return s&&N&&(k.height=Math.max(N.y+N.height-(u+d),0),k.width=g),k}if(n==="left"){var B={x:b-D,y:u+d/2,horizontalAnchor:F,verticalAnchor:"middle"};return s&&N&&(B.width=Math.max(B.x-N.x,0),B.height=d),B}
1005if(n==="right"){var j={x:b+w+D,y:u+d/2,horizontalAnchor:L,verticalAnchor:"middle"};return s&&N&&(j.width=Math.max(N.x+N.width-j.x,0),j.height=d),j}var z=s&&N?{width:w,height:d}:{};return n==="insideLeft"?Ol({x:b+D,y:u+d/2,horizontalAnchor:L,verticalAnchor:"middle"},z):n==="insideRight"?Ol({x:b+w-D,y:u+d/2,horizontalAnchor:F,verticalAnchor:"middle"},z):n==="insideTop"?Ol({x:m+f/2,y:u+A,horizontalAnchor:"middle",verticalAnchor:P},z):n==="insideBottom"?Ol({x:y+g/2,y:u+d-A,horizontalAnchor:"middle",verticalAnchor:T},z):n==="insideTopLeft"?Ol({x:m+D,y:u+A,horizontalAnchor:L,verticalAnchor:P},z):n==="insideTopRight"?Ol({x:m+f-D,y:u+A,horizontalAnchor:F,verticalAnchor:P},z):n==="insideBottomLeft"?Ol({x:y+D,y:u+d-A,horizontalAnchor:L,verticalAnchor:T},z):n==="insideBottomRight"?Ol({x:y+g-D,y:u+d-A,horizontalAnchor:F,verticalAnchor:T},z):n&&typeof n=="object"&&(ze(n.x)||rg(n.x))&&(ze(n.y)||rg(n.y))?Ol({x:l+io(n.x,w),y:u+io(n.y,d),horizontalAnchor:"end",verticalAnchor:"end"},z):Ol({x:C,y:u+d/2,horizontalAnchor:"middle",verticalAnchor:"middle"},z)},X$e=["top","left","right","bottom"];function jB(e){return e==null?!1:typeof e=="object"?!0:X$e.includes(e)}var use=R.createContext(null),Z$e=()=>R.useContext(use);function On(e){return function(){return e}}const cse=Math.cos,Cx=Math.sin,sl=Math.sqrt,Sx=Math.PI,CR=2*Sx,ek=Math.PI,tk=2*ek,nf=1e-6,Q$e=tk-nf;function dse(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function J$e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return dse;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class e7e{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?dse:J$e(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-t,u=i-n,d=s-t,f=a-n,g=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>nf)if(!(Math.abs(f*l-u*d)>nf)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-s,y=i-a,b=l*l+u*u,w=m*m+y*y,C=Math.sqrt(b),E=Math.sqrt(g),A=o*Math.tan((ek-Math.acos((b+g-w)/(2*C*E)))/2),T=A/E,P=A/C;Math.abs(T-1)>nf&&this._append`L${t+T*d},${n+T*f}`,this._append`A${o},${o},0,0,${+(f*m>d*y)},${this._x1=t+P*l},${this._y1=n+P*u}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),u=t+a,d=n+l,f=1^s,g=s?i-o:o-i;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>nf||Math.abs(this._y1-d)>nf)&&this._append`L${u},${d}`,r&&(g<0&&(g=g%tk+tk),g>Q$e?this._append`A${r},${r},0,1,${f},${t-a},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=d}`:g>nf&&this._append`A${r},${r},0,${+(g>=ek)},${f},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function UB(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new e7e(t)}function WB(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function hse(e){this._context=e}hse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function SR(e){return new hse(e)}function fse(e){return e[0]}function gse(e){return e[1]}function pse(e,t){var n=On(!0),r=null,i=SR,o=null,s=UB(a);e=typeof e=="function"?e:e===void 0?fse:On(e),t=typeof t=="function"?t:t===void 0?gse:On(t);function a(l){var u,d=(l=WB(l)).length,f,g=!1,m;
vendor: 4,443 bytes, line 1005
1005for(r==null&&(o=i(m=s())),u=0;u<=d;++u)!(u<d&&n(f=l[u],u,l))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+e(f,u,l),+t(f,u,l));if(m)return o=null,m+""||null}return a.x=function(l){return arguments.length?(e=typeof l=="function"?l:On(+l),a):e},a.y=function(l){return arguments.length?(t=typeof l=="function"?l:On(+l),a):t},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:On(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function wS(e,t,n){var r=null,i=On(!0),o=null,s=SR,a=null,l=UB(u);e=typeof e=="function"?e:e===void 0?fse:On(+e),t=typeof t=="function"?t:On(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?gse:On(+n);function u(f){var g,m,y,b=(f=WB(f)).length,w,C=!1,E,A=new Array(b),T=new Array(b);for(o==null&&(a=s(E=l())),g=0;g<=b;++g){if(!(g<b&&i(w=f[g],g,f))===C)if(C=!C)m=g,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),y=g-1;y>=m;--y)a.point(A[y],T[y]);a.lineEnd(),a.areaEnd()}C&&(A[g]=+e(w,g,f),T[g]=+t(w,g,f),a.point(r?+r(w,g,f):A[g],n?+n(w,g,f):T[g]))}if(E)return a=null,E+""||null}function d(){return pse().defined(i).curve(s).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:On(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:On(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:On(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:On(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:On(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:On(+f),u):n},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(n)},u.lineX1=function(){return d().x(r).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:On(!!f),u):i},u.curve=function(f){return arguments.length?(s=f,o!=null&&(a=s(o)),u):s},u.context=function(f){return arguments.length?(f==null?o=a=null:a=s(o=f),u):o},u}class mse{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function t7e(e){return new mse(e,!0)}function n7e(e){return new mse(e,!1)}const $B={draw(e,t){const n=sl(t/Sx);e.moveTo(n,0),e.arc(0,0,n,0,CR)}},r7e={draw(e,t){const n=sl(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},vse=sl(1/3),i7e=vse*2,o7e={draw(e,t){const n=sl(t/i7e),r=n*vse;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},s7e={draw(e,t){const n=sl(t),r=-n/2;e.rect(r,r,n,n)}},a7e=.8908130915292852,yse=Cx(Sx/10)/Cx(7*Sx/10),l7e=Cx(CR/10)*yse,u7e=-cse(CR/10)*yse,c7e={draw(e,t){const n=sl(t*a7e),r=l7e*n,i=u7e*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=CR*o/5,a=cse(s),l=Cx(s);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*i,l*r+a*i)}e.closePath()}},UD=sl(3),d7e={draw(e,t){const n=-sl(t/(UD*3));e.moveTo(0,n*2),e.lineTo(-UD*n,-n),e.lineTo(UD*n,-n),e.closePath()}},Ws=-.5,$s=sl(3)/2,nk=1/sl(12),h7e=(nk/2+1)*3,f7e={draw(e,t){const n=sl(t/h7e),r=n/2,i=n*nk,o=r,s=n*nk+n,a=-o,l=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,l),e.lineTo(Ws*r-$s*i,$s*r+Ws*i),e.lineTo(Ws*o-$s*s,$s*o+Ws*s),e.lineTo(Ws*a-$s*l,$s*a+Ws*l),e.lineTo(Ws*r+$s*i,Ws*i-$s*r),e.lineTo(Ws*o+$s*s,Ws*s-$s*o),e.lineTo(Ws*a+$s*l,Ws*l-$s*a),e.closePath()}};function g7e(e,t){let n=null,r=UB(i);e=typeof e=="function"?e:On(e||$B),t=typeof t=="function"?t:On(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:On(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:On(+o),i):t}
vendor: 6,389 bytes, line 1005
1005,i.context=function(o){return arguments.length?(n=o??null,i):n},i}function xx(){}function Ex(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function bse(e){this._context=e}bse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ex(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ex(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function p7e(e){return new bse(e)}function wse(e){this._context=e}wse.prototype={areaStart:xx,areaEnd:xx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ex(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m7e(e){return new wse(e)}function Cse(e){this._context=e}Cse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ex(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function v7e(e){return new Cse(e)}function Sse(e){this._context=e}Sse.prototype={areaStart:xx,areaEnd:xx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function y7e(e){return new Sse(e)}function UW(e){return e<0?-1:1}function WW(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(UW(o)+UW(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function $W(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function WD(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function Rx(e){this._context=e}Rx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:WD(this,this._t0,$W(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,WD(this,$W(this,n=WW(this,e,t)),n);break;default:WD(this,this._t0,n=WW(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function xse(e){this._context=new Ese(e)}(xse.prototype=Object.create(Rx.prototype)).point=function(e,t){Rx.prototype.point.call(this,t,e)};function Ese(e){this._context=e}Ese.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function b7e(e){return new Rx(e)}function w7e(e){return new xse(e)}function Rse(e){this._context=e}Rse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=qW(e),i=qW(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function qW(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function C7e(e){return new Rse(e)}function xR(e,t){this._context=e,this._t=t}xR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
1005default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function S7e(e){return new xR(e,.5)}function x7e(e){return new xR(e,0)}function E7e(e){return new xR(e,1)}function ig(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,a=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<a;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function rk(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function R7e(e,t){return e[t]}function A7e(e){const t=[];return t.key=e,t}function T7e(){var e=On([]),t=rk,n=ig,r=R7e;function i(o){var s=Array.from(e.apply(this,arguments),A7e),a,l=s.length,u=-1,d;for(const f of o)for(a=0,++u;a<l;++a)(s[a][u]=[0,+r(f,s[a].key,u,o)]).data=f;for(a=0,d=WB(t(s));a<l;++a)s[d[a]].index=a;return n(s,d),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:On(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:On(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?rk:typeof o=="function"?o:On(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??ig,i):n},i}function P7e(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,s;i<o;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}ig(e,t)}}function O7e(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var s=0,a=0;s<i;++s)a+=e[s][n][1]||0;r[n][1]+=r[n][0]=-a/2}ig(e,t)}}function D7e(e,t){if(!(!((s=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,s;r<o;++r){for(var a=0,l=0,u=0;a<s;++a){for(var d=e[t[a]],f=d[r][1]||0,g=d[r-1][1]||0,m=(f-g)/2,y=0;y<a;++y){var b=e[t[y]],w=b[r][1]||0,C=b[r-1][1]||0;m+=w-C}l+=f,u+=m*f}i[r-1][1]+=i[r-1][0]=n,l&&(n-=u/l)}i[r-1][1]+=i[r-1][0]=n,ig(e,t)}}var M7e=["type","size","sizeType"];function ik(){return ik=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ik.apply(null,arguments)}function KW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KW(Object(n),!0).forEach(function(r){I7e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I7e(e,t,n){return(t=_7e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _7e(e){var t=F7e(e,"string");return typeof t=="symbol"?t:t+""}function F7e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k7e(e,t){if(e==null)return{};var n,r,i=L7e(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function L7e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ase={symbolCircle:$B,symbolCross:r7e,symbolDiamond:o7e,symbolSquare:s7e,symbolStar:c7e,symbolTriangle:d7e,symbolWye:f7e},N7e=Math.PI/180,B7e=e=>{var t="symbol".concat(Iw(e));return Ase[t]||$B},H7e=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*N7e;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},V7e=(e,t)=>{Ase["symbol".concat(Iw(e))]=t},Tse=e=>{var t=e.type,n=t===void 0?"circle":t,r=e.size,i=r===void 0?64:r,o=e.sizeType,s=o===void 0?"area":o,a=k7e(e,M7e),l=YW(YW({},a),{},{type:n,size:i,sizeType:s}),u="circle";typeof n=="string"&&(u=n);var d=()=>{var b=B7e(u),w=g7e().type(b).size(H7e(i,s,u)),C=w();if(C!==null)return C},f=l.className,g=l.cx,m=l.cy,y=ts(l);return ze(g)&&ze(m)&&ze(i)?R.createElement("path",ik({}
1005,y,{className:Et("recharts-symbols",f),transform:"translate(".concat(g,", ").concat(m,")"),d:d()})):null};Tse.registerSymbol=V7e;var Pse=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,qB=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(R.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{BB(i)&&typeof n[i]=="function"&&(r[i]=(o=>n[i](n,o)))}),r},z7e=(e,t,n)=>r=>(e(t,n,r),null),Ag=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];BB(i)&&typeof o=="function"&&(r||(r={}),r[i]=z7e(o,t,n))}),r};function XW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function G7e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XW(Object(n),!0).forEach(function(r){j7e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j7e(e,t,n){return(t=U7e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U7e(e){var t=W7e(e,"string");return typeof t=="symbol"?t:t+""}function W7e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gr(e,t){var n=G7e({},e),r=t,i=Object.keys(t),o=i.reduce((s,a)=>(s[a]===void 0&&r[a]!==void 0&&(s[a]=r[a]),s),n);return o}function Ax(){return Ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ax.apply(null,arguments)}function ZW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ose(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZW(Object(n),!0).forEach(function(r){$7e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZW(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $7e(e,t,n){return(t=q7e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q7e(e){var t=K7e(e,"string");return typeof t=="symbol"?t:t+""}function K7e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xs=32,Y7e={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function X7e(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function Z7e(e){var t=e.data,n=e.iconType,r=e.inactiveColor,i=Xs/2,o=Xs/6,s=Xs/3,a=t.inactive?r:t.color,l=n??t.type;if(l==="none")return null;if(l==="plainline")return R.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:X7e(t.payload),x1:0,y1:i,x2:Xs,y2:i,className:"recharts-legend-icon"});if(l==="line")return R.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(i,"h").concat(s,` 1006 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(i,` 1007 H`).concat(Xs,"M").concat(2*s,",").concat(i,` 1008 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(l==="rect")return R.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(Xs/8,"h").concat(Xs,"v").concat(Xs*3/4,"h").concat(-Xs,"z"),className:"recharts-legend-icon"});if(R.isValidElement(t.legendIcon)){var u=Ose({},t);return delete u.legendIcon,R.cloneElement(t.legendIcon,u)}return R.createElement(Tse,{fill:a,cx:i,cy:i,size:Xs,sizeType:"diameter",type:l})}function Q7e(e){var t=e.payload,n=e.iconSize,r=e.layout,i=e.formatter,o=e.inactiveColor,s=e.iconType,a=e.labelStyle,l={x:0,y:0,width:Xs,height:Xs},u={display:r==="horizontal"?"inline-block":"block",marginRight:10,whiteSpace:"nowrap"},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((f,g)=>{var m,y,b=f.formatter||i,w=Et({"recharts-legend-item":!0,["legend-item-".concat(g)]:!0,inactive:f.inactive});if(f.type==="none")return null;var C=typeof a=="object"?Ose({},a):{};C.color=f.inactive?o:C.color||f.color,(m=C.whiteSpace)!==null&&m!==void 0||(C.whiteSpace="normal"),(y=C.overflowWrap)!==null&&y!==void 0||(C.overflowWrap="break-word");var E=b?b(f.value,f,g):f.value;
1008return R.createElement("li",Ax({className:w,style:u,key:"legend-item-".concat(g)},Ag(e,f,g)),R.createElement(HB,{width:n,height:n,viewBox:l,style:d,"aria-label":f.value==null?"legend icon":"".concat(f.value," legend icon")},R.createElement(Z7e,{data:f,iconType:s,inactiveColor:o})),R.createElement("span",{className:"recharts-legend-item-text",style:C},E))})}var J7e=e=>{var t=gr(e,Y7e),n=t.payload,r=t.layout,i=t.align;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:r==="horizontal"?i:"left"};return R.createElement("ul",{className:"recharts-default-legend",style:o},R.createElement(Q7e,Ax({},t,{payload:n})))};function e9e(e,t){const n=new Map;for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r,e);n.has(o)||n.set(o,i)}return Array.from(n.values())}function t9e(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function Dse(e){return e}function n9e(e){return Number.isSafeInteger(e)&&e>=0}function KB(e){return e!=null&&typeof e!="function"&&n9e(e.length)}function r9e(e){return function(t){return ru(t,e)}}function Mse(e){return e==null||typeof e!="object"&&typeof e!="function"}function i9e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ok(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Dm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Ise="[object RegExp]",YB="[object String]",XB="[object Number]",ZB="[object Boolean]",_se="[object Arguments]",Fse="[object Symbol]",kse="[object Date]",Lse="[object Map]",Nse="[object Set]",Bse="[object Array]",o9e="[object Function]",Hse="[object ArrayBuffer]",p1="[object Object]",s9e="[object Error]",Vse="[object DataView]",zse="[object Uint8Array]",Gse="[object Uint8ClampedArray]",jse="[object Uint16Array]",Use="[object Uint32Array]",a9e="[object BigUint64Array]",Wse="[object Int8Array]",$se="[object Int16Array]",qse="[object Int32Array]",l9e="[object BigInt64Array]",Kse="[object Float32Array]",Yse="[object Float64Array]",QW=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function sk(e){return typeof QW.Buffer<"u"&&QW.Buffer.isBuffer(e)}function u9e(e,t){return pf(e,void 0,e,new Map,t)}function pf(e,t,n,r=new Map,i=void 0){const o=i?.(e,t,n,r);if(o!==void 0)return o;if(Mse(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const s=new Array(e.length);r.set(e,s);for(let a=0;a<e.length;a++)s[a]=pf(e[a],a,n,r,i);return Object.hasOwn(e,"index")&&(s.index=e.index),Object.hasOwn(e,"input")&&(s.input=e.input),s}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const s=new RegExp(e.source,e.flags);return s.lastIndex=e.lastIndex,s}if(e instanceof Map){const s=new Map;r.set(e,s);for(const[a,l]of e)s.set(a,pf(l,a,n,r,i));return s}if(e instanceof Set){const s=new Set;r.set(e,s);for(const a of e)s.add(pf(a,void 0,n,r,i));return s}if(sk(e))return e.subarray();if(i9e(e)){const s=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,s);for(let a=0;a<e.length;a++)s[a]=pf(e[a],a,n,r,i);return s}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const s=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,s),za(s,e,n,r,i),s}if(typeof File<"u"&&e instanceof File){const s=new File([e],e.name,{type:e.type});return r.set(e,s),za(s,e,n,r,i),s}if(typeof Blob<"u"&&e instanceof Blob){const s=new Blob([e],{type:e.type});return r.set(e,s),za(s,e,n,r,i),s}if(e instanceof Error){const s=structuredClone(e);return r.set(e,s),s.message=e.message,s.name=e.name,s.stack=e.stack,s.cause=e.cause,s.constructor=e.constructor,za(s,e,n,r,i),s}if(e instanceof Boolean){const s=new Boolean(e.valueOf());return r.set(e,s),za(s,e,n,r,i),s}if(e instanceof Number){const s=new Number(e.valueOf());return r.set(e,s),za(s,e,n,r,i),s}if(e instanceof String){const s=new String(e.valueOf());return r.set(e,s),za(s,e,n,r,i),s}if(typeof e=="object"&&c9e(e)){const s=Object.create(Object.getPrototypeOf(e));return r.set(e,s),za(s,e,n,r,i),s}return e}function za(e,t,n=e,r,i){const o=[...Object.keys(t),...ok(t)];for(let s=0;s<o.length;s++){const a=o[s],l=Object.getOwnPropertyDescriptor(e,a);(l==null||l.writable)&&(e[a]=pf(t[a],a,n,r,i))}}function c9e(e){switch(Dm(e)){case _se:case Bse:case Hse:case Vse:case ZB:case kse:case Kse:case Yse:case Wse:case $se:case qse:case Lse:case XB:case p1:case Ise:case Nse:case YB:case Fse:case zse:case Gse:case jse:case Use:return!0;default:return!1}}function d9e(e){return pf(e,void 0,e,new Map,void 0)}function cb(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Xse(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Zse(e,t,n){return typeof n!="function"?Zse(e,t,()=>{}):ak(e,t,function r(i,o,s,a,l,u){const d=n(i,o,s,a,l,u);return d!==void 0?!!d:ak(i,o,r,u,!1)},new Map,!0)}function ak(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case"object":return h9e(e,t,n,r,i);case"function":return Object.keys(t).length>0?ak(e,{...t},n,r,i):cb(e,t);default:return Xse(e)&&i?typeof t=="string"?t==="":!0:cb(e,t)}}function h9e(e,t,n,r,i=!1){if(t==null)return!0;
1008if(Array.isArray(t))return Qse(e,t,n,r);if(t instanceof Map)return f9e(e,t,n,r);if(t instanceof Set)return g9e(e,t,n,r);const o=Object.keys(t);if(e==null)return i&&o.length===0;if(i)Mse(e)&&(e=Object(e));else{const s=Dm(e);if(s!=="[object Object]"&&s!=="[object Arguments]")return!1}if(o.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let s=0;s<o.length;s++){const a=o[s];if(!(a in e)||t[a]===void 0&&e[a]!==void 0||t[a]===null&&e[a]!==null||!n(e[a],t[a],a,e,t,r))return!1}return!0}finally{r?.delete(t)}}function f9e(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[i,o]of t.entries())if(n(e.get(i),o,i,e,t,r)===!1)return!1;return!0}function Qse(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let o=0;o<t.length;o++){const s=t[o];let a=!1;for(let l=0;l<e.length;l++){if(i.has(l))continue;const u=e[l];let d=!1;if(n(u,s,o,e,t,r)&&(d=!0),d){i.add(l),a=!0;break}}if(!a)return!1}return!0}function g9e(e,t,n,r){return t.size===0?!0:e instanceof Set?Qse([...e],[...t],n,r):!1}function Jse(e,t){return Zse(e,t,()=>{})}function p9e(e){return e=d9e(e),t=>Jse(t,e)}function m9e(e,t){return u9e(e,(n,r,i,o)=>{if(typeof e=="object"){if(Dm(e)==="[object Object]"&&typeof e.constructor!="function"){const s={};return o.set(e,s),za(s,e,i,o),s}switch(Object.prototype.toString.call(e)){case XB:case YB:case ZB:{const s=new e.constructor(e?.valueOf());return za(s,e),s}case _se:{const s={};return za(s,e),s.length=e.length,s[Symbol.iterator]=e[Symbol.iterator],s}default:return}}})}function v9e(e){return m9e(e)}const y9e=/^(?:0|[1-9]\d*)$/;function eae(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return y9e.test(e)}}function b9e(e){return e!==null&&typeof e=="object"&&Dm(e)==="[object Arguments]"}function w9e(e,t){let n;if(Array.isArray(t)?n=t:typeof t=="string"&&ise(t)&&!(t in Object(e))?n=zB(t):n=[t],n.length===0)return!1;let r=e;for(let i=0;i<n.length;i++){const o=wR(n[i]);if((r==null||!Object.hasOwn(r,o))&&!((Array.isArray(r)||b9e(r))&&eae(o)&&Number(o)<r.length))return!1;r=r[o]}return!0}function C9e(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=wR(e);break}return t=v9e(t),function(n){const r=ru(n,e);return r===void 0?w9e(n,e):t===void 0?r===void 0:Jse(r,t)}}function S9e(e){if(e==null)return Dse;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?C9e(e[0],e[1]):p9e(e);default:return r9e(e)}}function x9e(e){return e===0?0:e}function JW(e,t=Dse){return KB(e)?e9e(Array.from(e),t9e(S9e(t),1)).map(x9e):[]}function tae(e,t,n){return t===!0?JW(e,n):typeof t=="function"?JW(e,t):e}var $D={exports:{}},qD={},KD={exports:{}},YD={};var e$;function E9e(){if(e$)return YD;e$=1;var e=Vm();function t(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(f,g){var m=g(),y=r({inst:{value:m,getSnapshot:g}}),b=y[0].inst,w=y[1];return o(function(){b.value=m,b.getSnapshot=g,l(b)&&w({inst:b})},[f,m,g]),i(function(){return l(b)&&w({inst:b}),f(function(){l(b)&&w({inst:b})})},[f]),s(m),m}function l(f){var g=f.getSnapshot;f=f.value;try{var m=g();return!n(f,m)}catch{return!0}}function u(f,g){return g()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return YD.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,YD}var t$;function R9e(){return t$||(t$=1,KD.exports=E9e()),KD.exports}var n$;function A9e(){if(n$)return qD;n$=1;var e=Vm(),t=R9e();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return qD.useSyncExternalStoreWithSelector=function(u,d,f,g,m){var y=o(null);if(y.current===null){var b={hasValue:!1,value:null};y.current=b}else b=y.current;y=a(function(){function C(O){if(!E){if(E=!0,A=O,O=g(O),m!==void 0&&b.hasValue){var D=b.value;if(m(D,O))return T=D}return T=O}if(D=T,r(A,O))return D;var F=g(O);return m!==void 0&&m(D,F)?(A=O,D):(A=O,T=F)}var E=!1,A,T,P=f===void 0?null:f;return[function(){return C(d())},P===null?void 0:function(){return C(P())}]},[d,f,g,m]);var w=i(u,y[0],y[1]);return s(function(){b.hasValue=!0,b.value=w},[w]),l(w),w},qD}var r$;function T9e(){return r$||(r$=1,$D.exports=A9e()),$D.exports}var P9e=T9e(),QB=R.createContext(null),O9e=e=>e,mn=()=>{var e=R.useContext(QB);return e?e.store.dispatch:O9e},m1=()=>{},D9e=()=>m1,M9e=(e,t)=>
1008e===t;function $e(e){var t=R.useContext(QB),n=R.useMemo(()=>t?r=>{if(r!=null)return e(r)}:m1,[t,e]);return P9e.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:D9e,t?t.store.getState:m1,t?t.store.getState:m1,n,M9e)}function I9e(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function _9e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var i$=e=>Array.isArray(e)?e:[e];function F9e(e){const t=Array.isArray(e[0])?e[0]:e;return _9e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function k9e(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var L9e=class{constructor(e){this.value=e}deref(){return this.value}},N9e=()=>typeof WeakRef>"u"?L9e:WeakRef,nae=N9e(),B9e=0,o$=1;function CS(){return{s:B9e,v:void 0,o:null,p:null}}function H9e(e){return e instanceof nae?e.deref():e}function rae(e,t={}){let n=CS();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let a=n;const{length:l}=arguments;for(let f=0,g=l;f<g;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const b=y.get(m);b===void 0?(a=CS(),y.set(m,a)):a=b}else{let y=a.p;y===null&&(a.p=y=new Map);const b=y.get(m);b===void 0?(a=CS(),y.set(m,a)):a=b}}const u=a;let d;if(a.s===o$)d=a.v;else if(d=e.apply(null,arguments),o++,r){const f=H9e(i);f!=null&&r(f,d)&&(d=f,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new nae(d):d}return u.s=o$,u.v=d,d}return s.clearCache=()=>{n=CS(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function V9e(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),I9e(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...l},{memoize:f,memoizeOptions:g=[],argsMemoize:m=rae,argsMemoizeOptions:y=[]}=d,b=i$(g),w=i$(y),C=F9e(i),E=f(function(){return o++,u.apply(null,arguments)},...b),A=m(function(){s++;const P=k9e(C,arguments);return a=E.apply(null,P),a},...w);return Object.assign(A,{resultFunc:u,memoizedResultFunc:E,dependencies:C,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:m})};return Object.assign(r,{withTypes:()=>r}),r}var ne=V9e(rae);function z9e(e,t=1){const n=[],r=Math.floor(t),i=(o,s)=>{for(let a=0;a<o.length;a++){const l=o[a];Array.isArray(l)&&s<r?i(l,s+1):n.push(l)}};return i(e,0),n}function lk(e,t,n){return Xse(n)&&(typeof t=="number"&&KB(n)&&eae(t)&&t<n.length||typeof t=="string"&&t in n)?cb(n[t],e):!1}function s$(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const G9e=(e,t,n)=>{if(e!==t){const r=s$(e),i=s$(t);if(r===i&&r===0){if(e<t)return n==="desc"?1:-1;if(e>t)return n==="desc"?-1:1}return n==="desc"?i-r:r-i}return 0},j9e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U9e=/^\w*$/;function W9e(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||VB(e)?!0:typeof e=="string"&&(U9e.test(e)||!j9e.test(e))||t!=null}function $9e(e,t,n,r){if(e==null)return[];n=n,Array.isArray(e)||(e=KB(e)?Array.from(e):Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(a=>String(a));const i=(a,l)=>{let u=a,d=0;for(;d<l.length&&u!=null;++d)u=u[l[d]];return d>0&&d===l.length?u:void 0},o=(a,l)=>{if(a==null)return l;if(l!=null)return typeof a=="object"&&"key"in a?Object.hasOwn(l,a.key)?l[a.key]:i(l,a.path):typeof a=="function"?a(l):Array.isArray(a)?i(l,a):l[a]},s=t.map(a=>(Array.isArray(a)&&a.length===1&&(a=a[0]),a==null||typeof a=="function"||Array.isArray(a)||W9e(a)?a:{key:a,path:zB(a)}));return e.map(a=>({original:a,criteria:s.map(l=>o(l,a))})).slice().sort((a,l)=>{for(let u=0;u<s.length;u++){const d=G9e(a.criteria[u],l.criteria[u],n[u]);if(d!==0)return d}return 0}).map(a=>a.original)}function ER(e,...t){const n=t.length;return n>1&&lk(e,t[0],t[1])?t=[]:n>2&&lk(t[0],t[1],t[2])&&(t=[t[0]]),$9e(e,z9e(t),["asc"])}var iae=e=>e.legend.settings,q9e=e=>e.legend.size,K9e=e=>e.legend.payload,Y9e=ne([K9e,iae],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?ER(r,n):r});function X9e(){return $e(Y9e)}function Z9e(e,t){return tqe(e)||eqe(e,t)||J9e(e,t)||Q9e()}
1008function Q9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1009In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J9e(e,t){if(e){if(typeof e=="string")return a$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a$(e,t):void 0}}function a$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eqe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function tqe(e){if(Array.isArray(e))return e}var SS=1;function l$(e,t){return Math.abs(e.height-t.height)>SS||Math.abs(e.left-t.left)>SS||Math.abs(e.top-t.top)>SS||Math.abs(e.width-t.width)>SS}function u$(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function oae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=R.useState({height:0,left:0,top:0,width:0}),n=Z9e(t,2),r=n[0],i=n[1],o=R.useRef(null),s=R.useRef(r);s.current=r;var a=R.useCallback(l=>{if(o.current!=null&&(o.current.disconnect(),o.current=null),l!=null){var u=u$(l);if(l$(u,s.current)&&i(u),typeof ResizeObserver<"u"){var d=new ResizeObserver(()=>{var f=u$(l);l$(f,s.current)&&i(f)});d.observe(l),o.current=d}}},[...e]);return R.useEffect(()=>()=>{var l;(l=o.current)===null||l===void 0||l.disconnect()},[]),[r,a]}function Ii(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var nqe=typeof Symbol=="function"&&Symbol.observable||"@@observable",c$=nqe,XD=()=>Math.random().toString(36).substring(7).split("").join("."),rqe={INIT:`@@redux/INIT${XD()}`,REPLACE:`@@redux/REPLACE${XD()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${XD()}`},Tx=rqe;function JB(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function sae(e,t,n){if(typeof e!="function")throw new Error(Ii(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ii(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ii(1));return n(sae)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach((w,C)=>{s.set(C,w)}))}function d(){if(l)throw new Error(Ii(3));return i}function f(w){if(typeof w!="function")throw new Error(Ii(4));if(l)throw new Error(Ii(5));let C=!0;u();const E=a++;return s.set(E,w),function(){if(C){if(l)throw new Error(Ii(6));C=!1,u(),s.delete(E),o=null}}}function g(w){if(!JB(w))throw new Error(Ii(7));if(typeof w.type>"u")throw new Error(Ii(8));if(typeof w.type!="string")throw new Error(Ii(17));if(l)throw new Error(Ii(9));try{l=!0,i=r(i,w)}finally{l=!1}
vendor: 5,229 bytes, line 1009
1009return(o=s).forEach(E=>{E()}),w}function m(w){if(typeof w!="function")throw new Error(Ii(10));r=w,g({type:Tx.REPLACE})}function y(){const w=f;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(Ii(11));function E(){const T=C;T.next&&T.next(d())}return E(),{unsubscribe:w(E)}},[c$](){return this}}}return g({type:Tx.INIT}),{dispatch:g,subscribe:f,getState:d,replaceReducer:m,[c$]:y}}function iqe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Tx.INIT})>"u")throw new Error(Ii(12));if(typeof n(void 0,{type:Tx.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ii(13))})}function aae(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{iqe(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const u={};for(let d=0;d<r.length;d++){const f=r[d],g=n[f],m=s[f],y=g(m,a);if(typeof y>"u")throw a&&a.type,new Error(Ii(14));u[f]=y,l=l||y!==m}return l=l||r.length!==Object.keys(s).length,l?u:s}}function Px(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function oqe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Ii(15))};const s={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},a=e.map(l=>l(s));return o=Px(...a)(i.dispatch),{...i,dispatch:o}}}function lae(e){return JB(e)&&"type"in e&&typeof e.type=="string"}var uae=Symbol.for("immer-nothing"),d$=Symbol.for("immer-draftable"),lo=Symbol.for("immer-state");function $a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var bs=Object,Mm=bs.getPrototypeOf,Ox="constructor",RR="prototype",uk="configurable",Dx="enumerable",v1="writable",qb="value",mc=e=>!!e&&!!e[lo];function fa(e){return e?cae(e)||TR(e)||!!e[d$]||!!e[Ox]?.[d$]||PR(e)||OR(e):!1}var sqe=bs[RR][Ox].toString(),h$=new WeakMap;function cae(e){if(!e||!eH(e))return!1;const t=Mm(e);if(t===null||t===bs[RR])return!0;const n=bs.hasOwnProperty.call(t,Ox)&&t[Ox];if(n===Object)return!0;if(!Hp(n))return!1;let r=h$.get(n);return r===void 0&&(r=Function.toString.call(n),h$.set(n,r)),r===sqe}function AR(e,t,n=!0){_w(e)===0?(n?Reflect.ownKeys(e):bs.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function _w(e){const t=e[lo];return t?t.type_:TR(e)?1:PR(e)?2:OR(e)?3:0}var ZD=(e,t,n=_w(e))=>n===2?e.has(t):bs[RR].hasOwnProperty.call(e,t),ck=(e,t,n=_w(e))=>n===2?e.get(t):e[t],Mx=(e,t,n,r=_w(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function aqe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var TR=Array.isArray,PR=e=>e instanceof Map,OR=e=>e instanceof Set,eH=e=>typeof e=="object",Hp=e=>typeof e=="function",QD=e=>typeof e=="boolean";function lqe(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Zu=e=>e.copy_||e.base_,tH=e=>e.modified_?e.copy_:e.base_;function dk(e,t){if(PR(e))return new Map(e);if(OR(e))return new Set(e);if(TR(e))return Array[RR].slice.call(e);const n=cae(e);if(t===!0||t==="class_only"&&!n){const r=bs.getOwnPropertyDescriptors(e);delete r[lo];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a[v1]===!1&&(a[v1]=!0,a[uk]=!0),(a.get||a.set)&&(r[s]={[uk]:!0,[v1]:!0,[Dx]:a[Dx],[qb]:e[s]})}return bs.create(Mm(e),r)}else{const r=Mm(e);if(r!==null&&n)return{...e};const i=bs.create(r);return bs.assign(i,e)}}function nH(e,t=!1){return DR(e)||mc(e)||!fa(e)||(_w(e)>1&&bs.defineProperties(e,{set:xS,add:xS,clear:xS,delete:xS}),bs.freeze(e),t&&AR(e,(n,r)=>{nH(r,!0)},!1)),e}function uqe(){$a(2)}var xS={[qb]:uqe};function DR(e){return e===null||!eH(e)?!0:bs.isFrozen(e)}var Ix="MapSet",hk="Patches",f$="ArrayMethods",dae={};function og(e){const t=dae[e];return t||$a(0,e),t}var g$=e=>!!dae[e],Kb,hae=()=>Kb,cqe=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:g$(Ix)?og(Ix):void 0,arrayMethodsPlugin_:g$(f$)?og(f$):void 0});function p$(e,t){t&&(e.patchPlugin_=og(hk),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function fk(e){gk(e),e.drafts_.forEach(dqe),e.drafts_=null}function gk(e){e===Kb&&(Kb=e.parent_)}var m$=e=>Kb=cqe(Kb,e);function dqe(e){const t=e[lo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function v$(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[lo].modified_&&(fk(t),$a(4)),fa(e)&&(e=y$(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[lo].base_,e,t)}else e=y$(t,n);return hqe(t,e,!0),fk(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==uae?e:void 0}function y$(e,t){if(DR(t))return t;const n=t[lo];if(!n)return _x(t,e.handledSet_,e);if(!MR(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);pae(n,e)}return n.copy_}function hqe(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&nH(t,n)}function fae(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var MR=(e,t)=>e.scope_===t,fqe=[];function gae(e,t,n,r){const i=Zu(e),o=e.type_;if(r!==void 0&&ck(i,r,o)===t){Mx(i,r,n,o);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;AR(i,(l,u)=>{if(mc(u)){const d=a.get(u)||[];d.push(l),a.set(u,d)}})}const s=e.draftLocations_.get(t)??fqe;
vendor: 15,753 bytes, line 1009
1009for(const a of s)Mx(i,a,n,o)}function gqe(e,t,n){e.callbacks_.push(function(i){const o=t;if(!o||!MR(o,i))return;i.mapSetPlugin_?.fixSetContents(o);const s=tH(o);gae(e,o.draft_??o,s,n),pae(o,i)})}function pae(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}fae(e)}}function pqe(e,t,n){const{scope_:r}=e;if(mc(n)){const i=n[lo];MR(i,r)&&i.callbacks_.push(function(){y1(e);const s=tH(i);gae(e,n,s,t)})}else fa(n)&&e.callbacks_.push(function(){const o=Zu(e);e.type_===3?o.has(n)&&_x(n,r.handledSet_,r):ck(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&_x(ck(e.copy_,t,e.type_),r.handledSet_,r)})}function _x(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||mc(e)||t.has(e)||!fa(e)||DR(e)||(t.add(e),AR(e,(r,i)=>{if(mc(i)){const o=i[lo];if(MR(o,n)){const s=tH(o);Mx(e,r,s,e.type_),fae(o)}}else fa(i)&&_x(i,t,n)})),e}function mqe(e,t){const n=TR(e),r={type_:n?1:0,scope_:t?t.scope_:hae(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=Fx;n&&(i=[r],o=Yb);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,[a,r]}var Fx={get(e,t){if(t===lo)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Zu(e);if(!ZD(i,t,e.type_))return yqe(e,i,t);const o=i[t];if(e.finalized_||!fa(o)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&lqe(t))return o;if(o===JD(e.base_,t)||vqe(e,t,o)){y1(e);const s=e.type_===1?+t:t,a=mk(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in Zu(e)},ownKeys(e){return Reflect.ownKeys(Zu(e))},set(e,t,n){const r=mae(Zu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=JD(Zu(e),t),o=i?.[lo];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(aqe(n,i)&&(n!==void 0||ZD(e.base_,t,e.type_)))return!0;y1(e),pk(e)}return e.copy_[t]===n&&(n!==void 0||ZD(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),pqe(e,t,n)),!0},deleteProperty(e,t){return y1(e),JD(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),pk(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Zu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[v1]:!0,[uk]:e.type_!==1||t!=="length",[Dx]:r[Dx],[qb]:n[t]}},defineProperty(){$a(11)},getPrototypeOf(e){return Mm(e.base_)},setPrototypeOf(){$a(12)}},Yb={};for(let e in Fx){let t=Fx[e];Yb[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Yb.deleteProperty=function(e,t){return Yb.set.call(this,e,t,void 0)};Yb.set=function(e,t,n){return Fx.set.call(this,e[0],t,n,e[0])};function JD(e,t){const n=e[lo];return(n?Zu(n):e)[t]}function vqe(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!fa(n)||n[lo]?!1:e.baseRefs_.has(n)}function yqe(e,t,n){const r=mae(t,n);return r?qb in r?r[qb]:r.get?.call(e.draft_):void 0}function mae(e,t){if(!(t in e))return;let n=Mm(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Mm(n)}}function pk(e){e.modified_||(e.modified_=!0,e.parent_&&pk(e.parent_))}function y1(e){e.copy_||(e.assigned_=new Map,e.copy_=dk(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var bqe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(Hp(t)&&!Hp(n)){const o=n;n=t;const s=this;return function(l=o,...u){return s.produce(l,d=>n.call(this,d,...u))}}Hp(n)||$a(6),r!==void 0&&!Hp(r)&&$a(7);let i;if(fa(t)){const o=m$(this),s=mk(o,t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?fk(o):gk(o)}return p$(o,r),v$(i,o)}else if(!t||!eH(t)){if(i=n(t),i===void 0&&(i=t),i===uae&&(i=void 0),this.autoFreeze_&&nH(i,!0),r){const o=[],s=[];og(hk).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),r(o,s)}return i}else $a(1,t)},this.produceWithPatches=(t,n)=>{if(Hp(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},QD(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),QD(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),QD(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){fa(e)||$a(8),mc(e)&&(e=la(e));const t=m$(this),n=mk(t,e,void 0);return n[lo].isManual_=!0,gk(t),n}finishDraft(e,t){const n=e&&e[lo];(!n||!n.isManual_)&&$a(9);const{scope_:r}=n;return p$(r,t),v$(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=og(hk).applyPatches_;return mc(e)?r(e,t):this.produce(e,i=>r(i,t))}};function mk(e,t,n,r){const[i,o]=PR(t)?og(Ix).proxyMap_(t,n):OR(t)?og(Ix).proxySet_(t,n):mqe(t,n);return(n?.scope_??hae()).drafts_.push(i),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&r!==void 0?gqe(n,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:u}=l;o.modified_&&u&&u.generatePatches_(o,[],l)}),i}function la(e){return mc(e)||$a(10,e),vae(e)}function vae(e){if(!fa(e)||DR(e))return e;const t=e[lo];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=dk(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=dk(e,!0);return AR(n,(i,o)=>{Mx(n,i,vae(o))},r),t&&(t.finalized_=!1),n}var wqe=globalThis.Iterator;wqe?.from;var Cqe=new bqe,yae=Cqe.produce,Kt=e=>e;function bae(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Sqe=bae(),xqe=bae,Eqe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Px:Px.apply(null,arguments)};function Es(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Cs(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>lae(r)&&r.type===e,n}var wae=class Wy extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Wy.prototype)}static get[Symbol.species](){return Wy}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Wy(...t[0].concat(this)):new Wy(...t.concat(this))}};function b$(e){return fa(e)?yae(e,()=>{}):e}function ES(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Rqe(e){return typeof e=="boolean"}var Aqe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new wae;return n&&(Rqe(n)?s.push(Sqe):s.push(xqe(n.extraArgument))),s},Cae="RTK_autoBatch",Nn=()=>e=>({payload:e,meta:{[Cae]:!0}}),w$=e=>t=>{setTimeout(t,e)},Tqe=(e,t)=>n=>{let r=!1;const i=()=>{r||(r=!0,cancelAnimationFrame(o),clearTimeout(s),n())},o=e(i),s=setTimeout(i,t)},Sae=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Tqe(window.requestAnimationFrame,100):w$(10):e.type==="callback"?e.queueNotification:w$(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),g=r.subscribe(f);return a.add(d),()=>{g(),a.delete(d)}},dispatch(d){try{return i=!d?.meta?.[Cae],o=!i,o&&(s||(s=!0,l(u))),r.dispatch(d)}finally{i=!0}}})},Pqe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new wae(e);return r&&i.push(Sae(typeof r=="object"?r:void 0)),i};function Oqe(e){const t=Aqe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(JB(n))a=aae(n);else throw new Error(Cs(1));let l;typeof r=="function"?l=r(t):l=t();let u=Px;i&&(u=Eqe({trace:!1,...typeof i=="object"&&i}));const d=oqe(...l),f=Pqe(d);let g=typeof s=="function"?s(f):f();const m=u(...g);return sae(a,o,m)}function xae(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(Cs(28));if(a in t)throw new Error(Cs(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Dqe(e){return typeof e=="function"}function Mqe(e,t){let[n,r,i]=xae(t),o;if(Dqe(e))o=()=>b$(e());else{const a=b$(e);o=()=>a}function s(a=o(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(mc(d)){const m=f(d,l);return m===void 0?d:m}else{if(fa(d))return yae(d,g=>f(g,l));{const g=f(d,l);if(g===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return d},a)}return s.getInitialState=o,s}var Iqe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_qe=(e=21)=>{let t="",n=e;for(;n--;)t+=Iqe[Math.random()*64|0];return t},Fqe=Symbol.for("rtk-slice-createasyncthunk");function kqe(e,t){return`${e}/${t}`}function Lqe({creators:e}={}){const t=e?.asyncThunk?.[Fqe];return function(r){const{name:i,reducerPath:o=i}=r;if(!i)throw new Error(Cs(11));const s=(typeof r.reducers=="function"?r.reducers(Bqe()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(A,T){const P=typeof A=="string"?A:A.type;if(!P)throw new Error(Cs(12));if(P in l.sliceCaseReducersByType)throw new Error(Cs(13));return l.sliceCaseReducersByType[P]=T,u},addMatcher(A,T){return l.sliceMatchers.push({matcher:A,reducer:T}),u},exposeAction(A,T){return l.actionCreators[A]=T,u},exposeCaseReducer(A,T){return l.sliceCaseReducersByName[A]=T,u}};a.forEach(A=>{const T=s[A],P={reducerName:A,type:kqe(i,A),createNotation:typeof r.reducers=="function"};Vqe(T)?Gqe(P,T,u,t):Hqe(P,T,u)});function d(){const[A={},T=[],P=void 0]=typeof r.extraReducers=="function"?xae(r.extraReducers):[r.extraReducers],O={...A,...l.sliceCaseReducersByType};return Mqe(r.initialState,D=>{for(let F in O)D.addCase(F,O[F]);for(let F of l.sliceMatchers)D.addMatcher(F.matcher,F.reducer);for(let F of T)D.addMatcher(F.matcher,F.reducer);P&&D.addDefaultCase(P)})}const f=A=>A,g=new Map,m=new WeakMap;let y;function b(A,T){return y||(y=d()),y(A,T)}function w(){return y||(y=d()),y.getInitialState()}function C(A,T=!1){function P(D){let F=D[A];return typeof F>"u"&&T&&(F=ES(m,P,w)),F}function O(D=f){const F=ES(g,T,()=>new WeakMap);return ES(F,D,()=>{const L={};for(const[N,M]of Object.entries(r.selectors??{}))L[N]=Nqe(M,D,()=>ES(m,D,w),T);return L})}return{reducerPath:A,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const E={name:i,reducer:b,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:w,...C(o),injectInto(A,{reducerPath:T,...P}={}){const O=T??o;return A.inject({reducerPath:O,reducer:b},P),{...E,...C(O,!0)}}};return E}}function Nqe(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var co=Lqe();function Bqe(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Hqe({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!zqe(r))throw new Error(Cs(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?Es(e,s):Es(e))}function Vqe(e){return e._reducerDefinitionType==="asyncThunk"}function zqe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Gqe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Cs(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:u,options:d}=n,f=i(e,o,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||RS,pending:a||RS,rejected:l||RS,settled:u||RS})}function RS(){}var jqe="task",Eae="listener",Rae="completed",rH="cancelled",Uqe=`task-${rH}`,Wqe=`task-${Rae}`,vk=`${Eae}-${rH}`,$qe=`${Eae}-${Rae}`,IR=class{constructor(e){this.code=e,this.message=`${jqe} ${rH} (reason: ${e})`}code;name="TaskAbortError";message},iH=(e,t)=>{if(typeof e!="function")throw new TypeError(Cs(32))},kx=()=>{},Aae=(e,t=kx)=>(e.catch(t),e),Tae=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),If=e=>{if(e.aborted)throw new IR(e.reason)};function Pae(e,t){let n=kx;return new Promise((r,i)=>{const o=()=>i(new IR(e.reason));if(e.aborted){o();return}n=Tae(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=kx})}var qqe=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof IR?"cancelled":"rejected",error:n}}finally{t?.()}},Lx=e=>t=>Aae(Pae(e,t).then(n=>(If(e),n))),Oae=e=>{const t=Lx(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:cm}=Object,C$={},_R="listenerMiddleware",Kqe=(e,t)=>{const n=r=>Tae(e,()=>r.abort(e.reason));return(r,i)=>{iH(r);const o=new AbortController;n(o);const s=qqe(async()=>{If(e),If(o.signal);const a=await r({pause:Lx(o.signal),delay:Oae(o.signal),signal:o.signal});return If(o.signal),a},()=>o.abort(Wqe));return i?.autoJoin&&t.push(s.catch(kx)),{result:Lx(e)(s),cancel(){o.abort(Uqe)}}}},Yqe=(e,t)=>{const n=async(r,i)=>{If(t);let o=()=>{};const a=[new Promise((l,u)=>{let d=e({predicate:r,effect:(f,g)=>{g.unsubscribe(),l([f,g.getState(),g.getOriginalState()])}});o=()=>{d(),u()}})];i!=null&&a.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Pae(t,Promise.race(a));return If(t),l}finally{o()}};return((r,i)=>Aae(n(r,i)))},Dae=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=Es(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Cs(21));return iH(o),{predicate:i,type:t,effect:o}},Mae=cm(e=>{const{type:t,predicate:n,effect:r}=Dae(e);return{id:_qe(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Cs(22))}}},{withTypes:()=>Mae}),S$=(e,t)=>{const{type:n,effect:r,predicate:i}=Dae(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},yk=e=>{e.pending.forEach(t=>{t.abort(vk)})},Xqe=(e,t)=>()=>{for(const n of t.keys())yk(n);e.clear()},x$=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},Iae=cm(Es(`${_R}/add`),{withTypes:()=>Iae}),Zqe=Es(`${_R}/removeAll`),_ae=cm(Es(`${_R}/remove`),{withTypes:()=>_ae}),Qqe=(...e)=>{console.error(`${_R}/error`,...e)},Fw=(e={})=>{const t=new Map,n=new Map,r=m=>{const y=n.get(m)??0;n.set(m,y+1)},i=m=>{const y=n.get(m)??1;y===1?n.delete(m):n.set(m,y-1)},{extra:o,onError:s=Qqe}=e;iH(s);const a=m=>(m.unsubscribe=()=>t.delete(m.id),t.set(m.id,m),y=>{m.unsubscribe(),y?.cancelActive&&yk(m)}),l=(m=>{const y=S$(t,m)??Mae(m);return a(y)});cm(l,{withTypes:()=>l});const u=m=>{const y=S$(t,m);return y&&(y.unsubscribe(),m.cancelActive&&yk(y)),!!y};cm(u,{withTypes:()=>u});
1009const d=async(m,y,b,w)=>{const C=new AbortController,E=Yqe(l,C.signal),A=[];try{m.pending.add(C),r(m),await Promise.resolve(m.effect(y,cm({},b,{getOriginalState:w,condition:(T,P)=>E(T,P).then(Boolean),take:E,delay:Oae(C.signal),pause:Lx(C.signal),extra:o,signal:C.signal,fork:Kqe(C.signal,A),unsubscribe:m.unsubscribe,subscribe:()=>{t.set(m.id,m)},cancelActiveListeners:()=>{m.pending.forEach((T,P,O)=>{T!==C&&(T.abort(vk),O.delete(T))})},cancel:()=>{C.abort(vk),m.pending.delete(C)},throwIfCancelled:()=>{If(C.signal)}})))}catch(T){T instanceof IR||x$(s,T,{raisedBy:"effect"})}finally{await Promise.all(A),C.abort($qe),i(m),m.pending.delete(C)}},f=Xqe(t,n);return{middleware:m=>y=>b=>{if(!lae(b))return y(b);if(Iae.match(b))return l(b.payload);if(Zqe.match(b)){f();return}if(_ae.match(b))return u(b.payload);let w=m.getState();const C=()=>{if(w===C$)throw new Error(Cs(23));return w};let E;try{if(E=y(b),t.size>0){const A=m.getState(),T=Array.from(t.values());for(const P of T){let O=!1;try{O=P.predicate(b,A,w)}catch(D){O=!1,x$(s,D,{raisedBy:"predicate"})}O&&d(P,b,m,C)}}}finally{w=C$}return E},startListening:l,stopListening:u,clearListeners:f}};function Cs(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Jqe={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Fae=co({name:"chartLayout",initialState:Jqe,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),FR=Fae.actions,eKe=FR.setMargin,tKe=FR.setLayout,nKe=FR.setChartSize,rKe=FR.setScale,iKe=Fae.reducer;function kae(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Ot(e){return Number.isFinite(e)}function ou(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function E$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E$(Object(n),!0).forEach(function(r){oKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oKe(e,t,n){return(t=sKe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sKe(e){var t=aKe(e,"string");return typeof t=="symbol"?t:t+""}function aKe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gt(e,t,n){return Mn(e)||Mn(t)?n:iu(t)?ru(e,t,n):typeof t=="function"?t(e):n}var lKe=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,o=t.align,s=t.verticalAlign,a=t.layout,l=t.position,u=t.offset,d=u===void 0?0:u;if(l!=null){if(jB(l)){if(l==="top"&&ze(e.top))return jo(jo({},e),{},{top:e.top+(i||0)+d});if(l==="bottom"&&ze(e.bottom))return jo(jo({},e),{},{bottom:e.bottom+(i||0)+d});if(l==="left"&&ze(e.left))return jo(jo({},e),{},{left:e.left+(r||0)+d});if(l==="right"&&ze(e.right))return jo(jo({},e),{},{right:e.right+(r||0)+d})}return e}if((a==="vertical"||a==="horizontal"&&s==="middle")&&o!=="center"&&ze(e[o]))return jo(jo({},e),{},{[o]:e[o]+(r||0)});if((a==="horizontal"||a==="vertical"&&o==="center")&&s!=="middle"&&ze(e[s]))return jo(jo({},e),{},{[s]:e[s]+(i||0)})}return e},wa=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Lae=(e,t,n,r)=>{if(r)return e.map(a=>a.coordinate);var i,o,s=e.map(a=>(a.coordinate===t&&(i=!0),a.coordinate===n&&(o=!0),a.coordinate));return i||s.push(t),o||s.push(n),s},Nae=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,o=e.range,s=e.scale,a=e.realScaleType,l=e.isCategorical,u=e.categoricalDomain,d=e.tickCount,f=e.ticks,g=e.niceTicks,m=e.axisType;if(!s)return null;var y=a==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,b=i==="category"&&s.bandwidth?s.bandwidth()/y:0;if(b=m==="angleAxis"&&o&&o.length>=2?Lr(o[0]-o[1])*2*b:b,f||g){var w=(f||g||[]).map((C,E)=>{var A=r?r.indexOf(C):C,T=s.map(A);return Ot(T)?{coordinate:T+b,value:C,offset:b,index:E}:null}).filter(So);return w}return l&&u?u.map((C,E)=>{var A=s.map(C);return Ot(A)?{coordinate:A+b,value:C,index:E,offset:b}:null}).filter(So):s.ticks&&d!=null?s.ticks(d).map((C,E)=>{var A=s.map(C);return Ot(A)?{coordinate:A+b,value:C,index:E,offset:b}:null}).filter(So):s.domain().map((C,E)=>{var A=s.map(C);return Ot(A)?{coordinate:A+b,value:r?r[C]:C,index:E,offset:b}:null}).filter(So)},Bae=(e,t)=>{if(!t||t.length!==2||!ze(t[0])||!ze(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!ze(e[0])||e[0]<n)&&(i[0]=n),(!ze(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},uKe=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var o=0,s=0,a=0;a<n;++a){var l=e[a],u=l?.[i];if(u!=null){var d=u[1],f=u[0],g=Ja(d)?f:d;g>=0?(u[0]=o,o+=g,u[1]=o):(u[0]=s,s+=g,u[1]=s)}}}},cKe=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var o=0,s=0;s<n;++s){var a=e[s],l=a?.[i];if(l!=null){var u=Ja(l[1])?l[0]:l[1];u>=0?(l[0]=o,o+=u,l[1]=o):(l[0]=0,l[1]=0)}}}},dKe={sign:uKe,expand:P7e,none:ig,silhouette:O7e,wiggle:D7e,positive:cKe},hKe=(e,t,n)=>{var r,i=(r=dKe[n])!==null&&r!==void 0?r:ig,o=T7e().keys(t).value((a,l)=>Number(Gt(a,l,0))).order(rk).offset(i),s=o(e);
1009return s.forEach((a,l)=>{a.forEach((u,d)=>{var f=Gt(e[d],t[l],0);Array.isArray(f)&&f.length===2&&ze(f[0])&&ze(f[1])&&(u[0]=f[0],u[1]=f[1])})}),s};function kR(e){return e==null?void 0:String(e)}function Nx(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Mn(i[t.dataKey])){var a=ase(n,"value",i[t.dataKey]);if(a)return a.coordinate+r/2}return n!=null&&n[o]?n[o].coordinate+r/2:null}var l=Gt(i,Mn(s)?t.dataKey:s),u=t.scale.map(l);return ze(u)?u:null}var Bx=e=>{var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,s=e.index;if(t.type==="category")return n[s]?n[s].coordinate+r:null;var a=Gt(o,t.dataKey,t.scale.domain()[s]);if(Mn(a))return null;var l=t.scale.map(a);return ze(l)?l-i/2+r:null},Hae=e=>{var t=e.numericAxis,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},fKe=e=>{var t=e.flat(2).filter(ze);return[Math.min(...t),Math.max(...t)]},gKe=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],pKe=(e,t,n)=>{if(!(e==null||Object.keys(e).length===0))return gKe(Object.keys(e).reduce((r,i)=>{var o=e[i];if(!o)return r;var s=o.stackedData,a=s.reduce((l,u)=>{var d=kae(u,t,n),f=fKe(d);return!Ot(f[0])||!Ot(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]))},R$=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,A$=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ga=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=ER(t,b=>b.coordinate),o=[],s=0,a=1,l=i.length;a<l;a++){var u,d,f=(((u=i[a])===null||u===void 0?void 0:u.coordinate)||0)-(((d=i[a-1])===null||d===void 0?void 0:d.coordinate)||0);o.push(f),s=Math.max(f,s)}var g=s*1e-4,m=1/0;for(var y of o)y>g&&(m=Math.min(y,m));return m===1/0?0:m}return n?void 0:0};function T$(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,o=e.name;return jo(jo({},t),{},{dataKey:n,payload:r,value:i,name:o})}function Oc(e,t){if(e!=null)return String(e);if(typeof t=="string")return t}var mKe=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},vKe=(e,t)=>t==="centric"?e.angle:e.radius,hu=e=>e.layout.width,fu=e=>e.layout.height,yKe=e=>e.layout.scale,oH=e=>e.layout.margin,LR=ne(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),NR=ne(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Vae="data-recharts-item-index",zae="data-recharts-item-id",kw=60,sH=30;function P$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P$(Object(n),!0).forEach(function(r){bKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bKe(e,t,n){return(t=wKe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wKe(e){var t=CKe(e,"string");return typeof t=="symbol"?t:t+""}function CKe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SKe=e=>e.brush.height;function xKe(e){var t=NR(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:kw;return n+i}return n},0)}function EKe(e){var t=NR(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:kw;return n+i}return n},0)}function RKe(e){var t=LR(e);return t.reduce((n,r)=>{if(r.orientation==="top"&&!r.mirror&&!r.hide){var i=typeof r.height=="number"?r.height:sH;return n+i}return n},0)}function AKe(e){var t=LR(e);return t.reduce((n,r)=>{if(r.orientation==="bottom"&&!r.mirror&&!r.hide){var i=typeof r.height=="number"?r.height:sH;return n+i}return n},0)}var Xr=ne([hu,fu,oH,SKe,xKe,EKe,RKe,AKe,iae,q9e],(e,t,n,r,i,o,s,a,l,u)=>{var d={left:(n.left||0)+i,right:(n.right||0)+o},f={top:(n.top||0)+s,bottom:(n.bottom||0)+a},g=AS(AS({},f),d),m=g.bottom;g.bottom+=r,g=lKe(g,l,u);var y=e-g.left-g.right,b=t-g.top-g.bottom;return AS(AS({brushBottom:m},g),{},{width:Math.max(y,0),height:Math.max(b,0)})}),Gae=ne(Xr,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),aH=ne(hu,fu,(e,t)=>({x:0,y:0,width:e,height:t})),TKe=R.createContext(null),gi=()=>R.useContext(TKe)!=null,BR=e=>e.brush,HR=ne([BR,Xr,oH],(e,t,n)=>({height:e.height,x:ze(e.x)?e.x:t.left,y:ze(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:ze(e.width)?e.width:t.width}));function PKe(e,t,{signal:n,edges:r}={}){let i,o=null;const s=r!=null&&r.includes("leading"),a=r==null||r.includes("trailing"),l=()=>{o!==null&&(e.apply(i,o),i=void 0,o=null)},u=()=>{a&&l(),m()};let d=null;const f=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,u()},t)},g=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{g(),i=void 0,o=null},y=()=>
1009{l()},b=function(...w){if(n?.aborted)return;i=this,o=w;const C=d==null;f(),s&&C&&l()};return b.schedule=f,b.cancel=m,b.flush=y,n?.addEventListener("abort",m,{once:!0}),b}function OKe(e,t=0,n={}){typeof n!="object"&&(n={});const{leading:r=!1,trailing:i=!0,maxWait:o}=n,s=Array(2);r&&(s[0]="leading"),i&&(s[1]="trailing");let a,l=null;const u=PKe(function(...g){a=e.apply(this,g),l=null},t,{edges:s}),d=function(...g){return o!=null&&(l===null&&(l=Date.now()),Date.now()-l>=o)?((r||i)&&(a=e.apply(this,g)),l=Date.now(),u.cancel(),u.schedule(),a):(u.apply(this,g),a)},f=()=>(u.flush(),a);return d.cancel=u.cancel,d.flush=f,d}function DKe(e,t=0,n={}){const{leading:r=!0,trailing:i=!0}=n;return OKe(e,t,{leading:r,maxWait:t,trailing:i})}var Hx=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;console.warn(n.replace(/%s/g,()=>i[s++]))}},jl={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},jae=(e,t,n)=>{var r=n.width,i=r===void 0?jl.width:r,o=n.height,s=o===void 0?jl.height:o,a=n.aspect,l=n.maxHeight,u=rg(i)?e:Number(i),d=rg(s)?t:Number(s);return a&&a>0&&(u?d=u/a:d&&(u=d*a),l&&d!=null&&d>l&&(d=l)),{calculatedWidth:u,calculatedHeight:d}},MKe={width:0,height:0,overflow:"visible"},IKe={width:0,overflowX:"visible"},_Ke={height:0,overflowY:"visible"},FKe={},kKe=e=>{var t=e.width,n=e.height,r=rg(t),i=rg(n);return r&&i?MKe:r?IKe:i?_Ke:FKe};function LKe(e){var t=e.width,n=e.height,r=e.aspect,i=t,o=n;return i===void 0&&o===void 0?(i=jl.width,o=jl.height):i===void 0?i=r&&r>0?void 0:jl.width:o===void 0&&(o=r&&r>0?void 0:jl.height),{width:i,height:o}}var NKe=["aspect","initialDimension","width","height","minWidth","minHeight","maxHeight","children","debounce","id","className","onResize","style"];function Vx(){return Vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vx.apply(null,arguments)}function O$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function D$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O$(Object(n),!0).forEach(function(r){BKe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BKe(e,t,n){return(t=HKe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HKe(e){var t=VKe(e,"string");return typeof t=="symbol"?t:t+""}function VKe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zKe(e,t){return WKe(e)||UKe(e,t)||jKe(e,t)||GKe()}function GKe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1010In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jKe(e,t){if(e){if(typeof e=="string")return M$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M$(e,t):void 0}}function M$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function UKe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}
1010finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function WKe(e){if(Array.isArray(e))return e}function $Ke(e,t){if(e==null)return{};var n,r,i=qKe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function qKe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Uae=R.createContext(jl.initialDimension);function KKe(e){return ou(e.width)&&ou(e.height)}function Wae(e){var t=e.children,n=e.width,r=e.height,i=R.useMemo(()=>({width:n,height:r}),[n,r]);return KKe(i)?R.createElement(Uae.Provider,{value:i},t):null}var lH=()=>R.useContext(Uae),YKe=R.forwardRef((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?jl.initialDimension:r,o=e.width,s=e.height,a=e.minWidth,l=a===void 0?jl.minWidth:a,u=e.minHeight,d=e.maxHeight,f=e.children,g=e.debounce,m=g===void 0?jl.debounce:g,y=e.id,b=e.className,w=e.onResize,C=e.style,E=C===void 0?{}:C,A=$Ke(e,NKe),T=R.useRef(null),P=R.useRef();P.current=w,R.useImperativeHandle(t,()=>T.current);var O=R.useState({containerWidth:i.width,containerHeight:i.height}),D=zKe(O,2),F=D[0],L=D[1],N=R.useCallback((H,G)=>{L($=>{var Y=Math.round(H),K=Math.round(G);return $.containerWidth===Y&&$.containerHeight===K?$:{containerWidth:Y,containerHeight:K}})},[]);R.useEffect(()=>{if(T.current==null||typeof ResizeObserver>"u")return Pc;var H=se=>{var re,ue=se[0];if(ue!=null){var U=ue.contentRect,X=U.width,be=U.height;N(X,be),(re=P.current)===null||re===void 0||re.call(P,X,be)}};m>0&&(H=DKe(H,m,{trailing:!0,leading:!1}));var G=new ResizeObserver(H),$=T.current.getBoundingClientRect(),Y=$.width,K=$.height;return N(Y,K),G.observe(T.current),()=>{G.disconnect()}},[N,m]);var M=F.containerWidth,k=F.containerHeight;Hx(!n||n>0,"The aspect(%s) must be greater than zero.",n);var B=jae(M,k,{width:o,height:s,aspect:n,maxHeight:d}),j=B.calculatedWidth,z=B.calculatedHeight;return Hx(M<0||k<0||j!=null&&j>0||z!=null&&z>0,`The width(%s) and height(%s) of chart should be greater than 0, 1011 please check the style of container, or the props width(%s) and height(%s), 1012 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 1013 height and width.`,j,z,o,s,l,u,n),R.createElement("div",Vx({id:y?"".concat(y):void 0,className:Et("recharts-responsive-container",b),style:D$(D$({},E),{},{width:o,height:s,minWidth:l,minHeight:u,maxHeight:d}),ref:T},A),R.createElement("div",{style:kKe({width:o,height:s})},R.createElement(Wae,{width:j,height:z},f)))}),Uwt=R.forwardRef((e,t)=>{var n=lH();if(ou(n.width)&&ou(n.height))return e.children;var r=LKe({width:e.width,height:e.height,aspect:e.aspect}),i=r.width,o=r.height,s=jae(void 0,void 0,{width:i,height:o,aspect:e.aspect,maxHeight:e.maxHeight}),a=s.calculatedWidth,l=s.calculatedHeight;return ze(a)&&ze(l)?R.createElement(Wae,{width:a,height:l},e.children):R.createElement(YKe,Vx({},e,{width:i,height:o,ref:t}))}),VR=()=>{var e,t=gi(),n=$e(Gae),r=$e(HR),i=(e=$e(BR))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},XKe={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},$ae=()=>{var e;return(e=$e(Xr))!==null&&e!==void 0?e:XKe},uH=()=>$e(hu),cH=()=>$e(fu),ZKe=()=>$e(e=>e.layout.margin),wt=e=>e.layout.layoutType,uh=()=>$e(wt),dH=()=>{var e=uh();if(e==="horizontal"||e==="vertical")return e},hH=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},qae=()=>$e(hH),QKe=()=>{var e=uh();return e!==void 0},Lw=e=>{var t=mn(),n=gi(),r=e.width,i=e.height,o=lH(),s=r,a=i;return o&&(s=o.width>0?o.width:r,a=o.height>0?o.height:i),R.useEffect(()=>{!n&&ou(s)&&ou(a)&&t(nKe({width:s,height:a}))},[t,n,s,a]),null},JKe={settings:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemSorter:"value",position:void 0,offset:0},size:{width:0,height:0},payload:[]},Kae=co({name:"legend",initialState:JKe,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height}
1013,setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter,e.settings.position=t.payload.position,e.settings.offset=t.payload.offset},addLegendPayload:{reducer(e,t){e.payload.push(Kt(t.payload))},prepare:Nn()},replaceLegendPayload:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,o=la(e).payload.indexOf(Kt(r));o>-1&&(e.payload[o]=Kt(i))},prepare:Nn()},removeLegendPayload:{reducer(e,t){var n=la(e).payload.indexOf(Kt(t.payload));n>-1&&e.payload.splice(n,1)},prepare:Nn()}}}),Nw=Kae.actions,I$=Nw.setLegendSize,eYe=Nw.setLegendSettings,Yae=Nw.addLegendPayload,Xae=Nw.replaceLegendPayload,Zae=Nw.removeLegendPayload,tYe=Kae.reducer,eM={exports:{}},tM={};var _$;function nYe(){if(_$)return tM;_$=1;var e=Vm();function t(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,a=e.useDebugValue;return tM.useSyncExternalStoreWithSelector=function(l,u,d,f,g){var m=i(null);if(m.current===null){var y={hasValue:!1,value:null};m.current=y}else y=m.current;m=s(function(){function w(P){if(!C){if(C=!0,E=P,P=f(P),g!==void 0&&y.hasValue){var O=y.value;if(g(O,P))return A=O}return A=P}if(O=A,n(E,P))return O;var D=f(P);return g!==void 0&&g(O,D)?(E=P,O):(E=P,A=D)}var C=!1,E,A,T=d===void 0?null:d;return[function(){return w(u())},T===null?void 0:function(){return w(T())}]},[u,d,f,g]);var b=r(l,m[0],m[1]);return o(function(){y.hasValue=!0,y.value=b},[b]),a(b),b},tM}var F$;function rYe(){return F$||(F$=1,eM.exports=nYe()),eM.exports}rYe();function iYe(e){e()}function oYe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){iYe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var k$={notify(){},get:()=>[]};function sYe(e,t){let n,r=k$,i=0,o=!1;function s(b){d();const w=r.subscribe(b);let C=!1;return()=>{C||(C=!0,w(),f())}}function a(){r.notify()}function l(){y.onStateChange&&y.onStateChange()}function u(){return o}function d(){i++,n||(n=e.subscribe(l),r=oYe())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=k$)}function g(){o||(o=!0,d())}function m(){o&&(o=!1,f())}const y={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:u,trySubscribe:g,tryUnsubscribe:m,getListeners:()=>r};return y}var aYe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lYe=aYe(),uYe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",cYe=uYe(),dYe=()=>lYe||cYe?R.useLayoutEffect:R.useEffect,hYe=dYe();function L$(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function fYe(e,t){if(L$(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!L$(e[n[i]],t[n[i]]))return!1;return!0}var gYe=Symbol.for("react-redux-context"),pYe=typeof globalThis<"u"?globalThis:{};function mYe(){if(!R.createContext)return{};const e=pYe[gYe]??=new Map;let t=e.get(R.createContext);return t||(t=R.createContext(null),e.set(R.createContext,t)),t}var vYe=mYe();function yYe(e){const{children:t,context:n,serverState:r,store:i}=e,o=R.useMemo(()=>{const l=sYe(i);return{store:i,subscription:l,getServerState:r?()=>r:void 0}},[i,r]),s=R.useMemo(()=>i.getState(),[i]);hYe(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==i.get
1013State()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,s]);const a=n||vYe;return R.createElement(a.Provider,{value:o},t)}var bYe=yYe,wYe=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function CYe(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Tg(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(wYe.has(r)){if(e[r]==null&&t[r]==null)continue;if(!fYe(e[r],t[r]))return!1}else if(!CYe(e[r],t[r]))return!1;return!0}var SYe=ne([hu,fu,oH],(e,t,n)=>({x:n.left||0,y:n.top||0,width:Math.max(e-(n.left||0)-(n.right||0),0),height:Math.max(t-(n.top||0)-(n.bottom||0),0)}));function xYe(e,t){var n;if(e==="start"&&t==="start")return"";var r={start:"0",middle:"-50%",end:"-100%"},i={start:"0",middle:"-50%",end:"-100%"},o=e==="inherit"?"0":r[e],s=(n=i[t])!==null&&n!==void 0?n:"0";return"translate(".concat(o,", ").concat(s,")")}var EYe=["contextPayload"];function bk(){return bk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bk.apply(null,arguments)}function RYe(e,t){return OYe(e)||PYe(e,t)||TYe(e,t)||AYe()}function AYe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1014In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TYe(e,t){if(e){if(typeof e=="string")return N$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N$(e,t):void 0}}function N$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PYe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function OYe(e){if(Array.isArray(e))return e}function B$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Im(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B$(Object(n),!0).forEach(function(r){DYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DYe(e,t,n){return(t=MYe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MYe(e){var t=IYe(e,"string");return typeof t=="symbol"?t:t+""}function IYe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _Ye(e,t){if(e==null)return{};var n,r,i=FYe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function FYe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kYe(e){return e.value}function LYe(e){var t=e.contextPayload,n=_Ye(e,EYe),r=tae(t,e.payloadUniqBy,kYe),i=Im(Im({},n),{},{payload:r});return R.isValidElement(e.content)?R.cloneElement(e.content,i):typeof e.content=="function"?R.createElement(e.content,i):R.createElement(J7e,i)}function NYe(e){return e==="left"||e==="right"||e==="insideLeft"||e==="insideRight"?"vertical":"horizontal"}function BYe(e,t){return t==null?null:jB(t)?SYe(e):Gae(e)}function HYe(e,t,n){return e==="top"?{top:n.height+t}:e==="bottom"?{top:-n.height-t}:e==="left"?{left:n.width+t}:e==="right"?{left:-n.width-t}:{}}function VYe(e,t,n,r,i,o){var s=t.layout,a=t.align,l=t.verticalAlign,u,d;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(a==="center"&&s==="vertical"?u={left:((r||0)-o.width)/2}:u=a==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?d={top:((i||0)-o.height)/2}:d=l==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),Im(Im({},u),d)}function zYe(e){var t=e.align,n=e.layout,r=e.verticalAlign,i=e.itemSorter,o=e.position,s=e.offset,a=mn();return R.useLayoutEffect(()=>{a(eYe({align:t,layout:n,verticalAlign:r,itemSorter:i,position:o,offset:s}))},[a,t,n,r,i,o,s]),null}
1014function GYe(e){var t=e.width,n=e.height,r=mn();return R.useLayoutEffect(()=>{r(I$({width:t,height:n}))},[r,t,n]),R.useLayoutEffect(()=>()=>{r(I$({width:0,height:0}))},[r]),null}function jYe(e,t,n,r){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:n||r}:null}var UYe={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",labelStyle:{},layout:"auto",verticalAlign:"bottom",offset:0};function WYe(e){var t,n,r,i,o,s,a,l,u=gr(e,UYe),d=e.layout&&e.layout!=="auto"?e.layout:NYe(u.position),f=X9e(),g=Z$e(),m=ZKe(),y=$e(K=>BYe(K,u.position)),b=u.width,w=u.height,C=u.wrapperStyle,E=u.portal,A=E==null&&(u.position==null||jB(u.position)),T=oae([f]),P=RYe(T,2),O=P[0],D=P[1],F=uH(),L=cH();if(F==null||L==null||u.position!=null&&y==null)return null;var N=F-(m?.left||0)-(m?.right||0),M=jYe(d,w,b,N),k=u.position==null?null:lse({viewBox:y??{x:0,y:0,width:F,height:L},position:u.position,offset:(t=u.offset)!==null&&t!==void 0?t:0}),B=HYe(u.position,(n=u.offset)!==null&&n!==void 0?n:0,O),j=d==="vertical"?((r=y?.width)!==null&&r!==void 0?r:0)/2:(i=y?.width)!==null&&i!==void 0?i:0,z=d==="horizontal"?((o=y?.height)!==null&&o!==void 0?o:0)/2:(s=y?.height)!==null&&s!==void 0?s:0,H=k?{width:"max-content",height:"max-content",maxWidth:j,maxHeight:z,overflowY:"auto",top:k.y+((a=B.top)!==null&&a!==void 0?a:0),left:k.x+((l=B.left)!==null&&l!==void 0?l:0),transform:xYe(k.horizontalAnchor,k.verticalAnchor)}:VYe(C,u,m,F,L,O),G=E?C:Im(Im({position:"absolute",width:M?.width||b||"auto",height:M?.height||w||"auto"},H),C),$=E??g;if($==null||f==null)return null;var Y=R.createElement("div",{className:"recharts-legend-wrapper",style:G,ref:D},R.createElement(zYe,{layout:d,align:u.align,verticalAlign:u.verticalAlign,itemSorter:u.itemSorter,position:u.position,offset:u.offset}),A&&R.createElement(GYe,O),R.createElement(LYe,bk({},u,{layout:d},M,{margin:m,chartWidth:F,chartHeight:L,contextPayload:f})));return zm.createPortal(Y,$)}var $Ye=R.memo(WYe,Tg);$Ye.displayName="Legend";function wk(){return wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wk.apply(null,arguments)}function H$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function by(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H$(Object(n),!0).forEach(function(r){qYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qYe(e,t,n){return(t=KYe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KYe(e){var t=YYe(e,"string");return typeof t=="symbol"?t:t+""}function YYe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XYe(e,t){return eXe(e)||JYe(e,t)||QYe(e,t)||ZYe()}function ZYe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1015In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QYe(e,t){if(e){if(typeof e=="string")return V$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V$(e,t):void 0}}function V$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JYe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}
1015finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function eXe(e){if(Array.isArray(e))return e}function tXe(e){return Array.isArray(e)&&iu(e[0])&&iu(e[1])?e.join(" ~ "):e}var Ep={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function nXe(e,t){return t==null?e:ER(e,t)}var rXe=e=>{var t=e.separator,n=t===void 0?Ep.separator:t,r=e.contentStyle,i=e.itemStyle,o=e.labelStyle,s=o===void 0?Ep.labelStyle:o,a=e.payload,l=e.formatter,u=e.itemSorter,d=e.wrapperClassName,f=e.labelClassName,g=e.label,m=e.labelFormatter,y=e.accessibilityLayer,b=y===void 0?Ep.accessibilityLayer:y,w=()=>{if(a&&a.length){var F={padding:0,margin:0},L=nXe(a,u),N=L.map((M,k)=>{if(!M||M.type==="none")return null;var B=M.formatter||l||tXe,j=M.value,z=M.name,H=j,G=z;if(B){var $=B(j,z,M,k,a);if(Array.isArray($)){var Y=XYe($,2);H=Y[0],G=Y[1]}else if($!=null)H=$;else return null}var K=by(by({},Ep.itemStyle),{},{color:M.color||Ep.itemStyle.color},i);return R.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:K},iu(G)?R.createElement("span",{className:"recharts-tooltip-item-name"},G):null,iu(G)?R.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,R.createElement("span",{className:"recharts-tooltip-item-value"},H),R.createElement("span",{className:"recharts-tooltip-item-unit"},M.unit||""))});return R.createElement("ul",{className:"recharts-tooltip-item-list",style:F},N)}return null},C=by(by({},Ep.contentStyle),r),E=by({margin:0},s),A=!Mn(g),T=A?g:"",P=Et("recharts-default-tooltip",d),O=Et("recharts-tooltip-label",f);A&&m&&a!==void 0&&a!==null&&(T=m(g,a));var D=b?{role:"status","aria-live":"assertive"}:{};return R.createElement("div",wk({className:P,style:C},D),R.createElement("p",{className:O,style:E},R.isValidElement(T)?T:"".concat(T)),w())},wy="recharts-tooltip-wrapper",iXe={visibility:"hidden"};function oXe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Et(wy,{["".concat(wy,"-right")]:ze(n)&&t&&ze(t.x)&&n>=t.x,["".concat(wy,"-left")]:ze(n)&&t&&ze(t.x)&&n<t.x,["".concat(wy,"-bottom")]:ze(r)&&t&&ze(t.y)&&r>=t.y,["".concat(wy,"-top")]:ze(r)&&t&&ze(t.y)&&r<t.y})}function z$(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offset,o=e.position,s=e.reverseDirection,a=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(o&&ze(o[r]))return o[r];var d=n[r]-a-(i>0?i:0),f=n[r]+i;if(t[r])return s[r]?d:f;var g=l[r];if(g==null)return 0;if(s[r]){var m=d,y=g;return m<y?Math.max(f,g):Math.max(d,g)}if(u==null)return 0;var b=f+a,w=g+u;return b>w?Math.max(d,g):Math.max(f,g)}function sXe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function aXe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,i=e.offsetLeft,o=e.position,s=e.reverseDirection,a=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,d,f,g;return a&&a.height>0&&a.width>0&&n?(f=z$({allowEscapeViewBox:t,coordinate:n,key:"x",offset:i,position:o,reverseDirection:s,tooltipDimension:a.width,viewBox:u,viewBoxDimension:u.width}),g=z$({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:o,reverseDirection:s,tooltipDimension:a.height,viewBox:u,viewBoxDimension:u.height}),d=sXe({translateX:f,translateY:g,useTranslate3d:l})):d=iXe,{cssProperties:d,cssClasses:oXe({translateX:f,translateY:g,coordinate:n})}}var lXe=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Bw={isSsr:lXe()};function uXe(e,t){return fXe(e)||hXe(e,t)||dXe(e,t)||cXe()}function cXe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1016In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dXe(e,t){if(e){if(typeof e=="string")return G$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G$(e,t):void 0}}function G$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hXe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}
1016finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function fXe(e){if(Array.isArray(e))return e}function Qae(){var e=R.useState(()=>Bw.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches),t=uXe(e,2),n=t[0],r=t[1];return R.useEffect(()=>{if(window.matchMedia){var i=window.matchMedia("(prefers-reduced-motion: reduce)"),o=()=>{r(i.matches)};return i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}}},[]),n}function j$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j$(Object(n),!0).forEach(function(r){gXe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gXe(e,t,n){return(t=pXe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pXe(e){var t=mXe(e,"string");return typeof t=="symbol"?t:t+""}function mXe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vXe(e,t){return CXe(e)||wXe(e,t)||bXe(e,t)||yXe()}function yXe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1017In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bXe(e,t){if(e){if(typeof e=="string")return U$(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U$(e,t):void 0}}function U$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wXe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function CXe(e){if(Array.isArray(e))return e}function SXe(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active){var t=typeof e.animationEasing=="string"?e.animationEasing:"ease";return"transform ".concat(e.animationDuration,"ms ").concat(t)}}function xXe(e){var t,n,r,i,o,s,a=Qae(),l=R.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),u=vXe(l,2),d=u[0],f=u[1];R.useEffect(()=>{var C=E=>{if(E.key==="Escape"){var A,T,P,O;f({dismissed:!0,dismissedAtCoordinate:{x:(A=(T=e.coordinate)===null||T===void 0?void 0:T.x)!==null&&A!==void 0?A:0,y:(P=(O=e.coordinate)===null||O===void 0?void 0:O.y)!==null&&P!==void 0?P:0}})}};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),d.dismissed&&(((r=(i=e.coordinate)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)!==d.dismissedAtCoordinate.x||((o=(s=e.coordinate)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)!==d.dismissedAtCoordinate.y)&&f(Rp(Rp({},d),{},{dismissed:!1}));var g=aXe({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:e.lastBoundingBox,useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),m=g.cssClasses,y=g.cssProperties,b=e.hasPortalFromProps?{}:Rp(Rp({transition:SXe({prefersReducedMotion:a,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},y),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),w=Rp(Rp({},b),{},{visibility:!d.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return R.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,
1017className:m,style:w,ref:e.innerRef},e.children)}var EXe=R.memo(xXe),Jae=()=>{var e;return(e=$e(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Ck(){return Ck=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ck.apply(null,arguments)}function W$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W$(Object(n),!0).forEach(function(r){RXe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RXe(e,t,n){return(t=AXe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AXe(e){var t=TXe(e,"string");return typeof t=="symbol"?t:t+""}function TXe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q$={curveBasisClosed:m7e,curveBasisOpen:v7e,curveBasis:p7e,curveBumpX:t7e,curveBumpY:n7e,curveLinearClosed:y7e,curveLinear:SR,curveMonotoneX:b7e,curveMonotoneY:w7e,curveNatural:C7e,curveStep:S7e,curveStepAfter:E7e,curveStepBefore:x7e},zx=e=>Ot(e.x)&&Ot(e.y),K$=e=>e.base!=null&&zx(e.base)&&zx(e),Cy=e=>e.x,Sy=e=>e.y,PXe=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Iw(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=q$["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return q$[n]||SR},Y$={connectNulls:!1,type:"linear"},OXe=e=>{var t=e.type,n=t===void 0?Y$.type:t,r=e.points,i=r===void 0?[]:r,o=e.baseLine,s=e.layout,a=e.connectNulls,l=a===void 0?Y$.connectNulls:a,u=PXe(n,s),d=l?i.filter(zx):i;if(Array.isArray(o)){var f,g=i.map((C,E)=>$$($$({},C),{},{base:o[E]}));s==="vertical"?f=wS().y(Sy).x1(Cy).x0(C=>C.base.x):f=wS().x(Cy).y1(Sy).y0(C=>C.base.y);var m=f.defined(K$).curve(u),y=l?g.filter(K$):g;return m(y)}var b;s==="vertical"&&ze(o)?b=wS().y(Sy).x1(Cy).x0(o):ze(o)?b=wS().x(Cy).y1(Sy).y0(o):b=pse().x(Cy).y(Sy);var w=b.defined(zx).curve(u);return w(d)},dm=e=>{var t=e.className,n=e.points,r=e.path,i=e.pathRef,o=uh();if((!n||!n.length)&&!r)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},a=n&&n.length?OXe(s):r;return R.createElement("path",Ck({},ao(e),qB(e),{className:Et("recharts-curve",t),d:a===null?void 0:a,ref:i}))},DXe=["x","y","top","left","width","height","className"];function Sk(){return Sk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sk.apply(null,arguments)}function X$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function MXe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X$(Object(n),!0).forEach(function(r){IXe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IXe(e,t,n){return(t=_Xe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Xe(e){var t=FXe(e,"string");return typeof t=="symbol"?t:t+""}function FXe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kXe(e,t){if(e==null)return{};var n,r,i=LXe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function LXe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var NXe=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),BXe=e=>{var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,o=e.top,s=o===void 0?0:o,a=e.left,l=a===void 0?0:a,u=e.width,d=u===void 0?0:u,f=e.height,g=f===void 0?0:f,m=e.className,y=kXe(e,DXe),b=MXe({x:n,y:i,top:s,left:l,width:d,height:g},y);return!ze(n)||!ze(i)||!ze(d)||!ze(g)||!ze(s)||!ze(l)?null:R.createElement("path",Sk({},ts(b),{className:Et("recharts-cross",m),d:NXe(n,i,d,g,s,l)}))};function HXe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}var Gx=1e-4,ele=(e,t)=>
1017[0,3*e,3*t-6*e,3*e-3*t+1],tle=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),Z$=(e,t)=>n=>{var r=ele(e,t);return tle(r,n)},VXe=(e,t)=>n=>{var r=ele(e,t),i=[...r.map((o,s)=>o*s).slice(1),0];return tle(i,n)},zXe=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var i=r.map(o=>parseFloat(o));return[i[0],i[1],i[2],i[3]]},GXe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=zXe(n[0]);if(i)return i}}return n.length===4?n:[0,0,1,1]},jXe=(e,t,n,r)=>{var i=Z$(e,n),o=Z$(t,r),s=VXe(e,n),a=u=>u>1?1:u<0?0:u,l=u=>{for(var d=u>1?1:u,f=d,g=0;g<8;++g){var m=i(f)-d,y=s(f);if(Math.abs(m-d)<Gx||y<Gx)return o(f);f=a(f-m/y)}return o(f)};return l.isStepper=!1,l},Q$=function(){return jXe(...GXe(...arguments))},UXe=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,s=t.dt,a=s===void 0?16.67:s,l=1,u=[0],d=0,f=0,g=1e4,m=0;m<g;){var y=-(d-l)*r,b=f*o;if(f+=(y-b)*a/1e3,d+=f*a/1e3,u.push(d),Math.abs(d-l)<Gx&&Math.abs(f)<Gx)break;m++}u[u.length-1]=l;var w=u.length-1;return C=>{var E,A,T;if(C<=0)return 0;if(C>=1)return l;var P=C*w,O=Math.floor(P),D=P-O;return((E=u[O])!==null&&E!==void 0?E:0)+(((A=u[O+1])!==null&&A!==void 0?A:0)-((T=u[O])!==null&&T!==void 0?T:0))*D}},WXe=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Q$(e);case"spring":return UXe();default:if(e.split("(")[0]==="cubic-bezier")return Q$(e)}return typeof e=="function"?e:null},$Xe=(e,t,n)=>{var r,i=o=>{var s=t.tick(o);if(t.getState()==="active"){if(n(t.getInterpolated()),t.getProgress()===1){t.complete(),r=void 0;return}r=e.setTimeout(i,s);return}r=e.setTimeout(i,s)};return r=e.setTimeout(i,0),()=>{var o;return(o=r)===null||o===void 0?void 0:o()}},nle=R.createContext($Xe);nle.Provider;function qXe(e){var t=R.useContext(nle);return R.useMemo(()=>e??t,[e,t])}function KXe(e,t,n){return(t=YXe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YXe(e){var t=XXe(e,"string");return typeof t=="symbol"?t:t+""}function XXe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var J$="init",e7="pending",t7="active",ZXe="completed";function nM(e){return Math.max(0,e)}class QXe{getAnimationStartedTime(){return this.animationStartedTime}getBeginStartedTime(){return this.beginStartedTime}constructor(t){var n;KXe(this,"state",J$),this.animationId=t.animationId,this.onAnimationEnd=t.onAnimationEnd,this.animationDuration=nM(t.animationDuration),this.animationBegin=nM(t.animationBegin),this.progress=0,this.from=t.from,this.to=t.to,this.easing=t.easing,(n=t.onAnimationStart)===null||n===void 0||n.call(t)}getState(){return this.state}getEasing(){return this.easing}getAnimationDuration(){return this.animationDuration}tick(t){if(this.getState()===J$)return this.state=e7,this.beginStartedTime=t,this.animationBegin;if(this.getState()===e7){if(this.beginStartedTime==null)throw new Error;var n=t-this.beginStartedTime;return n>=this.animationBegin?(this.state=t7,this.animationStartedTime=t,this.nextAnimationUpdate(0)):nM(this.animationBegin-n)}if(this.getState()===t7){if(this.animationStartedTime==null)throw new Error;var r=t-this.animationStartedTime;return this.setProgress(r/this.animationDuration),this.nextAnimationUpdate(r)}return 0}setProgress(t){this.progress=Math.min(1,Math.max(0,t))}getProgress(){return this.progress}complete(){if(this.progress=1,this.state==="active"){var t;(t=this.onAnimationEnd)===null||t===void 0||t.call(this)}this.state=ZXe}getFrom(){return this.from}getTo(){return this.to}getAnimationId(){return this.animationId}getAnimationBegin(){return this.animationBegin}}class JXe extends QXe{nextAnimationUpdate(){return 0}getInterpolated(){return this.easing(hn(this.getFrom(),this.getTo(),this.getProgress()))}}class eZe{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=s=>{s-r>=n?t(s):i=requestAnimationFrame(o)};return i=requestAnimationFrame(o),()=>{i!=null&&cancelAnimationFrame(i)}}}function tZe(e,t){return oZe(e)||iZe(e,t)||rZe(e,t)||nZe()}
1017function nZe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1018In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rZe(e,t){if(e){if(typeof e=="string")return n7(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?n7(e,t):void 0}}function n7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iZe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function oZe(e){if(Array.isArray(e))return e}var sZe={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},r7=0,rM=1;function rle(e){var t=gr(e,sZe),n=t.animationId,r=t.isActive,i=t.canBegin,o=t.duration,s=t.easing,a=t.begin,l=t.onAnimationEnd,u=t.onAnimationStart,d=t.children,f=Qae(),g=r==="auto"?!Bw.isSsr&&!f:r,m=qXe(t.animationController),y=R.useState(g?r7:rM),b=tZe(y,2),w=b[0],C=b[1];return R.useEffect(()=>{g||C(rM)},[g]),R.useEffect(()=>{var E=WXe(s);if(!g||!i||E==null)return Pc;var A=new eZe,T=new JXe({animationId:n,easing:E,animationDuration:o,animationBegin:a,onAnimationStart:u,onAnimationEnd:l,from:r7,to:rM});return m(A,T,C)},[m,n,g,i,o,s,a,u,l]),d(Number(w))}function ile(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=R.useRef($b(t)),r=R.useRef(e);return r.current!==e&&(n.current=$b(t),r.current=e),n.current}var aZe=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),lZe=(e,t,n)=>e.map(r=>"".concat(aZe(r)," ").concat(t,"ms ").concat(n)).join(","),uZe=["radius"],cZe=["radius"],i7,o7,s7,a7,l7,u7,c7,d7,h7,f7;function g7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function p7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g7(Object(n),!0).forEach(function(r){dZe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dZe(e,t,n){return(t=hZe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hZe(e){var t=fZe(e,"string");return typeof t=="symbol"?t:t+""}function fZe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jx(){return jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jx.apply(null,arguments)}function m7(e,t){if(e==null)return{};var n,r,i=gZe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gZe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pZe(e,t){return bZe(e)||yZe(e,t)||vZe(e,t)||mZe()}function mZe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1019In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vZe(e,t){if(e){if(typeof e=="string")return v7(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v7(e,t):void 0}}function v7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yZe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}
1019finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function bZe(e){if(Array.isArray(e))return e}function Dl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var y7=(e,t,n,r,i)=>{var o=tc(n),s=tc(r),a=Math.min(Math.abs(o)/2,Math.abs(s)/2),l=s>=0?1:-1,u=o>=0?1:-1,d=s>=0&&o>=0||s<0&&o<0?1:0,f;if(a>0&&Array.isArray(i)){for(var g=[0,0,0,0],m=0,y=4;m<y;m++){var b,w=(b=i[m])!==null&&b!==void 0?b:0;g[m]=w>a?a:w}f=_i(i7||(i7=Dl(["M",",",""])),e,t+l*g[0]),g[0]>0&&(f+=_i(o7||(o7=Dl(["A ",",",",0,0,",",",",",""])),g[0],g[0],d,e+u*g[0],t)),f+=_i(s7||(s7=Dl(["L ",",",""])),e+n-u*g[1],t),g[1]>0&&(f+=_i(a7||(a7=Dl(["A ",",",",0,0,",`, 1020 `,",",""])),g[1],g[1],d,e+n,t+l*g[1])),f+=_i(l7||(l7=Dl(["L ",",",""])),e+n,t+r-l*g[2]),g[2]>0&&(f+=_i(u7||(u7=Dl(["A ",",",",0,0,",`, 1021 `,",",""])),g[2],g[2],d,e+n-u*g[2],t+r)),f+=_i(c7||(c7=Dl(["L ",",",""])),e+u*g[3],t+r),g[3]>0&&(f+=_i(d7||(d7=Dl(["A ",",",",0,0,",`, 1022 `,",",""])),g[3],g[3],d,e,t+r-l*g[3])),f+="Z"}else if(a>0&&i===+i&&i>0){var C=Math.min(a,i);f=_i(h7||(h7=Dl(["M ",",",` 1023 A `,",",",0,0,",",",",",` 1024 L `,",",` 1025 A `,",",",0,0,",",",",",` 1026 L `,",",` 1027 A `,",",",0,0,",",",",",` 1028 L `,",",` 1029 A `,",",",0,0,",",",","," Z"])),e,t+l*C,C,C,d,e+u*C,t,e+n-u*C,t,C,C,d,e+n,t+l*C,e+n,t+r-l*C,C,C,d,e+n-u*C,t+r,e+u*C,t+r,C,C,d,e,t+r-l*C)}else f=_i(f7||(f7=Dl(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return f},b7={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ole=e=>{var t=gr(e,b7),n=R.useRef(null),r=R.useState(-1),i=pZe(r,2),o=i[0],s=i[1];R.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var $=n.current.getTotalLength();$&&s($)}catch{}},[]);var a=t.x,l=t.y,u=t.width,d=t.height,f=t.radius,g=t.className,m=t.animationEasing,y=t.animationDuration,b=t.animationBegin,w=t.isAnimationActive,C=t.isUpdateAnimationActive,E=R.useRef(u),A=R.useRef(d),T=R.useRef(a),P=R.useRef(l),O=R.useMemo(()=>({x:a,y:l,width:u,height:d,radius:f}),[a,l,u,d,f]),D=ile(O,"rectangle-");if(a!==+a||l!==+l||u!==+u||d!==+d||u===0||d===0)return null;var F=Et("recharts-rectangle",g);if(!C){var L=ts(t);L.radius;var N=m7(L,uZe);return R.createElement("path",jx({},N,{x:tc(a),y:tc(l),width:tc(u),height:tc(d),radius:typeof f=="number"?f:void 0,className:F,d:y7(a,l,u,d,f)}))}var M=E.current,k=A.current,B=T.current,j=P.current,z="0px ".concat(o===-1?1:o,"px"),H="".concat(o,"px ").concat(o,"px"),G=lZe(["strokeDasharray"],y,typeof m=="string"?m:b7.animationEasing);return R.createElement(rle,{animationId:D,key:D,canBegin:o>0,duration:y,easing:m,isActive:C,begin:b},$=>{var Y=hn(M,u,$),K=hn(k,d,$),se=hn(B,a,$),re=hn(j,l,$);n.current&&(E.current=Y,A.current=K,T.current=se,P.current=re);var ue;w?$>0?ue={transition:G,strokeDasharray:H}:ue={strokeDasharray:z}:ue={strokeDasharray:H};var U=ts(t);U.radius;var X=m7(U,cZe);return R.createElement("path",jx({},X,{radius:typeof f=="number"?f:void 0,className:F,d:y7(se,re,Y,K,f),ref:n,style:p7(p7({},ue),t.style)}))})};function w7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function C7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w7(Object(n),!0).forEach(function(r){wZe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wZe(e,t,n){return(t=CZe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CZe(e){var t=SZe(e,"string");return typeof t=="symbol"?t:t+""}function SZe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ux=Math.PI/180,xZe=e=>e*180/Math.PI,Nr=(e,t,n,r)=>({x:e+Math.cos(-Ux*r)*n,y:t+Math.sin(-Ux*r)*n}),sle=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},EZe=(e,t)=>{var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt((n-i)**2+(r-o)**2)},RZe=(e,t)=>{var n=e.x,r=e.y,i=t.cx,o=t.cy,s=EZe({x:n,y:r},{x:i,y:o});if(s<=0)return{radius:s,angle:0};var a=(n-i)/s,l=Math.acos(a);return r>
1029o&&(l=2*Math.PI-l),{radius:s,angle:xZe(l),angleInRadian:l}},AZe=e=>{var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},TZe=(e,t)=>{var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),s=Math.min(i,o);return e+s*360},PZe=(e,t)=>{var n=e.relativeX,r=e.relativeY,i=RZe({x:n,y:r},t),o=i.radius,s=i.angle,a=t.innerRadius,l=t.outerRadius;if(o<a||o>l||o===0)return null;var u=AZe(t),d=u.startAngle,f=u.endAngle,g=s,m;if(d<=f){for(;g>f;)g-=360;for(;g<d;)g+=360;m=g>=d&&g<=f}else{for(;g>d;)g-=360;for(;g<f;)g+=360;m=g>=f&&g<=d}return m?C7(C7({},t),{},{radius:o,angle:TZe(g,t)}):null};function ale(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,s=Nr(t,n,r,i),a=Nr(t,n,r,o);return{points:[s,a],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}var S7,x7,E7,R7,A7,T7,P7;function xk(){return xk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xk.apply(null,arguments)}function mf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var OZe=(e,t)=>{var n=Lr(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},TS=e=>{var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,s=e.isExternal,a=e.cornerRadius,l=e.cornerIsExternal,u=a*(s?1:-1)+r,d=Math.asin(a/u)/Ux,f=l?i:i+o*d,g=Nr(t,n,u,f),m=Nr(t,n,r,f),y=l?i-o*d:i,b=Nr(t,n,u*Math.cos(d*Ux),y);return{center:g,circleTangency:m,lineTangency:b,theta:d}},lle=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,s=e.endAngle,a=OZe(o,s),l=o+a,u=Nr(t,n,i,o),d=Nr(t,n,i,l),f=_i(S7||(S7=mf(["M ",",",` 1030 A `,",",`,0, 1031 `,",",`, 1032 `,",",` 1033 `])),u.x,u.y,i,i,+(Math.abs(a)>180),+(o>l),d.x,d.y);if(r>0){var g=Nr(t,n,r,o),m=Nr(t,n,r,l);f+=_i(x7||(x7=mf(["L ",",",` 1034 A `,",",`,0, 1035 `,",",`, 1036 `,","," Z"])),m.x,m.y,r,r,+(Math.abs(a)>180),+(o<=l),g.x,g.y)}else f+=_i(E7||(E7=mf(["L ",","," Z"])),t,n);return f},DZe=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,s=e.forceCornerRadius,a=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,d=Lr(u-l),f=TS({cx:t,cy:n,radius:i,angle:l,sign:d,cornerRadius:o,cornerIsExternal:a}),g=f.circleTangency,m=f.lineTangency,y=f.theta,b=TS({cx:t,cy:n,radius:i,angle:u,sign:-d,cornerRadius:o,cornerIsExternal:a}),w=b.circleTangency,C=b.lineTangency,E=b.theta,A=a?Math.abs(l-u):Math.abs(l-u)-y-E;if(A<0)return s?_i(R7||(R7=mf(["M ",",",` 1037 a`,",",",0,0,1,",`,0 1038 a`,",",",0,0,1,",`,0 1039 `])),m.x,m.y,o,o,o*2,o,o,-o*2):lle({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:u});var T=_i(A7||(A7=mf(["M ",",",` 1040 A`,",",",0,0,",",",",",` 1041 A`,",",",0,",",",",",",",` 1042 A`,",",",0,0,",",",",",` 1043 `])),m.x,m.y,o,o,+(d<0),g.x,g.y,i,i,+(A>180),+(d<0),w.x,w.y,o,o,+(d<0),C.x,C.y);if(r>0){var P=TS({cx:t,cy:n,radius:r,angle:l,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:a}),O=P.circleTangency,D=P.lineTangency,F=P.theta,L=TS({cx:t,cy:n,radius:r,angle:u,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:a}),N=L.circleTangency,M=L.lineTangency,k=L.theta,B=a?Math.abs(l-u):Math.abs(l-u)-F-k;if(B<0&&o===0)return"".concat(T,"L").concat(t,",").concat(n,"Z");T+=_i(T7||(T7=mf(["L",",",` 1044 A`,",",",0,0,",",",",",` 1045 A`,",",",0,",",",",",",",` 1046 A`,",",",0,0,",",",",","Z"])),M.x,M.y,o,o,+(d<0),N.x,N.y,r,r,+(B>180),+(d>0),O.x,O.y,o,o,+(d<0),D.x,D.y)}else T+=_i(P7||(P7=mf(["L",",","Z"])),t,n);return T},MZe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},fH=e=>{var t=gr(e,MZe),n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.cornerRadius,a=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=t.className;if(o<i||u===d)return null;var g=Et("recharts-sector",f),m=o-i,y=io(s,m,0,!0),b;return y>0&&Math.abs(u-d)<360?b=DZe({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:a,cornerIsExternal:l,startAngle:u,endAngle:d}):b=lle({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:d}),R.createElement("path",xk({},ts(t),{className:g,d:b}))};function IZe(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Pse(t)){if(e==="centric"){var r=t.cx,i=t.cy,o=t.innerRadius,s=t.outerRadius,a=t.angle,l=Nr(r,i,o,a),u=Nr(r,i,s,a);return[{x:l.x,y:l.y},{x:u.x,y:u.y}]}return ale(t)}}function _Ze(e){return VB(e)?NaN:Number(e)}function iM(e){return e?(e=_Ze(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function ule(e,t,n){n&&typeof n!="number"&&lk(e,t,n)&&(t=n=void 0),e=iM(e),t===void 0?(t=e,e=0):t=iM(t),n=n===void 0?e<t?1:-1:iM(n);const r=Math.max(Math.ceil((t-e)/(n||1)),0),i=new Array(r);for(let o=0;o<r;o++)i[o]=e,e+=n;return i}var Ca=e=>e.chartData,Pg=ne([Ca],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Hw=(e,t,n,r)=>
1046r?Pg(e):Ca(e),cle=(e,t,n)=>n?Pg(e):Ca(e),FZe=ne([Hw],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]}),kZe=ne([Pg],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]}),LZe=ne([Ca],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t!=null?t.slice(n,r+1):[]});function gH(e,t){return VZe(e)||HZe(e,t)||BZe(e,t)||NZe()}function NZe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1047In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BZe(e,t){if(e){if(typeof e=="string")return O7(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O7(e,t):void 0}}function O7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HZe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function VZe(e){if(Array.isArray(e))return e}function Yl(e){if(Array.isArray(e)&&e.length===2){var t=gH(e,2),n=t[0],r=t[1];if(Ot(n)&&Ot(r))return!0}return!1}function D7(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function dle(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var n=gH(e,2),r=n[0],i=n[1],o,s;if(Ot(r))o=r;else if(typeof r=="function")return;if(Ot(i))s=i;else if(typeof i=="function")return;var a=[o,s];if(Yl(a))return a}}function zZe(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(Yl(r))return D7(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var i=gH(e,2),o=i[0],s=i[1],a,l;if(o==="auto")t!=null&&(a=Math.min(...t));else if(ze(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&R$.test(o)){var u=R$.exec(o);if(u==null||u[1]==null||t==null)a=void 0;else{var d=+u[1];a=t[0]-d}}else a=t?.[0];if(s==="auto")t!=null&&(l=Math.max(...t));else if(ze(s))l=s;else if(typeof s=="function")try{t!=null&&(l=s(t?.[1]))}catch{}else if(typeof s=="string"&&A$.test(s)){var f=A$.exec(s);if(f==null||f[1]==null||t==null)l=void 0;else{var g=+f[1];l=t[1]+g}}else l=t?.[1];var m=[a,l];if(Yl(m))return t==null?m:D7(m,t,n)}}}var tv=1e9,GZe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},mH,Un=!0,pa="[DecimalError] ",_f=pa+"Invalid argument: ",pH=pa+"Exponent out of range: ",nv=Math.floor,rf=Math.pow,jZe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ys,ai=1e7,Bn=7,hle=9007199254740991,Wx=nv(hle/Bn),Qe={};Qe.absoluteValue=Qe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Qe.comparedTo=Qe.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Qe.decimalPlaces=Qe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Bn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Qe.dividedBy=Qe.div=function(e){return uc(this,new this.constructor(e))};Qe.dividedToIntegerBy=Qe.idiv=function(e){var t=this,n=t.constructor;return En(uc(t,new n(e),0,1),n.precision)};Qe.equals=Qe.eq=function(e){return!this.cmp(e)};Qe.exponent=function(){return Br(this)};Qe.greaterThan=Qe.gt=function(e){return this.cmp(e)>0};Qe.greaterThanOrEqualTo=Qe.gte=function(e){return this.cmp(e)>=0};Qe.isInteger=Qe.isint=function(){return this.e>this.d.length-2};Qe.isNegative=Qe.isneg=function(){return this.s<0};Qe.isPositive=Qe.ispos=function(){return this.s>0};Qe.isZero=function(){return this.s===0};Qe.lessThan=Qe.lt=function(e){return this.cmp(e)<0}
vendor: 10,671 bytes, line 1047
1047;Qe.lessThanOrEqualTo=Qe.lte=function(e){return this.cmp(e)<1};Qe.logarithm=Qe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(ys))throw Error(pa+"NaN");if(n.s<1)throw Error(pa+(n.s?"NaN":"-Infinity"));return n.eq(ys)?new r(0):(Un=!1,t=uc(Xb(n,o),Xb(e,o),o),Un=!0,En(t,i))};Qe.minus=Qe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ple(t,e):fle(t,(e.s=-e.s,e))};Qe.modulo=Qe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(pa+"NaN");return n.s?(Un=!1,t=uc(n,e,0,1).times(e),Un=!0,n.minus(t)):En(new r(n),i)};Qe.naturalExponential=Qe.exp=function(){return gle(this)};Qe.naturalLogarithm=Qe.ln=function(){return Xb(this)};Qe.negated=Qe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Qe.plus=Qe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fle(t,e):ple(t,(e.s=-e.s,e))};Qe.precision=Qe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(_f+e);if(t=Br(i)+1,r=i.d.length-1,n=r*Bn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Qe.squareRoot=Qe.sqrt=function(){var e,t,n,r,i,o,s,a=this,l=a.constructor;if(a.s<1){if(!a.s)return new l(0);throw Error(pa+"NaN")}for(e=Br(a),Un=!1,i=Math.sqrt(+a),i==0||i==1/0?(t=Ul(a.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=nv((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=s=n+3;;)if(o=r,r=o.plus(uc(a,o,s+2)).times(.5),Ul(o.d).slice(0,s)===(t=Ul(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(En(o,n+1,0),o.times(o).eq(a)){r=o;break}}else if(t!="9999")break;s+=4}return Un=!0,En(r,n)};Qe.times=Qe.mul=function(e){var t,n,r,i,o,s,a,l,u,d=this,f=d.constructor,g=d.d,m=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,l=g.length,u=m.length,l<u&&(o=g,g=m,m=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)a=o[i]+m[r]*g[i-r-1]+t,o[i--]=a%ai|0,t=a/ai|0;o[i]=(o[i]+t)%ai|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Un?En(e,f.precision):e};Qe.toDecimalPlaces=Qe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(su(e,0,tv),t===void 0?t=r.rounding:su(t,0,8),En(n,e+Br(n)+1,t))};Qe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=sg(r,!0):(su(e,0,tv),t===void 0?t=i.rounding:su(t,0,8),r=En(new i(r),e+1,t),n=sg(r,!0,e+1)),n};Qe.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?sg(i):(su(e,0,tv),t===void 0?t=o.rounding:su(t,0,8),r=En(new o(i),e+Br(i)+1,t),n=sg(r.abs(),!1,e+Br(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Qe.toInteger=Qe.toint=function(){var e=this,t=e.constructor;return En(new t(e),Br(e)+1,t.rounding)};Qe.toNumber=function(){return+this};Qe.toPower=Qe.pow=function(e){var t,n,r,i,o,s,a=this,l=a.constructor,u=12,d=+(e=new l(e));if(!e.s)return new l(ys);if(a=new l(a),!a.s){if(e.s<1)throw Error(pa+"Infinity");return a}if(a.eq(ys))return a;if(r=l.precision,e.eq(ys))return En(a,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=a.s,s){if((n=d<0?-d:d)<=hle){for(i=new l(ys),t=Math.ceil(r/Bn+4),Un=!1;n%2&&(i=i.times(a),I7(i.d,t)),n=nv(n/2),n!==0;)a=a.times(a),I7(a.d,t);return Un=!0,e.s<0?new l(ys).div(i):En(i,r)}}else if(o<0)throw Error(pa+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,a.s=1,Un=!1,i=e.times(Xb(a,r+u)),Un=!0,i=gle(i),i.s=o,i};Qe.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Br(i),r=sg(i,n<=o.toExpNeg||n>=o.toExpPos)):(su(e,1,tv),t===void 0?t=o.rounding:su(t,0,8),i=En(new o(i),e,t),n=Br(i),r=sg(i,e<=n||n<=o.toExpNeg,e)),r};Qe.toSignificantDigits=Qe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(su(e,1,tv),t===void 0?t=r.rounding:su(t,0,8)),En(new r(n),e,t)};Qe.toString=Qe.valueOf=Qe.val=Qe.toJSON=Qe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Br(e),n=e.constructor;return sg(e,t<=n.toExpNeg||t>=n.toExpPos)};function fle(e,t){var n,r,i,o,s,a,l,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Un?En(t,f):t;if(l=e.d,u=t.d,s=e.e,i=t.e,l=l.slice(),o=s-i,o){for(o<0?(r=l,o=-o,a=u.length):(r=u,i=s,a=l.length),s=Math.ceil(f/Bn),a=s>a?s+1:a+1,o>a&&(o=a,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(a=l.length,o=u.length,a-o<0&&(o=a,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/ai|0,l[o]%=ai;for(n&&(l.unshift(n),++i),a=l.length;l[--a]==0;)l.pop();return t.d=l,t.e=i,Un?En(t,f):t}function su(e,t,n){if(e!==~~e||e<t||e>n)throw Error(_f+e)}function Ul(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",n=Bn-r.length,n&&(o+=Cd(n)),o+=r;s=e[t],r=s+"",n=Bn-r.length,n&&(o+=Cd(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var uc=(function(){function e(r,i){var o,s=0,a=r.length;for(r=r.slice();a--;)o=r[a]*i+s,r[a]=o%ai|0,s=o/ai|0;return s&&r.unshift(s),r}function t(r,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;a<o;a++)if(r[a]!=i[a]){l=r[a]>i[a]?1:-1;break}return l}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*ai+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var a,l,u,d,f,g,m,y,b,w,C,E,A,T,P,O,D,F,L=r.constructor,N=r.s==i.s?1:-1,M=r.d,k=i.d;if(!r.s)return new L(r);if(!i.s)throw Error(pa+"Division by zero");for(l=r.e-i.e,D=k.length,P=M.length,m=new L(N),y=m.d=[],u=0;k[u]==(M[u]||0);)++u;if(k[u]>(M[u]||0)&&--l,o==null?E=o=L.precision:s?E=o+(Br(r)-Br(i))+1:E=o,E<0)return new L(0);if(E=E/Bn+2|0,u=0,D==1)for(d=0,k=k[0],E++;(u<P||d)&&E--;u++)A=d*ai+(M[u]||0),y[u]=A/k|0,d=A%k|0;else{for(d=ai/(k[0]+1)|0,d>1&&(k=e(k,d),M=e(M,d),D=k.length,P=M.length),T=D,b=M.slice(0,D),w=b.length;w<D;)b[w++]=0;F=k.slice(),F.unshift(0),O=k[0],k[1]>=ai/2&&++O;do d=0,a=t(k,b,D,w),a<0?(C=b[0],D!=w&&(C=C*ai+(b[1]||0)),d=C/O|0,d>1?(d>=ai&&(d=ai-1),f=e(k,d),g=f.length,w=b.length,a=t(f,b,g,w),a==1&&(d--,n(f,D<g?F:k,g))):(d==0&&(a=d=1),f=k.slice()),g=f.length,g<w&&f.unshift(0),n(b,f,w),a==-1&&(w=b.length,a=t(k,b,D,w),a<1&&(d++,n(b,D<w?F:k,w))),w=b.length):a===0&&(d++,b=[0]),y[u++]=d,a&&b[0]?b[w++]=M[T]||0:(b=[M[T]],w=1);while((T++<P||b[0]!==void 0)&&E--)}return y[0]||y.shift(),m.e=l,En(m,s?o+Br(m)+1:o)}})();function gle(e,t){var n,r,i,o,s,a,l=0,u=0,d=e.constructor,f=d.precision;if(Br(e)>16)throw Error(pH+Br(e));if(!e.s)return new d(ys);for(Un=!1,a=f,s=new d(.03125);e.abs().gte(.1);)e=e.times(s),u+=5;for(r=Math.log(rf(2,u))/Math.LN10*2+5|0,a+=r,n=i=o=new d(ys),d.precision=a;;){if(i=En(i.times(e),a),n=n.times(++l),s=o.plus(uc(i,n,a)),Ul(s.d).slice(0,a)===Ul(o.d).slice(0,a)){for(;u--;)o=En(o.times(o),a);return d.precision=f,t==null?(Un=!0,En(o,f)):o}o=s}}function Br(e){for(var t=e.e*Bn,n=e.d[0];n>=10;n/=10)t++;return t}function oM(e,t,n){if(t>e.LN10.sd())throw Un=!0,n&&(e.precision=n),Error(pa+"LN10 precision limit exceeded");return En(new e(e.LN10),t)}function Cd(e){for(var t="";e--;)t+="0";return t}function Xb(e,t){var n,r,i,o,s,a,l,u,d,f=1,g=10,m=e,y=m.d,b=m.constructor,w=b.precision;if(m.s<1)throw Error(pa+(m.s?"NaN":"-Infinity"));if(m.eq(ys))return new b(0);if(t==null?(Un=!1,u=w):u=t,m.eq(10))return t==null&&(Un=!0),oM(b,u);if(u+=g,b.precision=u,n=Ul(y),r=n.charAt(0),o=Br(m),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Ul(m.d),r=n.charAt(0),f++;o=Br(m),r>1?(m=new b("0."+n),o++):m=new b(r+"."+n.slice(1))}else return l=oM(b,u+2,w).times(o+""),m=Xb(new b(r+"."+n.slice(1)),u-g).plus(l),b.precision=w,t==null?(Un=!0,En(m,w)):m;for(a=s=m=uc(m.minus(ys),m.plus(ys),u),d=En(m.times(m),u),i=3;;){if(s=En(s.times(d),u),l=a.plus(uc(s,new b(i),u)),Ul(l.d).slice(0,u)===Ul(a.d).slice(0,u))return a=a.times(2),o!==0&&(a=a.plus(oM(b,u+2,w).times(o+""))),a=uc(a,new b(f),u),b.precision=w,t==null?(Un=!0,En(a,w)):a;a=l,i+=2}}function M7(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=nv(n/Bn),e.d=[],r=(n+1)%Bn,n<0&&(r+=Bn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Bn;r<i;)e.d.push(+t.slice(r,r+=Bn));t=t.slice(r),r=Bn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Un&&(e.e>Wx||e.e<-Wx))throw Error(pH+n)}else e.s=0,e.e=0,e.d=[0];return e}function En(e,t,n){var r,i,o,s,a,l,u,d,f=e.d;for(s=1,o=f[0];o>=10;o/=10)s++;if(r=t-s,r<0)r+=Bn,i=t,u=f[d=0];else{if(d=Math.ceil((r+1)/Bn),o=f.length,d>=o)return e;for(u=o=f[d],s=1;o>=10;o/=10)s++;r%=Bn,i=r-Bn+s}if(n!==void 0&&(o=rf(10,s-i-1),a=u/o%10|0,l=t<0||f[d+1]!==void 0||u%o,l=n<4?(a||l)&&(n==0||n==(e.s<0?3:2)):a>5||a==5&&(n==4||l||n==6&&(r>0?i>0?u/rf(10,s-i):0:f[d-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return l?(o=Br(e),f.length=1,t=t-o-1,f[0]=rf(10,(Bn-t%Bn)%Bn),e.e=nv(-t/Bn)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=d,o=1,d--):(f.length=d+1,o=rf(10,Bn-r),f[d]=i>0?(u/rf(10,s-i)%rf(10,i)|0)*o:0),l)for(;;)if(d==0){(f[0]+=o)==ai&&(f[0]=1,++e.e);break}else{if(f[d]+=o,f[d]!=ai)break;f[d--]=0,o=1}for(r=f.length;f[--r]===0;)f.pop();if(Un&&(e.e>Wx||e.e<-Wx))throw Error(pH+Br(e));return e}function ple(e,t){var n,r,i,o,s,a,l,u,d,f,g=e.constructor,m=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),Un?En(t,m):t;if(l=e.d,f=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,a=f.length):(n=f,r=u,a=l.length),i=Math.max(Math.ceil(m/Bn),a)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=l.length,a=f.length,d=i<a,d&&(a=i),i=0;i<a;i++)if(l[i]!=f[i]){d=l[i]<f[i];break}s=0}for(d&&(n=l,l=f,f=n,t.s=-t.s),a=l.length,i=f.length-a;i>0;--i)l[a++]=0;for(i=f.length;i>s;){if(l[--i]<f[i]){for(o=i;o&&l[--o]===0;)l[o]=ai-1;--l[o],l[i]+=ai}l[i]-=f[i]}for(;l[--a]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Un?En(t,m):t):new g(0)}function sg(e,t,n){var r,i=Br(e),o=Ul(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+Cd(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Cd(-i-1)+o,n&&(r=n-s)>0&&(o+=Cd(r))):i>=s?(o+=Cd(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+Cd(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=Cd(r))),e.s<0?"-"+o:o}function I7(e,t){if(e.length>t)return e.length=t,!0}function mle(e){var t,n,r;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(_f+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return M7(s,o.toString())}else if(typeof o!="string")throw Error(_f+o);
1047if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,jZe.test(o))M7(s,o);else throw Error(_f+o)}if(i.prototype=Qe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=mle,i.config=i.set=UZe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function UZe(e){if(!e||typeof e!="object")throw Error(pa+"Object expected");var t,n,r,i=["precision",1,tv,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(nv(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(_f+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(_f+n+": "+r);return this}var mH=mle(GZe);ys=new mH(1);const Bt=mH;function vle(e){var t;return e===0?t=1:t=Math.floor(new Bt(e).abs().log(10).toNumber())+1,t}function yle(e,t,n){for(var r=new Bt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}function Zb(e,t){return KZe(e)||qZe(e,t)||$Ze(e,t)||WZe()}function WZe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1048In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Ze(e,t){if(e){if(typeof e=="string")return _7(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_7(e,t):void 0}}function _7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qZe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function KZe(e){if(Array.isArray(e))return e}var ble=e=>{var t=Zb(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]},vH=(e,t,n)=>{if(e.lte(0))return new Bt(0);var r=vle(e.toNumber()),i=new Bt(10).pow(r),o=e.div(i),s=r!==1?.05:.1,a=new Bt(Math.ceil(o.div(s).toNumber())).add(n).mul(s),l=a.mul(i);return t?new Bt(l.toNumber()):new Bt(Math.ceil(l.toNumber()))},wle=(e,t,n)=>{var r;if(e.lte(0))return new Bt(0);var i=[1,2,2.5,5],o=e.toNumber(),s=Math.floor(new Bt(o).abs().log(10).toNumber()),a=new Bt(10).pow(s),l=e.div(a).toNumber(),u=i.findIndex(m=>m>=l-1e-10);if(u===-1&&(a=a.mul(10),u=0),u+=n,u>=i.length){var d=Math.floor(u/i.length);u%=i.length,a=a.mul(new Bt(10).pow(d))}var f=(r=i[u])!==null&&r!==void 0?r:1,g=new Bt(f).mul(a);return t?g:new Bt(Math.ceil(g.toNumber()))},YZe=(e,t,n)=>{var r=new Bt(1),i=new Bt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Bt(10).pow(vle(e)-1),i=new Bt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Bt(Math.floor(e)))}else e===0?i=new Bt(Math.floor((t-1)/2)):n||(i=new Bt(Math.floor(e)));for(var s=Math.floor((t-1)/2),a=[],l=0;l<t;l++)a.push(i.add(new Bt(l-s).mul(r)).toNumber());return a},Cle=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:vH;if(!Number.isFinite((n-t)/(r-1)))return{step:new Bt(0),tickMin:new Bt(0),tickMax:new Bt(0)};var a=s(new Bt(n).sub(t).div(r-1),i,o),l;t<=0&&n>=0?l=new Bt(0):(l=new Bt(t).add(n).div(2),l=l.sub(new Bt(l).mod(a)));var u=Math.ceil(l.sub(t).div(a).toNumber()),d=Math.ceil(new Bt(n).sub(l).div(a).toNumber()),f=u+d+1;return f>r?Cle(t,n,r,i,o+1,s):(f<r&&(d=n>0?d+(r-f):d,u=n>0?u:u+(r-f)),{step:a,tickMin:l.sub(new Bt(u).mul(a)),tickMax:l.add(new Bt(d).mul(a))})},F7=function(t){var n=Zb(t,2),r=n[0],i=n[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",l=Math.max(o,2),u=ble([r,i]),d=Zb(u,2),f=d[0],g=d[1];if(f===-1/0||g===1/0){var m=g===1/0?[f,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),g];return r>i?m.reverse():m}if(f===g)return YZe(f,o,s);var y=a==="snap125"?wle:vH,b=Cle(f,g,l,s,0,y),w=b.step,C=b.tickMin,E=b.tickMax,A=yle(C,E.add(new Bt(.1).mul(w)),w);return r>i?A.reverse():A},k7=function(t,n){var r=Zb(t,2),i=r[0],o=r[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",l=ble([i,o]),u=Zb(l,2),d=u[0],f=u[1];if(d===-1/0||f===1/0)return[i,o];if(d===f)return[d];var g=a==="snap125"?wle:vH,m=Math.max(n,2),y=g(new Bt(f).sub(d).div(m-1),s,0),b=[...yle(new Bt(d),new Bt(f),y),f];if(s===!1){b=b.map(C=>Math.round(C));var w=b.length-1;w>0&&b[w]===b[w-1]&&(b=b.slice(0,w))}return i>o?b.reverse():b},zR=e=>e.rootProps.maxBarSize,Sle=e=>e.rootProps.barGap,yH=e=>e.rootProps.barCategoryGap,xle=e=>e.rootProps.barSize,rv=e=>e.rootProps.stackOffset,bH=e=>e.rootProps.reverseStackOrder,wH=e=>e.options.chartName,CH=e=>e.rootProps.syncId,Ele=e=>e.rootProps.syncMethod,SH=e=>e.options.eventEmitter,XZe=e=>
1048e.rootProps.baseValue,Wn={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Wh={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Ml={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},GR=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function jR(e,t,n){if(n!=="auto")return n;if(e!=null)return wa(e,t)?"category":"number"}function L7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $x(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L7(Object(n),!0).forEach(function(r){ZZe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZZe(e,t,n){return(t=QZe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QZe(e){var t=JZe(e,"string");return typeof t=="symbol"?t:t+""}function JZe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N7={allowDataOverflow:Wh.allowDataOverflow,allowDecimals:Wh.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Wh.angleAxisId,includeHidden:!1,name:void 0,reversed:Wh.reversed,scale:Wh.scale,tick:Wh.tick,tickCount:void 0,ticks:void 0,type:Wh.type,unit:void 0,niceTicks:"auto"},B7={allowDataOverflow:Ml.allowDataOverflow,allowDecimals:Ml.allowDecimals,allowDuplicatedCategory:Ml.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ml.radiusAxisId,includeHidden:Ml.includeHidden,name:void 0,reversed:Ml.reversed,scale:Ml.scale,tick:Ml.tick,tickCount:Ml.tickCount,ticks:void 0,type:Ml.type,unit:void 0,niceTicks:"auto"},eQe=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Vw=ne([eQe,hH],(e,t)=>{var n;if(e!=null)return e;var r=(n=jR(t,"angleAxis",N7.type))!==null&&n!==void 0?n:"category";return $x($x({},N7),{},{type:r})}),tQe=(e,t)=>e.polarAxis.radiusAxis[t],zw=ne([tQe,hH],(e,t)=>{var n;if(e!=null)return e;var r=(n=jR(t,"radiusAxis",B7.type))!==null&&n!==void 0?n:"category";return $x($x({},B7),{},{type:r})}),UR=e=>e.polarOptions,xH=ne([hu,fu,Xr],sle),Rle=ne([UR,xH],(e,t)=>{if(e!=null)return io(e.innerRadius,t,0)}),Ale=ne([UR,xH],(e,t)=>{if(e!=null)return io(e.outerRadius,t,t*.8)}),nQe=e=>{if(e==null)return[0,0];var t=e.startAngle,n=e.endAngle;return[t,n]},Tle=ne([UR],nQe),rQe=ne([Vw,Tle],GR),Ple=ne([xH,Rle,Ale],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]}),iQe=ne([zw,Ple],GR),EH=ne([wt,UR,Rle,Ale,hu,fu],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var s=t.cx,a=t.cy,l=t.startAngle,u=t.endAngle;return{cx:io(s,i,i/2),cy:io(a,o,o/2),innerRadius:n,outerRadius:r,startAngle:l,endAngle:u,clockWise:!1}}}),In=(e,t)=>t,Gw=(e,t,n)=>n;function WR(e){return e?.id}function RH(e,t,n){var r=t.chartData,i=r===void 0?[]:r,o=n.allowDuplicatedCategory,s=n.dataKey,a=new Map;return e.forEach(l=>{var u,d=(u=l.data)!==null&&u!==void 0?u:i;if(!(d==null||d.length===0)){var f=WR(l);d.forEach((g,m)=>{var y=s==null||o?m:String(Gt(g,s,null)),b=Gt(g,l.dataKey,0),w;a.has(y)?w=a.get(y):w={},Object.assign(w,{[f]:b}),a.set(y,w)})}}),Array.from(a.values())}function jw(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Uw=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function $R(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function oQe(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var pi=e=>{var t=wt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},iv=e=>e.tooltip.settings.axisId;function qR(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(o){function s(){return o.apply(this,arguments)}return s.toString=function(){return o.toString()},s})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(o){var s=i[0],a=i[1];return s<=a?o>=s&&o<=a:o>=a&&o<=s},bandwidth:n?()=>n.call(e):void 0,ticks:t?o=>t.call(e,o):void 0,map:(o,s)=>{var a=e(o);if(a!=null){if(e.bandwidth&&s!==null&&s!==void 0&&s.position){var l=e.bandwidth();switch(s.position){case"middle":a+=l/2;break;case"end":a+=l;break}}return a}}}}}var Ole=(e,t)=>
1048{if(t!=null)switch(e){case"linear":{if(!Yl(t)){for(var n,r,i=0;i<t.length;i++){var o=t[i];Ot(o)&&((n===void 0||o<n)&&(n=o),(r===void 0||o>r)&&(r=o))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function Gd(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sQe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function AH(e){let t,n,r;e.length!==2?(t=Gd,n=(a,l)=>Gd(e(a),l),r=(a,l)=>e(a)-l):(t=e===Gd||e===sQe?e:aQe,n=e,r=e);function i(a,l,u=0,d=a.length){if(u<d){if(t(l,l)!==0)return d;do{const f=u+d>>>1;n(a[f],l)<0?u=f+1:d=f}while(u<d)}return u}function o(a,l,u=0,d=a.length){if(u<d){if(t(l,l)!==0)return d;do{const f=u+d>>>1;n(a[f],l)<=0?u=f+1:d=f}while(u<d)}return u}function s(a,l,u=0,d=a.length){const f=i(a,l,u,d-1);return f>u&&r(a[f-1],l)>-r(a[f],l)?f-1:f}return{left:i,center:s,right:o}}function aQe(){return 0}function Dle(e){return e===null?NaN:+e}function*lQe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const uQe=AH(Gd),Ww=uQe.right;AH(Dle).center;class H7 extends Map{constructor(t,n=hQe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(V7(this,t))}has(t){return super.has(V7(this,t))}set(t,n){return super.set(cQe(this,t),n)}delete(t){return super.delete(dQe(this,t))}}function V7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function cQe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function dQe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function hQe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function fQe(e=Gd){if(e===Gd)return Mle;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Mle(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const gQe=Math.sqrt(50),pQe=Math.sqrt(10),mQe=Math.sqrt(2);function qx(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=gQe?10:o>=pQe?5:o>=mQe?2:1;let a,l,u;return i<0?(u=Math.pow(10,-i)/s,a=Math.round(e*u),l=Math.round(t*u),a/u<e&&++a,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*s,a=Math.round(e/u),l=Math.round(t/u),a*u<e&&++a,l*u>t&&--l),l<a&&.5<=n&&n<2?qx(e,t,n*2):[a,l,u]}function Ek(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?qx(t,e,n):qx(e,t,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let u=0;u<a;++u)l[u]=(o-u)/-s;else for(let u=0;u<a;++u)l[u]=(o-u)*s;else if(s<0)for(let u=0;u<a;++u)l[u]=(i+u)/-s;else for(let u=0;u<a;++u)l[u]=(i+u)*s;return l}function Rk(e,t,n){return t=+t,e=+e,n=+n,qx(e,t,n)[2]}function Ak(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Rk(t,e,n):Rk(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function z7(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function G7(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Ile(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Mle:fQe(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,d=Math.log(l),f=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*f*(l-f)/l)*(u-l/2<0?-1:1),m=Math.max(n,Math.floor(t-u*f/l+g)),y=Math.min(r,Math.floor(t+(l-u)*f/l+g));Ile(e,t,m,y,i)}const o=e[t];let s=n,a=r;for(xy(e,n,t),i(e[r],o)>0&&xy(e,n,r);s<a;){for(xy(e,s,a),++s,--a;i(e[s],o)<0;)++s;for(;i(e[a],o)>0;)--a}i(e[n],o)===0?xy(e,n,a):(++a,xy(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}return e}function xy(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function vQe(e,t,n){if(e=Float64Array.from(lQe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return G7(e);if(t>=1)return z7(e);var r,i=(r-1)*t,o=Math.floor(i),s=z7(Ile(e,o).subarray(0,o+1)),a=G7(e.subarray(o+1));return s+(a-s)*(i-o)}}function yQe(e,t,n=Dle){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e),a=+n(e[o+1],o+1,e);return s+(a-s)*(i-o)}}function bQe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Sa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Dc(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 12,622 bytes, line 1048
1048const Tk=Symbol("implicit");function TH(){var e=new H7,t=[],n=[],r=Tk;function i(o){let s=e.get(o);if(s===void 0){if(r!==Tk)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new H7;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return TH(t,n).unknown(r)},Sa.apply(i,arguments),i}function PH(){var e=TH().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,a=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var g=t().length,m=i<r,y=m?i:r,b=m?r:i;o=(b-y)/Math.max(1,g-l+u*2),a&&(o=Math.floor(o)),y+=(b-y-o*(g-l))*d,s=o*(1-l),a&&(y=Math.round(y),s=Math.round(s));var w=bQe(g).map(function(C){return y+o*C});return n(m?w.reverse():w)}return e.domain=function(g){return arguments.length?(t(g),f()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,a=!0,f()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(g){return arguments.length?(a=!!g,f()):a},e.padding=function(g){return arguments.length?(l=Math.min(1,u=+g),f()):l},e.paddingInner=function(g){return arguments.length?(l=Math.min(1,g),f()):l},e.paddingOuter=function(g){return arguments.length?(u=+g,f()):u},e.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),f()):d},e.copy=function(){return PH(t(),[r,i]).round(a).paddingInner(l).paddingOuter(u).align(d)},Sa.apply(f(),arguments)}function _le(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _le(t())},e}function wQe(){return _le(PH.apply(null,arguments).paddingInner(1))}function OH(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Fle(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $w(){}var Qb=.7,Kx=1/Qb,hm="\\s*([+-]?\\d+)\\s*",Jb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",CQe=/^#([0-9a-f]{3,8})$/,SQe=new RegExp(`^rgb\\(${hm},${hm},${hm}\\)$`),xQe=new RegExp(`^rgb\\(${Xl},${Xl},${Xl}\\)$`),EQe=new RegExp(`^rgba\\(${hm},${hm},${hm},${Jb}\\)$`),RQe=new RegExp(`^rgba\\(${Xl},${Xl},${Xl},${Jb}\\)$`),AQe=new RegExp(`^hsl\\(${Jb},${Xl},${Xl}\\)$`),TQe=new RegExp(`^hsla\\(${Jb},${Xl},${Xl},${Jb}\\)$`),j7={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};OH($w,ew,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U7,formatHex:U7,formatHex8:PQe,formatHsl:OQe,formatRgb:W7,toString:W7});function U7(){return this.rgb().formatHex()}function PQe(){return this.rgb().formatHex8()}function OQe(){return kle(this).formatHsl()}function W7(){return this.rgb().formatRgb()}function ew(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=CQe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?$7(t):n===3?new Yo(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?PS(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?PS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=SQe.exec(e))?new Yo(t[1],t[2],t[3],1):(t=xQe.exec(e))?new Yo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=EQe.exec(e))?PS(t[1],t[2],t[3],t[4]):(t=RQe.exec(e))?PS(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=AQe.exec(e))?Y7(t[1],t[2]/100,t[3]/100,1):(t=TQe.exec(e))?Y7(t[1],t[2]/100,t[3]/100,t[4]):j7.hasOwnProperty(e)?$7(j7[e]):e==="transparent"?new Yo(NaN,NaN,NaN,0):null}function $7(e){return new Yo(e>>16&255,e>>8&255,e&255,1)}function PS(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yo(e,t,n,r)}function DQe(e){return e instanceof $w||(e=ew(e)),e?(e=e.rgb(),new Yo(e.r,e.g,e.b,e.opacity)):new Yo}function Pk(e,t,n,r){return arguments.length===1?DQe(e):new Yo(e,t,n,r??1)}function Yo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}OH(Yo,Pk,Fle($w,{brighter(e){return e=e==null?Kx:Math.pow(Kx,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qb:Math.pow(Qb,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yo(Ff(this.r),Ff(this.g),Ff(this.b),Yx(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:q7,formatHex:q7,formatHex8:MQe,formatRgb:K7,toString:K7}));function q7(){return`#${vf(this.r)}${vf(this.g)}${vf(this.b)}`}function MQe(){return`#${vf(this.r)}${vf(this.g)}${vf(this.b)}${vf((isNaN(this.opacity)?1:this.opacity)*255)}`}function K7(){const e=Yx(this.opacity);return`${e===1?"rgb(":"rgba("}${Ff(this.r)}, ${Ff(this.g)}, ${Ff(this.b)}${e===1?")":`, ${e})`}`}function Yx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ff(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vf(e){return e=Ff(e),(e<16?"0":"")+e.toString(16)}function Y7(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qa(e,t,n,r)}function kle(e){if(e instanceof qa)return new qa(e.h,e.s,e.l,e.opacity);if(e instanceof $w||(e=ew(e)),!e)return new qa;if(e instanceof qa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new qa(s,a,l,e.opacity)}function IQe(e,t,n,r){return arguments.length===1?kle(e):new qa(e,t,n,r??1)}function qa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}OH(qa,IQe,Fle($w,{brighter(e){return e=e==null?Kx:Math.pow(Kx,e),new qa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qb:Math.pow(Qb,e),new qa(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Yo(sM(e>=240?e-240:e+120,i,r),sM(e,i,r),sM(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new qa(X7(this.h),OS(this.s),OS(this.l),Yx(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Yx(this.opacity);return`${e===1?"hsl(":"hsla("}${X7(this.h)}, ${OS(this.s)*100}%, ${OS(this.l)*100}%${e===1?")":`, ${e})`}`}}));function X7(e){return e=(e||0)%360,e<0?e+360:e}function OS(e){return Math.max(0,Math.min(1,e||0))}function sM(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const DH=e=>()=>e;function _Qe(e,t){return function(n){return e+n*t}}function FQe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function kQe(e){return(e=+e)==1?Lle:function(t,n){return n-t?FQe(t,n,e):DH(isNaN(t)?n:t)}}function Lle(e,t){var n=t-e;return n?_Qe(e,n):DH(isNaN(e)?t:e)}const Z7=(function e(t){var n=kQe(t);function r(i,o){var s=n((i=Pk(i)).r,(o=Pk(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),u=Lle(i.opacity,o.opacity);return function(d){return i.r=s(d),i.g=a(d),i.b=l(d),i.opacity=u(d),i+""}}return r.gamma=e,r})(1);function LQe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function NQe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function BQe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=ov(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function HQe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Xx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function VQe(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=ov(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Ok=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aM=new RegExp(Ok.source,"g");function zQe(e){return function(){return e}}function GQe(e){return function(t){return e(t)+""}}function jQe(e,t){var n=Ok.lastIndex=aM.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=Ok.exec(e))&&(i=aM.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Xx(r,i)})),n=aM.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?GQe(l[0].x):zQe(t):(t=l.length,function(u){for(var d=0,f;d<t;++d)a[(f=l[d]).i]=f.x(u);return a.join("")})}function ov(e,t){var n=typeof t,r;return t==null||n==="boolean"?DH(t):(n==="number"?Xx:n==="string"?(r=ew(t))?(t=r,Z7):jQe:t instanceof ew?Z7:t instanceof Date?HQe:NQe(t)?LQe:Array.isArray(t)?BQe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?VQe:Xx)(e,t)}function MH(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function UQe(e,t){t===void 0&&(t=e,e=ov);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(s){var a=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[a](s-a)}}function WQe(e){return function(){return e}}function Zx(e){return+e}var Q7=[0,1];function xo(e){return e}function Dk(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:WQe(isNaN(t)?NaN:.5)}function $Qe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function qQe(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Dk(i,r),o=n(s,o)):(r=Dk(r,i),o=n(o,s)),function(a){return o(r(a))}}function KQe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=Dk(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(a){var l=Ww(e,a,1,r)-1;return o[l](i[l](a))}}function qw(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function KR(){var e=Q7,t=Q7,n=ov,r,i,o,s=xo,a,l,u;function d(){var g=Math.min(e.length,t.length);return s!==xo&&(s=$Qe(e[0],e[g-1])),a=g>2?KQe:qQe,l=u=null,f}
vendor: 4,346 bytes, line 1048
1048function f(g){return g==null||isNaN(g=+g)?o:(l||(l=a(e.map(r),t,n)))(r(s(g)))}return f.invert=function(g){return s(i((u||(u=a(t,e.map(r),Xx)))(g)))},f.domain=function(g){return arguments.length?(e=Array.from(g,Zx),d()):e.slice()},f.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},f.rangeRound=function(g){return t=Array.from(g),n=MH,d()},f.clamp=function(g){return arguments.length?(s=g?!0:xo,d()):s!==xo},f.interpolate=function(g){return arguments.length?(n=g,d()):n},f.unknown=function(g){return arguments.length?(o=g,f):o},function(g,m){return r=g,i=m,d()}}function IH(){return KR()(xo,xo)}function YQe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Qx(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function _m(e){return e=Qx(Math.abs(e)),e?e[1]:NaN}function XQe(e,t){return function(n,r){for(var i=n.length,o=[],s=0,a=e[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(t)}}function ZQe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var QQe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tw(e){if(!(t=QQe.exec(e)))throw new Error("invalid format: "+e);var t;return new _H({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}tw.prototype=_H.prototype;function _H(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}_H.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function JQe(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Jx;function eJe(e,t){var n=Qx(e,t);if(!n)return Jx=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(Jx=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Qx(e,Math.max(0,t+o-1))[0]}function J7(e,t){var n=Qx(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const e9={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:YQe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>J7(e*100,t),r:J7,s:eJe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function t9(e){return e}var n9=Array.prototype.map,r9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tJe(e){var t=e.grouping===void 0||e.thousands===void 0?t9:XQe(n9.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?t9:ZQe(n9.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"â":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f,g){f=tw(f);var m=f.fill,y=f.align,b=f.sign,w=f.symbol,C=f.zero,E=f.width,A=f.comma,T=f.precision,P=f.trim,O=f.type;O==="n"?(A=!0,O="g"):e9[O]||(T===void 0&&(T=12),P=!0,O="g"),(C||m==="0"&&y==="=")&&(C=!0,m="0",y="=");var D=(g&&g.prefix!==void 0?g.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),F=(w==="$"?r:/[%p]/.test(O)?s:"")+(g&&g.suffix!==void 0?g.suffix:""),L=e9[O],N=/[defgprs%]/.test(O);T=T===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function M(k){var B=D,j=F,z,H,G;if(O==="c")j=L(k)+j,k="";else{k=+k;
vendor: 1,226 bytes, line 1048
1048var $=k<0||1/k<0;if(k=isNaN(k)?l:L(Math.abs(k),T),P&&(k=JQe(k)),$&&+k==0&&b!=="+"&&($=!1),B=($?b==="("?b:a:b==="-"||b==="("?"":b)+B,j=(O==="s"&&!isNaN(k)&&Jx!==void 0?r9[8+Jx/3]:"")+j+($&&b==="("?")":""),N){for(z=-1,H=k.length;++z<H;)if(G=k.charCodeAt(z),48>G||G>57){j=(G===46?i+k.slice(z+1):k.slice(z))+j,k=k.slice(0,z);break}}}A&&!C&&(k=t(k,1/0));var Y=B.length+k.length+j.length,K=Y<E?new Array(E-Y+1).join(m):"";switch(A&&C&&(k=t(K+k,K.length?E-j.length:1/0),K=""),y){case"<":k=B+k+j+K;break;case"=":k=B+K+k+j;break;case"^":k=K.slice(0,Y=K.length>>1)+B+k+j+K.slice(Y);break;default:k=K+B+k+j;break}return o(k)}return M.toString=function(){return f+""},M}function d(f,g){var m=Math.max(-8,Math.min(8,Math.floor(_m(g)/3)))*3,y=Math.pow(10,-m),b=u((f=tw(f),f.type="f",f),{suffix:r9[8+m/3]});return function(w){return b(y*w)}}return{format:u,formatPrefix:d}}var DS,FH,Nle;nJe({thousands:",",grouping:[3],currency:["$",""]});function nJe(e){return DS=tJe(e),FH=DS.format,Nle=DS.formatPrefix,DS}function rJe(e){return Math.max(0,-_m(Math.abs(e)))}function iJe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(_m(t)/3)))*3-_m(Math.abs(e)))}function oJe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_m(t)-_m(e))+1}
vendor: 7,054 bytes, line 1048
1048function Ble(e,t,n,r){var i=Ak(e,t,n),o;switch(r=tw(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=iJe(i,s))&&(r.precision=o),Nle(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=oJe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=rJe(i))&&(r.precision=o-(r.type==="%")*2);break}}return FH(r)}function ch(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ek(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Ble(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],a=r[o],l,u,d=10;for(a<s&&(u=s,s=a,a=u,u=i,i=o,o=u);d-- >0;){if(u=Rk(s,a,n),u===l)return r[i]=s,r[o]=a,t(r);if(u>0)s=Math.floor(s/u)*u,a=Math.ceil(a/u)*u;else if(u<0)s=Math.ceil(s*u)/u,a=Math.floor(a*u)/u;else break;l=u}return e},e}function Hle(){var e=IH();return e.copy=function(){return qw(e,Hle())},Sa.apply(e,arguments),ch(e)}function Vle(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Zx),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Vle(e).unknown(t)},e=arguments.length?Array.from(e,Zx):[0,1],ch(n)}function zle(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function i9(e){return Math.log(e)}function o9(e){return Math.exp(e)}function sJe(e){return-Math.log(-e)}function aJe(e){return-Math.exp(-e)}function lJe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function uJe(e){return e===10?lJe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function cJe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function s9(e){return(t,n)=>-e(-t,n)}function kH(e){const t=e(i9,o9),n=t.domain;let r=10,i,o;function s(){return i=cJe(r),o=uJe(r),n()[0]<0?(i=s9(i),o=s9(o),e(sJe,aJe)):e(i9,o9),t}return t.base=function(a){return arguments.length?(r=+a,s()):r},t.domain=function(a){return arguments.length?(n(a),s()):n()},t.ticks=a=>{const l=n();let u=l[0],d=l[l.length-1];const f=d<u;f&&([u,d]=[d,u]);let g=i(u),m=i(d),y,b;const w=a==null?10:+a;let C=[];if(!(r%1)&&m-g<w){if(g=Math.floor(g),m=Math.ceil(m),u>0){for(;g<=m;++g)for(y=1;y<r;++y)if(b=g<0?y/o(-g):y*o(g),!(b<u)){if(b>d)break;C.push(b)}}else for(;g<=m;++g)for(y=r-1;y>=1;--y)if(b=g>0?y/o(-g):y*o(g),!(b<u)){if(b>d)break;C.push(b)}C.length*2<w&&(C=Ek(u,d,w))}else C=Ek(g,m,Math.min(m-g,w)).map(o);return f?C.reverse():C},t.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=tw(l)).precision==null&&(l.trim=!0),l=FH(l)),a===1/0)return l;const u=Math.max(1,r*a/t.ticks().length);return d=>{let f=d/o(Math.round(i(d)));return f*r<r-.5&&(f*=r),f<=u?l(d):""}},t.nice=()=>n(zle(n(),{floor:a=>o(Math.floor(i(a))),ceil:a=>o(Math.ceil(i(a)))})),t}function Gle(){const e=kH(KR()).domain([1,10]);return e.copy=()=>qw(e,Gle()).base(e.base()),Sa.apply(e,arguments),e}function a9(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function l9(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function LH(e){var t=1,n=e(a9(t),l9(t));return n.constant=function(r){return arguments.length?e(a9(t=+r),l9(t)):t},ch(n)}function jle(){var e=LH(KR());return e.copy=function(){return qw(e,jle()).constant(e.constant())},Sa.apply(e,arguments)}function u9(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function dJe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function hJe(e){return e<0?-e*e:e*e}function NH(e){var t=e(xo,xo),n=1;function r(){return n===1?e(xo,xo):n===.5?e(dJe,hJe):e(u9(n),u9(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ch(t)}function BH(){var e=NH(KR());return e.copy=function(){return qw(e,BH()).exponent(e.exponent())},Sa.apply(e,arguments),e}function fJe(){return BH.apply(null,arguments).exponent(.5)}function c9(e){return Math.sign(e)*e*e}function gJe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Ule(){var e=IH(),t=[0,1],n=!1,r;function i(o){var s=gJe(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert(c9(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Zx)).map(c9)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Ule(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Sa.apply(i,arguments),ch(i)}function Wle(){var e=[],t=[],n=[],r;function i(){var s=0,a=Math.max(1,t.length);for(n=new Array(a-1);++s<a;)n[s-1]=yQe(e,s/a);return o}function o(s){return s==null||isNaN(s=+s)?r:t[Ww(n,s)]}return o.invertExtent=function(s){var a=t.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:e[0],a<n.length?n[a]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let a of s)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Gd),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return Wle().domain(e).range(t).unknown(r)},Sa.apply(o,arguments)}function $le(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(l){return l!=null&&l<=l?i[Ww(r,l,0,n)]:o}function a(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,a()):[e,t]},s.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,a()):i.slice()},s.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},s.unknown=function(l){return arguments.length&&(o=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return $le().domain([e,t]).range(i).unknown(o)},Sa.apply(ch(s),arguments)}function qle(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Ww(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return qle().domain(e).range(t).unknown(n)},Sa.apply(i,arguments)}const lM=new Date,uM=new Date;function Zr(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),a=i.ceil(o);return o-s<a-o?s:a},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,a)=>{const l=[];
vendor: 4,129 bytes, line 1048
1048if(o=i.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return l;let u;do l.push(u=new Date(+o)),t(o,a),e(o);while(u<o&&o<s);return l},i.filter=o=>Zr(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;t(s,-1),!o(s););else for(;--a>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(lM.setTime(+o),uM.setTime(+s),e(lM),e(uM),Math.floor(n(lM,uM))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const eE=Zr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);eE.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Zr(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):eE);eE.range;const nc=1e3,ua=nc*60,rc=ua*60,vc=rc*24,HH=vc*7,d9=vc*30,cM=vc*365,yf=Zr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*nc)},(e,t)=>(t-e)/nc,e=>e.getUTCSeconds());yf.range;const VH=Zr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*nc)},(e,t)=>{e.setTime(+e+t*ua)},(e,t)=>(t-e)/ua,e=>e.getMinutes());VH.range;const zH=Zr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ua)},(e,t)=>(t-e)/ua,e=>e.getUTCMinutes());zH.range;const GH=Zr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*nc-e.getMinutes()*ua)},(e,t)=>{e.setTime(+e+t*rc)},(e,t)=>(t-e)/rc,e=>e.getHours());GH.range;const jH=Zr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*rc)},(e,t)=>(t-e)/rc,e=>e.getUTCHours());jH.range;const Kw=Zr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ua)/vc,e=>e.getDate()-1);Kw.range;const YR=Zr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vc,e=>e.getUTCDate()-1);YR.range;const Kle=Zr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vc,e=>Math.floor(e/vc));Kle.range;function Og(e){return Zr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ua)/HH)}const XR=Og(0),tE=Og(1),pJe=Og(2),mJe=Og(3),Fm=Og(4),vJe=Og(5),yJe=Og(6);XR.range;tE.range;pJe.range;mJe.range;Fm.range;vJe.range;yJe.range;function Dg(e){return Zr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/HH)}const ZR=Dg(0),nE=Dg(1),bJe=Dg(2),wJe=Dg(3),km=Dg(4),CJe=Dg(5),SJe=Dg(6);ZR.range;nE.range;bJe.range;wJe.range;km.range;CJe.range;SJe.range;const UH=Zr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());UH.range;const WH=Zr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());WH.range;const yc=Zr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());yc.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Zr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});yc.range;const bc=Zr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());bc.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Zr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});bc.range;function Yle(e,t,n,r,i,o){const s=[[yf,1,nc],[yf,5,5*nc],[yf,15,15*nc],[yf,30,30*nc],[o,1,ua],[o,5,5*ua],[o,15,15*ua],[o,30,30*ua],[i,1,rc],[i,3,3*rc],[i,6,6*rc],[i,12,12*rc],[r,1,vc],[r,2,2*vc],[n,1,HH],[t,1,d9],[t,3,3*d9],[e,1,cM]];function a(u,d,f){const g=d<u;g&&([u,d]=[d,u]);const m=f&&typeof f.range=="function"?f:l(u,d,f),y=m?m.range(u,+d+1):[];return g?y.reverse():y}function l(u,d,f){const g=Math.abs(d-u)/f,m=AH(([,,w])=>w).right(s,g);if(m===s.length)return e.every(Ak(u/cM,d/cM,f));if(m===0)return eE.every(Math.max(Ak(u,d,f),1));
vendor: 4,995 bytes, line 1048
1048const[y,b]=s[g/s[m-1][2]<s[m][2]/g?m-1:m];return y.every(b)}return[a,l]}const[xJe,EJe]=Yle(bc,WH,ZR,Kle,jH,zH),[RJe,AJe]=Yle(yc,UH,XR,Kw,GH,VH);function dM(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hM(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ey(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function TJe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,u=Ry(i),d=Ay(i),f=Ry(o),g=Ay(o),m=Ry(s),y=Ay(s),b=Ry(a),w=Ay(a),C=Ry(l),E=Ay(l),A={a:G,A:$,b:Y,B:K,c:null,d:v9,e:v9,f:XJe,g:set,G:uet,H:qJe,I:KJe,j:YJe,L:Xle,m:ZJe,M:QJe,p:se,q:re,Q:w9,s:C9,S:JJe,u:eet,U:tet,V:net,w:ret,W:iet,x:null,X:null,y:oet,Y:aet,Z:cet,"%":b9},T={a:ue,A:U,b:X,B:be,c:null,d:y9,e:y9,f:get,g:Ret,G:Tet,H:det,I:het,j:fet,L:Qle,m:pet,M:met,p:me,q:Oe,Q:w9,s:C9,S:vet,u:yet,U:bet,V:wet,w:Cet,W:xet,x:null,X:null,y:Eet,Y:Aet,Z:Pet,"%":b9},P={a:N,A:M,b:k,B,c:j,d:p9,e:p9,f:jJe,g:g9,G:f9,H:m9,I:m9,j:HJe,L:GJe,m:BJe,M:VJe,p:L,q:NJe,Q:WJe,s:$Je,S:zJe,u:IJe,U:_Je,V:FJe,w:MJe,W:kJe,x:z,X:H,y:g9,Y:f9,Z:LJe,"%":UJe};A.x=O(n,A),A.X=O(r,A),A.c=O(t,A),T.x=O(n,T),T.X=O(r,T),T.c=O(t,T);function O(ge,ve){return function(de){var J=[],Fe=-1,ke=0,Te=ge.length,dt,Ne,xe;for(de instanceof Date||(de=new Date(+de));++Fe<Te;)ge.charCodeAt(Fe)===37&&(J.push(ge.slice(ke,Fe)),(Ne=h9[dt=ge.charAt(++Fe)])!=null?dt=ge.charAt(++Fe):Ne=dt==="e"?" ":"0",(xe=ve[dt])&&(dt=xe(de,Ne)),J.push(dt),ke=Fe+1);return J.push(ge.slice(ke,Fe)),J.join("")}}function D(ge,ve){return function(de){var J=Ey(1900,void 0,1),Fe=F(J,ge,de+="",0),ke,Te;if(Fe!=de.length)return null;if("Q"in J)return new Date(J.Q);if("s"in J)return new Date(J.s*1e3+("L"in J?J.L:0));if(ve&&!("Z"in J)&&(J.Z=0),"p"in J&&(J.H=J.H%12+J.p*12),J.m===void 0&&(J.m="q"in J?J.q:0),"V"in J){if(J.V<1||J.V>53)return null;"w"in J||(J.w=1),"Z"in J?(ke=hM(Ey(J.y,0,1)),Te=ke.getUTCDay(),ke=Te>4||Te===0?nE.ceil(ke):nE(ke),ke=YR.offset(ke,(J.V-1)*7),J.y=ke.getUTCFullYear(),J.m=ke.getUTCMonth(),J.d=ke.getUTCDate()+(J.w+6)%7):(ke=dM(Ey(J.y,0,1)),Te=ke.getDay(),ke=Te>4||Te===0?tE.ceil(ke):tE(ke),ke=Kw.offset(ke,(J.V-1)*7),J.y=ke.getFullYear(),J.m=ke.getMonth(),J.d=ke.getDate()+(J.w+6)%7)}else("W"in J||"U"in J)&&("w"in J||(J.w="u"in J?J.u%7:"W"in J?1:0),Te="Z"in J?hM(Ey(J.y,0,1)).getUTCDay():dM(Ey(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(Te+5)%7:J.w+J.U*7-(Te+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,hM(J)):dM(J)}}function F(ge,ve,de,J){for(var Fe=0,ke=ve.length,Te=de.length,dt,Ne;Fe<ke;){if(J>=Te)return-1;if(dt=ve.charCodeAt(Fe++),dt===37){if(dt=ve.charAt(Fe++),Ne=P[dt in h9?ve.charAt(Fe++):dt],!Ne||(J=Ne(ge,de,J))<0)return-1}else if(dt!=de.charCodeAt(J++))return-1}return J}function L(ge,ve,de){var J=u.exec(ve.slice(de));return J?(ge.p=d.get(J[0].toLowerCase()),de+J[0].length):-1}function N(ge,ve,de){var J=m.exec(ve.slice(de));return J?(ge.w=y.get(J[0].toLowerCase()),de+J[0].length):-1}function M(ge,ve,de){var J=f.exec(ve.slice(de));return J?(ge.w=g.get(J[0].toLowerCase()),de+J[0].length):-1}function k(ge,ve,de){var J=C.exec(ve.slice(de));return J?(ge.m=E.get(J[0].toLowerCase()),de+J[0].length):-1}function B(ge,ve,de){var J=b.exec(ve.slice(de));return J?(ge.m=w.get(J[0].toLowerCase()),de+J[0].length):-1}function j(ge,ve,de){return F(ge,t,ve,de)}function z(ge,ve,de){return F(ge,n,ve,de)}function H(ge,ve,de){return F(ge,r,ve,de)}function G(ge){return s[ge.getDay()]}function $(ge){return o[ge.getDay()]}function Y(ge){return l[ge.getMonth()]}function K(ge){return a[ge.getMonth()]}function se(ge){return i[+(ge.getHours()>=12)]}function re(ge){return 1+~~(ge.getMonth()/3)}function ue(ge){return s[ge.getUTCDay()]}function U(ge){return o[ge.getUTCDay()]}function X(ge){return l[ge.getUTCMonth()]}function be(ge){return a[ge.getUTCMonth()]}function me(ge){return i[+(ge.getUTCHours()>=12)]}function Oe(ge){return 1+~~(ge.getUTCMonth()/3)}return{format:function(ge){var ve=O(ge+="",A);return ve.toString=function(){return ge},ve},parse:function(ge){var ve=D(ge+="",!1);return ve.toString=function(){return ge},ve},utcFormat:function(ge){var ve=O(ge+="",T);return ve.toString=function(){return ge},ve},utcParse:function(ge){var ve=D(ge+="",!0);return ve.toString=function(){return ge},ve}}}var h9={"-":"",_:" ",0:"0"},mi=/^\s*\d+/,PJe=/^%/,OJe=/[\\^$*+?|[\]().{}]/g;function Yt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function DJe(e){return e.replace(OJe,"\\$&")}function Ry(e){return new RegExp("^(?:"+e.map(DJe).join("|")+")","i")}function Ay(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function MJe(e,t,n){var r=mi.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function IJe(e,t,n){var r=mi.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _Je(e,t,n){var r=mi.exec(t.slice(n,n+2));
vendor: 4,118 bytes, line 1048
1048return r?(e.U=+r[0],n+r[0].length):-1}function FJe(e,t,n){var r=mi.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kJe(e,t,n){var r=mi.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function f9(e,t,n){var r=mi.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function g9(e,t,n){var r=mi.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function LJe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function NJe(e,t,n){var r=mi.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function BJe(e,t,n){var r=mi.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function p9(e,t,n){var r=mi.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function HJe(e,t,n){var r=mi.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function m9(e,t,n){var r=mi.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function VJe(e,t,n){var r=mi.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zJe(e,t,n){var r=mi.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function GJe(e,t,n){var r=mi.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function jJe(e,t,n){var r=mi.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function UJe(e,t,n){var r=PJe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function WJe(e,t,n){var r=mi.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $Je(e,t,n){var r=mi.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function v9(e,t){return Yt(e.getDate(),t,2)}function qJe(e,t){return Yt(e.getHours(),t,2)}function KJe(e,t){return Yt(e.getHours()%12||12,t,2)}function YJe(e,t){return Yt(1+Kw.count(yc(e),e),t,3)}function Xle(e,t){return Yt(e.getMilliseconds(),t,3)}function XJe(e,t){return Xle(e,t)+"000"}function ZJe(e,t){return Yt(e.getMonth()+1,t,2)}function QJe(e,t){return Yt(e.getMinutes(),t,2)}function JJe(e,t){return Yt(e.getSeconds(),t,2)}function eet(e){var t=e.getDay();return t===0?7:t}function tet(e,t){return Yt(XR.count(yc(e)-1,e),t,2)}function Zle(e){var t=e.getDay();return t>=4||t===0?Fm(e):Fm.ceil(e)}function net(e,t){return e=Zle(e),Yt(Fm.count(yc(e),e)+(yc(e).getDay()===4),t,2)}function ret(e){return e.getDay()}function iet(e,t){return Yt(tE.count(yc(e)-1,e),t,2)}function oet(e,t){return Yt(e.getFullYear()%100,t,2)}function set(e,t){return e=Zle(e),Yt(e.getFullYear()%100,t,2)}function aet(e,t){return Yt(e.getFullYear()%1e4,t,4)}function uet(e,t){var n=e.getDay();return e=n>=4||n===0?Fm(e):Fm.ceil(e),Yt(e.getFullYear()%1e4,t,4)}function cet(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Yt(t/60|0,"0",2)+Yt(t%60,"0",2)}function y9(e,t){return Yt(e.getUTCDate(),t,2)}function det(e,t){return Yt(e.getUTCHours(),t,2)}function het(e,t){return Yt(e.getUTCHours()%12||12,t,2)}function fet(e,t){return Yt(1+YR.count(bc(e),e),t,3)}function Qle(e,t){return Yt(e.getUTCMilliseconds(),t,3)}function get(e,t){return Qle(e,t)+"000"}function pet(e,t){return Yt(e.getUTCMonth()+1,t,2)}function met(e,t){return Yt(e.getUTCMinutes(),t,2)}function vet(e,t){return Yt(e.getUTCSeconds(),t,2)}function yet(e){var t=e.getUTCDay();return t===0?7:t}function bet(e,t){return Yt(ZR.count(bc(e)-1,e),t,2)}function Jle(e){var t=e.getUTCDay();return t>=4||t===0?km(e):km.ceil(e)}function wet(e,t){return e=Jle(e),Yt(km.count(bc(e),e)+(bc(e).getUTCDay()===4),t,2)}function Cet(e){return e.getUTCDay()}function xet(e,t){return Yt(nE.count(bc(e)-1,e),t,2)}function Eet(e,t){return Yt(e.getUTCFullYear()%100,t,2)}function Ret(e,t){return e=Jle(e),Yt(e.getUTCFullYear()%100,t,2)}function Aet(e,t){return Yt(e.getUTCFullYear()%1e4,t,4)}function Tet(e,t){var n=e.getUTCDay();return e=n>=4||n===0?km(e):km.ceil(e),Yt(e.getUTCFullYear()%1e4,t,4)}function Pet(){return"+0000"}function b9(){return"%"}function w9(e){return+e}function C9(e){return Math.floor(+e/1e3)}var Ap,eue,tue;Oet({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1048ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Oet(e){return Ap=TJe(e),eue=Ap.format,Ap.parse,tue=Ap.utcFormat,Ap.utcParse,Ap}function Det(e){return new Date(e)}function Met(e){return e instanceof Date?+e:+new Date(+e)}function $H(e,t,n,r,i,o,s,a,l,u){var d=IH(),f=d.invert,g=d.domain,m=u(".%L"),y=u(":%S"),b=u("%I:%M"),w=u("%I %p"),C=u("%a %d"),E=u("%b %d"),A=u("%B"),T=u("%Y");function P(O){return(l(O)<O?m:a(O)<O?y:s(O)<O?b:o(O)<O?w:r(O)<O?i(O)<O?C:E:n(O)<O?A:T)(O)}return d.invert=function(O){return new Date(f(O))},d.domain=function(O){return arguments.length?g(Array.from(O,Met)):g().map(Det)},d.ticks=function(O){var D=g();return e(D[0],D[D.length-1],O??10)},d.tickFormat=function(O,D){return D==null?P:u(D)},d.nice=function(O){var D=g();return(!O||typeof O.range!="function")&&(O=t(D[0],D[D.length-1],O??10)),O?g(zle(D,O)):d},d.copy=function(){return qw(d,$H(e,t,n,r,i,o,s,a,l,u))},d}function Iet(){return Sa.apply($H(RJe,AJe,yc,UH,XR,Kw,GH,VH,yf,eue).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _et(){return Sa.apply($H(xJe,EJe,bc,WH,ZR,YR,jH,zH,yf,tue).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function QR(){var e=0,t=1,n,r,i,o,s=xo,a=!1,l;function u(f){return f==null||isNaN(f=+f)?l:s(i===0?.5:(f=(o(f)-n)*i,a?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(a=!!f,u):a},u.interpolator=function(f){return arguments.length?(s=f,u):s};function d(f){return function(g){var m,y;return arguments.length?([m,y]=g,s=f(m,y),u):[s(0),s(1)]}}return u.range=d(ov),u.rangeRound=d(MH),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return o=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function dh(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function nue(){var e=ch(QR()(xo));return e.copy=function(){return dh(e,nue())},Dc.apply(e,arguments)}function rue(){var e=kH(QR()).domain([1,10]);return e.copy=function(){return dh(e,rue()).base(e.base())},Dc.apply(e,arguments)}function iue(){var e=LH(QR());return e.copy=function(){return dh(e,iue()).constant(e.constant())},Dc.apply(e,arguments)}function qH(){var e=NH(QR());return e.copy=function(){return dh(e,qH()).exponent(e.exponent())},Dc.apply(e,arguments)}function Fet(){return qH.apply(null,arguments).exponent(.5)}function oue(){var e=[],t=xo;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ww(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Gd),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>vQe(e,o/r))},n.copy=function(){return oue(t).domain(e)},Dc.apply(n,arguments)}function JR(){var e=0,t=.5,n=1,r=1,i,o,s,a,l,u=xo,d,f=!1,g;function m(b){return isNaN(b=+b)?g:(b=.5+((b=+d(b))-o)*(r*b<r*o?a:l),u(f?Math.max(0,Math.min(1,b)):b))}m.domain=function(b){return arguments.length?([e,t,n]=b,i=d(e=+e),o=d(t=+t),s=d(n=+n),a=i===o?0:.5/(o-i),l=o===s?0:.5/(s-o),r=o<i?-1:1,m):[e,t,n]},m.clamp=function(b){return arguments.length?(f=!!b,m):f},m.interpolator=function(b){return arguments.length?(u=b,m):u};function y(b){return function(w){var C,E,A;return arguments.length?([C,E,A]=w,u=UQe(b,[C,E,A]),m):[u(0),u(.5),u(1)]}}return m.range=y(ov),m.rangeRound=y(MH),m.unknown=function(b){return arguments.length?(g=b,m):g},function(b){return d=b,i=b(e),o=b(t),s=b(n),a=i===o?0:.5/(o-i),l=o===s?0:.5/(s-o),r=o<i?-1:1,m}}function sue(){var e=ch(JR()(xo));return e.copy=function(){return dh(e,sue())},Dc.apply(e,arguments)}function aue(){var e=kH(JR()).domain([.1,1,10]);return e.copy=function(){return dh(e,aue()).base(e.base())},Dc.apply(e,arguments)}function lue(){var e=LH(JR());return e.copy=function(){return dh(e,lue()).constant(e.constant())},Dc.apply(e,arguments)}function KH(){var e=NH(JR());
1048return e.copy=function(){return dh(e,KH()).exponent(e.exponent())},Dc.apply(e,arguments)}function ket(){return KH.apply(null,arguments).exponent(.5)}const uue=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:PH,scaleDiverging:sue,scaleDivergingLog:aue,scaleDivergingPow:KH,scaleDivergingSqrt:ket,scaleDivergingSymlog:lue,scaleIdentity:Vle,scaleImplicit:Tk,scaleLinear:Hle,scaleLog:Gle,scaleOrdinal:TH,scalePoint:wQe,scalePow:BH,scaleQuantile:Wle,scaleQuantize:$le,scaleRadial:Ule,scaleSequential:nue,scaleSequentialLog:rue,scaleSequentialPow:qH,scaleSequentialQuantile:oue,scaleSequentialSqrt:Fet,scaleSequentialSymlog:iue,scaleSqrt:fJe,scaleSymlog:jle,scaleThreshold:qle,scaleTime:Iet,scaleUtc:_et,tickFormat:Ble},Symbol.toStringTag,{value:"Module"}));function Let(e){var t=uue;if(e in t&&typeof t[e]=="function")return t[e]();var n="scale".concat(Iw(e));if(n in t&&typeof t[n]=="function")return t[n]()}function S9(e,t,n){if(typeof e=="function")return e.copy().domain(t).range(n);if(e!=null){var r=Let(e);if(r!=null)return r.domain(t).range(n),r}}function eA(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?S9(e.scale,n,r):S9(t,n,r)}function Net(e){return"scale".concat(Iw(e))}function Bet(e){return Net(e)in uue}var cue=(e,t,n)=>{if(e!=null){var r=e.scale,i=e.type;if(r==="auto")return i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>
1048=0||n.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof r=="string")return Bet(r)?r:"point"}};function Het(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var o=Math.floor((n+r)/2);(i?e[o]<t:e[o]>t)?n=o+1:r=o}return n}function due(e,t){if(e){var n=t??e.domain(),r=n.map(o=>{var s;return(s=e(o))!==null&&s!==void 0?s:0}),i=e.range();if(!(n.length===0||i.length<2))return o=>{var s,a,l=Het(r,o);if(l<=0)return n[0];if(l>=n.length)return n[n.length-1];var u=(s=r[l-1])!==null&&s!==void 0?s:0,d=(a=r[l])!==null&&a!==void 0?a:0;return Math.abs(o-u)<=Math.abs(o-d)?n[l-1]:n[l]}}}function Vet(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):due(e,void 0)}function x9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x9(Object(n),!0).forEach(function(r){zet(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zet(e,t,n){return(t=Get(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Get(e){var t=jet(e,"string");return typeof t=="symbol"?t:t+""}function jet(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hue(e,t){return qet(e)||$et(e,t)||Wet(e,t)||Uet()}function Uet(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1049In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wet(e,t){if(e){if(typeof e=="string")return E9(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E9(e,t):void 0}}function E9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $et(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function qet(e){if(Array.isArray(e))return e}var Mk=[0,"auto"],Ur={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},fue=(e,t)=>e.cartesianAxis.xAxis[t],Mc=(e,t)=>{var n=fue(e,t);return n??Ur},Wr={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Mk,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:kw},gue=(e,t)=>e.cartesianAxis.yAxis[t],Ic=(e,t)=>{var n=gue(e,t);return n??Wr},Ket={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},YH=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Ket},ir=(e,t,n)=>{switch(t){case"xAxis":return Mc(e,n);case"yAxis":return Ic(e,n);case"zAxis":return YH(e,n);case"angleAxis":return Vw(e,n);case"radiusAxis":return zw(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Yet=(e,t,n)=>{switch(t){case"xAxis":return Mc(e,n);case"yAxis":return Ic(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}}
1049,Mg=(e,t,n)=>{switch(t){case"xAxis":return Mc(e,n);case"yAxis":return Ic(e,n);case"angleAxis":return Vw(e,n);case"radiusAxis":return zw(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},pue=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function XH(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Yw=e=>e.graphicalItems.cartesianItems,Xet=ne([In,Gw],XH),ZH=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),sv=ne([Yw,ir,Xet],ZH,{memoizeOptions:{resultEqualityCheck:$R}}),mue=ne([sv],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(jw)),vue=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Zet=ne([sv],vue),QH=e=>e.map(t=>t.data).filter(Boolean).flat(1),Qet=ne([sv],e=>e.some(t=>!t.data)),yue=ne([sv],QH,{memoizeOptions:{resultEqualityCheck:$R}}),JH=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,i=t.dataStartIndex,o=t.dataEndIndex;return e.length>0?e:r.slice(i,o+1)},e3=ne([yue,Hw],JH),bue=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:Gt(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:Gt(i,r)}))):e.map(r=>({value:r})),wue=(e,t,n,r,i,o)=>{var s=r.chartData,a=s===void 0?[]:s,l=r.dataStartIndex,u=r.dataEndIndex,d=bue(e,t,n);if(i&&t?.dataKey!=null&&o.length>0){var f=a.slice(l,u+1),g=f.map(m=>({value:Gt(m,t.dataKey)})).filter(m=>m.value!=null);return[...g,...d]}return d},Xw=ne([e3,ir,sv,Hw,Qet,yue],wue);function fm(e){if(iu(e)||e instanceof Date){var t=Number(e);if(Ot(t))return t}}function R9(e){if(Array.isArray(e)){var t=[fm(e[0]),fm(e[1])];return Yl(t)?t:void 0}var n=fm(e);if(n!=null)return[n,n]}function el(e){return e.map(fm).filter(So)}function Jet(e,t){var n=fm(e),r=fm(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var ett=ne([Xw],e=>e?.map(t=>t.value).sort(Jet));function Cue(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function ttt(e,t,n){if(!n)return[];if(!n.length)return[];var r;if(typeof t=="number"&&!Ja(t))r=t;else if(Array.isArray(t)){var i=el(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:el(n.flatMap(o=>{var s=Gt(e,o.dataKey),a,l;if(Array.isArray(s)){var u=hue(s,2);a=u[0],l=u[1]}else a=l=s;if(!(!Ot(a)||!Ot(l)))return[r-a,r+l]}))}var zr=e=>{var t=pi(e),n=iv(e);return Mg(e,t,n)},Lm=ne([zr],e=>e?.dataKey),ntt=ne([mue,Hw,zr],RH),t3=(e,t,n,r)=>{var i={},o=t.reduce((s,a)=>{if(a.stackId==null)return s;var l=s[a.stackId];return l==null&&(l=[]),l.push(a),s[a.stackId]=l,s},i);return Object.fromEntries(Object.entries(o).map(s=>{var a=hue(s,2),l=a[0],u=a[1],d=r?[...u].reverse():u,f=d.map(WR);return[l,{stackedData:hKe(e,f,n),graphicalItems:d}]}))},iE=ne([ntt,mue,rv,bH],t3),Sue=(e,t,n,r)=>{var i=t.dataStartIndex,o=t.dataEndIndex;if(r==null&&n!=="zAxis")return pKe(e,i,o)},rtt=ne([ir],e=>e.allowDataOverflow),n3=e=>{var t;if(e==null||!("domain"in e))return Mk;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=el(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Mk},r3=ne([ir],n3),i3=ne([r3,rtt],dle),itt=ne([iE,Ca,In,i3],Sue,{memoizeOptions:{resultEqualityCheck:Uw}}),tA=e=>e.errorBars,ott=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>Cue(n,r)),oE=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
1049var i=n.filter(Boolean);if(i.length!==0){var o=i.flat(),s=Math.min(...o),a=Math.max(...o);return[s,a]}},o3=function(t,n,r,i,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],a,l;if(r.length>0&&r.forEach(u=>{var d,f=u.data!=null?[...u.data]:s,g=(d=i[u.id])===null||d===void 0?void 0:d.filter(m=>Cue(o,m));f.forEach(m=>{var y,b=Gt(m,(y=n.dataKey)!==null&&y!==void 0?y:u.dataKey),w=ttt(m,b,g);if(w.length>=2){var C=Math.min(...w),E=Math.max(...w);(a==null||C<a)&&(a=C),(l==null||E>l)&&(l=E)}var A=R9(b);A!=null&&(a=a==null?A[0]:Math.min(a,A[0]),l=l==null?A[1]:Math.max(l,A[1]))})}),n?.dataKey!=null&&r.length===0&&t.forEach(u=>{var d=R9(Gt(u,n.dataKey));d!=null&&(a=a==null?d[0]:Math.min(a,d[0]),l=l==null?d[1]:Math.max(l,d[1]))}),Ot(a)&&Ot(l))return[a,l]},stt=ne([e3,ir,Zet,tA,In,FZe],o3,{memoizeOptions:{resultEqualityCheck:Uw}});function att(e){var t=e.value;if(iu(t)||t instanceof Date)return t}var ltt=(e,t,n)=>{var r=e.map(att).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&sse(r))?ule(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},xue=e=>e.referenceElements.dots,av=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),utt=ne([xue,In,Gw],av),Eue=e=>e.referenceElements.areas,ctt=ne([Eue,In,Gw],av),Rue=e=>e.referenceElements.lines,dtt=ne([Rue,In,Gw],av),Aue=(e,t)=>
1049{if(e!=null){var n=el(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},htt=ne(utt,In,Aue),Tue=(e,t)=>{if(e!=null){var n=el(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},ftt=ne([ctt,In],Tue);function gtt(e){var t;if(e.x!=null)return el([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:el(n)}function ptt(e){var t;if(e.y!=null)return el([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:el(n)}var Pue=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?gtt(r):ptt(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},mtt=ne([dtt,In],Pue),vtt=ne(htt,mtt,ftt,(e,t,n)=>oE(e,n,t)),s3=(e,t,n,r,i,o,s,a,l)=>{if(n!=null)return n;var u=s==="vertical"&&a==="xAxis"||s==="horizontal"&&a==="yAxis",d=u?oE(r,o,i):oE(o,i),f=zZe(t,d,e.allowDataOverflow);return f??(e.allowDataOverflow&&d==null&&l!=null?l:f)},ytt=e=>{if(!(e==null||e.type!=="number"||!("ticks"in e)||e.ticks==null)){var t=el(e.ticks);if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},btt=ne([ir],ytt,{memoizeOptions:{resultEqualityCheck:Uw}}),wtt=ne([ir,r3,i3,itt,stt,vtt,wt,In,btt],s3,{memoizeOptions:{resultEqualityCheck:Uw}}),Ctt=[0,1],a3=(e,t,n,r,i,o,s)=>{if(!((e==null||n==null||n.length===0)&&s===void 0)){var a=e.dataKey,l=e.type,u=wa(t,o);if(u&&a==null){var d;return ule(0,(d=n?.length)!==null&&d!==void 0?d:0)}return l==="category"?ltt(r,e,u):i==="expand"&&!u?Ctt:s}},l3=ne([ir,wt,e3,Xw,rv,In,wtt],a3),gu=ne([ir,pue,wH],cue),u3=(e,t,n)=>{var r=t.niceTicks;if(r!=="none"){var i=n3(t),o=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((r==="snap125"||r==="adaptive")&&t!=null&&t.tickCount&&Yl(e)){if(o)return F7(e,t.tickCount,t.allowDecimals,r);if(t.type==="number")return k7(e,t.tickCount,t.allowDecimals,r)}if(r==="auto"&&n==="linear"&&t!=null&&t.tickCount){if(o&&Yl(e))return F7(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&Yl(e))return k7(e,t.tickCount,t.allowDecimals,"adaptive")}}},c3=ne([l3,Mg,gu],u3),d3=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&Yl(t)&&Array.isArray(n)&&n.length>0){var i,o,s=t[0],a=(i=n[0])!==null&&i!==void 0?i:0,l=t[1],u=(o=n[n.length-1])!==null&&o!==void 0?o:0;return[Math.min(s,a),Math.max(l,u)]}return t},Stt=ne([ir,l3,c3,In],d3),xtt=ne(Xw,ir,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(el(e.map(f=>f.value))).sort((f,g)=>f-g),i=r[0],o=r[r.length-1];if(i==null||o==null)return 1/0;var s=o-i;if(s===0)return 1/0;for(var a=0;a<r.length-1;a++){var l=r[a],u=r[a+1];if(!(l==null||u==null)){var d=u-l;n=Math.min(n,d)}}return n/s}}),Oue=ne(xtt,wt,yH,Xr,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!Ot(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var s=io(n,e*o),a=e*o/2;return a-s-(a-s)/o*s}return 0}),Ett=(e,t,n)=>{var r=Mc(e,t);return r==null||typeof r.padding!="string"?0:Oue(e,"xAxis",t,n,r.padding)},Rtt=(e,t,n)=>{var r=Ic(e,t);return r==null||typeof r.padding!="string"?0:Oue(e,"yAxis",t,n,r.padding)},Att=ne(Mc,Ett,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var i=e.padding;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),Ttt=ne(Ic,Rtt,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var i=e.padding;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),Due=ne([Xr,Att,HR,BR,(e,t,n)=>n],(e,t,n,r,i)=>{var o=r.padding;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),Mue=ne([Xr,wt,Ttt,HR,BR,(e,t,n)=>n],(e,t,n,r,i,o)=>{var s=i.padding;return o?[r.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Zw=(e,t,n,r)=>{var i;switch(t){case"xAxis":return Due(e,n,r);case"yAxis":return Mue(e,n,r);case"zAxis":return(i=YH(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return Tle(e);case"radiusAxis":return Ple(e,n);default:return}},Iue=ne([ir,Zw],GR),Ptt=ne([gu,Stt],Ole),h3=ne([ir,gu,Ptt,Iue],eA),f3=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var i=n.type,o=n.scale,s=wa(e,r);if(s&&(i==="number"||o!=="auto"))return t.map(a=>a.value)}},g3=ne([wt,Xw,Mg,In],f3),nA=ne([h3],qR);ne([h3],Vet);ne([h3,ett],due);ne([sv,tA,In],ott);function _ue(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var rA=(e,t)=>
1049t,iA=(e,t,n)=>n,Ott=ne(LR,rA,iA,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(_ue)),Dtt=ne(NR,rA,iA,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(_ue)),Fue=(e,t)=>{var n=typeof t.height=="number"?t.height:sH;return{width:e.width,height:n}},Mtt=(e,t)=>{var n=typeof t.width=="number"?t.width:kw;return{width:n,height:e.height}},kue=ne(Xr,Mc,Fue),Itt=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},_tt=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},Ftt=ne(fu,Xr,Ott,rA,iA,(e,t,n,r,i)=>{var o={},s;return n.forEach(a=>{var l=Fue(t,a);s==null&&(s=Itt(t,r,e));var u=r==="top"&&!i||r==="bottom"&&i;o[a.id]=s-Number(u)*l.height,s+=(u?-1:1)*l.height}),o}),ktt=ne(hu,Xr,Dtt,rA,iA,(e,t,n,r,i)=>{var o={},s;return n.forEach(a=>{var l=Mtt(t,a);s==null&&(s=_tt(t,r,e));var u=r==="left"&&!i||r==="right"&&i;o[a.id]=s-Number(u)*l.width,s+=(u?-1:1)*l.width}),o}),Ltt=(e,t)=>{var n=Mc(e,t);if(n!=null)return Ftt(e,n.orientation,n.mirror)},Ntt=ne([Xr,Mc,Ltt,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),Btt=(e,t)=>{var n=Ic(e,t);if(n!=null)return ktt(e,n.orientation,n.mirror)},Htt=ne([Xr,Ic,Btt,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),Lue=ne(Xr,Ic,(e,t)=>{var n=typeof t.width=="number"?t.width:kw;return{width:n,height:e.height}}),A9=(e,t,n)=>{switch(t){case"xAxis":return kue(e,n).width;case"yAxis":return Lue(e,n).height;default:return}},Nue=(e,t,n,r)=>{if(n!=null){var i=n.allowDuplicatedCategory,o=n.type,s=n.dataKey,a=wa(e,r),l=t.map(d=>d.value),u=l.filter(d=>d!=null);if(s&&a&&o==="category"&&i&&sse(u))return l}},Qw=ne([wt,Xw,ir,In],Nue),T9=ne([wt,Yet,gu,nA,Qw,g3,Zw,c3,In],(e,t,n,r,i,o,s,a,l)=>{if(t!=null){var u=wa(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:o,duplicateDomain:i,isCategorical:u,niceTicks:a,range:s,realScaleType:n,scale:r}}}),Bue=(e,t,n,r,i,o,s,a,l)=>{if(!(t==null||r==null)){var u=wa(e,l),d=t.type,f=t.ticks,g=t.tickCount,m=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,y=d==="category"&&r.bandwidth?r.bandwidth()/m:0;y=l==="angleAxis"&&o!=null&&o.length>=2?Lr(o[0]-o[1])*2*y:y;var b=f||i;return b?b.map((w,C)=>{var E=s?s.indexOf(w):w,A=r.map(E);return Ot(A)?{index:C,coordinate:A+y,value:w,offset:y}:null}).filter(So):u&&a?a.map((w,C)=>{var E=r.map(w);return Ot(E)?{coordinate:E+y,value:w,index:C,offset:y}:null}).filter(So):r.ticks?r.ticks(g).map((w,C)=>{var E=r.map(w);return Ot(E)?{coordinate:E+y,value:w,index:C,offset:y}:null}).filter(So):r.domain().map((w,C)=>{var E=r.map(w);return Ot(E)?{coordinate:E+y,value:s?s[w]:w,index:C,offset:y}:null}).filter(So)}},Hue=ne([wt,Mg,gu,nA,c3,Zw,Qw,g3,In],Bue),Vue=(e,t,n,r,i,o,s)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var a=wa(e,s),l=t.tickCount,u=0;return u=s==="angleAxis"&&r?.length>=2?Lr(r[0]-r[1])*2*u:u,a&&o?o.map((d,f)=>{var g=n.map(d);return Ot(g)?{coordinate:g+u,value:d,index:f,offset:u}:null}).filter(So):n.ticks?n.ticks(l).map((d,f)=>{var g=n.map(d);return Ot(g)?{coordinate:g+u,value:d,index:f,offset:u}:null}).filter(So):n.domain().map((d,f)=>{var g=n.map(d);return Ot(g)?{coordinate:g+u,value:i?i[d]:d,index:f,offset:u}:null}).filter(So)}},au=ne([wt,Mg,nA,Zw,Qw,g3,In],Vue),lu=ne(ir,nA,(e,t)=>{if(!(e==null||t==null))return rE(rE({},e),{},{scale:t})}),Vtt=ne([ir,gu,l3,Iue],eA),ztt=ne([Vtt],qR);ne((e,t,n)=>YH(e,n),ztt,(e,t)=>{if(!(e==null||t==null))return rE(rE({},e),{},{scale:t})});var Gtt=ne([wt,LR,NR],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),jtt=(e,t,n)=>{var r;return(r=e.renderedTicks[t])===null||r===void 0?void 0:r[n]};ne([jtt],e=>{if(!(!e||e.length===0))return t=>{var n,r=1/0,i=e[0];for(var o of e){var s=Math.abs(o.coordinate-t);s<r&&(r=s,i=o)}return(n=i)===null||n===void 0?void 0:n.value}});var zue=e=>e.options.defaultTooltipEventType,Gue=e=>e.options.validateTooltipEventTypes;function jue(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function Jw(e,t){var n=zue(e),r=Gue(e);return jue(t,n,r)}function Utt(e){return $e(t=>Jw(t,e))}var Uue=(e,t)=>
1049{var n,r=Number(t);if(!(Ja(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Wtt=e=>e.tooltip.settings,Td={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},$tt={itemInteraction:{click:Td,hover:Td},axisInteraction:{click:Td,hover:Td},keyboardInteraction:Td,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Wue=co({name:"tooltip",initialState:$tt,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(Kt(t.payload))},prepare:Nn()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,o=la(e).tooltipItemPayloads.indexOf(Kt(r));o>-1&&(e.tooltipItemPayloads[o]=Kt(i))},prepare:Nn()},removeTooltipEntrySettings:{reducer(e,t){var n=la(e).tooltipItemPayloads.indexOf(Kt(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:Nn()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),xa=Wue.actions,qtt=xa.addTooltipEntrySettings,Ktt=xa.replaceTooltipEntrySettings,Ytt=xa.removeTooltipEntrySettings,Xtt=xa.setTooltipSettingsState,$ue=xa.setActiveMouseOverItemIndex,Ztt=xa.mouseLeaveItem,que=xa.mouseLeaveChart,Qtt=xa.setActiveClickItemIndex,Kue=xa.setMouseOverAxisIndex,Jtt=xa.setMouseClickAxisIndex,$y=xa.setSyncInteraction,sE=xa.setKeyboardInteraction,ent=Wue.reducer;function P9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function MS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P9(Object(n),!0).forEach(function(r){tnt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tnt(e,t,n){return(t=nnt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nnt(e){var t=rnt(e,"string");return typeof t=="symbol"?t:t+""}function rnt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function int(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function ont(e){return e.index!=null}var Yue=(e,t,n,r)=>{if(t==null)return Td;var i=int(e,t,n);if(i==null)return Td;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;
1049if(ont(i)){if(o)return MS(MS({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return MS(MS({},Td),{},{coordinate:i.coordinate})};function snt(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function ant(e,t){var n=snt(e),r=t[0],i=t[1];if(n===void 0)return!1;var o=Math.min(r,i),s=Math.max(r,i);return n>=o&&n<=s}function lnt(e,t,n){if(n==null||t==null)return!0;var r=Gt(e,t);return r==null||!Yl(n)?!0:ant(r,n)}var db=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var o=Number(i);if(!Ot(o))return i;var s=0,a=1/0;t.length>0&&(a=t.length-1);var l=Math.max(s,Math.min(o,a)),u=t[l];return u==null||lnt(u,n,r)?String(l):null},Xue=(e,t,n,r,i,o,s)=>{if(o!=null){var a=s[0],l=a?.getPosition(o);if(l!=null)return l;var u=i?.[Number(o)];if(u)return n==="horizontal"?{x:u.coordinate,y:(r.top+t)/2}:{x:(r.left+e)/2,y:u.coordinate}}},Zue=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(n==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var o=e.tooltipItemPayloads[0];return o!=null?[o]:[]}return e.tooltipItemPayloads.filter(s=>{var a;return((a=s.settings)===null||a===void 0?void 0:a.graphicalItemId)===i})},Que=e=>e.options.tooltipPayloadSearcher,lv=e=>e.tooltip;function O9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function D9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O9(Object(n),!0).forEach(function(r){unt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function unt(e,t,n){return(t=cnt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cnt(e){var t=dnt(e,"string");return typeof t=="symbol"?t:t+""}function dnt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hnt(e){if(typeof e=="string"||typeof e=="number")return e}function fnt(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function gnt(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function M9(e){if(typeof e=="string")return e}function pnt(e){if(!(e==null||typeof e!="object")){var t="name"in e?hnt(e.name):void 0,n="unit"in e?fnt(e.unit):void 0,r="dataKey"in e?gnt(e.dataKey):void 0,i="payload"in e?e.payload:void 0,o="color"in e?M9(e.color):void 0,s="fill"in e?M9(e.fill):void 0;return{name:t,unit:n,dataKey:r,payload:i,color:o,fill:s}}}function mnt(e,t){return e??t}var Jue=(e,t,n,r,i,o,s)=>{if(!(t==null||o==null)){var a=n.chartData,l=n.computedData,u=n.dataStartIndex,d=n.dataEndIndex,f=[];return e.reduce((g,m)=>{var y,b=m.dataDefinedOnItem,w=m.settings,C=mnt(b,a),E=Array.isArray(C)?kae(C,u,d):C,A=(y=w?.dataKey)!==null&&y!==void 0?y:r,T=w?.nameKey,P;if(r&&Array.isArray(E)&&!Array.isArray(E[0])&&s==="axis"?(P=ase(E,r,i),P==null&&(P=o(E,t,l,T))):P=o(E,t,l,T),Array.isArray(P))P.forEach(D=>{var F,L,N=pnt(D),M=N?.name,k=N?.dataKey,B=N?.payload,j=D9(D9({},w),{},{name:M,unit:N?.unit,color:(F=N?.color)!==null&&F!==void 0?F:w?.color,fill:(L=N?.fill)!==null&&L!==void 0?L:w?.fill});g.push(T$({tooltipEntrySettings:j,dataKey:k,payload:B,value:Gt(B,k),name:M==null?void 0:String(M)}))});else{var O;g.push(T$({tooltipEntrySettings:w,dataKey:A,payload:P,value:Gt(P,A),name:(O=Gt(P,T))!==null&&O!==void 0?O:w?.name}))}return g},f)}},p3=ne([zr,pue,wH],cue),vnt=ne([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),ynt=ne([pi,iv],XH),Ig=ne([vnt,zr,ynt],ZH,{memoizeOptions:{resultEqualityCheck:$R}}),bnt=ne([Ig],e=>e.filter(jw)),ece=ne([Ig],QH,{memoizeOptions:{resultEqualityCheck:$R}}),wnt=ne([Ig],e=>e.some(t=>!t.data)),ag=ne([ece,Ca],JH),Cnt=ne([bnt,Ca,zr],RH),m3=ne([ag,zr,Ig,Ca,wnt,ece],wue),tce=ne([zr],n3),Snt=ne([zr],e=>e.allowDataOverflow),nce=ne([tce,Snt],dle),xnt=ne([Ig],e=>e.filter(jw)),Ent=ne([Cnt,xnt,rv,bH],t3),Rnt=ne([Ent,Ca,pi,nce],Sue),Ant=ne([Ig],vue),Tnt=ne([ag,zr,Ant,tA,pi,LZe],o3,{memoizeOptions:{resultEqualityCheck:Uw}}),Pnt=ne([xue,pi,iv],av),Ont=ne([Pnt,pi],Aue),Dnt=ne([Eue,pi,iv],av),Mnt=ne([Dnt,pi],Tue),Int=ne([Rue,pi,iv],av),_nt=ne([Int,pi],Pue),Fnt=ne([Ont,_nt,Mnt],oE),knt=ne([zr,tce,nce,Rnt,Tnt,Fnt,wt,pi],s3),Nm=ne([zr,wt,ag,m3,rv,pi,knt],a3),Lnt=ne([Nm,zr,p3],u3),Nnt=ne([zr,Nm,Lnt,pi],d3),rce=e=>{var t=pi(e),n=iv(e),r=!1;return Zw(e,t,n,r)},ice=ne([zr,rce],GR),Bnt=ne([zr,p3,Nnt,ice],eA),oce=ne([Bnt],qR),Hnt=ne([wt,m3,zr,pi],Nue),Vnt=ne([wt,m3,zr,pi],f3),znt=(e,t,n,r,i,o,s,a)=>
1049{if(t){var l=t.type,u=wa(e,a);if(r){var d=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,f=l==="category"&&r.bandwidth?r.bandwidth()/d:0;return f=a==="angleAxis"&&i!=null&&i?.length>=2?Lr(i[0]-i[1])*2*f:f,u&&s?s.map((g,m)=>{var y=r.map(g);return Ot(y)?{coordinate:y+f,value:g,index:m,offset:f}:null}).filter(So):r.domain().map((g,m)=>{var y=r.map(g);return Ot(y)?{coordinate:y+f,value:o?o[g]:g,index:m,offset:f}:null}).filter(So)}}},_c=ne([wt,zr,p3,oce,rce,Hnt,Vnt,pi],znt),v3=ne([zue,Gue,Wtt],(e,t,n)=>jue(n.shared,e,t)),sce=e=>e.tooltip.settings.trigger,y3=e=>e.tooltip.settings.defaultIndex,eC=ne([lv,v3,sce,y3],Yue),wc=ne([eC,ag,Lm,Nm],db),ace=ne([_c,wc],Uue),b3=ne([eC],e=>{if(e)return e.dataKey}),lce=ne([eC],e=>{if(e)return e.graphicalItemId}),uce=ne([lv,v3,sce,y3],Zue),Gnt=ne([hu,fu,wt,Xr,_c,y3,uce],Xue),jnt=ne([eC,Gnt],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Unt=ne([eC],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),Wnt=ne([uce,wc,Ca,Lm,ace,Que,v3],Jue),$nt=ne([Wnt],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function I9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I9(Object(n),!0).forEach(function(r){qnt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qnt(e,t,n){return(t=Knt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Knt(e){var t=Ynt(e,"string");return typeof t=="symbol"?t:t+""}function Ynt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xnt=()=>$e(zr),Znt=()=>{var e=Xnt(),t=$e(_c),n=$e(oce);return ga(!e||!n?void 0:_9(_9({},e),{},{scale:n}),t)};function F9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F9(Object(n),!0).forEach(function(r){Qnt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qnt(e,t,n){return(t=Jnt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jnt(e){var t=ert(e,"string");return typeof t=="symbol"?t:t+""}function ert(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var trt=(e,t,n,r)=>{var i=t.find(o=>o&&o.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.relativeY};if(e==="vertical")return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},nrt=(e,t,n,r)=>{var i=t.find(u=>u&&u.index===n);if(i){if(e==="centric"){var o=i.coordinate,s=r.radius;return Tp(Tp(Tp({},r),Nr(r.cx,r.cy,s,o)),{},{angle:o,radius:s})}var a=i.coordinate,l=r.angle;return Tp(Tp(Tp({},r),Nr(r.cx,r.cy,a,l)),{},{angle:l,radius:a})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function rrt(e,t){var n=e.relativeX,r=e.relativeY;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var cce=(e,t,n,r,i)=>{var o,s=(o=t?.length)!==null&&o!==void 0?o:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var a=i[1]-i[0],l=(z,H,G)=>[e,e+a,e-a].some($=>(G?$>=z:$>z)&&$<=H),u=0;u<s;u++){var d,f,g,m,y,b=u>0?(d=n[u-1])===null||d===void 0?void 0:d.coordinate:(f=n[s-1])===null||f===void 0?void 0:f.coordinate,w=(g=n[u])===null||g===void 0?void 0:g.coordinate,C=u>=s-1?(m=n[0])===null||m===void 0?void 0:m.coordinate:(y=n[u+1])===null||y===void 0?void 0:y.coordinate,E=void 0;if(!(b==null||w==null||C==null))if(Lr(w-b)!==Lr(C-w)){var A=[];
1049if(Lr(C-w)===Lr(i[1]-i[0])){E=C;var T=w+i[1]-i[0];A[0]=Math.min(T,(T+b)/2),A[1]=Math.max(T,(T+b)/2)}else{E=b;var P=C+i[1]-i[0];A[0]=Math.min(w,(P+w)/2),A[1]=Math.max(w,(P+w)/2)}var O=[Math.min(w,(E+w)/2),Math.max(w,(E+w)/2)];if(l(O[0],O[1],!1)||l(A[0],A[1],!0)){var D;return(D=n[u])===null||D===void 0?void 0:D.index}}else{var F=Math.min(b,C),L=Math.max(b,C);if(l((F+w)/2,(L+w)/2,!1)){var N;return(N=n[u])===null||N===void 0?void 0:N.index}}}else if(t)for(var M=0;M<s;M++){var k=t[M];if(k!=null){var B=t[M+1],j=t[M-1];if(M===0&&B!=null&&e<=(k.coordinate+B.coordinate)/2||M===s-1&&j!=null&&e>(k.coordinate+j.coordinate)/2||M>0&&M<s-1&&j!=null&&B!=null&&e>(k.coordinate+j.coordinate)/2&&e<=(k.coordinate+B.coordinate)/2)return k.index}}return-1},dce=()=>$e(wH),w3=(e,t)=>t,hce=(e,t,n)=>n,C3=(e,t,n,r)=>r,irt=ne(_c,e=>ER(e,t=>t.coordinate)),S3=ne([lv,w3,hce,C3],Yue),x3=ne([S3,ag,Lm,Nm],db),ort=(e,t,n)=>{if(t!=null){var r=lv(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},fce=ne([lv,w3,hce,C3],Zue),aE=ne([hu,fu,wt,Xr,_c,C3,fce],Xue),srt=ne([S3,aE],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),gce=ne([_c,x3],Uue),art=ne([fce,x3,Ca,Lm,gce,Que,w3],Jue),lrt=ne([S3,x3],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),urt=(e,t,n,r,i,o,s)=>{if(!(!e||!n||!r||!i)&&rrt(e,s)){var a=mKe(e,t),l=cce(a,o,i,n,r),u=trt(t,i,l,e);return{activeIndex:String(l),activeCoordinate:u}}},crt=(e,t,n,r,i,o,s)=>{if(!(!e||!r||!i||!o||!n)){var a=PZe(e,n);if(a){var l=vKe(a,t),u=cce(l,s,o,r,i),d=nrt(t,o,u,a);return{activeIndex:String(u),activeCoordinate:d}}}},drt=(e,t,n,r,i,o,s,a)=>{if(!(!e||!t||!r||!i||!o))return t==="horizontal"||t==="vertical"?urt(e,t,r,i,o,s,a):crt(e,t,n,r,i,o,s)},hrt=ne(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),frt=ne(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(Wn)),n=Array.from(new Set(t));return n.sort((r,i)=>r-i)},{memoizeOptions:{resultEqualityCheck:oQe}});function k9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k9(Object(n),!0).forEach(function(r){grt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function grt(e,t,n){return(t=prt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function prt(e){var t=mrt(e,"string");return typeof t=="symbol"?t:t+""}function mrt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vrt={},yrt={zIndexMap:Object.values(Wn).reduce((e,t)=>L9(L9({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),vrt)},brt=new Set(Object.values(Wn));function wrt(e){return brt.has(e)}var pce=co({name:"zIndex",initialState:yrt,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Nn()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!wrt(n)&&delete e.zIndexMap[n])},prepare:Nn()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,r=n.zIndex,i=n.element,o=n.isPanorama;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=Kt(i):e.zIndexMap[r].element=Kt(i):e.zIndexMap[r]={consumers:0,element:o?void 0:Kt(i),panoramaElement:o?Kt(i):void 0}},prepare:Nn()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:Nn()}}}),oA=pce.actions,Crt=oA.registerZIndexPortal,fM=oA.unregisterZIndexPortal,Srt=oA.registerZIndexPortalElement,xrt=oA.unregisterZIndexPortalElement,Ert=pce.reducer;function hi(e){var t=e.zIndex,n=e.children,r=QKe(),i=r&&t!==void 0&&t!==0,o=gi(),s=R.useRef(void 0),a=R.useRef(new Set),l=mn(),u=$e(f=>hrt(f,t,o));if(R.useLayoutEffect(()=>{if(!i){var f=a.current;f.forEach(m=>{l(fM({zIndex:m}))}),f.clear(),s.current=void 0;return}if(a.current.has(t)||(l(Crt({zIndex:t})),a.current.add(t)),u){s.current=u;var g=a.current;g.forEach(m=>{m!==t&&(l(fM({zIndex:m})),g.delete(m))})}},[l,t,i,u]),R.useLayoutEffect(()=>{var f=a.current;return()=>{f.forEach(g=>{l(fM({zIndex:g}))}),f.clear()}},[l]),!i)return n;var d=u??s.current;return d?zm.createPortal(n,d):null}function Ik(){return Ik=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ik.apply(null,arguments)}function N9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function IS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1049t%2?N9(Object(n),!0).forEach(function(r){Rrt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rrt(e,t,n){return(t=Art(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Art(e){var t=Trt(e,"string");return typeof t=="symbol"?t:t+""}function Trt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Prt(e){var t=e.cursor,n=e.cursorComp,r=e.cursorProps;return R.isValidElement(t)?R.cloneElement(t,r):R.createElement(n,r)}function Ort(e){var t,n=e.coordinate,r=e.payload,i=e.index,o=e.offset,s=e.tooltipAxisBandSize,a=e.layout,l=e.cursor,u=e.tooltipEventType,d=e.chartName,f=n,g=r,m=i;if(!l||!f||d!=="ScatterChart"&&u!=="axis")return null;var y,b,w;if(d==="ScatterChart")y=f,b=BXe,w=Wn.cursorLine;else if(d==="BarChart")y=HXe(a,f,o,s),b=ole,w=Wn.cursorRectangle;else if(a==="radial"&&Pse(f)){var C=ale(f),E=C.cx,A=C.cy,T=C.radius,P=C.startAngle,O=C.endAngle;y={cx:E,cy:A,startAngle:P,endAngle:O,innerRadius:T,outerRadius:T},b=fH,w=Wn.cursorLine}else y={points:IZe(a,f,o)},b=dm,w=Wn.cursorLine;var D=typeof l=="object"&&"className"in l?l.className:void 0,F=IS(IS(IS(IS({stroke:"#ccc",pointerEvents:"none"},o),y),Qd(l)),{},{payload:g,payloadIndex:m,className:Et("recharts-tooltip-cursor",D)});return R.createElement(hi,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:w},R.createElement(Prt,{cursor:l,cursorComp:b,cursorProps:F}))}function Drt(e){var t=Znt(),n=$ae(),r=uh(),i=dce();return t==null||n==null||r==null||i==null?null:R.createElement(Ort,Ik({}
1049,e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var mce=R.createContext(null),Mrt=()=>R.useContext(mce),nw=new Nie,_k="recharts.syncEvent.tooltip",B9="recharts.syncEvent.brush",tC=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Ja(n))return e[n]}},Irt={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},vce=co({name:"options",initialState:Irt,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),_rt=vce.reducer,Frt=vce.actions.createEventEmitter;function krt(e){return e.tooltip.syncInteraction}var Lrt={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},yce=co({name:"chartData",initialState:Lrt,reducers:{setChartData(e,t){if(e.chartData=Kt(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var n=t.payload,r=n.startIndex,i=n.endIndex;r!=null&&(e.dataStartIndex=r),i!=null&&(e.dataEndIndex=i)}}}),E3=yce.actions,H9=E3.setChartData,Nrt=E3.setDataStartEndIndexes;E3.setComputedData;var Brt=yce.reducer,Hrt=["x","y"];function V9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V9(Object(n),!0).forEach(function(r){Vrt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vrt(e,t,n){return(t=zrt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zrt(e){var t=Grt(e,"string");return typeof t=="symbol"?t:t+""}function Grt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jrt(e,t){if(e==null)return{};var n,r,i=Urt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Urt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Wrt(){var e=$e(CH),t=$e(SH),n=mn(),r=$e(Ele),i=$e(_c),o=uh(),s=VR(),a=$e(l=>l.rootProps.className);R.useEffect(()=>{if(e==null)return Pc;var l=(u,d,f)=>{if(t!==f&&e===u){if(d.payload.active===!1){n($y({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r==="index"){var g;if(s&&d!==null&&d!==void 0&&(g=d.payload)!==null&&g!==void 0&&g.coordinate&&d.payload.sourceViewBox){var m=d.payload.coordinate,y=m.x,b=m.y,w=jrt(m,Hrt),C=d.payload.sourceViewBox,E=C.x,A=C.y,T=C.width,P=C.height,O=Pp(Pp({},w),{},{x:s.x+(T?(y-E)/T:0)*s.width,y:s.y+(P?(b-A)/P:0)*s.height});n(Pp(Pp({},d),{},{payload:Pp(Pp({},d.payload),{},{coordinate:O})}))}else n(d);return}if(i!=null){var D;if(typeof r=="function"){var F={activeTooltipIndex:d.payload.index==null?void 0:Number(d.payload.index),isTooltipActive:d.payload.active,activeIndex:d.payload.index==null?void 0:Number(d.payload.index),activeLabel:d.payload.label,activeDataKey:d.payload.dataKey,activeCoordinate:d.payload.coordinate},L=r(i,F);D=i[L]}else r==="value"&&(D=i.find(G=>String(G.value)===d.payload.label));var N=d.payload.coordinate;if(N==null||s==null){n($y({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(D==null){n($y({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:d.payload.sourceViewBox,graphicalItemId:void 0}));return}var M=N.x,k=N.y,B=Math.min(M,s.x+s.width),j=Math.min(k,s.y+s.height),z={x:o==="horizontal"?D.coordinate:B,y:o==="horizontal"?j:D.coordinate},H=$y({active:d.payload.active,coordinate:z,dataKey:d.payload.dataKey,index:String(D.index),label:d.payload.label,sourceViewBox:d.payload.sourceViewBox,graphicalItemId:d.payload.graphicalItemId});n(H)}}};return nw.on(_k,l),()=>{nw.off(_k,l)}},[a,n,t,e,r,i,o,s])}function $rt(){var e=$e(CH),t=$e(SH),n=mn();R.useEffect(()=>{if(e==null)return Pc;var r=(i,o,s)=>{t!==s&&e===i&&n(Nrt(o))};return nw.on(B9,r),()=>{nw.off(B9,r)}},[n,t,e])}function qrt(){var e=mn();R.useEffect(()=>{e(Frt())},[e]),Wrt(),$rt()}function Krt(e,t,n,r,i,o){var s=$e(y=>
1049ort(y,e,t)),a=$e(lce),l=$e(SH),u=$e(CH),d=$e(Ele),f=$e(krt),g=f?.sourceViewBox!=null,m=VR();R.useEffect(()=>{if(!g&&u!=null&&l!=null){var y=$y({active:o,coordinate:n,dataKey:s,index:i,label:typeof r=="number"?String(r):r,sourceViewBox:m,graphicalItemId:a});nw.emit(_k,u,y,l)}},[g,n,s,a,i,r,l,u,d,o,m])}function z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function G9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z9(Object(n),!0).forEach(function(r){Yrt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yrt(e,t,n){return(t=Xrt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xrt(e){var t=Zrt(e,"string");return typeof t=="symbol"?t:t+""}function Zrt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qrt(e,t){return nit(e)||tit(e,t)||eit(e,t)||Jrt()}function Jrt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1050In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eit(e,t){if(e){if(typeof e=="string")return j9(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j9(e,t):void 0}}function j9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tit(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function nit(e){if(Array.isArray(e))return e}function rit(e){return e.dataKey}function iit(e,t){return R.isValidElement(e)?R.cloneElement(e,t):typeof e=="function"?R.createElement(e,t):R.createElement(rXe,t)}var U9=[],oit={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Wwt(e){var t,n,r=gr(e,oit),i=r.active,o=r.allowEscapeViewBox,s=r.animationDuration,a=r.animationEasing,l=r.content,u=r.filterNull,d=r.isAnimationActive,f=r.offset,g=r.payloadUniqBy,m=r.position,y=r.reverseDirection,b=r.useTranslate3d,w=r.wrapperStyle,C=r.cursor,E=r.shared,A=r.trigger,T=r.defaultIndex,P=r.portal,O=r.axisId,D=mn(),F=typeof T=="number"?String(T):T;R.useEffect(()=>{D(Xtt({shared:E,trigger:A,axisId:O,active:i,defaultIndex:F}))},[D,E,A,O,i,F]);var L=VR(),N=Jae(),M=Utt(E),k=(t=$e(de=>lrt(de,M,A,F)))!==null&&t!==void 0?t:{},B=k.activeIndex,j=k.isActive,z=$e(de=>art(de,M,A,F)),H=$e(de=>gce(de,M,A,F)),G=$e(de=>srt(de,M,A,F)),$=z,Y=Mrt(),K=(n=i??j)!==null&&n!==void 0?n:!1,se=oae([$,K]),re=Qrt(se,2),ue=re[0],U=re[1],X=M==="axis"?H:void 0;Krt(M,A,G,X,B,K);var be=P??Y;if(be==null||L==null||M==null)return null;var me=$??U9;K||(me=U9),u&&me.length&&(me=tae(me.filter(de=>de.value!=null&&(de.hide!==!0||r.includeHidden)),g,rit));var Oe=me.length>0,ge=G9(G9({},r),{},{payload:me,label:X,active:K,activeIndex:B,coordinate:G,accessibilityLayer:N}),ve=R.createElement(EXe,{allowEscapeViewBox:o,animationDuration:s,animationEasing:a,isAnimationActive:d,active:K,coordinate:G,hasPayload:Oe,offset:f,position:m,reverseDirection:y,useTranslate3d:b,viewBox:L,wrapperStyle:w,lastBoundingBox:ue,innerRef:U,hasPortalFromProps:!!P},iit(l,ge));return R.createElement(R.Fragment,null,zm.createPortal(ve,be),K&&R.createElement(Drt,{cursor:C,tooltipEventType:M,coordinate:G,payload:me,index:B}))}var nC=e=>null;nC.displayName="Cell";function sit(e,t,n){return(t=ait(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ait(e){var t=lit(e,"string");return typeof t=="symbol"?t:t+""}function lit(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}
1050class uit{constructor(t){sit(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function W9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cit(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W9(Object(n),!0).forEach(function(r){dit(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dit(e,t,n){return(t=hit(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hit(e){var t=fit(e,"string");return typeof t=="symbol"?t:t+""}function fit(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var git={cacheSize:2e3,enableCache:!0},bce=cit({},git),$9=new uit(bce.cacheSize),pit={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},q9="recharts_measurement_span";function mit(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",s=t.letterSpacing||"",a=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(s,"|").concat(a)}var K9=(e,t)=>{try{var n=document.getElementById(q9);n||(n=document.createElement("span"),n.setAttribute("id",q9),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,pit,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},hb=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Bw.isSsr)return{width:0,height:0};if(!bce.enableCache)return K9(t,n);var r=mit(t,n),i=$9.get(r);if(i)return i;var o=K9(t,n);return $9.set(r,o),o},wce;function lE(e,t){return wit(e)||bit(e,t)||yit(e,t)||vit()}function vit(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1051In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yit(e,t){if(e){if(typeof e=="string")return Y9(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y9(e,t):void 0}}function Y9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bit(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function wit(e){if(Array.isArray(e))return e}function Cit(e,t,n){return(t=Sit(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sit(e){var t=xit(e,"string");return typeof t=="symbol"?t:t+""}function xit(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X9=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Z9=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Eit=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,Rit=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Ait={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Tit=["cm","mm","pt","pc","in","Q","px"];function Pit(e){return Tit.includes(e)}var $p="NaN";function Oit(e,t){return e*Ait[t]}class Fi{static parse(t){var n,r=(n=Rit.exec(t))!==null&&n!==void 0?n:[],i=lE(r,3),o=i[1],s=i[2];return o==null?Fi.NaN:new Fi(parseFloat(o),s??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Ja(t)&&(this.unit=""),n!==""&&!Eit.test(n)&&(this.num=NaN,this.unit=""),Pit(n)&&(this.num=Oit(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Fi(NaN,""):new Fi(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Fi(NaN,""):new Fi(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Fi(NaN,""):new Fi(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Fi(NaN,""):new Fi(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ja(this.num)}}wce=Fi;Cit(Fi,"NaN",new wce(NaN,""));function Cce(e){if(e==null||e.includes($p))return $p;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=X9.exec(t))!==null&&n!==void 0?n:[],i=lE(r,4),o=i[1],s=i[2],a=i[3],l=Fi.parse(o??""),u=Fi.parse(a??""),d=s==="*"?l.multiply(u):l.divi
1051de(u);if(d.isNaN())return $p;t=t.replace(X9,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,g=(f=Z9.exec(t))!==null&&f!==void 0?f:[],m=lE(g,4),y=m[1],b=m[2],w=m[3],C=Fi.parse(y??""),E=Fi.parse(w??""),A=b==="+"?C.add(E):C.subtract(E);if(A.isNaN())return $p;t=t.replace(Z9,A.toString())}return t}var Q9=/\(([^()]*)\)/;function Dit(e){for(var t=e,n;(n=Q9.exec(t))!=null;){var r=n,i=lE(r,2),o=i[1];t=t.replace(Q9,Cce(o))}return t}function Mit(e){var t=e.replace(/\s+/g,"");return t=Dit(t),t=Cce(t),t}function Iit(e){try{return Mit(e)}catch{return $p}}function gM(e){var t=Iit(e.slice(5,-1));return t===$p?"":t}var _it=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],Fit=["dx","dy","angle","className","breakAll"];function Fk(){return Fk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fk.apply(null,arguments)}function J9(e,t){if(e==null)return{};var n,r,i=kit(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kit(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function eq(e,t){return Hit(e)||Bit(e,t)||Nit(e,t)||Lit()}function Lit(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1052In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nit(e,t){if(e){if(typeof e=="string")return tq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tq(e,t):void 0}}function tq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bit(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function Hit(e){if(Array.isArray(e))return e}var Sce=/[ \f\n\r\t\v\u2028\u2029]+/,xce=e=>{var t=e.children,n=e.breakAll,r=e.style;try{var i=[];Mn(t)||(n?i=t.toString().split(""):i=t.toString().split(Sce));var o=i.map(a=>({word:a,width:hb(a,r).width})),s=n?0:hb(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}};function Ece(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function Vit(e){return Mn(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var Rce=(e,t,n,r)=>e.reduce((i,o)=>{var s=o.word,a=o.width,l=i[i.length-1];if(l&&a!=null&&(t==null||r||l.width+a+n<Number(t)))l.words.push(s),l.width+=a+n;else{var u={words:[s],width:a};i.push(u)}return i},[]),Ace=e=>e.reduce((t,n)=>t.width>n.width?t:n),zit="â¦",nq=(e,t,n,r,i,o,s,a)=>{var l=e.slice(0,t),u=xce({breakAll:n,style:r,children:l+zit});if(!u)return[!1,[]];var d=Rce(u.wordsWithComputedWidth,o,s,a),f=d.length>i||Ace(d).width>Number(o);return[f,d]},Git=(e,t,n,r,i)=>{var o=e.maxLines,s=e.children,a=e.style,l=e.breakAll,u=ze(o),d=String(s),f=Rce(t,r,n,i);if(!u||i)return f;var g=f.length>
1052o||Ace(f).width>Number(r);if(!g)return f;for(var m=0,y=d.length-1,b=0,w;m<=y&&b<=d.length-1;){var C=Math.floor((m+y)/2),E=C-1,A=nq(d,E,l,a,o,r,n,i),T=eq(A,2),P=T[0],O=T[1],D=nq(d,C,l,a,o,r,n,i),F=eq(D,1),L=F[0];if(!P&&!L&&(m=C+1),P&&L&&(y=C-1),!P&&L){w=O;break}b++}return w||f},rq=e=>{var t=Mn(e)?[]:e.toString().split(Sce);return[{words:t,width:void 0}]},jit=e=>{var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,o=e.breakAll,s=e.maxLines;if((t||n)&&!Bw.isSsr){var a,l,u=xce({breakAll:o,children:r,style:i});if(u){var d=u.wordsWithComputedWidth,f=u.spaceWidth;a=d,l=f}else return rq(r);return Git({breakAll:o,children:r,maxLines:s,style:i},a,l,t,!!n)}return rq(r)},Tce="#808080",Uit={angle:0,breakAll:!1,capHeight:"0.71em",fill:Tce,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},sA=R.forwardRef((e,t)=>{var n=gr(e,Uit),r=n.x,i=n.y,o=n.lineHeight,s=n.capHeight,a=n.fill,l=n.scaleToFit,u=n.textAnchor,d=n.verticalAnchor,f=J9(n,_it),g=R.useMemo(()=>jit({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),m=f.dx,y=f.dy,b=f.angle,w=f.className,C=f.breakAll,E=J9(f,Fit);if(!iu(r)||!iu(i)||g.length===0)return null;var A=Number(r)+(ze(m)?m:0),T=Number(i)+(ze(y)?y:0);if(!Ot(A)||!Ot(T))return null;var P;switch(d){case"start":P=gM("calc(".concat(s,")"));break;case"middle":P=gM("calc(".concat((g.length-1)/2," * -").concat(o," + (").concat(s," / 2))"));break;default:P=gM("calc(".concat(g.length-1," * -").concat(o,")"));break}var O=[],D=g[0];if(l&&D!=null){var F=D.width,L=f.width;O.push("scale(".concat(ze(L)&&ze(F)?L/F:1,")"))}return b&&O.push("rotate(".concat(b,", ").concat(A,", ").concat(T,")")),O.length&&(E.transform=O.join(" ")),R.createElement("text",Fk({},ts(E),{ref:t,x:A,y:T,className:Et("recharts-text",w),textAnchor:u,fill:a.includes("url")?Tce:a}),g.map((N,M)=>{var k=N.words.join(C?"":" ");return R.createElement("tspan",{x:A,dy:M===0?P:o,key:"".concat(k,"-").concat(M)},k)}))});sA.displayName="Text";var Wit=["labelRef"],$it=["content"];function iq(e,t){if(e==null)return{};var n,r,i=qit(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function qit(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function oq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oq(Object(n),!0).forEach(function(r){Kit(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kit(e,t,n){return(t=Yit(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yit(e){var t=Xit(e,"string");return typeof t=="symbol"?t:t+""}function Xit(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qu.apply(null,arguments)}var Pce=R.createContext(null),Zit=e=>{var t=e.x,n=e.y,r=e.upperWidth,i=e.lowerWidth,o=e.width,s=e.height,a=e.children,l=R.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:o,height:s}),[t,n,r,i,o,s]);return R.createElement(Pce.Provider,{value:l},a)},Oce=()=>{var e=R.useContext(Pce),t=VR();return e||(t?GB(t):void 0)},Dce=R.createContext(null),Qit=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,s=e.endAngle,a=e.clockWise,l=e.children,u=R.useMemo(()=>({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:s,clockWise:a}),[t,n,r,i,o,s,a]);return R.createElement(Dce.Provider,{value:u},l)},Jit=()=>{var e=R.useContext(Dce),t=$e(EH);return e||t},eot=e=>{var t=e.value,n=e.formatter,r=Mn(e.children)?t:e.children;return typeof n=="function"?n(r):r},aA=e=>e!=null&&typeof e=="function",tot=(e,t)=>
1052{var n=Lr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},not=(e,t,n,r,i)=>{var o=e.offset,s=e.className,a=i.cx,l=i.cy,u=i.innerRadius,d=i.outerRadius,f=i.startAngle,g=i.endAngle,m=i.clockWise,y=(u+d)/2,b=tot(f,g),w=b>=0?1:-1,C,E;switch(t){case"insideStart":C=f+w*o,E=m;break;case"insideEnd":C=g-w*o,E=!m;break;case"end":C=g+w*o,E=m;break;default:throw new Error("Unsupported position ".concat(t))}E=b<=0?E:!E;var A=Nr(a,l,y,C),T=Nr(a,l,y,C+(E?1:-1)*359),P="M".concat(A.x,",").concat(A.y,` 1053 A`).concat(y,",").concat(y,",0,1,").concat(E?0:1,`, 1054 `).concat(T.x,",").concat(T.y),O=Mn(e.id)?$b("recharts-radial-line-"):e.id;return R.createElement("text",Qu({},r,{dominantBaseline:"central",className:Et("recharts-radial-bar-label",s)}),R.createElement("defs",null,R.createElement("path",{id:O,d:P})),R.createElement("textPath",{xlinkHref:"#".concat(O)},n))},rot=(e,t,n)=>{var r=e.cx,i=e.cy,o=e.innerRadius,s=e.outerRadius,a=e.startAngle,l=e.endAngle,u=(a+l)/2;if(n==="outside"){var d=Nr(r,i,s+t,u),f=d.x,g=d.y;return{x:f,y:g,textAnchor:f>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var m=(o+s)/2,y=Nr(r,i,m,u),b=y.x,w=y.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Vp=e=>e!=null&&"cx"in e&&ze(e.cx),iot={angle:0,offset:5,zIndex:Wn.label,position:"middle",textBreakAll:!1};function oot(e){if(!Vp(e))return e;var t=e.cx,n=e.cy,r=e.outerRadius,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function Sd(e){var t,n,r=gr(e,iot),i=r.viewBox,o=r.parentViewBox,s=r.position,a=r.value,l=r.children,u=r.content,d=r.className,f=d===void 0?"":d,g=r.textBreakAll,m=r.labelRef,y=Jit(),b=Oce(),w=s==="center"?b:y??b,C,E,A;i==null?C=w:Vp(i)?C=i:C=GB(i);var T=oot(C);if(!C||Mn(a)&&Mn(l)&&!R.isValidElement(u)&&typeof u!="function")return null;var P=Vp(C)&&(s==="insideStart"||s==="insideEnd"||s==="end");if(Vp(C))P||(A=rot(C,r.offset,r.position));else if(T){var O=lse({viewBox:T,position:s,offset:r.offset,parentViewBox:Vp(o)?void 0:o,clamp:!0});A=of(of({x:O.x,y:O.y,textAnchor:O.horizontalAnchor,verticalAnchor:O.verticalAnchor},O.width!==void 0?{width:O.width}:{}),O.height!==void 0?{height:O.height}:{})}var D=of(of(of(of({},((t=A)===null||t===void 0?void 0:t.x)!==void 0?{x:A.x}:{}),((n=A)===null||n===void 0?void 0:n.y)!==void 0?{y:A.y}:{}),r),{},{viewBox:C});if(R.isValidElement(u)){D.labelRef;var F=iq(D,Wit);return R.cloneElement(u,F)}if(typeof u=="function"){D.content;var L=iq(D,$it);if(E=R.createElement(u,L),R.isValidElement(E))return E}else E=eot(r);var N=ts(r);return P&&Vp(C)?not(r,s,E,N,C):A==null?null:R.createElement(hi,{zIndex:r.zIndex},R.createElement(sA,Qu({ref:m,className:Et("recharts-label",f)},N,A,{textAnchor:Ece(N.textAnchor)?N.textAnchor:A.textAnchor,breakAll:g}),E))}Sd.displayName="Label";var sot=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?R.createElement(Sd,Qu({key:"label-implicit"},r)):iu(e)?R.createElement(Sd,Qu({key:"label-implicit",value:e},r)):R.isValidElement(e)?e.type===Sd?R.cloneElement(e,of({key:"label-implicit"},r)):R.createElement(Sd,Qu({key:"label-implicit",content:e},r)):aA(e)?R.createElement(Sd,Qu({key:"label-implicit",content:e},r)):e&&typeof e=="object"?R.createElement(Sd,Qu({},e,{key:"label-implicit"},r)):null};function aot(e){var t=e.label,n=e.labelRef,r=Oce();return sot(t,r,n)||null}var lot=["valueAccessor"],uot=["dataKey","clockWise","id","textBreakAll","zIndex"];function uE(){return uE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uE.apply(null,arguments)}function sq(e,t){if(e==null)return{};var n,r,i=cot(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cot(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var dot=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(Vit(t))return t},Mce=R.createContext(void 0),R3=Mce.Provider,Ice=R.createContext(void 0),_ce=Ice.Provider;function hot(){return R.useContext(Mce)}function fot(){return R.useContext(Ice)}function b1(e){var t=e.valueAccessor,n=t===void 0?dot:t,r=sq(e,lot),i=r.dataKey;r.clockWise;var o=r.id,s=r.textBreakAll,a=r.zIndex,l=sq(r,uot),u=hot(),d=fot(),f=u||d;return!f||!f.length?null:R.createElement(hi,{zIndex:a??Wn.label},R.createElement(Dn,{className:"recharts-label-list"},f.map((g,m)=>{var y,b=Mn(i)?n(g,m):Gt(g.payload,i),w=Mn(o)?{}:{id:"".concat(o,"-").concat(m)};return R.createElement(Sd,uE({key:"label-".concat(m)},ts(g),l,w,{fill:(y=r.fill)!==null&&y!==void 0?y:g.fill,parentViewBox:g.parentViewBox,value:b,textBreakAll:s,viewBox:g.viewBox,index:m,zIndex:0}))})))}b1.displayName="LabelList";function rC(e){var t=e.label;return t?t===!0?R.createElement(b1,{key:"labelList-implicit"}):R.isValidElement(t)||aA(t)?R.createElement(b1,{key:"labelList-implicit",content:t}):typeof t=="object"?R.createElement(b1,uE({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function kk(){return kk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kk.apply(null,arguments)}var Fce=e=>{var t=e.cx,n=e.cy,r=e.r,i=e.className,o=Et("recharts-dot",i);return ze(t)&&ze(n)&&ze(r)?R.createElement("circle",kk({},ao(e),qB(e),{className:o,cx:t,cy:n,r})):null},lA=e=>e.graphicalItems.polarItems,got=ne([In,Gw],XH),iC=ne([lA,ir,got],ZH),pot=ne([iC],QH),uA=ne([pot,Pg],JH),kce=ne([uA,ir,iC],bue);ne([uA,ir,iC],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var o,s=Gt(r,(o=t.dataKey)!==null&&o!==void 0?o:i.dataKey);return{value:s,errorDomain:[]}}
1054)).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:Gt(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]})));var aq=()=>{},mot=ne([uA,ir,iC,tA,In,kZe],o3),vot=ne([ir,r3,i3,aq,mot,aq,wt,In],s3),Lce=ne([ir,wt,uA,kce,rv,In,vot],a3),Nce=ne([Lce,Mg,gu],u3),yot=ne([ir,Lce,Nce,In],d3),bot=ne([gu,yot],Ole),A3=(e,t,n)=>{switch(t){case"angleAxis":return Vw(e,n);case"radiusAxis":return zw(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},T3=(e,t,n)=>{switch(t){case"angleAxis":return rQe(e,n);case"radiusAxis":return iQe(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},wot=ne([A3,gu,bot,T3],eA),cA=ne([wot],qR),Bce=ne([wt,kce,Mg,In],f3),Hce=ne([wt,A3,gu,cA,Nce,T3,Qw,Bce,In],Bue);ne([Hce],e=>{if(e){var t=new Map;return e.forEach(n=>{var r=(n.coordinate+360)%360;t.has(r)||t.set(r,n)}),Array.from(t.values())}});var Cot=ne([wt,A3,cA,T3,Qw,Bce,In],Vue),Sot={radiusAxis:{},angleAxis:{}},Vce=co({name:"polarAxis",initialState:Sot,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=Kt(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=Kt(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),dA=Vce.actions;dA.addRadiusAxis;dA.removeRadiusAxis;dA.addAngleAxis;dA.removeAngleAxis;var xot=Vce.reducer;function zce(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function lq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lq(Object(n),!0).forEach(function(r){Eot(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eot(e,t,n){return(t=Rot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rot(e){var t=Aot(e,"string");return typeof t=="symbol"?t:t+""}function Aot(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tot=(e,t)=>t,P3=ne([lA,Tot],(e,t)=>e.filter(n=>n.type==="pie").find(n=>
1054n.id===t)),Pot=[],O3=(e,t,n)=>n?.length===0?Pot:n,Gce=ne([Pg,P3,O3],(e,t,n)=>{var r=e.chartData;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(o=>uq(uq({},t.presentationProps),o.props))),i!=null)return i}}),Oot=ne([Gce,P3,O3],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,i)=>{var o,s=Gt(r,t.nameKey,t.name),a;return n!=null&&(o=n[i])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?a=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?a=r.fill:a=t.fill,{value:Oc(s,t.dataKey),dataKey:t.dataKey,color:a,payload:r,type:t.legendType}})}),Dot=ne([Gce,P3,O3,Xr],(e,t,n,r)=>{if(!(t==null||e==null))return Hst({offset:r,pieSettings:t,displayedData:e,cells:n})}),pM={exports:{}},wn={};var cq;function Mot(){if(cq)return wn;cq=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case n:case i:case r:case l:case u:case g:return b;default:switch(b=b&&b.$$typeof,b){case s:case a:case f:case d:return b;case o:return b;default:return w}}case t:return w}}}return wn.ContextConsumer=o,wn.ContextProvider=s,wn.Element=e,wn.ForwardRef=a,wn.Fragment=n,wn.Lazy=f,wn.Memo=d,wn.Portal=t,wn.Profiler=i,wn.StrictMode=r,wn.Suspense=l,wn.SuspenseList=u,wn.isContextConsumer=function(b){return y(b)===o},wn.isContextProvider=function(b){return y(b)===s},wn.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},wn.isForwardRef=function(b){return y(b)===a},wn.isFragment=function(b){return y(b)===n},wn.isLazy=function(b){return y(b)===f},wn.isMemo=function(b){return y(b)===d},wn.isPortal=function(b){return y(b)===t},wn.isProfiler=function(b){return y(b)===i},wn.isStrictMode=function(b){return y(b)===r},wn.isSuspense=function(b){return y(b)===l},wn.isSuspenseList=function(b){return y(b)===u},wn.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===l||b===u||b===g||typeof b=="object"&&b!==null&&(b.$$typeof===f||b.$$typeof===d||b.$$typeof===s||b.$$typeof===o||b.$$typeof===a||b.$$typeof===m||b.getModuleId!==void 0)},wn.typeOf=y,wn}var dq;function Iot(){return dq||(dq=1,pM.exports=Mot()),pM.exports}var _ot=Iot(),hq=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",fq=null,mM=null,jce=e=>{if(e===fq&&Array.isArray(mM))return mM;var t=[];return R.Children.forEach(e,n=>{Mn(n)||(_ot.isFragment(n)?t=t.concat(jce(n.props.children)):t.push(n))}),mM=t,fq=e,t};function hA(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>hq(i)):r=[hq(t)],jce(e).forEach(i=>{var o=ru(i,"type.displayName")||ru(i,"type.name");o&&r.indexOf(o)!==-1&&n.push(i)}),n}var D3=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;function gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gq(Object(n),!0).forEach(function(r){Fot(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fot(e,t,n){return(t=kot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kot(e){var t=Lot(e,"string");return typeof t=="symbol"?t:t+""}function Lot(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uce(e,t){return pq(pq({},t),e)}function Not(e){return R.isValidElement(e)?e.props:e}function Bot(e,t){return R.cloneElement(e,Uce(Not(e),t))}function Hot(e){if("index"in e){var t=e.index;return typeof t=="number"||typeof t=="string"?t:void 0}}
1054function Vot(e){return"isActive"in e&&e.isActive===!0}function oC(e){var t=e.option,n=e.DefaultShape,r=e.shapeProps,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,s=e.inActiveClassName,a=s===void 0?"recharts-shape":s,l=Hot(r),u;return R.isValidElement(t)?u=Bot(t,r):t===n?u=R.createElement(n,r):typeof t=="function"?u=t(r,l):typeof t=="object"?u=R.createElement(n,Uce(t,r)):u=R.createElement(n,r),Vot(r)?R.createElement(Dn,{className:o},u):R.createElement(Dn,{className:a},u)}var fA=(e,t,n)=>{var r=mn();return(i,o)=>s=>{e?.(i,o,s),r($ue({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},gA=e=>{var t=mn();return(n,r)=>i=>{e?.(n,r,i),t(Ztt())}},pA=(e,t,n)=>{var r=mn();return(i,o)=>s=>{e?.(i,o,s),r(Qtt({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function sC(e){var t=e.tooltipEntrySettings,n=mn(),r=gi(),i=R.useRef(null);return R.useLayoutEffect(()=>{r||(i.current===null?n(qtt(t)):i.current!==t&&n(Ktt({prev:i.current,next:t})),i.current=t)},[t,n,r]),R.useLayoutEffect(()=>()=>{i.current&&(n(Ytt(i.current)),i.current=null)},[n]),null}function M3(e){var t=e.legendPayload,n=mn(),r=gi(),i=R.useRef(null);return R.useLayoutEffect(()=>{r||(i.current===null?n(Yae(t)):i.current!==t&&n(Xae({prev:i.current,next:t})),i.current=t)},[n,r,t]),R.useLayoutEffect(()=>()=>{i.current&&(n(Zae(i.current)),i.current=null)},[n]),null}function Wce(e){var t=e.legendPayload,n=mn(),r=$e(wt),i=R.useRef(null);return R.useLayoutEffect(()=>{r!=="centric"&&r!=="radial"||(i.current===null?n(Yae(t)):i.current!==t&&n(Xae({prev:i.current,next:t})),i.current=t)},[n,r,t]),R.useLayoutEffect(()=>()=>{i.current&&(n(Zae(i.current)),i.current=null)},[n]),null}function zot(e,t){return Wot(e)||Uot(e,t)||jot(e,t)||Got()}function Got(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1055In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jot(e,t){if(e){if(typeof e=="string")return mq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mq(e,t):void 0}}function mq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uot(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function Wot(e){if(Array.isArray(e))return e}var mA="index",vA="append";function I3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=[];for(var i of n)r.push({status:"removed",prev:i});for(var o=0;o<t.length;o++){var s=e[o],a=t[o];s!=null?r.push({status:"matched",prev:s,next:a}):r.push({status:"added",next:a})}return r}function $ot(e,t){var n=e.length/t.length,r=t.map((i,o)=>e[Math.floor(o*n)]);return I3(r,t)}function qot(e,t){var n=t.map((r,i)=>e[i]);return I3(n,t)}function Kot(e,t){for(var n=new Map,r=0;r<e.length;r++){var i=e[r];if(i!=null){var o=t(i,r);o!=null&&!n.has(o)&&n.set(o,i)}}return n}function Yot(e,t,n){var r=Kot(e,n),i=new Set,o=t.map((f,g)=>{var m=n(f,g);if(m!=null){var y=r.get(m);if(y!==void 0)return i.add(m),y}}),s=[];for(var a of r){var l=zot(a,2),u=l[0],d=l[1];i.has(u)||s.push(d)}return I3(o,t,s)}function Lk(e,t,n){return t==null?null:e==null?t.map(r=>({status:"added",next:r})):n===mA?$ot(e,t):n===vA?qot(e,t):Yot(e,t,n)}function $ce(e,t){var n=R.useRef(e),r=R.useRef(t.current),i=R.useRef(!0);n.current!==e&&(n.current=e,r.current=t.current,i.current=!1);var o=R.useCallback(function(s,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(a===0){i.current=!0;return}a===1&&(r.current=s),a>0&&i.current&&l&&(t.current=s)},[t]);return{startValue:r.current,syncStepValue:o}}function Xot(e,t){return est(e)||Jot(e,t)||Qot(e,t)||Zot()}
1055function Zot(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1056In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qot(e,t){if(e){if(typeof e=="string")return vq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vq(e,t):void 0}}function vq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jot(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function est(e){if(Array.isArray(e))return e}function aC(e,t){var n=R.useState(!1),r=Xot(n,2),i=r[0],o=r[1],s=R.useCallback(()=>{typeof e=="function"&&e(),o(!0)},[e]),a=R.useCallback(()=>{typeof t=="function"&&t(),o(!1)},[t]);return{isAnimating:i,handleAnimationStart:s,handleAnimationEnd:a}}function lC(e){var t,n=e.animationInput,r=e.animationIdPrefix,i=e.items,o=e.previousItemsRef,s=e.isAnimationActive,a=e.animationBegin,l=e.animationDuration,u=e.animationEasing,d=e.onAnimationStart,f=e.onAnimationEnd,g=e.animationInterpolateFn,m=e.animationMatchBy,y=e.shouldUpdatePreviousRef,b=e.children,w=e.layout,C=ile(n,r),E=$ce(C,o),A=(t=E.startValue)!==null&&t!==void 0?t:null,T=Lk(A,i,m??mA);return R.createElement(rle,{animationId:C,begin:a,duration:l,isActive:s,easing:u,onAnimationEnd:f,onAnimationStart:d,key:C},P=>{var O=A==null,D=i==null?i:g(T,P,w),F=y?y(P):P>0;return E.syncStepValue(D,P,F),D==null?null:b(D,P,O)})}var vM;function tst(e,t){return ost(e)||ist(e,t)||rst(e,t)||nst()}function nst(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1057In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rst(e,t){if(e){if(typeof e=="string")return yq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yq(e,t):void 0}}function yq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ist(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function ost(e){if(Array.isArray(e))return e}var sst=()=>{var e=R.useState(()=>$b("uid-")),t=tst(e,1),n=t[0];return n},qce=(vM=vve.useId)!==null&&vM!==void 0?vM:sst;function ast(e,t){var n=qce();return t||(e?"".concat(e,"-").concat(n):n)}var lst=R.createContext(void 0),uC=e=>{var t=e.id,n=e.type,r=e.children,i=ast("recharts-".concat(n),t);return R.createElement(lst.Provider,{value:i},r(i))},ust={cartesianItems:[],polarItems:[]},Kce=co({name:"graphicalItems",initialState:ust,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(Kt(t.payload))},prepare:Nn()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,o=la(e).cartesianItems.indexOf(Kt(r));o>-1&&(e.cartesianItems[o]=Kt(i))},prepare:Nn()},removeCartesianGraphicalItem:{reducer(e,t){var n=la(e).cartesianItems.indexOf(Kt(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:Nn()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(Kt(t.payload))},prepare:Nn()},removePolarGraphicalItem:{reducer(e,t){var n=la(e).polarItems.indexOf(Kt(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:Nn()},replacePolarGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,o=la(e).polarItems.indexOf(Kt(r));o>-1&&(e.polarItems[o]=Kt(i))},prepare:Nn()}}}),uv=Kce.actions,cst=uv.addCartesianGraphicalItem,dst=uv.replaceCartesianGraphicalItem,hst=uv.removeCartesianGraphicalItem,fst=uv.addPolarGraphicalItem,gst=uv.removePolarGraphicalItem,pst=uv.replacePolarGraphicalItem,mst=Kce.reducer,vst=e=>{var t=mn(),n=R.useRef(null);return R.useLayoutEffect(()=>{n.current===null?t(cst(e)):n.current!==e&&t(dst({prev:n.current,next:e})),n.current=e},[t,e]),R.useLayoutEffect(()=>()=>{n.current&&(t(hst(n.current)),n.current=null)},[t]),null},_3=R.memo(vst),yst=e=>{var t=mn(),n=R.useRef(null);return R.useLayoutEffect(()=>{n.current===null?t(fst(e)):n.current!==e&&t(pst({prev:n.current,next:e})),n.current=e},[t,e]),R.useLayoutEffect(()=>()=>{n.current&&(t(gst(n.current)),n.current=null)},[t]),null},Yce=R.memo(yst),bst=["key"],wst=["onMouseEnter","onClick","onMouseLeave"],Cst=["id"],Sst=["id"];function lg(){return lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lg.apply(null,arguments)}function yA(e,t){if(e==null)return{};var n,r,i=xst(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xst(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1057t%2?bq(Object(n),!0).forEach(function(r){Est(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Est(e,t,n){return(t=Rst(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rst(e){var t=Ast(e,"string");return typeof t=="symbol"?t:t+""}function Ast(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xce=fH;function Tst(e){var t=R.useMemo(()=>hA(e.children,nC),[e.children]),n=$e(r=>Oot(r,e.id,t));return n==null?null:R.createElement(Wce,{legendPayload:n})}function Pst(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(R.isValidElement(e)){var t,n=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof n=="string"?n:void 0}var r=e.fill;return typeof r=="string"?r:void 0}}var Ost=R.memo(e=>{var t=e.dataKey,n=e.nameKey,r=e.sectors,i=e.stroke,o=e.strokeWidth,s=e.fill,a=e.name,l=e.hide,u=e.tooltipType,d=e.formatter,f=e.id,g=e.activeShape,m=Pst(g),y=r.map(w=>{var C=w.tooltipPayload;return m==null||C==null?C:C.map(E=>jn(jn({},E),{},{color:m,fill:m}))}),b={dataDefinedOnItem:y,getPosition:w=>{var C;return(C=r[Number(w)])===null||C===void 0?void 0:C.tooltipPosition},settings:{stroke:i,strokeWidth:o,fill:s,dataKey:t,nameKey:n,name:Oc(a,t),hide:l,type:u,color:s,unit:"",formatter:d,graphicalItemId:f}};return R.createElement(sC,{tooltipEntrySettings:b})}),Dst=(e,t)=>e>t?"start":e<t?"end":"middle",Mst=(e,t,n)=>io(typeof t=="function"?t(e):t,n,n*.8),Ist=(e,t,n)=>{var r=t.top,i=t.left,o=t.width,s=t.height,a=sle(o,s),l=i+io(e.cx,o,o/2),u=r+io(e.cy,s,s/2),d=io(e.innerRadius,a,0),f=Mst(n,e.outerRadius,a),g=e.maxRadius||Math.sqrt(o*o+s*s)/2;return{cx:l,cy:u,innerRadius:d,outerRadius:f,maxRadius:g}},_st=(e,t)=>{var n=Lr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Fst=(e,t)=>{if(R.isValidElement(e))return R.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Et("recharts-pie-label-line",typeof e!="boolean"?e.className:"");t.key;var r=yA(t,bst);return R.createElement(dm,lg({},r,{type:"linear",className:n}))},kst=(e,t,n)=>{if(R.isValidElement(e))return R.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),R.isValidElement(r)))return r;var i=Et("recharts-pie-label-text",zce(e));return R.createElement(sA,lg({},t,{alignmentBaseline:"middle",className:i}),r)};function Lst(e){var t=e.sectors,n=e.props,r=e.showLabels,i=n.label,o=n.labelLine,s=n.dataKey;if(!r||!i||!t)return null;var a=ao(n),l=Qd(i),u=Qd(o),d=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((g,m)=>{var y=(g.startAngle+g.endAngle)/2,b=Nr(g.cx,g.cy,g.outerRadius+d,y),w=jn(jn(jn(jn({},a),g),{},{stroke:"none"},l),{},{index:m,textAnchor:Dst(b.x,g.cx)},b),C=jn(jn(jn(jn({},a),g),{},{fill:"none",stroke:g.fill},u),{},{index:m,points:[Nr(g.cx,g.cy,g.outerRadius,y),b],key:"line"});return R.createElement(hi,{zIndex:Wn.label,key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(m)},R.createElement(Dn,null,o&&Fst(o,C),kst(i,w,Gt(g,s))))});return R.createElement(Dn,{className:"recharts-pie-labels"},f)}function Nst(e){var t=e.sectors,n=e.props,r=e.showLabels,i=n.label;return typeof i=="object"&&i!=null&&"position"in i?R.createElement(rC,{label:i}):R.createElement(Lst,{sectors:t,props:n,showLabels:r})}function Bst(e){var t=e.sectors,n=e.activeShape,r=e.inactiveShape,i=e.allOtherPieProps,o=e.shape,s=e.id,a=e.animationElapsedTime,l=e.isAnimating,u=e.isEntrance,d=$e(wc),f=$e(b3),g=$e(lce),m=i.onMouseEnter,y=i.onClick,b=i.onMouseLeave,w=yA(i,wst),C=fA(m,i.dataKey,s),E=gA(b),A=pA(y,i.dataKey,s);return t==null||t.length===0?null:R.createElement(R.Fragment,null,t.map((T,P)=>{if(T?.startAngle===0&&T?.endAngle===0&&t.length!==1)return null;var O=g==null||g===s,D=String(P)===d&&(f==null||i.dataKey===f)&&O,F=d?r:null,L=n&&D?n:F,N=jn(jn({},T),{},{stroke:T.stroke,tabIndex:-1,index:P,isActive:D,animationElapsedTime:a,isAnimating:l,isEntrance:u,[Vae]:P,[zae]:s});return R.createElement(Dn,lg({key:"sector-".concat(T?.startAngle,"-").concat(T?.endAngle,"-").concat(T.midAngle,"-").concat(P),tabIndex:-1,
1057className:"recharts-pie-sector"},Ag(w,T,P),{onMouseEnter:C(T,P),onMouseLeave:E(T,P),onClick:A(T,P)}),R.createElement(oC,{option:L??o,DefaultShape:Xce,shapeProps:N}))}))}function Hst(e){var t,n=e.pieSettings,r=e.displayedData,i=e.cells,o=e.offset,s=n.cornerRadius,a=n.startAngle,l=n.endAngle,u=n.dataKey,d=n.nameKey,f=n.tooltipType,g=Math.abs(n.minAngle),m=_st(a,l),y=Math.abs(m),b=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,w=r.filter(F=>Gt(F,u,0)!==0).length,C=(y>=360?w:w-1)*b,E=r.reduce((F,L)=>{var N=Gt(L,u,0);return F+(ze(N)?N:0)},0),A=g>0&&E>0&&r.some(F=>{var L=Gt(F,u,0),N=(ze(L)?L:0)/E;return L!==0&&N*y<g}),T=A?g:0,P=y-w*T-C,O;if(E>0){var D;O=r.map((F,L)=>{var N=Gt(F,u,0),M=Gt(F,d,L),k=Ist(n,o,F),B=(ze(N)?N:0)/E,j,z=jn(jn({},F),i&&i[L]&&i[L].props),H=z!=null&&"fill"in z&&typeof z.fill=="string"?z.fill:n.fill;L?j=D.endAngle+Lr(m)*b*(N!==0?1:0):j=a;var G=j+Lr(m)*((N!==0?T:0)+B*P),$=(j+G)/2,Y=(k.innerRadius+k.outerRadius)/2,K=[{name:M,value:N,payload:z,dataKey:u,type:f,color:H,fill:H,graphicalItemId:n.id}],se=Nr(k.cx,k.cy,Y,$);return D=jn(jn(jn(jn({},n.presentationProps),{},{percent:B,cornerRadius:typeof s=="string"?parseFloat(s):s,name:M,tooltipPayload:K,midAngle:$,middleRadius:Y,tooltipPosition:se},z),k),{},{value:N,dataKey:u,startAngle:j,endAngle:G,payload:z,paddingAngle:N!==0?Lr(m)*b:0}),D})}return O}function Vst(e){var t=e.showLabels,n=e.sectors,r=e.children,i=R.useMemo(()=>!t||!n?[]:n.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[n,t]);return R.createElement(_ce,{value:t?i:void 0},r)}var zst=(e,t)=>{if(e==null)return[];var n=[],r=e.find(o=>o.status!=="removed"),i=r?r.next.startAngle:0;return e.forEach((o,s)=>{if(o.status!=="removed"){var a=s>0?ru(o.next,"paddingAngle",0):0;if(o.status==="matched"){var l=hn(o.prev.endAngle-o.prev.startAngle,o.next.endAngle-o.next.startAngle,t),u=jn(jn({},o.next),{},{startAngle:i+a,endAngle:i+l+a});n.push(u),i=u.endAngle}else{var d=hn(0,o.next.endAngle-o.next.startAngle,t),f=jn(jn({},o.next),{},{startAngle:i+a,endAngle:i+d+a});n.push(f),i=f.endAngle}}}),n};function Gst(e){var t,n,r,i,o=e.props,s=e.previousSectorsRef,a=e.id,l=o.sectors,u=o.activeShape,d=o.inactiveShape,f=o.animationInterpolateFn,g=aC(o.onAnimationStart,o.onAnimationEnd),m=g.isAnimating,y=g.handleAnimationStart,b=g.handleAnimationEnd,w=qae();if(w==null)return null;var C=l[0];return R.createElement(Vst,{showLabels:!m,sectors:l},R.createElement(lC,{animationInput:o,animationIdPrefix:"recharts-pie-",items:l,previousItemsRef:s,isAnimationActive:o.isAnimationActive,animationBegin:o.animationBegin,animationDuration:o.animationDuration,animationEasing:o.animationEasing,onAnimationStart:y,onAnimationEnd:b,animationInterpolateFn:f,animationMatchBy:o.animationMatchBy,layout:w},(E,A,T)=>R.createElement(Dn,null,R.createElement(Bst,{sectors:E,activeShape:u,inactiveShape:d,allOtherPieProps:o,shape:o.shape,id:a,animationElapsedTime:A,isAnimating:m||A<1,isEntrance:T}))),R.createElement(Nst,{showLabels:!m,sectors:l,props:o}),R.createElement(Qit,{cx:(t=C?.cx)!==null&&t!==void 0?t:0,cy:(n=C?.cy)!==null&&n!==void 0?n:0,innerRadius:(r=C?.innerRadius)!==null&&r!==void 0?r:0,outerRadius:(i=C?.outerRadius)!==null&&i!==void 0?i:0,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},o.children))}var jst={animationBegin:400,animationDuration:1500,animationEasing:"ease",animationInterpolateFn:zst,animationMatchBy:vA,cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,shape:Xce,startAngle:0,stroke:"#fff",zIndex:Wn.area};function Ust(e){var t=e.id,n=yA(e,Cst),r=e.hide,i=e.className,o=e.rootTabIndex,s=R.useMemo(()=>hA(e.children,nC),[e.children]),a=$e(d=>Dot(d,t,s)),l=R.useRef(null),u=Et("recharts-pie",i);return r||a==null?(l.current=null,R.createElement(Dn,{tabIndex:o,className:u})):R.createElement(hi,{zIndex:e.zIndex},R.createElement(Ost,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:a,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,formatter:e.formatter,id:t,activeShape:e.activeShape}),R.createElement(Dn,{tabIndex:o,className:u},R.createElement(Gst,{props:jn(jn({},n),{},{sectors:a}),previousSectorsRef:l,id:t}
1057)))}function Wst(e){var t=gr(e,jst),n=t.id,r=yA(t,Sst),i=ao(r);return R.createElement(uC,{id:n,type:"pie"},o=>R.createElement(R.Fragment,null,R.createElement(Yce,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),R.createElement(Tst,lg({},r,{id:o})),R.createElement(Ust,lg({},r,{id:o}))))}var $st=Wst;$st.displayName="Pie";var qst=["points"];function wq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wq(Object(n),!0).forEach(function(r){Kst(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kst(e,t,n){return(t=Yst(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yst(e){var t=Xst(e,"string");return typeof t=="symbol"?t:t+""}function Xst(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cE(){return cE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cE.apply(null,arguments)}function Zst(e,t){if(e==null)return{};var n,r,i=Qst(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Qst(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Jst(e){var t=e.option,n=e.dotProps,r=e.className;if(R.isValidElement(t))return R.cloneElement(t,n);if(typeof t=="function")return t(n);var i=Et(r,typeof t!="boolean"?t.className:""),o=n??{};o.points;var s=Zst(o,qst);return R.createElement(Fce,cE({},s,{className:i}))}function eat(e,t){return e==null?!1:t?!0:e.length===1}function Zce(e){var t=e.points,n=e.dot,r=e.className,i=e.dotClassName,o=e.dataKey,s=e.baseProps,a=e.needClip,l=e.clipPathId,u=e.zIndex,d=u===void 0?Wn.scatter:u;if(!eat(t,n))return null;var f=D3(n),g=k$e(n),m=t.map((b,w)=>{var C,E,A=yM(yM(yM({r:3},s),g),{},{index:w,cx:(C=b.x)!==null&&C!==void 0?C:void 0,cy:(E=b.y)!==null&&E!==void 0?E:void 0,dataKey:o,value:b.value,payload:b.payload,points:t});return R.createElement(Jst,{key:"dot-".concat(w),option:n,dotProps:A,className:i})}),y={};return a&&l!=null&&(y.clipPath="url(#clipPath-".concat(f?"":"dots-").concat(l,")")),R.createElement(hi,{zIndex:d},R.createElement(Dn,cE({className:r},y),m))}function Cq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _S(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cq(Object(n),!0).forEach(function(r){tat(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tat(e,t,n){return(t=nat(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nat(e){var t=rat(e,"string");return typeof t=="symbol"?t:t+""}function rat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qce=0,iat={xAxis:{},yAxis:{},zAxis:{}},Jce=co({name:"cartesianAxis",initialState:iat,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=Kt(t.payload)},prepare:Nn()},replaceXAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.xAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.xAxis[r.id],e.xAxis[i.id]=Kt(i))},prepare:Nn()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Nn()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=Kt(t.payload)},prepare:Nn()},replaceYAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.yAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.yAxis[r.id],e.yAxis[i.id]=Kt(i))},prepare:Nn()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Nn()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=Kt(t.payload)},prepare:Nn()},replaceZAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.zAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.zAxis[r.id],e.zAxis[i.id]=Kt(i))},prepare:Nn()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Nn()}
1057,updateYAxisWidth(e,t){var n=t.payload,r=n.id,i=n.width,o=e.yAxis[r];if(o){var s,a=o.widthHistory||[];if(a.length===3&&a[0]===a[2]&&i===a[1]&&i!==o.width&&Math.abs(i-((s=a[0])!==null&&s!==void 0?s:0))<=1)return;var l=[...a,i].slice(-3);e.yAxis[r]=_S(_S({},o),{},{width:i,widthHistory:l})}},updateXAxisHeight(e,t){var n=t.payload,r=n.id,i=n.height,o=e.xAxis[r];if(o){var s,a=o.heightHistory||[];if(a.length===3&&a[0]===a[2]&&i===a[1]&&i!==o.height&&Math.abs(i-((s=a[0])!==null&&s!==void 0?s:0))<=1)return;var l=[...a,i].slice(-3);e.xAxis[r]=_S(_S({},o),{},{height:i,heightHistory:l})}}}}),al=Jce.actions,oat=al.addXAxis,sat=al.replaceXAxis,aat=al.removeXAxis,lat=al.addYAxis,uat=al.replaceYAxis,cat=al.removeYAxis;al.addZAxis;al.replaceZAxis;al.removeZAxis;var dat=al.updateYAxisWidth,hat=al.updateXAxisHeight,fat=Jce.reducer,gat=ne([Xr],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),pat=ne([gat,hu,fu],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),bA=()=>$e(pat),mat=()=>$e($nt);function Sq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sq(Object(n),!0).forEach(function(r){vat(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vat(e,t,n){return(t=yat(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yat(e){var t=bat(e,"string");return typeof t=="symbol"?t:t+""}function bat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wat=e=>{var t=e.point,n=e.childIndex,r=e.mainColor,i=e.activeDot,o=e.dataKey,s=e.clipPath;if(i===!1||t.x==null||t.y==null)return null;var a={index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=bM(bM(bM({},a),Qd(i)),qB(i)),u;return R.isValidElement(i)?u=R.cloneElement(i,l):typeof i=="function"?u=i(l):u=R.createElement(Fce,l),R.createElement(Dn,{className:"recharts-active-dot",clipPath:s},u)};function Nk(e){var t=e.points,n=e.mainColor,r=e.activeDot,i=e.itemDataKey,o=e.clipPath,s=e.zIndex,a=s===void 0?Wn.activeDot:s,l=$e(wc),u=mat();if(t==null||u==null)return null;var d=t.find(f=>u.includes(f.payload));return Mn(d)?null:R.createElement(hi,{zIndex:a},R.createElement(wat,{point:d,childIndex:Number(l),mainColor:n,dataKey:i,activeDot:r,clipPath:o}))}var Cat=["option"];function Sat(e,t){if(e==null)return{};var n,r,i=xat(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xat(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ede=fH;function tde(e){return typeof e=="string"?parseInt(e,10):e}function Bk(e){var t=e.option,n=Sat(e,Cat);return R.createElement(oC,{option:t,DefaultShape:ede,shapeProps:n})}function Eat(e,t){return Pat(e)||Tat(e,t)||Aat(e,t)||Rat()}function Rat(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1058In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aat(e,t){if(e){if(typeof e=="string")return xq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xq(e,t):void 0}}function xq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tat(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}
1058finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function Pat(e){if(Array.isArray(e))return e}var Eq=(e,t,n)=>{var r=n??e;if(!Mn(r))return io(r,t,0)},nde=(e,t,n)=>{var r={},i=e.filter(jw),o=e.filter(u=>u.stackId==null),s=i.reduce((u,d)=>{var f=u[d.stackId];return f==null&&(f=[]),f.push(d),u[d.stackId]=f,u},r),a=Object.entries(s).map(u=>{var d,f=Eat(u,2),g=f[0],m=f[1],y=m.map(w=>w.dataKey),b=Eq(t,n,(d=m[0])===null||d===void 0?void 0:d.barSize);return{stackId:g,dataKeys:y,barSize:b}}),l=o.map(u=>{var d=[u.dataKey].filter(g=>g!=null),f=Eq(t,n,u.barSize);return{stackId:void 0,dataKeys:d,barSize:f}});return[...a,...l]};function Rq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rq(Object(n),!0).forEach(function(r){Oat(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oat(e,t,n){return(t=Dat(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dat(e){var t=Mat(e,"string");return typeof t=="symbol"?t:t+""}function Mat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iat(e,t,n,r,i){var o,s=r.length;if(!(s<1)){var a=io(e,n,0,!0),l,u=[];if(Ot((o=r[0])===null||o===void 0?void 0:o.barSize)){var d=!1,f=n/s,g=r.reduce((E,A)=>E+(A.barSize||0),0);g+=(s-1)*a,g>=n&&(g-=(s-1)*a,a=0),g>=n&&f>0&&(d=!0,f*=.9,g=s*f);var m=Math.round((n-g)/2),y={offset:m-a,size:0};l=r.reduce((E,A)=>{var T,P={stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:y.offset+y.size+a,size:d?f:(T=A.barSize)!==null&&T!==void 0?T:0}},O=[...E,P];return y=P.position,O},u)}else{var b=io(t,n,0,!0);n-2*b-(s-1)*a<=0&&(a=0);var w=(n-2*b-(s-1)*a)/s;w>1&&(w=Math.round(w));var C=Ot(i)?Math.min(w,i):w;l=r.reduce((E,A,T)=>[...E,{stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:b+s*(w-C)/2+(C+a)*T,size:C}}],u)}return l}}var rde=(e,t,n,r,i,o,s)=>{var a=Mn(s)?t:s,l=Iat(n,r,i!==o?i:o,e,a);return i!==o&&l!=null&&(l=l.map(u=>FS(FS({},u),{},{position:FS(FS({},u.position),{},{offset:u.position.offset-i/2})}))),l},ide=(e,t)=>{var n=WR(t);if(!(!e||n==null||t==null)){var r=t.stackId;if(r!=null){var i=e[r];if(i){var o=i.stackedData;if(o)return o.find(s=>s.key===n)}}}},ode=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function Aq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Aq(Object(n),!0).forEach(function(r){_at(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _at(e,t,n){return(t=Fat(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fat(e){var t=kat(e,"string");return typeof t=="symbol"?t:t+""}function kat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lat=(e,t)=>zw(e,t),Nat=(e,t)=>cA(e,"radiusAxis",t),wA=ne([Lat,Nat],(e,t)=>{if(!(e==null||t==null))return dE(dE({},e),{},{scale:t})}),F3=(e,t)=>
1058Cot(e,"radiusAxis",t,!1),Bat=(e,t,n)=>Vw(e,n),Hat=(e,t,n)=>cA(e,"angleAxis",n),CA=ne([Bat,Hat],(e,t)=>{if(!(e==null||t==null))return dE(dE({},e),{},{scale:t})}),k3=(e,t,n)=>Hce(e,"angleAxis",n,!1),Vat=(e,t,n,r)=>r,L3=ne([lA,Vat],(e,t)=>{if(e.some(n=>n.type==="radialBar"&&t.dataKey===n.dataKey&&t.stackId===n.stackId))return t}),sde=ne([wt,wA,F3,CA,k3],(e,t,n,r,i)=>wa(e,"radiusAxis")?ga(t,n,!1):ga(r,i,!1)),zat=ne([CA,wA,wt],(e,t,n)=>{var r=n==="radial"?e:t;if(!(r==null||r.scale==null))return Hae({numericAxis:r})}),Gat=(e,t,n,r,i)=>i,jat=(e,t,n,r,i)=>n,Uat=(e,t,n,r,i)=>t,ade=(e,t,n,r,i)=>r.maxBarSize,lde=e=>e.type==="radialBar",Wat=ne([wt,lA,jat,Uat],(e,t,n,r)=>t.filter(i=>e==="centric"?i.angleAxisId===n:i.radiusAxisId===r).filter(i=>i.hide===!1).filter(lde)),$at=()=>{},qat=ne([Wat,xle,$at],nde),Kat=ne([wt,zR,CA,k3,wA,F3,ade],(e,t,n,r,i,o,s)=>{var a,l,u=Mn(s)?t:s;if(e==="centric"){var d,f;return(d=(f=ga(n,r,!0))!==null&&f!==void 0?f:u)!==null&&d!==void 0?d:0}return(a=(l=ga(i,o,!0))!==null&&l!==void 0?l:u)!==null&&a!==void 0?a:0}),Yat=ne([qat,zR,Sle,yH,Kat,sde,ade],rde),Xat=ne([Yat,L3],ode),ude=ne([iC],e=>e.filter(lde).filter(jw)),Zat=ne([ude,Pg,zr],RH),Tq=ne([Zat,ude,rv,bH],t3),Qat=(e,t,n)=>{var r=wt(e);return r==="centric"?Tq(e,"radiusAxis",t):Tq(e,"angleAxis",n)},Jat=ne([Qat,L3],ide),elt=ne([CA,k3,wA,F3,Ca,L3,sde,wt,zat,EH,Gat,Xat,Jat],(e,t,n,r,i,o,s,a,l,u,d,f,g)=>{var m=i.chartData,y=i.dataStartIndex,b=i.dataEndIndex;if(o==null||n==null||e==null||m==null||s==null||f==null||a!=="centric"&&a!=="radial"||r==null||u==null)return[];var w=o.dataKey,C=o.minPointSize,E=u.cx,A=u.cy,T=u.startAngle,P=u.endAngle,O=m.slice(y,b+1),D=a==="centric"?n:e,F=g?D.scale.domain():null;return ylt({angleAxis:e,angleAxisTicks:t,bandSize:s,baseValue:l,cells:d,cx:E,cy:A,dataKey:w,dataStartIndex:y,displayedData:O,endAngle:P,layout:a,minPointSize:C,pos:f,radiusAxis:n,radiusAxisTicks:r,stackedData:g,stackedDomain:F,startAngle:T})}),tlt=ne([Pg,(e,t)=>t],(e,t)=>{var n=e.chartData,r=e.dataStartIndex,i=e.dataEndIndex;if(n==null)return[];var o=n.slice(r,i+1);return o.length===0?[]:o.map(s=>({type:t,value:s.name,color:s.fill,payload:s}))});function cde(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Ot(e.zIndex)?e.zIndex:t}var nlt=["shape","activeShape","cornerRadius","id"],rlt=["onMouseEnter","onClick","onMouseLeave"],ilt=["value","background"];function Bm(){return Bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bm.apply(null,arguments)}function Pq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pq(Object(n),!0).forEach(function(r){olt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function olt(e,t,n){return(t=slt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function slt(e){var t=alt(e,"string");return typeof t=="symbol"?t:t+""}function alt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hk(e,t){if(e==null)return{};var n,r,i=llt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function llt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var dde=[];function ult(e){var t=e.showLabels,n=e.sectors,r=e.children,i=n.map(o=>({value:o.value,payload:o.payload,parentViewBox:void 0,clockWise:!1,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill}));return R.createElement(_ce,{value:t?i:void 0},r)}function clt(e){var t=e.sectors,n=e.allOtherRadialBarProps,r=e.showLabels,i=e.animationElapsedTime,o=e.isAnimating,s=e.isEntrance,a=n.shape,l=n.activeShape,u=n.cornerRadius,d=n.id,f=Hk(n,nlt),g=ao(f),m=$e(wc),y=n.onMouseEnter,b=n.onClick,w=n.onMouseLeave,C=Hk(n,rlt),E=fA(y,n.dataKey,d),A=gA(w),T=pA(b,n.dataKey,d);return t==null?null:R.createElement(ult,{showLabels:r,sectors:t},t.map((P,O)=>{var D=!!(l&&m===String(O)),F=E(P,O),L=A(P,O),N=T(P,O),M=Ji(Ji(Ji(Ji({},g),{},{cornerRadius:tde(u)},P),Ag(C,P,O)),{},{onMouseEnter:F,onMouseLeave:L,onClick:N,className:"recharts-radial-bar-sector ".concat(P.className),forceCornerRadius:f.forceCornerRadius,cornerIsExternal:f.cornerIsExternal,animationElapsedTime:i,isAnimating:o,isEntrance:s,isActive:D,option:D&&l!=null?l:a,index:O});return D?R.createElement(hi,{zIndex:Wn.activeBar,key:"sector-".concat(P.cx,"-").concat(P.cy,"-").concat(P.innerRadius,"-").concat(P.outerRadius,"-").concat(P.startAngle,"-").concat(P.endAngle,"-").concat(O)},R.createElement(Bk,M)):R.createElement(Bk,Bm({key:"sector-".concat(P.cx,"-").concat(P.cy,"-").concat(P.innerRadius,"-").concat(P.outerRadius,"-").concat(P.startAngle,"-").concat(P.endAngle,"-").concat(O)},M))}),R.createElement(rC,{label:n.label}),n.children)}var dlt=(e,t)=>e==null?[]:t===1?e.flatMap(n=>n.status==="removed"?[]:[n.next]):e.flatMap(n=>n.status==="removed"?[]:n.status==="matched"?[Ji(Ji({},n.next),{},{startAngle:hn(n.prev.startAngle,n.next.startAngle,t),endAngle:hn(n.prev.endAngle,n.next.endAngle,t)})]:[Ji(Ji({},n.next),{},{endAngle:hn(n.next.startAngle,n.next.endAngle,t)})]);function hlt(e){var t=e.props,n=e.previousSectorsRef,r=t.sectors,i=t.isAnimationActive,o=t.animationBegin,s=t.animationDuration,a=t.animationEasing,l=t.onAnimationStart,u=t.onAnimationEnd,d=aC(l,u),f=d.isA
1058nimating,g=d.handleAnimationStart,m=d.handleAnimationEnd,y=qae();return y==null?null:R.createElement(lC,{animationInput:t,animationIdPrefix:"recharts-radialbar-",items:r,previousItemsRef:n,isAnimationActive:i,animationBegin:o,animationDuration:s,animationEasing:a,onAnimationStart:g,onAnimationEnd:m,animationInterpolateFn:t.animationInterpolateFn,animationMatchBy:t.animationMatchBy,layout:y},(b,w,C)=>R.createElement(clt,{sectors:b,allOtherRadialBarProps:t,showLabels:!f,animationElapsedTime:w,isAnimating:f||w<1,isEntrance:C}))}function flt(e){var t=R.useRef(null);return R.createElement(hlt,{props:e,previousSectorsRef:t})}function glt(e){var t=$e(n=>tlt(n,e.legendType));return R.createElement(Wce,{legendPayload:t??[]})}var plt=R.memo(e=>{var t=e.dataKey,n=e.sectors,r=e.stroke,i=e.strokeWidth,o=e.name,s=e.hide,a=e.fill,l=e.tooltipType,u=e.formatter,d=e.id,f={dataDefinedOnItem:n,getPosition:Pc,settings:{graphicalItemId:d,stroke:r,strokeWidth:i,fill:a,nameKey:void 0,dataKey:t,name:Oc(o,t),hide:s,type:l,color:a,unit:"",formatter:u}};return R.createElement(sC,{tooltipEntrySettings:f})});class mlt extends R.PureComponent{renderBackground(t){if(t==null)return null;var n=this.props.cornerRadius,r=Qd(this.props.background);return R.createElement(hi,{zIndex:cde(this.props.background,Wn.barBackground)},t.map((i,o)=>{i.value;var s=i.background,a=Hk(i,ilt);if(!s)return null;var l=Ji(Ji(Ji(Ji(Ji({cornerRadius:tde(n)},a),{},{fill:"#eee"},s),r),Ag(this.props,i,o)),{}
1058,{index:o,className:Et("recharts-radial-bar-background-sector",String(r?.className)),option:s,isActive:!1});return R.createElement(Bk,Bm({key:"background-".concat(a.cx,"-").concat(a.cy,"-").concat(a.innerRadius,"-").concat(a.outerRadius,"-").concat(a.startAngle,"-").concat(a.endAngle,"-").concat(o)},l))}))}render(){var t=this.props,n=t.hide,r=t.sectors,i=t.className,o=t.background;if(n)return null;var s=Et("recharts-area",i);return R.createElement(hi,{zIndex:this.props.zIndex},R.createElement(Dn,{className:s},o&&R.createElement(Dn,{className:"recharts-radial-bar-background"},this.renderBackground(r)),R.createElement(Dn,{className:"recharts-radial-bar-sectors"},R.createElement(flt,this.props))))}}function vlt(e){var t,n=R.useMemo(()=>hA(e.children,nC),[e.children]),r=R.useMemo(()=>({data:void 0,hide:!1,id:e.id,dataKey:e.dataKey,minPointSize:e.minPointSize,stackId:kR(e.stackId),maxBarSize:e.maxBarSize,barSize:e.barSize,type:"radialBar",angleAxisId:e.angleAxisId,radiusAxisId:e.radiusAxisId}),[e.id,e.dataKey,e.minPointSize,e.stackId,e.maxBarSize,e.barSize,e.angleAxisId,e.radiusAxisId]),i=(t=$e(o=>elt(o,e.radiusAxisId,e.angleAxisId,r,n)))!==null&&t!==void 0?t:dde;return R.createElement(R.Fragment,null,R.createElement(plt,{dataKey:e.dataKey,sectors:i,stroke:e.stroke,strokeWidth:e.strokeWidth,name:e.name,hide:e.hide,fill:e.fill,tooltipType:e.tooltipType,formatter:e.formatter,id:e.id}),R.createElement(mlt,Bm({},e,{sectors:i})))}var kS={angleAxisId:0,animationBegin:0,animationDuration:1500,animationEasing:"ease",animationMatchBy:vA,animationInterpolateFn:dlt,background:!1,cornerIsExternal:!1,cornerRadius:0,forceCornerRadius:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:0,radiusAxisId:0,shape:ede,zIndex:Wn.bar};function ylt(e){var t=e.displayedData,n=e.stackedData,r=e.dataStartIndex,i=e.stackedDomain,o=e.dataKey,s=e.baseValue,a=e.layout,l=e.radiusAxis,u=e.radiusAxisTicks,d=e.bandSize,f=e.pos,g=e.angleAxis,m=e.minPointSize,y=e.cx,b=e.cy,w=e.angleAxisTicks,C=e.cells,E=e.startAngle,A=e.endAngle;return w==null||u==null?dde:(t??[]).map((T,P)=>{var O,D,F,L,N,M;if(n?O=Bae(n[r+P],i):(O=Gt(T,o),Array.isArray(O)||(O=[s,O])),a==="radial"){var k,B;if(L=(k=g.scale.map(O[0]))!==null&&k!==void 0?k:E,N=(B=g.scale.map(O[1]))!==null&&B!==void 0?B:A,D=Bx({axis:l,ticks:u,bandSize:d,offset:f.offset,entry:T,index:P}),D!=null&&N!=null&&L!=null){F=D+f.size;var j=N-L;if(Math.abs(m)>0&&Math.abs(j)<Math.abs(m)){var z=Lr(j||m)*(Math.abs(m)-Math.abs(j));N+=z}M={background:{cx:y,cy:b,innerRadius:D,outerRadius:F,startAngle:E,endAngle:A}}}}else if(D=l.scale.map(O[0]),F=l.scale.map(O[1]),L=Bx({axis:g,ticks:w,bandSize:d,offset:f.offset,entry:T,index:P}),D!=null&&F!=null&&L!=null){N=L+f.size;var H=F-D;if(Math.abs(m)>0&&Math.abs(H)<Math.abs(m)){var G=Lr(H||m)*(Math.abs(m)-Math.abs(H));F+=G}}return Ji(Ji(Ji({},T),M),{},{payload:T,value:n?O:O[1],cx:y,cy:b,innerRadius:D,outerRadius:F,startAngle:L,endAngle:N},C&&C[P]&&C[P].props)})}function blt(e){var t=gr(e,kS);return R.createElement(uC,{id:t.id,type:"radialBar"},n=>{var r,i,o;return R.createElement(R.Fragment,null,R.createElement(Yce,{type:"radialBar",id:n,data:void 0,dataKey:t.dataKey,hide:(r=t.hide)!==null&&r!==void 0?r:kS.hide,angleAxisId:(i=t.angleAxisId)!==null&&i!==void 0?i:kS.angleAxisId,radiusAxisId:(o=t.radiusAxisId)!==null&&o!==void 0?o:kS.radiusAxisId,stackId:kR(t.stackId),barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize}),R.createElement(glt,t),R.createElement(vlt,Bm({},t,{id:n})))})}blt.displayName="RadialBar";var hde=e=>{var t=e.chartData,n=mn(),r=gi();return R.useEffect(()=>r?()=>{}:(n(H9(t)),()=>{n(H9(void 0))}),[t,n,r]),null},Oq={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},fde=co({name:"brush",initialState:Oq,reducers:{setBrushSettings(e,t){return t.payload==null?Oq:t.payload}}});fde.actions.setBrushSettings;var wlt=fde.reducer;function Clt(e){return(e%180+180)%180}var Slt=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Clt(i),s=o*Math.PI/180,a=Math.atan(r/n),l=s>a&&s<Math.PI-a?r/Math.sin(s):n/Math.cos(s);return Math.abs(l)},xlt={dots:[],areas:[],lines:[]},gde=co({name:"referenceElements",initialState:xlt,reducers:{addDot:(e,t)=>
1058{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=la(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=la(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(Kt(t.payload))},removeLine:(e,t)=>{var n=la(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),cv=gde.actions;cv.addDot;cv.removeDot;cv.addArea;cv.removeArea;cv.addLine;cv.removeLine;var Elt=gde.reducer;function Rlt(e,t){return Olt(e)||Plt(e,t)||Tlt(e,t)||Alt()}function Alt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1059In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tlt(e,t){if(e){if(typeof e=="string")return Dq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dq(e,t):void 0}}function Dq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Plt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function Olt(e){if(Array.isArray(e))return e}var Dlt=R.createContext(void 0),Mlt=e=>{var t=e.children,n=R.useState("".concat($b("recharts"),"-clip")),r=Rlt(n,1),i=r[0],o=bA();if(o==null)return null;var s=o.x,a=o.y,l=o.width,u=o.height;return R.createElement(Dlt.Provider,{value:i},R.createElement("defs",null,R.createElement("clipPath",{id:i},R.createElement("rect",{x:s,y:a,height:u,width:l}))),t)};function Ilt(){}function Mq(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function _lt(e,t,n){return qy(e,t,void 0,void 0,void 0,void 0,n)}function qy(e,t,n,r,i,o,s){const a=s(e,t,n,r,i,o);if(a!==void 0)return a;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return fb(e,t,o,s)}return fb(e,t,o,s)}function fb(e,t,n,r){if(Object.is(e,t))return!0;let i=Dm(e),o=Dm(t);if(i==="[object Arguments]"&&(i=p1),o==="[object Arguments]"&&(o=p1),i!==o)return!1;switch(i){case YB:return e.toString()===t.toString();case XB:return cb(e.valueOf(),t.valueOf());case ZB:case kse:case Fse:return Object.is(e.valueOf(),t.valueOf());case Ise:return e.source===t.source&&e.flags===t.flags;case o9e:return e===t}n=n??new Map;const s=n.get(e),a=n.get(t);if(s!=null&&a!=null)return s===t;n.set(e,t),n.set(t,e);try{switch(i){case Lse:if(e.size!==t.size)return!1;for(const[l,u]of e.entries())if(!t.has(l)||!qy(u,t.get(l),l,e,t,n,r))return!1;return!0;case Nse:{if(e.size!==t.size)return!1;const l=Array.from(e.values()),u=Array.from(t.values());for(let d=0;d<l.length;d++){const f=l[d],g=u.findIndex(m=>qy(f,m,void 0,e,t,n,r));if(g===-1)return!1;u.splice(g,1)}return!0}case Bse:case zse:case Gse:case jse:case Use:case a9e:case Wse:case $se:case qse:case l9e:case Kse:case Yse:if(sk(e)!==sk(t)||e.length!==t.length)return!1;for(let l=0;l<e.length;l++)if(!qy(e[l],t[l],l,e,t,n,r))return!1;return!0;case Hse:return e.byteLength!==t.byteLength?!1:fb(new Uint8Array(e),new Uint8Array(t),n,r);case Vse:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:fb(new Uint8Array(e),new Uint8Array(t),n,r);case s9e:return e.name===t.name&&e.message===t.message;case p1:{if(!(fb(e.constructor,t.constructor,n,r)||Mq(e)&&Mq(t)))return!1;const l=[...Object.keys(e),...ok(e)],u=[...Object.keys(t),...ok(t)];if(l.length!==u.length)return!1;for(let d=0;d<l.length;d++){const f=l[d],g=e[f];if(!Object.hasOwn(t,f))return!1;const m=t[f];if(!qy(g,m,f,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function Flt(e,t){return _lt(e,t,Ilt)}function pde(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function klt(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Slt(r,n)}function Llt(e,t,n){var r=n==="width",i=e.x,o=e.y,s=e.width,a=e.height;return t===1?{start:r?i:o,end:r?i+s:o+a}:{start:r?i+s:o+a,end:r?i:o}}function rw(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Nlt(e,t){return pde(e,t+1)}function Blt(e,t,n,r,i){for(var o=(r||[]).slice(),s=t.start,a=t.end,l=0,u=1,d=s,f=function(){var y=r?.[l];
1059if(y===void 0)return{v:pde(r,u)};var b=l,w,C=()=>(w===void 0&&(w=n(y,b)),w),E=y.coordinate,A=l===0||rw(e,E,C,d,a);A||(l=0,d=s,u+=1),A&&(d=E+e*(C()/2+i),l+=u)},g;u<=o.length;)if(g=f(),g)return g.v;return[]}function Hlt(e,t,n,r,i){var o=(r||[]).slice(),s=o.length;if(s===0)return[];for(var a=t.start,l=t.end,u=1;u<=s;u++){for(var d=(s-1)%u,f=a,g=!0,m=function(){var T=r[b];if(T==null)return 0;var P=b,O,D=()=>(O===void 0&&(O=n(T,P)),O),F=T.coordinate,L=b===d||rw(e,F,D,f,l);if(!L)return g=!1,1;L&&(f=F+e*(D()/2+i))},y,b=d;b<s&&(y=m(),!(y!==0&&y===1));b+=u);if(g){for(var w=[],C=d;C<s;C+=u){var E=r[C];E!=null&&w.push(E)}return w}}return[]}function Iq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iq(Object(n),!0).forEach(function(r){Vlt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vlt(e,t,n){return(t=zlt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zlt(e){var t=Glt(e,"string");return typeof t=="symbol"?t:t+""}function Glt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jlt(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,a=t.start,l=t.end,u=function(g){var m=o[g];if(m==null)return 1;var y=m,b,w=()=>(b===void 0&&(b=n(m,g)),b);if(g===s-1){var C=e*(y.coordinate+e*w()/2-l);o[g]=y=Ki(Ki({},y),{},{tickCoord:C>0?y.coordinate-C*e:y.coordinate})}else o[g]=y=Ki(Ki({},y),{},{tickCoord:y.coordinate});if(y.tickCoord!=null){var E=rw(e,y.tickCoord,w,a,l);E&&(l=y.tickCoord-e*(w()/2+i),o[g]=Ki(Ki({},y),{},{isShow:!0}))}},d=s-1;d>=0;d--)u(d);return o}function Ult(e,t,n,r,i,o){var s=(r||[]).slice(),a=s.length,l=t.start,u=t.end;if(o){var d=r[a-1];if(d!=null){var f=n(d,a-1),g=e*(d.coordinate+e*f/2-u);if(s[a-1]=d=Ki(Ki({},d),{},{tickCoord:g>0?d.coordinate-g*e:d.coordinate}),d.tickCoord!=null){var m=rw(e,d.tickCoord,()=>f,l,u);m&&(u=d.tickCoord-e*(f/2+i),s[a-1]=Ki(Ki({},d),{},{isShow:!0}))}}}for(var y=o?a-1:a,b=function(E){var A=s[E];if(A==null)return 1;var T=A,P,O=()=>(P===void 0&&(P=n(A,E)),P);if(E===0){var D=e*(T.coordinate-e*O()/2-l);s[E]=T=Ki(Ki({},T),{},{tickCoord:D<0?T.coordinate-D*e:T.coordinate})}else s[E]=T=Ki(Ki({},T),{},{tickCoord:T.coordinate});if(T.tickCoord!=null){var F=rw(e,T.tickCoord,O,l,u);F&&(l=T.tickCoord+e*(O()/2+i),s[E]=Ki(Ki({},T),{},{isShow:!0}))}},w=0;w<y;w++)b(w);return s}function N3(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,a=e.orientation,l=e.interval,u=e.tickFormatter,d=e.unit,f=e.angle;if(!i||!i.length||!r)return[];if(ze(l)||Bw.isSsr){var g;return(g=Nlt(i,ze(l)?l:0))!==null&&g!==void 0?g:[]}var m=[],y=a==="top"||a==="bottom"?"width":"height",b=d&&y==="width"?hb(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=(P,O)=>{var D=typeof u=="function"?u(P.value,O):P.value;return y==="width"?klt(hb(D,{fontSize:t,letterSpacing:n}),b,f):hb(D,{fontSize:t,letterSpacing:n})[y]},C=i[0],E=i[1],A=i.length>=2&&C!=null&&E!=null?Lr(E.coordinate-C.coordinate):1,T=Llt(o,A,y);return l==="equidistantPreserveStart"?Blt(A,T,w,i,s):l==="equidistantPreserveEnd"?Hlt(A,T,w,i,s):(l==="preserveStart"||l==="preserveStartEnd"?m=Ult(A,T,w,i,s,l==="preserveStartEnd"):m=jlt(A,T,w,i,s),m.filter(P=>P.isShow))}var Wlt=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,i=r,o=e.tickSize,s=o===void 0?0:o,a=e.tickMargin,l=a===void 0?0:a,u=0;if(t){Array.from(t).forEach(m=>{if(m){var y=m.getBoundingClientRect();y.width>u&&(u=y.width)}});var d=n?n.getBoundingClientRect().width:0,f=s+l,g=u+f+d+(n?i:0);return Math.round(g)}return 0},$lt=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,i=r,o=e.tickSize,s=o===void 0?0:o,a=e.tickMargin,l=a===void 0?0:a,u=0;if(t){Array.from(t).forEach(m=>{if(m){var y=m.getBoundingClientRect();y.height>u&&(u=y.height)}});var d=n?n.getBoundingClientRect().height:0,f=s+l,g=u+f+d+(n?i:0);return Math.round(g)}return 0},qlt={xAxis:{},yAxis:{}},mde=co({name:"renderedTicks",initialState:qlt,reducers:{setRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,i=n.axisId,o=n.ticks;e[r][i]=Kt(o)},removeRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,i=n.axisId;delete e[r][i]}}}),vde=mde.actions,Klt=vde.setRenderedTicks,Ylt=vde.removeRenderedTicks,Xlt=mde.reducer,Zlt=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function _q(e,t){return tut(e)||eut(e,t)||Jlt(e,t)||Qlt()}
1059function Qlt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1060In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jlt(e,t){if(e){if(typeof e=="string")return Fq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fq(e,t):void 0}}function Fq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eut(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function tut(e){if(Array.isArray(e))return e}function nut(e,t){if(e==null)return{};var n,r,i=rut(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rut(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ug.apply(null,arguments)}function kq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kq(Object(n),!0).forEach(function(r){iut(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iut(e,t,n){return(t=out(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function out(e){var t=sut(e,"string");return typeof t=="symbol"?t:t+""}function sut(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cc={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:Wn.axis};function aut(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.orientation,s=e.mirror,a=e.axisLine,l=e.otherSvgProps;if(!a)return null;var u=dr(dr(dr({},l),ao(a)),{},{fill:"none"});if(o==="top"||o==="bottom"){var d=+(o==="top"&&!s||o==="bottom"&&s);u=dr(dr({},u),{},{x1:t,y1:n+d*i,x2:t+r,y2:n+d*i})}else{var f=+(o==="left"&&!s||o==="right"&&s);u=dr(dr({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+i})}return R.createElement("line",ug({},u,{className:Et("recharts-cartesian-axis-line",ru(a,"className"))}))}function lut(e,t,n,r,i,o,s,a,l){var u,d,f,g,m,y,b=a?-1:1,w=e.tickSize||s,C=ze(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":u=d=e.coordinate,g=n+ +!a*i,f=g-b*w,y=f-b*l,m=C;break;case"left":f=g=e.coordinate,d=t+ +!a*r,u=d-b*w,m=u-b*l,y=C;break;case"right":f=g=e.coordinate,d=t+ +a*r,u=d+b*w,m=u+b*l,y=C;break;default:u=d=e.coordinate,g=n+ +a*i,f=g+b*w,y=f+b*l,m=C;break}return{line:{x1:u,y1:f,x2:d,y2:g},tick:{x:m,y}}}function uut(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function cut(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function dut(e){var t=e.option,n=e.tickProps,r=e.value,i,o=Et(n.className,"recharts-cartesian-axis-tick-value");if(R.isValidElement(t))i=R.cloneElement(t,dr(dr({},n),{},{className:o}));else if(typeof t=="function")i=t(dr(dr({},n),{},{className:o}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Et(s,zce(t))),i=R.createElement(sA,ug({},n,{className:s}),r)}return i}function hut(e){var t=e.ticks,n=e.axisType,r=e.axisId,i=mn(),o=R.useRef(null);return R.useEffect(()=>{if(!(r==null||n==null)){var s=t.map(l=>
1060({value:l.value,coordinate:l.coordinate,offset:l.offset,index:l.index})),a=o.current;a!=null&&a.axisId===r&&a.axisType===n&&Flt(a.ticks,s)||(o.current={ticks:s,axisId:r,axisType:n},i(Klt({ticks:s,axisId:r,axisType:n})))}},[i,t,r,n]),R.useEffect(()=>r==null||n==null?Pc:()=>{i(Ylt({axisId:r,axisType:n}))},[i,r,n]),null}var fut=R.forwardRef((e,t)=>{var n=e.ticks,r=n===void 0?[]:n,i=e.tick,o=e.tickLine,s=e.stroke,a=e.tickFormatter,l=e.unit,u=e.padding,d=e.tickTextProps,f=e.orientation,g=e.mirror,m=e.x,y=e.y,b=e.width,w=e.height,C=e.tickSize,E=e.tickMargin,A=e.fontSize,T=e.letterSpacing,P=e.getTicksConfig,O=e.events,D=e.axisType,F=e.axisId,L=N3(dr(dr({},P),{},{ticks:r}),A,T),N=ao(P),M=Qd(i),k=Ece(N.textAnchor)?N.textAnchor:uut(f,g),B=cut(f,g),j={};typeof o=="object"&&(j=o);var z=dr(dr({},N),{},{fill:"none"},j),H=L.map(Y=>dr({entry:Y},lut(Y,m,y,b,w,f,C,g,E))),G=H.map(Y=>{var K=Y.entry,se=Y.line;return R.createElement(Dn,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(K.value,"-").concat(K.coordinate,"-").concat(K.tickCoord)},o&&R.createElement("line",ug({},z,se,{className:Et("recharts-cartesian-axis-tick-line",ru(o,"className"))})))}),$=H.map((Y,K)=>{var se,re,ue=Y.entry,U=Y.tick,X=dr(dr(dr(dr({verticalAnchor:B},N),{},{textAnchor:k,stroke:"none",fill:s},U),{},{index:K,payload:ue,visibleTicksCount:L.length,tickFormatter:a,padding:u},d),{},{angle:(se=(re=d?.angle)!==null&&re!==void 0?re:N.angle)!==null&&se!==void 0?se:0}),be=dr(dr({},X),M);return R.createElement(Dn,ug({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(ue.value,"-").concat(ue.coordinate,"-").concat(ue.tickCoord)},Ag(O,ue,K)),i&&R.createElement(dut,{option:i,tickProps:be,value:"".concat(typeof a=="function"?a(ue.value,K):ue.value).concat(l||"")}))});return R.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(D,"-ticks")},R.createElement(hut,{ticks:L,axisId:F,axisType:D}),$.length>0&&R.createElement(hi,{zIndex:Wn.label},R.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(D,"-tick-labels"),ref:t},$)),G.length>0&&R.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(D,"-tick-lines")},G))}),gut=R.forwardRef((e,t)=>{var n=e.axisLine,r=e.width,i=e.height,o=e.className,s=e.hide,a=e.ticks,l=e.axisType,u=e.axisId,d=nut(e,Zlt),f=R.useState(""),g=_q(f,2),m=g[0],y=g[1],b=R.useState(""),w=_q(b,2),C=w[0],E=w[1],A=R.useRef(null);R.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var P;return Wlt({ticks:A.current,label:(P=e.labelRef)===null||P===void 0?void 0:P.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})},getCalculatedHeight:()=>{var P;return $lt({ticks:A.current,label:(P=e.labelRef)===null||P===void 0?void 0:P.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var T=R.useCallback(P=>{if(P){var O=P.getElementsByClassName("recharts-cartesian-axis-tick-value");A.current=O;var D=O[0];if(D){var F=window.getComputedStyle(D),L=F.fontSize,N=F.letterSpacing;(L!==m||N!==C)&&(y(L),E(N))}}},[m,C]);return s||r!=null&&r<=0||i!=null&&i<=0?null:R.createElement(hi,{zIndex:e.zIndex},R.createElement(Dn,{className:Et("recharts-cartesian-axis",o)},R.createElement(aut,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:ao(e)}),R.createElement(fut,{ref:T,axisType:l,events:d,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:C,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:a,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:u}),R.createElement(Zit,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},R.createElement(aot,{label:e.label,labelRef:e.labelRef}),e.children)))}),B3=R.forwardRef((e,t)=>{var n=gr(e,cc);return R.createElement(gut,ug({},n,{ref:t}))});B3.displayName="CartesianAxis";var put={grid:{stroke:"#ccc",fill:"none"}},yde=R.createContext(put);yde.Provider;var mut=()=>R.useContext(yde),vut=["x1","y1","x2","y2","key"],yut=["offset"],but=["xAxisId","yAxisId"],wut=["xAxisId","yAxisId"];function Lq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1060t%2?Lq(Object(n),!0).forEach(function(r){Cut(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cut(e,t,n){return(t=Sut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sut(e){var t=xut(e,"string");return typeof t=="symbol"?t:t+""}function xut(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(null,arguments)}function hE(e,t){if(e==null)return{};var n,r,i=Eut(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Eut(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Rut=e=>{var t=e.fill;if(!t||t==="none")return null;var n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,a=e.ry;return R.createElement("rect",{x:r,y:i,ry:a,width:o,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function bde(e){var t=e.option,n=e.lineItemProps,r;if(R.isValidElement(t))r=R.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var i,o=n.x1,s=n.y1,a=n.x2,l=n.y2,u=n.key,d=hE(n,vut),f=(i=ao(d))!==null&&i!==void 0?i:{};f.offset;var g=hE(f,yut),m=Array.isArray(g.strokeDasharray)?g.strokeDasharray.join(","):g.strokeDasharray;r=R.createElement("line",bf({},g,{strokeDasharray:m,x1:o,y1:s,x2:a,y2:l,fill:"none",key:u}))}return r}function Aut(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;e.xAxisId,e.yAxisId;var s=hE(e,but),a=o.map((l,u)=>{var d=Xi(Xi({},s),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(u),index:u});return R.createElement(bde,{key:"line-".concat(u),option:i,lineItemProps:d})});return R.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Tut(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;e.xAxisId,e.yAxisId;var s=hE(e,wut),a=o.map((l,u)=>{var d=Xi(Xi({},s),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(u),index:u});return R.createElement(bde,{option:i,lineItemProps:d,key:"line-".concat(u)})});return R.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Put(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,a=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length||a==null)return null;var d=a.map(g=>Math.round(g+i-i)).sort((g,m)=>g-m);i!==d[0]&&d.unshift(0);var f=d.map((g,m)=>{var y=d[m+1],b=y==null,w=b?i+s-g:y-g;if(w<=0)return null;var C=m%t.length;return R.createElement("rect",{key:"react-".concat(m),y:g,x:r,height:w,width:o,stroke:"none",fill:t[C],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return R.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Out(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,a=e.width,l=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map(g=>Math.round(g+o-o)).sort((g,m)=>g-m);o!==d[0]&&d.unshift(0);var f=d.map((g,m)=>{var y=d[m+1],b=y==null,w=b?o+a-g:y-g;if(w<=0)return null;var C=m%r.length;return R.createElement("rect",{key:"react-".concat(m),x:g,y:s,width:w,height:l,stroke:"none",fill:r[C],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return R.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Dut=(e,t)=>{var n=e.xAxis,r=e.width,i=e.height,o=e.offset;return Lae(N3(Xi(Xi(Xi({},cc),n),{}
1060,{ticks:Nae(n),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},Mut=(e,t)=>{var n=e.yAxis,r=e.width,i=e.height,o=e.offset;return Lae(N3(Xi(Xi(Xi({},cc),n),{},{ticks:Nae(n),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},Iut={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Wn.grid};function _ut(e){var t,n,r,i,o,s,a=uH(),l=cH(),u=$ae(),d=Xi(Xi({},gr(e,Iut)),{},{x:ze(e.x)?e.x:u.left,y:ze(e.y)?e.y:u.top,width:ze(e.width)?e.width:u.width,height:ze(e.height)?e.height:u.height}),f=d.xAxisId,g=d.yAxisId,m=d.x,y=d.y,b=d.width,w=d.height,C=d.syncWithTicks,E=d.horizontalValues,A=d.verticalValues,T=gi(),P=$e(G=>T9(G,"xAxis",f,T)),O=$e(G=>T9(G,"yAxis",g,T)),D=mut(),F={stroke:(t=d.stroke)!==null&&t!==void 0?t:D.grid.stroke,strokeWidth:(n=d.strokeWidth)!==null&&n!==void 0?n:D.grid.strokeWidth,strokeOpacity:(r=d.strokeOpacity)!==null&&r!==void 0?r:D.grid.strokeOpacity,strokeDasharray:(i=d.strokeDasharray)!==null&&i!==void 0?i:D.grid.strokeDasharray};if(!ou(b)||!ou(w)||!ze(m)||!ze(y))return null;var L=d.verticalCoordinatesGenerator||Dut,N=d.horizontalCoordinatesGenerator||Mut,M=d.horizontalPoints,k=d.verticalPoints;if((!M||!M.length)&&typeof N=="function"){var B=E&&E.length,j=N({yAxis:O?Xi(Xi({},O),{},{ticks:B?E:O.ticks}):void 0,width:a??b,height:l??w,offset:u},B?!0:C);Hx(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof j,"]")),Array.isArray(j)&&(M=j)}if((!k||!k.length)&&typeof L=="function"){var z=A&&A.length,H=L({xAxis:P?Xi(Xi({},P),{},{ticks:z?A:P.ticks}):void 0,width:a??b,height:l??w,offset:u},z?!0:C);Hx(Array.isArray(H),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof H,"]")),Array.isArray(H)&&(k=H)}return R.createElement(hi,{zIndex:d.zIndex},R.createElement("g",{className:"recharts-cartesian-grid"},R.createElement(Rut,{fill:(o=d.fill)!==null&&o!==void 0?o:D.grid.fill,fillOpacity:(s=d.fillOpacity)!==null&&s!==void 0?s:D.grid.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),R.createElement(Put,bf({},d,{horizontalPoints:M})),R.createElement(Out,bf({},d,{verticalPoints:k})),R.createElement(Aut,bf({},d,F,{offset:u,horizontalPoints:M,xAxis:P,yAxis:O})),R.createElement(Tut,bf({},d,F,{offset:u,verticalPoints:k,xAxis:P,yAxis:O}))))}_ut.displayName="CartesianGrid";var Fut=["animationElapsedTime","isAnimating","isEntrance","visibleLength","strokeDasharray","connectNulls"];function Vk(){return Vk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vk.apply(null,arguments)}function kut(e,t){if(e==null)return{};var n,r,i=Lut(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lut(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Nut(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function wde(e,t){return"".concat(t,"px ").concat(e,"px")}function But(e){return e.length%2!==0?[...e,...e]:e}function Hut(e,t){for(var n=[],r=0;r<t;++r)n.push(...e);return n}function Vut(e,t,n){var r=But(n),i=r.reduce((m,y)=>m+y,0);if(!i)return wde(t,e);for(var o=Math.floor(e/i),s=e%i,a=[],l=0,u=0;l<r.length;u+=(d=r[l])!==null&&d!==void 0?d:0,++l){var d,f=r[l];if(f!=null&&u+f>s){a=[...r.slice(0,l),s-u];break}}var g=a.length%2===0?[0,t]:[t];return[...Hut(r,o),...a,...g].map(m=>"".concat(m,"px")).join(", ")}function zut(e,t,n){if(e){var r="".concat(e).split(/[,\s]+/gim).map(i=>parseFloat(i));return Vut(n,t,r)}return wde(t,n)}function Gut(e){e.animationElapsedTime,e.isAnimating,e.isEntrance;var t=e.visibleLength,n=e.strokeDasharray,r=e.connectNulls,i=kut(e,Fut),o=r??!1,s;if(t!=null){var a,l=i.pathRef,u=Nut((a=l?.current)!==null&&a!==void 0?a:null);s=zut(n,u,t)}else n!=null&&(s=String(n));return R.createElement(dm,Vk({},i,{connectNulls:o,strokeDasharray:s}))}function jut(e){var t=R.useRef(0),n=R.useRef(0),r=R.useRef(!1),i=R.useRef(e);return i.current!==e&&(t.current=n.current,i.current=e),R.useCallback((o,s)=>{if(r.current)return null;var a=Math.min(tc(t.current+o*s),s);return o>0&&s>0&&(n.current=Math.max(n.current,a),a>=s)?(r.current=!0,null):a},[])}var Uut={},Cde=co({name:"errorBars",initialState:Uut,reducers:{addErrorBar:(e,t)=>
1060{var n=t.payload,r=n.itemId,i=n.errorBar;e[r]||(e[r]=[]),e[r].push(i)},replaceErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.prev,o=n.next;e[r]&&(e[r]=e[r].map(s=>s.dataKey===i.dataKey&&s.direction===i.direction?o:s))},removeErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.errorBar;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==i.dataKey||o.direction!==i.direction))}}}),H3=Cde.actions;H3.addErrorBar;H3.replaceErrorBar;H3.removeErrorBar;var Wut=Cde.reducer,$ut=["children"];function qut(e,t){if(e==null)return{};var n,r,i=Kut(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Kut(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Yut={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Xut=R.createContext(Yut);function Sde(e){var t=e.children,n=qut(e,$ut);return R.createElement(Xut.Provider,{value:n},t)}function SA(e,t){var n,r,i=$e(u=>Mc(u,e)),o=$e(u=>Ic(u,t)),s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:Ur.allowDataOverflow,a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Wr.allowDataOverflow,l=s||a;return{needClip:l,needClipX:s,needClipY:a}}function V3(e){var t=e.xAxisId,n=e.yAxisId,r=e.clipPathId,i=bA(),o=SA(t,n),s=o.needClipX,a=o.needClipY,l=o.needClip,u=$e(A=>Due(A,t,!1)),d=$e(A=>Mue(A,n,!1));if(!l||!i)return null;var f=i.x,g=i.y,m=i.width,y=i.height,b=s&&u?Math.min(u[0],u[1]):f-m/2,w=a&&d?Math.min(d[0],d[1]):g-y/2,C=s&&u?Math.abs(u[1]-u[0]):m*2,E=a&&d?Math.abs(d[1]-d[0]):y*2;return R.createElement("clipPath",{id:"clipPath-".concat(r)},R.createElement("rect",{x:b,y:w,width:C,height:E}))}var xde=(e,t,n,r)=>lu(e,"xAxis",t,r),Ede=(e,t,n,r)=>au(e,"xAxis",t,r),Rde=(e,t,n,r)=>lu(e,"yAxis",n,r),Ade=(e,t,n,r)=>au(e,"yAxis",n,r),Zut=ne([wt,xde,Rde,Ede,Ade],(e,t,n,r,i)=>wa(e,"xAxis")?ga(t,r,!1):ga(n,i,!1)),Qut=(e,t,n,r,i)=>i;function Jut(e){return e.type==="line"}var ect=ne([Yw,Qut],(e,t)=>e.filter(Jut).find(n=>n.id===t)),tct=ne([wt,xde,Rde,Ede,Ade,ect,Zut,Hw],(e,t,n,r,i,o,s,a)=>{var l=a.chartData,u=a.dataStartIndex,d=a.dataEndIndex;if(!(o==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null||e!=="horizontal"&&e!=="vertical")){var f=o.dataKey,g=o.data,m;if(g!=null&&g.length>0?m=g:m=l?.slice(u,d+1),m!=null)return Sct({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:f,bandSize:s,displayedData:m})}});function Tde(e){var t=Qd(e),n=3,r=2;if(t!=null){var i=t.r,o=t.strokeWidth,s=Number(i),a=Number(o);return(Number.isNaN(s)||s<0)&&(s=n),(Number.isNaN(a)||a<0)&&(a=r),{r:s,strokeWidth:a}}return{r:n,strokeWidth:r}}var nct=["id"],rct=["type","layout","connectNulls","needClip","shape","strokeDasharray"],ict=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fE.apply(null,arguments)}function z3(e,t){if(e==null)return{};var n,r,i=oct(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oct(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Nq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nq(Object(n),!0).forEach(function(r){sct(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nq(Object(n)).forEac
1060h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sct(e,t,n){return(t=act(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function act(e){var t=lct(e,"string");return typeof t=="symbol"?t:t+""}function lct(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uct(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function cct(e){var t=0,n=0;for(var r of e)r.status==="matched"&&r.prev.x!=null&&r.next.x!=null&&(t+=r.next.x-r.prev.x,n++);return n>0?t/n:0}var dct=(e,t)=>{if(e==null)return[];if(t===1)return e.flatMap(a=>a.status==="removed"?[]:[a.next]);var n=cct(e),r=[];for(var i of e)if(i.status==="matched")r.push(Vl(Vl({},i.next),{},{x:hn(i.prev.x,i.next.x,t),y:hn(i.prev.y,i.next.y,t)}));else if(i.status==="added")if(i.next.x!=null){var o=i.next.x-n;r.push(Vl(Vl({},i.next),{},{x:hn(o,i.next.x,t),y:i.next.y}))}else r.push(i.next);else if(i.status==="removed"&&i.prev.x!=null){var s=i.prev.x+n;r.push(Vl(Vl({},i.prev),{},{x:hn(i.prev.x,s,t),y:i.prev.y}))}return r},G3={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",animationInterpolateFn:dct,animationMatchBy:mA,connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",shape:Gut,stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:Wn.line,type:"linear"},hct=e=>{var t=e.dataKey,n=e.name,r=e.stroke,i=e.legendType,o=e.hide;return[{inactive:o,dataKey:t,type:i,color:r,value:Oc(n,t),payload:e}]},fct=R.memo(e=>{var t=e.dataKey,n=e.data,r=e.stroke,i=e.strokeWidth,o=e.fill,s=e.name,a=e.hide,l=e.unit,u=e.formatter,d=e.tooltipType,f=e.id,g={dataDefinedOnItem:n,getPosition:Pc,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Oc(s,t),hide:a,type:d,color:r,unit:l,formatter:u,graphicalItemId:f}};return R.createElement(sC,{tooltipEntrySettings:g})});function gct(e){var t=e.clipPathId,n=e.points,r=e.props,i=r.dot,o=r.dataKey,s=r.needClip;r.id;var a=z3(r,nct),l=ao(a);return R.createElement(Zce,{points:n,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:l,needClip:s,clipPathId:t})}function pct(e){var t=e.showLabels,n=e.children,r=e.points,i=R.useMemo(()=>r?.map(o=>{var s,a,l={x:(s=o.x)!==null&&s!==void 0?s:0,y:(a=o.y)!==null&&a!==void 0?a:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Vl(Vl({},l),{},{value:o.value,payload:o.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[r]);return R.createElement(R3,{value:t?i:void 0},n)}function mct(e){var t=e.clipPathId,n=e.pathRef,r=e.points,i=e.props,o=e.animationElapsedTime,s=e.isAnimating,a=e.isEntrance,l=e.visibleLength,u=i.type,d=i.layout,f=i.connectNulls,g=i.needClip,m=i.shape,y=i.strokeDasharray,b=z3(i,rct),w=Vl(Vl({},ts(b)),{},{fill:"none",className:"recharts-line-curve",clipPath:g?"url(#clipPath-".concat(t,")"):void 0,points:r,type:u,layout:d,connectNulls:f,strokeDasharray:y??i.strokeDasharray,pathRef:n,animationElapsedTime:o,isAnimating:s,isEntrance:i.animateNewValues?a:!1,visibleLength:l});return R.createElement(R.Fragment,null,r?.length>1&&R.createElement(oC,{option:m,DefaultShape:G3.shape,shapeProps:w}),R.createElement(gct,{points:r,clipPathId:t,props:i}))}function vct(e){var t=e.clipPathId,n=e.props,r=e.pathRef,i=e.previousPointsRef,o=n.points,s=n.isAnimationActive,a=n.animationBegin,l=n.animationDuration,u=n.animationEasing,d=n.animationMatchBy,f=n.animationInterpolateFn,g=n.layout,m=uct(r.current),y=aC(n.onAnimationStart,n.onAnimationEnd),b=y.isAnimating,w=y.handleAnimationStart,C=y.handleAnimationEnd,E=!b,A=jut(o),T=R.useCallback(P=>P>0&&m>0,[m]);return R.createElement(pct,{points:o,showLabels:E},n.children,R.createElement(lC,{animationInput:o,animationIdPrefix:"recharts-line-",items:o,previousItemsRef:i,isAnimationActive:s,animationBegin:a,animationDuration:l,animationEasing:u,onAnimationStart:w,onAnimationEnd:C,animationInterpolateFn:f,animationMatchBy:d,shouldUpdatePreviousRef:T,layout:g},(P,O,D)=>{var F=b||O<1,L=F?A(O,m):null;return R.createElement(mct,{props:n,points:P,clipPathId:t,pathRef:r,animationElapsedTime:O,isAnimating:F,isEntrance:D,visibleLength:L})}),R.createElement(rC,{label:n.label}))}function yct(e){var t=e.clipPathId,n=e.props,r=R.useRef(null),i=R.useRef(null);return R.createElement(vct,{props:n,clipPathId:t,previousPointsRef:r,pathRef:i})}var bct=(e,t)=>
1060{var n,r;return{x:(n=e.x)!==null&&n!==void 0?n:void 0,y:(r=e.y)!==null&&r!==void 0?r:void 0,value:e.value,errorVal:Gt(e.payload,t)}};class wct extends R.Component{render(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,s=t.xAxisId,a=t.yAxisId,l=t.top,u=t.left,d=t.width,f=t.height,g=t.id,m=t.needClip,y=t.zIndex;if(n)return null;var b=Et("recharts-line",o),w=g,C=Tde(r),E=C.r,A=C.strokeWidth,T=D3(r),P=E*2+A,O=m?"url(#clipPath-".concat(T?"":"dots-").concat(w,")"):void 0;return R.createElement(hi,{zIndex:y},R.createElement(Dn,{className:b},m&&R.createElement("defs",null,R.createElement(V3,{clipPathId:w,xAxisId:s,yAxisId:a}),!T&&R.createElement("clipPath",{id:"clipPath-dots-".concat(w)},R.createElement("rect",{x:u-P/2,y:l-P/2,width:d+P,height:f+P}))),R.createElement(Sde,{xAxisId:s,yAxisId:a,data:i,dataPointFormatter:bct,errorBarOffset:0},R.createElement(yct,{props:this.props,clipPathId:w}))),R.createElement(Nk,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:O}))}}function Cct(e){var t=gr(e,G3),n=t.activeDot,r=t.animateNewValues,i=t.animationBegin,o=t.animationDuration,s=t.animationEasing,a=t.connectNulls,l=t.dot,u=t.hide,d=t.isAnimationActive,f=t.label,g=t.legendType,m=t.xAxisId,y=t.yAxisId,b=t.id,w=z3(t,ict),C=SA(m,y),E=C.needClip,A=bA(),T=uh(),P=gi(),O=$e(M=>tct(M,m,y,P,b));if(T!=="horizontal"&&T!=="vertical"||O==null||A==null)return null;var D=A.height,F=A.width,L=A.x,N=A.y;return R.createElement(wct,fE({},w,{id:b,connectNulls:a,dot:l,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:s,isAnimationActive:d,hide:u,label:f,legendType:g,xAxisId:m,yAxisId:y,points:O,layout:T,height:D,width:F,left:L,top:N,needClip:E}))}function Sct(e){var t=e.layout,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,s=e.dataKey,a=e.bandSize,l=e.displayedData;return l.map((u,d)=>{var f=Gt(u,s);if(t==="horizontal"){var g=Nx({axis:n,ticks:i,bandSize:a,entry:u,index:d}),m=Mn(f)?null:r.scale.map(f);return{x:g,y:m??null,value:f,payload:u}}var y=Mn(f)?null:n.scale.map(f),b=Nx({axis:r,ticks:o,bandSize:a,entry:u,index:d});return y==null||b==null?null:{x:y,y:b,value:f,payload:u}}).filter(Boolean)}function xct(e){var t=gr(e,G3),n=gi();return R.createElement(uC,{id:t.id,type:"line"},r=>R.createElement(R.Fragment,null,R.createElement(M3,{legendPayload:hct(t)}),R.createElement(fct,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:r}),R.createElement(_3,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),R.createElement(Cct,fE({},t,{id:r}))))}var Ect=R.memo(xct,Tg);Ect.displayName="Line";function pu(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:Qce}function mu(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:Qce}var Pde=(e,t,n)=>lu(e,"xAxis",pu(e,t),n),Ode=(e,t,n)=>au(e,"xAxis",pu(e,t),n),Dde=(e,t,n)=>lu(e,"yAxis",mu(e,t),n),Mde=(e,t,n)=>au(e,"yAxis",mu(e,t),n),Rct=ne([wt,Pde,Dde,Ode,Mde],(e,t,n,r,i)=>wa(e,"xAxis")?ga(t,r,!1):ga(n,i,!1)),Act=(e,t)=>t,j3=ne([Yw,Act],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),Ide=e=>{var t=wt(e),n=wa(t,"xAxis");return n?"yAxis":"xAxis"},Tct=(e,t)=>{var n=Ide(e);return n==="yAxis"?mu(e,t):pu(e,t)},_de=(e,t,n)=>iE(e,Ide(e),Tct(e,t),n),Pct=ne([j3,_de],(e,t)=>{var n;if(!(e==null||t==null)){var r=e.stackId,i=WR(e);if(!(r==null||i==null)){var o=(n=t[r])===null||n===void 0?void 0:n.stackedData,s=o?.find(a=>a.key===i);if(s!=null)return s.map(a=>[a[0],a[1]])}}}),Oct=ne([j3,_de],(e,t)=>{if(!(e==null||e.stackId==null||t==null)){var n=t[e.stackId];if(n!=null)return n.graphicalItems.map(r=>r.dataKey).filter(So)}}),Dct=ne([wt,Pde,Dde,Ode,Mde,Pct,cle,Rct,j3,XZe,Oct],(e,t,n,r,i,o,s,a,l,u,d)=>{var f=s.chartData,g=s.dataStartIndex,m=s.dataEndIndex;if(!(l==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||a==null)){var y=l.data,b;if(y&&y.length>0?b=y:b=f?.slice(g,m+1),b!=null)return ndt({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:g,areaSettings:l,stackedData:o,displayedData:b,chartBaseValue:u,bandSize:a,stackDataKeys:d})}}),Mct=["animationElapsedTime","isAnimating","isEntrance","layout","isRange","stroke","connectNulls"],Ict=["id","baseLine"];function gb(){return gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gb.apply(null,arguments)}function Bq(e,t){if(e==null)return{};var n,r,i=_ct(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _ct(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}
1060function Fct(e){var t,n,r=e.alpha,i=e.baseLine,o=e.points,s=e.strokeWidth,a=(t=o[0])===null||t===void 0?void 0:t.x,l=(n=o[o.length-1])===null||n===void 0?void 0:n.x;if(!Ot(a)||!Ot(l))return null;var u=r*Math.abs(a-l),d=Math.max(...o.map(f=>f.y||0));return ze(i)?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(...i.map(f=>f.y||0),d)),ze(d)?R.createElement("rect",{x:a<l?a:a-u,y:0,width:u,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}function kct(e){var t,n,r=e.alpha,i=e.baseLine,o=e.points,s=e.strokeWidth,a=(t=o[0])===null||t===void 0?void 0:t.y,l=(n=o[o.length-1])===null||n===void 0?void 0:n.y;if(!Ot(a)||!Ot(l))return null;var u=r*Math.abs(a-l),d=Math.max(...o.map(f=>f.x||0));return ze(i)?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(...i.map(f=>f.x||0),d)),ze(d)?R.createElement("rect",{x:0,y:a<l?a:a-u,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(u)}):null}function Lct(e){var t=e.alpha,n=e.layout,r=e.points,i=e.baseLine,o=e.strokeWidth;return n==="vertical"?R.createElement(kct,{alpha:t,points:r,baseLine:i,strokeWidth:o}):R.createElement(Fct,{alpha:t,points:r,baseLine:i,strokeWidth:o})}function Nct(e){var t=e.animationElapsedTime,n=t===void 0?1:t,r=e.isAnimating,i=r===void 0?!1:r,o=e.isEntrance,s=o===void 0?!1:o,a=e.layout,l=e.isRange,u=e.stroke,d=e.connectNulls,f=Bq(e,Mct),g=a==="vertical"?"vertical":"horizontal",m=d??!1,y=qce(),b=f.id,w=f.baseLine,C=Bq(f,Ict),E=ao(C),A=R.createElement(dm,gb({},f,{id:b,baseLine:w,connectNulls:m,stroke:"none",className:"recharts-area-area",layout:g})),T=u!=="none"&&R.createElement(dm,gb({},E,{className:"recharts-area-curve",layout:g,type:f.type,connectNulls:m,fill:"none",stroke:u,points:f.points})),P=u!=="none"&&l&&Array.isArray(w)&&R.createElement(dm,gb({},E,{className:"recharts-area-curve",layout:g,type:f.type,connectNulls:m,fill:"none",stroke:u,points:w}));if(s&&(i||n<1)){var O;return R.createElement(Dn,null,R.createElement("defs",null,R.createElement("clipPath",{id:y},R.createElement(Lct,{alpha:n,points:(O=f.points)!==null&&O!==void 0?O:[],baseLine:w,layout:g,strokeWidth:f.strokeWidth}))),R.createElement(Dn,{clipPath:"url(#".concat(y,")")},A,T,P))}return R.createElement(R.Fragment,null,A,T,P)}var Bct=["id"],Hct=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gE.apply(null,arguments)}function Fde(e,t){if(e==null)return{};var n,r,i=Vct(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vct(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Hq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hq(Object(n),!0).forEach(function(r){zct(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zct(e,t,n){return(t=Gct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gct(e){var t=jct(e,"string");return typeof t=="symbol"?t:t+""}function jct(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uct=(e,t)=>e==null?[]:t===1?e.flatMap(n=>n.status==="removed"?[]:[n.next]):e.flatMap(n=>n.status==="matched"?[Hm(Hm({},n.next),{},{x:hn(n.prev.x,n.next.x,t),y:hn(n.prev.y,n.next.y,t)})]:n.status==="added"?[n.next]:[]),kde={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",animationMatchBy:mA,animationInterpolateFn:Uct,connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,shape:Nct,xAxisId:0,yAxisId:0,zIndex:Wn.area};function pE(e,t){return e&&e!=="none"?e:t}var Wct=e=>{var t=e.dataKey,n=e.name,r=e.stroke,i=e.fill,o=e.legendType,s=e.hide;return[{inactive:s,dataKey:t,type:o,color:pE(r,i),value:Oc(n,t),payload:e}]},$ct=R.memo(e=>{var t=e.dataKey,n=e.data,r=e.stroke,i=e.strokeWidth,o=e.fill,s=e.name,a=e.hide,l=e.unit,u=e.formatter,d=e.tooltipType,f=e.id,g={dataDefinedOnItem:n,getPosition:Pc,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Oc(s,t),hide:a,type:d,color:pE(r,o),unit:l,formatter:u,graphicalItemId:f}};return R.createElement(sC,{tooltipEntrySettings:g})});function qct(e){var t=e.clipPathId,n=e.points,r=e.props,i=r.needClip,o=r.dot,s=r.dataKey,a=ao(r);return R.createElement(Zce,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:s,baseProps:a,needClip:i,clipPathId:t})}function Kct(e){var t=e.showLabels,n=e.children,r=e.points,i=r.map(o=>{var s,a,l={x:(s=o.x)!==null&&s!==void 0?s:0,y:(a=o.y)!==null&&a!==void 0?a:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Hm(Hm({},l),{}
1060,{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:l,fill:void 0})});return R.createElement(R3,{value:t?i:void 0},n)}function Yct(e){var t=e.points,n=e.baseLine,r=e.needClip,i=e.clipPathId,o=e.props,s=e.animationElapsedTime,a=e.isAnimating,l=e.isEntrance,u=o.layout,d=o.type,f=o.stroke,g=o.connectNulls,m=o.isRange,y=o.shape,b=o.id,w=Fde(o,Bct),C=ts(w),E=Hm(Hm({},C),{},{id:b,points:t,connectNulls:g,type:d,baseLine:n,layout:u,stroke:f,isRange:m,animationElapsedTime:s,isAnimating:a,isEntrance:l});return R.createElement(R.Fragment,null,t?.length>1&&R.createElement(Dn,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},R.createElement(oC,{option:y,DefaultShape:kde.shape,shapeProps:E})),R.createElement(qct,{points:t,props:w,clipPathId:i}))}function Xct(e,t,n){if(ze(e)){var r=ze(t)?t:void 0;return hn(r,e,n)}if(Mn(e)||Ja(e)){var i=ze(t)?t:void 0;return hn(i,0,n)}return e}function Zct(e){var t=e.needClip,n=e.clipPathId,r=e.props,i=e.previousPointsRef,o=e.previousBaselineRef,s=r.points,a=r.baseLine,l=r.isAnimationActive,u=r.animationBegin,d=r.animationDuration,f=r.animationEasing,g=r.animationMatchBy,m=r.animationInterpolateFn,y=R.useMemo(()=>({points:s,baseLine:a}),[s,a]),b=$ce(y,o),w=dH(),C=aC(r.onAnimationStart,r.onAnimationEnd),E=C.isAnimating,A=C.handleAnimationStart,T=C.handleAnimationEnd,P=b.startValue;if(w==null)return null;var O;return Array.isArray(a)&&Array.isArray(P)?O=Lk(P,a,g):Array.isArray(a)?O=Lk(null,a,g):O=null,R.createElement(lC,{animationInput:y,animationIdPrefix:"recharts-area-",items:s,previousItemsRef:i,isAnimationActive:l,animationBegin:u,animationDuration:d,animationEasing:f,onAnimationStart:A,onAnimationEnd:T,animationInterpolateFn:m,animationMatchBy:g,layout:w},(D,F,L)=>{var N;return F===1?N=a:Array.isArray(a)?N=m(O,F,w):N=L?a:Xct(a,P,F),b.syncStepValue(N,F),R.createElement(Kct,{showLabels:!E,points:s},r.children,R.createElement(Yct,{points:D,baseLine:N,needClip:t,clipPathId:n,props:r,animationElapsedTime:F,isAnimating:E||F<1,isEntrance:L}),R.createElement(rC,{label:r.label}))})}function Qct(e){var t=e.needClip,n=e.clipPathId,r=e.props,i=R.useRef(null),o=R.useRef();return R.createElement(Zct,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:o})}class Jct extends R.PureComponent{render(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,s=t.top,a=t.left,l=t.needClip,u=t.xAxisId,d=t.yAxisId,f=t.width,g=t.height,m=t.id,y=t.baseLine,b=t.zIndex;if(n)return null;var w=Et("recharts-area",o),C=m,E=Tde(r),A=E.r,T=E.strokeWidth,P=D3(r),O=A*2+T,D=l?"url(#clipPath-".concat(P?"":"dots-").concat(C,")"):void 0;return R.createElement(hi,{zIndex:b},R.createElement(Dn,{className:w},l&&R.createElement("defs",null,R.createElement(V3,{clipPathId:C,xAxisId:u,yAxisId:d}),!P&&R.createElement("clipPath",{id:"clipPath-dots-".concat(C)},R.createElement("rect",{x:a-O/2,y:s-O/2,width:f+O,height:g+O}))),R.createElement(Qct,{needClip:l,clipPathId:C,props:this.props})),R.createElement(Nk,{points:i,mainColor:pE(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:D}),this.props.isRange&&Array.isArray(y)&&R.createElement(Nk,{points:y,mainColor:pE(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:D}))}}function edt(e){var t,n=e.activeDot,r=e.animationBegin,i=e.animationDuration,o=e.animationEasing,s=e.connectNulls,a=e.dot,l=e.fill,u=e.fillOpacity,d=e.hide,f=e.isAnimationActive,g=e.legendType,m=e.stroke,y=e.xAxisId,b=e.yAxisId,w=Fde(e,Hct),C=uh(),E=dce(),A=SA(y,b),T=A.needClip,P=gi(),O=(t=$e(z=>Dct(z,e.id,P)))!==null&&t!==void 0?t:{},D=O.points,F=O.isRange,L=O.baseLine,N=bA();if(C!=="horizontal"&&C!=="vertical"||N==null||E!=="AreaChart"&&E!=="ComposedChart")return null;var M=N.height,k=N.width,B=N.x,j=N.y;return!D||!D.length?null:R.createElement(Jct,gE({},w,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:o,baseLine:L,connectNulls:s,dot:a,fill:l,fillOpacity:u,height:M,hide:d,layout:C,isAnimationActive:f,isRange:F,legendType:g,needClip:T,points:D,stroke:m,width:k,left:B,top:j,xAxisId:y,yAxisId:b}))}var tdt=(e,t,n,r,i)=>{var o=n??t;if(ze(o))return o;var s=e==="horizontal"?i:r,a=s.scale.domain();if(s.type==="number"){var l=Math.max(a[0],a[1]),u=Math.min(a[0],a[1]);return o==="dataMin"?u:o==="dataMax"||l<0?l:Math.max(Math.min(a[0],a[1]),0)}return o==="dataMin"?a[0]:o==="dataMax"?a[1]:a[0]};
1060function ndt(e){var t=e.areaSettings,n=t.connectNulls,r=t.baseValue,i=t.dataKey,o=e.stackedData,s=e.layout,a=e.chartBaseValue,l=e.xAxis,u=e.yAxis,d=e.displayedData,f=e.dataStartIndex,g=e.xAxisTicks,m=e.yAxisTicks,y=e.bandSize,b=e.stackDataKeys,w=o&&o.length,C=tdt(s,a,r,l,u),E=s==="horizontal",A=!1,T=d.map((O,D)=>{var F,L,N,M;if(w)M=o[f+D];else{var k=Gt(O,i);Array.isArray(k)?(M=k,A=!0):M=[C,k]}var B=(F=(L=M)===null||L===void 0?void 0:L[1])!==null&&F!==void 0?F:null,j=Gt(O,i),z=w&&j==null&&b!=null&&b.length>0&&b.every($=>Gt(O,$)==null),H=B==null||w&&!n&&j==null||z;if(E){var G;return{x:Nx({axis:l,ticks:g,bandSize:y,entry:O,index:D}),y:H?null:(G=u.scale.map(B))!==null&&G!==void 0?G:null,value:M,payload:O}}return{x:H?null:(N=l.scale.map(B))!==null&&N!==void 0?N:null,y:Nx({axis:u,ticks:m,bandSize:y,entry:O,index:D}),value:M,payload:O}}),P;return w||A?P=T.map(O=>{var D,F=Array.isArray(O.value)?O.value[0]:null;if(E){var L;return{x:O.x,y:F!=null&&O.y!=null&&(L=u.scale.map(F))!==null&&L!==void 0?L:null,payload:O.payload}}return{x:F!=null&&(D=l.scale.map(F))!==null&&D!==void 0?D:null,y:O.y,payload:O.payload}}):P=E?u.scale.map(C):l.scale.map(C),{points:T,baseLine:P??0,isRange:A}}function rdt(e){var t=gr(e,kde),n=gi();return R.createElement(uC,{id:t.id,type:"area"},r=>R.createElement(R.Fragment,null,R.createElement(M3,{legendPayload:Wct(t)}),R.createElement($ct,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:r}),R.createElement(_3,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:kR(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),R.createElement(edt,gE({},t,{id:r}))))}var idt=R.memo(rdt,Tg);idt.displayName="Area";var odt="Invariant failed";function sdt(e,t){throw new Error(odt)}var adt=["option"];function ldt(e,t){if(e==null)return{};var n,r,i=udt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function udt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var U3=ole;function W3(e){var t=e.option,n=ldt(e,adt);return R.createElement(oC,{option:t,DefaultShape:U3,shapeProps:n,activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"})}var cdt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(ze(t))return t;var o=ze(r)||Mn(r);return o?t(r,i):(o||sdt(),n)}},ddt=(e,t,n)=>n,hdt=(e,t)=>t,cC=ne([Yw,hdt],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),fdt=ne([cC],e=>e?.maxBarSize),gdt=(e,t,n,r)=>r,pdt=ne([wt,Yw,pu,mu,ddt],(e,t,n,r,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),mdt=(e,t,n)=>{var r=wt(e),i=pu(e,t),o=mu(e,t);if(!(i==null||o==null))return r==="horizontal"?iE(e,"yAxis",o,n):iE(e,"xAxis",i,n)},vdt=(e,t)=>{var n=wt(e),r=pu(e,t),i=mu(e,t);if(!(r==null||i==null))return n==="horizontal"?A9(e,"xAxis",r):A9(e,"yAxis",i)},ydt=ne([pdt,xle,vdt],nde),bdt=(e,t,n)=>{var r,i,o=cC(e,t);if(o==null)return 0;var s=pu(e,t),a=mu(e,t);if(s==null||a==null)return 0;var l=wt(e),u=zR(e),d=o.maxBarSize,f=Mn(d)?u:d,g,m;return l==="horizontal"?(g=lu(e,"xAxis",s,n),m=au(e,"xAxis",s,n)):(g=lu(e,"yAxis",a,n),m=au(e,"yAxis",a,n)),(r=(i=ga(g,m,!0))!==null&&i!==void 0?i:f)!==null&&r!==void 0?r:0},Lde=(e,t,n)=>{var r=wt(e),i=pu(e,t),o=mu(e,t);if(!(i==null||o==null)){var s,a;return r==="horizontal"?(s=lu(e,"xAxis",i,n),a=au(e,"xAxis",i,n)):(s=lu(e,"yAxis",o,n),a=au(e,"yAxis",o,n)),ga(s,a)}},wdt=ne([ydt,zR,Sle,yH,bdt,Lde,fdt],rde),Cdt=(e,t,n)=>{var r=pu(e,t);if(r!=null)return lu(e,"xAxis",r,n)},Sdt=(e,t,n)=>{var r=mu(e,t);if(r!=null)return lu(e,"yAxis",r,n)}
1060,xdt=(e,t,n)=>{var r=pu(e,t);if(r!=null)return au(e,"xAxis",r,n)},Edt=(e,t,n)=>{var r=mu(e,t);if(r!=null)return au(e,"yAxis",r,n)},Rdt=ne([wdt,cC],ode),Adt=ne([mdt,cC],ide),Tdt=ne([Xr,aH,Cdt,Sdt,xdt,Edt,Rdt,wt,cle,Lde,Adt,cC,gdt],(e,t,n,r,i,o,s,a,l,u,d,f,g)=>{var m=l.chartData,y=l.dataStartIndex,b=l.dataEndIndex;if(!(f==null||s==null||t==null||a!=="horizontal"&&a!=="vertical"||n==null||r==null||i==null||o==null||u==null)){var w=f.data,C;if(w!=null&&w.length>0?C=w:C=m?.slice(y,b+1),C!=null)return sht({layout:a,barSettings:f,pos:s,parentViewBox:t,bandSize:u,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,stackedData:d,displayedData:C,offset:e,cells:g,dataStartIndex:y})}}),Pdt=["index"];function zk(){return zk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zk.apply(null,arguments)}function Odt(e,t){if(e==null)return{};var n,r,i=Ddt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ddt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Nde=R.createContext(void 0),Mdt=e=>{var t=R.useContext(Nde);if(t!=null)return t.stackId;if(e!=null)return kR(e)},Idt=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),_dt=e=>{var t=R.useContext(Nde);if(t!=null){var n=t.stackId;return"url(#".concat(Idt(n,e),")")}},Bde=e=>{var t=e.index,n=Odt(e,Pdt),r=_dt(t);return R.createElement(Dn,zk({className:"recharts-bar-stack-layer",clipPath:r},n))},Fdt=["onMouseEnter","onMouseLeave","onClick"],kdt=["value","background","tooltipPosition"],Ldt=["id"],Ndt=["onMouseEnter","onClick","onMouseLeave"];function Vq(e,t){return zdt(e)||Vdt(e,t)||Hdt(e,t)||Bdt()}function Bdt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1061In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hdt(e,t){if(e){if(typeof e=="string")return zq(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zq(e,t):void 0}}function zq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vdt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function zdt(e){if(Array.isArray(e))return e}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jd.apply(null,arguments)}function Gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gq(Object(n),!0).forEach(function(r){Gdt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gdt(e,t,n){return(t=jdt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jdt(e){var t=Udt(e,"string");return typeof t=="symbol"?t:t+""}function Udt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mE(e,t){if(e==null)return{};var n,r,i=Wdt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Wdt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $dt=e=>{var t=e.dataKey,n=e.name,r=e.fill,i=e.legendType,o=e.hide;return[{inactive:o,dataKey:t,type:i,color:r,value:Oc(n,t),payload:e}]},qdt=R.memo(e=>{var t=e.dataKey,n=e.stroke,r=e.strokeWidth,i=e.fill,o=e.name,s=e.hide,a=e.unit,l=e.formatter,u=e.tooltipType,d=e.id,f={dataDefinedOnItem:void 0,getPosition:Pc,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Oc(o,t),hide:s,type:u,color:i,unit:a,formatter:l,graphicalItemId:d}};return R.createElement(sC,{tooltipEntrySettings:f})});function Kdt(e){var t=$e(wc),n=e.data,r=e.dataKey,i=e.background,o=e.allOtherBarProps,s=o.onMouseEnter,a=o.onMouseLeave,l=o.onClick,u=mE(o,Fdt),d=fA(s,r,o.id),f=gA(a),g=pA(l,r,o.id);if(!i||n==null)return null;var m=Qd(i);
1061return R.createElement(hi,{zIndex:cde(i,Wn.barBackground)},n.map((y,b)=>{y.value;var w=y.background;y.tooltipPosition;var C=mE(y,kdt);if(!w)return null;var E=d(y,y.originalDataIndex),A=f(y,y.originalDataIndex),T=g(y,y.originalDataIndex),P=$r($r($r($r($r({option:i,isActive:String(y.originalDataIndex)===t},C),{},{fill:"#eee"},w),m),Ag(u,y,b)),{},{onMouseEnter:E,onMouseLeave:A,onClick:T,dataKey:r,index:b,className:"recharts-bar-background-rectangle"});return R.createElement(W3,Jd({key:"background-bar-".concat(b)},P))}))}function Ydt(e){var t=e.showLabels,n=e.children,r=e.rects,i=r?.map(o=>{var s={x:o.x,y:o.y,width:o.width,lowerWidth:o.width,upperWidth:o.width,height:o.height};return $r($r({},s),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:s,fill:o.fill})});return R.createElement(R3,{value:t?i:void 0},n)}function Xdt(e){var t=e.shape,n=e.activeBar,r=e.baseProps,i=e.entry,o=e.index,s=e.dataKey,a=$e(wc),l=$e(b3),u=n&&String(i.originalDataIndex)===a&&(l==null||s===l),d=a!=null&&(String(i.originalDataIndex)!==a||l!=null&&s!==l),f=R.useState(!1),g=Vq(f,2),m=g[0],y=g[1],b=R.useState(!1),w=Vq(b,2),C=w[0],E=w[1];R.useEffect(()=>{var F;return u?(y(!0),F=requestAnimationFrame(()=>{E(!0)})):(E(!1),d&&y(!1)),()=>{cancelAnimationFrame(F)}},[u,d]);var A=R.useCallback(()=>{u||y(!1)},[u]),T=u&&C,P=u||m,O;u?n===!0?O=t:O=n:O=t;var D=R.createElement(W3,Jd({},r,{name:String(r.name)},i,{isActive:T,option:O,index:o,dataKey:s,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance,onTransitionEnd:A}));return P?R.createElement(hi,{zIndex:Wn.activeBar},R.createElement(Bde,{index:i.originalDataIndex},D)):D}function Zdt(e){var t=e.shape,n=e.baseProps,r=e.entry,i=e.index,o=e.dataKey;return R.createElement(W3,Jd({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:o,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance}))}function Qdt(e){var t,n=e.data,r=e.props,i=e.animationElapsedTime,o=e.isAnimating,s=e.isEntrance,a=(t=ao(r))!==null&&t!==void 0?t:{},l=a.id,u=mE(a,Ldt),d=r.shape,f=r.dataKey,g=r.activeBar,m=r.onMouseEnter,y=r.onClick,b=r.onMouseLeave,w=mE(r,Ndt),C=fA(m,f,l),E=gA(b),A=pA(y,f,l);return n?R.createElement(R.Fragment,null,n.map((T,P)=>R.createElement(Bde,Jd({index:T.originalDataIndex,key:"rectangle-".concat(T?.x,"-").concat(T?.y,"-").concat(T?.value,"-").concat(P),className:"recharts-bar-rectangle"},Ag(w,T,P),{onMouseEnter:C(T,T.originalDataIndex),onMouseLeave:E(T,T.originalDataIndex),onClick:A(T,T.originalDataIndex)}),g?R.createElement(Xdt,{shape:d,activeBar:g,baseProps:u,entry:T,index:P,dataKey:f,animationElapsedTime:i,isAnimating:o,isEntrance:s}):R.createElement(Zdt,{shape:d,baseProps:u,entry:T,index:P,dataKey:f,animationElapsedTime:i,isAnimating:o,isEntrance:s})))):null}var Jdt=(e,t,n)=>e==null?[]:t===1?e.flatMap(r=>r.status==="removed"?[]:[r.next]):e.flatMap(r=>{if(r.status==="removed")return n==="horizontal"?[$r($r({},r.prev),{},{height:hn(r.prev.height,0,t),y:hn(r.prev.y,r.prev.y+r.prev.height,t)})]:[$r($r({},r.prev),{},{width:hn(r.prev.width,0,t)})];if(r.status==="matched")return[$r($r({},r.next),{},{x:hn(r.prev.x,r.next.x,t),y:hn(r.prev.y,r.next.y,t),width:hn(r.prev.width,r.next.width,t),height:hn(r.prev.height,r.next.height,t)})];var i=r.next;return n==="horizontal"?[$r($r({},i),{},{height:hn(0,i.height,t),y:hn(i.stackedBarStart,i.y,t)})]:[$r($r({},i),{},{width:hn(0,i.width,t),x:hn(i.stackedBarStart,i.x,t)})]});function eht(e){var t=e.props,n=e.previousRectanglesRef,r=t.data,i=t.isAnimationActive,o=t.animationBegin,s=t.animationDuration,a=t.animationEasing,l=t.animationInterpolateFn,u=t.layout,d=aC(t.onAnimationStart,t.onAnimationEnd),f=d.isAnimating,g=d.handleAnimationStart,m=d.handleAnimationEnd;return R.createElement(Ydt,{showLabels:!f,rects:r},R.createElement(lC,{animationInput:r,animationIdPrefix:"recharts-bar-",items:r,previousItemsRef:n,isAnimationActive:i,animationBegin:o,animationDuration:s,animationEasing:a,onAnimationStart:g,onAnimationEnd:m,animationInterpolateFn:l,animationMatchBy:t.animationMatchBy,layout:u},(y,b,w)=>R.createElement(Dn,null,R.createElement(Qdt,{props:t,data:y,animationElapsedTime:b,isAnimating:f||b<1,isEntrance:w}))),R.createElement(rC,{label:t.label}),t.children)}function tht(e){var t=R.useRef(null);return R.createElement(eht,{previousRectanglesRef:t,props:e})}var Hde=0,nht=(e,t)=>
1061{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Gt(e,t)}};class rht extends R.PureComponent{render(){var t=this.props,n=t.hide,r=t.data,i=t.dataKey,o=t.className,s=t.xAxisId,a=t.yAxisId,l=t.needClip,u=t.background,d=t.id;if(n||r==null)return null;var f=Et("recharts-bar",o),g=d;return R.createElement(Dn,{className:f,id:d},l&&R.createElement("defs",null,R.createElement(V3,{clipPathId:g,xAxisId:s,yAxisId:a})),R.createElement(Dn,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(g,")"):void 0},R.createElement(Kdt,{data:r,dataKey:i,background:u,allOtherBarProps:this.props}),R.createElement(tht,this.props)))}}var iht={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",animationInterpolateFn:Jdt,animationMatchBy:vA,background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:Hde,shape:U3,xAxisId:0,yAxisId:0,zIndex:Wn.bar};function oht(e){var t=e.xAxisId,n=e.yAxisId,r=e.hide,i=e.legendType,o=e.minPointSize,s=e.activeBar,a=e.animationBegin,l=e.animationDuration,u=e.animationEasing,d=e.isAnimationActive,f=SA(t,n),g=f.needClip,m=uh(),y=gi(),b=hA(e.children,nC),w=$e(A=>Tdt(A,e.id,y,b));if(m!=="vertical"&&m!=="horizontal")return null;var C,E=w?.[0];return E==null||E.height==null||E.width==null?C=0:C=m==="vertical"?E.height/2:E.width/2,R.createElement(Sde,{xAxisId:t,yAxisId:n,data:w,dataPointFormatter:nht,errorBarOffset:C},R.createElement(rht,Jd({},e,{layout:m,needClip:g,data:w,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:s,animationBegin:a,animationDuration:l,animationEasing:u,isAnimationActive:d})))}function sht(e){var t=e.layout,n=e.barSettings,r=n.dataKey,i=n.minPointSize,o=n.hasCustomShape,s=e.pos,a=e.bandSize,l=e.xAxis,u=e.yAxis,d=e.xAxisTicks,f=e.yAxisTicks,g=e.stackedData,m=e.displayedData,y=e.offset,b=e.cells,w=e.parentViewBox,C=e.dataStartIndex,E=t==="horizontal"?u:l,A=g?E.scale.domain():null,T=Hae({numericAxis:E}),P=E.scale.map(T);return m.map((O,D)=>{var F,L,N,M,k,B;if(g){var j=g[D+C];if(j==null)return null;F=Bae(j,A)}else F=Gt(O,r),Array.isArray(F)||(F=[T,F]);var z=cdt(i,Hde)(F[1],D);if(t==="horizontal"){var H,G=u.scale.map(F[0]),$=u.scale.map(F[1]);if(G==null||$==null)return null;L=Bx({axis:l,ticks:d,bandSize:a,offset:s.offset,entry:O,index:D}),N=(H=$??G)!==null&&H!==void 0?H:void 0,M=s.size;var Y=G-$;if(k=Ja(Y)?0:Y,B={x:L,y:y.top,width:M,height:y.height},Math.abs(z)>0&&Math.abs(k)<Math.abs(z)){var K=Lr(k||z)*(Math.abs(z)-Math.abs(k));N-=K,k+=K}}else{var se=l.scale.map(F[0]),re=l.scale.map(F[1]);if(se==null||re==null)return null;if(L=se,N=Bx({axis:u,ticks:f,bandSize:a,offset:s.offset,entry:O,index:D}),M=re-se,k=s.size,B={x:y.left,y:N,width:y.width,height:k},Math.abs(z)>0&&Math.abs(M)<Math.abs(z)){var ue=Lr(M||z)*(Math.abs(z)-Math.abs(M));M+=ue}}if(L==null||N==null||M==null||k==null||!o&&(M===0||k===0))return null;var U=$r($r({},O),{},{stackedBarStart:P,x:L,y:N,width:M,height:k,value:g?F:F[1],payload:O,background:B,tooltipPosition:{x:L+M/2,y:N+k/2},parentViewBox:w,originalDataIndex:D},b&&b[D]&&b[D].props);return U}).filter(Boolean)}function aht(e){var t=gr(e,iht),n=Mdt(t.stackId),r=gi();return R.createElement(uC,{id:t.id,type:"bar"},i=>R.createElement(R.Fragment,null,R.createElement(M3,{legendPayload:$dt(t)}),R.createElement(qdt,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:i}),R.createElement(_3,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null&&t.shape!==U3}),R.createElement(hi,{zIndex:t.zIndex},R.createElement(oht,Jd({},t,{id:i})))))}var lht=R.memo(aht,Tg);lht.displayName="Bar";var uht=["domain","range"],cht=["domain","range"];function jq(e,t){if(e==null)return{};var n,r,i=dht(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dht(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Uq(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function Vde(e,t){if(e===t)return!0;var n=e.domain,r=e.range,i=jq(e,uht),o=t.domain,s=t.range,a=jq(t,cht);return!Uq(n,o)||!Uq(r,s)?!1:Tg(i,a)}var hht=["type"],fht=["dangerouslySetInnerHTML","ticks","scale"],ght=["id","scale"];function Gk(){return Gk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gk.apply(null,arguments)}function Wq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1061t%2?Wq(Object(n),!0).forEach(function(r){pht(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pht(e,t,n){return(t=mht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mht(e){var t=vht(e,"string");return typeof t=="symbol"?t:t+""}function vht(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jk(e,t){if(e==null)return{};var n,r,i=yht(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yht(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bht(e){var t=mn(),n=R.useRef(null),r=dH(),i=e.type,o=jk(e,hht),s=jR(r,"xAxis",i),a=R.useMemo(()=>{if(s!=null)return $q($q({},o),{},{type:s})},[o,s]);return R.useLayoutEffect(()=>{a!=null&&(n.current===null?t(oat(a)):n.current!==a&&t(sat({prev:n.current,next:a})),n.current=a)},[a,t]),R.useLayoutEffect(()=>()=>{n.current&&(t(aat(n.current)),n.current=null)},[t]),null}var wht=e=>{var t=e.xAxisId,n=e.className,r=e.height,i=e.label,o=R.useRef(null),s=R.useRef(null),a=$e(aH),l=gi(),u=mn(),d="xAxis",f=$e(C=>Hue(C,d,t,l)),g=$e(C=>kue(C,t)),m=$e(C=>Ntt(C,t)),y=$e(C=>fue(C,t));if(R.useLayoutEffect(()=>{if(!(r!=="auto"||!g||aA(i)||R.isValidElement(i)||y==null)){var C=o.current;if(C){var E=C.getCalculatedHeight();Math.round(g.height)!==Math.round(E)&&u(hat({id:t,height:E}))}}},[f,g,u,i,t,r,y]),g==null||m==null||y==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var b=jk(e,fht);y.id,y.scale;var w=jk(y,ght);return R.createElement(B3,Gk({},b,w,{ref:o,labelRef:s,x:m.x,y:m.y,width:g.width,height:g.height,className:Et("recharts-".concat(d," ").concat(d),n),viewBox:a,ticks:f,axisType:d,axisId:t}))},Cht={allowDataOverflow:Ur.allowDataOverflow,allowDecimals:Ur.allowDecimals,allowDuplicatedCategory:Ur.allowDuplicatedCategory,angle:Ur.angle,axisLine:cc.axisLine,height:Ur.height,hide:!1,includeHidden:Ur.includeHidden,interval:Ur.interval,label:!1,minTickGap:Ur.minTickGap,mirror:Ur.mirror,orientation:Ur.orientation,padding:Ur.padding,reversed:Ur.reversed,scale:Ur.scale,tick:Ur.tick,tickCount:Ur.tickCount,tickLine:cc.tickLine,tickSize:cc.tickSize,type:Ur.type,niceTicks:Ur.niceTicks,xAxisId:0},Sht=e=>{var t=gr(e,Cht);return R.createElement(R.Fragment,null,R.createElement(bht,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),R.createElement(wht,t))},xht=R.memo(Sht,Vde);xht.displayName="XAxis";var Eht=["type"],Rht=["dangerouslySetInnerHTML","ticks","scale"],Aht=["id","scale"];function Uk(){return Uk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uk.apply(null,arguments)}function qq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qq(Object(n),!0).forEach(function(r){Tht(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qq(Object(n)).forEac
1061h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tht(e,t,n){return(t=Pht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pht(e){var t=Oht(e,"string");return typeof t=="symbol"?t:t+""}function Oht(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wk(e,t){if(e==null)return{};var n,r,i=Dht(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Dht(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Mht(e){var t=mn(),n=R.useRef(null),r=dH(),i=e.type,o=Wk(e,Eht),s=jR(r,"yAxis",i),a=R.useMemo(()=>{if(s!=null)return Kq(Kq({},o),{},{type:s})},[s,o]);return R.useLayoutEffect(()=>{a!=null&&(n.current===null?t(lat(a)):n.current!==a&&t(uat({prev:n.current,next:a})),n.current=a)},[a,t]),R.useLayoutEffect(()=>()=>{n.current&&(t(cat(n.current)),n.current=null)},[t]),null}function Iht(e){var t=e.yAxisId,n=e.className,r=e.width,i=e.label,o=R.useRef(null),s=R.useRef(null),a=$e(aH),l=gi(),u=mn(),d="yAxis",f=$e(C=>Lue(C,t)),g=$e(C=>Htt(C,t)),m=$e(C=>Hue(C,d,t,l)),y=$e(C=>gue(C,t));if(R.useLayoutEffect(()=>{if(!(r!=="auto"||!f||aA(i)||R.isValidElement(i)||y==null)){var C=o.current;if(C){var E=C.getCalculatedWidth();Math.round(f.width)!==Math.round(E)&&u(dat({id:t,width:E}))}}},[m,f,u,i,t,r,y]),f==null||g==null||y==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var b=Wk(e,Rht);y.id,y.scale;var w=Wk(y,Aht);return R.createElement(B3,Uk({},b,w,{ref:o,labelRef:s,x:g.x,y:g.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:f.width,height:f.height,className:Et("recharts-".concat(d," ").concat(d),n),viewBox:a,ticks:m,axisType:d,axisId:t}))}var _ht={allowDataOverflow:Wr.allowDataOverflow,allowDecimals:Wr.allowDecimals,allowDuplicatedCategory:Wr.allowDuplicatedCategory,angle:Wr.angle,axisLine:cc.axisLine,hide:!1,includeHidden:Wr.includeHidden,interval:Wr.interval,label:!1,minTickGap:Wr.minTickGap,mirror:Wr.mirror,orientation:Wr.orientation,padding:Wr.padding,reversed:Wr.reversed,scale:Wr.scale,tick:Wr.tick,tickCount:Wr.tickCount,tickLine:cc.tickLine,tickSize:cc.tickSize,type:Wr.type,niceTicks:Wr.niceTicks,width:Wr.width,yAxisId:0},Fht=e=>{var t=gr(e,_ht);return R.createElement(R.Fragment,null,R.createElement(Mht,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),R.createElement(Iht,t))},kht=R.memo(Fht,Vde);kht.displayName="YAxis";var Lht=(e,t)=>t,$3=ne([Lht,wt,EH,pi,ice,_c,irt,Xr],drt);function Nht(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function q3(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(Nht(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var o=e.currentTarget;n=o.offsetWidth>0?t.width/o.offsetWidth:1,r=o.offsetHeight>0?t.height/o.offsetHeight:1}var s=(a,l)=>({relativeX:Math.round((a-t.left)/n),relativeY:Math.round((l-t.top)/r)});return"touches"in e?Array.from(e.touches).map(a=>s(a.clientX,a.clientY)):s(e.clientX,e.clientY)}var zde=Es("mouseClick"),Gde=Fw();Gde.startListening({actionCreator:zde,effect:(e,t)=>{var n=e.payload,r=$3(t.getState(),q3(n));r?.activeIndex!=null&&t.dispatch(Jtt({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var $k=Es("mouseMove"),jde=Fw(),Op=null,$h=null,wM=null;jde.startListening({actionCreator:$k,effect:(e,t)=>
1061{var n=e.payload,r=t.getState(),i=r.eventSettings,o=i.throttleDelay,s=i.throttledEvents,a=s==="all"||s?.includes("mousemove");Op!==null&&(cancelAnimationFrame(Op),Op=null),$h!==null&&(typeof o!="number"||!a)&&(clearTimeout($h),$h=null),wM=q3(n);var l=()=>{var u=t.getState(),d=Jw(u,u.tooltip.settings.shared);if(!wM){Op=null,$h=null;return}if(d==="axis"){var f=$3(u,wM);f?.activeIndex!=null?t.dispatch(Kue({activeIndex:f.activeIndex,activeDataKey:void 0,activeCoordinate:f.activeCoordinate})):t.dispatch(que())}Op=null,$h=null};if(!a){l();return}o==="raf"?Op=requestAnimationFrame(l):typeof o=="number"&&$h===null&&($h=setTimeout(l,o))}});function Bht(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var Yq={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},Ude=co({name:"rootProps",initialState:Yq,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:Yq.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),Hht=Ude.reducer,Vht=Ude.actions.updateOptions,zht=null,Ght={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},Wde=co({name:"polarOptions",initialState:zht,reducers:Ght}),jht=Wde.actions.updatePolarOptions,Uht=Wde.reducer,$de=Es("keyDown"),qde=Es("focus"),Kde=Es("blur"),xA=Fw(),Dp=null,qh=null,LS=null;xA.startListening({actionCreator:$de,effect:(e,t)=>{LS=e.payload,Dp!==null&&(cancelAnimationFrame(Dp),Dp=null);var n=t.getState(),r=n.eventSettings,i=r.throttleDelay,o=r.throttledEvents,s=o==="all"||o.includes("keydown");qh!==null&&(typeof i!="number"||!s)&&(clearTimeout(qh),qh=null);var a=()=>{try{var l=t.getState(),u=l.rootProps.accessibilityLayer!==!1;if(!u)return;var d=l.tooltip.keyboardInteraction,f=LS;if(f!=="ArrowRight"&&f!=="ArrowLeft"&&f!=="Enter")return;var g=db(d,ag(l),Lm(l),Nm(l)),m=g==null?-1:Number(g),y=!Number.isFinite(m)||m<0,b=_c(l),w=ag(l),C=Jw(l,l.tooltip.settings.shared);if(f==="Enter"){if(y)return;var E=aE(l,C,"hover",String(d.index));t.dispatch(sE({active:!d.active,activeIndex:d.index,activeCoordinate:E}));return}var A=Gtt(l),T=A==="left-to-right"?1:-1,P=f==="ArrowRight"?1:-1,O;if(y){var D=Lm(l),F=Nm(l),L=P*T,N=z=>({active:!1,index:String(z),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(O=-1,L>0){for(var M=0;M<w.length;M++)if(db(N(M),w,D,F)!=null){O=M;break}}else for(var k=w.length-1;k>=0;k--)if(db(N(k),w,D,F)!=null){O=k;break}if(O<0)return}else{O=m+P*T;var B=b?.length||w.length;if(B===0||O>=B||O<0)return}var j=aE(l,C,"hover",String(O));t.dispatch(sE({active:!0,activeIndex:O.toString(),activeCoordinate:j}))}finally{Dp=null,qh=null}};if(!s){a();return}i==="raf"?Dp=requestAnimationFrame(a):typeof i=="number"&&qh===null&&(a(),LS=null,qh=setTimeout(()=>{LS?a():(qh=null,Dp=null)},i))}});xA.startListening({actionCreator:qde,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var i=n.tooltip.keyboardInteraction;if(!i.active&&i.index==null){var o="0",s=Jw(n,n.tooltip.settings.shared),a=aE(n,s,"hover",String(o));t.dispatch(sE({active:!0,activeIndex:o,activeCoordinate:a}))}}}});xA.startListening({actionCreator:Kde,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var i=n.tooltip.keyboardInteraction;i.active&&t.dispatch(sE({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function Yde(e){e.persist();var t=e.currentTarget;return new Proxy(e,{get:(n,r)=>{if(r==="currentTarget")return t;var i=Reflect.get(n,r);return typeof i=="function"?i.bind(n):i}})}var qs=Es("externalEvent"),Xde=Fw(),NS=new Map,Ty=new Map,CM=new Map;Xde.startListening({actionCreator:qs,effect:(e,t)=>
1061{var n=e.payload,r=n.handler,i=n.reactEvent;if(r!=null){var o=i.type,s=Yde(i);CM.set(o,{handler:r,reactEvent:s});var a=NS.get(o);a!==void 0&&(cancelAnimationFrame(a),NS.delete(o));var l=t.getState(),u=l.eventSettings,d=u.throttleDelay,f=u.throttledEvents,g=f,m=g==="all"||g?.includes(o),y=Ty.get(o);y!==void 0&&(typeof d!="number"||!m)&&(clearTimeout(y),Ty.delete(o));var b=()=>{var E=CM.get(o);try{if(!E)return;var A=E.handler,T=E.reactEvent,P=t.getState(),O={activeCoordinate:jnt(P),activeDataKey:b3(P),activeIndex:wc(P),activeLabel:ace(P),activeTooltipIndex:wc(P),isTooltipActive:Unt(P)};A&&A(O,T)}finally{NS.delete(o),Ty.delete(o),CM.delete(o)}};if(!m){b();return}if(d==="raf"){var w=requestAnimationFrame(b);NS.set(o,w)}else if(typeof d=="number"){if(!Ty.has(o)){b();var C=setTimeout(b,d);Ty.set(o,C)}}else b()}}});var Wht=ne([lv],e=>e.tooltipItemPayloads),$ht=ne([Wht,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(o=>o.settings.graphicalItemId===n);if(r!=null){var i=r.getPosition;if(i!=null)return i(t)}}}),Zde=Es("touchMove"),Qde=Fw(),Kh=null,md=null,Xq=null,Py=null;Qde.startListening({actionCreator:Zde,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){Py=Yde(n);var r=t.getState(),i=r.eventSettings,o=i.throttleDelay,s=i.throttledEvents,a=s==="all"||s.includes("touchmove");Kh!==null&&(cancelAnimationFrame(Kh),Kh=null),md!==null&&(typeof o!="number"||!a)&&(clearTimeout(md),md=null),Xq=Array.from(n.touches).map(u=>q3({clientX:u.clientX,clientY:u.clientY,currentTarget:n.currentTarget}));var l=()=>{if(Py!=null){var u=t.getState(),d=Jw(u,u.tooltip.settings.shared);if(d==="axis"){var f,g=(f=Xq)===null||f===void 0?void 0:f[0];if(g==null){Kh=null,md=null;return}var m=$3(u,g);m?.activeIndex!=null&&t.dispatch(Kue({activeIndex:m.activeIndex,activeDataKey:void 0,activeCoordinate:m.activeCoordinate}))}else if(d==="item"){var y,b=Py.touches[0];if(document.elementFromPoint==null||b==null)return;var w=document.elementFromPoint(b.clientX,b.clientY);if(!w||!w.getAttribute)return;var C=w.getAttribute(Vae),E=(y=w.getAttribute(zae))!==null&&y!==void 0?y:void 0,A=Ig(u).find(O=>O.id===E);if(C==null||A==null||E==null)return;var T=A.dataKey,P=$ht(u,C,E);t.dispatch($ue({activeDataKey:T,activeIndex:C,activeCoordinate:P,activeGraphicalItemId:E}))}Kh=null,md=null}};if(!a){l();return}o==="raf"?Kh=requestAnimationFrame(l):typeof o=="number"&&md===null&&(l(),Py=null,md=setTimeout(()=>{Py?l():(md=null,Kh=null)},o))}}});var K3={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},Jde=co({name:"eventSettings",initialState:K3,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=Kt(t.payload.throttledEvents))}}}),qht=Jde.actions.setEventSettings,Kht=Jde.reducer,Yht=aae({brush:wlt,cartesianAxis:fat,chartData:Brt,errorBars:Wut,eventSettings:Kht,graphicalItems:mst,layout:iKe,legend:tYe,options:_rt,polarAxis:xot,polarOptions:Uht,referenceElements:Elt,renderedTicks:Xlt,rootProps:Hht,tooltip:ent,zIndex:Ert}),Xht=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Oqe({reducer:Yht,preloadedState:t,middleware:r=>{var i;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([Gde.middleware,jde.middleware,xA.middleware,Xde.middleware,Qde.middleware])},enhancers:r=>{var i=r;return typeof r=="function"&&(i=r()),i.concat(Sae({type:"raf"}))},devTools:{serialize:{replacer:Bht},name:"recharts-".concat(n)}})};function ehe(e){var t=e.preloadedState,n=e.children,r=e.reduxStoreName,i=gi(),o=R.useRef(null);if(i)return n;o.current==null&&(o.current=Xht(t,r));var s=QB;return R.createElement(bYe,{context:s,store:o.current},n)}function Zht(e){var t=e.layout,n=e.margin,r=mn(),i=gi();return R.useEffect(()=>{i||(r(tKe(t)),r(eKe(n)))},[r,i,t,n]),null}var the=R.memo(Zht,Tg);function nhe(e){var t=mn();return R.useEffect(()=>{t(Vht(e))},[t,e]),null}var Qht=e=>{var t=mn();return R.useEffect(()=>{t(qht(e))},[t,e]),null},rhe=R.memo(Qht,Tg);function Zq(e){var t=e.zIndex,n=e.isPanorama,r=R.useRef(null),i=mn();return R.useLayoutEffect(()=>(r.current&&i(Srt({zIndex:t,element:r.current,isPanorama:n})),()=>{i(xrt({zIndex:t,isPanorama:n}))}),[i,t,n]),R.createElement("g",{tabIndex:-1,ref:r,className:"recharts-zIndex-layer_".concat(t)})}function Qq(e){var t=e.children,n=e.isPanorama,r=$e(frt);if(!r||r.length===0)return t;var i=r.filter(s=>s<0),o=r.filter(s=>s>0);return R.createElement(R.Fragment,null,i.map(s=>R.createElement(Zq,{key:s,zIndex:s,isPanorama:n})),t,o.map(s=>R.createElement(Zq,{key:s,zIndex:s,isPanorama:n})))}var Jht=["children"];function eft(e,t){if(e==null)return{};var n,r,i=tft(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tft(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vE(){return vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vE.apply(null,arguments)}var nft={width:"100%",height:"100%",display:"block"},rft=R.forwardRef((e,t)=>
1061{var n=uH(),r=cH(),i=Jae();if(!ou(n)||!ou(r))return null;var o=e.children,s=e.otherAttributes,a=e.title,l=e.desc,u,d;return s!=null&&(typeof s.tabIndex=="number"?u=s.tabIndex:u=i?0:void 0,typeof s.role=="string"?d=s.role:d=i?"application":void 0),R.createElement(HB,vE({},s,{title:a,desc:l,role:d,tabIndex:u,width:n,height:r,style:nft,ref:t}),o)}),ift=e=>{var t=e.children,n=$e(HR);if(!n)return null;var r=n.width,i=n.height,o=n.y,s=n.x;return R.createElement(HB,{width:r,height:i,x:s,y:o},t)},Jq=R.forwardRef((e,t)=>{var n=e.children,r=eft(e,Jht),i=gi();return i?R.createElement(ift,null,R.createElement(Qq,{isPanorama:!0},n)):R.createElement(rft,vE({ref:t},r),R.createElement(Qq,{isPanorama:!1},n))});function oft(e,t){return uft(e)||lft(e,t)||aft(e,t)||sft()}function sft(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1062In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aft(e,t){if(e){if(typeof e=="string")return eK(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eK(e,t):void 0}}function eK(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lft(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function uft(e){if(Array.isArray(e))return e}function cft(){var e=mn(),t=R.useState(null),n=oft(t,2),r=n[0],i=n[1],o=$e(yKe);return R.useEffect(()=>{if(r!=null){var s=r.getBoundingClientRect(),a=s.width/r.offsetWidth;Ot(a)&&a!==o&&e(rKe(a))}},[r,e,o]),i}function tK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tK(Object(n),!0).forEach(function(r){hft(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tK(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hft(e,t,n){return(t=fft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fft(e){var t=gft(e,"string");return typeof t=="symbol"?t:t+""}function gft(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jd.apply(null,arguments)}function yE(e,t){return yft(e)||vft(e,t)||mft(e,t)||pft()}function pft(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1063In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mft(e,t){if(e){if(typeof e=="string")return nK(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nK(e,t):void 0}}function nK(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vft(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function yft(e){if(Array.isArray(e))return e}var bft=()=>(qrt(),null);function bE(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);
1063if(!Number.isNaN(t))return t}return 0}var wft=R.forwardRef((e,t)=>{var n,r,i=R.useRef(null),o=R.useState({containerWidth:bE((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:bE((r=e.style)===null||r===void 0?void 0:r.height)}),s=yE(o,2),a=s[0],l=s[1],u=R.useCallback((f,g)=>{l(m=>{var y=Math.round(f),b=Math.round(g);return m.containerWidth===y&&m.containerHeight===b?m:{containerWidth:y,containerHeight:b}})},[]),d=R.useCallback(f=>{if(typeof t=="function"&&t(f),i.current!=null&&(i.current.disconnect(),i.current=null),f!=null&&typeof ResizeObserver<"u"){var g=f.getBoundingClientRect(),m=g.width,y=g.height;u(m,y);var b=C=>{var E=C[0];if(E!=null){var A=E.contentRect,T=A.width,P=A.height;u(T,P)}},w=new ResizeObserver(b);w.observe(f),i.current=w}},[t,u]);return R.useEffect(()=>()=>{var f=i.current;f?.disconnect()},[u]),R.createElement(R.Fragment,null,R.createElement(Lw,{width:a.containerWidth,height:a.containerHeight}),R.createElement("div",jd({ref:d},e)))}),Cft=R.forwardRef((e,t)=>{var n=e.width,r=e.height,i=R.useState({containerWidth:bE(n),containerHeight:bE(r)}),o=yE(i,2),s=o[0],a=o[1],l=R.useCallback((d,f)=>{a(g=>{var m=Math.round(d),y=Math.round(f);return g.containerWidth===m&&g.containerHeight===y?g:{containerWidth:m,containerHeight:y}})},[]),u=R.useCallback(d=>{if(typeof t=="function"&&t(d),d!=null){var f=d.getBoundingClientRect(),g=f.width,m=f.height;l(g,m)}},[t,l]);return R.createElement(R.Fragment,null,R.createElement(Lw,{width:s.containerWidth,height:s.containerHeight}),R.createElement("div",jd({ref:u},e)))}),Sft=R.forwardRef((e,t)=>{var n=e.width,r=e.height;return R.createElement(R.Fragment,null,R.createElement(Lw,{width:n,height:r}),R.createElement("div",jd({ref:t},e)))}),xft=R.forwardRef((e,t)=>{var n=e.width,r=e.height;return typeof n=="string"||typeof r=="string"?R.createElement(Cft,jd({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?R.createElement(Sft,jd({},e,{width:n,height:r,ref:t})):R.createElement(R.Fragment,null,R.createElement(Lw,{width:n,height:r}),R.createElement("div",jd({ref:t},e)))});function Eft(e){return e?wft:xft}var Rft=R.forwardRef((e,t)=>{var n=e.children,r=e.className,i=e.height,o=e.onClick,s=e.onContextMenu,a=e.onDoubleClick,l=e.onMouseDown,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onMouseMove,g=e.onMouseUp,m=e.onTouchEnd,y=e.onTouchMove,b=e.onTouchStart,w=e.style,C=e.width,E=e.responsive,A=e.dispatchTouchEvents,T=A===void 0?!0:A,P=R.useRef(null),O=mn(),D=R.useState(null),F=yE(D,2),L=F[0],N=F[1],M=R.useState(null),k=yE(M,2),B=k[0],j=k[1],z=cft(),H=lH(),G=H?.width>0?H.width:C,$=H?.height>0?H.height:i,Y=R.useCallback(Te=>{z(Te),typeof t=="function"&&t(Te),N(Te),j(Te),Te!=null&&(P.current=Te)},[z,t,N,j]),K=R.useCallback(Te=>{O(zde(Te)),O(qs({handler:o,reactEvent:Te}))},[O,o]),se=R.useCallback(Te=>{O($k(Te)),O(qs({handler:u,reactEvent:Te}))},[O,u]),re=R.useCallback(Te=>{O(que()),O(qs({handler:d,reactEvent:Te}))},[O,d]),ue=R.useCallback(Te=>{O($k(Te)),O(qs({handler:f,reactEvent:Te}))},[O,f]),U=R.useCallback(()=>{O(qde())},[O]),X=R.useCallback(()=>{O(Kde())},[O]),be=R.useCallback(Te=>{O($de(Te.key))},[O]),me=R.useCallback(Te=>{O(qs({handler:s,reactEvent:Te}))},[O,s]),Oe=R.useCallback(Te=>{O(qs({handler:a,reactEvent:Te}))},[O,a]),ge=R.useCallback(Te=>{O(qs({handler:l,reactEvent:Te}))},[O,l]),ve=R.useCallback(Te=>{O(qs({handler:g,reactEvent:Te}))},[O,g]),de=R.useCallback(Te=>{O(qs({handler:b,reactEvent:Te}))},[O,b]),J=R.useCallback(Te=>{T&&O(Zde(Te)),O(qs({handler:y,reactEvent:Te}))},[O,T,y]),Fe=R.useCallback(Te=>{O(qs({handler:m,reactEvent:Te}))},[O,m]),ke=Eft(E);return R.createElement(mce.Provider,{value:L},R.createElement(use.Provider,{value:B},R.createElement(ke,{width:G??w?.width,height:$??w?.height,className:Et("recharts-wrapper",r),style:dft({position:"relative",cursor:"default",width:G,height:$},w),onClick:K,onContextMenu:me,onDoubleClick:Oe,onFocus:U,onBlur:X,onKeyDown:be,onMouseDown:ge,onMouseEnter:se,onMouseLeave:re,onMouseMove:ue,onMouseUp:ve,onTouchEnd:Fe,onTouchMove:J,onTouchStart:de,ref:Y},R.createElement(bft,null),n)))}),Aft=["width","height","responsive","children","className","style","compact","title","desc"];function Tft(e,t){if(e==null)return{};var n,r,i=Pft(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pft(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ihe=R.forwardRef((e,t)=>
1063{var n=e.width,r=e.height,i=e.responsive,o=e.children,s=e.className,a=e.style,l=e.compact,u=e.title,d=e.desc,f=Tft(e,Aft),g=ao(f);return l?R.createElement(R.Fragment,null,R.createElement(Lw,{width:n,height:r}),R.createElement(Jq,{otherAttributes:g,title:u,desc:d},o)):R.createElement(Rft,{className:s,style:a,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},R.createElement(Jq,{otherAttributes:g,title:u,desc:d,ref:t},R.createElement(Mlt,null,o)))});function qk(){return qk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qk.apply(null,arguments)}function rK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rK(Object(n),!0).forEach(function(r){Dft(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rK(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dft(e,t,n){return(t=Mft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mft(e){var t=Ift(e,"string");return typeof t=="symbol"?t:t+""}function Ift(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _ft={top:5,right:5,bottom:5,left:5},Fft=Oft({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:_ft,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},K3),Y3=R.forwardRef(function(t,n){var r,i=gr(t.categoricalChartProps,Fft),o=t.chartName,s=t.defaultTooltipEventType,a=t.validateTooltipEventTypes,l=t.tooltipPayloadSearcher,u=t.categoricalChartProps,d={chartName:o,defaultTooltipEventType:s,validateTooltipEventTypes:a,tooltipPayloadSearcher:l,eventEmitter:void 0};return R.createElement(ehe,{preloadedState:{options:d},reduxStoreName:(r=u.id)!==null&&r!==void 0?r:o},R.createElement(hde,{chartData:u.data}),R.createElement(the,{layout:i.layout,margin:i.margin}),R.createElement(rhe,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),R.createElement(nhe,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),R.createElement(ihe,qk({},i,{ref:n})))}),kft=["axis","item"],$wt=R.forwardRef((e,t)=>R.createElement(Y3,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:kft,tooltipPayloadSearcher:tC,categoricalChartProps:e,ref:t}));function Lft(e){var t=mn();return R.useEffect(()=>{t(jht(e))},[t,e]),null}var Nft=["layout"];function Kk(){return Kk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kk.apply(null,arguments)}function Bft(e,t){if(e==null)return{};var n,r,i=Hft(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Hft(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1063t%2?iK(Object(n),!0).forEach(function(r){zft(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iK(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zft(e,t,n){return(t=Gft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gft(e){var t=jft(e,"string");return typeof t=="symbol"?t:t+""}function jft(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uft={top:5,right:5,bottom:5,left:5},X3=Vft({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Uft,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},K3),ohe=R.forwardRef(function(t,n){var r,i=gr(t.categoricalChartProps,X3),o=i.layout,s=Bft(i,Nft),a=t.chartName,l=t.defaultTooltipEventType,u=t.validateTooltipEventTypes,d=t.tooltipPayloadSearcher,f={chartName:a,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,eventEmitter:void 0};return R.createElement(ehe,{preloadedState:{options:f},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:a},R.createElement(hde,{chartData:i.data}),R.createElement(the,{layout:o,margin:i.margin}),R.createElement(rhe,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),R.createElement(nhe,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),R.createElement(Lft,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),R.createElement(ihe,Kk({},s,{ref:n})))});function oK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oK(Object(n),!0).forEach(function(r){Wft(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oK(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wft(e,t,n){return(t=$ft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ft(e){var t=qft(e,"string");return typeof t=="symbol"?t:t+""}function qft(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kft=["item"],Yft=sK(sK({},X3),{},{layout:"centric",startAngle:0,endAngle:360}),qwt=R.forwardRef((e,t)=>{var n=gr(e,Yft);return R.createElement(ohe,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Kft,tooltipPayloadSearcher:tC,categoricalChartProps:n,ref:t})}),Xft=["axis"],Kwt=R.forwardRef((e,t)=>R.createElement(Y3,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Xft,tooltipPayloadSearcher:tC,categoricalChartProps:e,ref:t}));function aK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aK(Object(n),!0).forEach(function(r){Zft(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aK(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zft(e,t,n){return(t=Qft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qft(e){var t=Jft(e,"string");return typeof t=="symbol"?t:t+""}function Jft(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var egt=["axis","item"],tgt=lK(lK({},X3),{},{layout:"radial",startAngle:0,endAngle:360}),Ywt=R.forwardRef((e,t)=>
vendor: 10,333 bytes, line 1063
1063{var n=gr(e,tgt);return R.createElement(ohe,{chartName:"RadialBarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:egt,tooltipPayloadSearcher:tC,categoricalChartProps:n,ref:t})}),ngt=["axis"],Xwt=R.forwardRef((e,t)=>R.createElement(Y3,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:ngt,tooltipPayloadSearcher:tC,categoricalChartProps:e,ref:t})),rgt=Object.defineProperty,wE=Object.getOwnPropertySymbols,she=Object.prototype.hasOwnProperty,ahe=Object.prototype.propertyIsEnumerable,uK=(e,t,n)=>t in e?rgt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yk=(e,t)=>{for(var n in t||(t={}))she.call(t,n)&&uK(e,n,t[n]);if(wE)for(var n of wE(t))ahe.call(t,n)&&uK(e,n,t[n]);return e},Xk=(e,t)=>{var n={};for(var r in e)she.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&wE)for(var r of wE(e))t.indexOf(r)<0&&ahe.call(e,r)&&(n[r]=e[r]);return n};var cg;(e=>{const t=class It{constructor(l,u,d,f){if(this.version=l,this.errorCorrectionLevel=u,this.modules=[],this.isFunction=[],l<It.MIN_VERSION||l>It.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let g=[];for(let y=0;y<this.size;y++)g.push(!1);for(let y=0;y<this.size;y++)this.modules.push(g.slice()),this.isFunction.push(g.slice());this.drawFunctionPatterns();const m=this.addEccAndInterleave(d);if(this.drawCodewords(m),f==-1){let y=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const w=this.getPenaltyScore();w<y&&(f=b,y=w),this.applyMask(b)}}i(0<=f&&f<=7),this.mask=f,this.applyMask(f),this.drawFormatBits(f),this.isFunction=[]}static encodeText(l,u){const d=e.QrSegment.makeSegments(l);return It.encodeSegments(d,u)}static encodeBinary(l,u){const d=e.QrSegment.makeBytes(l);return It.encodeSegments([d],u)}static encodeSegments(l,u,d=1,f=40,g=-1,m=!0){if(!(It.MIN_VERSION<=d&&d<=f&&f<=It.MAX_VERSION)||g<-1||g>7)throw new RangeError("Invalid value");let y,b;for(y=d;;y++){const A=It.getNumDataCodewords(y,u)*8,T=s.getTotalBits(l,y);if(T<=A){b=T;break}if(y>=f)throw new RangeError("Data too long")}for(const A of[It.Ecc.MEDIUM,It.Ecc.QUARTILE,It.Ecc.HIGH])m&&b<=It.getNumDataCodewords(y,A)*8&&(u=A);let w=[];for(const A of l){n(A.mode.modeBits,4,w),n(A.numChars,A.mode.numCharCountBits(y),w);for(const T of A.getData())w.push(T)}i(w.length==b);const C=It.getNumDataCodewords(y,u)*8;i(w.length<=C),n(0,Math.min(4,C-w.length),w),n(0,(8-w.length%8)%8,w),i(w.length%8==0);for(let A=236;w.length<C;A^=253)n(A,8,w);let E=[];for(;E.length*8<w.length;)E.push(0);return w.forEach((A,T)=>E[T>>>3]|=A<<7-(T&7)),new It(y,u,E,g)}getModule(l,u){return 0<=l&&l<this.size&&0<=u&&u<this.size&&this.modules[u][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let d=0;d<this.size;d++)this.setFunctionModule(6,d,d%2==0),this.setFunctionModule(d,6,d%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),u=l.length;for(let d=0;d<u;d++)for(let f=0;f<u;f++)d==0&&f==0||d==0&&f==u-1||d==u-1&&f==0||this.drawAlignmentPattern(l[d],l[f]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const u=this.errorCorrectionLevel.formatBits<<3|l;let d=u;for(let g=0;g<10;g++)d=d<<1^(d>>>9)*1335;const f=(u<<10|d)^21522;i(f>>>15==0);for(let g=0;g<=5;g++)this.setFunctionModule(8,g,r(f,g));this.setFunctionModule(8,7,r(f,6)),this.setFunctionModule(8,8,r(f,7)),this.setFunctionModule(7,8,r(f,8));for(let g=9;g<15;g++)this.setFunctionModule(14-g,8,r(f,g));for(let g=0;g<8;g++)this.setFunctionModule(this.size-1-g,8,r(f,g));for(let g=8;g<15;g++)this.setFunctionModule(8,this.size-15+g,r(f,g));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let d=0;d<12;d++)l=l<<1^(l>>>11)*7973;const u=this.version<<12|l;i(u>>>18==0);for(let d=0;d<18;d++){const f=r(u,d),g=this.size-11+d%3,m=Math.floor(d/3);this.setFunctionModule(g,m,f),this.setFunctionModule(m,g,f)}}drawFinderPattern(l,u){for(let d=-4;d<=4;d++)for(let f=-4;f<=4;f++){const g=Math.max(Math.abs(f),Math.abs(d)),m=l+f,y=u+d;0<=m&&m<this.size&&0<=y&&y<this.size&&this.setFunctionModule(m,y,g!=2&&g!=4)}}drawAlignmentPattern(l,u){for(let d=-2;d<=2;d++)for(let f=-2;f<=2;f++)this.setFunctionModule(l+f,u+d,Math.max(Math.abs(f),Math.abs(d))!=1)}setFunctionModule(l,u,d){this.modules[u][l]=d,this.isFunction[u][l]=!0}addEccAndInterleave(l){const u=this.version,d=this.errorCorrectionLevel;if(l.length!=It.getNumDataCodewords(u,d))throw new RangeError("Invalid argument");const f=It.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][u],g=It.ECC_CODEWORDS_PER_BLOCK[d.ordinal][u],m=Math.floor(It.getNumRawDataModules(u)/8),y=f-m%f,b=Math.floor(m/f);let w=[];const C=It.reedSolomonComputeDivisor(g);for(let A=0,T=0;A<f;A++){let P=l.slice(T,T+b-g+(A<y?0:1));T+=P.length;const O=It.reedSolomonComputeRemainder(P,C);A<y&&P.push(0),w.push(P.concat(O))}let E=[];for(let A=0;A<w[0].length;A++)w.forEach((T,P)=>{(A!=b-g||P>=y)&&E.push(T[A])});return i(E.length==m),E}drawCodewords(l){if(l.length!=Math.floor(It.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let u=0;for(let d=this.size-1;d>=1;d-=2){d==6&&(d=5);for(let f=0;f<this.size;f++)for(let g=0;g<2;g++){const m=d-g,b=(d+1&2)==0?this.size-1-f:f;!this.isFunction[b][m]&&u<l.length*8&&(this.modules[b][m]=r(l[u>>>3],7-(u&7)),u++)}}i(u==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let u=0;u<this.size;u++)for(let d=0;d<this.size;d++){let f;switch(l){case 0:f=(d+u)%2==0;break;case 1:f=u%2==0;break;case 2:f=d%3==0;break;case 3:f=(d+u)%3==0;break;case 4:f=(Math.floor(d/3)+Math.floor(u/2))%2==0;break;case 5:f=d*u%2+d*u%3==0;break;case 6:f=(d*u%2+d*u%3)%2==0;break;case 7:f=((d+u)%2+d*u%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[u][d]&&f&&(this.modules[u][d]=!this.modules[u][d])}}getPenaltyScore(){let l=0;for(let g=0;g<this.size;g++){let m=!1,y=0,b=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[g][w]==m?(y++,y==5?l+=It.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),m||(l+=this.finderPenaltyCountPatterns(b)*It.PENALTY_N3),m=this.modules[g][w],y=1);l+=this.finderPenaltyTerminateAndCount(m,y,b)*It.PENALTY_N3}for(let g=0;g<this.size;g++){let m=!1,y=0,b=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[w][g]==m?(y++,y==5?l+=It.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),m||(l+=this.finderPenaltyCountPatterns(b)*It.PENALTY_N3),m=this.modules[w][g],y=1);l+=this.finderPenaltyTerminateAndCount(m,y,b)*It.PENALTY_N3}for(let g=0;g<this.size-1;g++)for(let m=0;m<this.size-1;m++){const y=this.modules[g][m];y==this.modules[g][m+1]&&y==this.modules[g+1][m]&&y==this.modules[g+1][m+1]&&(l+=It.PENALTY_N2)}let u=0;for(const g of this.modules)u=g.reduce((m,y)=>m+(y?1:0),u);const d=this.size*this.size,f=Math.ceil(Math.abs(u*20-d*10)/d)-1;return i(0<=f&&f<=9),l+=f*It.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,u=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let d=[6];for(let f=this.size-7;d.length<l;f-=u)d.splice(1,0,f);return d}}static getNumRawDataModules(l){if(l<It.MIN_VERSION||l>It.MAX_VERSION)throw new RangeError("Version number out of range");let u=(16*l+128)*l+64;if(l>=2){const d=Math.floor(l/7)+2;u-=(25*d-10)*d-55,l>=7&&(u-=36)}return i(208<=u&&u<=29648),u}static getNumDataCodewords(l,u){return Math.floor(It.getNumRawDataModules(l)/8)-It.ECC_CODEWORDS_PER_BLOCK[u.ordinal][l]*It.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let u=[];for(let f=0;f<l-1;f++)u.push(0);u.push(1);let d=1;for(let f=0;f<l;f++){for(let g=0;g<u.length;g++)u[g]=It.reedSolomonMultiply(u[g],d),g+1<u.length&&(u[g]^=u[g+1]);d=It.reedSolomonMultiply(d,2)}return u}static reedSolomonComputeRemainder(l,u){let d=u.map(f=>0);for(const f of l){const g=f^d.shift();d.push(0),u.forEach((m,y)=>d[y]^=It.reedSolomonMultiply(m,g))}return d}static reedSolomonMultiply(l,u){if(l>>>8||u>>>8)throw new RangeError("Byte out of range");let d=0;for(let f=7;f>=0;f--)d=d<<1^(d>>>7)*285,d^=(u>>>f&1)*l;return i(d>>>8==0),d}finderPenaltyCountPatterns(l){const u=l[1];i(u<=this.size*3);const d=u>0&&l[2]==u&&l[3]==u*3&&l[4]==u&&l[5]==u;return(d&&l[0]>=u*4&&l[6]>=u?1:0)+(d&&l[6]>=u*4&&l[0]>=u?1:0)}finderPenaltyTerminateAndCount(l,u,d){return l&&(this.finderPenaltyAddHistory(u,d),u=0),u+=this.size,this.finderPenaltyAddHistory(u,d),this.finderPenaltyCountPatterns(d)}finderPenaltyAddHistory(l,u){u[0]==0&&(l+=this.size),u.pop(),u.unshift(l)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(a,l,u){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let d=l-1;d>=0;d--)u.push(a>>>d&1)}function r(a,l){return(a>>>l&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const o=class cr{constructor(l,u,d){if(this.mode=l,this.numChars=u,this.bitData=d,u<0)throw new RangeError("Invalid argument");this.bitData=d.slice()}static makeBytes(l){let u=[];for(const d of l)n(d,8,u);return new cr(cr.Mode.BYTE,l.length,u)}static makeNumeric(l){if(!cr.isNumeric(l))throw new RangeError("String contains
1063non-numeric characters");let u=[];for(let d=0;d<l.length;){const f=Math.min(l.length-d,3);n(parseInt(l.substring(d,d+f),10),f*3+1,u),d+=f}return new cr(cr.Mode.NUMERIC,l.length,u)}static makeAlphanumeric(l){if(!cr.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let u=[],d;for(d=0;d+2<=l.length;d+=2){let f=cr.ALPHANUMERIC_CHARSET.indexOf(l.charAt(d))*45;f+=cr.ALPHANUMERIC_CHARSET.indexOf(l.charAt(d+1)),n(f,11,u)}return d<l.length&&n(cr.ALPHANUMERIC_CHARSET.indexOf(l.charAt(d)),6,u),new cr(cr.Mode.ALPHANUMERIC,l.length,u)}static makeSegments(l){return l==""?[]:cr.isNumeric(l)?[cr.makeNumeric(l)]:cr.isAlphanumeric(l)?[cr.makeAlphanumeric(l)]:[cr.makeBytes(cr.toUtf8ByteArray(l))]}static makeEci(l){let u=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,u);else if(l<16384)n(2,2,u),n(l,14,u);else if(l<1e6)n(6,3,u),n(l,21,u);else throw new RangeError("ECI assignment value out of range");return new cr(cr.Mode.ECI,0,u)}static isNumeric(l){return cr.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return cr.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,u){let d=0;for(const f of l){const g=f.mode.numCharCountBits(u);if(f.numChars>=1<<g)return 1/0;d+=4+g+f.bitData.length}return d}static toUtf8ByteArray(l){l=encodeURI(l);let u=[];for(let d=0;d<l.length;d++)l.charAt(d)!="%"?u.push(l.charCodeAt(d)):(u.push(parseInt(l.substring(d+1,d+3),16)),d+=2);return u}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=o;e.QrSegment=o})(cg||(cg={}));(e=>{(t=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(cg||(cg={}));(e=>{(t=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(cg||(cg={}));var qp=cg;var igt={L:qp.QrCode.Ecc.LOW,M:qp.QrCode.Ecc.MEDIUM,Q:qp.QrCode.Ecc.QUARTILE,H:qp.QrCode.Ecc.HIGH},lhe=128,uhe="L",che="#FFFFFF",dhe="#000000",hhe=!1,fhe=1,ogt=4,sgt=0,agt=.1;function ghe(e,t=0){const n=[];return e.forEach(function(r,i){let o=null;r.forEach(function(s,a){if(!s&&o!==null){n.push(`M${o+t} ${i+t}h${a-o}v1H${o+t}z`),o=null;return}if(a===r.length-1){if(!s)return;o===null?n.push(`M${a+t},${i+t} h1v1H${a+t}z`):n.push(`M${o+t},${i+t} h${a+1-o}v1H${o+t}z`);return}s&&o===null&&(o=a)})}),n.join("")}function phe(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((i,o)=>o<t.x||o>=t.x+t.w?i:!1))}function lgt(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*agt),s=i/t,a=(r.width||o)*s,l=(r.height||o)*s,u=r.x==null?e.length/2-a/2:r.x*s,d=r.y==null?e.length/2-l/2:r.y*s,f=r.opacity==null?1:r.opacity;let g=null;if(r.excavate){let y=Math.floor(u),b=Math.floor(d),w=Math.ceil(a+u-y),C=Math.ceil(l+d-b);g={x:y,y:b,w,h:C}}const m=r.crossOrigin;return{x:u,y:d,h:l,w:a,excavation:g,opacity:f,crossOrigin:m}}function ugt(e,t){return t!=null?Math.max(Math.floor(t),0):e?ogt:sgt}function mhe({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=ye.useMemo(()=>{const y=(Array.isArray(e)?e:[e]).reduce((b,w)=>(b.push(...qp.QrSegment.makeSegments(w)),b),[]);return qp.QrCode.encodeSegments(y,igt[t],n,void 0,void 0,a)},[e,t,n,a]);const{cells:u,margin:d,numCells:f,calculatedImageSettings:g}=ye.useMemo(()=>{let m=l.getModules();const y=ugt(r,i),b=m.length+y*2,w=lgt(m,s,y,o);return{cells:m,margin:y,numCells:b,calculatedImageSettings:w}},[l,s,o,r,i]);return{qrcode:l,margin:d,cells:u,numCells:f,calculatedImageSettings:g}}var cgt=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),dgt=ye.forwardRef(function(t,n){const r=t,{value:i,size:o=lhe,level:s=uhe,bgColor:a=che,fgColor:l=dhe,includeMargin:u=hhe,minVersion:d=fhe,boostLevel:f,marginSize:g,imageSettings:m}=r,b=Xk(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:w}=b,C=Xk(b,["style"]),E=m?.src,A=ye.useRef(null),T=ye.useRef(null),P=ye.useCallback(j=>{A.current=j,typeof n=="function"?n(j):n&&(n.current=j)},[n]),[O,D]=ye.useState(!1),{margin:F,cells:L,numCells:N,calculatedImageSettings:M}=mhe({value:i,level:s,minVersion:d,boostLevel:f,includeMargin:u,marginSize:g,imageSettings:m,size:o});ye.useEffect(()=>{if(A.current!=null){const j=A.current,z=j.getContext("2d");if(!z)return;let H=L;const G=T.current,$=M!=null&&G!==null&&G.complete&&G.naturalHeight!==0&&G.naturalWi
1063dth!==0;$&&M.excavation!=null&&(H=phe(L,M.excavation));const Y=window.devicePixelRatio||1;j.height=j.width=o*Y;const K=o/N*Y;z.scale(K,K),z.fillStyle=a,z.fillRect(0,0,N,N),z.fillStyle=l,cgt?z.fill(new Path2D(ghe(H,F))):L.forEach(function(se,re){se.forEach(function(ue,U){ue&&z.fillRect(U+F,re+F,1,1)})}),M&&(z.globalAlpha=M.opacity),$&&z.drawImage(G,M.x+F,M.y+F,M.w,M.h)}}),ye.useEffect(()=>{D(!1)},[E]);const k=Yk({height:o,width:o},w);let B=null;return E!=null&&(B=ye.createElement("img",{src:E,key:E,style:{display:"none"},onLoad:()=>{D(!0)},ref:T,crossOrigin:M?.crossOrigin})),ye.createElement(ye.Fragment,null,ye.createElement("canvas",Yk({style:k,height:o,width:o,ref:P,role:"img"},C)),B)});dgt.displayName="QRCodeCanvas";var hgt=ye.forwardRef(function(t,n){const r=t,{value:i,size:o=lhe,level:s=uhe,bgColor:a=che,fgColor:l=dhe,includeMargin:u=hhe,minVersion:d=fhe,boostLevel:f,title:g,marginSize:m,imageSettings:y}=r,b=Xk(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:w,cells:C,numCells:E,calculatedImageSettings:A}=mhe({value:i,level:s,minVersion:d,boostLevel:f,includeMargin:u,marginSize:m,imageSettings:y,size:o});let T=C,P=null;y!=null&&A!=null&&(A.excavation!=null&&(T=phe(C,A.excavation)),P=ye.createElement("image",{href:y.src,height:A.h,width:A.w,x:A.x+w,y:A.y+w,preserveAspectRatio:"none",opacity:A.opacity,crossOrigin:A.crossOrigin}));const O=ghe(T,w);return ye.createElement("svg",Yk({height:o,width:o,viewBox:`0 0 ${E} ${E}`,ref:n,role:"img"},b),!!g&&ye.createElement("title",null,g),ye.createElement("path",{fill:a,d:`M0,0 h${E}v${E}H0z`,shapeRendering:"crispEdges"}),ye.createElement("path",{fill:l,d:O,shapeRendering:"crispEdges"}),P)});
vendor: 4,508 bytes, line 1063
1063hgt.displayName="QRCodeSVG";function iw(e){"@babel/helpers - typeof";return iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iw(e)}var tl=Uint8Array,ws=Uint16Array,Z3=Int32Array,Q3=new tl([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),J3=new tl([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),cK=new tl([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vhe=function(e,t){for(var n=new ws(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new Z3(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},yhe=vhe(Q3,2),fgt=yhe.b,Zk=yhe.r;fgt[28]=258,Zk[258]=28;var ggt=vhe(J3,0),dK=ggt.r,Qk=new ws(32768);for(var Hn=0;Hn<32768;++Hn){var vd=(Hn&43690)>>1|(Hn&21845)<<1;vd=(vd&52428)>>2|(vd&13107)<<2,vd=(vd&61680)>>4|(vd&3855)<<4,Qk[Hn]=((vd&65280)>>8|(vd&255)<<8)>>1}var pb=(function(e,t,n){for(var r=e.length,i=0,o=new ws(t);i<r;++i)e[i]&&++o[e[i]-1];var s=new ws(t);for(i=1;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;var a;if(n){a=new ws(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],d=t-e[i],f=s[e[i]-1]++<<d,g=f|(1<<d)-1;f<=g;++f)a[Qk[f]>>l]=u}else for(a=new ws(r),i=0;i<r;++i)e[i]&&(a[i]=Qk[s[e[i]-1]++]>>15-e[i]);return a}),dg=new tl(288);for(var Hn=0;Hn<144;++Hn)dg[Hn]=8;for(var Hn=144;Hn<256;++Hn)dg[Hn]=9;for(var Hn=256;Hn<280;++Hn)dg[Hn]=7;for(var Hn=280;Hn<288;++Hn)dg[Hn]=8;var CE=new tl(32);for(var Hn=0;Hn<32;++Hn)CE[Hn]=5;var pgt=pb(dg,9,0),mgt=pb(CE,5,0),bhe=function(e){return(e+7)/8|0},vgt=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new tl(e.subarray(t,n))},Gu=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Oy=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},SM=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return{t:Che,l:0};if(i==1){var s=new tl(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(P,O){return P.f-O.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,d=1,f=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};d!=i-1;)a=n[n[u].f<n[f].f?u++:f++],l=n[u!=d&&n[u].f<n[f].f?u++:f++],n[d++]={s:-1,f:a.f+l.f,l:a,r:l};for(var g=o[0].s,r=1;r<i;++r)o[r].s>g&&(g=o[r].s);var m=new ws(g+1),y=Jk(n[d-1],m,0);if(y>t){var r=0,b=0,w=y-t,C=1<<w;for(o.sort(function(O,D){return m[D.s]-m[O.s]||O.f-D.f});r<i;++r){var E=o[r].s;if(m[E]>t)b+=C-(1<<y-m[E]),m[E]=t;else break}for(b>>=w;b>0;){var A=o[r].s;m[A]<t?b-=1<<t-m[A]++-1:++r}for(;r>=0&&b;--r){var T=o[r].s;m[T]==t&&(--m[T],++b)}y=t}return{t:new tl(m),l:y}},Jk=function(e,t,n){return e.s==-1?Math.max(Jk(e.l,t,n+1),Jk(e.r,t,n+1)):t[e.s]=n},hK=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ws(++t),r=0,i=e[0],o=1,s=function(l){n[r++]=l},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return{c:n.subarray(0,r),n:t}},Dy=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},whe=function(e,t,n){var r=n.length,i=bhe(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},fK=function(e,t,n,r,i,o,s,a,l,u,d){Gu(t,d++,n),++i[256];for(var f=SM(i,15),g=f.t,m=f.l,y=SM(o,15),b=y.t,w=y.l,C=hK(g),E=C.c,A=C.n,T=hK(b),P=T.c,O=T.n,D=new ws(19),F=0;F<E.length;++F)++D[E[F]&31];for(var F=0;F<P.length;++F)++D[P[F]&31];for(var L=SM(D,7),N=L.t,M=L.l,k=19;k>4&&!N[cK[k-1]];--k);var B=u+5<<3,j=Dy(i,dg)+Dy(o,CE)+s,z=Dy(i,g)+Dy(o,b)+s+14+3*k+Dy(D,N)+2*D[16]+3*D[17]+7*D[18];if(l>=0&&B<=j&&B<=z)return whe(t,d,e.subarray(l,l+u));var H,G,$,Y;if(Gu(t,d,1+(z<j)),d+=2,z<j){H=pb(g,m,0),G=g,$=pb(b,w,0),Y=b;var K=pb(N,M,0);Gu(t,d,A-257),Gu(t,d+5,O-1),Gu(t,d+10,k-4),d+=14;for(var F=0;F<k;++F)Gu(t,d+3*F,N[cK[F]]);d+=3*k;for(var se=[E,P],re=0;re<2;++re)for(var ue=se[re],F=0;F<ue.length;++F){var U=ue[F]&31;Gu(t,d,K[U]),d+=N[U],U>15&&(Gu(t,d,ue[F]>>5&127),d+=ue[F]>>12)}}else H=pgt,G=dg,$=mgt,Y=CE;for(var F=0;F<a;++F){var X=r[F];if(X>255){var U=X>>18&31;Oy(t,d,H[U+257]),d+=G[U+257],U>7&&(Gu(t,d,X>>23&31),d+=Q3[U]);var be=X&31;Oy(t,d,$[be]),d+=Y[be],be>3&&(Oy(t,d,X>>5&8191),d+=J3[be])}else Oy(t,d,H[X]),d+=G[X]}return Oy(t,d,H[256]),d+G[256]},ygt=new Z3([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Che=new tl(0),bgt=function(e,t,n,r,i,o){var s=o.z||e.length,a=new tl
vendor: 10,090 bytes, lines 1063-1064
1063(r+s+5*(1+Math.ceil(s/7e3))+i),l=a.subarray(r,a.length-i),u=o.l,d=(o.r||0)&7;if(t){d&&(l[0]=o.r>>3);for(var f=ygt[t-1],g=f>>13,m=f&8191,y=(1<<n)-1,b=o.p||new ws(32768),w=o.h||new ws(y+1),C=Math.ceil(n/3),E=2*C,A=function(ke){return(e[ke]^e[ke+1]<<C^e[ke+2]<<E)&y},T=new Z3(25e3),P=new ws(288),O=new ws(32),D=0,F=0,L=o.i||0,N=0,M=o.w||0,k=0;L+2<s;++L){var B=A(L),j=L&32767,z=w[B];if(b[j]=z,w[B]=j,M<=L){var H=s-L;if((D>7e3||N>24576)&&(H>423||!u)){d=fK(e,l,0,T,P,O,F,N,k,L-k,d),N=D=F=0,k=L;for(var G=0;G<286;++G)P[G]=0;for(var G=0;G<30;++G)O[G]=0}var $=2,Y=0,K=m,se=j-z&32767;if(H>2&&B==A(L-se))for(var re=Math.min(g,H)-1,ue=Math.min(32767,L),U=Math.min(258,H);se<=ue&&--K&&j!=z;){if(e[L+$]==e[L+$-se]){for(var X=0;X<U&&e[L+X]==e[L+X-se];++X);if(X>$){if($=X,Y=se,X>re)break;for(var be=Math.min(se,X-2),me=0,G=0;G<be;++G){var Oe=L-se+G&32767,ge=b[Oe],ve=Oe-ge&32767;ve>me&&(me=ve,z=Oe)}}}j=z,z=b[j],se+=j-z&32767}if(Y){T[N++]=268435456|Zk[$]<<18|dK[Y];var de=Zk[$]&31,J=dK[Y]&31;F+=Q3[de]+J3[J],++P[257+de],++O[J],M=L+$,++D}else T[N++]=e[L],++P[e[L]]}}for(L=Math.max(L,M);L<s;++L)T[N++]=e[L],++P[e[L]];d=fK(e,l,u,T,P,O,F,N,k,L-k,d),u||(o.r=d&7|l[d/8|0]<<3,d-=7,o.h=w,o.p=b,o.i=L,o.w=M)}else{for(var L=o.w||0;L<s+u;L+=65535){var Fe=L+65535;Fe>=s&&(l[d/8|0]=u,Fe=s),d=whe(l,d+1,e.subarray(L,Fe))}o.i=s}return vgt(a,0,r+bhe(d)+i)},She=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length|0,s=0;s!=o;){for(var a=Math.min(s+2655,o);s<a;++s)i+=r+=n[s];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},wgt=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new tl(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return bgt(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},xhe=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Cgt=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=She();i.p(t.dictionary),xhe(e,2,i.d())}};function Jwt(e,t){t||(t={});var n=She();n.p(e);var r=wgt(e,t,t.dictionary?6:2,4);return Cgt(r,t),xhe(r,r.length-4,n.d()),r}var Sgt=typeof TextDecoder<"u"&&new TextDecoder,xgt=0;try{Sgt.decode(Che,{stream:!0}),xgt=1}catch{}function Egt(e){if(Array.isArray(e))return e}function Rgt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function gK(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Agt(e,t){if(e){if(typeof e=="string")return gK(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gK(e,t):void 0}}function Tgt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1064In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eCt(e,t){return Egt(e)||Rgt(e,t)||Agt(e,t)||Tgt()}function pK(e,t="utf8"){return new TextDecoder(t).decode(e)}const Pgt=new TextEncoder;function Ogt(e){return Pgt.encode(e)}const Dgt=1024*8,Mgt=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),xM={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class e5{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=Dgt,n={}){let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=n.offset?n.offset>>>0:0,o=t.byteLength-i;let s=i;(ArrayBuffer.isView(t)||t instanceof e5)&&(t.byteLength!==t.buffer.byteLength&&(s=t.byteOffset+i),t=t.buffer),r?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=t,this.length=o,this.byteLength=o,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,o),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=xM[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,o=this.buffer.slice(i,i+r);if(this.littleEndian===Mgt&&n!=="uint8"&&n!=="int8"){const a=new Uint8Array(this.buffer.slice(i,i+r));a.reverse();const l=new xM[n](a.buffer);return this.offset+=r,l.reverse(),l}const s=new xM[n](o);return this.offset+=r,s}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return pK(this.readBytes(t))}decodeText(t=1,n="utf8"){return pK(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(Ogt(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function dv(e){let t=e.length;for(;--t>=0;)e[t]=0}const Igt=3,_gt=258,Ehe=29,Fgt=256,kgt=Fgt+1+Ehe,Rhe=30,Lgt=512,Ngt=new Array((kgt+2)*2);dv(Ngt);const Bgt=new Array(Rhe*2);dv(Bgt);const Hgt=new Array(Lgt);dv(Hgt);const Vgt=new Array(_gt-Igt+1);dv(Vgt);const zgt=new Array(Ehe);dv(zgt);const Ggt=new Array(Rhe);dv(Ggt);const jgt=(e,t,n,r)=>{let i=e&65535|0,o=e>>>16&65535|0,s=0;for(;n!==0;){s=n>2e3?2e3:n,n-=s;do i=i+t[r++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0};var eL=jgt;const Ugt=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},Wgt=new Uint32Array(Ugt()),$gt=(e,t,n,r)=>{const i=Wgt,o=r+n;e^=-1;for(let s=r;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1};var Il=$gt,tL={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ahe={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 12,531 bytes, line 1064
1064ROR:-5,Z_DEFLATED:8};const qgt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Kgt=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)qgt(n,r)&&(e[r]=n[r])}}return e},Ygt=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,o=e.length;r<o;r++){let s=e[r];n.set(s,i),i+=s.length}return n},The={assign:Kgt,flattenChunks:Ygt};let Phe=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Phe=!1}const ow=new Uint8Array(256);for(let e=0;e<256;e++)ow[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ow[254]=ow[255]=1;var Xgt=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,o,s=e.length,a=0;for(i=0;i<s;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<s&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),o=0,i=0;o<a;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<s&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const Zgt=(e,t)=>{if(t<65534&&e.subarray&&Phe)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var Qgt=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const o=new Array(n*2);for(i=0,r=0;r<n;){let s=e[r++];if(s<128){o[i++]=s;continue}let a=ow[s];if(a>4){o[i++]=65533,r+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&r<n;)s=s<<6|e[r++]&63,a--;if(a>1){o[i++]=65533;continue}s<65536?o[i++]=s:(s-=65536,o[i++]=55296|s>>10&1023,o[i++]=56320|s&1023)}return Zgt(o,i)},Jgt=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+ow[e[n]]>t?n:t},nL={string2buf:Xgt,buf2string:Qgt,utf8border:Jgt};function ept(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var tpt=ept;const BS=16209,npt=16191;var rpt=function(t,n){let r,i,o,s,a,l,u,d,f,g,m,y,b,w,C,E,A,T,P,O,D,F,L,N;const M=t.state;r=t.next_in,L=t.input,i=r+(t.avail_in-5),o=t.next_out,N=t.output,s=o-(n-t.avail_out),a=o+(t.avail_out-257),l=M.dmax,u=M.wsize,d=M.whave,f=M.wnext,g=M.window,m=M.hold,y=M.bits,b=M.lencode,w=M.distcode,C=(1<<M.lenbits)-1,E=(1<<M.distbits)-1;e:do{y<15&&(m+=L[r++]<<y,y+=8,m+=L[r++]<<y,y+=8),A=b[m&C];t:for(;;){if(T=A>>>24,m>>>=T,y-=T,T=A>>>16&255,T===0)N[o++]=A&65535;else if(T&16){P=A&65535,T&=15,T&&(y<T&&(m+=L[r++]<<y,y+=8),P+=m&(1<<T)-1,m>>>=T,y-=T),y<15&&(m+=L[r++]<<y,y+=8,m+=L[r++]<<y,y+=8),A=w[m&E];n:for(;;){if(T=A>>>24,m>>>=T,y-=T,T=A>>>16&255,T&16){if(O=A&65535,T&=15,y<T&&(m+=L[r++]<<y,y+=8,y<T&&(m+=L[r++]<<y,y+=8)),O+=m&(1<<T)-1,O>l){t.msg="invalid distance too far back",M.mode=BS;break e}if(m>>>=T,y-=T,T=o-s,O>T){if(T=O-T,T>d&&M.sane){t.msg="invalid distance too far back",M.mode=BS;break e}if(D=0,F=g,f===0){if(D+=u-T,T<P){P-=T;do N[o++]=g[D++];while(--T);D=o-O,F=N}}else if(f<T){if(D+=u+f-T,T-=f,T<P){P-=T;do N[o++]=g[D++];while(--T);if(D=0,f<P){T=f,P-=T;do N[o++]=g[D++];while(--T);D=o-O,F=N}}}else if(D+=f-T,T<P){P-=T;do N[o++]=g[D++];while(--T);D=o-O,F=N}for(;P>2;)N[o++]=F[D++],N[o++]=F[D++],N[o++]=F[D++],P-=3;P&&(N[o++]=F[D++],P>1&&(N[o++]=F[D++]))}else{D=o-O;do N[o++]=N[D++],N[o++]=N[D++],N[o++]=N[D++],P-=3;while(P>2);P&&(N[o++]=N[D++],P>1&&(N[o++]=N[D++]))}}else if((T&64)===0){A=w[(A&65535)+(m&(1<<T)-1)];continue n}else{t.msg="invalid distance code",M.mode=BS;break e}break}}else if((T&64)===0){A=b[(A&65535)+(m&(1<<T)-1)];continue t}else if(T&32){M.mode=npt;break e}else{t.msg="invalid literal/length code",M.mode=BS;break e}break}}while(r<i&&o<a);P=y>>3,r-=P,y-=P<<3,m&=(1<<y)-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=o<a?257+(a-o):257-(o-a),M.hold=m,M.bits=y};const Mp=15,mK=852,vK=592,yK=0,EM=1,bK=2,ipt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),opt=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),spt=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),apt=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),lpt=(e,t,n,r,i,o,s,a)=>{const l=a.bits;let u=0,d=0,f=0,g=0,m=0,y=0,b=0,w=0,C=0,E=0,A,T,P,O,D,F=null,L;const N=new Uint16Array(Mp+1),M=new Uint16Array(Mp+1);let k=null,B,j,z;for(u=0;u<=Mp;u++)N[u]=0;for(d=0;d<r;d++)N[t[n+d]]++;for(m=l,g=Mp;g>=1&&N[g]===0;g--);if(m>g&&(m=g),g===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<g&&N[f]===0;f++);for(m<f&&(m=f),w=1,u=1;u<=Mp;u++)if(w<<=1,w-=N[u],w<0)return-1;if(w>0&&(e===yK||g!==1))return-1;for(M[1]=0,u=1;u<Mp;u++)M[u+1]=M[u]+N[u];for(d=0;d<r;d++)t[n+d]!==0&&(s[M[t[n+d]]++]=d);if(e===yK?(F=k=s,L=20):e===EM?(F=ipt,k=opt,L=257):(F=spt,k=apt,L=0),E=0,d=0,u=f,D=o,y=m,b=0,P=-1,C=1<<m,O=C-1,e===EM&&C>mK||e===bK&&C>vK)return 1;for(;;){B=u-b,s[d]+1<L?(j=0,z=s[d]):s[d]>=L?(j=k[s[d]-L],z=F[s[d]-L]):(j=96,z=0),A=1<<u-b,T=1<<y,f=T;do T-=A,i[D+(E>>b)+T]=B<<24|j<<16|z|0;while(T!==0);for(A=1<<u-1;E&A;)A>>=1;if(A!==0?(E&=A-1,E+=A):E=0,d++,--N[u]===0){if(u===g)break;u=t[n+s[d]]}if(u>m&&(E&O)!==P){for(b===0&&(b=m),D+=f,y=u-b,w=1<<y;y+b<g&&(w-=N[y+b],!(w<=0));)y++,w<<=1;if(C+=1<<y,e===EM&&C>mK||e===bK&&C>vK)return 1;P=E&O,i[P]=m<<24|y<<16|D-o|0}}return E!==0&&(i[D+E]=u-b<<24|64<<16|0),a.bits=m,0};var mb=lpt;const upt=0,Ohe=1,Dhe=2,{Z_FINISH:wK,Z_BLOCK:cpt,Z_TREES:HS,Z_OK:hg,Z_STREAM_END:dpt,Z_NEED_DICT:hpt,Z_STREAM_ERROR:ma,Z_DATA_ERROR:Mhe,Z_MEM_ERROR:Ihe,Z_BUF_ERROR:fpt,Z_DEFLATED:CK}=Ahe,EA=16180,SK=16181,xK=16182,EK=16183,RK=16184,AK=16185,TK=16186,PK=16187,OK=16188,DK=16189,SE=16190,ju=16191,RM=16192,MK=16193,AM=16194,IK=16195,_K=16196,FK=16197,kK=16198,VS=16199,zS=16200,LK=16201,NK=16202,BK=16203,HK=16204,VK=16205,TM=16206,zK=16207,GK=16208,Gn=16209,_he=16210,Fhe=16211,gpt=852,ppt=592,mpt=15,vpt=mpt,jK=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ypt(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const _g=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<EA||t.mode>Fhe?1:0},khe=e=>{if(_g(e))return ma;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=EA,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(gpt),t.distcode=t.distdyn=new Int32Array(ppt),t.sane=1,t.back=-1,hg},Lhe=e=>{if(_g(e))return ma;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,khe(e)},Nhe=(e,t)=>{let n;if(_g(e))return ma;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?ma:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Lhe(e))},Bhe=(e,t)=>{if(!e)return ma;const n=new ypt;e.state=n,n.strm=e,n.window=null,n.mode=EA;const r=Nhe(e,t);return r!==hg&&(e.state=null),r},bpt=e=>Bhe(e,vpt);let UK=!0,PM,OM;const wpt=e=>{if(UK){PM=new Int32Array(512),OM=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(mb(Ohe,e.lens,0,288,PM,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;mb(Dhe,e.lens,0,32,OM,0,e.work,{bits:5}),UK=!1}e.lencode=PM,e.lenbits=9,e.distcode=OM,e.distbits=5},Hhe=(e,t,n,r)=>{let i;const o=e.state;return o.window===null&&(o.window=new Uint8Array(1<<o.wbits)),o.wsize===0&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0),r>=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0},Cpt=(e,t)=>{let n,r,i,o,s,a,l,u,d,f,g,m,y,b,w=0,C,E,A,T,P,O,D,F;const L=new Uint8Array(4);let N,M;const k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(_g(e)||!e.output||!e.input&&e.avail_in!==0)return ma;n=e.state,n.mode===ju&&(n.mode=RM),s=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,u=n.hold,d=n.bits,f=a,g=l,F=hg;e:for(;;)switch(n.mode){case EA:if(n.wrap===0){n.mode=RM;break}for(;d<16;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.wrap&2&&u===35615){n.wbits===0&&(n.wbits=15),n.check=0,L[0]=u&255,L[1]=u>>>8&255,n.check=Il(n.check,L,2,0),u=0,d=0,n.mode=SK;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Gn;break}if((u&15)!==CK){e.msg="unknown compression method",n.mode=Gn;break}if(u>>>=4,d-=4,D=(u&15)+8,n.wbits===0&&(n.wbits=D),D>15||D>n.wbits){e.msg="invalid window size",n.mode=Gn;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=u&512?DK:ju,u=0,d=0;break;case SK:for(;d<16;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.flags=u,(n.flags&255)!==CK){e.msg="unknown compression method",n.mode=Gn;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=Gn;break}n.head&&(n.head.text=u>>8&1),n.flags&512&&n.wrap&4&&(L[0]=u&255,L[1]=u>>>8&255,n.check=Il(n.check,L,2,0)),u=0,d=0,n.mode=xK;case xK:for(;d<32;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.head&&(n.head.time=u),n.flags&512&&n.wrap&4&&(L[0]=u&255,L[1]=u>>>8&255,L[2]=u>>>16&255,L[3]=u>>>24&255,n.check=Il(n.check,L,4,0)),u=0,d=0,n.mode=EK;case EK:for(;d<16;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.head&&(n.head.xflags=u&255,n.head.os=u>>8),n.flags&512&&n.wrap&4&&(L[0]=u&255,L[1]=u>>>8&255,n.check=Il(n.check,L,2,0)),u=0,d=0,n.mode=RK;case RK:if(n.flags&1024){for(;d<16;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.length=u,n.head&&(n.head.extra_len=u),n.flags&512&&n.wrap&4&&(L[0]=u&255,L[1]=u>>>8&255,n.check=Il(n.check,L,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=AK;case AK:if(n.flags&1024&&(m=n.length,m>a&&(m=a),m&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+m),D)),n.flags&512&&n.wrap&4&&(n.check=Il(n.check,r,m,o)),a-=m,o+=m,n.length-=m),n.length))break e;n.length=0,n.mode=TK;case TK:if(n.flags&2048){if(a===0)break e;m=0;do D=r[o+m++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D));while(D&&m<a);if(n.flags&512&&n.wrap&4&&(n.check=Il(n.check,r,m,o)),a-=m,o+=m,D)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=PK;case PK:if(n.flags&4096){if(a===0)break e;m=0;do D=r[o+m++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D));while(D&&m<a);if(n.flags&512&&n.wrap&4&&(n.check=Il(n.check,r,m,o)),a-=m,o+=m,D)break e}else n.head&&(n.head.comment=null);n.mode=OK;case OK:if(n.flags&512){for(;d<16;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.wrap&4&&u!==(n.check&65535)){e.msg="header crc mismatch",n.mode=Gn;break}u=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ju;break;case DK:for(;d<32;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}e.adler=n.check=jK(u),u=0,d=0,n.mode=SE;case SE:if(n.havedict===0)return e.next_out=s,e.avail_out=l,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,hpt;e.adler=n.check=1,n.mode=ju;case ju:if(t===cpt||t===HS)break e;case RM:if(n.last){u>>>=d&7,d-=d&7,n.mode=TM;break}for(;d<3;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}switch(n.last=u&1,u>>>=1,d-=1,u&3){case 0:n.mode=MK;break;case 1:if(wpt(n),n.mode=VS,t===HS){u>>>=2,d-=2;break e}break;case 2:n.mode=_K;break;case 3:e.msg="invalid block type",n.mode=Gn}u>>>=2,d-=2;break;case MK:for(u>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Gn;break}
vendor: 4,441 bytes, line 1064
1064if(n.length=u&65535,u=0,d=0,n.mode=AM,t===HS)break e;case AM:n.mode=IK;case IK:if(m=n.length,m){if(m>a&&(m=a),m>l&&(m=l),m===0)break e;i.set(r.subarray(o,o+m),s),a-=m,o+=m,l-=m,s+=m,n.length-=m;break}n.mode=ju;break;case _K:for(;d<14;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.nlen=(u&31)+257,u>>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Gn;break}n.have=0,n.mode=FK;case FK:for(;n.have<n.ncode;){for(;d<3;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.lens[k[n.have++]]=u&7,u>>>=3,d-=3}for(;n.have<19;)n.lens[k[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},F=mb(upt,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,F){e.msg="invalid code lengths set",n.mode=Gn;break}n.have=0,n.mode=kK;case kK:for(;n.have<n.nlen+n.ndist;){for(;w=n.lencode[u&(1<<n.lenbits)-1],C=w>>>24,E=w>>>16&255,A=w&65535,!(C<=d);){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(A<16)u>>>=C,d-=C,n.lens[n.have++]=A;else{if(A===16){for(M=C+2;d<M;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(u>>>=C,d-=C,n.have===0){e.msg="invalid bit length repeat",n.mode=Gn;break}D=n.lens[n.have-1],m=3+(u&3),u>>>=2,d-=2}else if(A===17){for(M=C+3;d<M;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=C,d-=C,D=0,m=3+(u&7),u>>>=3,d-=3}else{for(M=C+7;d<M;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=C,d-=C,D=0,m=11+(u&127),u>>>=7,d-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Gn;break}for(;m--;)n.lens[n.have++]=D}}if(n.mode===Gn)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Gn;break}if(n.lenbits=9,N={bits:n.lenbits},F=mb(Ohe,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,F){e.msg="invalid literal/lengths set",n.mode=Gn;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},F=mb(Dhe,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,F){e.msg="invalid distances set",n.mode=Gn;break}if(n.mode=VS,t===HS)break e;case VS:n.mode=zS;case zS:if(a>=6&&l>=258){e.next_out=s,e.avail_out=l,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,rpt(e,g),s=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,u=n.hold,d=n.bits,n.mode===ju&&(n.back=-1);break}for(n.back=0;w=n.lencode[u&(1<<n.lenbits)-1],C=w>>>24,E=w>>>16&255,A=w&65535,!(C<=d);){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(E&&(E&240)===0){for(T=C,P=E,O=A;w=n.lencode[O+((u&(1<<T+P)-1)>>T)],C=w>>>24,E=w>>>16&255,A=w&65535,!(T+C<=d);){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=T,d-=T,n.back+=T}if(u>>>=C,d-=C,n.back+=C,n.length=A,E===0){n.mode=VK;break}if(E&32){n.back=-1,n.mode=ju;break}if(E&64){e.msg="invalid literal/length code",n.mode=Gn;break}n.extra=E&15,n.mode=LK;case LK:if(n.extra){for(M=n.extra;d<M;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=NK;case NK:for(;w=n.distcode[u&(1<<n.distbits)-1],C=w>>>24,E=w>>>16&255,A=w&65535,!(C<=d);){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if((E&240)===0){for(T=C,P=E,O=A;w=n.distcode[O+((u&(1<<T+P)-1)>>T)],C=w>>>24,E=w>>>16&255,A=w&65535,!(T+C<=d);){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=T,d-=T,n.back+=T}if(u>>>=C,d-=C,n.back+=C,E&64){e.msg="invalid distance code",n.mode=Gn;break}n.offset=A,n.extra=E&15,n.mode=BK;case BK:if(n.extra){for(M=n.extra;d<M;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Gn;break}n.mode=HK;case HK:if(l===0)break e;if(m=g-l,n.offset>m){if(m=n.offset-m,m>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Gn;break}m>n.wnext?(m-=n.wnext,y=n.wsize-m):y=n.wnext-m,m>n.length&&(m=n.length),b=n.window}else b=i,y=s-n.offset,m=n.length;m>l&&(m=l),l-=m,n.length-=m;do i[s++]=b[y++];while(--m);n.length===0&&(n.mode=zS);break;case VK:if(l===0)break e;i[s++]=n.length,l--,n.mode=zS;break;case TM:if(n.wrap){for(;d<32;){if(a===0)break e;a--,u|=r[o++]<<d,d+=8}if(g-=l,e.total_out+=g,n.total+=g,n.wrap&4&&g&&(e.adler=n.check=n.flags?Il(n.check,i,g,s-g):eL(n.check,i,g,s-g)),g=l,n.wrap&4&&(n.flags?u:jK(u))!==n.check){e.msg="incorrect data check",n.mode=Gn;break}u=0,d=0}n.mode=zK;case zK:if(n.wrap&&n.flags){for(;d<32;){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.wrap&4&&u!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=Gn;break}u=0,d=0}n.mode=GK;case GK:F=dpt;break e;case Gn:F=Mhe;break e;case _he:return Ihe;
vendor: 12,604 bytes, line 1064
1064case Fhe:default:return ma}return e.next_out=s,e.avail_out=l,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,(n.wsize||g!==e.avail_out&&n.mode<Gn&&(n.mode<TM||t!==wK))&&Hhe(e,e.output,e.next_out,g-e.avail_out),f-=e.avail_in,g-=e.avail_out,e.total_in+=f,e.total_out+=g,n.total+=g,n.wrap&4&&g&&(e.adler=n.check=n.flags?Il(n.check,i,g,e.next_out-g):eL(n.check,i,g,e.next_out-g)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ju?128:0)+(n.mode===VS||n.mode===AM?256:0),(f===0&&g===0||t===wK)&&F===hg&&(F=fpt),F},Spt=e=>{if(_g(e))return ma;let t=e.state;return t.window&&(t.window=null),e.state=null,hg},xpt=(e,t)=>{if(_g(e))return ma;const n=e.state;return(n.wrap&2)===0?ma:(n.head=t,t.done=!1,hg)},Ept=(e,t)=>{const n=t.length;let r,i,o;return _g(e)||(r=e.state,r.wrap!==0&&r.mode!==SE)?ma:r.mode===SE&&(i=1,i=eL(i,t,n,0),i!==r.check)?Mhe:(o=Hhe(e,t,n,n),o?(r.mode=_he,Ihe):(r.havedict=1,hg))};var Rpt=Lhe,Apt=Nhe,Tpt=khe,Ppt=bpt,Opt=Bhe,Dpt=Cpt,Mpt=Spt,Ipt=xpt,_pt=Ept,Fpt="pako inflate (from Nodeca project)",Bl={inflateReset:Rpt,inflateReset2:Apt,inflateResetKeep:Tpt,inflateInit:Ppt,inflateInit2:Opt,inflate:Dpt,inflateEnd:Mpt,inflateGetHeader:Ipt,inflateSetDictionary:_pt,inflateInfo:Fpt};function kpt(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Lpt=kpt;const Vhe=Object.prototype.toString,{Z_NO_FLUSH:Npt,Z_FINISH:WK,Z_OK:gm,Z_STREAM_END:DM,Z_NEED_DICT:MM,Z_STREAM_ERROR:Bpt,Z_DATA_ERROR:$K,Z_MEM_ERROR:Hpt,Z_BUF_ERROR:qK}=Ahe,Vpt={chunkSize:1024*64,windowBits:15,to:""};function dC(e){this.options=The.assign({},Vpt,e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new tpt,this.strm.avail_out=0;let n=Bl.inflateInit2(this.strm,t.windowBits);if(n!==gm)throw new Error(tL[n]);if(this.header=new Lpt,Bl.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=nL.string2buf(t.dictionary):Vhe.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Bl.inflateSetDictionary(this.strm,t.dictionary),n!==gm)))throw new Error(tL[n])}dC.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?WK:Npt,Vhe.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=Bl.inflate(n,s),o===MM&&i&&(o=Bl.inflateSetDictionary(n,i),o===gm?o=Bl.inflate(n,s):o===$K&&(o=MM));n.avail_in>0&&o===DM&&n.state.wrap&2&&n.state.flags!==0&&n.input[n.next_in]!==0;)Bl.inflateReset(n),o=Bl.inflate(n,s);switch(o){case Bpt:case $K:case MM:case Hpt:return this.onEnd(o),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||o===DM||s>0))if(this.options.to==="string"){let l=nL.utf8border(n.output,n.next_out),u=n.next_out-l,d=nL.buf2string(n.output,l);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(l,l+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out)),n.avail_out=0,n.next_out=0;if(!((o===gm||o===qK)&&a===0)){if(o===DM)return o=Bl.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0){if(s===WK)return o=Bl.inflateEnd(this.strm),this.onEnd(o===gm?qK:o),this.ended=!0,!1;break}}}return!0};dC.prototype.onData=function(e){this.chunks.push(e)};dC.prototype.onEnd=function(e){e===gm&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=The.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function zpt(e,t){const n=new dC(t);if(n.push(e,!0),n.err)throw n.msg||tL[n.err];return n.result}var Gpt=dC,jpt=zpt,Upt={Inflate:Gpt,inflate:jpt};const{Inflate:Wpt,inflate:$pt}=Upt;var KK=Wpt,qpt=$pt;const zhe=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;zhe[e]=t}const YK=4294967295;function Kpt(e,t,n){let r=e;for(let i=0;i<n;i++)r=zhe[(r^t[i])&255]^r>>>8;return r}function Ypt(e,t){return(Kpt(YK,e,t)^YK)>>>0}function XK(e,t,n){const r=e.readUint32(),i=Ypt(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function Ghe(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function jhe(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function Uhe(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function Whe(e,t,n,r,i){let o=0;if(n.length===0){for(;o<i;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+(t[o-i]>>1)&255}else{for(;o<i;o++)t[o]=e[o]+(n[o]>>1)&255;for(;o<r;o++)t[o]=e[o]+(t[o-i]+n[o]>>1)&255}}function $he(e,t,n,r,i){let o=0;if(n.length===0){for(;o<i;o++)t[o]=e[o];for(;o<r;o++)t[o]=e[o]+t[o-i]&255}else{for(;o<i;o++)t[o]=e[o]+n[o]&255;for(;o<r;o++)t[o]=e[o]+Xpt(t[o-i],n[o],n[o-i])&255}}function Xpt(e,t,n){const r=e+t-n,i=Math.abs(r-e),o=Math.abs(r-t),s=Math.abs(r-n);return i<=o&&i<=s?e:o<=s?t:n}function Zpt(e,t,n,r,i,o){switch(e){case 0:Ghe(t,n,i);break;case 1:jhe(t,n,i,o);break;case 2:Uhe(t,n,r,i);break;case 3:Whe(t,n,r,i,o);break;case 4:$he(t,n,r,i,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}const Qpt=new Uint16Array([255]),Jpt=new Uint8Array(Qpt.buffer),emt=Jpt[0]===255;function tmt(e){const{data:t,width:n,height:r,channels:i,depth:o}=e,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(o/8)*i,l=new Uint8Array(r*n*a);let u=0;for(let d=0;d<7;d++){const f=s[d],g=Math.ceil((n-f.x)/f.xStep),m=Math.ceil((r-f.y)/f.yStep);if(g<=0||m<=0)continue;const y=g*a,b=new Uint8Array(y);for(let w=0;w<m;w++){const C=t[u++],E=t.subarray(u,u+y);u+=y;const A=new Uint8Array(y);Zpt(C,E,A,b,y,a),b.set(A);for(let T=0;T<g;T++){const P=f.x+T*f.xStep,O=f.y+w*f.yStep;if(!(P>=n||O>=r))for(let D=0;D<a;D++)l[(O*n+P)*a+D]=A[T*a+D]}}}if(o===16){const d=new Uint16Array(l.buffer);if(emt)for(let f=0;f<d.length;f++)d[f]=nmt(d[f]);return d}else return l}function nmt(e){return(e&255)<<8|e>>8&255}const rmt=new Uint16Array([255]),imt=new Uint8Array(rmt.buffer),omt=imt[0]===255,smt=new Uint8Array(0);function ZK(e){const{data:t,width:n,height:r,channels:i,depth:o}=e,s=Math.ceil(o/8)*i,a=Math.ceil(o/8*i*n),l=new Uint8Array(r*a);let u=smt,d=0,f,g;for(let m=0;m<r;m++){switch(f=t.subarray(d+1,d+1+a),g=l.subarray(m*a,(m+1)*a),t[d]){case 0:Ghe(f,g,a);break;case 1:jhe(f,g,a,s);break;case 2:Uhe(f,g,u,a);break;case 3:Whe(f,g,u,a,s);break;case 4:$he(f,g,u,a,s);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}u=g,d+=a+1}if(o===16){const m=new Uint16Array(l.buffer);if(omt)for(let y=0;y<m.length;y++)m[y]=amt(m[y]);return m}else return l}function amt(e){return(e&255)<<8|e>>8&255}const w1=Uint8Array.of(137,80,78,71,13,10,26,10);function QK(e){if(!lmt(e.readBytes(w1.length)))throw new Error("wrong PNG signature")}function lmt(e){if(e.length<w1.length)return!1;for(let t=0;t<w1.length;t++)if(e[t]!==w1[t])return!1;return!0}const umt="tEXt",cmt=0,qhe=new TextDecoder("latin1");function dmt(e){if(fmt(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const hmt=/^[\u0000-\u00FF]*$/;function fmt(e){if(!hmt.test(e))throw new Error("invalid latin1 text")}function gmt(e,t,n){const r=Khe(t);e[r]=pmt(t,n-r.length-1)}function Khe(e){for(e.mark();e.readByte()!==cmt;);const t=e.offset;e.reset();const n=qhe.decode(e.readBytes(t-e.offset-1));return e.skip(1),dmt(n),n}function pmt(e,t){return qhe.decode(e.readBytes(t))}const gs={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},IM={UNKNOWN:-1,DEFLATE:0},JK={UNKNOWN:-1,ADAPTIVE:0},_M={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},GS={NONE:0,BACKGROUND:1,PREVIOUS:2},FM={SOURCE:0,OVER:1};class mmt extends e5{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,n={}){super(t);const{checkCrc:r=!1}=n;this._checkCrc=r,this._inflator=new KK,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=IM.UNKNOWN,this._filterMethod=JK.UNKNOWN,this._interlaceMethod=_M.UNKNOWN,this._colorType=gs.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(QK(this);!this._end;){const t=this.readUint32(),n=this.readChars(4);this.decodeChunk(t,n)}return this.decodeImage(),this._png}decodeApng(){for(QK(this);!this._end;){const t=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(t,n)}return this.decodeApngImage(),this._apng}decodeChunk(t,n){const r=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case umt:gmt(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?XK(this,t+4,n):this.skip(4)}decodeApngChunk(t,n){const r=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,n),this.offset=r+t;break}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?XK(this,t+4,n):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=vmt(this.readUint8());const n=this.readUint8();this._colorType=n;let r;switch(n){case gs.GREYSCALE:r=1;break;case gs.TRUECOLOUR:r=3;break;case gs.INDEXED_COLOUR:r=1;break;case gs.GREYSCALE_ALPHA:r=2;break;case gs.TRUECOLOUR_ALPHA:r=4;break;case gs.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==IM.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const n=t/3;this._hasPalette=!0;const r=[];this._palette=r;for(let i=0;i<n;i++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const n=t,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let n=t,r=this.offset+this.byteOffset;if(r+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,r,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case gs.GREYSCALE:case gs.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let n=0;n<t/2;n++)this._transparency[n]=this.readUint16();break}case gs.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alph
1064a values than there are palette colors (${t} vs ${this._palette.length})`);let n=0;for(;n<t;n++){const r=this.readByte();this._palette[n].push(r)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case gs.UNKNOWN:case gs.GREYSCALE_ALPHA:case gs.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const n=Khe(this),r=this.readUint8();if(r!==IM.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);const i=this.readBytes(t-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:qpt(i)}}decodepHYs(){const t=this.readUint32(),n=this.readUint32(),r=this.readByte();this._png.resolution={x:t,y:n,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const n={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(t);if(r){if(r.data=ZK({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)n.data=r.data;else{const i=this._apng.frames.at(t-1);this.disposeFrame(r,i,n),this.addFrameDataToCanvas(n,r)}this._apng.frames.push(n)}}return this._apng}disposeFrame(t,n,r){switch(t.disposeOp){case GS.NONE:break;case GS.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let o=0;o<this._png.width;o++){const s=(i*t.width+o)*this._png.channels;for(let a=0;a<this._png.channels;a++)r.data[s+a]=0}break;case GS.PREVIOUS:r.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,n){const r=1<<this._png.depth,i=(o,s)=>{const a=((o+n.yOffset)*this._png.width+n.xOffset+s)*this._png.channels,l=(o*n.width+s)*this._png.channels;return{index:a,frameIndex:l}};switch(n.blendOp){case FM.SOURCE:for(let o=0;o<n.height;o++)for(let s=0;s<n.width;s++){const{index:a,frameIndex:l}=i(o,s);for(let u=0;u<this._png.channels;u++)t.data[a+u]=n.data[l+u]}break;case FM.OVER:for(let o=0;o<n.height;o++)for(let s=0;s<n.width;s++){const{index:a,frameIndex:l}=i(o,s);for(let u=0;u<this._png.channels;u++){const d=n.data[l+this._png.channels-1]/r,f=u%(this._png.channels-1)===0?1:n.data[l+u],g=Math.floor(d*f+(1-d)*t.data[a+u]);t.data[a+u]+=g}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==JK.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===_M.NO_INTERLACE)this._png.data=ZK({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===_M.ADAM7)this._png.data=tmt({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,n=this._frames.at(-1);n?n.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:GS.NONE,blendOp:FM.SOURCE,data:t}),this._inflator=new KK,this._writingDataChunks=!1}}function vmt(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var eY;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(eY||(eY={}));function tCt(e,t){return new mmt(e,t).decode()}function Yhe(e,t,n,r,i){r=r||{};var o=1.15,s=i.internal.scaleFactor,a=i.internal.getFontSize()/s,l=i.getLineHeightFactor?i.getLineHeightFactor():o,u=a*l,d=/\r\n|\r|\n/g,f="",g=1;if((r.valign==="middle"||r.valign==="bottom"||r.halign==="center"||r.halign==="right")&&(f=typeof e=="string"?e.split(d):e,g=f.length||1),n+=a*(2-o),r.valign==="middle"?n-=g/2*u:r.valign==="bottom"&&(n-=g*u),r.halign==="center"||r.halign==="right"){var m=a;if(r.halign==="center"&&(m*=.5),f&&g>=1){for(var y=0;y<f.length;y++)i.text(f[y],t-i.getStringUnitWidth(f[y])*m,n),n+=u;return i}t-=i.getStringUnitWidth(e)*m}return r.halign==="justify"?i.text(e,t,n,{maxWidth:r.maxWidth||100,align:"justify"}):i.text(e,t,n),i}var tY={},pm=(function(){function e(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return e.setDefaults=function(t,n){n===void 0&&(n=null),n?n.__autoTableDocumentDefaults=t:tY=t},e.unifyColor=function(t){return Array.isArray(t)?t:typeof t=="number"?[t,t,t]:typeof t=="string"?[t]:null},e.prototype.applyStyles=function(t,n){var r,i,o;n===void 0&&(n=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var s=this.jsPDFDocument.internal.getFont(),a=s.fontStyle,l=s.fontName;if(t.font&&(l=t.font),t.fontStyle){a=t.fontStyle;
1064var u=this.getFontList()[l];u&&u.indexOf(a)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(u[0]),a=u[0])}if(this.jsPDFDocument.setFont(l,a),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!n){var d=e.unifyColor(t.fillColor);d&&(r=this.jsPDFDocument).setFillColor.apply(r,d),d=e.unifyColor(t.textColor),d&&(i=this.jsPDFDocument).setTextColor.apply(i,d),d=e.unifyColor(t.lineColor),d&&(o=this.jsPDFDocument).setDrawColor.apply(o,d),typeof t.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},e.prototype.splitTextToSize=function(t,n,r){return this.jsPDFDocument.splitTextToSize(t,n,r)},e.prototype.rect=function(t,n,r,i,o){return this.jsPDFDocument.rect(t,n,r,i,o)},e.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},e.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},e.prototype.getDocument=function(){return this.jsPDFDocument},e.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},e.prototype.addPage=function(){return this.jsPDFDocument.addPage()},e.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},e.prototype.getGlobalOptions=function(){return tY||{}},e.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},e.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return t.width==null&&(t={width:t.getWidth(),height:t.getHeight()}),t},e.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},e.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},e.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},e.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},e})(),rL=function(e,t){return rL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},rL(e,t)};function Xhe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rL(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Zhe=(function(e){Xhe(t,e);function t(n){var r=e.call(this)||this;return r._element=n,r}return t})(Array);function ymt(e){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/e,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function bmt(e){var t={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return t[e]}function xE(e,t,n){n.applyStyles(t,!0);var r=Array.isArray(e)?e:[e],i=r.map(function(o){return n.getTextWidth(o)}).reduce(function(o,s){return Math.max(o,s)},0);return i}function Qhe(e,t,n,r){var i=t.settings.tableLineWidth,o=t.settings.tableLineColor;e.applyStyles({lineWidth:i,lineColor:o});var s=Jhe(i,!1);s&&e.rect(n.x,n.y,t.getWidth(e.pageSize().width),r.y-n.y,s)}function Jhe(e,t){var n=e>0,r=t||t===0;return n&&r?"DF":n?"S":r?"F":null}function RA(e,t){var n,r,i,o;if(e=e||t,Array.isArray(e)){if(e.length>=4)return{top:e[0],right:e[1],bottom:e[2],left:e[3]};if(e.length===3)return{top:e[0],right:e[1],bottom:e[2],left:e[1]};if(e.length===2)return{top:e[0],right:e[1],bottom:e[0],left:e[1]};e.length===1?e=e[0]:e=t}return typeof e=="object"?(typeof e.vertical=="number"&&(e.top=e.vertical,e.bottom=e.vertical),typeof e.horizontal=="number"&&(e.right=e.horizontal,e.left=e.horizontal),{left:(n=e.left)!==null&&n!==void 0?n:t,top:(r=e.top)!==null&&r!==void 0?r:t,right:(i=e.right)!==null&&i!==void 0?i:t,bottom:(o=e.bottom)!==null&&o!==void 0?o:t}):(typeof e!="number"&&(e=t),{top:e,right:e,bottom:e,left:e})}
1064function efe(e,t){var n=RA(t.settings.margin,0);return e.pageSize().width-(n.left+n.right)}function wmt(e,t,n,r,i){var o={},s=1.3333333333333333,a=kM(t,function(A){return i.getComputedStyle(A).backgroundColor});a!=null&&(o.fillColor=a);var l=kM(t,function(A){return i.getComputedStyle(A).color});l!=null&&(o.textColor=l);var u=Smt(r,n);u&&(o.cellPadding=u);var d="borderTopColor",f=s*n,g=r.borderTopWidth;if(r.borderBottomWidth===g&&r.borderRightWidth===g&&r.borderLeftWidth===g){var m=(parseFloat(g)||0)/f;m&&(o.lineWidth=m)}else o.lineWidth={top:(parseFloat(r.borderTopWidth)||0)/f,right:(parseFloat(r.borderRightWidth)||0)/f,bottom:(parseFloat(r.borderBottomWidth)||0)/f,left:(parseFloat(r.borderLeftWidth)||0)/f},o.lineWidth.top||(o.lineWidth.right?d="borderRightColor":o.lineWidth.bottom?d="borderBottomColor":o.lineWidth.left&&(d="borderLeftColor"));var y=kM(t,function(A){return i.getComputedStyle(A)[d]});y!=null&&(o.lineColor=y);var b=["left","right","center","justify"];b.indexOf(r.textAlign)!==-1&&(o.halign=r.textAlign),b=["middle","bottom","top"],b.indexOf(r.verticalAlign)!==-1&&(o.valign=r.verticalAlign);var w=parseInt(r.fontSize||"");isNaN(w)||(o.fontSize=w/s);var C=Cmt(r);C&&(o.fontStyle=C);var E=(r.fontFamily||"").toLowerCase();return e.indexOf(E)!==-1&&(o.font=E),o}function Cmt(e){var t="";return(e.fontWeight==="bold"||e.fontWeight==="bolder"||parseInt(e.fontWeight)>=700)&&(t="bold"),(e.fontStyle==="italic"||e.fontStyle==="oblique")&&(t+="italic"),t}function kM(e,t){var n=tfe(e,t);if(!n)return null;var r=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!r||!Array.isArray(r))return null;var i=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])],o=parseInt(r[4]);return o===0||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function tfe(e,t){var n=t(e);return n==="rgba(0, 0, 0, 0)"||n==="transparent"||n==="initial"||n==="inherit"?e.parentElement==null?null:tfe(e.parentElement,t):n}function Smt(e,t){var n=[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft],r=96/(72/t),i=(parseInt(e.lineHeight)-parseInt(e.fontSize))/t/2,o=n.map(function(a){return parseInt(a||"0")/r}),s=RA(o,0);return i>s.top&&(s.top=i),i>s.bottom&&(s.bottom=i),s}function nfe(e,t,n,r,i){var o,s;r===void 0&&(r=!1),i===void 0&&(i=!1);var a;typeof t=="string"?a=n.document.querySelector(t):a=t;var l=Object.keys(e.getFontList()),u=e.scaleFactor(),d=[],f=[],g=[];if(!a)return console.error("Html table could not be found with input: ",t),{head:d,body:f,foot:g};for(var m=0;m<a.rows.length;m++){var y=a.rows[m],b=(s=(o=y?.parentElement)===null||o===void 0?void 0:o.tagName)===null||s===void 0?void 0:s.toLowerCase(),w=xmt(l,u,n,y,r,i);w&&(b==="thead"?d.push(w):b==="tfoot"?g.push(w):f.push(w))}return{head:d,body:f,foot:g}}function xmt(e,t,n,r,i,o){for(var s=new Zhe(r),a=0;a<r.cells.length;a++){var l=r.cells[a],u=n.getComputedStyle(l);if(i||u.display!=="none"){var d=void 0;o&&(d=wmt(e,l,t,u,n)),s.push({rowSpan:l.rowSpan,colSpan:l.colSpan,styles:d,_element:l,content:Emt(l)})}}var f=n.getComputedStyle(r);if(s.length>0&&(i||f.display!=="none"))return s}function Emt(e){var t=e.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map(function(n){return n.trim()}).join(` 1065`),t.innerText||t.textContent||""}function Rmt(e,t,n){for(var r=0,i=[e,t,n];r<i.length;r++){var o=i[r];o&&typeof o!="object"&&console.error("The options parameter should be of type object, is: "+typeof o),o.startY&&typeof o.startY!="number"&&(console.error("Invalid value for startY option",o.startY),delete o.startY)}}function ic(e,t,n,r,i){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),s=1;s<arguments.length;s++){var a=arguments[s];if(a!=null)for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(o[l]=a[l])}return o}function rfe(e,t){var n=new pm(e),r=n.getDocumentOptions(),i=n.getGlobalOptions();Rmt(i,r,t);var o=ic({},i,r,t),s;typeof window<"u"&&(s=window);var a=Amt(i,r,t),l=Tmt(i,r,t),u=Pmt(n,o),d=Dmt(n,o,s);return{id:t.tableId,content:d,hooks:l,styles:a,settings:u}}function Amt(e,t,n){for(var r={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},i=function(l){if(l==="columnStyles"){var u=e[l],d=t[l],f=n[l];r.columnStyles=ic({},u,d,f)}else{var g=[e,t,n],m=g.map(function(y){return y[l]||{}});r[l]=ic({},m[0],m[1],m[2])}},o=0,s=Object.keys(r);o<s.length;o++){var a=s[o];i(a)}return r}function Tmt(e,t,n){for(var r=[e,t,n],i={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},o=0,s=r;o<s.length;o++){var a=s[o];a.didParseCell&&i.didParseCell.push(a.didParseCell),a.willDrawCell&&i.willDrawCell.push(a.willDrawCell),a.didDrawCell&&i.didDrawCell.push(a.didDrawCell),a.willDrawPage&&i.willDrawPage.push(a.willDrawPage),a.didDrawPage&&i.didDrawPage.push(a.didDrawPage)}return i}function Pmt(e,t){var n,r,i,o,s,a,l,u,d,f,g,m,y=RA(t.margin,40/e.scaleFactor()),b=(n=Omt(e,t.startY))!==null&&n!==void 0?n:y.top,w;
1065t.showFoot===!0?w="everyPage":t.showFoot===!1?w="never":w=(r=t.showFoot)!==null&&r!==void 0?r:"everyPage";var C;t.showHead===!0?C="everyPage":t.showHead===!1?C="never":C=(i=t.showHead)!==null&&i!==void 0?i:"everyPage";var E=(o=t.useCss)!==null&&o!==void 0?o:!1,A=t.theme||(E?"plain":"striped"),T=!!t.horizontalPageBreak,P=(s=t.horizontalPageBreakRepeat)!==null&&s!==void 0?s:null;return{includeHiddenHtml:(a=t.includeHiddenHtml)!==null&&a!==void 0?a:!1,useCss:E,theme:A,startY:b,margin:y,pageBreak:(l=t.pageBreak)!==null&&l!==void 0?l:"auto",rowPageBreak:(u=t.rowPageBreak)!==null&&u!==void 0?u:"auto",tableWidth:(d=t.tableWidth)!==null&&d!==void 0?d:"auto",showHead:C,showFoot:w,tableLineWidth:(f=t.tableLineWidth)!==null&&f!==void 0?f:0,tableLineColor:(g=t.tableLineColor)!==null&&g!==void 0?g:200,horizontalPageBreak:T,horizontalPageBreakRepeat:P,horizontalPageBreakBehaviour:(m=t.horizontalPageBreakBehaviour)!==null&&m!==void 0?m:"afterAllRows"}}function Omt(e,t){var n=e.getLastAutoTable(),r=e.scaleFactor(),i=e.pageNumber(),o=!1;if(n&&n.startPageNumber){var s=n.startPageNumber+n.pageNumber-1;o=s===i}return typeof t=="number"?t:(t==null||t===!1)&&o&&n?.finalY!=null?n.finalY+20/r:null}function Dmt(e,t,n){var r=t.head||[],i=t.body||[],o=t.foot||[];if(t.html){var s=t.includeHiddenHtml;if(n){var a=nfe(e,t.html,n,s,t.useCss)||{};r=a.head||r,i=a.body||r,o=a.foot||r}else console.error("Cannot parse html in non browser environment")}var l=t.columns||Mmt(r,i,o);return{columns:l,head:r,body:i,foot:o}}function Mmt(e,t,n){var r=e[0]||t[0]||n[0]||[],i=[];return Object.keys(r).filter(function(o){return o!=="_element"}).forEach(function(o){var s=1,a;Array.isArray(r)?a=r[parseInt(o)]:a=r[o],typeof a=="object"&&!Array.isArray(a)&&(s=a?.colSpan||1);for(var l=0;l<s;l++){var u=void 0;Array.isArray(r)?u=i.length:u=o+(l>0?"_".concat(l):"");var d={dataKey:u};i.push(d)}}),i}var iL=(function(){function e(t,n,r){this.table=n,this.pageNumber=n.pageNumber,this.settings=n.settings,this.cursor=r,this.doc=t.getDocument()}return e})(),Imt=(function(e){Xhe(t,e);function t(n,r,i,o,s,a){var l=e.call(this,n,r,a)||this;return l.cell=i,l.row=o,l.column=s,l.section=o.section,l}return t})(iL),_mt=(function(){function e(t,n){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=n.columns,this.head=n.head,this.body=n.body,this.foot=n.foot}return e.prototype.getHeadHeight=function(t){return this.head.reduce(function(n,r){return n+r.getMaxCellHeight(t)},0)},e.prototype.getFootHeight=function(t){return this.foot.reduce(function(n,r){return n+r.getMaxCellHeight(t)},0)},e.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},e.prototype.callCellHooks=function(t,n,r,i,o,s){for(var a=0,l=n;a<l.length;a++){var u=l[a],d=new Imt(t,this,r,i,o,s),f=u(d)===!1;if(r.text=Array.isArray(r.text)?r.text:[r.text],f)return!1}return!0},e.prototype.callEndPageHooks=function(t,n){t.applyStyles(t.userStyles);for(var r=0,i=this.hooks.didDrawPage;r<i.length;r++){var o=i[r];o(new iL(t,this,n))}},e.prototype.callWillDrawPageHooks=function(t,n){for(var r=0,i=this.hooks.willDrawPage;r<i.length;r++){var o=i[r];o(new iL(t,this,n))}},e.prototype.getWidth=function(t){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var n=this.columns.reduce(function(i,o){return i+o.wrappedWidth},0);return n}else{var r=this.settings.margin;return t-r.left-r.right}},e})(),ife=(function(){function e(t,n,r,i,o){o===void 0&&(o=!1),this.height=0,this.raw=t,t instanceof Zhe&&(this.raw=t._element,this.element=t._element),this.index=n,this.section=r,this.cells=i,this.spansMultiplePages=o}return e.prototype.getMaxCellHeight=function(t){var n=this;return t.reduce(function(r,i){var o;return Math.max(r,((o=n.cells[i.index])===null||o===void 0?void 0:o.height)||0)},0)},e.prototype.hasRowSpan=function(t){var n=this;return t.filter(function(r){var i=n.cells[r.index];return i?i.rowSpan>1:!1}).length>0},e.prototype.canEntireRowFit=function(t,n){return this.getMaxCellHeight(n)<=t},e.prototype.getMinimumRowHeight=function(t,n){var r=this;return t.reduce(function(i,o){var s=r.cells[o.index];if(!s)return 0;var a=n.getLineHeight(s.styles.fontSize),l=s.padding("vertical"),u=l+a;return u>i?u:i},0)},e})(),ofe=(function(){function e(t,n,r){var i;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=n,this.section=r,this.raw=t;var o=t;t!=null&&typeof t=="object"&&!Array.isArray(t)?(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,o=(i=t.content)!==null&&i!==void 0?i:t,t._element&&(this.raw=t._element)):(this.rowSpan=1,this.colSpan=1);var s=o!=null?""+o:"",a=/\r\n|\r|\n/g;this.text=s.split(a)}return e.prototype.getTextPos=function(){var t;if(this.styles.valign==="top")t=this.y+this.padding("top");else if(this.styles.valign==="bottom")t=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");t=this.y+n/2+this.padding("top")}var r;if(this.styles.halign==="right")r=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var i=this.width-this.padding("horizontal");r=this.x+i/2+this.padding("left")}else r=this.x+this.padding("left");return{x:r,y:t}},e.prototype.getContentHeight=function(t,n){n===void 0&&(n=1.15);var r=Array.isArray(this.text)?this.text.length:1,i=this.styles.fontSize/t*n,o=r*i+this.padding("vertical");return Math.max(o,this.styles.minCellHeight)},e.prototype.padding=function(t){var n=RA(this.styles.cellPadding,0);return t==="vertical"?n.top+n.bottom:t==="horizontal"?n.left+n.right:n[t]},e})(),Fmt=(function(){function e(t,n,r){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=n,this.index=r}return e.prototype.getMaxCustomCellWidth=function(t){for(var n=0,r=0,i=t.allRows();r<i.length;r++){var o=i[r],s=o.cells[this.index];s&&typeof s.styles.cellWidth=="number"&&(n=Math.max(n,s.styles.cellWidth))}return n},e})();function kmt(e,t){Lmt(e,t);var n=[],r=0;t.columns.forEach(function(o){var s=o.getMaxCustomCellWidth(t);s?o.width=s:(o.width=o.wrappedWidth,n.push(o)),r+=o.width});var i=t.getWidth(e.pageSize().width)-r;i&&(i=oL(n,i,function(o){return Math.max(o.minReadableWidth,o.minWidth)})),i&&(i=oL(n,i,function(o){return o.minWidth})),i=Math.abs(i),!t.settings.horizontalPageBreak&&i>.1/e.scaleFactor()&&(i=i<1?i:Math.round(i),console.log("Of the table content, ".concat(i," units width could not fit page"))),Bmt(t),Hmt(t,e),Nmt(t)}function Lmt(e,t){var n=e.scaleFactor(),r=t.settings.horizontalPageBreak,i=efe(e,t);
1065t.allRows().forEach(function(o){for(var s=0,a=t.columns;s<a.length;s++){var l=a[s],u=o.cells[l.index];if(u){var d=t.hooks.didParseCell;t.callCellHooks(e,d,u,o,l,null);var f=u.padding("horizontal");u.contentWidth=xE(u.text,u.styles,e)+f;var g=xE(u.text.join(" ").split(/[^\S\u00A0]+/),u.styles,e);if(u.minReadableWidth=g+u.padding("horizontal"),typeof u.styles.cellWidth=="number")u.minWidth=u.styles.cellWidth,u.wrappedWidth=u.styles.cellWidth;else if(u.styles.cellWidth==="wrap"||r===!0)u.contentWidth>i?(u.minWidth=i,u.wrappedWidth=i):(u.minWidth=u.contentWidth,u.wrappedWidth=u.contentWidth);else{var m=10/n;u.minWidth=u.styles.minCellWidth||m,u.wrappedWidth=u.contentWidth,u.minWidth>u.wrappedWidth&&(u.wrappedWidth=u.minWidth)}}}}),t.allRows().forEach(function(o){for(var s=0,a=t.columns;s<a.length;s++){var l=a[s],u=o.cells[l.index];if(u&&u.colSpan===1)l.wrappedWidth=Math.max(l.wrappedWidth,u.wrappedWidth),l.minWidth=Math.max(l.minWidth,u.minWidth),l.minReadableWidth=Math.max(l.minReadableWidth,u.minReadableWidth);else{var d=t.styles.columnStyles[l.dataKey]||t.styles.columnStyles[l.index]||{},f=d.cellWidth||d.minCellWidth;f&&typeof f=="number"&&(l.minWidth=f,l.wrappedWidth=f)}u&&(u.colSpan>1&&!l.minWidth&&(l.minWidth=u.minWidth),u.colSpan>1&&!l.wrappedWidth&&(l.wrappedWidth=u.minWidth))}})}function oL(e,t,n){for(var r=t,i=e.reduce(function(m,y){return m+y.wrappedWidth},0),o=0;o<e.length;o++){var s=e[o],a=s.wrappedWidth/i,l=r*a,u=s.width+l,d=n(s),f=u<d?d:u;t-=f-s.width,s.width=f}if(t=Math.round(t*1e10)/1e10,t){var g=e.filter(function(m){return t<0?m.width>n(m):!0});g.length&&(t=oL(g,t,n))}return t}function Nmt(e){for(var t={},n=1,r=e.allRows(),i=0;i<r.length;i++)for(var o=r[i],s=0,a=e.columns;s<a.length;s++){var l=a[s],u=t[l.index];if(n>1)n--,delete o.cells[l.index];else if(u)u.cell.height+=o.height,n=u.cell.colSpan,delete o.cells[l.index],u.left--,u.left<=1&&delete t[l.index];else{var d=o.cells[l.index];if(!d)continue;if(d.height=o.height,d.rowSpan>1){var f=r.length-i,g=d.rowSpan>f?f:d.rowSpan;t[l.index]={cell:d,left:g,row:o}}}}}function Bmt(e){for(var t=e.allRows(),n=0;n<t.length;n++)for(var r=t[n],i=null,o=0,s=0,a=0;a<e.columns.length;a++){var l=e.columns[a];if(s-=1,s>1&&e.columns[a+1])o+=l.width,delete r.cells[l.index];else if(i){var u=i;delete r.cells[l.index],i=null,u.width=l.width+o}else{var u=r.cells[l.index];if(!u)continue;if(s=u.colSpan,o=0,u.colSpan>1){i=u,o+=l.width;continue}u.width=l.width+o}}}function Hmt(e,t){for(var n={count:0,height:0},r=0,i=e.allRows();r<i.length;r++){for(var o=i[r],s=0,a=e.columns;s<a.length;s++){var l=a[s],u=o.cells[l.index];if(u){t.applyStyles(u.styles,!0);var d=u.width-u.padding("horizontal");if(u.styles.overflow==="linebreak")u.text=t.splitTextToSize(u.text,d+1/t.scaleFactor(),{fontSize:u.styles.fontSize});else if(u.styles.overflow==="ellipsize")u.text=nY(u.text,d,u.styles,t,"...");else if(u.styles.overflow==="hidden")u.text=nY(u.text,d,u.styles,t,"");else if(typeof u.styles.overflow=="function"){var f=u.styles.overflow(u.text,d);typeof f=="string"?u.text=[f]:u.text=f}u.contentHeight=u.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var g=u.contentHeight/u.rowSpan;u.rowSpan>1&&n.count*n.height<g*u.rowSpan?n={height:g,count:u.rowSpan}:n&&n.count>0&&n.height>g&&(g=n.height),g>o.height&&(o.height=g)}}n.count--}}function nY(e,t,n,r,i){return e.map(function(o){return Vmt(o,t,n,r,i)})}function Vmt(e,t,n,r,i){var o=1e4*r.scaleFactor();if(t=Math.ceil(t*o)/o,t>=xE(e,n,r))return e;for(;t<xE(e+i,n,r)&&!(e.length<=1);)e=e.substring(0,e.length-1);return e.trim()+i}function sfe(e,t){var n=new pm(e),r=zmt(t,n.scaleFactor()),i=new _mt(t,r);return kmt(n,i),n.applyStyles(n.userStyles),i}function zmt(e,t){var n=e.content,r=jmt(n.columns);if(n.head.length===0){var i=rY(r,"head");i&&n.head.push(i)}if(n.foot.length===0){var i=rY(r,"foot");i&&n.foot.push(i)}var o=e.settings.theme,s=e.styles;return{columns:r,head:LM("head",n.head,r,s,o,t),body:LM("body",n.body,r,s,o,t),foot:LM("foot",n.foot,r,s,o,t)}}function LM(e,t,n,r,i,o){var s={},a=t.map(function(l,u){for(var d=0,f={},g=0,m=0,y=0,b=n;y<b.length;y++){var w=b[y];if(s[w.index]==null||s[w.index].left===0)if(m===0){var C=void 0;Array.isArray(l)?C=l[w.index-g-d]:C=l[w.dataKey];var E={};typeof C=="object"&&!Array.isArray(C)&&(E=C?.styles||{});var A=Umt(e,w,u,i,r,o,E),T=new ofe(C,A,e);f[w.dataKey]=T,f[w.index]=T,m=T.colSpan-1,s[w.index]={left:T.rowSpan-1,times:m}}else m--,g++;else s[w.index].left--,m=s[w.index].times,d++}return new ife(l,u,e,f)});return a}function rY(e,t){var n={};return e.forEach(function(r){if(r.raw!=null){var i=Gmt(t,r.raw);i!=null&&(n[r.dataKey]=i)}}),Object.keys(n).length>0?n:null}function Gmt(e,t){if(e==="head"){if(typeof t=="object")return t.header||null;if(typeof t=="string"||typeof t=="number")return t}else if(e==="foot"&&typeof t=="object")return t.footer;return null}function jmt(e){return e.map(function(t,n){var r,i;return typeof t=="object"?i=(r=t.dataKey)!==null&&r!==void 0?r:n:i=n,new Fmt(i,t,n)})}function Umt(e,t,n,r,i,o,s){var a=bmt(r),l;e==="head"?l=i.headStyles:e==="body"?l=i.bodyStyles:e==="foot"&&(l=i.footStyles);var u=ic({},a.table,a[e],i.styles,l),d=i.columnStyles[t.dataKey]||i.columnStyles[t.index]||{},f=e==="body"?d:{}
1065,g=e==="body"&&n%2===0?ic({},a.alternateRow,i.alternateRowStyles):{},m=ymt(o),y=ic({},m,u,g,f);return ic(y,s)}function Wmt(e,t,n){var r;n===void 0&&(n={});var i=efe(e,t),o=new Map,s=[],a=[],l=[];Array.isArray(t.settings.horizontalPageBreakRepeat)?l=t.settings.horizontalPageBreakRepeat:(typeof t.settings.horizontalPageBreakRepeat=="string"||typeof t.settings.horizontalPageBreakRepeat=="number")&&(l=[t.settings.horizontalPageBreakRepeat]),l.forEach(function(g){var m=t.columns.find(function(y){return y.dataKey===g||y.index===g});m&&!o.has(m.index)&&(o.set(m.index,!0),s.push(m.index),a.push(t.columns[m.index]),i-=m.wrappedWidth)});for(var u=!0,d=(r=n?.start)!==null&&r!==void 0?r:0;d<t.columns.length;){if(o.has(d)){d++;continue}var f=t.columns[d].wrappedWidth;if(u||i>=f)u=!1,s.push(d),a.push(t.columns[d]),i-=f;else break;d++}return{colIndexes:s,columns:a,lastIndex:d-1}}function $mt(e,t){for(var n=[],r=0;r<t.columns.length;r++){var i=Wmt(e,t,{start:r});i.columns.length&&(n.push(i),r=i.lastIndex)}return n}function afe(e,t){var n=t.settings,r=n.startY,i=n.margin,o={x:i.left,y:r},s=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),a=r+i.bottom+s;if(n.pageBreak==="avoid"){var l=t.body,u=l.reduce(function(g,m){return g+m.height},0);a+=u}var d=new pm(e);(n.pageBreak==="always"||n.startY!=null&&a>d.pageSize().height)&&(ufe(d),o.y=i.top),t.callWillDrawPageHooks(d,o);var f=ic({},o);t.startPageNumber=d.pageNumber(),n.horizontalPageBreak?qmt(d,t,f,o):(d.applyStyles(d.userStyles),(n.showHead==="firstPage"||n.showHead==="everyPage")&&t.head.forEac
vendor: 1,102 bytes, line 1065
1065h(function(g){return Cc(d,t,g,o,t.columns)}),d.applyStyles(d.userStyles),t.body.forEach(function(g,m){var y=m===t.body.length-1;EE(d,t,g,y,f,o,t.columns)}),d.applyStyles(d.userStyles),(n.showFoot==="lastPage"||n.showFoot==="everyPage")&&t.foot.forEach(function(g){return Cc(d,t,g,o,t.columns)})),Qhe(d,t,f,o),t.callEndPageHooks(d,o),t.finalY=o.y,e.lastAutoTable=t,d.applyStyles(d.userStyles)}function qmt(e,t,n,r){var i=$mt(e,t),o=t.settings;if(o.horizontalPageBreakBehaviour==="afterAllRows")i.forEach(function(u,d){e.applyStyles(e.userStyles),d>0?vb(e,t,n,r,u.columns,!0):iY(e,t,r,u.columns),Kmt(e,t,n,r,u.columns),NM(e,t,r,u.columns)});else for(var s=-1,a=i[0],l=function(){var u=s;if(a){e.applyStyles(e.userStyles);var d=a.columns;s>=0?vb(e,t,n,r,d,!0):iY(e,t,r,d),u=oY(e,t,s+1,r,d),NM(e,t,r,d)}var f=u-s;i.slice(1).forEach(function(g){e.applyStyles(e.userStyles),vb(e,t,n,r,g.columns,!0),oY(e,t,s+1,r,g.columns,f),NM(e,t,r,g.columns)}),s=u};s<t.body.length-1;)l()}function iY(e,t,n,r){var i=t.settings;e.applyStyles(e.userStyles),(i.showHead==="firstPage"||i.showHead==="everyPage")&&t.head.forEac
1065h(function(o){return Cc(e,t,o,n,r)})}function Kmt(e,t,n,r,i){e.applyStyles(e.userStyles),t.body.forEach(function(o,s){var a=s===t.body.length-1;EE(e,t,o,a,n,r,i)})}function oY(e,t,n,r,i,o){e.applyStyles(e.userStyles),o=o??t.body.length;for(var s=Math.min(n+o,t.body.length),a=-1,l=t.body.slice(n,s),u=0;u<l.length;u++){var d=l[u],f=n+u===t.body.length-1,g=lfe(e,t,f,r);if(d.canEntireRowFit(g,i))Cc(e,t,d,r,i),a=n+u;else break}return a}function NM(e,t,n,r){var i=t.settings;e.applyStyles(e.userStyles),(i.showFoot==="lastPage"||i.showFoot==="everyPage")&&t.foot.forEach(function(o){return Cc(e,t,o,n,r)})}function Ymt(e,t,n){var r=n.getLineHeight(e.styles.fontSize),i=e.padding("vertical"),o=Math.floor((t-i)/r);return Math.max(0,o)}function Xmt(e,t,n,r){var i={};e.spansMultiplePages=!0,e.height=0;for(var o=0,s=0,a=n.columns;s<a.length;s++){var l=a[s],u=e.cells[l.index];if(u){Array.isArray(u.text)||(u.text=[u.text]);var d=new ofe(u.raw,u.styles,u.section);d=ic(d,u),d.text=[];var f=Ymt(u,t,r);u.text.length>f&&(d.text=u.text.splice(f,u.text.length));var g=r.scaleFactor(),m=r.getLineHeightFactor();u.contentHeight=u.getContentHeight(g,m),u.contentHeight>=t&&(u.contentHeight=t,d.styles.minCellHeight-=t),u.contentHeight>e.height&&(e.height=u.contentHeight),d.contentHeight=d.getContentHeight(g,m),d.contentHeight>o&&(o=d.contentHeight),i[l.index]=d}}var y=new ife(e.raw,-1,e.section,i,!0);y.height=o;for(var b=0,w=n.columns;b<w.length;b++){var l=w[b],d=y.cells[l.index];d&&(d.height=y.height);var u=e.cells[l.index];u&&(u.height=e.height)}return y}function Zmt(e,t,n,r){var i=e.pageSize().height,o=r.settings.margin,s=o.top+o.bottom,a=i-s;t.section==="body"&&(a-=r.getHeadHeight(r.columns)+r.getFootHeight(r.columns));var l=t.getMinimumRowHeight(r.columns,e),u=l<n;if(l>a)return console.log("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!u)return!1;var d=t.hasRowSpan(r.columns),f=t.getMaxCellHeight(r.columns)>a;return f?(d&&console.log("The content of row ".concat(t.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(d||r.settings.rowPageBreak==="avoid")}function EE(e,t,n,r,i,o,s){var a=lfe(e,t,r,o);if(n.canEntireRowFit(a,s))Cc(e,t,n,o,s);else if(Zmt(e,n,a,t)){var l=Xmt(n,a,t,e);Cc(e,t,n,o,s),vb(e,t,i,o,s),EE(e,t,l,r,i,o,s)}else vb(e,t,i,o,s),EE(e,t,n,r,i,o,s)}function Cc(e,t,n,r,i){r.x=t.settings.margin.left;for(var o=0,s=i;o<s.length;o++){var a=s[o],l=n.cells[a.index];if(!l){r.x+=a.width;continue}e.applyStyles(l.styles),l.x=r.x,l.y=r.y;var u=t.callCellHooks(e,t.hooks.willDrawCell,l,n,a,r);if(u===!1){r.x+=a.width;continue}Qmt(e,l,r);var d=l.getTextPos();Yhe(l.text,d.x,d.y,{halign:l.styles.halign,valign:l.styles.valign,maxWidth:Math.ceil(l.width-l.padding("left")-l.padding("right"))},e.getDocument()),t.callCellHooks(e,t.hooks.didDrawCell,l,n,a,r),r.x+=a.width}r.y+=n.height}function Qmt(e,t,n){var r=t.styles;if(e.getDocument().setFillColor(e.getDocument().getFillColor()),typeof r.lineWidth=="number"){var i=Jhe(r.lineWidth,r.fillColor);i&&e.rect(t.x,n.y,t.width,t.height,i)}else typeof r.lineWidth=="object"&&(r.fillColor&&e.rect(t.x,n.y,t.width,t.height,"F"),Jmt(e,t,n,r.lineWidth))}function Jmt(e,t,n,r){var i,o,s,a;r.top&&(i=n.x,o=n.y,s=n.x+t.width,a=n.y,r.right&&(s+=.5*r.right),r.left&&(i-=.5*r.left),l(r.top,i,o,s,a)),r.bottom&&(i=n.x,o=n.y+t.height,s=n.x+t.width,a=n.y+t.height,r.right&&(s+=.5*r.right),r.left&&(i-=.5*r.left),l(r.bottom,i,o,s,a)),r.left&&(i=n.x,o=n.y,s=n.x,a=n.y+t.height,r.top&&(o-=.5*r.top),r.bottom&&(a+=.5*r.bottom),l(r.left,i,o,s,a)),r.right&&(i=n.x+t.width,o=n.y,s=n.x+t.width,a=n.y+t.height,r.top&&(o-=.5*r.top),r.bottom&&(a+=.5*r.bottom),l(r.right,i,o,s,a));function l(u,d,f,g,m){e.getDocument().setLineWidth(u),e.getDocument().line(d,f,g,m,"S")}}function lfe(e,t,n,r){var i=t.settings.margin.bottom,o=t.settings.showFoot;return(o==="everyPage"||o==="lastPage"&&n)&&(i+=t.getFootHeight(t.columns)),e.pageSize().height-r.y-i}function vb(e,t,n,r,i,o){i===void 0&&(i=[]),o===void 0&&(o=!1),e.applyStyles(e.userStyles),t.settings.showFoot==="everyPage"&&!
1065o&&t.foot.forEach(function(a){return Cc(e,t,a,r,i)}),t.callEndPageHooks(e,r);var s=t.settings.margin;Qhe(e,t,n,r),ufe(e),t.pageNumber++,r.x=s.left,r.y=s.top,n.y=s.top,t.callWillDrawPageHooks(e,r),t.settings.showHead==="everyPage"&&(t.head.forEach(function(a){return Cc(e,t,a,r,i)}),e.applyStyles(e.userStyles))}function ufe(e){var t=e.pageNumber();e.setPage(t+1);var n=e.pageNumber();return n===t?(e.addPage(),!0):!1}function evt(e){e.API.autoTable=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0],i=rfe(this,r),o=sfe(this,i);return afe(this,o),this},e.API.lastAutoTable=!1,e.API.autoTableText=function(t,n,r,i){Yhe(t,n,r,i,this)},e.API.autoTableSetDefaults=function(t){return pm.setDefaults(t,this),this},e.autoTableSetDefaults=function(t,n){pm.setDefaults(t,n)},e.API.autoTableHtmlToJson=function(t,n){var r;if(n===void 0&&(n=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var i=new pm(this),o=nfe(i,t,window,n,!1),s=o.head,a=o.body,l=((r=s[0])===null||r===void 0?void 0:r.map(function(u){return u.content}))||[];return{columns:l,rows:a,data:a}}}var BM;function nCt(e,t){var n=rfe(e,t),r=sfe(e,n);afe(e,r)}try{if(typeof window<"u"&&window){var sY=window,aY=sY.jsPDF||((BM=sY.jspdf)===null||BM===void 0?void 0:BM.jsPDF);aY&&evt(aY)}}catch(e){console.error("Could not apply autoTable plugin",e)}function lY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tvt(e){if(Array.isArray(e))return e}function nvt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function rvt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1066In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ivt(e,t){return tvt(e)||nvt(e,t)||ovt(e,t)||rvt()}function ovt(e,t){if(e){if(typeof e=="string")return lY(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lY(e,t):void 0}}const cfe=Object.entries,uY=Object.setPrototypeOf,svt=Object.isFrozen,avt=Object.getPrototypeOf,lvt=Object.getOwnPropertyDescriptor;let Yr=Object.freeze,fi=Object.seal,zp=Object.create,dfe=typeof Reflect<"u"&&Reflect,sL=dfe.a
vendor: 5,866 bytes, line 1066
1066pply,aL=dfe.construct;Yr||(Yr=function(t){return t});fi||(fi=function(t){return t});sL||(sL=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(n,i)});aL||(aL=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const sf=Vr(Array.prototype.forEach),uvt=Vr(Array.prototype.lastIndexOf),cY=Vr(Array.prototype.pop),My=Vr(Array.prototype.push),cvt=Vr(Array.prototype.splice),mm=Array.isArray,Ky=Vr(String.prototype.toLowerCase),HM=Vr(String.prototype.toString),dY=Vr(String.prototype.match),Iy=Vr(String.prototype.replace),hY=Vr(String.prototype.indexOf),dvt=Vr(String.prototype.trim),hvt=Vr(Number.prototype.toString),fvt=Vr(Boolean.prototype.toString),fY=typeof BigInt>"u"?null:Vr(BigInt.prototype.toString),gY=typeof Symbol>"u"?null:Vr(Symbol.prototype.toString),Uo=Vr(Object.prototype.hasOwnProperty),_y=Vr(Object.prototype.toString),$i=Vr(RegExp.prototype.test),Yh=gvt(TypeError);function Vr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return sL(e,t,r)}}function gvt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aL(e,n)}}function Wt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ky;if(uY&&uY(e,null),!mm(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(svt(t)||(t[r]=o),i=o)}e[i]=!0}return e}function pvt(e){for(let t=0;t<e.length;t++)Uo(e,t)||(e[t]=null);return e}function ms(e){const t=zp(null);for(const r of cfe(e)){var n=ivt(r,2);const i=n[0],o=n[1];Uo(e,i)&&(mm(o)?t[i]=pvt(o):o&&typeof o=="object"&&o.constructor===Object?t[i]=ms(o):t[i]=o)}return t}function mvt(e){switch(typeof e){case"string":return e;case"number":return hvt(e);case"boolean":return fvt(e);case"bigint":return fY?fY(e):"0";case"symbol":return gY?gY(e):"Symbol()";case"undefined":return _y(e);case"function":case"object":{if(e===null)return _y(e);const t=e,n=Ks(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:_y(r)}return _y(e)}default:return _y(e)}}function Ks(e,t){for(;e!==null;){const r=lvt(e,t);if(r){if(r.get)return Vr(r.get);if(typeof r.value=="function")return Vr(r.value)}e=avt(e)}function n(){return null}return n}function vvt(e){try{return $i(e,""),!0}catch{return!1}}const pY=Yr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),VM=Yr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zM=Yr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yvt=Yr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),GM=Yr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bvt=Yr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mY=Yr(["#text"]),vY=Yr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1066spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),jM=Yr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yY=Yr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),jS=Yr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wvt=fi(/{{[\w\W]*|^[\w\W]*}}/g),Cvt=fi(/<%[\w\W]*|^[\w\W]*%>/g),Svt=fi(/\${[\w\W]*/g),xvt=fi(/^data-[\-\w.\u00B7-\uFFFF]+$/),Evt=fi(/^aria-[\-\w]+$/),bY=fi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Rvt=fi(/^(?:\w+script|data):/i),Avt=fi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tvt=fi(/^html$/i),Pvt=fi(/^[a-z][.\w]*(-[.\w]+)+$/i),wY=fi(/<[/\w!]/g),CY=fi(/<[/\w]/g),Ovt=fi(/<\/no(script|embed|frames)/i),Dvt=fi(/\/>/i),ps={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},hfe=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Mvt=Yr(Wt({},hfe)),Ivt=(function(){const e={};return sf(hfe,t=>{e[t]=fi(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Yr(e)})(),_vt=function(){return typeof window>"u"?null:window},Fvt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 4,367 bytes, line 1066
1066const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},SY=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},yd=function(t,n,r,i){return Uo(t,n)&&mm(t[n])?Wt(i.base?ms(i.base):{},t[n],i.transform):r},UM=function(t,n,r){const i=Uo(t,n)?t[n]:void 0;return i&&typeof i=="object"?ms(i):r()};function ffe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_vt();const t=_e=>ffe(_e);if(t.version="3.4.15",t.removed=[],!e||!e.document||e.document.nodeType!==ps.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,i=r.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,s=e.Node,a=e.Element,l=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,f=e.trustedTypes,g=a.prototype,m=Ks(g,"cloneNode"),y=Ks(g,"remove"),b=Ks(g,"removeAttributeNode"),w=Ks(g,"nextSibling"),C=Ks(g,"childNodes"),E=Ks(g,"parentNode"),A=Ks(g,"shadowRoot"),T=Ks(g,"attributes"),P=s&&s.prototype?Ks(s.prototype,"nodeType"):null,O=s&&s.prototype?Ks(s.prototype,"nodeName"):null,D=s&&s.prototype?Ks(s.prototype,"ownerDocument"):null,F=function(q){return P?P(q):q.nodeType},L=function(q){return O?O(q):q.nodeName};if(typeof o=="function"){const _e=n.createElement("template");_e.content&&_e.content.ownerDocument&&(n=_e.content.ownerDocument)}let N,M="",k,B=!1,j=0;const z=function(){if(j>0)throw Yh('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},H=function(q){z(),j++;try{return N.createHTML(q)}finally{j--}},G=function(q){z(),j++;try{return N.createScriptURL(q)}finally{j--}},$=function(){return B||(k=Fvt(f,i),B=!0),k},Y=n,K=Y.implementation,se=Y.createNodeIterator,re=Y.createDocumentFragment,ue=Y.getElementsByTagName,U=r.importNode;let X=SY();t.isSupported=typeof cfe=="function"&&typeof E=="function"&&K&&K.createHTMLDocument!==void 0;const be=wvt,me=Cvt,Oe=Svt,ge=xvt,ve=Evt,de=Rvt,J=Avt,Fe=Pvt;let ke=bY,Te=null;const dt=Wt({},[...pY,...VM,...zM,...GM,...mY]);let Ne=null;const xe=Wt({},[...vY,...jM,...yY,...jS]);let We=Object.seal(zp(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),rt=null,Ke=null;const Be=Object.seal(zp(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let pt=!0,Ee=!0,Ze=!1,st=!0,tt=!1,qe=!0,mt=!1,$t=!1,_n=null,Yn=null,Bi=!1,sr=!1,yr=!1,yi=!1,ho=!0,Hi=!1;const jt="user-content-";let bi=!0,Vi=!1,qt={},wi=null;const Os=Wt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ra=null;const dl=Wt({},["audio","video","img","source","image","track"]);let hl=null;const Ci=Wt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xn="http://www.w3.org/1998/Math/MathML",Zn="http://www.w3.org/2000/svg",vn="http://www.w3.org/1999/xhtml";let Ds=vn,bu=!1,fl=null;const Ms=Wt({},[Xn,Zn,vn],HM),Fn=Yr(["mi","mo","mn","ms","mtext"]);let Is=Wt({},Fn);const Fo=Yr(["annotation-xml"]);let _s=Wt({},Fo);const Aa=Wt({},["title","style","font","a","script"]);let Fs=null;const Ar=["application/xhtml+xml","text/html"],Fc="text/html";let sn=null,zi=null;const mh=n.createElement("form"),wu=function(q){return q instanceof RegExp||q instanceof Function},br=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(zi&&zi===q)return;(!q||typeof q!="object")&&(q={}
vendor: 5,382 bytes, line 1066
1066),q=ms(q),Fs=Ar.indexOf(q.PARSER_MEDIA_TYPE)===-1?Fc:q.PARSER_MEDIA_TYPE,sn=Fs==="application/xhtml+xml"?HM:Ky,Te=yd(q,"ALLOWED_TAGS",dt,{transform:sn}),Ne=yd(q,"ALLOWED_ATTR",xe,{transform:sn}),fl=yd(q,"ALLOWED_NAMESPACES",Ms,{transform:HM}),hl=yd(q,"ADD_URI_SAFE_ATTR",Ci,{transform:sn,base:Ci}),Ra=yd(q,"ADD_DATA_URI_TAGS",dl,{transform:sn,base:dl}),wi=yd(q,"FORBID_CONTENTS",Os,{transform:sn}),rt=yd(q,"FORBID_TAGS",ms({}),{transform:sn}),Ke=yd(q,"FORBID_ATTR",ms({}),{transform:sn}),qt=Uo(q,"USE_PROFILES")?q.USE_PROFILES&&typeof q.USE_PROFILES=="object"?ms(q.USE_PROFILES):q.USE_PROFILES:!1,pt=q.ALLOW_ARIA_ATTR!==!1,Ee=q.ALLOW_DATA_ATTR!==!1,Ze=q.ALLOW_UNKNOWN_PROTOCOLS||!1,st=q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,tt=q.SAFE_FOR_TEMPLATES||!1,qe=q.SAFE_FOR_XML!==!1,mt=q.WHOLE_DOCUMENT||!1,sr=q.RETURN_DOM||!1,yr=q.RETURN_DOM_FRAGMENT||!1,yi=q.RETURN_TRUSTED_TYPE||!1,Bi=q.FORCE_BODY||!1,ho=q.SANITIZE_DOM!==!1,Hi=q.SANITIZE_NAMED_PROPS||!1,bi=q.KEEP_CONTENT!==!1,Vi=q.IN_PLACE||!1,ke=vvt(q.ALLOWED_URI_REGEXP)?q.ALLOWED_URI_REGEXP:bY,Ds=typeof q.NAMESPACE=="string"?q.NAMESPACE:vn,Is=UM(q,"MATHML_TEXT_INTEGRATION_POINTS",()=>Wt({},Fn)),_s=UM(q,"HTML_INTEGRATION_POINTS",()=>Wt({},Fo));const ie=UM(q,"CUSTOM_ELEMENT_HANDLING",()=>zp(null));if(We=zp(null),Uo(ie,"tagNameCheck")&&wu(ie.tagNameCheck)&&(We.tagNameCheck=ie.tagNameCheck),Uo(ie,"attributeNameCheck")&&wu(ie.attributeNameCheck)&&(We.attributeNameCheck=ie.attributeNameCheck),Uo(ie,"allowCustomizedBuiltInElements")&&typeof ie.allowCustomizedBuiltInElements=="boolean"&&(We.allowCustomizedBuiltInElements=ie.allowCustomizedBuiltInElements),fi(We),tt&&(Ee=!1),yr&&(sr=!0),qt&&(Te=Wt({},mY),Ne=zp(null),qt.html===!0&&(Wt(Te,pY),Wt(Ne,vY)),qt.svg===!0&&(Wt(Te,VM),Wt(Ne,jM),Wt(Ne,jS)),qt.svgFilters===!0&&(Wt(Te,zM),Wt(Ne,jM),Wt(Ne,jS)),qt.mathMl===!0&&(Wt(Te,GM),Wt(Ne,yY),Wt(Ne,jS))),Be.tagCheck=null,Be.attributeCheck=null,Uo(q,"ADD_TAGS")&&(typeof q.ADD_TAGS=="function"?Be.tagCheck=q.ADD_TAGS:mm(q.ADD_TAGS)&&(Te===dt&&(Te=ms(Te)),Wt(Te,q.ADD_TAGS,sn))),Uo(q,"ADD_ATTR")&&(typeof q.ADD_ATTR=="function"?Be.attributeCheck=q.ADD_ATTR:mm(q.ADD_ATTR)&&(Ne===xe&&(Ne=ms(Ne)),Wt(Ne,q.ADD_ATTR,sn))),Uo(q,"ADD_FORBID_CONTENTS")&&mm(q.ADD_FORBID_CONTENTS)&&(wi===Os&&(wi=ms(wi)),Wt(wi,q.ADD_FORBID_CONTENTS,sn)),bi&&(Te["#text"]=!0),mt&&Wt(Te,["html","head","body"]),Te.table&&(Wt(Te,["tbody"]),delete rt.tbody),q.TRUSTED_TYPES_POLICY){if(typeof q.TRUSTED_TYPES_POLICY.createHTML!="function")throw Yh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Yh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const De=N;N=q.TRUSTED_TYPES_POLICY;try{M=H("")}catch(Ge){throw N=De,Ge}}else q.TRUSTED_TYPES_POLICY===null?(N=void 0,M=""):(N===void 0&&(N=$()),N&&typeof M=="string"&&(M=H("")));Yr&&Yr(q),zi=q},Cu=Wt({},[...VM,...zM,...yvt]),gl=Wt({},[...GM,...bvt]),Su=function(q,ie,De){return ie.namespaceURI===vn?q==="svg":ie.namespaceURI===Xn?q==="svg"&&(De==="annotation-xml"||Is[De]):!!Cu[q]},kc=function(q,ie,De){return ie.namespaceURI===vn?q==="math":ie.namespaceURI===Zn?q==="math"&&_s[De]:!!gl[q]},Lc=function(q,ie,De){return ie.namespaceURI===Zn&&!_s[De]||ie.namespaceURI===Xn&&!Is[De]?!1:!gl[q]&&(Aa[q]||!Cu[q])},Qr=function(q){let ie=E(q);(!ie||!ie.tagName)&&(ie={namespaceURI:Ds,tagName:"template"});const De=Ky(q.tagName),Ge=Ky(ie.tagName);return fl[q.namespaceURI]?q.namespaceURI===Zn?Su(De,ie,Ge):q.namespaceURI===Xn?kc(De,ie,Ge):q.namespaceURI===vn?Lc(De,ie,Ge):!!(Fs==="application/xhtml+xml"&&fl[q.namespaceURI]):!1},Xt=function(q){My(t.removed,{element:q});try{E(q).removeChild(q)}catch{if(y(q),!E(q))throw Yh("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Vn=function(q,ie,De){try{b(q,ie)}catch{try{q.removeAttribute(De)}catch{}}},ar=function(q){pl(q);const ie=C(q);if(ie){const Ge=[];sf(ie,je=>{My(Ge,je)}),sf(Ge,je=>{try{y(je)}catch{}})}const De=T(q);if(De)for(let Ge=De.length-1;Ge>=0;--Ge){const je=De[Ge],lt=je&&je.name;typeof lt=="string"&&Vn(q,je,lt)}},Gi=function(q,ie,De){if(!De)try{De=ie.getAttributeNode(q)}catch{De=null}My(t.removed,{attribute:De||null,from:ie});try{De?b(ie,De):ie.removeAttribute(q)}catch{try{ie.removeAttribute(q)}catch{}}if(q==="is")if(sr||yr)try{Xt(ie)}catch{}else try{ie.setAttribute(q,"")}catch{}},vh=function(q){const ie=T(q);if(ie)for(let De=ie.length-1;De>=0;--De){const Ge=ie[De],je=Ge&&Ge.name;typeof je!="string"||Ne[sn(je)]||Vn(q,Ge,je)}},pl=function(q){const ie=[q];for(;ie.length>0;){const De=ie.pop();F(De)===ps.element&&vh(De);const je=C(De);if(je)for(let lt=je.length-1;lt>=0;--lt)ie.push(je[lt])}},xu=function(q,ie){return qe?q==="patchsrc"?!0:q==="for"&&ie!=="label"&&ie!=="output":!1},Ta=function(q){if(!qe)return;const ie=[q];for(;ie.length>0;){const De=ie.pop(),Ge=F(De);if(Ge===ps.processingInstruction||Ge===ps.comment&&$i(CY,De.data)){try{y(De)}catch{}continue}if(Ge===ps.element){const lt=De,Ft=sn(L(De));try{lt.hasAttribute&<.hasAttribute("patchsrc")&<.removeAttribute("patchsrc"),lt.hasAttribute&<.hasAttribute("for")&&xu("for",Ft)&<.removeAttribute("for")}catch{}}const je=C(De);if(je)for(let lt=je.length-1;lt>=0;--lt)ie.push(je[lt])}},Pa=function(q){let ie=null,De=null;if(Bi)q="<remove></remove>"+q;else{const lt=dY(q,/^[\r\n\t ]+/);
vendor: 4,209 bytes, line 1066
1066De=lt&<[0]}Fs==="application/xhtml+xml"&&Ds===vn&&(q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+q+"</body></html>");const Ge=N?H(q):q;if(Ds===vn)try{ie=new d().parseFromString(Ge,Fs)}catch{}if(!ie||!ie.documentElement){ie=K.createDocument(Ds,"template",null);try{ie.documentElement.innerHTML=bu?M:Ge}catch{}}const je=ie.body||ie.documentElement;return q&&De&&je.insertBefore(n.createTextNode(De),je.childNodes[0]||null),Ds===vn?ue.call(ie,mt?"html":"body")[0]:mt?ie.documentElement:je},ko=function(q){const ie=D?D(q):q.ownerDocument;return se.call(ie||q,q,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Jr=function(q){return q=Iy(q,be," "),q=Iy(q,me," "),q=Iy(q,Oe," "),q},ei=function(q){var ie;q.normalize();const De=D?D(q):q.ownerDocument,Ge=se.call(De||q,q,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let je=Ge.nextNode();for(;je;)je.data=Jr(je.data),je=Ge.nextNode();const lt=(ie=q.querySelectorAll)===null||ie===void 0?void 0:ie.call(q,"template");lt&&sf(lt,Ft=>{ti(Ft.content)&&ei(Ft.content)})},fo=function(q){const ie=O?O(q):null;return typeof ie!="string"||sn(ie)!=="form"?!1:typeof q.nodeName!="string"||typeof q.textContent!="string"||typeof q.removeChild!="function"||q.attributes!==T(q)||typeof q.removeAttribute!="function"||typeof q.removeAttributeNode!="function"||typeof q.getAttributeNode!="function"||typeof q.setAttribute!="function"||typeof q.namespaceURI!="string"||typeof q.insertBefore!="function"||typeof q.hasChildNodes!="function"||q.nodeType!==P(q)||q.childNodes!==C(q)},ti=function(q){if(!P||typeof q!="object"||q===null)return!1;try{return P(q)===ps.documentFragment}catch{return!1}},yn=function(q){if(!P||typeof q!="object"||q===null)return!1;try{return typeof P(q)=="number"}catch{return!1}};function Si(_e,q,ie){_e.length!==0&&sf(_e,De=>{De.call(t,q,ie,zi)})}const Nc=function(q,ie){return!!(qe&&q.hasChildNodes()&&!yn(q.firstElementChild)&&$i(wY,q.textContent)&&$i(wY,q.innerHTML)||qe&&q.namespaceURI===vn&&Mvt[ie]&&(yn(q.firstElementChild)||typeof q.textContent=="string"&&$i(Ivt[ie],q.textContent))||q.nodeType===ps.processingInstruction||qe&&q.nodeType===ps.comment&&$i(CY,q.data))},Oa=function(q,ie){if(q instanceof RegExp)return $i(q,ie);if(q instanceof Function){for(var De=arguments.length,Ge=new Array(De>2?De-2:0),je=2;je<De;je++)Ge[je-2]=arguments[je];return!!q(ie,...Ge)}return!1},go=function(q,ie,De){if(!rt[ie]&&bt(ie)&&Oa(We.tagNameCheck,ie))return!1;if(bi&&!wi[ie]){const Ge=E(q),je=C(q);if(je&&Ge){const lt=je.length;for(let Ft=lt-1;Ft>=0;--Ft){const Zt=q===De?m(je[Ft],!0):je[Ft];Ge.insertBefore(Zt,w(q))}}}return Xt(q),!0},rs=function(q,ie,De,Ge){return q.length===0?ie:ie===De||ie===Ge?ms(ie):ie},Bc=function(q,ie){return q===ie||E(q)!==null?!1:(Vi&&pl(q),!0)},is=function(q,ie){if(Si(X.beforeSanitizeElements,q,null),Bc(q,ie))return!0;if(fo(q))return Xt(q),!0;const De=sn(L(q));if(Te=rs(X.uponSanitizeElement,Te,dt,_n),Si(X.uponSanitizeElement,q,{tagName:De,allowedTags:Te}),Bc(q,ie))return!0;if(Nc(q,De))return Xt(q),!0;if(rt[De]||!(Be.tagCheck instanceof Function&&Be.tagCheck(De))&&!Te[De]){const je=go(q,De,ie);return je===!1&&Si(X.afterSanitizeElements,q,null),je}if(F(q)===ps.element&&!Qr(q)||(De==="noscript"||De==="noembed"||De==="noframes")&&$i(Ovt,q.innerHTML))return Xt(q),!0;if(tt&&q.nodeType===ps.text){const je=Jr(q.textContent);q.textContent!==je&&(My(t.removed,{element:q.cloneNode()}),q.textContent=je)}return Si(X.afterSanitizeElements,q,null),!1},xi=function(q,ie,De){if(Ke[ie]||xu(ie,q)||ho&&(ie==="id"||ie==="name")&&(De in n||De in mh))return!1;const Ge=Ne[ie]||Be.attributeCheck instanceof Function&&Be.attributeCheck(ie,q);return Ee&&$i(ge,ie)||pt&&$i(ve,ie)?!0:Ge?hl[ie]||$i(ke,Iy(De,J,""))||(ie==="src"||ie==="xlink:href"||ie==="href")&&q!=="script"&&hY(De,"data:")===0&&Ra[q]||Ze&&!$i(de,Iy(De,J,""))?!0:!De:bt(q)&&Oa(We.tagNameCheck,q)&&Oa(We.attributeNameCheck,ie,q)||ie==="is"&&We.allowCustomizedBuiltInElements&&Oa(We.tagNameCheck,De)},os=Wt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bt=function(q){return!os[Ky(q)
vendor: 5,181 bytes, lines 1066-1067
1066]&&$i(Fe,q)},Hc=function(q,ie,De,Ge){if(N&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!De)switch(f.getAttributeType(q,ie)){case"TrustedHTML":return H(Ge);case"TrustedScriptURL":return G(Ge)}return Ge},Ei=function(q,ie,De,Ge){try{return De?q.setAttributeNS(De,ie,Ge):q.setAttribute(ie,Ge),fo(q)?(Xt(q),!1):!0}catch{return Gi(ie,q),!1}},Da=function(q){Si(X.beforeSanitizeAttributes,q,null);const ie=q.attributes;if(!ie||fo(q))return;Ne=rs(X.uponSanitizeAttribute,Ne,xe,Yn);const De={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne,forceKeepAttr:void 0};let Ge=ie.length;const je=sn(q.nodeName);for(;Ge--;){const lt=ie[Ge],Ft=lt.name,Zt=lt.namespaceURI,Rn=lt.value,Qn=sn(Ft),Ma=Rn;let Ut=Ft==="value"?Ma:dvt(Ma),Eu=!1;if(De.attrName=Qn,De.attrValue=Ut,De.keepAttr=!0,De.forceKeepAttr=void 0,Si(X.uponSanitizeAttribute,q,De),Ut=De.attrValue,Hi&&(Qn==="id"||Qn==="name")&&hY(Ut,jt)!==0&&(Gi(Ft,q,lt),Ut=jt+Ut,Eu=!0),qe&&$i(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ut)){Gi(Ft,q,lt);continue}if(Qn==="attributename"&&dY(Ut,"href")){Gi(Ft,q,lt);continue}if(!De.forceKeepAttr){if(!De.keepAttr){Gi(Ft,q,lt);continue}if(!st&&$i(Dvt,Ut)){Gi(Ft,q,lt);continue}if(tt&&(Ut=Jr(Ut)),!xi(je,Qn,Ut)){Gi(Ft,q,lt);continue}Ut=Hc(je,Qn,Zt,Ut),Ut!==Ma&&Ei(q,Ft,Zt,Ut)&&Eu&&cY(t.removed)}}Si(X.afterSanitizeAttributes,q,null)},ni=function(q){let ie=null;const De=ko(q);for(Si(X.beforeSanitizeShadowDOM,q,null);ie=De.nextNode();)if(Si(X.uponSanitizeShadowNode,ie,null),is(ie,q),Da(ie),ti(ie.content)&&ni(ie.content),F(ie)===ps.element){const Ge=A(ie);ti(Ge)&&(wr(Ge),ni(Ge))}Si(X.afterSanitizeShadowDOM,q,null)},wr=function(q){const ie=[{node:q,shadow:null}];for(;ie.length>0;){const De=ie.pop();if(De.shadow){ni(De.shadow);continue}const Ge=De.node,lt=F(Ge)===ps.element,Ft=C(Ge);if(Ft)for(let Zt=Ft.length-1;Zt>=0;--Zt)ie.push({node:Ft[Zt],shadow:null});if(lt){const Zt=O?O(Ge):null;if(typeof Zt=="string"&&sn(Zt)==="template"){const Rn=Ge.content;ti(Rn)&&ie.push({node:Rn,shadow:null})}}if(lt){const Zt=A(Ge);ti(Zt)&&ie.push({node:null,shadow:Zt},{node:Zt,shadow:null})}}};return t.sanitize=function(_e){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=null,De=null,Ge=null,je=null;if(bu=!_e,bu&&(_e="<!-->"),typeof _e!="string"&&!yn(_e)&&(_e=mvt(_e),typeof _e!="string"))throw Yh("dirty is not a string, aborting");if(!t.isSupported)return _e;$t?(Te=_n,Ne=Yn):br(q),(X.uponSanitizeElement.length>0||X.uponSanitizeAttribute.length>0)&&(Te=ms(Te)),X.uponSanitizeAttribute.length>0&&(Ne=ms(Ne)),t.removed=[];const lt=Vi&&typeof _e!="string"&&yn(_e);if(lt){Ta(_e);const Rn=L(_e);if(typeof Rn=="string"){const Qn=sn(Rn);if(!Te[Qn]||rt[Qn])throw ar(_e),Yh("root node is forbidden and cannot be sanitized in-place")}if(fo(_e))throw ar(_e),Yh("root node is clobbered and cannot be sanitized in-place");try{wr(_e)}catch(Qn){throw ar(_e),Qn}}else if(yn(_e))ie=Pa("<!---->"),De=ie.ownerDocument.importNode(_e,!0),De.nodeType===ps.element&&De.nodeName==="BODY"||De.nodeName==="HTML"?ie=De:ie.appendChild(De),wr(ie);else{if(!sr&&!tt&&!mt&&_e.indexOf("<")===-1)return N&&yi?H(_e):_e;if(ie=Pa(_e),!ie)return sr?null:yi?M:""}ie&&Bi&&Xt(ie.firstChild);const Ft=lt?_e:ie;try{const Rn=ko(Ft);for(;Ge=Rn.nextNode();)is(Ge,Ft),Da(Ge),ti(Ge.content)&&ni(Ge.content)}catch(Rn){throw lt&&(ar(_e),sf(t.removed,Qn=>{Qn.element&&pl(Qn.element)})),Rn}if(lt)return sf(t.removed,Rn=>{Rn.element&&pl(Rn.element)}),tt&&ei(_e),_e;if(sr){if(tt&&ei(ie),yr)for(je=re.call(ie.ownerDocument);ie.firstChild;)je.appendChild(ie.firstChild);else je=ie;return(Ne.shadowroot||Ne.shadowrootmode)&&(je=U.call(r,je,!0)),je}let Zt=mt?ie.outerHTML:ie.innerHTML;return mt&&Te["!doctype"]&&ie.ownerDocument&&ie.ownerDocument.doctype&&ie.ownerDocument.doctype.name&&$i(Tvt,ie.ownerDocument.doctype.name)&&(Zt="<!DOCTYPE "+ie.ownerDocument.doctype.name+`> 1067`+Zt),tt&&(Zt=Jr(Zt)),N&&yi?H(Zt):Zt},t.setConfig=function(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};br(_e),$t=!0,_n=Te,Yn=Ne},t.clearConfig=function(){zi=null,$t=!1,_n=null,Yn=null,N=k,M=""},t.isValidAttribute=function(_e,q,ie){zi||br({});const De=sn(_e),Ge=sn(q);return xi(De,Ge,ie)},t.addHook=function(_e,q){typeof q=="function"&&Uo(X,_e)&&My(X[_e],q)},t.removeHook=function(_e,q){if(Uo(X,_e)){if(q!==void 0){const ie=uvt(X[_e],q);return ie===-1?void 0:cvt(X[_e],ie,1)[0]}return cY(X[_e])}},t.removeHooks=function(_e){Uo(X,_e)&&(X[_e]=[])},t.removeAllHooks=function(){X=SY()},t}var kvt=ffe();const rCt=Object.freeze(Object.defineProperty({__proto__:null,default:kvt},Symbol.toStringTag,{value:"Module"}));var xY={},EY={},Fy,RY;function Kn(){if(RY)return Fy;RY=1;var e=function(t){return t&&t.Math===Math&&t};return Fy=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof wo=="object"&&wo)||e(typeof Fy=="object"&&Fy)||(function(){return this})()||Function("return this")(),Fy}var WM={},$M,AY;function pr(){return AY||(AY=1,$M=function(e){try{return!!e()}catch{return!0}}),$M}var qM,TY;function ll(){if(TY)return qM;TY=1;var e=pr();return qM=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}}
1067)[1]!==7}),qM}var KM,PY;function AA(){if(PY)return KM;PY=1;var e=pr();return KM=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),KM}var YM,OY;function Ni(){if(OY)return YM;OY=1;var e=AA(),t=Function.prototype.call;return YM=e?t.bind(t):function(){return t.apply(t,arguments)},YM}var XM={},DY;function Lvt(){if(DY)return XM;DY=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return XM.f=n?function(i){var o=t(this,i);return!!o&&o.enumerable}:e,XM}var ZM,MY;function t5(){return MY||(MY=1,ZM=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),ZM}var QM,IY;function mr(){if(IY)return QM;IY=1;var e=AA(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return QM=e?r:function(i){return function(){return n.apply(i,arguments)}},QM}var JM,_Y;function hh(){if(_Y)return JM;_Y=1;var e=mr(),t=e({}.toString),n=e("".slice);return JM=function(r){return n(t(r),8,-1)},JM}var e2,FY;function gfe(){if(FY)return e2;FY=1;var e=mr(),t=pr(),n=hh(),r=Object,i=e("".split);return e2=t(function(){return!r("z").propertyIsEnumerable(0)})?function(o){return n(o)==="String"?i(o,""):r(o)}:r,e2}var t2,kY;function TA(){return kY||(kY=1,t2=function(e){return e==null}),t2}var n2,LY;function ul(){if(LY)return n2;LY=1;var e=TA(),t=TypeError;return n2=function(n){if(e(n))throw new t("Can't call method on "+n);return n},n2}var r2,NY;function hC(){if(NY)return r2;NY=1;var e=gfe(),t=ul();return r2=function(n){return e(t(n))},r2}var i2,BY;function vr(){if(BY)return i2;BY=1;var e=typeof document=="object"&&document.all;return i2=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},i2}var o2,HY;function ns(){if(HY)return o2;HY=1;var e=vr();return o2=function(t){return typeof t=="object"?t!==null:e(t)},o2}var s2,VY;function Fg(){if(VY)return s2;VY=1;var e=Kn(),t=vr(),n=function(r){return t(r)?r:void 0};return s2=function(r,i){return arguments.length<2?n(e[r]):e[r]&&e[r][i]},s2}var a2,zY;function PA(){if(zY)return a2;zY=1;var e=mr();return a2=e({}.isPrototypeOf),a2}var l2,GY;function fC(){if(GY)return l2;GY=1;var e=Kn(),t=e.navigator,n=t&&t.userAgent;return l2=n?String(n):"",l2}var u2,jY;function n5(){if(jY)return u2;jY=1;var e=Kn(),t=fC(),n=e.process,r=e.Deno,i=n&&n.versions||r&&r.version,o=i&&i.v8,s,a;return o&&(s=o.split("."),a=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!a&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(a=+s[1]))),u2=a,u2}var c2,UY;function pfe(){if(UY)return c2;UY=1;var e=n5(),t=pr(),n=Kn(),r=n.String;return c2=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!r(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),c2}var d2,WY;function mfe(){if(WY)return d2;WY=1;var e=pfe();return d2=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",d2}var h2,$Y;function vfe(){if($Y)return h2;$Y=1;var e=Fg(),t=vr(),n=PA(),r=mfe(),i=Object;return h2=r?function(o){return typeof o=="symbol"}:function(o){var s=e("Symbol");return t(s)&&n(s.prototype,i(o))},h2}var f2,qY;function OA(){if(qY)return f2;qY=1;var e=String;return f2=function(t){try{return e(t)}catch{return"Object"}},f2}var g2,KY;function fh(){if(KY)return g2;KY=1;var e=vr(),t=OA(),n=TypeError;return g2=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")},g2}var p2,YY;function hv(){if(YY)return p2;YY=1;var e=fh(),t=TA();return p2=function(n,r){var i=n[r];return t(i)?void 0:e(i)},p2}var m2,XY;function Nvt(){if(XY)return m2;XY=1;var e=Ni(),t=vr(),n=ns(),r=TypeError;return m2=function(i,o){var s,a;if(o==="string"&&t(s=i.toString)&&!n(a=e(s,i))||t(s=i.valueOf)&&!n(a=e(s,i))||o!=="string"&&t(s=i.toString)&&!n(a=e(s,i)))return a;throw new r("Can't convert object to primitive value")},m2}var v2={exports:{}},y2,ZY;function vu(){return ZY||(ZY=1,y2=!1),y2}var b2,QY;function r5(){if(QY)return b2;QY=1;var e=Kn(),t=Object.defineProperty;return b2=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch{e[n]=r}return r},b2}var JY;function i5(){if(JY)return v2.exports;JY=1;var e=vu(),t=Kn(),n=r5(),r="__core-js_shared__",i=v2.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.50.0",mode:e?"pure":"global",copyright:"© 2013â2025 Denis Pushkarev (zloirock.ru), 2025â2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"}),v2.exports}var w2,eX;function o5(){if(eX)return w2;eX=1;var e=i5(),t=Object.create||Object;return w2=function(n,r){return e[n]||(e[n]=r||t(null))},w2}var C2,tX;function DA(){if(tX)return C2;tX=1;var e=ul(),t=Object;return C2=function(n){return t(e(n))},C2}var S2,nX;
1067function cl(){if(nX)return S2;nX=1;var e=mr(),t=DA(),n=e({}.hasOwnProperty);return S2=Object.hasOwn||function(i,o){return n(t(i),o)},S2}var x2,rX;function yfe(){if(rX)return x2;rX=1;var e=mr(),t=0,n=Math.random(),r=e(1.1.toString);return x2=function(i){return"Symbol("+(i===void 0?"":i)+")_"+r(++t+n,36)},x2}var E2,iX;function vi(){if(iX)return E2;iX=1;var e=Kn(),t=o5(),n=cl(),r=yfe(),i=pfe(),o=mfe(),s=e.Symbol,a=t("wks"),l=o?s.for||s:s&&s.withoutSetter||r;return E2=function(u){return n(a,u)||(a[u]=i&&n(s,u)?s[u]:l("Symbol."+u)),a[u]},E2}var R2,oX;function Bvt(){if(oX)return R2;oX=1;var e=Ni(),t=ns(),n=vfe(),r=hv(),i=Nvt(),o=vi(),s=TypeError,a=o("toPrimitive");return R2=function(l,u){if(!t(l)||n(l))return l;var d=r(l,a),f;if(d){if(u===void 0&&(u="default"),f=e(d,l,u),!t(f)||n(f))return f;throw new s("Can't convert object to primitive value")}return u===void 0&&(u="number"),i(l,u)},R2}var A2,sX;function bfe(){if(sX)return A2;sX=1;var e=Bvt(),t=vfe();return A2=function(n){var r=e(n,"string");return t(r)?r:r+""},A2}var T2,aX;function MA(){if(aX)return T2;aX=1;var e=Kn(),t=ns(),n=e.document,r=t(n)&&t(n.createElement);return T2=function(i){return r?n.createElement(i):{}},T2}var P2,lX;function wfe(){if(lX)return P2;lX=1;var e=ll(),t=pr(),n=MA();return P2=!e&&!t(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}),P2}var uX;function IA(){if(uX)return WM;uX=1;var e=ll(),t=Ni(),n=Lvt(),r=t5(),i=hC(),o=bfe(),s=cl(),a=wfe(),l=Object.getOwnPropertyDescriptor;return WM.f=e?l:function(d,f){if(d=i(d),f=o(f),a)try{return l(d,f)}catch{}if(s(d,f))return r(!t(n.f,d,f),d[f])},WM}var O2={},D2,cX;function Cfe(){if(cX)return D2;cX=1;var e=ll(),t=pr();return D2=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),D2}var M2,dX;function Io(){if(dX)return M2;dX=1;var e=ns(),t=String,n=TypeError;return M2=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")},M2}var hX;function gh(){if(hX)return O2;hX=1;var e=ll(),t=wfe(),n=Cfe(),r=Io(),i=bfe(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l="enumerable",u="configurable",d="writable";return O2.f=e?n?function(g,m,y){if(r(g),m=i(m),r(y),typeof g=="function"&&m==="prototype"&&"value"in y&&d in y&&!y[d]){var b=a(g,m);b&&b[d]&&(g[m]=y.value,y={configurable:u in y?y[u]:b[u],enumerable:l in y?y[l]:b[l],writable:!1})}return s(g,m,y)}:s:function(g,m,y){if(r(g),m=i(m),r(y),t)try{return s(g,m,y)}catch{}if("get"in y||"set"in y)throw new o("Accessors not supported");return"value"in y&&(g[m]=y.value),g},O2}var I2,fX;function gC(){if(fX)return I2;fX=1;var e=ll(),t=gh(),n=t5();return I2=e?function(r,i,o){return t.f(r,i,n(1,o))}:function(r,i,o){return r[i]=o,r},I2}var _2={exports:{}},F2,gX;function _A(){if(gX)return F2;gX=1;var e=ll(),t=cl(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&(function(){}).name==="something",s=i&&(!e||e&&r(n,"name").configurable);return F2={EXISTS:i,PROPER:o,CONFIGURABLE:s},F2}var k2,pX;function s5(){if(pX)return k2;pX=1;var e=mr(),t=vr(),n=i5(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(i){return r(i)}),k2=n.inspectSource,k2}var L2,mX;function Hvt(){if(mX)return L2;mX=1;var e=Kn(),t=vr(),n=e.WeakMap;return L2=t(n)&&/native code/.test(String(n)),L2}var N2,vX;function a5(){if(vX)return N2;vX=1;var e=o5(),t=yfe(),n=e("keys");return N2=function(r){return n[r]||(n[r]=t(r))},N2}var B2,yX;function l5(){return yX||(yX=1,B2={}),B2}var H2,bX;function FA(){if(bX)return H2;bX=1;var e=Hvt(),t=Kn(),n=ns(),r=gC(),i=cl(),o=i5(),s=a5(),a=l5(),l="Object already initialized",u=t.TypeError,d=t.WeakMap,f,g,m,y=function(E){return m(E)?g(E):f(E,{})},b=function(E){return function(A){var T;if(!n(A)||(T=g(A)).type!==E)throw new u("Incompatible receiver, "+E+" required");return T}};if(e||o.state){var w=o.state||(o.state=new d);w.get=w.get,w.has=w.has,w.set=w.set,f=function(E,A){if(w.has(E))throw new u(l);return A.facade=E,w.set(E,A),A},g=function(E){return w.get(E)||{}},m=function(E){return w.has(E)}}else{var C=s("state");a[C]=!0,f=function(E,A){if(i(E,C))throw new u(l);return A.facade=E,r(E,C,A),A},g=function(E){return i(E,C)?E[C]:{}}
1067,m=function(E){return i(E,C)}}return H2={set:f,get:g,has:m,enforce:y,getterFor:b},H2}var wX;function Sfe(){if(wX)return _2.exports;wX=1;var e=mr(),t=pr(),n=vr(),r=cl(),i=ll(),o=_A().CONFIGURABLE,s=s5(),a=FA(),l=a.enforce,u=a.get,d=String,f=Object.defineProperty,g=e("".slice),m=e("".replace),y=e([].join),b=i&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),w=String(String).split("String"),C=_2.exports=function(E,A,T){g(d(A),0,7)==="Symbol("&&(A="["+m(d(A),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),T&&T.getter&&(A="get "+A),T&&T.setter&&(A="set "+A),(!r(E,"name")||o&&E.name!==A)&&(i?f(E,"name",{value:A,configurable:!0}):E.name=A),b&&T&&r(T,"arity")&&E.length!==T.arity&&f(E,"length",{value:T.arity});try{T&&r(T,"constructor")&&T.constructor?i&&f(E,"prototype",{writable:!1}):E.prototype&&(E.prototype=void 0)}catch{}var P=l(E);return r(P,"source")||(P.source=y(w,typeof A=="string"?A:"")),E};return Function.prototype.toString=C(function(){return n(this)&&u(this).source||s(this)},"toString"),_2.exports}var V2,CX;function kg(){if(CX)return V2;CX=1;var e=vr(),t=gh(),n=Sfe(),r=r5();return V2=function(i,o,s,a){a||(a={});var l=a.enumerable,u=a.name!==void 0?a.name:o;if(e(s)&&n(s,u,a),a.global)l?i[o]=s:r(o,s);else{try{a.unsafe?i[o]&&(l=!0):delete i[o]}catch{}l?i[o]=s:t.f(i,o,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i},V2}var z2={},G2,SX;function Vvt(){if(SX)return G2;SX=1;var e=Math.ceil,t=Math.floor;return G2=Math.trunc||function(r){var i=+r;return(i>0?t:e)(i)},G2}var j2,xX;function kA(){if(xX)return j2;xX=1;var e=Vvt();return j2=function(t){var n=+t;return n!==n||n===0?0:e(n)},j2}var U2,EX;function zvt(){if(EX)return U2;EX=1;var e=kA(),t=Math.max,n=Math.min;return U2=function(r,i){var o=e(r);return o<0?t(o+i,0):n(o,i)},U2}var W2,RX;function fv(){if(RX)return W2;RX=1;var e=kA(),t=Math.min;return W2=function(n){var r=e(n);return r>0?t(r,9007199254740991):0},W2}var $2,AX;function u5(){if(AX)return $2;AX=1;var e=fv();return $2=function(t){return e(t.length)},$2}var q2,TX;function xfe(){if(TX)return q2;TX=1;var e=hC(),t=zvt(),n=u5(),r=function(i){return function(o,s,a){var l=e(o),u=n(l);if(u===0)return!i&&-1;var d=t(a,u),f;if(i&&s!==s){for(;u>d;)if(f=l[d++],f!==f)return!0}else for(;u>d;d++)if((i||d in l)&&l[d]===s)return i||d||0;return!i&&-1}};return q2={includes:r(!0),indexOf:r(!1)},q2}var K2,PX;function Efe(){if(PX)return K2;PX=1;var e=mr(),t=cl(),n=hC(),r=xfe().indexOf,i=l5(),o=e([].push);return K2=function(s,a){var l=n(s),u=0,d=[],f;for(f in l)!t(i,f)&&t(l,f)&&o(d,f);for(;a.length>u;)t(l,f=a[u++])&&(~r(d,f)||o(d,f));return d},K2}var Y2,OX;function c5(){return OX||(OX=1,Y2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Y2}var DX;function Gvt(){if(DX)return z2;DX=1;var e=Efe(),t=c5(),n=t.concat("length","prototype");return z2.f=Object.getOwnPropertyNames||function(i){return e(i,n)},z2}var X2={},MX;function jvt(){return MX||(MX=1,X2.f=Object.getOwnPropertySymbols),X2}var Z2,IX;function Uvt(){if(IX)return Z2;IX=1;var e=Fg(),t=mr(),n=Gvt(),r=jvt(),i=Io(),o=t([].concat);return Z2=e("Reflect","ownKeys")||function(a){var l=n.f(i(a)),u=r.f;return u?o(l,u(a)):l},Z2}var Q2,_X;function Wvt(){if(_X)return Q2;_X=1;var e=cl(),t=Uvt(),n=IA(),r=gh();return Q2=function(i,o,s){for(var a=t(o),l=r.f,u=n.f,d=0;d<a.length;d++){var f=a[d];!e(i,f)&&!(s&&e(s,f))&&l(i,f,u(o,f))}},Q2}var J2,FX;function Rfe(){if(FX)return J2;FX=1;var e=pr(),t=vr(),n=/#|\.prototype\./,r=function(l,u){var d=o[i(l)];return d===a?!0:d===s?!1:t(u)?e(u):!!u},i=r.normalize=function(l){return String(l).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return J2=r,J2}var eI,kX;function _o(){if(kX)return eI;kX=1;var e=Kn(),t=IA().f,n=gC(),r=kg(),i=r5(),o=Wvt(),s=Rfe();return eI=function(a,l){var u=a.target,d=a.global,f=a.stat,g,m,y,b,w,C;if(d?m=e:f?m=e[u]||i(u,{}):m=e[u]&&e[u].prototype,m)for(y in l){if(w=l[y],a.dontCallGetSet?(C=t(m,y),b=C&&C.value):b=m[y],g=s(d?y:u+(f?".":"#")+y,a.forced),!g&&b!==void 0){if(typeof w==typeof b)continue;o(w,b)}(a.sham||b&&b.sham)&&n(w,"sham",!0),r(m,y,w,a)}},eI}var tI,LX;function Afe(){if(LX)return tI;LX=1;var e=Kn(),t=fC(),n=hh(),r=function(i){return t.slice(0,i.length)===i};return tI=(function(){return r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="str
1067ing"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":n(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"})(),tI}var nI,NX;function LA(){if(NX)return nI;NX=1;var e=Afe();return nI=e==="NODE",nI}var rI,BX;function $vt(){if(BX)return rI;BX=1;var e=Kn();return rI=e,rI}var iI,HX;function qvt(){if(HX)return iI;HX=1;var e=mr(),t=fh();return iI=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch{}},iI}var oI,VX;function Kvt(){if(VX)return oI;VX=1;var e=ns();return oI=function(t){return e(t)||t===null},oI}var sI,zX;function Yvt(){if(zX)return sI;zX=1;var e=Kvt(),t=String,n=TypeError;return sI=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")},sI}var aI,GX;function Tfe(){if(GX)return aI;GX=1;var e=qvt(),t=ns(),n=ul(),r=Yvt();return aI=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,o={},s;try{s=e(Object.prototype,"__proto__","set"),s(o,[]),i=o instanceof Array}catch{}return function(l,u){return n(l),r(u),t(l)&&(i?s(l,u):l.__proto__=u),l}})():void 0),aI}var lI,jX;function NA(){if(jX)return lI;jX=1;var e=gh().f,t=cl(),n=vi(),r=n("toStringTag");return lI=function(i,o,s){i&&!s&&(i=i.prototype),i&&!t(i,r)&&e(i,r,{configurable:!0,value:o})},lI}var uI,UX;function Xvt(){if(UX)return uI;UX=1;var e=Sfe(),t=gh();return uI=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)},uI}var cI,WX;function Zvt(){if(WX)return cI;WX=1;var e=Fg(),t=Xvt(),n=vi(),r=ll(),i=n("species");return cI=function(o){var s=e(o);r&&s&&!s[i]&&t(s,i,{configurable:!0,get:function(){return this}})},cI}var dI,$X;function Qvt(){if($X)return dI;$X=1;var e=PA(),t=TypeError;return dI=function(n,r){if(e(r,n))return n;throw new t("Incorrect invocation")},dI}var hI,qX;function Jvt(){if(qX)return hI;qX=1;var e=vi(),t=e("toStringTag"),n={};return n[t]="z",hI=String(n)==="[object z]",hI}var fI,KX;function Pfe(){if(KX)return fI;KX=1;var e=Jvt(),t=vr(),n=hh(),r=vi(),i=r("toStringTag"),o=Object,s=n((function(){return arguments})())==="Arguments",a=function(l,u){try{return l[u]}catch{}};return fI=e?n:function(l){var u,d,f;return l===void 0?"Undefined":l===null?"Null":typeof(d=a(u=o(l),i))=="string"?d:s?n(u):(f=n(u))==="Object"&&t(u.callee)?"Arguments":f},fI}var gI,YX;function eyt(){if(YX)return gI;YX=1;var e=mr(),t=pr(),n=vr(),r=Pfe(),i=Fg(),o=s5(),s=function(){},a=i("Reflect","construct"),l=/^\s*(?:class|function)\b/,u=e(l.exec),d=!l.test(s),f=function(y){if(!n(y))return!1;try{return a(s,[],y),!0}catch{return!1}},g=function(y){if(!n(y))return!1;switch(r(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!u(l,o(y))}catch{return!0}};return g.sham=!0,gI=!a||t(function(){var m;return f(f.call)||!f(Object)||!f(function(){m=!0})||m})?g:f,gI}var pI,XX;function tyt(){if(XX)return pI;XX=1;var e=eyt(),t=OA(),n=TypeError;return pI=function(r){if(e(r))return r;throw new n(t(r)+" is not a constructor")},pI}var mI,ZX;function Ofe(){if(ZX)return mI;ZX=1;var e=Io(),t=tyt(),n=TA(),r=vi(),i=r("species");return mI=function(o,s){var a=e(o).constructor,l;return a===void 0||n(l=e(a)[i])?s:t(l)},mI}var vI,QX;function Dfe(){if(QX)return vI;QX=1;var e=AA(),t=Function.prototype,n=t.apply,r=t.call;return vI=typeof Reflect=="object"&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),vI}var yI,JX;function BA(){if(JX)return yI;JX=1;var e=hh(),t=mr();return yI=function(n){if(e(n)==="Function")return t(n)},yI}var bI,eZ;function d5(){if(eZ)return bI;eZ=1;var e=BA(),t=fh(),n=AA(),r=e(e.bind);return bI=function(i,o){return t(i),o===void 0?i:n?r(i,o):function(){return i.apply(o,arguments)}},bI}var wI,tZ;function Mfe(){if(tZ)return wI;tZ=1;var e=Fg();return wI=e("document","documentElement"),wI}var CI,nZ;function nyt(){if(nZ)return CI;nZ=1;var e=mr();return CI=e([].slice),CI}var SI,rZ;function ryt(){if(rZ)return SI;rZ=1;var e=TypeError;return SI=function(t,n){if(t<n)throw new e("Not enough arguments");return t},SI}var xI,iZ;function Ife(){if(iZ)return xI;iZ=1;var e=fC();return xI=/ipad|iphone|ipod/i.test(e)&&/applewebkit/i.test(e),xI}var EI,oZ;function _fe(){if(oZ)return EI;oZ=1;
1067var e=Kn(),t=Dfe(),n=d5(),r=vr(),i=cl(),o=pr(),s=Mfe(),a=nyt(),l=MA(),u=ryt(),d=Ife(),f=LA(),g=e.setImmediate,m=e.clearImmediate,y=e.process,b=e.Dispatch,w=e.Function,C=e.MessageChannel,E=e.String,A=0,T={},P="onreadystatechange",O,D,F,L;o(function(){O=e.location});var N=function(j){if(i(T,j)){var z=T[j];delete T[j],z()}},M=function(j){return function(){N(j)}},k=function(j){N(j.data)},B=function(j){e.postMessage(E(j),O.protocol+"//"+O.host)};return(!g||!m)&&(g=function(z){u(arguments.length,1);var H=r(z)?z:w(z),G=a(arguments,1);return T[++A]=function(){t(H,void 0,G)},D(A),A},m=function(z){delete T[z]},f?D=function(j){y.nextTick(M(j))}:b&&b.now?D=function(j){b.now(M(j))}:C&&!d?(F=new C,L=F.port2,F.port1.onmessage=k,D=n(L.postMessage,L)):e.addEventListener&&r(e.postMessage)&&!e.importScripts&&O&&O.protocol!=="file:"&&!o(B)?(D=B,e.addEventListener("message",k,!1)):P in l("script")?D=function(j){s.appendChild(l("script"))[P]=function(){s.removeChild(this),N(j)}}:D=function(j){setTimeout(M(j),0)}),EI={set:g,clear:m},EI}var RI,sZ;function iyt(){if(sZ)return RI;sZ=1;var e=Kn(),t=ll(),n=Object.getOwnPropertyDescriptor;return RI=function(r){if(!t)return e[r];var i=n(e,r);return i&&i.value},RI}var AI,aZ;function Ffe(){if(aZ)return AI;aZ=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(t){var n={item:t,next:null},r=this.tail;r?r.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t){var n=this.head=t.next;return n===null&&(this.tail=null),t.item}}},AI=e,AI}var TI,lZ;function oyt(){if(lZ)return TI;lZ=1;var e=fC();return TI=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u",TI}var PI,uZ;function syt(){if(uZ)return PI;uZ=1;var e=fC();return PI=/web0s(?!.*chrome)/i.test(e),PI}var OI,cZ;function ayt(){if(cZ)return OI;cZ=1;var e=Kn(),t=iyt(),n=d5(),r=_fe().set,i=Ffe(),o=Ife(),s=oyt(),a=syt(),l=LA(),u=e.MutationObserver||e.WebKitMutationObserver,d=e.document,f=e.process,g=e.Promise,m=t("queueMicrotask"),y,b,w,C,E;if(!m){var A=new i,T=function(){var P,O;for(l&&(P=f.domain)&&P.exit();O=A.get();)try{O()}catch(D){throw A.head&&y(),D}P&&P.enter()};!o&&!l&&!a&&u&&d?(b=!0,w=d.createTextNode(""),new u(T).observe(w,{characterData:!0}),y=function(){w.data=b=!b}):!s&&g&&g.resolve?(C=g.resolve(void 0),C.constructor=g,E=n(C.then,C),y=function(){E(T)}):l?y=function(){f.nextTick(T)}:(r=n(r,e),y=function(){r(T)}
vendor: 4,152 bytes, line 1067
1067),m=function(P){A.head||y(),A.add(P)}}return OI=m,OI}var DI,dZ;function lyt(){return dZ||(dZ=1,DI=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}),DI}var MI,hZ;function h5(){return hZ||(hZ=1,MI=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}),MI}var II,fZ;function pC(){if(fZ)return II;fZ=1;var e=Kn();return II=e.Promise,II}var _I,gZ;function mC(){if(gZ)return _I;gZ=1;var e=Kn(),t=pC(),n=vr(),r=Rfe(),i=s5(),o=vi(),s=Afe(),a=vu(),l=n5(),u=t&&t.prototype,d=o("species"),f=!1,g=n(e.PromiseRejectionEvent),m=r("Promise",function(){var y=i(t),b=y!==String(t);if(!b&&l===66||a&&!(u.catch&&u.finally))return!0;if(!l||l<51||!/native code/.test(y)){var w=new t(function(A){A(1)}),C=function(A){A(function(){},function(){})},E=w.constructor={};if(E[d]=C,f=w.then(function(){})instanceof C,!f)return!0}return!b&&(s==="BROWSER"||s==="DENO")&&!g});return _I={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:f},_I}var FI={},pZ;function vC(){if(pZ)return FI;pZ=1;var e=fh(),t=TypeError,n=function(r){var i,o;this.promise=new r(function(s,a){if(i!==void 0||o!==void 0)throw new t("Bad Promise constructor");i=s,o=a}),this.resolve=e(i),this.reject=e(o)};return FI.f=function(r){return new n(r)},FI}var mZ;function uyt(){if(mZ)return EY;mZ=1;var e=_o(),t=vu(),n=LA(),r=Kn(),i=$vt(),o=Ni(),s=kg(),a=Tfe(),l=NA(),u=Zvt(),d=fh(),f=vr(),g=ns(),m=Qvt(),y=Ofe(),b=_fe().set,w=ayt(),C=lyt(),E=h5(),A=Ffe(),T=FA(),P=pC(),O=mC(),D=vC(),F="Promise",L=O.CONSTRUCTOR,N=O.REJECTION_EVENT,M=O.SUBCLASSING,k=T.getterFor(F),B=T.set,j=P&&P.prototype,z=P,H=j,G=r.TypeError,$=r.document,Y=r.process,K=D.f,se=K,re=!!($&&$.createEvent&&r.dispatchEvent),ue="unhandledrejection",U="rejectionhandled",X=0,be=1,me=2,Oe=1,ge=2,ve,de,J,Fe,ke=function(Ee){var Ze;return g(Ee)&&f(Ze=Ee.then)?Ze:!1},Te=function(Ee,Ze){var st=Ze.value,tt=Ze.state===be,qe=tt?Ee.ok:Ee.fail,mt=Ee.resolve,$t=Ee.reject,_n=Ee.domain,Yn,Bi,sr;try{qe?(tt||(Ze.rejection===ge&&rt(Ze),Ze.rejection=Oe),qe===!0?Yn=st:(_n&&_n.enter(),Yn=qe(st),_n&&(_n.exit(),sr=!0)),Yn===Ee.promise?$t(new G("Promise-chain cycle")):(Bi=ke(Yn))?o(Bi,Yn,mt,$t):mt(Yn)):$t(st)}catch(yr){_n&&!sr&&_n.exit(),$t(yr)}},dt=function(Ee,Ze){Ee.notified||(Ee.notified=!0,w(function(){for(var st=Ee.reactions,tt;tt=st.get();)Te(tt,Ee);Ee.notified=!1,Ze&&!Ee.rejection&&xe(Ee)}))},Ne=function(Ee,Ze,st){var tt,qe;re?(tt=$.createEvent("Event"),tt.promise=Ze,tt.reason=st,tt.initEvent(Ee,!1,!0),r.dispatchEvent(tt)):tt={promise:Ze,reason:st},!N&&(qe=r["on"+Ee])?qe(tt):Ee===ue&&C("Unhandled promise rejection",st)},xe=function(Ee){o(b,r,function(){var Ze=Ee.facade,st=Ee.value,tt=We(Ee),qe;if(tt&&(qe=E(function(){n?Y.emit("unhandledRejection",st,Ze):Ne(ue,Ze,st)}),Ee.rejection=n||We(Ee)?ge:Oe,qe.error))throw qe.value})},We=function(Ee){return Ee.rejection!==Oe&&!Ee.parent},rt=function(Ee){o(b,r,function(){var Ze=Ee.facade;n?Y.emit("rejectionHandled",Ze):Ne(U,Ze,Ee.value)})},Ke=function(Ee,Ze,st){return function(tt){Ee(Ze,tt,st)}},Be=function(Ee,Ze,st){Ee.done||(Ee.done=!0,st&&(Ee=st),Ee.value=Ze,Ee.state=me,dt(Ee,!0))},pt=function(Ee,Ze,st){if(!Ee.done){Ee.done=!0,st&&(Ee=st);try{if(Ee.facade===Ze)throw new G("Promise can't be resolved itself");var tt=ke(Ze);tt?w(function(){var qe={done:!1};try{o(tt,Ze,Ke(pt,qe,Ee),Ke(Be,qe,Ee))}catch(mt){Be(qe,mt,Ee)}}):(Ee.value=Ze,Ee.state=be,dt(Ee,!1))}catch(qe){Be({done:!1},qe,Ee)}}};if(L&&(z=function(Ze){m(this,H),d(Ze),o(ve,this);var st=k(this);try{Ze(Ke(pt,st),Ke(Be,st))}catch(tt){Be(st,tt)}},H=z.prototype,ve=function(Ze){B(this,{type:F,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:X,value:null})},ve.prototype=s(H,"then",function(Ze,st){var tt=k(this),qe=K(y(this,z));return tt.parent=!0,qe.ok=f(Ze)?Ze:!0,qe.fail=f(st)&&st,qe.domain=n?Y.domain:void 0,tt.state===X?tt.reactions.add(qe):w(function(){Te(qe,tt)}),qe.promise}),de=function(){var Ee=new ve,Ze=k(Ee);this.promise=Ee,this.resolve=Ke(pt,Ze),this.reject=Ke(Be,Ze)},D.f=K=function(Ee){return Ee===z||Ee===J?new de(Ee):se(Ee)},!t&&f(P)&&j!==Object.prototype)){Fe=j.then,M||s(j,"then",function(Ze,st){var tt=this;return new z(function(qe,mt){o(Fe,tt,qe,mt)}
1067).then(Ze,st)},{unsafe:!0});try{delete j.constructor}catch{}a&&a(j,H)}return e({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:z}),J=i.Promise,l(z,F,!1,!0),u(F),EY}var vZ={},kI,yZ;function HA(){return yZ||(yZ=1,kI=Object.create?Object.create(null):{}),kI}var LI,bZ;function cyt(){if(bZ)return LI;bZ=1;var e=vi(),t=HA(),n=e("iterator"),r=Array.prototype;return LI=function(i){return i!==void 0&&(t.Array===i||r[n]===i)},LI}var NI,wZ;function kfe(){if(wZ)return NI;wZ=1;var e=hh(),t=TA(),n=hv(),r=vi(),i=r("iterator"),o=Array.prototype;return NI=function(s){if(!t(s))return n(s,i)||n(s,"@@iterator")||(e(s)==="Arguments"?o[i]:void 0)},NI}var BI,CZ;function dyt(){if(CZ)return BI;CZ=1;var e=Ni(),t=vr(),n=Io(),r=OA(),i=kfe(),o=TypeError;return BI=function(s,a){var l=arguments.length<2?i(s):a;if(t(l))return n(e(l,s));throw new o(r(s)+" is not iterable")},BI}var HI,SZ;function hyt(){if(SZ)return HI;SZ=1;var e=Ni(),t=Io(),n=hv();return HI=function(r,i,o){var s,a;t(r);try{if(s=n(r,"return"),!s){if(i==="throw")throw o;return o}s=e(s,r)}catch(l){a=!0,s=l}if(i==="throw")throw o;if(a)throw s;return t(s),o},HI}var VI,xZ;function Lfe(){if(xZ)return VI;xZ=1;var e=d5(),t=Ni(),n=Io(),r=OA(),i=cyt(),o=u5(),s=PA(),a=dyt(),l=kfe(),u=hyt(),d=TypeError,f=function(m,y){this.stopped=m,this.result=y},g=f.prototype;return VI=function(m,y,b){var w=b&&b.that,C=!!(b&&b.AS_ENTRIES),E=!!(b&&b.IS_RECORD),A=!!(b&&b.IS_ITERATOR),T=!!(b&&b.INTERRUPTED),P=e(y,w),O,D,F,L,N,M,k,B=function(H){var G=O;return O=void 0,G&&u(G,"normal"),new f(!0,H)},j=function(H){return C?(n(H),T?P(H[0],H[1],B):P(H[0],H[1])):T?P(H,B):P(H)};if(E)O=m.iterator;else if(A)O=m;else{if(D=l(m),!D)throw new d(r(m)+" is not iterable");if(i(D)){for(F=0,L=o(m);L>F;F++)if(N=j(m[F]),N&&s(g,N))return N;return new f(!1)}O=a(m,D)}for(M=E?m.next:O.next;!(k=t(M,O)).done;){var z=k.value;try{N=j(z)}catch(H){if(O)u(O,"throw",H);else throw H}if(typeof N=="object"&&N&&s(g,N))return N}return new f(!1)},VI}var zI,EZ;function fyt(){if(EZ)return zI;EZ=1;var e=vi(),t=e("iterator"),n=!1;try{var r=0,i={next:function(){return{done:!!r++}},return:function(){n=!0}};i[t]=function(){return this},Array.from(i,function(){throw 2})}catch{}return zI=function(o,s){try{if(!s&&!n)return!1}catch{return!1}var a=!1;try{var l={};l[t]=function(){return{next:function(){return{done:a=!0}}}},o(l)}catch{}return a},zI}var GI,RZ;function Nfe(){if(RZ)return GI;RZ=1;var e=pC(),t=fyt(),n=mC().CONSTRUCTOR;return GI=n||!t(function(r){e.all(r).then(void 0,function(){})}),GI}var AZ;function gyt(){if(AZ)return vZ;AZ=1;var e=_o(),t=Ni(),n=fh(),r=vC(),i=h5(),o=Lfe(),s=Nfe();return e({target:"Promise",stat:!0,forced:s},{all:function(l){var u=this,d=r.f(u),f=d.resolve,g=d.reject,m=i(function(){var y=n(u.resolve),b=[],w=0,C=1;o(l,function(E){var A=w++,T=!1;C++,t(y,u,E).then(function(P){T||(T=!0,b[A]=P,--C||f(b))},g)}),--C||f(b)});return m.error&&g(m.value),d.promise}}),vZ}var TZ={},PZ;function pyt(){if(PZ)return TZ;PZ=1;var e=_o(),t=vu(),n=mC().CONSTRUCTOR,r=pC(),i=Fg(),o=vr(),s=kg(),a=r&&r.prototype;if(e({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(u){return this.then(void 0,u)}}),!t&&o(r)){var l=i("Promise").prototype.catch;a.catch!==l&&s(a,"catch",l,{unsafe:!0})}return TZ}var OZ={},DZ;function myt(){if(DZ)return OZ;DZ=1;var e=_o(),t=Ni(),n=fh(),r=vC(),i=h5(),o=Lfe(),s=Nfe();return e({target:"Promise",stat:!0,forced:s},{race:function(l){var u=this,d=r.f(u),f=d.reject,g=i(function(){var m=n(u.resolve);o(l,function(y){t(m,u,y).then(d.resolve,f)})});return g.error&&f(g.value),d.promise}}),OZ}var MZ={},IZ;function vyt(){if(IZ)return MZ;IZ=1;var e=_o(),t=vC(),n=mC().CONSTRUCTOR;return e({target:"Promise",stat:!0,forced:n},{reject:function(i){var o=t.f(this),s=o.reject;return s(i),o.promise}}),MZ}var _Z={},jI,FZ;function yyt(){if(FZ)return jI;FZ=1;var e=Io(),t=ns(),n=vC();return jI=function(r,i){if(e(r),t(i)&&i.constructor===r)return i;var o=n.f(r),s=o.resolve;return s(i),o.promise},jI}var kZ;function byt(){if(kZ)return _Z;kZ=1;var e=_o(),t=Fg(),n=vu(),r=pC(),i=mC().CONSTRUCTOR,o=yyt(),s=t("Promise"),a=n&&!i;return e({target:"Promise",stat:!0,forced:n||i},{resolve:function(u){return o(a&&this===s?r:this,u)}}),_Z}var LZ;function wyt(){return LZ||(LZ=1,uyt(),gyt(),pyt(),myt(),vyt(),byt()),xY}wyt();function NZ(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(r,i)}function Sc(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){NZ(o,r,i,s,a,"next",l)}
1067function a(l){NZ(o,r,i,s,a,"throw",l)}s(void 0)})}}var BZ={},HZ={},UI,VZ;function yu(){if(VZ)return UI;VZ=1;var e=Pfe(),t=String;return UI=function(n){if(e(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(n)},UI}var WI,zZ;function Bfe(){if(zZ)return WI;zZ=1;var e=Io();return WI=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n},WI}var $I,GZ;function Hfe(){if(GZ)return $I;GZ=1;var e=pr(),t=Kn(),n=t.RegExp,r=e(function(){var s=n("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=r||e(function(){return!n("a","y").sticky}),o=r||e(function(){var s=n("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return $I={BROKEN_CARET:o,MISSED_STICKY:i,UNSUPPORTED_Y:r},$I}var qI={},KI,jZ;function Cyt(){if(jZ)return KI;jZ=1;var e=Efe(),t=c5();return KI=Object.keys||function(r){return e(r,t)},KI}var UZ;function Syt(){if(UZ)return qI;UZ=1;var e=ll(),t=Cfe(),n=gh(),r=Io(),i=hC(),o=Cyt();return qI.f=e&&!t?Object.defineProperties:function(a,l){r(a);for(var u=i(l),d=o(l),f=d.length,g=0,m;f>g;)n.f(a,m=d[g++],u[m]);return a},qI}var YI,WZ;function VA(){if(WZ)return YI;WZ=1;var e=Io(),t=Syt(),n=c5(),r=l5(),i=Mfe(),o=MA(),s=a5(),a=">",l="<",u="prototype",d="script",f=s("IE_PROTO"),g=function(){},m=function(E){return l+d+a+E+l+"/"+d+a},y=function(E){E.write(m("")),E.close();var A=E.parentWindow.Object;return E=null,A},b=function(){var E=o("iframe"),A="java"+d+":",T;return E.style.display="none",i.appendChild(E),E.src=String(A),T=E.contentWindow.document,T.open(),T.write(m("document.F=Object")),T.close(),T.F},w,C=function(){try{w=new ActiveXObject("htmlfile")}catch{}C=typeof document<"u"?document.domain&&w?y(w):b():y(w);for(var E=n.length;E--;)delete C[u][n[E]];return C()};return r[f]=!0,YI=Object.create||function(A,T){var P;return A!==null?(g[u]=e(A),P=new g,g[u]=null,P[f]=A):P=C(),T===void 0?P:t.f(P,T)},YI}var XI,$Z;function xyt(){if($Z)return XI;$Z=1;var e=pr(),t=Kn(),n=t.RegExp;return XI=e(function(){var r=n(".","s");return!(r.dotAll&&r.test(` 1068`)&&r.flags==="s")}),XI}var ZI,qZ;function Eyt(){if(qZ)return ZI;qZ=1;var e=pr(),t=Kn(),n=t.RegExp;return ZI=e(function(){var r=n("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"}),ZI}var QI,KZ;function f5(){if(KZ)return QI;KZ=1;var e=Ni(),t=mr(),n=yu(),r=Bfe(),i=Hfe(),o=o5(),s=VA(),a=FA().get,l=xyt(),u=Eyt(),d=o("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,m=t("".charAt),y=t("".indexOf),b=t("".replace),w=t("".slice),C=(function(){var O=/a/,D=/b*/g;return e(f,O,"a"),e(f,D,"a"),O.lastIndex!==0||D.lastIndex!==0})(),E=i.BROKEN_CARET,A=/()??/.exec("")[1]!==void 0,T=C||A||E||l||u,P=function(O,D){for(var F=O.groups=s(null),L=0;L<D.length;L++){var N=D[L];F[N[0]]=O[N[1]]}};return T&&(g=function(D){var F=this,L=a(F),N=n(D),M=L.raw,k,B,j;if(M)return M.lastIndex=F.lastIndex,k=e(g,M,N),F.lastIndex=M.lastIndex,k&&L.groups&&P(k,L.groups),k;var z=L.groups,H=E&&F.sticky,G=e(r,F),$=F.source,Y=0,K=N;if(H){G=b(G,"y",""),y(G,"g")===-1&&(G+="g"),K=w(N,F.lastIndex);var se=F.lastIndex>0&&m(N,F.lastIndex-1);F.lastIndex>0&&(!F.multiline||F.multiline&&se!==` 1069`&&se!=="\r"&&se!=="\u2028"&&se!=="\u2029")&&($="(?: (?:"+$+"))",K=" "+K,Y++),B=new RegExp("^(?:"+$+")",G)}A&&(B=new RegExp("^"+$+"$(?!\\s)",G)),C&&(j=F.lastIndex);var re=e(f,H?B:F,K);return H?re?(re.input=N,re[0]=w(re[0],Y),re.index=F.lastIndex,F.lastIndex+=re[0].length):F.lastIndex=0:C&&re&&(F.lastIndex=F.global?re.index+re[0].length:j),A&&re&&re.length>1&&e(d,re[0],B,function(){for(var ue=1;ue<arguments.length-2;ue++)arguments[ue]===void 0&&(re[ue]=void 0)}),re&&z&&P(re,z),re}),QI=g,QI}var YZ;function Ryt(){if(YZ)return HZ;YZ=1;var e=_o(),t=f5();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),HZ}var JI,XZ;function g5(){if(XZ)return JI;XZ=1,Ryt();var e=Ni(),t=kg(),n=f5(),r=pr(),i=vi(),o=gC(),s=i("species"),a=RegExp.prototype;return JI=function(l,u,d,f){var g=i(l),m=!r(function(){var C={};return C[g]=function(){return 7},""[l](C)!==7}),y=m&&!r(function(){var C=!1,E=/a/;if(l==="split"){var A={};A[s]=function(){return E},E={constructor:A,flags:""},E[g]=/./[g]}return E.exec=function(){return C=!0,null},E[g](""),!C}
vendor: 4,713 bytes, line 1069
1069);if(!m||!y||d){var b=/./[g],w=u(g,""[l],function(C,E,A,T,P){var O=E.exec;return O===n||O===a.exec?m&&!P?{done:!0,value:e(b,E,A,T)}:{done:!0,value:e(C,A,E,T)}:{done:!1}});t(String.prototype,l,w[0]),t(a,g,w[1])}f&&o(a[g],"sham",!0)},JI}var e_,ZZ;function Ayt(){if(ZZ)return e_;ZZ=1;var e=mr(),t=kA(),n=yu(),r=ul(),i=e("".charAt),o=e("".charCodeAt),s=e("".slice),a=function(l){return function(u,d){var f=n(r(u)),g=t(d),m=f.length,y,b;return g<0||g>=m?l?"":void 0:(y=o(f,g),y<55296||y>56319||g+1===m||(b=o(f,g+1))<56320||b>57343?l?i(f,g):y:l?s(f,g,g+2):(y-55296<<10)+(b-56320)+65536)}};return e_={codeAt:a(!1),charAt:a(!0)},e_}var t_,QZ;function p5(){if(QZ)return t_;QZ=1;var e=Ayt().charAt;return t_=function(t,n,r){return n+(r&&e(t,n).length||1)},t_}var n_,JZ;function Tyt(){if(JZ)return n_;JZ=1;var e=Kn(),t=pr(),n=e.RegExp,r=!t(function(){var i=!0;try{n(".","d")}catch{i=!1}var o={},s="",a=i?"dgimsy":"gimsy",l=function(g,m){Object.defineProperty(o,g,{get:function(){return s+=m,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};i&&(u.hasIndices="d");for(var d in u)l(d,u[d]);var f=Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(o);return f!==a||s!==a});return n_={correct:r},n_}var r_,eQ;function zA(){if(eQ)return r_;eQ=1;var e=Ni(),t=cl(),n=PA(),r=Tyt(),i=Bfe(),o=RegExp.prototype;return r_=r.correct?function(s){return s.flags}:function(s){return!r.correct&&n(o,s)&&!t(s,"flags")?e(i,s):s.flags},r_}var i_,tQ;function m5(){if(tQ)return i_;tQ=1;var e=Ni(),t=Io(),n=vr(),r=hh(),i=f5(),o=TypeError;return i_=function(s,a){var l=s.exec;if(n(l)){var u=e(l,s,a);return u!==null&&t(u),u}if(r(s)==="RegExp")return e(i,s,a);throw new o("RegExp#exec called on incompatible receiver")},i_}var nQ;function Pyt(){if(nQ)return BZ;nQ=1;var e=Ni(),t=mr(),n=g5(),r=Io(),i=ns(),o=fv(),s=yu(),a=ul(),l=hv(),u=p5(),d=zA(),f=m5(),g=t("".indexOf);return n("match",function(m,y,b){return[function(C){var E=a(this),A=i(C)?l(C,m):void 0;if(A)return e(A,C,E);var T=s(E);return new RegExp(C)[m](T)},function(w){var C=r(this),E=s(w),A=b(y,C,E);if(A.done)return A.value;var T=s(d(C));if(!~g(T,"g"))return f(C,E);var P=!!~g(T,"u")||!!~g(T,"v");C.lastIndex=0;for(var O=[],D=0,F;(F=f(C,E))!==null;){var L=s(F[0]);O[D]=L,L===""&&(C.lastIndex=u(E,o(C.lastIndex),P)),D++}return D===0?null:O}]}),BZ}Pyt();var rQ={},o_,iQ;function Oyt(){if(iQ)return o_;iQ=1;var e=mr(),t=DA(),n=Math.floor,r=e("".charAt),i=e("".replace),o=e("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return o_=function(l,u,d,f,g,m){var y=d+l.length,b=f.length,w=a;return g!==void 0&&(g=t(g),w=s),i(m,w,function(C,E){var A;switch(r(E,0)){case"$":return"$";case"&":return l;case"`":return o(u,0,d);case"'":return o(u,y);case"<":A=g[o(E,1,-1)];break;default:var T=+E;if(T===0)return C;if(T>b){var P=n(T/10);return P===0?C:P<=b?f[P-1]===void 0?r(E,1):f[P-1]+r(E,1):C}A=f[T-1]}return A===void 0?"":A})},o_}var oQ;function Dyt(){if(oQ)return rQ;oQ=1;var e=Dfe(),t=Ni(),n=mr(),r=g5(),i=pr(),o=Io(),s=vr(),a=ns(),l=kA(),u=fv(),d=yu(),f=ul(),g=p5(),m=hv(),y=Oyt(),b=zA(),w=m5(),C=vi(),E=C("replace"),A=Math.max,T=Math.min,P=n([].concat),O=n([].push),D=n("".indexOf),F=n("".slice),L=function(B){return B===void 0?B:String(B)},N=(function(){return"a".replace(/./,"$0")==="$0"})(),M=(function(){return/./[E]?/./[E]("a","$0")==="":!1})(),k=!i(function(){var B=/./;return B.exec=function(){var j=[];return j.groups={a:"7"},j},"".replace(B,"$<a>")!=="7"});return r("replace",function(B,j,z){var H=M?"$":"$0";return[function($,Y){var K=f(this),se=a($)?m($,E):void 0;return se?t(se,$,K,Y):t(j,d(K),$,Y)},function(G,$){var Y=o(this),K=d(G),se=s($);se||($=d($));var re=d(b(Y));if(typeof $=="string"&&!~D($,H)&&!~D($,"$<")&&!~D(re,"y")){var ue=z(j,Y,K,$);if(ue.done)return ue.value}var U=!!~D(re,"g"),X;U&&(X=!!~D(re,"u")||!!~D(re,"v"),Y.lastIndex=0);for(var be=[],me;me=w(Y,K),!(me===null||(O(be,me),!U));){var Oe=d(me[0]);Oe===""&&(Y.lastIndex=g(K,u(Y.lastIndex),X))}for(var ge="",ve=0,de=0;de<be.length;de++){me=be[de];for(var J=d(me[0]),Fe=A(T(l(me.index),K.length),0),ke=[],Te,dt=1;dt<me.length;dt++)O(ke,L(me[dt]));var Ne=me.groups;if(se){var xe=P([J],ke,Fe,K);Ne!==void 0&&O(xe,Ne),Te=d(e($,void 0,xe))}else Te=y(J,K,Fe,ke,Ne,$);Fe>=ve&&(ge+=F(K,ve,Fe)+Te,ve=Fe+J.length)}return ge+F(K,ve)}]},!k||!N||M),rQ}Dyt();var sQ={},s_,aQ;function Myt(){if(aQ)return s_;aQ=1;var e=ns(),t=hh(),n=vi(),r=n("match");return s_=function(i){var o;return e(i)&&((o=i[r])!==void 0?!!o:t(i)==="RegExp")},s_}var a_,lQ;function v5(){if(lQ)return a_;lQ=1;var e=Myt(),t=TypeError;return a_=function(n){if(e(n))throw new t("The method doesn't accept regular expressions");return n},a_}var l_,uQ;function y5(){if(uQ)return l_;uQ=1;var e=vi(),t=e("match");
1069return l_=function(n){var r=/./;try{"/./"[n](r)}catch{try{return r[t]=!1,"/./"[n](r)}catch{}}return!1},l_}var cQ;function Iyt(){if(cQ)return sQ;cQ=1;var e=_o(),t=BA(),n=IA().f,r=fv(),i=yu(),o=v5(),s=ul(),a=y5(),l=vu(),u=t("".slice),d=Math.min,f=a("startsWith"),g=!l&&!f&&!!(function(){var m=n(String.prototype,"startsWith");return m&&!m.writable})();return e({target:"String",proto:!0,forced:!g&&!f},{startsWith:function(y){var b=i(s(this));o(y);var w=i(y),C=r(d(arguments.length>1?arguments[1]:void 0,b.length));return u(b,C,C+w.length)===w}}),sQ}Iyt();var u_,dQ;function _yt(){if(dQ)return u_;dQ=1;var e=vi(),t=VA(),n=gh().f,r=e("unscopables"),i=Array.prototype;return i[r]===void 0&&n(i,r,{configurable:!0,value:t(null)}),u_=function(o){i[r][o]=!0},u_}var c_,hQ;function Fyt(){if(hQ)return c_;hQ=1;var e=pr();return c_=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),c_}var d_,fQ;function Vfe(){if(fQ)return d_;fQ=1;var e=cl(),t=vr(),n=DA(),r=a5(),i=Fyt(),o=r("IE_PROTO"),s=Object,a=s.prototype;return d_=i?s.getPrototypeOf:function(l){var u=n(l);if(e(u,o))return u[o];var d=u.constructor;return t(d)&&u instanceof d?d.prototype:u instanceof s?a:null},d_}var h_,gQ;function zfe(){if(gQ)return h_;gQ=1;var e=pr(),t=vr(),n=ns(),r=VA(),i=Vfe(),o=kg(),s=vi(),a=vu(),l=s("iterator"),u=!1,d,f,g;[].keys&&(g=[].keys(),"next"in g?(f=i(i(g)),f!==Object.prototype&&(d=f)):u=!0);var m=!n(d)||e(function(){var y={};return d[l].call(y)!==y});return m?d={}:a&&(d=r(d)),t(d[l])||o(d,l,function(){return this}),h_={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:u},h_}var f_,pQ;function kyt(){if(pQ)return f_;pQ=1;var e=zfe().IteratorPrototype,t=VA(),n=t5(),r=NA(),i=HA(),o=function(){return this};return f_=function(s,a,l,u){var d=a+" Iterator";return s.prototype=t(e,{next:n(+!u,l)}),r(s,d,!1,!0),i[d]=o,s},f_}var g_,mQ;function Lyt(){if(mQ)return g_;mQ=1;var e=_o(),t=Ni(),n=vu(),r=_A(),i=vr(),o=kyt(),s=Vfe(),a=Tfe(),l=NA(),u=gC(),d=kg(),f=vi(),g=HA(),m=zfe(),y=r.PROPER,b=r.CONFIGURABLE,w=m.IteratorPrototype,C=m.BUGGY_SAFARI_ITERATORS,E=f("iterator"),A="keys",T="values",P="entries",O=function(){return this};return g_=function(D,F,L,N,M,k,B){o(L,F,N);var j=function(U){if(U===M&&Y)return Y;if(!C&&U&&U in G)return G[U];switch(U){case A:return function(){return new L(this,U)};case T:return function(){return new L(this,U)};case P:return function(){return new L(this,U)}}return function(){return new L(this)}},z=F+" Iterator",H=!1,G=D.prototype,$=G[E]||G["@@iterator"]||M&&G[M],Y=!C&&$||j(M),K=F==="Array"&&G.entries||$,se,re,ue;if(K&&(se=s(K.call(new D)),se!==Object.prototype&&se.next&&(!n&&s(se)!==w&&(a?a(se,w):i(se[E])||d(se,E,O)),l(se,z,!0,!0),n&&(g[z]=O))),y&&M===T&&$&&$.name!==T&&(!n&&b?u(G,"name",T):(H=!0,Y=function(){return t($,this)})),M)if(re={values:j(T),keys:k?Y:j(A),entries:j(P)},B)for(ue in re)(C||H||!(ue in G))&&d(G,ue,re[ue]);else e({target:F,proto:!0,forced:C||H},re);return(!n||B)&&G[E]!==Y&&d(G,E,Y,{name:M}),g[F]=Y,re},g_}var p_,vQ;function Nyt(){return vQ||(vQ=1,p_=function(e,t){return{value:e,done:t}}),p_}var m_,yQ;function Gfe(){if(yQ)return m_;yQ=1;var e=hC(),t=_yt(),n=HA(),r=FA(),i=gh().f,o=Lyt(),s=Nyt(),a=vu(),l=ll(),u="Array Iterator",d=r.set,f=r.getterFor(u);m_=o(Array,"Array",function(m,y){d(this,{type:u,target:e(m),index:0,kind:y})},function(){var m=f(this),y=m.target,b=m.index++;if(!y||b>=y.length)return m.target=null,s(void 0,!0);switch(m.kind){case"keys":return s(b,!1);case"values":return s(y[b],!1)}return s([b,y[b]],!1)},"values");var g=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!a&&l&&g.name!=="values")try{i(g,"name",{value:"values"})}catch{}return m_}Gfe();var bQ={},v_,wQ;function Byt(){return wQ||(wQ=1,v_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),v_}var y_,CQ;function Hyt(){if(CQ)return y_;CQ=1;var e=MA(),t=e("span").classList,n=t&&t.constructor&&t.constructor.prototype;return y_=n===Object.prototype?void 0:n,y_}var SQ;function Vyt(){if(SQ)return bQ;SQ=1;var e=Kn(),t=Byt(),n=Hyt(),r=Gfe(),i=gC(),o=NA(),s=vi(),a=s("iterator"),l=r.values,u=function(f,g){if(f){if(f[a]!==l)try{i(f,a,l)}catch{f[a]=l}if(o(f,g,!0),t[g]){for(var m in r)if(f[m]!==r[m])try{i(f,m,r[m])}catch{f[m]=r[m]}}}};for(var d in t)u(e[d]&&e[d].prototype,d);return u(n,"DOMTokenList"),bQ}Vyt();function zyt(e,t){if(iw(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(iw(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gyt(e){var t=zyt(e,"string");return iw(t)=="symbol"?t:t+""}function b5(e,t,n){return(t=Gyt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xQ={},b_,EQ;function jyt(){if(EQ)return b_;EQ=1;var e=fh(),t=DA(),n=gfe(),r=u5(),i=TypeError,o="Reduce of empty array with
1069no initial value",s=function(a){return function(l,u,d,f){var g=t(l),m=n(g),y=r(g);if(e(u),y===0&&d<2)throw new i(o);var b=a?y-1:0,w=a?-1:1;if(d<2)for(;;){if(b in m){f=m[b],b+=w;break}if(b+=w,a?b<0:y<=b)throw new i(o)}for(;a?b>=0:y>b;b+=w)b in m&&(f=u(f,m[b],b,g));return f}};return b_={left:s(!1),right:s(!0)},b_}var w_,RQ;function jfe(){if(RQ)return w_;RQ=1;var e=pr();return w_=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})},w_}var AQ;function Uyt(){if(AQ)return xQ;AQ=1;var e=_o(),t=jyt().left,n=jfe(),r=n5(),i=LA(),o=!i&&r>79&&r<83,s=o||!n("reduce");return e({target:"Array",proto:!0,forced:s},{reduce:function(l){var u=arguments.length;return t(this,l,u,u>1?arguments[1]:void 0)}}),xQ}Uyt();var TQ={},PQ;function Wyt(){if(PQ)return TQ;PQ=1;var e=_o(),t=BA(),n=IA().f,r=fv(),i=yu(),o=v5(),s=ul(),a=y5(),l=vu(),u=t("".slice),d=Math.min,f=a("endsWith"),g=!l&&!f&&!!(function(){var m=n(String.prototype,"endsWith");return m&&!m.writable})();return e({target:"String",proto:!0,forced:!g&&!f},{endsWith:function(y){var b=i(s(this));o(y);var w=i(y),C=arguments.length>1?arguments[1]:void 0,E=b.length,A=C===void 0?E:d(r(C),E);return u(b,A-w.length,A)===w}}),TQ}Wyt();var OQ={},DQ;function $yt(){if(DQ)return OQ;DQ=1;var e=Ni(),t=mr(),n=g5(),r=Io(),i=ns(),o=ul(),s=Ofe(),a=p5(),l=fv(),u=yu(),d=hv(),f=zA(),g=m5(),m=Hfe(),y=pr(),b=m.UNSUPPORTED_Y,w=4294967295,C=Math.min,E=t([].push),A=t("".slice),T=t("".indexOf),P=!y(function(){var D=/(?:)/,F=D.exec;D.exec=function(){return F.apply(this,arguments)};var L="ab".split(D);return L.length!==2||L[0]!=="a"||L[1]!=="b"}),O="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return n("split",function(D,F,L){var N="0".split(void 0,0).length?function(M,k){return M===void 0&&k===0?[]:e(F,this,M,k)}:F;return[function(k,B){var j=o(this),z=i(k)?d(k,D):void 0;return z?e(z,k,j,B):e(N,u(j),k,B)},function(M,k){var B=r(this),j=u(M);if(!O){var z=L(N,B,j,k,N!==F);if(z.done)return z.value}var H=s(B,RegExp),G=u(f(B)),$=!!~T(G,"u")||!!~T(G,"v");b?~T(G,"g")||(G+="g"):~T(G,"y")||(G+="y");var Y=new H(b?"^(?:"+B.source+")":B,G),K=k===void 0?w:k>>>0;if(K===0)return[];if(j.length===0)return g(Y,j)===null?[j]:[];for(var se=0,re=0,ue=[];re<j.length;){Y.lastIndex=b?0:re;var U=g(Y,b?A(j,re):j),X;if(U===null||(X=C(l(Y.lastIndex+(b?re:0)),j.length))===se)re=a(j,re,$);else{if(E(ue,A(j,se,re)),ue.length===K)return ue;for(var be=1;be<=U.length-1;be++)if(E(ue,U[be]),ue.length===K)return ue;re=se=X}}return E(ue,A(j,se)),ue}]},O||!P,b),OQ}$yt();var ky={exports:{}},af={exports:{}},qyt=af.exports,MQ;function Kyt(){return MQ||(MQ=1,(function(){var e,t,n,r,i,o;typeof performance<"u"&&performance!==null&&performance.now?af.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(af.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var s;return s=t(),s[0]*1e9+s[1]},r=e(),o=process.uptime()*1e9,i=r-o):Date.now?(af.exports=function(){return Date.now()-n},n=Date.now()):(af.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(qyt)),af.exports}var IQ;function Yyt(){if(IQ)return ky.exports;IQ=1;for(var e=Kyt(),t=typeof window>"u"?wo:window,n=["moz","webkit"],r="AnimationFrame",i=t["request"+r],o=t["cancel"+r]||t["cancelRequest"+r],s=0;!i&&s<n.length;s++)i=t[n[s]+"Request"+r],o=t[n[s]+"Cancel"+r]||t[n[s]+"CancelRequest"+r];if(!i||!o){var a=0,l=0,u=[],d=1e3/60;i=function(f){if(u.length===0){var g=e(),m=Math.max(0,d-(g-a));a=m+g,setTimeout(function(){var y=u.slice(0);u.length=0;for(var b=0;b<y.length;b++)if(!y[b].cancelled)try{y[b].callback(a)}catch(w){setTimeout(function(){throw w},0)}},Math.round(m))}return u.push({handle:++l,callback:f,cancelled:!1}),l},o=function(f){for(var g=0;g<u.length;g++)u[g].handle===f&&(u[g].cancelled=!0)}}return ky.exports=function(f){return i.call(t,f)},ky.exports.cancel=function(){o.apply(t,arguments)},ky.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=i,f.cancelAnimationFrame=o},ky.exports}var Xyt=Yyt();const C_=fg(Xyt);var _Q={},S_,FQ;function Ufe(){return FQ||(FQ=1,S_=` 1070\v\f\r  áââââââ ââââââ¯âã\u2028\u2029\uFEFF`),S_}var x_,kQ;function Zyt(){if(kQ)return x_;kQ=1;var e=mr(),t=ul(),n=yu(),r=Ufe(),i=e("".replace),o=RegExp("^["+r+"]+"),s=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(l){return function(u){var d=n(t(u));return l&1&&(d=i(d,o,"")),l&2&&(d=i(d,s,"$1")),d}};return x_={start:a(1),end:a(2),trim:a(3)},x_}var E_,LQ;function Qyt(){if(LQ)return E_;LQ=1;var e=_A().PROPER,t=pr(),n=Ufe(),r="â á ";return E_=function(i){return t(function(){return!!n[i]()||r[i]()!==r||e&&n[i].name!==i})},E_}var NQ;function Jyt(){if(NQ)return _Q;NQ=1;var e=_o(),t=Zyt().trim,n=Qyt();return e({target:"String",proto:!0,forced:n("trim")},{trim:function(){return t(this)}}),_Q}Jyt();var R_,BQ;function ebt(){return BQ||(BQ=1,R_=function(e){this.ok=!1,this.alpha=1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
10700",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3]),parseFloat(l[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,s=i.exec(e);if(s){var a=o(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var l=this.r.toString(16),u=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),d.length==1&&(d="0"+d),"#"+l+u+d},this.getHelpXML=function(){for(var l=new Array,u=0;u<n.length;u++)for(var d=n[u].example,f=0;f<d.length;f++)l[l.length]=d[f];for(var g in t)l[l.length]=g;var m=document.createElement("ul");m.setAttribute("id","rgbcolor-examples");for(var u=0;u<l.length;u++)try{var y=document.createElement("li"),b=new RGBColor(l[u]),w=document.createElement("div");w.style.cssText="margin: 3px; border: 1px solid black; background:"+b.toHex()+"; color:"+b.toHex(),w.appendChild(document.createTextNode("test"));var C=document.createTextNode(" "+l[u]+" -> "+b.toRGB()+" -> "+b.toHex());y.appendChild(w),y.appendChild(C),m.appendChild(y)}catch{}return m}}),R_}var tbt=ebt();const lL=fg(tbt);var HQ={},VQ;function nbt(){if(VQ)return HQ;VQ=1;var e=_o(),t=BA(),n=xfe().indexOf,r=jfe(),i=t([].indexOf),o=!!i&&1/i([1],1,-0)<0,s=o||!r("indexOf");return e({target:"Array",proto:!0,forced:s},{indexOf:function(l){var u=arguments.length>1?arguments[1]:void 0;return o?i(this,l,u)||0:n(this,l,u)}}),HQ}nbt();var zQ={},GQ;function rbt(){if(GQ)return zQ;GQ=1;var e=_o(),t=mr(),n=v5(),r=ul(),i=yu(),o=y5(),s=t("".indexOf);return e({target:"String",proto:!0,forced:!o("includes")},{includes:function(l){return!!~s(i(r(this)),i(n(l)),arguments.length>1?arguments[1]:void 0)}}),zQ}rbt();var jQ={},A_,UQ;
vendor: 5,029 bytes, line 1070
1070function ibt(){if(UQ)return A_;UQ=1;var e=hh();return A_=Array.isArray||function(n){return e(n)==="Array"},A_}var WQ;function obt(){if(WQ)return jQ;WQ=1;var e=_o(),t=mr(),n=ibt(),r=t([].reverse),i=[1,2];return e({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}}),jQ}obt();var Wfe=function(e,t){return(Wfe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function $fe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wfe(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function sbt(e){var t="";Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===Ie.CLOSE_PATH)t+="z";else if(r.type===Ie.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===Ie.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===Ie.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===Ie.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===Ie.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===Ie.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===Ie.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===Ie.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==Ie.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+n+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function uL(e,t){var n=e[0],r=e[1];return[n*Math.cos(t)-r*Math.sin(t),n*Math.sin(t)+r*Math.cos(t)]}function Va(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(typeof e[n]!="number")throw new Error("assertNumbers arguments["+n+"] is not a number. "+typeof e[n]+" == typeof "+e[n]);return!0}var xd=Math.PI;function T_(e,t,n){e.lArcFlag=e.lArcFlag===0?0:1,e.sweepFlag=e.sweepFlag===0?0:1;var r=e.rX,i=e.rY,o=e.x,s=e.y;r=Math.abs(e.rX),i=Math.abs(e.rY);var a=uL([(t-o)/2,(n-s)/2],-e.xRot/180*xd),l=a[0],u=a[1],d=Math.pow(l,2)/Math.pow(r,2)+Math.pow(u,2)/Math.pow(i,2);1<d&&(r*=Math.sqrt(d),i*=Math.sqrt(d)),e.rX=r,e.rY=i;var f=Math.pow(r,2)*Math.pow(u,2)+Math.pow(i,2)*Math.pow(l,2),g=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-f)/f)),m=r*u/i*g,y=-i*l/r*g,b=uL([m,y],e.xRot/180*xd);e.cX=b[0]+(t+o)/2,e.cY=b[1]+(n+s)/2,e.phi1=Math.atan2((u-y)/i,(l-m)/r),e.phi2=Math.atan2((-u-y)/i,(-l-m)/r),e.sweepFlag===0&&e.phi2>e.phi1&&(e.phi2-=2*xd),e.sweepFlag===1&&e.phi2<e.phi1&&(e.phi2+=2*xd),e.phi1*=180/xd,e.phi2*=180/xd}function $Q(e,t,n){Va(e,t,n);var r=e*e+t*t-n*n;if(0>r)return[];if(r===0)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}var Fr,Uu=Math.PI/180;function qQ(e,t,n){return(1-n)*e+n*t}function KQ(e,t,n,r){return e+Math.cos(r/180*xd)*t+Math.sin(r/180*xd)*n}function YQ(e,t,n,r){var i=1e-6,o=t-e,s=n-t,a=3*o+3*(r-n)-6*s,l=6*(s-o),u=3*o;return Math.abs(a)<i?[-u/l]:(function(d,f,g){var m=d*d/4-f;if(m<-g)return[];if(m<=g)return[-d/2];var y=Math.sqrt(m);return[-d/2-y,-d/2+y]})(l/a,u/a,i)}function XQ(e,t,n,r,i){var o=1-i;return e*(o*o*o)+t*(3*o*o*i)+n*(3*o*i*i)+r*(i*i*i)}(function(e){function t(){return i((function(a,l,u){return a.relative&&(a.x1!==void 0&&(a.x1+=l),a.y1!==void 0&&(a.y1+=u),a.x2!==void 0&&(a.x2+=l),a.y2!==void 0&&(a.y2+=u),a.x!==void 0&&(a.x+=l),a.y!==void 0&&(a.y+=u),a.relative=!1),a}))}function n(){var a=NaN,l=NaN,u=NaN,d=NaN;return i((function(f,g,m){return f.type&Ie.SMOOTH_CURVE_TO&&(f.type=Ie.CURVE_TO,a=isNaN(a)?g:a,l=isNaN(l)?m:l,f.x1=f.relative?g-a:2*g-a,f.y1=f.relative?m-l:2*m-l),f.type&Ie.CURVE_TO?(a=f.relative?g+f.x2:f.x2,l=f.relative?m+f.y2:f.y2):(a=NaN,l=NaN),f.type&Ie.SMOOTH_QUAD_TO&&(f.type=Ie.QUAD_TO,u=isNaN(u)?g:u,d=isNaN(d)?m:d,f.x1=f.relative?g-u:2*g-u,f.y1=f.relative?m-d:2*m-d),f.type&Ie.QUAD_TO?(u=f.relative?g+f.x1:f.x1,d=f.relative?m+f.y1:f.y1):(u=NaN,d=NaN),f}))}function r(){var a=NaN,l=NaN;return i((function(u,d,f){if(u.type&Ie.SMOOTH_QUAD_TO&&(u.type=Ie.QUAD_TO,a=isNaN(a)?d:a,l=isNaN(l)?f:l,u.x1=u.relative?d-a:2*d-a,u.y1=u.relative?f-l:2*f-l),u.type&Ie.QUAD_TO){a=u.relative?d+u.x1:u.x1,l=u.relative?f+u.y1:u.y1;var g=u.x1,m=u.y1;u.type=Ie.CURVE_TO,u.x1=((u.relative?0:d)+2*g)/3,u.y1=((u.relative?0:f)+2*m)/3,u.x2=(u.x+2*g)/3,u.y2=(u.y+2*m)/3}else a=NaN,l=NaN;return u}))}function i(a){var l=0,u=0,d=NaN,f=NaN;return function(g){if(isNaN(d)&&!(g.type&Ie.MOVE_TO))throw new Error("path must start with moveto");var m=a(g,l,u,d,f);return g.type&Ie.CLOSE_PATH&&(l=d,u=f),g.x!==void 0&&(l=g.relative?l+g.x:g.x),g.y!==void 0&&(u=g.relative?u+g.y:g.y),g.type&Ie.MOVE_TO&&(d=l,f=u),m}}function o(a,l,u,d,f,g){return Va(a,l,u,d,f,g),i((function(m,y,b,w
vendor: 5,839 bytes, line 1070
1070){var C=m.x1,E=m.x2,A=m.relative&&!isNaN(w),T=m.x!==void 0?m.x:A?0:y,P=m.y!==void 0?m.y:A?0:b;function O(re){return re*re}m.type&Ie.HORIZ_LINE_TO&&l!==0&&(m.type=Ie.LINE_TO,m.y=m.relative?0:b),m.type&Ie.VERT_LINE_TO&&u!==0&&(m.type=Ie.LINE_TO,m.x=m.relative?0:y),m.x!==void 0&&(m.x=m.x*a+P*u+(A?0:f)),m.y!==void 0&&(m.y=T*l+m.y*d+(A?0:g)),m.x1!==void 0&&(m.x1=m.x1*a+m.y1*u+(A?0:f)),m.y1!==void 0&&(m.y1=C*l+m.y1*d+(A?0:g)),m.x2!==void 0&&(m.x2=m.x2*a+m.y2*u+(A?0:f)),m.y2!==void 0&&(m.y2=E*l+m.y2*d+(A?0:g));var D=a*d-l*u;if(m.xRot!==void 0&&(a!==1||l!==0||u!==0||d!==1))if(D===0)delete m.rX,delete m.rY,delete m.xRot,delete m.lArcFlag,delete m.sweepFlag,m.type=Ie.LINE_TO;else{var F=m.xRot*Math.PI/180,L=Math.sin(F),N=Math.cos(F),M=1/O(m.rX),k=1/O(m.rY),B=O(N)*M+O(L)*k,j=2*L*N*(M-k),z=O(L)*M+O(N)*k,H=B*d*d-j*l*d+z*l*l,G=j*(a*d+l*u)-2*(B*u*d+z*a*l),$=B*u*u-j*a*u+z*a*a,Y=(Math.atan2(G,H-$)+Math.PI)%Math.PI/2,K=Math.sin(Y),se=Math.cos(Y);m.rX=Math.abs(D)/Math.sqrt(H*O(se)+G*K*se+$*O(K)),m.rY=Math.abs(D)/Math.sqrt(H*O(K)-G*K*se+$*O(se)),m.xRot=180*Y/Math.PI}return m.sweepFlag!==void 0&&0>D&&(m.sweepFlag=+!m.sweepFlag),m}))}function s(){return function(a){var l={};for(var u in a)l[u]=a[u];return l}}e.ROUND=function(a){function l(u){return Math.round(u*a)/a}return a===void 0&&(a=1e13),Va(a),function(u){return u.x1!==void 0&&(u.x1=l(u.x1)),u.y1!==void 0&&(u.y1=l(u.y1)),u.x2!==void 0&&(u.x2=l(u.x2)),u.y2!==void 0&&(u.y2=l(u.y2)),u.x!==void 0&&(u.x=l(u.x)),u.y!==void 0&&(u.y=l(u.y)),u.rX!==void 0&&(u.rX=l(u.rX)),u.rY!==void 0&&(u.rY=l(u.rY)),u}},e.TO_ABS=t,e.TO_REL=function(){return i((function(a,l,u){return a.relative||(a.x1!==void 0&&(a.x1-=l),a.y1!==void 0&&(a.y1-=u),a.x2!==void 0&&(a.x2-=l),a.y2!==void 0&&(a.y2-=u),a.x!==void 0&&(a.x-=l),a.y!==void 0&&(a.y-=u),a.relative=!0),a}))},e.NORMALIZE_HVZ=function(a,l,u){return a===void 0&&(a=!0),l===void 0&&(l=!0),u===void 0&&(u=!0),i((function(d,f,g,m,y){if(isNaN(m)&&!(d.type&Ie.MOVE_TO))throw new Error("path must start with moveto");return l&&d.type&Ie.HORIZ_LINE_TO&&(d.type=Ie.LINE_TO,d.y=d.relative?0:g),u&&d.type&Ie.VERT_LINE_TO&&(d.type=Ie.LINE_TO,d.x=d.relative?0:f),a&&d.type&Ie.CLOSE_PATH&&(d.type=Ie.LINE_TO,d.x=d.relative?m-f:m,d.y=d.relative?y-g:y),d.type&Ie.ARC&&(d.rX===0||d.rY===0)&&(d.type=Ie.LINE_TO,delete d.rX,delete d.rY,delete d.xRot,delete d.lArcFlag,delete d.sweepFlag),d}))},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=i,e.SANITIZE=function(a){a===void 0&&(a=0),Va(a);var l=NaN,u=NaN,d=NaN,f=NaN;return i((function(g,m,y,b,w){var C=Math.abs,E=!1,A=0,T=0;if(g.type&Ie.SMOOTH_CURVE_TO&&(A=isNaN(l)?0:m-l,T=isNaN(u)?0:y-u),g.type&(Ie.CURVE_TO|Ie.SMOOTH_CURVE_TO)?(l=g.relative?m+g.x2:g.x2,u=g.relative?y+g.y2:g.y2):(l=NaN,u=NaN),g.type&Ie.SMOOTH_QUAD_TO?(d=isNaN(d)?m:2*m-d,f=isNaN(f)?y:2*y-f):g.type&Ie.QUAD_TO?(d=g.relative?m+g.x1:g.x1,f=g.relative?y+g.y1:g.y2):(d=NaN,f=NaN),g.type&Ie.LINE_COMMANDS||g.type&Ie.ARC&&(g.rX===0||g.rY===0||!g.lArcFlag)||g.type&Ie.CURVE_TO||g.type&Ie.SMOOTH_CURVE_TO||g.type&Ie.QUAD_TO||g.type&Ie.SMOOTH_QUAD_TO){var P=g.x===void 0?0:g.relative?g.x:g.x-m,O=g.y===void 0?0:g.relative?g.y:g.y-y;A=isNaN(d)?g.x1===void 0?A:g.relative?g.x:g.x1-m:d-m,T=isNaN(f)?g.y1===void 0?T:g.relative?g.y:g.y1-y:f-y;var D=g.x2===void 0?0:g.relative?g.x:g.x2-m,F=g.y2===void 0?0:g.relative?g.y:g.y2-y;C(P)<=a&&C(O)<=a&&C(A)<=a&&C(T)<=a&&C(D)<=a&&C(F)<=a&&(E=!0)}return g.type&Ie.CLOSE_PATH&&C(m-b)<=a&&C(y-w)<=a&&(E=!0),E?[]:g}))},e.MATRIX=o,e.ROTATE=function(a,l,u){l===void 0&&(l=0),u===void 0&&(u=0),Va(a,l,u);var d=Math.sin(a),f=Math.cos(a);return o(f,d,-d,f,l-l*f+u*d,u-l*d-u*f)},e.TRANSLATE=function(a,l){return l===void 0&&(l=0),Va(a,l),o(1,0,0,1,a,l)},e.SCALE=function(a,l){return l===void 0&&(l=a),Va(a,l),o(a,0,0,l,0,0)},e.SKEW_X=function(a){return Va(a),o(1,0,Math.atan(a),1,0,0)},e.SKEW_Y=function(a){return Va(a),o(1,Math.atan(a),0,1,0,0)},e.X_AXIS_SYMMETRY=function(a){return a===void 0&&(a=0),Va(a),o(-1,0,0,1,a,0)},e.Y_AXIS_SYMMETRY=function(a){return a===void 0&&(a=0),Va(a),o(1,0,0,-1,0,a)},e.A_TO_C=function(){return i((function(a,l,u){return Ie.ARC===a.type?(function(d,f,g){var m,y,b,w;d.cX||T_(d,f,g);for(var C=Math.min(d.phi1,d.phi2),E=Math.max(d.phi1,d.phi2)-C,A=Math.ceil(E/90),T=new Array(A),P=f,O=g,D=0;D<A;D++){var F=qQ(d.phi1,d.phi2,D/A),L=qQ(d.phi1,d.phi2,(D+1)/A),N=L-F,M=4/3*Math.tan(N*Uu/4),k=[Math.cos(F*Uu)-M*Math.sin(F*Uu),Math.sin(F*Uu)+M*Math.cos(F*Uu)],B=k[0],j=k[1],z=[Math.cos(L*Uu),Math.sin(L*Uu)],H=z[0],G=z[1],$=[H+M*Math.sin(L*Uu),G-M*Math.cos(L*Uu)],Y=$[0],K=$[1];T[D]={relative:d.relative,type:Ie.CURVE_TO};var se=function(re,ue){var U=uL([re*d.rX,ue*d.rY],d.xRot),X=U[0],be=U[1];return[d.cX+X,d.cY+be]};m=se(B,j),T[D].x1=m[0],T[D].y1=m[1],y=se(Y,K),T[D].x2=y[0],T[D].y2=y[1],b=se(H,G),T[D].x=b[0],T[D].y=b[1],d.relative&&(T[D].x1-=P,T[D].y1-=O,T[D].x2-=P,T[D].y2-=O,T[D].x-=P,T[D].y-=O),P=(w=[T[D].x,T[D].y])[0],O=w[1]}return T})(a,a.relative?0:l,a.relative?0:u):a}))},e.ANNOTATE_ARCS=function(){return i((function(a,l,u){return a.relative&&(l=0,u=0),Ie.ARC===a.type&&T_(a,l,u),a}))},e.CLONE=s,e.CALCULATE_BOUNDS=function(){var a=function(g){var m={};for(var y in g)m[y]=g[y];return m},l=t(),u=r(),d=n(),f=i((function(g,m,y){var b=d(u(l(a(g))));function w(K){K>f.maxX&&(f.maxX=K),K<f.minX&&(f.minX=K)}function C(K){K>f.maxY&&(f.maxY=K),K<f.minY&&(f.minY=K)}if(b.type&Ie.DRAWING_COMMANDS&&(w(m),C(y)),b.type&Ie.HORIZ_LINE_TO&&w(b.x),b.type&Ie.VERT_LINE_TO&&C(b.y),b.type&Ie.LINE_TO&&(w(b.x),C(b.y)),b.type&Ie.CURVE_TO){w(b.x),C(b.y);for(var E=0,A=YQ(m,b.x1,b.x2,b.x);E<A.length;E++)0<(Y=A[E])&&1>Y&&w(XQ(m,b.x1,b.x2,b.x,Y));for(var T=0,P=YQ(y,b.y1,b.y2,b.y);T<P.length;T++)0<(Y=P[T])&&1>Y&&C(XQ(y,b.y1,b.y2,b.y,Y))}if(b.type&Ie.ARC){w(b.x),C(b.y),T_(b,m,y);for(var O=b.xRot/180*Math.PI,D=Math.cos(O)*b.rX,F=Math.sin(O)*b.rX,L=-Math.sin(O)*b.rY,N=Math.cos(O)*b.rY,M=b.phi1<b.phi2?[b.phi1,b.phi2]:-180>
vendor: 95,307 bytes, lines 1070-1071
1070b.phi2?[b.phi2+360,b.phi1+360]:[b.phi2,b.phi1],k=M[0],B=M[1],j=function(K){var se=K[0],re=K[1],ue=180*Math.atan2(re,se)/Math.PI;return ue<k?ue+360:ue},z=0,H=$Q(L,-D,0).map(j);z<H.length;z++)(Y=H[z])>k&&Y<B&&w(KQ(b.cX,D,L,Y));for(var G=0,$=$Q(N,-F,0).map(j);G<$.length;G++){var Y;(Y=$[G])>k&&Y<B&&C(KQ(b.cY,F,N,Y))}}return g}));return f.minX=1/0,f.maxX=-1/0,f.minY=1/0,f.maxY=-1/0,f}})(Fr||(Fr={}));var Ha,qfe=(function(){function e(){}return e.prototype.round=function(t){return this.transform(Fr.ROUND(t))},e.prototype.toAbs=function(){return this.transform(Fr.TO_ABS())},e.prototype.toRel=function(){return this.transform(Fr.TO_REL())},e.prototype.normalizeHVZ=function(t,n,r){return this.transform(Fr.NORMALIZE_HVZ(t,n,r))},e.prototype.normalizeST=function(){return this.transform(Fr.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(Fr.QT_TO_C())},e.prototype.aToC=function(){return this.transform(Fr.A_TO_C())},e.prototype.sanitize=function(t){return this.transform(Fr.SANITIZE(t))},e.prototype.translate=function(t,n){return this.transform(Fr.TRANSLATE(t,n))},e.prototype.scale=function(t,n){return this.transform(Fr.SCALE(t,n))},e.prototype.rotate=function(t,n,r){return this.transform(Fr.ROTATE(t,n,r))},e.prototype.matrix=function(t,n,r,i,o,s){return this.transform(Fr.MATRIX(t,n,r,i,o,s))},e.prototype.skewX=function(t){return this.transform(Fr.SKEW_X(t))},e.prototype.skewY=function(t){return this.transform(Fr.SKEW_Y(t))},e.prototype.xSymmetry=function(t){return this.transform(Fr.X_AXIS_SYMMETRY(t))},e.prototype.ySymmetry=function(t){return this.transform(Fr.Y_AXIS_SYMMETRY(t))},e.prototype.annotateArcs=function(){return this.transform(Fr.ANNOTATE_ARCS())},e})(),abt=function(e){return e===" "||e===" "||e==="\r"||e===` 1071`},ZQ=function(e){return 48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57},lbt=(function(e){function t(){var n=e.call(this)||this;return n.curNumber="",n.curCommandType=-1,n.curCommandRelative=!1,n.canParseCommandOrComma=!0,n.curNumberHasExp=!1,n.curNumberHasExpDigits=!1,n.curNumberHasDecimal=!1,n.curArgs=[],n}return $fe(t,e),t.prototype.finish=function(n){if(n===void 0&&(n=[]),this.parse(" ",n),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return n},t.prototype.parse=function(n,r){var i=this;r===void 0&&(r=[]);for(var o=function(f){r.push(f),i.curArgs.length=0,i.canParseCommandOrComma=!0},s=0;s<n.length;s++){var a=n[s],l=!(this.curCommandType!==Ie.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),u=ZQ(a)&&(this.curNumber==="0"&&a==="0"||l);if(!ZQ(a)||u)if(a!=="e"&&a!=="E")if(a!=="-"&&a!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(a!=="."||this.curNumberHasExp||this.curNumberHasDecimal||l){if(this.curNumber&&this.curCommandType!==-1){var d=Number(this.curNumber);if(isNaN(d))throw new SyntaxError("Invalid number ending at "+s);if(this.curCommandType===Ie.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>d)throw new SyntaxError('Expected positive number, got "'+d+'" at index "'+s+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+s+'"')}this.curArgs.push(d),this.curArgs.length===ubt[this.curCommandType]&&(Ie.HORIZ_LINE_TO===this.curCommandType?o({type:Ie.HORIZ_LINE_TO,relative:this.curCommandRelative,x:d}):Ie.VERT_LINE_TO===this.curCommandType?o({type:Ie.VERT_LINE_TO,relative:this.curCommandRelative,y:d}):this.curCommandType===Ie.MOVE_TO||this.curCommandType===Ie.LINE_TO||this.curCommandType===Ie.SMOOTH_QUAD_TO?(o({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Ie.MOVE_TO===this.curCommandType&&(this.curCommandType=Ie.LINE_TO)):this.curCommandType===Ie.CURVE_TO?o({type:Ie.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Ie.SMOOTH_CURVE_TO?o({type:Ie.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Ie.QUAD_TO?o({type:Ie.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Ie.ARC&&o({type:Ie.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!abt(a))if(a===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!=="+"&&a!=="-"&&a!==".")if(u)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+s+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+s+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,a!=="z"&&a!=="Z")if(a==="h"||a==="H")this.curCommandType=Ie.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=Ie.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=Ie.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=Ie.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=Ie.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=Ie.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=Ie.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=Ie.SMOOTH_QUAD_TO,this.curCommandRelative=a==="t";else{if(a!=="a"&&a!=="A")throw new SyntaxError('Unexpected character "'+a+'" at index '+s+".");this.curCommandType=Ie.ARC,this.curCommandRelative=a==="a"}else r.push({type:Ie.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal=a==="."}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return r},t.prototype.transform=function(n){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var o=0,s=Object.getPrototypeOf(this).parse.call(this,r);o<s.length;o++){var a=s[o],l=n(a);Array.isArray(l)?i.push.apply(i,l):i.push(l)}return i}}})},t})(qfe),Ie=(function(e){function t(n){var r=e.call(this)||this;return r.commands=typeof n=="string"?t.parse(n):n,r}return $fe(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var n=Fr.CALCULATE_BOUNDS();return this.transform(n),n},t.prototype.transform=function(n){for(var r=[],i=0,o=this.commands;i<o.length;i++){var s=n(o[i]);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return this.commands=r,this},t.encode=function(n){return sbt(n)},t.parse=function(n){var r=new lbt,i=[];return r.parse(n,i),r.finish(i),i},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t})(qfe),ubt=((Ha={})[Ie.MOVE_TO]=2,Ha[Ie.LINE_TO]=2,Ha[Ie.HORIZ_LINE_TO]=1,Ha[Ie.VERT_LINE_TO]=1,Ha[Ie.CLOSE_PATH]=0,Ha[Ie.QUAD_TO]=4,Ha[Ie.SMOOTH_QUAD_TO]=2,Ha[Ie.CURVE_TO]=6,Ha[Ie.SMOOTH_CURVE_TO]=4,Ha[Ie.ARC]=7,Ha),QQ={},JQ;function cbt(){if(JQ)return QQ;JQ=1;var e=_A().PROPER,t=kg(),n=Io(),r=yu(),i=pr(),o=zA(),s="toString",a=RegExp.prototype,l=a[s],u=i(function(){return l.call({source:"a",flags:"b"})!=="/a/b"}),d=e&&l.name!==s;return(u||d)&&t(a,s,function(){var g=n(this),m=r(g.source),y=r(o(g));return"/"+m+"/"+y},{unsafe:!0}),QQ}cbt();function C1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C1=function(t){return typeof t}:C1=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C1(e)}function dbt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var hbt=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],fbt=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function gbt(e,t,n,r,i){if(typeof e=="string"&&(e=document.getElementById(e)),!e||C1(e)!=="object"||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=e.getContext("2d");try{return o.getImageData(t,n,r,i)}catch(s){throw new Error("unable to access image data: "+s)}}function pbt(e,t,n,r,i,o){if(!(isNaN(o)||o<1)){o|=0;var s=gbt(e,t,n,r,i);s=mbt(s,t,n,r,i,o),e.getContext("2d").putImageData(s,t,n)}}function mbt(e,t,n,r,i,o){for(var s=e.data,a=2*o+1,l=r-1,u=i-1,d=o+1,f=d*(d+1)/2,g=new eJ,m=g,y,b=1;b<a;b++)m=m.next=new eJ,b===d&&(y=m);m.next=g;for(var w=null,C=null,E=0,A=0,T=hbt[o],P=fbt[o],O=0;O<i;O++){m=g;for(var D=s[A],F=s[A+1],L=s[A+2],N=s[A+3],M=0;M<d;M++)m.r=D,m.g=F,m.b=L,m.a=N,m=m.next;for(var k=0,B=0,j=0,z=0,H=d*D,G=d*F,$=d*L,Y=d*N,K=f*D,se=f*F,re=f*L,ue=f*N,U=1;U<d;U++){var X=A+((l<U?l:U)<<2),be=s[X],me=s[X+1],Oe=s[X+2],ge=s[X+3],ve=d-U;K+=(m.r=be)*ve,se+=(m.g=me)*ve,re+=(m.b=Oe)*ve,ue+=(m.a=ge)*ve,k+=be,B+=me,j+=Oe,z+=ge,m=m.next}w=g,C=y;for(var de=0;de<r;de++){var J=ue*T>>>P;if(s[A+3]=J,J!==0){var Fe=255/J;s[A]=(K*T>>>P)*Fe,s[A+1]=(se*T>>>P)*Fe,s[A+2]=(re*T>>>P)*Fe}else s[A]=s[A+1]=s[A+2]=0;K-=H,se-=G,re-=$,ue-=Y,H-=w.r,G-=w.g,$-=w.b,Y-=w.a;var ke=de+o+1;ke=E+(ke<l?ke:l)<<2,k+=w.r=s[ke],B+=w.g=s[ke+1],j+=w.b=s[ke+2],z+=w.a=s[ke+3],K+=k,se+=B,re+=j,ue+=z,w=w.next;var Te=C,dt=Te.r,Ne=Te.g,xe=Te.b,We=Te.a;H+=dt,G+=Ne,$+=xe,Y+=We,k-=dt,B-=Ne,j-=xe,z-=We,C=C.next,A+=4}E+=r}for(var rt=0;rt<r;rt++){A=rt<<2;var Ke=s[A],Be=s[A+1],pt=s[A+2],Ee=s[A+3],Ze=d*Ke,st=d*Be,tt=d*pt,qe=d*Ee,mt=f*Ke,$t=f*Be,_n=f*pt,Yn=f*Ee;m=g;for(var Bi=0;Bi<d;Bi++)m.r=Ke,m.g=Be,m.b=pt,m.a=Ee,m=m.next;for(var sr=r,yr=0,yi=0,ho=0,Hi=0,jt=1;jt<=o;jt++){A=sr+rt<<2;var bi=d-jt;mt+=(m.r=Ke=s[A])*bi,$t+=(m.g=Be=s[A+1])*bi,_n+=(m.b=pt=s[A+2])*bi,Yn+=(m.a=Ee=s[A+3])*bi,Hi+=Ke,yr+=Be,yi+=pt,ho+=Ee,m=m.next,jt<u&&(sr+=r)}A=rt,w=g,C=y;for(var Vi=0;Vi<i;Vi++){var qt=A<<2;s[qt+3]=Ee=Yn*T>>>P,Ee>0?(Ee=255/Ee,s[qt]=(mt*T>>>P)*Ee,s[qt+1]=($t*T>>>P)*Ee,s[qt+2]=(_n*T>>>P)*Ee):s[qt]=s[qt+1]=s[qt+2]=0,mt-=Ze,$t-=st,_n-=tt,Yn-=qe,Ze-=w.r,st-=w.g,tt-=w.b,qe-=w.a,qt=rt+((qt=Vi+d)<u?qt:u)*r<<2,mt+=Hi+=w.r=s[qt],$t+=yr+=w.g=s[qt+1],_n+=yi+=w.b=s[qt+2],Yn+=ho+=w.a=s[qt+3],w=w.next,Ze+=Ke=C.r,st+=Be=C.g,tt+=pt=C.b,qe+=Ee=C.a,Hi-=Ke,yr-=Be,yi-=pt,ho-=Ee,C=C.next,A+=r}}return e}var eJ=function e(){dbt(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function vbt(){var{DOMParser:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(n,r){return new OffscreenCanvas(n,r)},createImage(n){return Sc(function*(){var r=yield fetch(n),i=yield r.blob(),o=yield createImageBitmap(i);return o})()}};return(typeof DOMParser<"u"||typeof e>"u")&&Reflect.deleteProperty(t,"DOMParser"),t}function ybt(e){var{DOMParser:t,canvas:n,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}var bbt=Object.freeze({__proto__:null,offscreen:vbt,node:ybt});function Lg(e){return e.replace(/(?!\u3000)\s+/gm," ")}function Kfe(e){return e.replace(/^[\n \t]+/,"")}function Yfe(e){return e.replace(/[\n \t]+$/,"")}function Qo(e){var t=(e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}var wbt=/^[A-Z-]+$/;function Xfe(e){return wbt.test(e)?e.toLowerCase():e}function w5(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function Zfe(e){if(!e.startsWith("rgb"))return e;var t=3,n=e.replace(/\d+(\.\d+)?/g,(r,i)=>t--&&i?String(Math.round(parseFloat(r))):r);return n}var Cbt=/(\[[^\]]+\])/g,Sbt=/(#[^\s+>~.[:]+)/g,xbt=/(\.[^\s+>~.[:]+)/g,Ebt=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Rbt=/(:[\w-]+\([^)]*\))/gi,Abt=/(:[^\s+>~.[:]+)/g,Tbt=/([^\s+>~.[:]+)/g;function Xh(e,t){var n=t.exec(e);return n?[e.replace(t," "),n.length]:[e,0]}function Qfe(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[n,r]=Xh(n,Cbt),t[1]+=r,[n,r]=Xh(n,Sbt),t[0]+=r,[n,r]=Xh(n,xbt),t[1]+=r,[n,r]=Xh(n,Ebt),t[2]+=r,[n,r]=Xh(n,Rbt),t[1]+=r,[n,r]=Xh(n,Abt),t[1]+=r,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[n,r]=Xh(n,Tbt),t[2]+=r,t.join("")}var kf=1e-8;function cL(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function RE(e,t){return(e[0]*t[0]+e[1]*t[1])/(cL(e)*cL(t))}function dL(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(RE(e,t))}function hL(e){return e*e*e}function fL(e){return 3*e*e*(1-e)}function gL(e){return 3*e*(1-e)*(1-e)}function pL(e){return(1-e)*(1-e)*(1-e)}function mL(e){return e*e}function vL(e){return 2*e*(1-e)}function yL(e){return(1-e)*(1-e)}class ct{constructor(t,n,r){this.document=t,this.name=n,this.value=r,this.isNormalizedColor=!1}static empty(t){return new ct(t,"EMPTY","")}split(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:n,name:r}=this;return Lg(this.getString()).trim().split(t).map(i=>new ct(n,r,i))}hasValue(t){var{value:n}=this;return n!==null&&n!==""&&(t||n!==0)&&typeof n<"u"}isString(t){var{value:n}=this,r=typeof n=="string";return!r||!t?r:t.test(n)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return typeof t>"u"||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return typeof t>"u"?0:parseFloat(t);var{value:n}=this,r=parseFloat(n);return this.isString(/%$/)&&(r/=100),r}getString(t){return typeof t>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(t)}getColor(t){var n=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,n=Zfe(n),this.value=n),n}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof t=="boolean"?[void 0,t]:[t],{viewPort:o}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(r);default:{var s=this.getNumber();return n&&s<1?s*o.computeSize(r):s}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),n=/#([^)'"]+)/.exec(t);return n&&(n=n[1]),n||(n=t),this.document.definitions[n]}getFillStyleDefinition(t,n){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,t,n);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,t,n)}return null}getTextBaseline(){return this.hasValue()?ct.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var n=this.getColor(),r=n.length,i=0,o=0;o<r&&(n[o]===","&&i++,i!==3);o++);if(t.hasValue()&&this.isString()&&i!==3){var s=new lL(n);s.ok&&(s.alpha=t.getNumber(),n=s.toRGBA())}return new ct(this.document,this.name,n)}}ct.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class Jfe{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,n){this.viewPorts.push({width:t,height:n})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return typeof t=="number"?t:t==="x"?this.width:t==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class fr{constructor(t,n){this.x=t,this.y=n}static parse(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=n,i=n]=Qo(t);return new fr(r,i)}static parseScale(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=n,i=r]=Qo(t);return new fr(r,i)}static parsePath(t){for(var n=Qo(t),r=n.length,i=[],o=0;o<r;o+=2)i.push(new fr(n[o],n[o+1]));return i}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:n,y:r}=this,i=n*t[0]+r*t[2]+t[4],o=n*t[1]+r*t[3]+t[5];this.x=i,this.y=o}}class ege{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:n,onMouseMove:r}=this,i=t.ctx.canvas;i.onclick=n,i.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:n,eventElements:r}=this,{style:i}=t.ctx.canvas;i&&(i.cursor=""),n.forEach((o,s)=>{for(var{run:a}=o,l=r[s];l;)a(l),l=l.parent}),this.events=[],this.eventElements=[]}}checkPath(t,n){if(!(!this.working||!n)){var{events:r,eventElements:i}=this;r.forEach((o,s)=>{var{x:a,y:l}=o;!i[s]&&n.isPointInPath&&n.isPointInPath(a,l)&&(i[s]=t)})}}checkBoundingBox(t,n){if(!(!this.working||!n)){var{events:r,eventElements:i}=this;r.forEach((o,s)=>{var{x:a,y:l}=o;!i[s]&&n.isPointInBox(a,l)&&(i[s]=t)})}}mapXY(t,n){for(var{window:r,ctx:i}=this.screen,o=new fr(t,n),s=i.canvas;s;)o.x-=s.offsetLeft,o.y-=s.offsetTop,s=s.offsetParent;return r.scrollX&&(o.x+=r.scrollX),r.scrollY&&(o.y+=r.scrollY),o}onClick(t){var{x:n,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:n,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(t){var{x:n,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:n,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var tge=typeof window<"u"?window:null,nge=typeof fetch<"u"?fetch.bind(void 0):null;class yC{constructor(t){var{fetch:n=nge,window:r=tge}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Jfe,this.mouse=new ege(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=n}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(n=>n());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:n,ctx:r,aspectRatio:i,width:o,desiredWidth:s,height:a,desiredHeight:l,minX:u=0,minY:d=0,refX:f,refY:g,clip:m=!1,clipX:y=0,clipY:b=0}=t,w=Lg(i).replace(/^defer\s/,""),[C,E]=w.split(" "),A=C||"xMidYMid",T=E||"meet",P=o/s,O=a/l,D=Math.min(P,O),F=Math.max(P,O),L=s,N=l;T==="meet"&&(L*=D,N*=D),T==="slice"&&(L*=F,N*=F);var M=new ct(n,"refX",f),k=new ct(n,"refY",g),B=M.hasValue()&&k.hasValue();if(B&&r.translate(-D*M.getPixels("x"),-D*k.getPixels("y")),m){var j=D*y,z=D*b;r.beginPath(),r.moveTo(j,z),r.lineTo(o,z),r.lineTo(o,a),r.lineTo(j,a),r.closePath(),r.clip()}if(!B){var H=T==="meet"&&D===O,G=T==="slice"&&F===O,$=T==="meet"&&D===P,Y=T==="slice"&&F===P;A.startsWith("xMid")&&(H||G)&&r.translate(o/2-L/2,0),A.endsWith("YMid")&&($||Y)&&r.translate(0,a/2-N/2),A.startsWith("xMax")&&(H||G)&&r.translate(o-L,0),A.endsWith("YMax")&&($||Y)&&r.translate(0,a-N)}switch(!0){case A==="none":r.scale(P,O);break;case T==="meet":r.scale(D,D);break;case T==="slice":r.scale(F,F);break}r.translate(-u,-d)}start(t){var{enableRedraw:n=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:a,scaleWidth:l,scaleHeight:u,offsetX:d,offsetY:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:g,mouse:m}=this,y=1e3/g;if(this.frameDuration=y,this.readyPromise=new Promise(A=>{this.resolveReady=A}),this.isReady()&&this.render(t,o,s,l,u,d,f),!!n){var b=Date.now(),w=b,C=0,E=()=>{b=Date.now(),C=b-w,C>=y&&(w=b-C%y,this.shouldUpdate(i,a)&&(this.render(t,o,s,l,u,d,f),m.runEvents())),this.intervalId=C_(E)};r||m.start(),this.intervalId=C_(E)}}stop(){this.intervalId&&(C_.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,n){if(!t){var{frameDuration:r}=this,i=this.animations.reduce((o,s)=>s.update(r)||o,!1);if(i)return!0}return!!(typeof n=="function"&&n()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(t,n,r,i,o,s,a){var{CLIENT_WIDTH:l,CLIENT_HEIGHT:u,viewPort:d,ctx:f,isFirstRender:g}=this,m=f.canvas;d.clear(),m.width&&m.height?d.setCurrent(m.width,m.height):d.setCurrent(l,u);var y=t.getStyle("width"),b=t.getStyle("height");!n&&(g||typeof i!="number"&&typeof o!="number")&&(y.hasValue()&&(m.width=y.getPixels("x"),m.style&&(m.style.width="".concat(m.width,"px"))),b.hasValue()&&(m.height=b.getPixels("y"),m.style&&(m.style.height="".concat(m.height,"px"))));var w=m.clientWidth||m.width,C=m.clientHeight||m.height;if(n&&y.hasValue()&&b.hasValue()&&(w=y.getPixels("x"),C=b.getPixels("y")),d.setCurrent(w,C),typeof s=="number"&&t.getAttribute("x",!0).setValue(s),typeof a=="number"&&t.getAttribute("y",!0).setValue(a),typeof i=="number"||typeof o=="number"){var E=Qo(t.getAttribute("viewBox").getString()),A=0,T=0;if(typeof i=="number"){var P=t.getStyle("width");P.hasValue()?A=P.getPixels("x")/i:isNaN(E[2])||(A=E[2]/i)}if(typeof o=="number"){var O=t.getStyle("height");O.hasValue()?T=O.getPixels("y")/o:isNaN(E[3])||(T=E[3]/o)}A||(A=T),T||(T=A),t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(o);var D=t.getStyle("transform",!0,!0);D.setValue("".concat(D.getString()," scale(").concat(1/A,", ").concat(1/T,")"))}r||f.clearRect(0,0,w,C),t.render(f),g&&(this.isFirstRender=!1)}}yC.defaultWindow=tge;yC.defaultFetch=nge;var{defaultFetch:Pbt}=yC,Obt=typeof DOMParser<"u"?DOMParser:null;class S1{constructor(){var{fetch:t=Pbt,DOMParser:n=Obt}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=t,this.DOMParser=n}parse(t){var n=this;return Sc(function*(){return t.startsWith("<")?n.parseFromString(t):n.load(t)})()}parseFromString(t){var n=new this.DOMParser;try{return this.checkDocument(n.parseFromString(t,"image/svg+xml"))}catch{return this.checkDocument(n.parseFromString(t,"text/xml"))}}checkDocument(t){var n=t.getElementsByTagName("parsererror")[0];if(n)throw new Error(n.textContent);return t}load(t){var n=this;return Sc(function*(){var r=yield n.fetch(t),i=yield r.text();return n.parseFromString(i)})()}}class rge{constructor(t,n){this.type="translate",this.point=null,this.point=fr.parse(n)}apply(t){var{x:n,y:r}=this.point;t.translate(n||0,r||0)}unapply(t){var{x:n,y:r}=this.point;t.translate(-1*n||0,-1*r||0)}applyToPoint(t){var{x:n,y:r}=this.point;t.applyTransform([1,0,0,1,n||0,r||0])}}class ige{constructor(t,n,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=Qo(n);this.angle=new ct(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(t){var{cx:n,cy:r,originX:i,originY:o,angle:s}=this,a=n+i.getPixels("x"),l=r+o.getPixels("y");t.translate(a,l),t.rotate(s.getRadians()),t.translate(-a,-l)}unapply(t){var{cx:n,cy:r,originX:i,originY:o,angle:s}=this,a=n+i.getPixels("x"),l=r+o.getPixels("y");t.translate(a,l),t.rotate(-1*s.getRadians()),t.translate(-a,-l)}applyToPoint(t){var{cx:n,cy:r,angle:i}=this,o=i.getRadians();t.applyTransform([1,0,0,1,n||0,r||0]),t.applyTransform([Math.cos(o),Math.sin(o),-Math.sin(o),Math.cos(o),0,0]),t.applyTransform([1,0,0,1,-n||0,-r||0])}}class oge{constructor(t,n,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=fr.parseScale(n);(i.x===0||i.y===0)&&(i.x=kf,i.y=kf),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:n,y:r},originX:i,originY:o}=this,s=i.getPixels("x"),a=o.getPixels("y");t.translate(s,a),t.scale(n,r||n),t.translate(-s,-a)}unapply(t){var{scale:{x:n,y:r},originX:i,originY:o}=this,s=i.getPixels("x"),a=o.getPixels("y");t.translate(s,a),t.scale(1/n,1/r||n),t.translate(-s,-a)}applyToPoint(t){var{x:n,y:r}=this.scale;t.applyTransform([n||0,0,0,r||0,0,0])}}class C5{constructor(t,n,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Qo(n),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:n,originY:r,matrix:i}=this,o=n.getPixels("x"),s=r.getPixels("y");t.translate(o,s),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-o,-s)}unapply(t){var{originX:n,originY:r,matrix:i}=this,o=i[0],s=i[2],a=i[4],l=i[1],u=i[3],d=i[5],f=0,g=0,m=1,y=1/(o*(u*m-d*g)-s*(l*m-d*f)+a*(l*g-u*f)),b=n.getPixels("x"),w=r.getPixels("y");t.translate(b,w),t.transform(y*(u*m-d*g),y*(d*f-l*m),y*(a*g-s*m),y*(o*m-a*f),y*(s*d-a*u),y*(a*l-o*d)),t.translate(-b,-w)}applyToPoint(t){t.applyTransform(this.matrix)}}class S5 extends C5{constructor(t,n,r){super(t,n,r),this.type="skew",this.angle=null,this.angle=new ct(t,"angle",n)}}class sge extends S5{constructor(t,n,r){super(t,n,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class age extends S5{constructor(t,n,r){super(t,n,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function Dbt(e){return Lg(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Mbt(e){var[t,n]=e.split("(");return[t.trim(),n.trim().replace(")","")]}class eh{constructor(t,n,r){this.document=t,this.transforms=[];var i=Dbt(n);i.forEach(o=>{if(o!=="none"){var[s,a]=Mbt(o),l=eh.transformTypes[s];typeof l<"u"&&this.transforms.push(new l(this.document,a,r))}})}static fromElement(t,n){var r=n.getStyle("transform",!1,!0),[i,o=i]=n.getStyle("transform-origin",!1,!0).split(),s=[i,o];return r.hasValue()?new eh(t,r.getString(),s):null}apply(t){for(var{transforms:n}=this,r=n.length,i=0;i<r;i++)n[i].apply(t)}unapply(t){for(var{transforms:n}=this,r=n.length,i=r-1;i>=0;i--)n[i].unapply(t)}applyToPoint(t){for(var{transforms:n}=this,r=n.length,i=0;i<r;i++)n[i].applyToPoint(t)}}eh.transformTypes={translate:rge,rotate:ige,scale:oge,matrix:C5,skewX:sge,skewY:age};let or=class bL{constructor(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=t,this.node=n,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!n||n.nodeType!==1)){if(Array.from(n.attributes).forEach(a=>{var l=Xfe(a.nodeName);this.attributes[l]=new ct(t,l,a.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(a=>a.trim());i.forEach(a=>{if(a){var[l,u]=a.split(":").map(d=>d.trim());this.styles[l]=new ct(t,l,u)}})}var{definitions:o}=t,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(n.childNodes).forEach(a=>{if(a.nodeType===1)this.addChild(a);else if(r&&(a.nodeType===3||a.nodeType===4)){var l=t.createTextNode(a);l.getText().length>0&&this.addChild(l)}})}}getAttribute(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[t];if(!r&&n){var i=new ct(this.document,t,"");return this.attributes[t]=i,i}return r||ct.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if(t==="href"||t.endsWith(":href"))return this.attributes[t];return ct.empty(this.document)}getStyle(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[t];if(i)return i;var o=this.getAttribute(t);if(o!=null&&o.hasValue())return this.styles[t]=o,o;if(!r){var{parent:s}=this;if(s){var a=s.getStyle(t);if(a!=null&&a.hasValue())return a}}if(n){var l=new ct(this.document,t,"");return this.styles[t]=l,l}return i||ct.empty(this.document)}render(t){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(t.save(),this.getStyle("mask").hasValue()){var n=this.getStyle("mask").getDefinition();n&&(this.applyEffects(t),n.apply(t,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var n=eh.fromElement(this.document,this);n&&n.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(n=>{n.render(t)})}addChild(t){var n=t instanceof bL?t:this.document.createElement(t);n.parent=this,bL.ignoreChildTypes.includes(n.type)||this.children.push(n)}matchesSelector(t){var n,{node:r}=this;if(typeof r.matches=="function")return r.matches(t);var i=(n=r.getAttribute)===null||n===void 0?void 0:n.call(r,"class");return!i||i===""?!1:i.split(" ").some(o=>".".concat(o)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:n}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=t[r],o=n[r];if(i)for(var s in i){var a=this.stylesSpecificity[s];typeof a>"u"&&(a="000"),o>=a&&(this.styles[s]=i[s],this.stylesSpecificity[s]=o)}}}removeStyles(t,n){var r=n.reduce((i,o)=>{var s=t.getStyle(o);if(!s.hasValue())return i;var a=s.getString();return s.setValue(""),[...i,[o,a]]},[]);return r}restoreStyles(t,n){n.forEach(r=>{var[i,o]=r;t.getStyle(i,!0).setValue(o)})}isFirstChild(){var t;return((t=this.parent)===null||t===void 0?void 0:t.children.indexOf(this))===0}};or.ignoreChildTypes=["title"];class lge extends or{constructor(t,n,r){super(t,n,r)}}function Ibt(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function _bt(e){return typeof process>"u"?e:e.trim().split(",").map(Ibt).join(",")}function Fbt(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function kbt(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class eo{constructor(t,n,r,i,o,s){var a=s?typeof s=="string"?eo.parse(s):s:{};this.fontFamily=o||a.fontFamily,this.fontSize=i||a.fontSize,this.fontStyle=t||a.fontStyle,this.fontWeight=r||a.fontWeight,this.fontVariant=n||a.fontVariant}static parse(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r="",i="",o="",s="",a="",l=Lg(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(d=>{switch(!0){case(!u.fontStyle&&eo.styles.includes(d)):d!=="inherit"&&(r=d),u.fontStyle=!0;break;case(!u.fontVariant&&eo.variants.includes(d)):d!=="inherit"&&(i=d),u.fontStyle=!0,u.fontVariant=!0;break;case(!u.fontWeight&&eo.weights.includes(d)):d!=="inherit"&&(o=d),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:d!=="inherit"&&([s]=d.split("/")),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:d!=="inherit"&&(a+=d)}}),new eo(r,i,o,s,a,n)}toString(){return[Fbt(this.fontStyle),this.fontVariant,kbt(this.fontWeight),this.fontSize,_bt(this.fontFamily)].join(" ").trim()}}eo.styles="normal|italic|oblique|inherit";eo.variants="normal|small-caps|inherit";eo.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Ea{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=t,this.y1=n,this.x2=r,this.y2=i,this.addPoint(t,n),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,n){typeof t<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),typeof n<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=n,this.y2=n),n<this.y1&&(this.y1=n),n>this.y2&&(this.y2=n))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:n,y1:r,x2:i,y2:o}=t;this.addPoint(n,r),this.addPoint(i,o)}}sumCubic(t,n,r,i,o){return Math.pow(1-t,3)*n+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*o}bezierCurveAdd(t,n,r,i,o){var s=6*n-12*r+6*i,a=-3*n+9*r-9*i+3*o,l=3*r-3*n;if(a===0){if(s===0)return;var u=-l/s;0<u&&u<1&&(t?this.addX(this.sumCubic(u,n,r,i,o)):this.addY(this.sumCubic(u,n,r,i,o)));return}var d=Math.pow(s,2)-4*l*a;if(!(d<0)){var f=(-s+Math.sqrt(d))/(2*a);0<f&&f<1&&(t?this.addX(this.sumCubic(f,n,r,i,o)):this.addY(this.sumCubic(f,n,r,i,o)));var g=(-s-Math.sqrt(d))/(2*a);0<g&&g<1&&(t?this.addX(this.sumCubic(g,n,r,i,o)):this.addY(this.sumCubic(g,n,r,i,o)))}}addBezierCurve(t,n,r,i,o,s,a,l){this.addPoint(t,n),this.addPoint(a,l),this.bezierCurveAdd(!0,t,r,o,a),this.bezierCurveAdd(!1,n,i,s,l)}addQuadraticCurve(t,n,r,i,o,s){var a=t+.6666666666666666*(r-t),l=n+2/3*(i-n),u=a+1/3*(o-t),d=l+1/3*(s-n);this.addBezierCurve(t,n,a,u,l,d,o,s)}isPointInBox(t,n){var{x1:r,y1:i,x2:o,y2:s}=this;return r<=t&&t<=o&&i<=n&&n<=s}}class Ct extends Ie{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new fr(0,0),this.control=new fr(0,0),this.current=new fr(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:n}=this;return t>=n.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new fr(this.command[t],this.command[n]);return this.makeAbsolute(r)}getAsControlPoint(t,n){var r=this.getPoint(t,n);return this.control=r,r}getAsCurrentPoint(t,n){var r=this.getPoint(t,n);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==Ie.CURVE_TO&&t!==Ie.SMOOTH_CURVE_TO&&t!==Ie.QUAD_TO&&t!==Ie.SMOOTH_QUAD_TO)return this.current;var{current:{x:n,y:r},control:{x:i,y:o}}=this,s=new fr(2*n-i,2*r-o);return s}makeAbsolute(t){if(this.command.relative){var{x:n,y:r}=this.current;t.x+=n,t.y+=r}return t}addMarker(t,n,r){var{points:i,angles:o}=this;r&&o.length>0&&!o[o.length-1]&&(o[o.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(t,n?n.angleTo(t):null)}addMarkerAngle(t,n){this.points.push(t),this.angles.push(n)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,n=t.length,r=0;r<n;r++)if(!t[r]){for(var i=r+1;i<n;i++)if(t[i]){t[r]=t[i];break}}return t}}class ph extends or{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,n=this;n;){var r=n.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),n=n.parent}return t}setContext(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!n){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),o=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,i);a&&(t.fillStyle=a)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var l=r.getColor();l!=="inherit"&&(t.fillStyle=l==="none"?"rgba(0,0,0,0)":l)}if(i.hasValue()){var u=new ct(this.document,"fill",t.fillStyle).addOpacity(i).getColor();t.fillStyle=u}if(o.isUrlDefinition()){var d=o.getFillStyleDefinition(this,s);d&&(t.strokeStyle=d)}else if(o.hasValue()){o.getString()==="currentColor"&&o.setValue(this.getStyle("color").getColor());var f=o.getString();f!=="inherit"&&(t.strokeStyle=f==="none"?"rgba(0,0,0,0)":f)}if(s.hasValue()){var g=new ct(this.document,"stroke",t.strokeStyle).addOpacity(s).getString();t.strokeStyle=g}var m=this.getStyle("stroke-width");if(m.hasValue()){var y=m.getPixels();t.lineWidth=y||kf}var b=this.getStyle("stroke-linecap"),w=this.getStyle("stroke-linejoin"),C=this.getStyle("stroke-miterlimit"),E=this.getStyle("stroke-dasharray"),A=this.getStyle("stroke-dashoffset");if(b.hasValue()&&(t.lineCap=b.getString()),w.hasValue()&&(t.lineJoin=w.getString()),C.hasValue()&&(t.miterLimit=C.getNumber()),E.hasValue()&&E.getString()!=="none"){var T=Qo(E.getString());typeof t.setLineDash<"u"?t.setLineDash(T):typeof t.webkitLineDash<"u"?t.webkitLineDash=T:typeof t.mozDash<"u"&&!(T.length===1&&T[0]===0)&&(t.mozDash=T);var P=A.getPixels();typeof t.lineDashOffset<"u"?t.lineDashOffset=P:typeof t.webkitLineDashOffset<"u"?t.webkitLineDashOffset=P:typeof t.mozDashOffset<"u"&&(t.mozDashOffset=P)}}if(this.modifiedEmSizeStack=!1,typeof t.font<"u"){var O=this.getStyle("font"),D=this.getStyle("font-style"),F=this.getStyle("font-variant"),L=this.getStyle("font-weight"),N=this.getStyle("font-size"),M=this.getStyle("font-family"),k=new eo(D.getString(),F.getString(),L.getString(),N.hasValue()?"".concat(N.getPixels(!0),"px"):"",M.getString(),eo.parse(O.getString(),t.font));D.setValue(k.fontStyle),F.setValue(k.fontVariant),L.setValue(k.fontWeight),N.setValue(k.fontSize),M.setValue(k.fontFamily),t.font=k.toString(),N.isPixels()&&(this.document.emSize=N.getPixels(),this.modifiedEmSizeStack=!0)}n||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class nn extends ph{constructor(t,n,r){super(t,n,r),this.type="path",this.pathParser=null,this.pathParser=new Ct(this.getAttribute("d").getString())}path(t){var{pathParser:n}=this,r=new Ea;for(n.reset(),t&&t.beginPath();!n.isEnd();)switch(n.next().type){case Ct.MOVE_TO:this.pathM(t,r);break;case Ct.LINE_TO:this.pathL(t,r);break;case Ct.HORIZ_LINE_TO:this.pathH(t,r);break;case Ct.VERT_LINE_TO:this.pathV(t,r);break;case Ct.CURVE_TO:this.pathC(t,r);break;case Ct.SMOOTH_CURVE_TO:this.pathS(t,r);break;case Ct.QUAD_TO:this.pathQ(t,r);break;case Ct.SMOOTH_QUAD_TO:this.pathT(t,r);break;case Ct.ARC:this.pathA(t,r);break;case Ct.CLOSE_PATH:this.pathZ(t,r);break}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,n=t.getMarkerPoints(),r=t.getMarkerAngles(),i=n.map((o,s)=>[o,r[s]]);return i}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var n=this.getStyle("fill-rule");t.fillStyle!==""&&(n.getString("inherit")!=="inherit"?t.fill(n.getString()):t.fill()),t.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var i=r.length-1,o=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(o.isUrlDefinition()){var l=o.getDefinition(),[u,d]=r[0];l.render(t,u,d)}if(s.isUrlDefinition())for(var f=s.getDefinition(),g=1;g<i;g++){var[m,y]=r[g];f.render(t,m,y)}if(a.isUrlDefinition()){var b=a.getDefinition(),[w,C]=r[i];b.render(t,w,C)}}}static pathM(t){var n=t.getAsCurrentPoint();return t.start=t.current,{point:n}}pathM(t,n){var{pathParser:r}=this,{point:i}=nn.pathM(r),{x:o,y:s}=i;r.addMarker(i),n.addPoint(o,s),t&&t.moveTo(o,s)}static pathL(t){var{current:n}=t,r=t.getAsCurrentPoint();return{current:n,point:r}}pathL(t,n){var{pathParser:r}=this,{current:i,point:o}=nn.pathL(r),{x:s,y:a}=o;r.addMarker(o,i),n.addPoint(s,a),t&&t.lineTo(s,a)}static pathH(t){var{current:n,command:r}=t,i=new fr((r.relative?n.x:0)+r.x,n.y);return t.current=i,{current:n,point:i}}pathH(t,n){var{pathParser:r}=this,{current:i,point:o}=nn.pathH(r),{x:s,y:a}=o;r.addMarker(o,i),n.addPoint(s,a),t&&t.lineTo(s,a)}static pathV(t){var{current:n,command:r}=t,i=new fr(n.x,(r.relative?n.y:0)+r.y);return t.current=i,{current:n,point:i}}pathV(t,n){var{pathParser:r}=this,{current:i,point:o}=nn.pathV(r),{x:s,y:a}=o;r.addMarker(o,i),n.addPoint(s,a),t&&t.lineTo(s,a)}static pathC(t){var{current:n}=t,r=t.getPoint("x1","y1"),i=t.getAsControlPoint("x2","y2"),o=t.getAsCurrentPoint();return{current:n,point:r,controlPoint:i,currentPoint:o}}pathC(t,n){var{pathParser:r}=this,{current:i,point:o,controlPoint:s,currentPoint:a}=nn.pathC(r);r.addMarker(a,s,o),n.addBezierCurve(i.x,i.y,o.x,o.y,s.x,s.y,a.x,a.y),t&&t.bezierCurveTo(o.x,o.y,s.x,s.y,a.x,a.y)}static pathS(t){var{current:n}=t,r=t.getReflectedControlPoint(),i=t.getAsControlPoint("x2","y2"),o=t.getAsCurrentPoint();return{current:n,point:r,controlPoint:i,currentPoint:o}}pathS(t,n){var{pathParser:r}=this,{current:i,point:o,controlPoint:s,currentPoint:a}=nn.pathS(r);r.addMarker(a,s,o),n.addBezierCurve(i.x,i.y,o.x,o.y,s.x,s.y,a.x,a.y),t&&t.bezierCurveTo(o.x,o.y,s.x,s.y,a.x,a.y)}static pathQ(t){var{current:n}=t,r=t.getAsControlPoint("x1","y1"),i=t.getAsCurrentPoint();return{current:n,controlPoint:r,currentPoint:i}}pathQ(t,n){var{pathParser:r}=this,{current:i,controlPoint:o,currentPoint:s}=nn.pathQ(r);r.addMarker(s,o,o),n.addQuadraticCurve(i.x,i.y,o.x,o.y,s.x,s.y),t&&t.quadraticCurveTo(o.x,o.y,s.x,s.y)}static pathT(t){var{current:n}=t,r=t.getReflectedControlPoint();t.control=r;var i=t.getAsCurrentPoint();return{current:n,controlPoint:r,currentPoint:i}}pathT(t,n){var{pathParser:r}=this,{current:i,controlPoint:o,currentPoint:s}=nn.pathT(r);r.addMarker(s,o,o),n.addQuadraticCurve(i.x,i.y,o.x,o.y,s.x,s.y),t&&t.quadraticCurveTo(o.x,o.y,s.x,s.y)}static pathA(t){var{current:n,command:r}=t,{rX:i,rY:o,xRot:s,lArcFlag:a,sweepFlag:l}=r,u=s*(Math.PI/180),d=t.getAsCurrentPoint(),f=new fr(Math.cos(u)*(n.x-d.x)/2+Math.sin(u)*(n.y-d.y)/2,-Math.sin(u)*(n.x-d.x)/2+Math.cos(u)*(n.y-d.y)/2),g=Math.pow(f.x,2)/Math.pow(i,2)+Math.pow(f.y,2)/Math.pow(o,2);g>1&&(i*=Math.sqrt(g),o*=Math.sqrt(g));var m=(a===l?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(o,2)-Math.pow(i,2)*Math.pow(f.y,2)-Math.pow(o,2)*Math.pow(f.x,2))/(Math.pow(i,2)*Math.pow(f.y,2)+Math.pow(o,2)*Math.pow(f.x,2)));isNaN(m)&&(m=0);var y=new fr(m*i*f.y/o,m*-o*f.x/i),b=new fr((n.x+d.x)/2+Math.cos(u)*y.x-Math.sin(u)*y.y,(n.y+d.y)/2+Math.sin(u)*y.x+Math.cos(u)*y.y),w=dL([1,0],[(f.x-y.x)/i,(f.y-y.y)/o]),C=[(f.x-y.x)/i,(f.y-y.y)/o],E=[(-f.x-y.x)/i,(-f.y-y.y)/o],A=dL(C,E);return RE(C,E)<=-1&&(A=Math.PI),RE(C,E)>=1&&(A=0),{currentPoint:d,rX:i,rY:o,sweepFlag:l,xAxisRotation:u,centp:b,a1:w,ad:A}}pathA(t,n){var{pathParser:r}=this,{currentPoint:i,rX:o,rY:s,sweepFlag:a,xAxisRotation:l,centp:u,a1:d,ad:f}=nn.pathA(r),g=1-a?1:-1,m=d+g*(f/2),y=new fr(u.x+o*Math.cos(m),u.y+s*Math.sin(m));if(r.addMarkerAngle(y,m-g*Math.PI/2),r.addMarkerAngle(i,m-g*Math.PI),n.addPoint(i.x,i.y),t&&!isNaN(d)&&!isNaN(f)){var b=o>s?o:s,w=o>s?1:o/s,C=o>s?s/o:1;t.translate(u.x,u.y),t.rotate(l),t.scale(w,C),t.arc(0,0,b,d,d+f,!!(1-a)),t.scale(1/w,1/C),t.rotate(-l),t.translate(-u.x,-u.y)}}static pathZ(t){t.current=t.start}pathZ(t,n){nn.pathZ(this.pathParser),t&&n.x1!==n.x2&&n.y1!==n.y2&&t.closePath()}}class x5 extends nn{constructor(t,n,r){super(t,n,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class xc extends ph{constructor(t,n,r){super(t,n,new.target===xc?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(t,n);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var n=null;return this.children.forEach((r,i)=>{var o=this.getChildBoundingBox(t,this,this,i);n?n.addBoundingBox(o):n=o}),n}getFontSize(){var{document:t,parent:n}=this,r=eo.parse(t.ctx.font).fontSize,i=n.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(t){var n=this.getFontSize();return new Ea(this.x,this.y-n,this.x+this.measureText(t),this.y)}getGlyph(t,n,r){var i=n[r],o=null;if(t.isArabic){var s=n.length,a=n[r-1],l=n[r+1],u="isolated";if((r===0||a===" ")&&r<s-1&&l!==" "&&(u="terminal"),r>0&&a!==" "&&r<s-1&&l!==" "&&(u="medial"),r>0&&a!==" "&&(r===s-1||l===" ")&&(u="initial"),typeof t.glyphs[i]<"u"){var d=t.glyphs[i];o=d instanceof x5?d:d[u]}}else o=t.glyphs[i];return o||(o=t.missingGlyph),o}getText(){return""}getTextFromNode(t){var n=t||this.node,r=Array.from(n.parentNode.childNodes),i=r.indexOf(n),o=r.length-1,s=Lg(n.textContent||"");return i===0&&(s=Kfe(s)),i===o&&(s=Yfe(s)),s}renderChildren(t){if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,i)=>{this.renderChild(t,this,this,i)});var{mouse:n}=this.document.screen;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(t))}renderTElementChildren(t){var{document:n,parent:r}=this,i=this.getText(),o=r.getStyle("font-family").getDefinition();if(o){for(var{unitsPerEm:s}=o.fontFace,a=eo.parse(n.ctx.font),l=r.getStyle("font-size").getNumber(a.fontSize),u=r.getStyle("font-style").getString(a.fontStyle),d=l/s,f=o.isRTL?i.split("").reverse().join(""):i,g=Qo(r.getAttribute("dx").getString()),m=f.length,y=0;y<m;y++){var b=this.getGlyph(o,f,y);t.translate(this.x,this.y),t.scale(d,-d);var w=t.lineWidth;t.lineWidth=t.lineWidth*s/l,u==="italic"&&t.transform(1,0,.4,1,0,0),b.render(t),u==="italic"&&t.transform(1,0,-.4,1,0,0),t.lineWidth=w,t.scale(1/d,-1/d),t.translate(-this.x,-this.y),this.x+=l*(b.horizAdvX||o.horizAdvX)/s,typeof g[y]<"u"&&!isNaN(g[y])&&(this.x+=g[y])}return}var{x:C,y:E}=this;t.fillStyle&&t.fillText(i,C,E),t.strokeStyle&&t.strokeText(i,C,E)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],n=t.getStyle("text-anchor").getString("start"),r=!1,i=0;n==="start"&&!r||n==="end"&&r?i=t.x-this.minX:n==="end"&&!r||n==="start"&&r?i=t.x-this.maxX:i=t.x-(this.minX+this.maxX)/2;for(var o=this.textChunkStart;o<this.leafTexts.length;o++)this.leafTexts[o].x+=i;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach((n,r)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,n,r,i){var o=r.children[i];o.children.length>0?o.children.forEach((s,a)=>{n.adjustChildCoordinatesRecursiveCore(t,n,o,a)}):this.adjustChildCoordinates(t,n,r,i)}adjustChildCoordinates(t,n,r,i){var o=r.children[i];if(typeof o.measureText!="function")return o;t.save(),o.setContext(t,!0);var s=o.getAttribute("x"),a=o.getAttribute("y"),l=o.getAttribute("dx"),u=o.getAttribute("dy"),d=o.getStyle("font-family").getDefinition(),f=!!d&&d.isRTL;i===0&&(s.hasValue()||s.setValue(o.getInheritedAttribute("x")),a.hasValue()||a.setValue(o.getInheritedAttribute("y")),l.hasValue()||l.setValue(o.getInheritedAttribute("dx")),u.hasValue()||u.setValue(o.getInheritedAttribute("dy")));var g=o.measureText(t);return f&&(n.x-=g),s.hasValue()?(n.applyAnchoring(),o.x=s.getPixels("x"),l.hasValue()&&(o.x+=l.getPixels("x"))):(l.hasValue()&&(n.x+=l.getPixels("x")),o.x=n.x),n.x=o.x,f||(n.x+=g),a.hasValue()?(o.y=a.getPixels("y"),u.hasValue()&&(o.y+=u.getPixels("y"))):(u.hasValue()&&(n.y+=u.getPixels("y")),o.y=n.y),n.y=o.y,n.leafTexts.push(o),n.minX=Math.min(n.minX,o.x,o.x+g),n.maxX=Math.max(n.maxX,o.x,o.x+g),o.clearContext(t),t.restore(),o}getChildBoundingBox(t,n,r,i){var o=r.children[i];if(typeof o.getBoundingBox!="function")return null;var s=o.getBoundingBox(t);return s?(o.children.forEach((a,l)=>{var u=n.getChildBoundingBox(t,n,o,l);s.addBoundingBox(u)}),s):null}renderChild(t,n,r,i){var o=r.children[i];o.render(t),o.children.forEach((s,a)=>{n.renderChild(t,n,o,a)})}measureText(t){var{measureCache:n}=this;if(~n)return n;var r=this.getText(),i=this.measureTargetText(t,r);return this.measureCache=i,i}measureTargetText(t,n){if(!n.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var o=this.getFontSize(),s=i.isRTL?n.split("").reverse().join(""):n,a=Qo(r.getAttribute("dx").getString()),l=s.length,u=0,d=0;d<l;d++){var f=this.getGlyph(i,s,d);u+=(f.horizAdvX||i.horizAdvX)*o/i.fontFace.unitsPerEm,typeof a[d]<"u"&&!isNaN(a[d])&&(u+=a[d])}return u}if(!t.measureText)return n.length*10;t.save(),this.setContext(t,!0);var{width:g}=t.measureText(n);return this.clearContext(t),t.restore(),g}getInheritedAttribute(t){for(var n=this;n instanceof xc&&n.isFirstChild();){var r=n.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");n=n.parent}return null}}class bC extends xc{constructor(t,n,r){super(t,n,new.target===bC?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Lbt extends bC{constructor(){super(...arguments),this.type="textNode"}}class gv extends ph{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var n,{document:r}=this,{screen:i,window:o}=r,s=t.canvas;if(i.setDefaults(t),s.style&&typeof t.font<"u"&&o&&typeof o.getComputedStyle<"u"){t.font=o.getComputedStyle(s).getPropertyValue("font");var a=new ct(r,"fontSize",eo.parse(t.font).fontSize);a.hasValue()&&(r.rootEmSize=a.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:l,height:u}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var d=this.getAttribute("refX"),f=this.getAttribute("refY"),g=this.getAttribute("viewBox"),m=g.hasValue()?Qo(g.getString()):null,y=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",b=0,w=0,C=0,E=0;m&&(b=m[0],w=m[1]),this.root||(l=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),this.type==="marker"&&(C=b,E=w,b=0,w=0)),i.viewPort.setCurrent(l,u),this.node&&(!this.parent||((n=this.node.parentNode)===null||n===void 0?void 0:n.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),m&&(l=m[2],u=m[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:l,height:i.viewPort.height,desiredHeight:u,minX:b,minY:w,refX:d.getValue(),refY:f.getValue(),clip:y,clipX:C,clipY:E}),m&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(l,u))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),o=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),a=this.getAttribute("style"),l=i.getNumber(0),u=o.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var d=this.getAttribute("preserveAspectRatio");d.hasValue()&&d.setValue(d.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),o.setValue(n),s.hasValue()||s.setValue("0 0 ".concat(l||t," ").concat(u||n)),a.hasValue()){var f=this.getStyle("width"),g=this.getStyle("height");f.hasValue()&&f.setValue("".concat(t,"px")),g.hasValue()&&g.setValue("".concat(n,"px"))}}}class E5 extends nn{constructor(){super(...arguments),this.type="rect"}path(t){var n=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),o=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),a=this.getAttribute("ry"),l=s.getPixels("x"),u=a.getPixels("y");if(s.hasValue()&&!a.hasValue()&&(u=l),a.hasValue()&&!s.hasValue()&&(l=u),l=Math.min(l,i/2),u=Math.min(u,o/2),t){var d=4*((Math.sqrt(2)-1)/3);t.beginPath(),o>0&&i>0&&(t.moveTo(n+l,r),t.lineTo(n+i-l,r),t.bezierCurveTo(n+i-l+d*l,r,n+i,r+u-d*u,n+i,r+u),t.lineTo(n+i,r+o-u),t.bezierCurveTo(n+i,r+o-u+d*u,n+i-l+d*l,r+o,n+i-l,r+o),t.lineTo(n+l,r+o),t.bezierCurveTo(n+l-d*l,r+o,n,r+o-u+d*u,n,r+o-u),t.lineTo(n,r+u),t.bezierCurveTo(n,r+u-d*u,n+l-d*l,r,n+l,r),t.closePath())}return new Ea(n,r,n+i,r+o)}getMarkers(){return null}}class uge extends nn{constructor(){super(...arguments),this.type="circle"}path(t){var n=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&i>0&&(t.beginPath(),t.arc(n,r,i,0,Math.PI*2,!1),t.closePath()),new Ea(n-i,r-i,n+i,r+i)}getMarkers(){return null}}class cge extends nn{constructor(){super(...arguments),this.type="ellipse"}path(t){var n=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),o=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return t&&r>0&&i>0&&(t.beginPath(),t.moveTo(o+r,s),t.bezierCurveTo(o+r,s+n*i,o+n*r,s+i,o,s+i),t.bezierCurveTo(o-n*r,s+i,o-r,s+n*i,o-r,s),t.bezierCurveTo(o-r,s-n*i,o-n*r,s-i,o,s-i),t.bezierCurveTo(o+n*r,s-i,o+r,s-n*i,o+r,s),t.closePath()),new Ea(o-r,s-i,o+r,s+i)}getMarkers(){return null}}class dge extends nn{constructor(){super(...arguments),this.type="line"}getPoints(){return[new fr(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new fr(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:n,y:r},{x:i,y:o}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(n,r),t.lineTo(i,o)),new Ea(n,r,i,o)}getMarkers(){var[t,n]=this.getPoints(),r=t.angleTo(n);return[[t,r],[n,r]]}}class R5 extends nn{constructor(t,n,r){super(t,n,r),this.type="polyline",this.points=[],this.points=fr.parsePath(this.getAttribute("points").getString())}path(t){var{points:n}=this,[{x:r,y:i}]=n,o=new Ea(r,i);return t&&(t.beginPath(),t.moveTo(r,i)),n.forEach(s=>{var{x:a,y:l}=s;o.addPoint(a,l),t&&t.lineTo(a,l)}),o}getMarkers(){var{points:t}=this,n=t.length-1,r=[];return t.forEach((i,o)=>{o!==n&&r.push([i,i.angleTo(t[o+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class hge extends R5{constructor(){super(...arguments),this.type="polygon"}path(t){var n=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),n}}class fge extends or{constructor(){super(...arguments),this.type="pattern"}createPattern(t,n,r){var i=this.getStyle("width").getPixels("x",!0),o=this.getStyle("height").getPixels("y",!0),s=new gv(this.document,null);s.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new ct(this.document,"width","".concat(i,"px")),s.attributes.height=new ct(this.document,"height","".concat(o,"px")),s.attributes.transform=new ct(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var a=this.document.createCanvas(i,o),l=a.getContext("2d"),u=this.getAttribute("x"),d=this.getAttribute("y");u.hasValue()&&d.hasValue()&&l.translate(u.getPixels("x",!0),d.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var g=-1;g<=1;g++)l.save(),s.attributes.x=new ct(this.document,"x",f*a.width),s.attributes.y=new ct(this.document,"y",g*a.height),s.render(l),l.restore();var m=t.createPattern(a,"repeat");return m}}class gge extends or{constructor(){super(...arguments),this.type="marker"}render(t,n,r){if(n){var{x:i,y:o}=n,s=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(i,o),s==="auto"&&t.rotate(r),a==="strokeWidth"&&t.scale(t.lineWidth,t.lineWidth),t.save();var l=new gv(this.document,null);l.type=this.type,l.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.refX=new ct(this.document,"refX",this.getAttribute("refX").getValue()),l.attributes.refY=new ct(this.document,"refY",this.getAttribute("refY").getValue()),l.attributes.width=new ct(this.document,"width",this.getAttribute("markerWidth").getValue()),l.attributes.height=new ct(this.document,"height",this.getAttribute("markerHeight").getValue()),l.attributes.overflow=new ct(this.document,"overflow",this.getAttribute("overflow").getValue()),l.attributes.fill=new ct(this.document,"fill",this.getAttribute("fill").getColor("black")),l.attributes.stroke=new ct(this.document,"stroke",this.getAttribute("stroke").getValue("none")),l.children=this.children,l.render(t),t.restore(),a==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),s==="auto"&&t.rotate(-r),t.translate(-i,-o)}}}class pge extends or{constructor(){super(...arguments),this.type="defs"}render(){}}class GA extends ph{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var n=new Ea;return this.children.forEach(r=>{n.addBoundingBox(r.getBoundingBox(t))}),n}}class A5 extends or{constructor(t,n,r){super(t,n,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:o}=this;o.forEach(s=>{s.type==="stop"&&i.push(s)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,n,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:o}=i,s=this.getGradient(t,n);if(!s)return this.addParentOpacity(r,o[o.length-1].color);if(o.forEach(w=>{s.addColorStop(w.offset,this.addParentOpacity(r,w.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:l,viewPort:u}=a.screen,[d]=u.viewPorts,f=new E5(a,null);f.attributes.x=new ct(a,"x",-l/3),f.attributes.y=new ct(a,"y",-l/3),f.attributes.width=new ct(a,"width",l),f.attributes.height=new ct(a,"height",l);var g=new GA(a,null);g.attributes.transform=new ct(a,"transform",this.getAttribute("gradientTransform").getValue()),g.children=[f];var m=new gv(a,null);m.attributes.x=new ct(a,"x",0),m.attributes.y=new ct(a,"y",0),m.attributes.width=new ct(a,"width",d.width),m.attributes.height=new ct(a,"height",d.height),m.children=[g];var y=a.createCanvas(d.width,d.height),b=y.getContext("2d");return b.fillStyle=s,m.render(b),b.createPattern(y,"no-repeat")}return s}inheritStopContainer(t){this.attributesToInherit.forEach(n=>{!this.getAttribute(n).hasValue()&&t.getAttribute(n).hasValue()&&this.getAttribute(n,!0).setValue(t.getAttribute(n).getValue())})}addParentOpacity(t,n){if(t.hasValue()){var r=new ct(this.document,"color",n);return r.addOpacity(t).getColor()}return n}}class mge extends A5{constructor(t,n,r){super(t,n,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,n){var r=this.getGradientUnits()==="objectBoundingBox",i=r?n.getBoundingBox(t):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var o=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),l=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return o===a&&s===l?null:t.createLinearGradient(o,s,a,l)}}class vge extends A5{constructor(t,n,r){super(t,n,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,n){var r=this.getGradientUnits()==="objectBoundingBox",i=n.getBoundingBox(t);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var o=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=o,l=s;this.getAttribute("fx").hasValue()&&(a=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(l=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),d=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,l,d,o,s,u)}}class yge extends or{constructor(t,n,r){super(t,n,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),o=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);s.getString()===""&&s.setValue("#000"),o.hasValue()&&(s=s.addOpacity(o)),this.offset=i,this.color=s.getColor()}}class jA extends or{constructor(t,n,r){super(t,n,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new ct(t,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),n=this.getAttribute("attributeName").getString();return t==="CSS"?this.parent.getStyle(n,!0):this.parent.getAttribute(n,!0)}calcValue(){var{initialUnits:t}=this,{progress:n,from:r,to:i}=this.getProgress(),o=r.getNumber()+(i.getNumber()-r.getNumber())*n;return t==="%"&&(o*=100),"".concat(o).concat(t)}update(t){var{parent:n}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,n.animationFrozen=!0,n.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(n.animationFrozen?n.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=t;var o=!1;if(this.begin<this.duration){var s=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var l=a.getString();s="".concat(l,"(").concat(s,")")}r.setValue(s),o=!0}return o}getProgress(){var{document:t,values:n}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(n.hasValue()){var i=r.progress*(n.getValue().length-1),o=Math.floor(i),s=Math.ceil(i);r.from=new ct(t,"from",parseFloat(n.getValue()[o])),r.to=new ct(t,"to",parseFloat(n.getValue()[s])),r.progress=(i-o)/(s-o)}else r.from=this.from,r.to=this.to;return r}}class bge extends jA{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:n,to:r}=this.getProgress(),i=new lL(n.getColor()),o=new lL(r.getColor());if(i.ok&&o.ok){var s=i.r+(o.r-i.r)*t,a=i.g+(o.g-i.g)*t,l=i.b+(o.b-i.b)*t;return"rgb(".concat(Math.floor(s),", ").concat(Math.floor(a),", ").concat(Math.floor(l),")")}return this.getAttribute("from").getColor()}}class wge extends jA{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:n,to:r}=this.getProgress(),i=Qo(n.getString()),o=Qo(r.getString()),s=i.map((a,l)=>{var u=o[l];return a+(u-a)*t}).join(" ");return s}}class Cge extends or{constructor(t,n,r){super(t,n,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=t,{children:o}=this;for(var s of o)switch(s.type){case"font-face":{this.fontFace=s;var a=s.getStyle("font-family");a.hasValue()&&(i[a.getString()]=this);break}case"missing-glyph":this.missingGlyph=s;break;case"glyph":{var l=s;l.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[l.unicode]>"u"&&(this.glyphs[l.unicode]=Object.create(null)),this.glyphs[l.unicode][l.arabicForm]=l):this.glyphs[l.unicode]=l;break}}}render(){}}class Sge extends or{constructor(t,n,r){super(t,n,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class xge extends nn{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class Ege extends xc{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var n=t.children[0];if(n)return n.getText()}return""}}class Rge extends xc{constructor(t,n,r){super(t,n,r),this.type="a";var{childNodes:i}=n,o=i[0],s=i.length>0&&Array.from(i).every(a=>a.nodeType===3);this.hasText=s,this.text=s?this.getTextFromNode(o):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:n,x:r,y:i}=this,{mouse:o}=n.screen,s=new ct(n,"fontSize",eo.parse(n.ctx.font).fontSize);o.isWorking()&&o.checkBoundingBox(this,new Ea(r,i-s.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var a=new GA(this.document,null);a.children=this.children,a.parent=this,a.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}function tJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function US(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tJ(Object(n),!0).forEach(function(r){b5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}class Age extends xc{constructor(t,n,r){super(t,n,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(t){var{dataArray:n}=this;t&&t.beginPath(),n.forEach(r=>{var{type:i,points:o}=r;switch(i){case Ct.LINE_TO:t&&t.lineTo(o[0],o[1]);break;case Ct.MOVE_TO:t&&t.moveTo(o[0],o[1]);break;case Ct.CURVE_TO:t&&t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case Ct.QUAD_TO:t&&t.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case Ct.ARC:{var[s,a,l,u,d,f,g,m]=o,y=l>u?l:u,b=l>u?1:l/u,w=l>u?u/l:1;t&&(t.translate(s,a),t.rotate(g),t.scale(b,w),t.arc(0,0,y,d,d+f,!!(1-m)),t.scale(1/b,1/w),t.rotate(-g),t.translate(-s,-a));break}case Ct.CLOSE_PATH:t&&t.closePath();break}})}renderChildren(t){this.setTextData(t),t.save();var n=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,o=t.fillStyle;n==="underline"&&t.beginPath(),i.forEach((s,a)=>{var{p0:l,p1:u,rotation:d,text:f}=s;t.save(),t.translate(l.x,l.y),t.rotate(d),t.fillStyle&&t.fillText(f,0,0),t.strokeStyle&&t.strokeText(f,0,0),t.restore(),n==="underline"&&(a===0&&t.moveTo(l.x,l.y+r/8),t.lineTo(u.x,u.y+r/5))}),n==="underline"&&(t.lineWidth=r/20,t.strokeStyle=o,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,n,r,i,o,s,a,l,u){var d=s,f=this.measureText(t,l);l===" "&&n==="justify"&&r<i&&(f+=(i-r)/o),u>-1&&(d+=this.getLetterSpacingAt(u));var g=this.textHeight/20,m=this.getEquidistantPointOnPath(d,g,0),y=this.getEquidistantPointOnPath(d+f,g,0),b={p0:m,p1:y},w=m&&y?Math.atan2(y.y-m.y,y.x-m.x):0;if(a){var C=Math.cos(Math.PI/2+w)*a,E=Math.cos(-w)*a;b.p0=US(US({},m),{},{x:m.x+C,y:m.y+E}),b.p1=US(US({},y),{},{x:y.x+C,y:y.y+E})}return d+=f,{offset:d,segment:b,rotation:w}}measureText(t,n){var{measuresCache:r}=this,i=n||this.getText();if(r.has(i))return r.get(i);var o=this.measureTargetText(t,i);return r.set(i,o),o}setTextData(t){if(!this.glyphInfo){var n=this.getText(),r=n.split(""),i=n.split(" ").length-1,o=this.parent.getAttribute("dx").split().map(T=>T.getPixels("x")),s=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),l=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),d=0;!l.hasValue()||l.getValue()==="inherit"?d=u.getPixels():l.hasValue()&&l.getValue()!=="initial"&&l.getValue()!=="unset"&&(d=l.getPixels());var f=[],g=n.length;this.letterSpacingCache=f;for(var m=0;m<g;m++)f.push(typeof o[m]<"u"?o[m]:d);var y=f.reduce((T,P,O)=>O===0?0:T+P||0,0),b=this.measureText(t),w=Math.max(b+y,0);this.textWidth=b,this.textHeight=this.getFontSize(),this.glyphInfo=[];var C=this.getPathLength(),E=this.getStyle("startOffset").getNumber(0)*C,A=0;(a==="middle"||a==="center")&&(A=-w/2),(a==="end"||a==="right")&&(A=-w),A+=E,r.forEach((T,P)=>{var{offset:O,segment:D,rotation:F}=this.findSegmentToFitChar(t,a,w,C,i,A,s,T,P);A=O,!(!D.p0||!D.p1)&&this.glyphInfo.push({text:r[P],p0:D.p0,p1:D.p1,rotation:F})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var n=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:i}=r,o=i?i.x:0,s=i?i.y:0,a=r.next(),l=a.type,u=[];switch(a.type){case Ct.MOVE_TO:this.pathM(r,u);break;case Ct.LINE_TO:l=this.pathL(r,u);break;case Ct.HORIZ_LINE_TO:l=this.pathH(r,u);break;case Ct.VERT_LINE_TO:l=this.pathV(r,u);break;case Ct.CURVE_TO:this.pathC(r,u);break;case Ct.SMOOTH_CURVE_TO:l=this.pathS(r,u);break;case Ct.QUAD_TO:this.pathQ(r,u);break;case Ct.SMOOTH_QUAD_TO:l=this.pathT(r,u);break;case Ct.ARC:u=this.pathA(r);break;case Ct.CLOSE_PATH:nn.pathZ(r);break}a.type!==Ct.CLOSE_PATH?n.push({type:l,points:u,start:{x:o,y:s},pathLength:this.calcLength(o,s,l,u)}):n.push({type:Ct.CLOSE_PATH,points:[],pathLength:0})}return n}pathM(t,n){var{x:r,y:i}=nn.pathM(t).point;n.push(r,i)}pathL(t,n){var{x:r,y:i}=nn.pathL(t).point;return n.push(r,i),Ct.LINE_TO}pathH(t,n){var{x:r,y:i}=nn.pathH(t).point;return n.push(r,i),Ct.LINE_TO}pathV(t,n){var{x:r,y:i}=nn.pathV(t).point;return n.push(r,i),Ct.LINE_TO}pathC(t,n){var{point:r,controlPoint:i,currentPoint:o}=nn.pathC(t);n.push(r.x,r.y,i.x,i.y,o.x,o.y)}pathS(t,n){var{point:r,controlPoint:i,currentPoint:o}=nn.pathS(t);return n.push(r.x,r.y,i.x,i.y,o.x,o.y),Ct.CURVE_TO}pathQ(t,n){var{controlPoint:r,currentPoint:i}=nn.pathQ(t);n.push(r.x,r.y,i.x,i.y)}pathT(t,n){var{controlPoint:r,currentPoint:i}=nn.pathT(t);return n.push(r.x,r.y,i.x,i.y),Ct.QUAD_TO}pathA(t){var{rX:n,rY:r,sweepFlag:i,xAxisRotation:o,centp:s,a1:a,ad:l}=nn.pathA(t);return i===0&&l>0&&(l-=2*Math.PI),i===1&&l<0&&(l+=2*Math.PI),[s.x,s.y,n,r,a,l,o,i]}calcLength(t,n,r,i){var o=0,s=null,a=null,l=0;switch(r){case Ct.LINE_TO:return this.getLineLength(t,n,i[0],i[1]);case Ct.CURVE_TO:for(o=0,s=this.getPointOnCubicBezier(0,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),l=.01;l<=1;l+=.01)a=this.getPointOnCubicBezier(l,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),o+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return o;case Ct.QUAD_TO:for(o=0,s=this.getPointOnQuadraticBezier(0,t,n,i[0],i[1],i[2],i[3]),l=.01;l<=1;l+=.01)a=this.getPointOnQuadraticBezier(l,t,n,i[0],i[1],i[2],i[3]),o+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return o;case Ct.ARC:{o=0;var u=i[4],d=i[5],f=i[4]+d,g=Math.PI/180;if(Math.abs(u-f)<g&&(g=Math.abs(u-f)),s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),d<0)for(l=u-g;l>f;l-=g)a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(l=u+g;l<f;l+=g)a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),o+=this.getLineLength(s.x,s.y,a.x,a.y),o}}return 0}getPointOnLine(t,n,r,i,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:n,a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,l=(o-r)/(i-n+kf),u=Math.sqrt(t*t/(1+l*l));i<n&&(u*=-1);var d=l*u,f=null;if(i===n)f={x:s,y:a+d};else if((a-r)/(s-n+kf)===l)f={x:s+u,y:a+d};else{var g=0,m=0,y=this.getLineLength(n,r,i,o);if(y<kf)return null;var b=(s-n)*(i-n)+(a-r)*(o-r);b/=y*y,g=n+b*(i-n),m=r+b*(o-r);var w=this.getLineLength(s,a,g,m),C=Math.sqrt(t*t-w*w);u=Math.sqrt(C*C/(1+l*l)),i<n&&(u*=-1),d=l*u,f={x:g+u,y:m+d}}return f}getPointOnPath(t){var n=this.getPathLength(),r=0,i=null;if(t<-5e-5||t-5e-5>n)return null;var{dataArray:o}=this;for(var s of o){if(s&&(s.pathLength<5e-5||r+s.pathLength+5e-5<t)){r+=s.pathLength;continue}var a=t-r,l=0;switch(s.type){case Ct.LINE_TO:i=this.getPointOnLine(a,s.start.x,s.start.y,s.points[0],s.points[1],s.start.x,s.start.y);break;case Ct.ARC:{var u=s.points[4],d=s.points[5],f=s.points[4]+d;if(l=u+a/s.pathLength*d,d<0&&l<f||d>=0&&l>f)break;i=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],l,s.points[6]);break}case Ct.CURVE_TO:l=a/s.pathLength,l>1&&(l=1),i=this.getPointOnCubicBezier(l,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case Ct.QUAD_TO:l=a/s.pathLength,l>1&&(l=1),i=this.getPointOnQuadraticBezier(l,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3]);break}if(i)return i;break}return null}getLineLength(t,n,r,i){return Math.sqrt((r-t)*(r-t)+(i-n)*(i-n))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((t,n)=>n.pathLength>0?t+n.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,n,r,i,o,s,a,l,u){var d=l*hL(t)+s*fL(t)+i*gL(t)+n*pL(t),f=u*hL(t)+a*fL(t)+o*gL(t)+r*pL(t);return{x:d,y:f}}getPointOnQuadraticBezier(t,n,r,i,o,s,a){var l=s*mL(t)+i*vL(t)+n*yL(t),u=a*mL(t)+o*vL(t)+r*yL(t);return{x:l,y:u}}getPointOnEllipticalArc(t,n,r,i,o,s){var a=Math.cos(s),l=Math.sin(s),u={x:r*Math.cos(o),y:i*Math.sin(o)};return{x:t+(u.x*a-u.y*l),y:n+(u.x*l+u.y*a)}}buildEquidistantCache(t,n){var r=this.getPathLength(),i=n||.25,o=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==o||this.equidistantCache.precision!==i){this.equidistantCache={step:o,precision:i,points:[]};for(var s=0,a=0;a<=r;a+=i){var l=this.getPointOnPath(a),u=this.getPointOnPath(a+i);!l||!u||(s+=this.getLineLength(l.x,l.y,u.x,u.y),s>=o&&(this.equidistantCache.points.push({x:l.x,y:l.y,distance:a}),s-=o))}}}getEquidistantPointOnPath(t,n,r){if(this.buildEquidistantCache(n,r),t<0||t-this.getPathLength()>5e-5)return null;var i=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var Nbt=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Tge extends ph{constructor(t,n,r){super(t,n,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var o=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);t.images.push(this),o?this.loadSvg(i):this.loadImage(i),this.isSvg=o}}loadImage(t){var n=this;return Sc(function*(){try{var r=yield n.document.createImage(t);n.image=r}catch(i){console.error('Error while loading image "'.concat(t,'":'),i)}n.loaded=!0})()}loadSvg(t){var n=this;return Sc(function*(){var r=Nbt.exec(t);if(r){var i=r[5];r[4]==="base64"?n.image=atob(i):n.image=decodeURIComponent(i)}else try{var o=yield n.document.fetch(t),s=yield o.text();n.image=s}catch(a){console.error('Error while loading image "'.concat(t,'":'),a)}n.loaded=!0})()}renderChildren(t){var{document:n,image:r,loaded:i}=this,o=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y");if(!(!i||!r||!a||!l)){if(t.save(),t.translate(o,s),this.isSvg){var u=n.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:l});u.document.documentElement.parent=this,u.render()}else{var d=this.image;n.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:d.width,height:l,desiredHeight:d.height}),this.loaded&&(typeof d.complete>"u"||d.complete)&&t.drawImage(d,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new Ea(t,n,t+r,n+i)}}class Pge extends ph{constructor(){super(...arguments),this.type="symbol"}render(t){}}class Oge{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,n){var r=this;return Sc(function*(){try{var{document:i}=r,o=yield i.canvg.parser.load(n),s=o.getElementsByTagName("font");Array.from(s).forEach(a=>{var l=i.createElement(a);i.definitions[t]=l})}catch(a){console.error('Error while loading font "'.concat(n,'":'),a)}r.loaded=!0})()}}class T5 extends or{constructor(t,n,r){super(t,n,r),this.type="style";var i=Lg(Array.from(n.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),o=i.split("}");o.forEach(s=>{var a=s.trim();if(a){var l=a.split("{"),u=l[0].split(","),d=l[1].split(";");u.forEach(f=>{var g=f.trim();if(g){var m=t.styles[g]||{};if(d.forEach(w=>{var C=w.indexOf(":"),E=w.substr(0,C).trim(),A=w.substr(C+1,w.length-C).trim();E&&A&&(m[E]=new ct(t,E,A))}),t.styles[g]=m,t.stylesSpecificity[g]=Qfe(g),g==="@font-face"){var y=m["font-family"].getString().replace(/"|'/g,""),b=m.src.getString().split(",");b.forEach(w=>{if(w.indexOf('format("svg")')>0){var C=w5(w);C&&new Oge(t).load(y,C)}})}}})}})}}T5.parseExternalUrl=w5;class Dge extends ph{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var n=this.getAttribute("x"),r=this.getAttribute("y");n.hasValue()&&t.translate(n.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:n}=this;n&&n.path(t)}renderChildren(t){var{document:n,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new gv(n,null),i.attributes.viewBox=new ct(n,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new ct(n,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new ct(n,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new ct(n,"opacity",this.calculateOpacity())),i.type==="svg"){var o=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);o.hasValue()&&(i.attributes.width=new ct(n,"width",o.getString())),s.hasValue()&&(i.attributes.height=new ct(n,"height",s.getString()))}var a=i.parent;i.parent=this,i.render(t),i.parent=a}}getBoundingBox(t){var{element:n}=this;return n?n.getBoundingBox(t):null}elementTransform(){var{document:t,element:n}=this;return eh.fromElement(t,n)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function WS(e,t,n,r,i,o){return e[n*r*4+t*4+o]}function $S(e,t,n,r,i,o,s){e[n*r*4+t*4+o]=s}function _r(e,t,n){var r=e[t];return r*n}function Wu(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}class P5 extends or{constructor(t,n,r){super(t,n,r),this.type="feColorMatrix";var i=Qo(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var o=i[0];i=[.213+.787*o,.715-.715*o,.072-.072*o,0,0,.213-.213*o,.715+.285*o,.072-.072*o,0,0,.213-.213*o,.715-.715*o,.072+.928*o,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var s=i[0]*Math.PI/180;i=[Wu(s,.213,.787,-.213),Wu(s,.715,-.715,-.715),Wu(s,.072,-.072,.928),0,0,Wu(s,.213,-.213,.143),Wu(s,.715,.285,.14),Wu(s,.072,-.072,-.283),0,0,Wu(s,.213,-.213,-.787),Wu(s,.715,-.715,.715),Wu(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,n,r,i,o){for(var{includeOpacity:s,matrix:a}=this,l=t.getImageData(0,0,i,o),u=0;u<o;u++)for(var d=0;d<i;d++){var f=WS(l.data,d,u,i,o,0),g=WS(l.data,d,u,i,o,1),m=WS(l.data,d,u,i,o,2),y=WS(l.data,d,u,i,o,3),b=_r(a,0,f)+_r(a,1,g)+_r(a,2,m)+_r(a,3,y)+_r(a,4,1),w=_r(a,5,f)+_r(a,6,g)+_r(a,7,m)+_r(a,8,y)+_r(a,9,1),C=_r(a,10,f)+_r(a,11,g)+_r(a,12,m)+_r(a,13,y)+_r(a,14,1),E=_r(a,15,f)+_r(a,16,g)+_r(a,17,m)+_r(a,18,y)+_r(a,19,1);s&&(b=0,w=0,C=0,E*=y/255),$S(l.data,d,u,i,o,0,b),$S(l.data,d,u,i,o,1,w),$S(l.data,d,u,i,o,2,C),$S(l.data,d,u,i,o,3,E)}t.clearRect(0,0,i,o),t.putImageData(l,0,0)}}class wC extends or{constructor(){super(...arguments),this.type="mask"}apply(t,n){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!s&&!a){var l=new Ea;this.children.forEach(y=>{l.addBoundingBox(y.getBoundingBox(t))}),i=Math.floor(l.x1),o=Math.floor(l.y1),s=Math.floor(l.width),a=Math.floor(l.height)}var u=this.removeStyles(n,wC.ignoreStyles),d=r.createCanvas(i+s,o+a),f=d.getContext("2d");r.screen.setDefaults(f),this.renderChildren(f),new P5(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+s,o+a);var g=r.createCanvas(i+s,o+a),m=g.getContext("2d");r.screen.setDefaults(m),n.render(m),m.globalCompositeOperation="destination-in",m.fillStyle=f.createPattern(d,"no-repeat"),m.fillRect(0,0,i+s,o+a),t.fillStyle=m.createPattern(g,"no-repeat"),t.fillRect(0,0,i+s,o+a),this.restoreStyles(n,u)}render(t){}}wC.ignoreStyles=["mask","transform","clip-path"];var nJ=()=>{};class Mge extends or{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:n}=this,r=Reflect.getPrototypeOf(t),{beginPath:i,closePath:o}=t;r&&(r.beginPath=nJ,r.closePath=nJ),Reflect.apply(i,t,[]),this.children.forEach(s=>{if(!(typeof s.path>"u")){var a=typeof s.elementTransform<"u"?s.elementTransform():null;a||(a=eh.fromElement(n,s)),a&&a.apply(t),s.path(t),r&&(r.closePath=o),a&&a.unapply(t)}}),Reflect.apply(o,t,[]),t.clip(),r&&(r.beginPath=i,r.closePath=o)}render(t){}}class CC extends or{constructor(){super(...arguments),this.type="filter"}apply(t,n){var{document:r,children:i}=this,o=n.getBoundingBox(t);if(o){var s=0,a=0;i.forEach(C=>{var E=C.extraFilterDistance||0;s=Math.max(s,E),a=Math.max(a,E)});var l=Math.floor(o.width),u=Math.floor(o.height),d=l+2*s,f=u+2*a;if(!(d<1||f<1)){var g=Math.floor(o.x),m=Math.floor(o.y),y=this.removeStyles(n,CC.ignoreStyles),b=r.createCanvas(d,f),w=b.getContext("2d");r.screen.setDefaults(w),w.translate(-g+s,-m+a),n.render(w),i.forEach(C=>{typeof C.apply=="function"&&C.apply(w,0,0,d,f)}),t.drawImage(b,0,0,d,f,g-s,m-a,d,f),this.restoreStyles(n,y)}}}render(t){}}CC.ignoreStyles=["filter","transform","clip-path"];class Ige extends or{constructor(t,n,r){super(t,n,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,n,r,i,o){}}class _ge extends or{constructor(){super(...arguments),this.type="feMorphology"}apply(t,n,r,i,o){}}class Fge extends or{constructor(){super(...arguments),this.type="feComposite"}apply(t,n,r,i,o){}}class kge extends or{constructor(t,n,r){super(t,n,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,n,r,i,o){var{document:s,blurRadius:a}=this,l=s.window?s.window.document.body:null,u=t.canvas;u.id=s.getUniqueId(),l&&(u.style.display="none",l.appendChild(u)),pbt(u,n,r,i,o,a),l&&l.removeChild(u)}}class Lge extends or{constructor(){super(...arguments),this.type="title"}}class Nge extends or{constructor(){super(...arguments),this.type="desc"}}var Bbt={svg:gv,rect:E5,circle:uge,ellipse:cge,line:dge,polyline:R5,polygon:hge,path:nn,pattern:fge,marker:gge,defs:pge,linearGradient:mge,radialGradient:vge,stop:yge,animate:jA,animateColor:bge,animateTransform:wge,font:Cge,"font-face":Sge,"missing-glyph":xge,glyph:x5,text:xc,tspan:bC,tref:Ege,a:Rge,textPath:Age,image:Tge,g:GA,symbol:Pge,style:T5,use:Dge,mask:wC,clipPath:Mge,filter:CC,feDropShadow:Ige,feMorphology:_ge,feComposite:Fge,feColorMatrix:P5,feGaussianBlur:kge,title:Lge,desc:Nge};function rJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hbt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rJ(Object(n),!0).forEach(function(r){b5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vbt(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n}function zbt(e){return wL.apply(this,arguments)}function wL(){return wL=Sc(function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=document.createElement("img");return t&&(n.crossOrigin="Anonymous"),new Promise((r,i)=>{n.onload=()=>{r(n)},n.onerror=(o,s,a,l,u)=>{i(u)},n.src=e})}),wL.apply(this,arguments)}let SC=class x1{constructor(t){var{rootEmSize:n=12,emSize:r=12,createCanvas:i=x1.createCanvas,createImage:o=x1.createImage,anonymousCrossOrigin:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=t,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=n,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(o,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,n){return typeof n=="boolean"?(r,i)=>t(r,typeof i=="boolean"?i:n):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:n}=this;n.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var n=this.createElement(t.documentElement);return n.root=!0,n.addStylesFromStyleDefinition(),this.documentElement=n,n}createElement(t){var n=t.nodeName.replace(/^[^:]+:/,""),r=x1.elementTypes[n];return typeof r<"u"?new r(this,t):new lge(this,t)}createTextNode(t){return new Lbt(this,t)}setViewBox(t){this.screen.setViewBox(Hbt({document:this},t))}};SC.createCanvas=Vbt;SC.createImage=zbt;SC.elementTypes=Bbt;function iJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iJ(Object(n),!0).forEach(function(r){b5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}class wf{constructor(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new S1(r),this.screen=new yC(t,r),this.options=r;var i=new SC(this,r),o=i.createDocumentElement(n);this.document=i,this.documentElement=o}static from(t,n){var r=arguments;return Sc(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},o=new S1(i),s=yield o.parse(n);return new wf(t,s,i)})()}static fromString(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new S1(r),o=i.parseFromString(n);return new wf(t,o,r)}fork(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return wf.from(t,n,Zh(Zh({},this.options),r))}forkString(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return wf.fromString(t,n,Zh(Zh({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,n=this;return Sc(function*(){var r=t.length>0&&t[0]!==void 0?t[0]:{};n.start(Zh({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield n.ready(),n.stop()})()}start(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:n,screen:r,options:i}=this;r.start(n,Zh(Zh({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(t,n,r)}}const iCt=Object.freeze(Object.defineProperty({__proto__:null,AElement:Rge,AnimateColorElement:bge,AnimateElement:jA,AnimateTransformElement:wge,BoundingBox:Ea,CB1:hL,CB2:fL,CB3:gL,CB4:pL,Canvg:wf,CircleElement:uge,ClipPathElement:Mge,DefsElement:pge,DescElement:Nge,Document:SC,Element:or,EllipseElement:cge,FeColorMatrixElement:P5,FeCompositeElement:Fge,FeDropShadowElement:Ige,FeGaussianBlurElement:kge,FeMorphologyElement:_ge,FilterElement:CC,Font:eo,FontElement:Cge,FontFaceElement:Sge,GElement:GA,GlyphElement:x5,GradientElement:A5,ImageElement:Tge,LineElement:dge,LinearGradientElement:mge,MarkerElement:gge,MaskElement:wC,Matrix:C5,MissingGlyphElement:xge,Mouse:ege,PSEUDO_ZERO:kf,Parser:S1,PathElement:nn,PathParser:Ct,PatternElement:fge,Point:fr,PolygonElement:hge,PolylineElement:R5,Property:ct,QB1:mL,QB2:vL,QB3:yL,RadialGradientElement:vge,RectElement:E5,RenderedElement:ph,Rotate:ige,SVGElement:gv,SVGFontLoader:Oge,Scale:oge,Screen:yC,Skew:S5,SkewX:sge,SkewY:age,StopElement:yge,StyleElement:T5,SymbolElement:Pge,TRefElement:Ege,TSpanElement:bC,TextElement:xc,TextPathElement:Age,TitleElement:Lge,Transform:eh,Translate:rge,UnknownElement:lge,UseElement:Dge,ViewPort:Jfe,compressSpaces:Lg,default:wf,getSelectorSpecificity:Qfe,normalizeAttributeName:Xfe,normalizeColor:Zfe,parseExternalUrl:w5,presets:bbt,toNumbers:Qo,trimLeft:Kfe,trimRight:Yfe,vectorMagnitude:cL,vectorsAngle:dL,vectorsRatio:RE},Symbol.toStringTag,{value:"Module"}));export{iCt as $,fwt as A,mwt as B,jL as C,Pwt as D,$st as E,nC as F,$wt as G,lht as H,Ywt as I,blt as J,nCt as K,Ewt as L,Owt as M,b1 as N,Xwt as O,pwt as P,hgt as Q,ye as R,XF as S,Wwt as T,$Ye as U,Ect as V,Gbt as W,xht as X,kht as Y,rCt as Z,iw as _,eCt as a,Hr as b,xwt as c,tCt as d,UL as e,Swt as f,bwt as g,Twt as h,vwt as i,Yy as j,Awt as k,zm as l,_wt as m,Fwt as n,jwt as o,wwt as p,Gwt as q,R as r,Uwt as s,Kwt as t,_ut as u,idt as v,qwt as w,uwt as x,xn as y,Jwt as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.