394 lines
1.2 MiB
394 lines
1.2 MiB
var e=Object.defineProperty,t=Object.defineProperties,o=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,o,n)=>o in t?e(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={exports:{}},u={},p=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function h(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var f=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(r){return!1}}()?Object.assign:function(e,t){for(var o,n,r=h(e),i=1;i<arguments.length;i++){for(var s in o=Object(arguments[i]))c.call(o,s)&&(r[s]=o[s]);if(p){n=p(o);for(var a=0;a<n.length;a++)d.call(o,n[a])&&(r[n[a]]=o[n[a]])}}return r},g=f,y="function"==typeof Symbol&&Symbol.for,v=y?Symbol.for("react.element"):60103,m=y?Symbol.for("react.portal"):60106,C=y?Symbol.for("react.fragment"):60107,w=y?Symbol.for("react.strict_mode"):60108,E=y?Symbol.for("react.profiler"):60114,b=y?Symbol.for("react.provider"):60109,R=y?Symbol.for("react.context"):60110,O=y?Symbol.for("react.forward_ref"):60112,S=y?Symbol.for("react.suspense"):60113,_=y?Symbol.for("react.memo"):60115,T=y?Symbol.for("react.lazy"):60116,P="function"==typeof Symbol&&Symbol.iterator;
|
||
/** @license React v16.13.1
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N={};function x(e,t,o){this.props=e,this.context=t,this.refs=N,this.updater=o||A}function I(){}function F(e,t,o){this.props=e,this.context=t,this.refs=N,this.updater=o||A}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(D(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},I.prototype=x.prototype;var L=F.prototype=new I;L.constructor=F,g(L,x.prototype),L.isPureReactComponent=!0;var M={current:null},G=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function V(e,t,o){var n,r={},i=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)G.call(t,n)&&!k.hasOwnProperty(n)&&(r[n]=t[n]);var a=arguments.length-2;if(1===a)r.children=o;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===r[n]&&(r[n]=a[n]);return{$$typeof:v,type:e,key:i,ref:s,props:r,_owner:M.current}}function W(e){return"object"==typeof e&&null!==e&&e.$$typeof===v}var H=/\/+/g,B=[];function U(e,t,o,n){if(B.length){var r=B.pop();return r.result=e,r.keyPrefix=t,r.func=o,r.context=n,r.count=0,r}return{result:e,keyPrefix:t,func:o,context:n,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>B.length&&B.push(e)}function z(e,t,o,n){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var i=!1;if(null===e)i=!0;else switch(r){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case v:case m:i=!0}}if(i)return o(n,e,""===t?"."+K(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var a=t+K(r=e[s],s);i+=z(r,a,o,n)}else if(null===e||"object"!=typeof e?a=null:a="function"==typeof(a=P&&e[P]||e["@@iterator"])?a:null,"function"==typeof a)for(e=a.call(e),s=0;!(r=e.next()).done;)i+=z(r=r.value,a=t+K(r,s++),o,n);else if("object"===r)throw o=""+e,Error(D(31,"[object Object]"===o?"object with keys {"+Object.keys(e).join(", ")+"}":o,""));return i}function Y(e,t,o){return null==e?0:z(e,"",t,o)}function K(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function q(e,t){e.func.call(e.context,t,e.count++)}function $(e,t,o){var n=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Q(e,n,o,(function(e){return e})):null!=e&&(W(e)&&(e=function(e,t){return{$$typeof:v,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(H,"$&/")+"/")+o)),n.push(e))}function Q(e,t,o,n,r){var i="";null!=o&&(i=(""+o).replace(H,"$&/")+"/"),Y(e,$,t=U(t,i,n,r)),j(t)}var X={current:null};function Z(){var e=X.current;if(null===e)throw Error(D(321));return e}var J={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:M,IsSomeRendererActing:{current:!1},assign:g};u.Children={map:function(e,t,o){if(null==e)return e;var n=[];return Q(e,n,null,t,o),n},forEach:function(e,t,o){if(null==e)return e;Y(e,q,t=U(null,null,t,o)),j(t)},count:function(e){return Y(e,(function(){return null}),null)},toArray:function(e){var t=[];return Q(e,t,null,(function(e){return e})),t},only:function(e){if(!W(e))throw Error(D(143));return e}},u.Component=x,u.Fragment=C,u.Profiler=E,u.PureComponent=F,u.StrictMode=w,u.Suspense=S,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,u.cloneElement=function(e,t,o){if(null==e)throw Error(D(267,e));var n=g({},e.props),r=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=M.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)G.call(t,l)&&!k.hasOwnProperty(l)&&(n[l]=void 0===t[l]&&void 0!==a?a[l]:t[l])}var l=arguments.length-2;if(1===l)n.children=o;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:v,type:e.type,key:r,ref:i,props:n,_owner:s}},u.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:R,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:b,_context:e},e.Consumer=e},u.createElement=V,u.createFactory=function(e){var t=V.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:O,render:e}},u.isValidElement=W,u.lazy=function(e){return{$$typeof:T,_ctor:e,_status:-1,_result:null}},u.memo=function(e,t){return{$$typeof:_,type:e,compare:void 0===t?null:t}},u.useCallback=function(e,t){return Z().useCallback(e,t)},u.useContext=function(e,t){return Z().useContext(e,t)},u.useDebugValue=function(){},u.useEffect=function(e,t){return Z().useEffect(e,t)},u.useImperativeHandle=function(e,t,o){return Z().useImperativeHandle(e,t,o)},u.useLayoutEffect=function(e,t){return Z().useLayoutEffect(e,t)},u.useMemo=function(e,t){return Z().useMemo(e,t)},u.useReducer=function(e,t,o){return Z().useReducer(e,t,o)},u.useRef=function(e){return Z().useRef(e)},u.useState=function(e){return Z().useState(e)},u.version="16.13.1",l.exports=u;var ee=l.exports,te={exports:{}},oe={},ne={exports:{}},re={};
|
||
/** @license React v0.19.1
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
!function(e){var t,o,n,r,i;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,a=null,l=function(){if(null!==s)try{var t=e.unstable_now();s(!0,t),s=null}catch(o){throw setTimeout(l,0),o}},u=Date.now();e.unstable_now=function(){return Date.now()-u},t=function(e){null!==s?setTimeout(t,0,e):(s=e,setTimeout(l,0))},o=function(e,t){a=setTimeout(e,t)},n=function(){clearTimeout(a)},r=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var p=window.performance,c=window.Date,d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)e.unstable_now=function(){return p.now()};else{var g=c.now();e.unstable_now=function(){return c.now()-g}}var y=!1,v=null,m=-1,C=5,w=0;r=function(){return e.unstable_now()>=w},i=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):C=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,b=E.port2;E.port1.onmessage=function(){if(null!==v){var t=e.unstable_now();w=t+C;try{v(!0,t)?b.postMessage(null):(y=!1,v=null)}catch(o){throw b.postMessage(null),o}}else y=!1},t=function(e){v=e,y||(y=!0,b.postMessage(null))},o=function(t,o){m=d((function(){t(e.unstable_now())}),o)},n=function(){h(m),m=-1}}function R(e,t){var o=e.length;e.push(t);e:for(;;){var n=o-1>>>1,r=e[n];if(!(void 0!==r&&0<_(r,t)))break e;e[n]=t,e[o]=r,o=n}}function O(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var o=e.pop();if(o!==t){e[0]=o;e:for(var n=0,r=e.length;n<r;){var i=2*(n+1)-1,s=e[i],a=i+1,l=e[a];if(void 0!==s&&0>_(s,o))void 0!==l&&0>_(l,s)?(e[n]=l,e[a]=o,n=a):(e[n]=s,e[i]=o,n=i);else{if(!(void 0!==l&&0>_(l,o)))break e;e[n]=l,e[a]=o,n=a}}}return t}return null}function _(e,t){var o=e.sortIndex-t.sortIndex;return 0!==o?o:e.id-t.id}var T=[],P=[],D=1,A=null,N=3,x=!1,I=!1,F=!1;function L(e){for(var t=O(P);null!==t;){if(null===t.callback)S(P);else{if(!(t.startTime<=e))break;S(P),t.sortIndex=t.expirationTime,R(T,t)}t=O(P)}}function M(e){if(F=!1,L(e),!I)if(null!==O(T))I=!0,t(G);else{var n=O(P);null!==n&&o(M,n.startTime-e)}}function G(t,i){I=!1,F&&(F=!1,n()),x=!0;var s=N;try{for(L(i),A=O(T);null!==A&&(!(A.expirationTime>i)||t&&!r());){var a=A.callback;if(null!==a){A.callback=null,N=A.priorityLevel;var l=a(A.expirationTime<=i);i=e.unstable_now(),"function"==typeof l?A.callback=l:A===O(T)&&S(T),L(i)}else S(T);A=O(T)}if(null!==A)var u=!0;else{var p=O(P);null!==p&&o(M,p.startTime-i),u=!1}return u}finally{A=null,N=s,x=!1}}function k(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=i;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(e){e.callback=null},e.unstable_continueExecution=function(){I||x||(I=!0,t(G))},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return O(T)},e.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var o=N;N=t;try{return e()}finally{N=o}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=V,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var o=N;N=e;try{return t()}finally{N=o}},e.unstable_scheduleCallback=function(r,i,s){var a=e.unstable_now();if("object"==typeof s&&null!==s){var l=s.delay;l="number"==typeof l&&0<l?a+l:a,s="number"==typeof s.timeout?s.timeout:k(r)}else s=k(r),l=a;return r={id:D++,callback:i,priorityLevel:r,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>a?(r.sortIndex=l,R(P,r),null===O(T)&&r===O(P)&&(F?n():F=!0,o(M,l-a))):(r.sortIndex=s,R(T,r),I||x||(I=!0,t(G))),r},e.unstable_shouldYield=function(){var t=e.unstable_now();L(t);var o=O(T);return o!==A&&null!==A&&null!==o&&null!==o.callback&&o.startTime<=t&&o.expirationTime<A.expirationTime||r()},e.unstable_wrapCallback=function(e){var t=N;return function(){var o=N;N=t;try{return e.apply(this,arguments)}finally{N=o}}}}(re),ne.exports=re;
|
||
/** @license React v16.13.1
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var ie=l.exports,se=f,ae=ne.exports;function le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!ie)throw Error(le(227));function ue(e,t,o,n,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(o,u)}catch(p){this.onError(p)}}var pe=!1,ce=null,de=!1,he=null,fe={onError:function(e){pe=!0,ce=e}};function ge(e,t,o,n,r,i,s,a,l){pe=!1,ce=null,ue.apply(fe,arguments)}var ye=null,ve=null,me=null;function Ce(e,t,o){var n=e.type||"unknown-event";e.currentTarget=me(o),function(e,t,o,n,r,i,s,a,l){if(ge.apply(this,arguments),pe){if(!pe)throw Error(le(198));var u=ce;pe=!1,ce=null,de||(de=!0,he=u)}}(n,t,void 0,e),e.currentTarget=null}var we=null,Ee={};function be(){if(we)for(var e in Ee){var t=Ee[e],o=we.indexOf(e);if(!(-1<o))throw Error(le(96,e));if(!Oe[o]){if(!t.extractEvents)throw Error(le(97,e));for(var n in Oe[o]=t,o=t.eventTypes){var r=void 0,i=o[n],s=t,a=n;if(Se.hasOwnProperty(a))throw Error(le(99,a));Se[a]=i;var l=i.phasedRegistrationNames;if(l){for(r in l)l.hasOwnProperty(r)&&Re(l[r],s,a);r=!0}else i.registrationName?(Re(i.registrationName,s,a),r=!0):r=!1;if(!r)throw Error(le(98,n,e))}}}}function Re(e,t,o){if(_e[e])throw Error(le(100,e));_e[e]=t,Te[e]=t.eventTypes[o].dependencies}var Oe=[],Se={},_e={},Te={};function Pe(e){var t,o=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!Ee.hasOwnProperty(t)||Ee[t]!==n){if(Ee[t])throw Error(le(102,t));Ee[t]=n,o=!0}}o&&be()}var De=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ae=null,Ne=null,xe=null;function Ie(e){if(e=ve(e)){if("function"!=typeof Ae)throw Error(le(280));var t=e.stateNode;t&&(t=ye(t),Ae(e.stateNode,e.type,t))}}function Fe(e){Ne?xe?xe.push(e):xe=[e]:Ne=e}function Le(){if(Ne){var e=Ne,t=xe;if(xe=Ne=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Me(e,t){return e(t)}function Ge(e,t,o,n,r){return e(t,o,n,r)}function ke(){}var Ve=Me,We=!1,He=!1;function Be(){null===Ne&&null===xe||(ke(),Le())}function Ue(e,t,o){if(He)return e(t,o);He=!0;try{return Ve(e,t,o)}finally{He=!1,Be()}}var je=/^[: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]*$/,ze=Object.prototype.hasOwnProperty,Ye={},Ke={};function qe(e,t,o,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=i}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$e[e]=new qe(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$e[t]=new qe(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$e[e]=new qe(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$e[e]=new qe(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){$e[e]=new qe(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$e[e]=new qe(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){$e[e]=new qe(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){$e[e]=new qe(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){$e[e]=new qe(e,5,!1,e.toLowerCase(),null,!1)}));var Qe=/[\-:]([a-z])/g;function Xe(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Qe,Xe);$e[t]=new qe(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Qe,Xe);$e[t]=new qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Qe,Xe);$e[t]=new qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){$e[e]=new qe(e,1,!1,e.toLowerCase(),null,!1)})),$e.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){$e[e]=new qe(e,1,!1,e.toLowerCase(),null,!0)}));var Ze=ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Je(e,t,o,n){var r=$e.hasOwnProperty(t)?$e[t]:null;(null!==r?0===r.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,o,n){if(null==t||function(e,t,o,n){if(null!==o&&0===o.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==o?!o.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,o,n))return!0;if(n)return!1;if(null!==o)switch(o.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,o,r,n)&&(o=null),n||null===r?function(e){return!!ze.call(Ke,e)||!ze.call(Ye,e)&&(je.test(e)?Ke[e]=!0:(Ye[e]=!0,!1))}(t)&&(null===o?e.removeAttribute(t):e.setAttribute(t,""+o)):r.mustUseProperty?e[r.propertyName]=null===o?3!==r.type&&"":o:(t=r.attributeName,n=r.attributeNamespace,null===o?e.removeAttribute(t):(o=3===(r=r.type)||4===r&&!0===o?"":""+o,n?e.setAttributeNS(n,t,o):e.setAttribute(t,o))))}Ze.hasOwnProperty("ReactCurrentDispatcher")||(Ze.ReactCurrentDispatcher={current:null}),Ze.hasOwnProperty("ReactCurrentBatchConfig")||(Ze.ReactCurrentBatchConfig={suspense:null});var et=/^(.*)[\\\/]/,tt="function"==typeof Symbol&&Symbol.for,ot=tt?Symbol.for("react.element"):60103,nt=tt?Symbol.for("react.portal"):60106,rt=tt?Symbol.for("react.fragment"):60107,it=tt?Symbol.for("react.strict_mode"):60108,st=tt?Symbol.for("react.profiler"):60114,at=tt?Symbol.for("react.provider"):60109,lt=tt?Symbol.for("react.context"):60110,ut=tt?Symbol.for("react.concurrent_mode"):60111,pt=tt?Symbol.for("react.forward_ref"):60112,ct=tt?Symbol.for("react.suspense"):60113,dt=tt?Symbol.for("react.suspense_list"):60120,ht=tt?Symbol.for("react.memo"):60115,ft=tt?Symbol.for("react.lazy"):60116,gt=tt?Symbol.for("react.block"):60121,yt="function"==typeof Symbol&&Symbol.iterator;function vt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=yt&&e[yt]||e["@@iterator"])?e:null}function mt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case rt:return"Fragment";case nt:return"Portal";case st:return"Profiler";case it:return"StrictMode";case ct:return"Suspense";case dt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case lt:return"Context.Consumer";case at:return"Context.Provider";case pt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ht:return mt(e.type);case gt:return mt(e.render);case ft:if(e=1===e._status?e._result:null)return mt(e)}return null}function Ct(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var o="";break e;default:var n=e._debugOwner,r=e._debugSource,i=mt(e.type);o=null,n&&(o=mt(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace(et,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n in "+(n||"Unknown")+i}t+=o,e=e.return}while(e);return t}function wt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Et(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function bt(e){e._valueTracker||(e._valueTracker=function(e){var t=Et(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set){var r=o.get,i=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Rt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),n="";return e&&(n=Et(e)?e.checked?"true":"false":e.value),(e=n)!==o&&(t.setValue(e),!0)}function Ot(e,t){var o=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=o?o:e._wrapperState.initialChecked})}function St(e,t){var o=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;o=wt(null!=t.value?t.value:o),e._wrapperState={initialChecked:n,initialValue:o,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function _t(e,t){null!=(t=t.checked)&&Je(e,"checked",t,!1)}function Tt(e,t){_t(e,t);var o=wt(t.value),n=t.type;if(null!=o)"number"===n?(0===o&&""===e.value||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Dt(e,t.type,o):t.hasOwnProperty("defaultValue")&&Dt(e,t.type,wt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Pt(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}""!==(o=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==o&&(e.name=o)}function Dt(e,t,o){"number"===t&&e.ownerDocument.activeElement===e||(null==o?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}function At(e,t){return e=se({children:void 0},t),(t=function(e){var t="";return ie.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Nt(e,t,o,n){if(e=e.options,t){t={};for(var r=0;r<o.length;r++)t["$"+o[r]]=!0;for(o=0;o<e.length;o++)r=t.hasOwnProperty("$"+e[o].value),e[o].selected!==r&&(e[o].selected=r),r&&n&&(e[o].defaultSelected=!0)}else{for(o=""+wt(o),t=null,r=0;r<e.length;r++){if(e[r].value===o)return e[r].selected=!0,void(n&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function xt(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(le(91));return se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function It(e,t){var o=t.value;if(null==o){if(o=t.children,t=t.defaultValue,null!=o){if(null!=t)throw Error(le(92));if(Array.isArray(o)){if(!(1>=o.length))throw Error(le(93));o=o[0]}t=o}null==t&&(t=""),o=t}e._wrapperState={initialValue:wt(o)}}function Ft(e,t){var o=wt(t.value),n=wt(t.defaultValue);null!=o&&((o=""+o)!==e.value&&(e.value=o),null==t.defaultValue&&e.defaultValue!==o&&(e.defaultValue=o)),null!=n&&(e.defaultValue=""+n)}function Lt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Mt="http://www.w3.org/1999/xhtml",Gt="http://www.w3.org/2000/svg";function kt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Vt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?kt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Wt,Ht,Bt=(Ht=function(e,t){if(e.namespaceURI!==Gt||"innerHTML"in e)e.innerHTML=t;else{for((Wt=Wt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,o,n){MSApp.execUnsafeLocalFunction((function(){return Ht(e,t)}))}:Ht);function Ut(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&3===o.nodeType)return void(o.nodeValue=t)}e.textContent=t}function jt(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var zt={animationend:jt("Animation","AnimationEnd"),animationiteration:jt("Animation","AnimationIteration"),animationstart:jt("Animation","AnimationStart"),transitionend:jt("Transition","TransitionEnd")},Yt={},Kt={};function qt(e){if(Yt[e])return Yt[e];if(!zt[e])return e;var t,o=zt[e];for(t in o)if(o.hasOwnProperty(t)&&t in Kt)return Yt[e]=o[t];return e}De&&(Kt=document.createElement("div").style,"AnimationEvent"in window||(delete zt.animationend.animation,delete zt.animationiteration.animation,delete zt.animationstart.animation),"TransitionEvent"in window||delete zt.transitionend.transition);var $t=qt("animationend"),Qt=qt("animationiteration"),Xt=qt("animationstart"),Zt=qt("transitionend"),Jt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),eo=new("function"==typeof WeakMap?WeakMap:Map);function to(e){var t=eo.get(e);return void 0===t&&(t=new Map,eo.set(e,t)),t}function oo(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(o=t.return),e=t.return}while(e)}return 3===t.tag?o:null}function no(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function ro(e){if(oo(e)!==e)throw Error(le(188))}function io(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=oo(e)))throw Error(le(188));return t!==e?null:e}for(var o=e,n=t;;){var r=o.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(n=r.return)){o=n;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===o)return ro(r),e;if(i===n)return ro(r),t;i=i.sibling}throw Error(le(188))}if(o.return!==n.return)o=r,n=i;else{for(var s=!1,a=r.child;a;){if(a===o){s=!0,o=r,n=i;break}if(a===n){s=!0,n=r,o=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===o){s=!0,o=i,n=r;break}if(a===n){s=!0,n=i,o=r;break}a=a.sibling}if(!s)throw Error(le(189))}}if(o.alternate!==n)throw Error(le(190))}if(3!==o.tag)throw Error(le(188));return o.stateNode.current===o?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function so(e,t){if(null==t)throw Error(le(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ao(e,t,o){Array.isArray(e)?e.forEach(t,o):e&&t.call(o,e)}var lo=null;function uo(e){if(e){var t=e._dispatchListeners,o=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)Ce(e,t[n],o[n]);else t&&Ce(e,t,o);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function po(e){if(null!==e&&(lo=so(lo,e)),e=lo,lo=null,e){if(ao(e,uo),lo)throw Error(le(95));if(de)throw e=he,de=!1,he=null,e}}function co(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ho(e){if(!De)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var fo=[];function go(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>fo.length&&fo.push(e)}function yo(e,t,o,n){if(fo.length){var r=fo.pop();return r.topLevelType=e,r.eventSystemFlags=n,r.nativeEvent=t,r.targetInst=o,r}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:o,ancestors:[]}}function vo(e){var t=e.targetInst,o=t;do{if(!o){e.ancestors.push(o);break}var n=o;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=o.tag)&&6!==t||e.ancestors.push(o),o=xn(n)}while(o);for(o=0;o<e.ancestors.length;o++){t=e.ancestors[o];var r=co(e.nativeEvent);n=e.topLevelType;var i=e.nativeEvent,s=e.eventSystemFlags;0===o&&(s|=64);for(var a=null,l=0;l<Oe.length;l++){var u=Oe[l];u&&(u=u.extractEvents(n,t,i,r,s))&&(a=so(a,u))}po(a)}}function mo(e,t,o){if(!o.has(e)){switch(e){case"scroll":Zo(t,"scroll",!0);break;case"focus":case"blur":Zo(t,"focus",!0),Zo(t,"blur",!0),o.set("blur",null),o.set("focus",null);break;case"cancel":case"close":ho(e)&&Zo(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Jt.indexOf(e)&&Xo(e,t)}o.set(e,null)}}var Co,wo,Eo,bo=!1,Ro=[],Oo=null,So=null,_o=null,To=new Map,Po=new Map,Do=[],Ao="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),No="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function xo(e,t,o,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|o,nativeEvent:r,container:n}}function Io(e,t){switch(e){case"focus":case"blur":Oo=null;break;case"dragenter":case"dragleave":So=null;break;case"mouseover":case"mouseout":_o=null;break;case"pointerover":case"pointerout":To.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Po.delete(t.pointerId)}}function Fo(e,t,o,n,r,i){return null===e||e.nativeEvent!==i?(e=xo(t,o,n,r,i),null!==t&&(null!==(t=In(t))&&wo(t)),e):(e.eventSystemFlags|=n,e)}function Lo(e){var t=xn(e.target);if(null!==t){var o=oo(t);if(null!==o)if(13===(t=o.tag)){if(null!==(t=no(o)))return e.blockedOn=t,void ae.unstable_runWithPriority(e.priority,(function(){Eo(o)}))}else if(3===t&&o.stateNode.hydrate)return void(e.blockedOn=3===o.tag?o.stateNode.containerInfo:null)}e.blockedOn=null}function Mo(e){if(null!==e.blockedOn)return!1;var t=on(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var o=In(t);return null!==o&&wo(o),e.blockedOn=t,!1}return!0}function Go(e,t,o){Mo(e)&&o.delete(t)}function ko(){for(bo=!1;0<Ro.length;){var e=Ro[0];if(null!==e.blockedOn){null!==(e=In(e.blockedOn))&&Co(e);break}var t=on(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:Ro.shift()}null!==Oo&&Mo(Oo)&&(Oo=null),null!==So&&Mo(So)&&(So=null),null!==_o&&Mo(_o)&&(_o=null),To.forEach(Go),Po.forEach(Go)}function Vo(e,t){e.blockedOn===t&&(e.blockedOn=null,bo||(bo=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,ko)))}function Wo(e){function t(t){return Vo(t,e)}if(0<Ro.length){Vo(Ro[0],e);for(var o=1;o<Ro.length;o++){var n=Ro[o];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Oo&&Vo(Oo,e),null!==So&&Vo(So,e),null!==_o&&Vo(_o,e),To.forEach(t),Po.forEach(t),o=0;o<Do.length;o++)(n=Do[o]).blockedOn===e&&(n.blockedOn=null);for(;0<Do.length&&null===(o=Do[0]).blockedOn;)Lo(o),null===o.blockedOn&&Do.shift()}var Ho={},Bo=new Map,Uo=new Map,jo=["abort","abort",$t,"animationEnd",Qt,"animationIteration",Xt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Zt,"transitionEnd","waiting","waiting"];function zo(e,t){for(var o=0;o<e.length;o+=2){var n=e[o],r=e[o+1],i="on"+(r[0].toUpperCase()+r.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n],eventPriority:t},Uo.set(n,t),Bo.set(n,i),Ho[r]=i}}zo("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),zo("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),zo(jo,2);for(var Yo="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ko=0;Ko<Yo.length;Ko++)Uo.set(Yo[Ko],0);var qo=ae.unstable_UserBlockingPriority,$o=ae.unstable_runWithPriority,Qo=!0;function Xo(e,t){Zo(t,e,!1)}function Zo(e,t,o){var n=Uo.get(t);switch(void 0===n?2:n){case 0:n=Jo.bind(null,t,1,e);break;case 1:n=en.bind(null,t,1,e);break;default:n=tn.bind(null,t,1,e)}o?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Jo(e,t,o,n){We||ke();var r=tn,i=We;We=!0;try{Ge(r,e,t,o,n)}finally{(We=i)||Be()}}function en(e,t,o,n){$o(qo,tn.bind(null,e,t,o,n))}function tn(e,t,o,n){if(Qo)if(0<Ro.length&&-1<Ao.indexOf(e))e=xo(null,e,t,o,n),Ro.push(e);else{var r=on(e,t,o,n);if(null===r)Io(e,n);else if(-1<Ao.indexOf(e))e=xo(r,e,t,o,n),Ro.push(e);else if(!function(e,t,o,n,r){switch(t){case"focus":return Oo=Fo(Oo,e,t,o,n,r),!0;case"dragenter":return So=Fo(So,e,t,o,n,r),!0;case"mouseover":return _o=Fo(_o,e,t,o,n,r),!0;case"pointerover":var i=r.pointerId;return To.set(i,Fo(To.get(i)||null,e,t,o,n,r)),!0;case"gotpointercapture":return i=r.pointerId,Po.set(i,Fo(Po.get(i)||null,e,t,o,n,r)),!0}return!1}(r,e,t,o,n)){Io(e,n),e=yo(e,n,null,t);try{Ue(vo,e)}finally{go(e)}}}}function on(e,t,o,n){if(null!==(o=xn(o=co(n)))){var r=oo(o);if(null===r)o=null;else{var i=r.tag;if(13===i){if(null!==(o=no(r)))return o;o=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;o=null}else r!==o&&(o=null)}}e=yo(e,n,o,t);try{Ue(vo,e)}finally{go(e)}return null}var nn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rn=["Webkit","ms","Moz","O"];function sn(e,t,o){return null==t||"boolean"==typeof t||""===t?"":o||"number"!=typeof t||0===t||nn.hasOwnProperty(e)&&nn[e]?(""+t).trim():t+"px"}function an(e,t){for(var o in e=e.style,t)if(t.hasOwnProperty(o)){var n=0===o.indexOf("--"),r=sn(o,t[o],n);"float"===o&&(o="cssFloat"),n?e.setProperty(o,r):e[o]=r}}Object.keys(nn).forEach((function(e){rn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nn[t]=nn[e]}))}));var ln=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function un(e,t){if(t){if(ln[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(le(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(le(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(le(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(le(62,""))}}function pn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){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 cn=Mt;function dn(e,t){var o=to(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=Te[t];for(var n=0;n<t.length;n++)mo(t[n],e,o)}function hn(){}function fn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function gn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yn(e,t){var o,n=gn(e);for(e=0;n;){if(3===n.nodeType){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gn(n)}}function vn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var o="string"==typeof t.contentWindow.location.href}catch(n){o=!1}if(!o)break;t=fn((e=t.contentWindow).document)}return t}function Cn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var wn=null,En=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Rn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var On="function"==typeof setTimeout?setTimeout:void 0,Sn="function"==typeof clearTimeout?clearTimeout:void 0;function _n(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Tn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var o=e.data;if("$"===o||"$!"===o||"$?"===o){if(0===t)return e;t--}else"/$"===o&&t++}e=e.previousSibling}return null}var Pn=Math.random().toString(36).slice(2),Dn="__reactInternalInstance$"+Pn,An="__reactEventHandlers$"+Pn,Nn="__reactContainere$"+Pn;function xn(e){var t=e[Dn];if(t)return t;for(var o=e.parentNode;o;){if(t=o[Nn]||o[Dn]){if(o=t.alternate,null!==t.child||null!==o&&null!==o.child)for(e=Tn(e);null!==e;){if(o=e[Dn])return o;e=Tn(e)}return t}o=(e=o).parentNode}return null}function In(e){return!(e=e[Dn]||e[Nn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Fn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(le(33))}function Ln(e){return e[An]||null}function Mn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Gn(e,t){var o=e.stateNode;if(!o)return null;var n=ye(o);if(!n)return null;o=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(o&&"function"!=typeof o)throw Error(le(231,t,typeof o));return o}function kn(e,t,o){(t=Gn(e,o.dispatchConfig.phasedRegistrationNames[t]))&&(o._dispatchListeners=so(o._dispatchListeners,t),o._dispatchInstances=so(o._dispatchInstances,e))}function Vn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,o=[];t;)o.push(t),t=Mn(t);for(t=o.length;0<t--;)kn(o[t],"captured",e);for(t=0;t<o.length;t++)kn(o[t],"bubbled",e)}}function Wn(e,t,o){e&&o&&o.dispatchConfig.registrationName&&(t=Gn(e,o.dispatchConfig.registrationName))&&(o._dispatchListeners=so(o._dispatchListeners,t),o._dispatchInstances=so(o._dispatchInstances,e))}function Hn(e){e&&e.dispatchConfig.registrationName&&Wn(e._targetInst,null,e)}function Bn(e){ao(e,Vn)}var Un=null,jn=null,zn=null;function Yn(){if(zn)return zn;var e,t,o=jn,n=o.length,r="value"in Un?Un.value:Un.textContent,i=r.length;for(e=0;e<n&&o[e]===r[e];e++);var s=n-e;for(t=1;t<=s&&o[n-t]===r[i-t];t++);return zn=r.slice(e,1<t?1-t:void 0)}function Kn(){return!0}function qn(){return!1}function $n(e,t,o,n){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=o,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(o):"target"===r?this.target=n:this[r]=o[r]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Kn:qn,this.isPropagationStopped=qn,this}function Qn(e,t,o,n){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,o,n),r}return new this(e,t,o,n)}function Xn(e){if(!(e instanceof this))throw Error(le(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Zn(e){e.eventPool=[],e.getPooled=Qn,e.release=Xn}se($n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kn)},persist:function(){this.isPersistent=Kn},isPersistent:qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),$n.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},$n.extend=function(e){function t(){}function o(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var r=new t;return se(r,o.prototype),o.prototype=r,o.prototype.constructor=o,o.Interface=se({},n.Interface,e),o.extend=n.extend,Zn(o),o},Zn($n);var Jn=$n.extend({data:null}),er=$n.extend({data:null}),tr=[9,13,27,32],or=De&&"CompositionEvent"in window,nr=null;De&&"documentMode"in document&&(nr=document.documentMode);var rr=De&&"TextEvent"in window&&!nr,ir=De&&(!or||nr&&8<nr&&11>=nr),sr=String.fromCharCode(32),ar={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},lr=!1;function ur(e,t){switch(e){case"keyup":return-1!==tr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function pr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1;var dr={eventTypes:ar,extractEvents:function(e,t,o,n){var r;if(or)e:{switch(e){case"compositionstart":var i=ar.compositionStart;break e;case"compositionend":i=ar.compositionEnd;break e;case"compositionupdate":i=ar.compositionUpdate;break e}i=void 0}else cr?ur(e,o)&&(i=ar.compositionEnd):"keydown"===e&&229===o.keyCode&&(i=ar.compositionStart);return i?(ir&&"ko"!==o.locale&&(cr||i!==ar.compositionStart?i===ar.compositionEnd&&cr&&(r=Yn()):(jn="value"in(Un=n)?Un.value:Un.textContent,cr=!0)),i=Jn.getPooled(i,t,o,n),r?i.data=r:null!==(r=pr(o))&&(i.data=r),Bn(i),r=i):r=null,(e=rr?function(e,t){switch(e){case"compositionend":return pr(t);case"keypress":return 32!==t.which?null:(lr=!0,sr);case"textInput":return(e=t.data)===sr&&lr?null:e;default:return null}}(e,o):function(e,t){if(cr)return"compositionend"===e||!or&&ur(e,t)?(e=Yn(),zn=jn=Un=null,cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ir&&"ko"!==t.locale?null:t.data;default:return null}}(e,o))?((t=er.getPooled(ar.beforeInput,t,o,n)).data=e,Bn(t)):t=null,null===r?t:null===t?r:[r,t]}},hr={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 fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!hr[e.type]:"textarea"===t}var gr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function yr(e,t,o){return(e=$n.getPooled(gr.change,e,t,o)).type="change",Fe(o),Bn(e),e}var vr=null,mr=null;function Cr(e){po(e)}function wr(e){if(Rt(Fn(e)))return e}function Er(e,t){if("change"===e)return t}var br=!1;function Rr(){vr&&(vr.detachEvent("onpropertychange",Or),mr=vr=null)}function Or(e){if("value"===e.propertyName&&wr(mr))if(e=yr(mr,e,co(e)),We)po(e);else{We=!0;try{Me(Cr,e)}finally{We=!1,Be()}}}function Sr(e,t,o){"focus"===e?(Rr(),mr=o,(vr=t).attachEvent("onpropertychange",Or)):"blur"===e&&Rr()}function _r(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return wr(mr)}function Tr(e,t){if("click"===e)return wr(t)}function Pr(e,t){if("input"===e||"change"===e)return wr(t)}De&&(br=ho("input")&&(!document.documentMode||9<document.documentMode));var Dr={eventTypes:gr,_isInputEventSupported:br,extractEvents:function(e,t,o,n){var r=t?Fn(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var s=Er;else if(fr(r))if(br)s=Pr;else{s=_r;var a=Sr}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(s=Tr);if(s&&(s=s(e,t)))return yr(s,o,n);a&&a(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Dt(r,"number",r.value)}},Ar=$n.extend({view:null,detail:null}),Nr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Nr[e])&&!!t[e]}function Ir(){return xr}var Fr=0,Lr=0,Mr=!1,Gr=!1,kr=Ar.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Fr;return Fr=e.screenX,Mr?"mousemove"===e.type?e.screenX-t:0:(Mr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Lr;return Lr=e.screenY,Gr?"mousemove"===e.type?e.screenY-t:0:(Gr=!0,0)}}),Vr=kr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Wr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Hr={eventTypes:Wr,extractEvents:function(e,t,o,n,r){var i="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(i&&0==(32&r)&&(o.relatedTarget||o.fromElement)||!s&&!i)return null;(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,s)?(s=t,null!==(t=(t=o.relatedTarget||o.toElement)?xn(t):null)&&(t!==oo(t)||5!==t.tag&&6!==t.tag)&&(t=null)):s=null;if(s===t)return null;if("mouseout"===e||"mouseover"===e)var a=kr,l=Wr.mouseLeave,u=Wr.mouseEnter,p="mouse";else"pointerout"!==e&&"pointerover"!==e||(a=Vr,l=Wr.pointerLeave,u=Wr.pointerEnter,p="pointer");if(e=null==s?i:Fn(s),i=null==t?i:Fn(t),(l=a.getPooled(l,s,o,n)).type=p+"leave",l.target=e,l.relatedTarget=i,(o=a.getPooled(u,t,o,n)).type=p+"enter",o.target=i,o.relatedTarget=e,p=t,(n=s)&&p)e:{for(u=p,s=0,e=a=n;e;e=Mn(e))s++;for(e=0,t=u;t;t=Mn(t))e++;for(;0<s-e;)a=Mn(a),s--;for(;0<e-s;)u=Mn(u),e--;for(;s--;){if(a===u||a===u.alternate)break e;a=Mn(a),u=Mn(u)}a=null}else a=null;for(u=a,a=[];n&&n!==u&&(null===(s=n.alternate)||s!==u);)a.push(n),n=Mn(n);for(n=[];p&&p!==u&&(null===(s=p.alternate)||s!==u);)n.push(p),p=Mn(p);for(p=0;p<a.length;p++)Wn(a[p],"bubbled",l);for(p=n.length;0<p--;)Wn(n[p],"captured",o);return 0==(64&r)?[l]:[l,o]}};var Br="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ur=Object.prototype.hasOwnProperty;function jr(e,t){if(Br(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(n=0;n<o.length;n++)if(!Ur.call(t,o[n])||!Br(e[o[n]],t[o[n]]))return!1;return!0}var zr=De&&"documentMode"in document&&11>=document.documentMode,Yr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Kr=null,qr=null,$r=null,Qr=!1;function Xr(e,t){var o=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Qr||null==Kr||Kr!==fn(o)?null:("selectionStart"in(o=Kr)&&Cn(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},$r&&jr($r,o)?null:($r=o,(e=$n.getPooled(Yr.select,qr,e,t)).type="select",e.target=Kr,Bn(e),e))}var Zr={eventTypes:Yr,extractEvents:function(e,t,o,n,r,i){if(!(i=!(r=i||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{r=to(r),i=Te.onSelect;for(var s=0;s<i.length;s++)if(!r.has(i[s])){r=!1;break e}r=!0}i=!r}if(i)return null;switch(r=t?Fn(t):window,e){case"focus":(fr(r)||"true"===r.contentEditable)&&(Kr=r,qr=t,$r=null);break;case"blur":$r=qr=Kr=null;break;case"mousedown":Qr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Qr=!1,Xr(o,n);case"selectionchange":if(zr)break;case"keydown":case"keyup":return Xr(o,n)}return null}},Jr=$n.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ei=$n.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ti=Ar.extend({relatedTarget:null});function oi(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ni={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ri={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"},ii=Ar.extend({key:function(e){if(e.key){var t=ni[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=oi(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ri[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(e){return"keypress"===e.type?oi(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?oi(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),si=kr.extend({dataTransfer:null}),ai=Ar.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),li=$n.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ui=kr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),pi={eventTypes:Ho,extractEvents:function(e,t,o,n){var r=Bo.get(e);if(!r)return null;switch(e){case"keypress":if(0===oi(o))return null;case"keydown":case"keyup":e=ii;break;case"blur":case"focus":e=ti;break;case"click":if(2===o.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=si;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ai;break;case $t:case Qt:case Xt:e=Jr;break;case Zt:e=li;break;case"scroll":e=Ar;break;case"wheel":e=ui;break;case"copy":case"cut":case"paste":e=ei;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Vr;break;default:e=$n}return Bn(t=e.getPooled(r,t,o,n)),t}};if(we)throw Error(le(101));we=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),be(),ye=Ln,ve=In,me=Fn,Pe({SimpleEventPlugin:pi,EnterLeaveEventPlugin:Hr,ChangeEventPlugin:Dr,SelectEventPlugin:Zr,BeforeInputEventPlugin:dr});var ci=[],di=-1;function hi(e){0>di||(e.current=ci[di],ci[di]=null,di--)}function fi(e,t){di++,ci[di]=e.current,e.current=t}var gi={},yi={current:gi},vi={current:!1},mi=gi;function Ci(e,t){var o=e.type.contextTypes;if(!o)return gi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in o)i[r]=t[r];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wi(e){return null!=(e=e.childContextTypes)}function Ei(){hi(vi),hi(yi)}function bi(e,t,o){if(yi.current!==gi)throw Error(le(168));fi(yi,t),fi(vi,o)}function Ri(e,t,o){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return o;for(var r in n=n.getChildContext())if(!(r in e))throw Error(le(108,mt(t)||"Unknown",r));return se({},o,{},n)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gi,mi=yi.current,fi(yi,e),fi(vi,vi.current),!0}function Si(e,t,o){var n=e.stateNode;if(!n)throw Error(le(169));o?(e=Ri(e,t,mi),n.__reactInternalMemoizedMergedChildContext=e,hi(vi),hi(yi),fi(yi,e)):hi(vi),fi(vi,o)}var _i=ae.unstable_runWithPriority,Ti=ae.unstable_scheduleCallback,Pi=ae.unstable_cancelCallback,Di=ae.unstable_requestPaint,Ai=ae.unstable_now,Ni=ae.unstable_getCurrentPriorityLevel,xi=ae.unstable_ImmediatePriority,Ii=ae.unstable_UserBlockingPriority,Fi=ae.unstable_NormalPriority,Li=ae.unstable_LowPriority,Mi=ae.unstable_IdlePriority,Gi={},ki=ae.unstable_shouldYield,Vi=void 0!==Di?Di:function(){},Wi=null,Hi=null,Bi=!1,Ui=Ai(),ji=1e4>Ui?Ai:function(){return Ai()-Ui};function zi(){switch(Ni()){case xi:return 99;case Ii:return 98;case Fi:return 97;case Li:return 96;case Mi:return 95;default:throw Error(le(332))}}function Yi(e){switch(e){case 99:return xi;case 98:return Ii;case 97:return Fi;case 96:return Li;case 95:return Mi;default:throw Error(le(332))}}function Ki(e,t){return e=Yi(e),_i(e,t)}function qi(e,t,o){return e=Yi(e),Ti(e,t,o)}function $i(e){return null===Wi?(Wi=[e],Hi=Ti(xi,Xi)):Wi.push(e),Gi}function Qi(){if(null!==Hi){var e=Hi;Hi=null,Pi(e)}Xi()}function Xi(){if(!Bi&&null!==Wi){Bi=!0;var e=0;try{var t=Wi;Ki(99,(function(){for(;e<t.length;e++){var o=t[e];do{o=o(!0)}while(null!==o)}})),Wi=null}catch(o){throw null!==Wi&&(Wi=Wi.slice(e+1)),Ti(xi,Qi),o}finally{Bi=!1}}}function Zi(e,t,o){return 1073741821-(1+((1073741821-e+t/10)/(o/=10)|0))*o}function Ji(e,t){if(e&&e.defaultProps)for(var o in t=se({},t),e=e.defaultProps)void 0===t[o]&&(t[o]=e[o]);return t}var es={current:null},ts=null,os=null,ns=null;function rs(){ns=os=ts=null}function is(e){var t=es.current;hi(es),e.type._context._currentValue=t}function ss(e,t){for(;null!==e;){var o=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==o&&o.childExpirationTime<t&&(o.childExpirationTime=t);else{if(!(null!==o&&o.childExpirationTime<t))break;o.childExpirationTime=t}e=e.return}}function as(e,t){ts=e,ns=os=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Fa=!0),e.firstContext=null)}function ls(e,t){if(ns!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ns=e,t=1073741823),t={context:e,observedBits:t,next:null},null===os){if(null===ts)throw Error(le(308));os=t,ts.dependencies={expirationTime:0,firstContext:t,responders:null}}else os=os.next=t;return e._currentValue}var us=!1;function ps(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function cs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ds(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function hs(e,t){if(null!==(e=e.updateQueue)){var o=(e=e.shared).pending;null===o?t.next=t:(t.next=o.next,o.next=t),e.pending=t}}function fs(e,t){var o=e.alternate;null!==o&&cs(o,e),null===(o=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=o.next,o.next=t)}function gs(e,t,o,n){var r=e.updateQueue;us=!1;var i=r.baseQueue,s=r.shared.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}i=s,r.shared.pending=null,null!==(a=e.alternate)&&(null!==(a=a.updateQueue)&&(a.baseQueue=s))}if(null!==i){a=i.next;var l=r.baseState,u=0,p=null,c=null,d=null;if(null!==a)for(var h=a;;){if((s=h.expirationTime)<n){var f={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===d?(c=d=f,p=l):d=d.next=f,s>u&&(u=s)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),cu(s,h.suspenseConfig);e:{var g=e,y=h;switch(s=t,f=o,y.tag){case 1:if("function"==typeof(g=y.payload)){l=g.call(f,l,s);break e}l=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=y.payload)?g.call(f,l,s):g))break e;l=se({},l,s);break e;case 2:us=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=r.effects)?r.effects=[h]:s.push(h))}if(null===(h=h.next)||h===a){if(null===(s=r.shared.pending))break;h=i.next=s.next,s.next=a,r.baseQueue=i=s,r.shared.pending=null}}null===d?p=l:d.next=c,r.baseState=p,r.baseQueue=d,du(u),e.expirationTime=u,e.memoizedState=l}}function ys(e,t,o){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],r=n.callback;if(null!==r){if(n.callback=null,n=r,r=o,"function"!=typeof n)throw Error(le(191,n));n.call(r)}}}var vs=Ze.ReactCurrentBatchConfig,ms=(new ie.Component).refs;function Cs(e,t,o,n){o=null==(o=o(n,t=e.memoizedState))?t:se({},t,o),e.memoizedState=o,0===e.expirationTime&&(e.updateQueue.baseState=o)}var ws={isMounted:function(e){return!!(e=e._reactInternalFiber)&&oo(e)===e},enqueueSetState:function(e,t,o){e=e._reactInternalFiber;var n=Zl(),r=vs.suspense;(r=ds(n=Jl(n,e,r),r)).payload=t,null!=o&&(r.callback=o),hs(e,r),eu(e,n)},enqueueReplaceState:function(e,t,o){e=e._reactInternalFiber;var n=Zl(),r=vs.suspense;(r=ds(n=Jl(n,e,r),r)).tag=1,r.payload=t,null!=o&&(r.callback=o),hs(e,r),eu(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var o=Zl(),n=vs.suspense;(n=ds(o=Jl(o,e,n),n)).tag=2,null!=t&&(n.callback=t),hs(e,n),eu(e,o)}};function Es(e,t,o,n,r,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!jr(o,n)||!jr(r,i))}function bs(e,t,o){var n=!1,r=gi,i=t.contextType;return"object"==typeof i&&null!==i?i=ls(i):(r=wi(t)?mi:yi.current,i=(n=null!=(n=t.contextTypes))?Ci(e,r):gi),t=new t(o,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ws,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Rs(e,t,o,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(o,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(o,n),t.state!==e&&ws.enqueueReplaceState(t,t.state,null)}function Os(e,t,o,n){var r=e.stateNode;r.props=o,r.state=e.memoizedState,r.refs=ms,ps(e);var i=t.contextType;"object"==typeof i&&null!==i?r.context=ls(i):(i=wi(t)?mi:yi.current,r.context=Ci(e,i)),gs(e,o,r,n),r.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Cs(e,t,i,o),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&ws.enqueueReplaceState(r,r.state,null),gs(e,o,r,n),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var Ss=Array.isArray;function _s(e,t,o){if(null!==(e=o.ref)&&"function"!=typeof e&&"object"!=typeof e){if(o._owner){if(o=o._owner){if(1!==o.tag)throw Error(le(309));var n=o.stateNode}if(!n)throw Error(le(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=n.refs;t===ms&&(t=n.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(le(284));if(!o._owner)throw Error(le(290,e))}return e}function Ts(e,t){if("textarea"!==e.type)throw Error(le(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ps(e){function t(t,o){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=o,t.lastEffect=o):t.firstEffect=t.lastEffect=o,o.nextEffect=null,o.effectTag=8}}function o(o,n){if(!e)return null;for(;null!==n;)t(o,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=xu(e,t)).index=0,e.sibling=null,e}function i(t,o,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<o?(t.effectTag=2,o):n:(t.effectTag=2,o):o}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function a(e,t,o,n){return null===t||6!==t.tag?((t=Lu(o,e.mode,n)).return=e,t):((t=r(t,o)).return=e,t)}function l(e,t,o,n){return null!==t&&t.elementType===o.type?((n=r(t,o.props)).ref=_s(e,t,o),n.return=e,n):((n=Iu(o.type,o.key,o.props,null,e.mode,n)).ref=_s(e,t,o),n.return=e,n)}function u(e,t,o,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==o.containerInfo||t.stateNode.implementation!==o.implementation?((t=Mu(o,e.mode,n)).return=e,t):((t=r(t,o.children||[])).return=e,t)}function p(e,t,o,n,i){return null===t||7!==t.tag?((t=Fu(o,e.mode,n,i)).return=e,t):((t=r(t,o)).return=e,t)}function c(e,t,o){if("string"==typeof t||"number"==typeof t)return(t=Lu(""+t,e.mode,o)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ot:return(o=Iu(t.type,t.key,t.props,null,e.mode,o)).ref=_s(e,null,t),o.return=e,o;case nt:return(t=Mu(t,e.mode,o)).return=e,t}if(Ss(t)||vt(t))return(t=Fu(t,e.mode,o,null)).return=e,t;Ts(e,t)}return null}function d(e,t,o,n){var r=null!==t?t.key:null;if("string"==typeof o||"number"==typeof o)return null!==r?null:a(e,t,""+o,n);if("object"==typeof o&&null!==o){switch(o.$$typeof){case ot:return o.key===r?o.type===rt?p(e,t,o.props.children,n,r):l(e,t,o,n):null;case nt:return o.key===r?u(e,t,o,n):null}if(Ss(o)||vt(o))return null!==r?null:p(e,t,o,n,null);Ts(e,o)}return null}function h(e,t,o,n,r){if("string"==typeof n||"number"==typeof n)return a(t,e=e.get(o)||null,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ot:return e=e.get(null===n.key?o:n.key)||null,n.type===rt?p(t,e,n.props.children,r,n.key):l(t,e,n,r);case nt:return u(t,e=e.get(null===n.key?o:n.key)||null,n,r)}if(Ss(n)||vt(n))return p(t,e=e.get(o)||null,n,r,null);Ts(t,n)}return null}return function(a,l,u,p){var f="object"==typeof u&&null!==u&&u.type===rt&&null===u.key;f&&(u=u.props.children);var g="object"==typeof u&&null!==u;if(g)switch(u.$$typeof){case ot:e:{for(g=u.key,f=l;null!==f;){if(f.key===g){switch(f.tag){case 7:if(u.type===rt){o(a,f.sibling),(l=r(f,u.props.children)).return=a,a=l;break e}break;default:if(f.elementType===u.type){o(a,f.sibling),(l=r(f,u.props)).ref=_s(a,f,u),l.return=a,a=l;break e}}o(a,f);break}t(a,f),f=f.sibling}u.type===rt?((l=Fu(u.props.children,a.mode,p,u.key)).return=a,a=l):((p=Iu(u.type,u.key,u.props,null,a.mode,p)).ref=_s(a,l,u),p.return=a,a=p)}return s(a);case nt:e:{for(f=u.key;null!==l;){if(l.key===f){if(4===l.tag&&l.stateNode.containerInfo===u.containerInfo&&l.stateNode.implementation===u.implementation){o(a,l.sibling),(l=r(l,u.children||[])).return=a,a=l;break e}o(a,l);break}t(a,l),l=l.sibling}(l=Mu(u,a.mode,p)).return=a,a=l}return s(a)}if("string"==typeof u||"number"==typeof u)return u=""+u,null!==l&&6===l.tag?(o(a,l.sibling),(l=r(l,u)).return=a,a=l):(o(a,l),(l=Lu(u,a.mode,p)).return=a,a=l),s(a);if(Ss(u))return function(r,s,a,l){for(var u=null,p=null,f=s,g=s=0,y=null;null!==f&&g<a.length;g++){f.index>g?(y=f,f=null):y=f.sibling;var v=d(r,f,a[g],l);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(r,f),s=i(v,s,g),null===p?u=v:p.sibling=v,p=v,f=y}if(g===a.length)return o(r,f),u;if(null===f){for(;g<a.length;g++)null!==(f=c(r,a[g],l))&&(s=i(f,s,g),null===p?u=f:p.sibling=f,p=f);return u}for(f=n(r,f);g<a.length;g++)null!==(y=h(f,r,g,a[g],l))&&(e&&null!==y.alternate&&f.delete(null===y.key?g:y.key),s=i(y,s,g),null===p?u=y:p.sibling=y,p=y);return e&&f.forEach((function(e){return t(r,e)})),u}(a,l,u,p);if(vt(u))return function(r,s,a,l){var u=vt(a);if("function"!=typeof u)throw Error(le(150));if(null==(a=u.call(a)))throw Error(le(151));for(var p=u=null,f=s,g=s=0,y=null,v=a.next();null!==f&&!v.done;g++,v=a.next()){f.index>g?(y=f,f=null):y=f.sibling;var m=d(r,f,v.value,l);if(null===m){null===f&&(f=y);break}e&&f&&null===m.alternate&&t(r,f),s=i(m,s,g),null===p?u=m:p.sibling=m,p=m,f=y}if(v.done)return o(r,f),u;if(null===f){for(;!v.done;g++,v=a.next())null!==(v=c(r,v.value,l))&&(s=i(v,s,g),null===p?u=v:p.sibling=v,p=v);return u}for(f=n(r,f);!v.done;g++,v=a.next())null!==(v=h(f,r,g,v.value,l))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),s=i(v,s,g),null===p?u=v:p.sibling=v,p=v);return e&&f.forEach((function(e){return t(r,e)})),u}(a,l,u,p);if(g&&Ts(a,u),void 0===u&&!f)switch(a.tag){case 1:case 0:throw a=a.type,Error(le(152,a.displayName||a.name||"Component"))}return o(a,l)}}var Ds=Ps(!0),As=Ps(!1),Ns={},xs={current:Ns},Is={current:Ns},Fs={current:Ns};function Ls(e){if(e===Ns)throw Error(le(174));return e}function Ms(e,t){switch(fi(Fs,t),fi(Is,e),fi(xs,Ns),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vt(null,"");break;default:t=Vt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}hi(xs),fi(xs,t)}function Gs(){hi(xs),hi(Is),hi(Fs)}function ks(e){Ls(Fs.current);var t=Ls(xs.current),o=Vt(t,e.type);t!==o&&(fi(Is,e),fi(xs,o))}function Vs(e){Is.current===e&&(hi(xs),hi(Is))}var Ws={current:0};function Hs(e){for(var t=e;null!==t;){if(13===t.tag){var o=t.memoizedState;if(null!==o&&(null===(o=o.dehydrated)||"$?"===o.data||"$!"===o.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Bs(e,t){return{responder:e,props:t}}var Us=Ze.ReactCurrentDispatcher,js=Ze.ReactCurrentBatchConfig,zs=0,Ys=null,Ks=null,qs=null,$s=!1;function Qs(){throw Error(le(321))}function Xs(e,t){if(null===t)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!Br(e[o],t[o]))return!1;return!0}function Zs(e,t,o,n,r,i){if(zs=i,Ys=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Us.current=null===e||null===e.memoizedState?Ea:ba,e=o(n,r),t.expirationTime===zs){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(le(301));i+=1,qs=Ks=null,t.updateQueue=null,Us.current=Ra,e=o(n,r)}while(t.expirationTime===zs)}if(Us.current=wa,t=null!==Ks&&null!==Ks.next,zs=0,qs=Ks=Ys=null,$s=!1,t)throw Error(le(300));return e}function Js(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qs?Ys.memoizedState=qs=e:qs=qs.next=e,qs}function ea(){if(null===Ks){var e=Ys.alternate;e=null!==e?e.memoizedState:null}else e=Ks.next;var t=null===qs?Ys.memoizedState:qs.next;if(null!==t)qs=t,Ks=e;else{if(null===e)throw Error(le(310));e={memoizedState:(Ks=e).memoizedState,baseState:Ks.baseState,baseQueue:Ks.baseQueue,queue:Ks.queue,next:null},null===qs?Ys.memoizedState=qs=e:qs=qs.next=e}return qs}function ta(e,t){return"function"==typeof t?t(e):t}function oa(e){var t=ea(),o=t.queue;if(null===o)throw Error(le(311));o.lastRenderedReducer=e;var n=Ks,r=n.baseQueue,i=o.pending;if(null!==i){if(null!==r){var s=r.next;r.next=i.next,i.next=s}n.baseQueue=r=i,o.pending=null}if(null!==r){r=r.next,n=n.baseState;var a=s=i=null,l=r;do{var u=l.expirationTime;if(u<zs){var p={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===a?(s=a=p,i=n):a=a.next=p,u>Ys.expirationTime&&(Ys.expirationTime=u,du(u))}else null!==a&&(a=a.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),cu(u,l.suspenseConfig),n=l.eagerReducer===e?l.eagerState:e(n,l.action);l=l.next}while(null!==l&&l!==r);null===a?i=n:a.next=s,Br(n,t.memoizedState)||(Fa=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=a,o.lastRenderedState=n}return[t.memoizedState,o.dispatch]}function na(e){var t=ea(),o=t.queue;if(null===o)throw Error(le(311));o.lastRenderedReducer=e;var n=o.dispatch,r=o.pending,i=t.memoizedState;if(null!==r){o.pending=null;var s=r=r.next;do{i=e(i,s.action),s=s.next}while(s!==r);Br(i,t.memoizedState)||(Fa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),o.lastRenderedState=i}return[i,n]}function ra(e){var t=Js();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e}).dispatch=Ca.bind(null,Ys,e),[t.memoizedState,e]}function ia(e,t,o,n){return e={tag:e,create:t,destroy:o,deps:n,next:null},null===(t=Ys.updateQueue)?(t={lastEffect:null},Ys.updateQueue=t,t.lastEffect=e.next=e):null===(o=t.lastEffect)?t.lastEffect=e.next=e:(n=o.next,o.next=e,e.next=n,t.lastEffect=e),e}function sa(){return ea().memoizedState}function aa(e,t,o,n){var r=Js();Ys.effectTag|=e,r.memoizedState=ia(1|t,o,void 0,void 0===n?null:n)}function la(e,t,o,n){var r=ea();n=void 0===n?null:n;var i=void 0;if(null!==Ks){var s=Ks.memoizedState;if(i=s.destroy,null!==n&&Xs(n,s.deps))return void ia(t,o,i,n)}Ys.effectTag|=e,r.memoizedState=ia(1|t,o,i,n)}function ua(e,t){return aa(516,4,e,t)}function pa(e,t){return la(516,4,e,t)}function ca(e,t){return la(4,2,e,t)}function da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ha(e,t,o){return o=null!=o?o.concat([e]):null,la(4,2,da.bind(null,t,e),o)}function fa(){}function ga(e,t){return Js().memoizedState=[e,void 0===t?null:t],e}function ya(e,t){var o=ea();t=void 0===t?null:t;var n=o.memoizedState;return null!==n&&null!==t&&Xs(t,n[1])?n[0]:(o.memoizedState=[e,t],e)}function va(e,t){var o=ea();t=void 0===t?null:t;var n=o.memoizedState;return null!==n&&null!==t&&Xs(t,n[1])?n[0]:(e=e(),o.memoizedState=[e,t],e)}function ma(e,t,o){var n=zi();Ki(98>n?98:n,(function(){e(!0)})),Ki(97<n?97:n,(function(){var n=js.suspense;js.suspense=void 0===t?null:t;try{e(!1),o()}finally{js.suspense=n}}))}function Ca(e,t,o){var n=Zl(),r=vs.suspense;r={expirationTime:n=Jl(n,e,r),suspenseConfig:r,action:o,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?r.next=r:(r.next=i.next,i.next=r),t.pending=r,i=e.alternate,e===Ys||null!==i&&i===Ys)$s=!0,r.expirationTime=zs,Ys.expirationTime=zs;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,o);if(r.eagerReducer=i,r.eagerState=a,Br(a,s))return}catch(l){}eu(e,n)}}var wa={readContext:ls,useCallback:Qs,useContext:Qs,useEffect:Qs,useImperativeHandle:Qs,useLayoutEffect:Qs,useMemo:Qs,useReducer:Qs,useRef:Qs,useState:Qs,useDebugValue:Qs,useResponder:Qs,useDeferredValue:Qs,useTransition:Qs},Ea={readContext:ls,useCallback:ga,useContext:ls,useEffect:ua,useImperativeHandle:function(e,t,o){return o=null!=o?o.concat([e]):null,aa(4,2,da.bind(null,t,e),o)},useLayoutEffect:function(e,t){return aa(4,2,e,t)},useMemo:function(e,t){var o=Js();return t=void 0===t?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var n=Js();return t=void 0!==o?o(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ca.bind(null,Ys,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Js().memoizedState=e},useState:ra,useDebugValue:fa,useResponder:Bs,useDeferredValue:function(e,t){var o=ra(e),n=o[0],r=o[1];return ua((function(){var o=js.suspense;js.suspense=void 0===t?null:t;try{r(e)}finally{js.suspense=o}}),[e,t]),n},useTransition:function(e){var t=ra(!1),o=t[0];return t=t[1],[ga(ma.bind(null,t,e),[t,e]),o]}},ba={readContext:ls,useCallback:ya,useContext:ls,useEffect:pa,useImperativeHandle:ha,useLayoutEffect:ca,useMemo:va,useReducer:oa,useRef:sa,useState:function(){return oa(ta)},useDebugValue:fa,useResponder:Bs,useDeferredValue:function(e,t){var o=oa(ta),n=o[0],r=o[1];return pa((function(){var o=js.suspense;js.suspense=void 0===t?null:t;try{r(e)}finally{js.suspense=o}}),[e,t]),n},useTransition:function(e){var t=oa(ta),o=t[0];return t=t[1],[ya(ma.bind(null,t,e),[t,e]),o]}},Ra={readContext:ls,useCallback:ya,useContext:ls,useEffect:pa,useImperativeHandle:ha,useLayoutEffect:ca,useMemo:va,useReducer:na,useRef:sa,useState:function(){return na(ta)},useDebugValue:fa,useResponder:Bs,useDeferredValue:function(e,t){var o=na(ta),n=o[0],r=o[1];return pa((function(){var o=js.suspense;js.suspense=void 0===t?null:t;try{r(e)}finally{js.suspense=o}}),[e,t]),n},useTransition:function(e){var t=na(ta),o=t[0];return t=t[1],[ya(ma.bind(null,t,e),[t,e]),o]}},Oa=null,Sa=null,_a=!1;function Ta(e,t){var o=Au(5,null,null,0);o.elementType="DELETED",o.type="DELETED",o.stateNode=t,o.return=e,o.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=o,e.lastEffect=o):e.firstEffect=e.lastEffect=o}function Pa(e,t){switch(e.tag){case 5:var o=e.type;return null!==(t=1!==t.nodeType||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Da(e){if(_a){var t=Sa;if(t){var o=t;if(!Pa(e,t)){if(!(t=_n(o.nextSibling))||!Pa(e,t))return e.effectTag=-1025&e.effectTag|2,_a=!1,void(Oa=e);Ta(Oa,o)}Oa=e,Sa=_n(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,_a=!1,Oa=e}}function Aa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Oa=e}function Na(e){if(e!==Oa)return!1;if(!_a)return Aa(e),_a=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Rn(t,e.memoizedProps))for(t=Sa;t;)Ta(e,t),t=_n(t.nextSibling);if(Aa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(le(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var o=e.data;if("/$"===o){if(0===t){Sa=_n(e.nextSibling);break e}t--}else"$"!==o&&"$!"!==o&&"$?"!==o||t++}e=e.nextSibling}Sa=null}}else Sa=Oa?_n(e.stateNode.nextSibling):null;return!0}function xa(){Sa=Oa=null,_a=!1}var Ia=Ze.ReactCurrentOwner,Fa=!1;function La(e,t,o,n){t.child=null===e?As(t,null,o,n):Ds(t,e.child,o,n)}function Ma(e,t,o,n,r){o=o.render;var i=t.ref;return as(t,r),n=Zs(e,t,o,n,i,r),null===e||Fa?(t.effectTag|=1,La(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Za(e,t,r))}function Ga(e,t,o,n,r,i){if(null===e){var s=o.type;return"function"!=typeof s||Nu(s)||void 0!==s.defaultProps||null!==o.compare||void 0!==o.defaultProps?((e=Iu(o.type,null,n,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,ka(e,t,s,n,r,i))}return s=e.child,r<i&&(r=s.memoizedProps,(o=null!==(o=o.compare)?o:jr)(r,n)&&e.ref===t.ref)?Za(e,t,i):(t.effectTag|=1,(e=xu(s,n)).ref=t.ref,e.return=t,t.child=e)}function ka(e,t,o,n,r,i){return null!==e&&jr(e.memoizedProps,n)&&e.ref===t.ref&&(Fa=!1,r<i)?(t.expirationTime=e.expirationTime,Za(e,t,i)):Wa(e,t,o,n,i)}function Va(e,t){var o=t.ref;(null===e&&null!==o||null!==e&&e.ref!==o)&&(t.effectTag|=128)}function Wa(e,t,o,n,r){var i=wi(o)?mi:yi.current;return i=Ci(t,i),as(t,r),o=Zs(e,t,o,n,i,r),null===e||Fa?(t.effectTag|=1,La(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Za(e,t,r))}function Ha(e,t,o,n,r){if(wi(o)){var i=!0;Oi(t)}else i=!1;if(as(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),bs(t,o,n),Os(t,o,n,r),n=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=o.contextType;"object"==typeof u&&null!==u?u=ls(u):u=Ci(t,u=wi(o)?mi:yi.current);var p=o.getDerivedStateFromProps,c="function"==typeof p||"function"==typeof s.getSnapshotBeforeUpdate;c||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==n||l!==u)&&Rs(t,s,n,u),us=!1;var d=t.memoizedState;s.state=d,gs(t,n,s,r),l=t.memoizedState,a!==n||d!==l||vi.current||us?("function"==typeof p&&(Cs(t,o,p,n),l=t.memoizedState),(a=us||Es(t,o,a,n,d,l,u))?(c||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=u,n=a):("function"==typeof s.componentDidMount&&(t.effectTag|=4),n=!1)}else s=t.stateNode,cs(e,t),a=t.memoizedProps,s.props=t.type===t.elementType?a:Ji(t.type,a),l=s.context,"object"==typeof(u=o.contextType)&&null!==u?u=ls(u):u=Ci(t,u=wi(o)?mi:yi.current),(c="function"==typeof(p=o.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==n||l!==u)&&Rs(t,s,n,u),us=!1,l=t.memoizedState,s.state=l,gs(t,n,s,r),d=t.memoizedState,a!==n||l!==d||vi.current||us?("function"==typeof p&&(Cs(t,o,p,n),d=t.memoizedState),(p=us||Es(t,o,a,n,l,d,u))?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(n,d,u),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(n,d,u)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=d),s.props=n,s.state=d,s.context=u,n=p):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),n=!1);return Ba(e,t,o,n,i,r)}function Ba(e,t,o,n,r,i){Va(e,t);var s=0!=(64&t.effectTag);if(!n&&!s)return r&&Si(t,o,!1),Za(e,t,i);n=t.stateNode,Ia.current=t;var a=s&&"function"!=typeof o.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&s?(t.child=Ds(t,e.child,null,i),t.child=Ds(t,null,a,i)):La(e,t,a,i),t.memoizedState=n.state,r&&Si(t,o,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Ms(e,t.containerInfo)}var ja,za,Ya,Ka={dehydrated:null,retryTime:0};function qa(e,t,o){var n,r=t.mode,i=t.pendingProps,s=Ws.current,a=!1;if((n=0!=(64&t.effectTag))||(n=0!=(2&s)&&(null===e||null!==e.memoizedState)),n?(a=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(s|=1),fi(Ws,1&s),null===e){if(void 0!==i.fallback&&Da(t),a){if(a=i.fallback,(i=Fu(null,r,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(o=Fu(a,r,o,null)).return=t,i.sibling=o,t.memoizedState=Ka,t.child=i,o}return r=i.children,t.memoizedState=null,t.child=As(t,null,r,o)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,a){if(i=i.fallback,(o=xu(e,e.pendingProps)).return=t,0==(2&t.mode)&&(a=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(o.child=a;null!==a;)a.return=o,a=a.sibling;return(r=xu(r,i)).return=t,o.sibling=r,o.childExpirationTime=0,t.memoizedState=Ka,t.child=o,r}return o=Ds(t,e.child,i.children,o),t.memoizedState=null,t.child=o}if(e=e.child,a){if(a=i.fallback,(i=Fu(null,r,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(o=Fu(a,r,o,null)).return=t,i.sibling=o,o.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ka,t.child=i,o}return t.memoizedState=null,t.child=Ds(t,e,i.children,o)}function $a(e,t){e.expirationTime<t&&(e.expirationTime=t);var o=e.alternate;null!==o&&o.expirationTime<t&&(o.expirationTime=t),ss(e.return,t)}function Qa(e,t,o,n,r,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:o,tailExpiration:0,tailMode:r,lastEffect:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=o,s.tailExpiration=0,s.tailMode=r,s.lastEffect=i)}function Xa(e,t,o){var n=t.pendingProps,r=n.revealOrder,i=n.tail;if(La(e,t,n.children,o),0!=(2&(n=Ws.current)))n=1&n|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$a(e,o);else if(19===e.tag)$a(e,o);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(fi(Ws,n),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(o=t.child,r=null;null!==o;)null!==(e=o.alternate)&&null===Hs(e)&&(r=o),o=o.sibling;null===(o=r)?(r=t.child,t.child=null):(r=o.sibling,o.sibling=null),Qa(t,!1,r,o,i,t.lastEffect);break;case"backwards":for(o=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Hs(e)){t.child=r;break}e=r.sibling,r.sibling=o,o=r,r=e}Qa(t,!0,o,null,i,t.lastEffect);break;case"together":Qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Za(e,t,o){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&du(n),t.childExpirationTime<o)return null;if(null!==e&&t.child!==e.child)throw Error(le(153));if(null!==t.child){for(o=xu(e=t.child,e.pendingProps),t.child=o,o.return=t;null!==e.sibling;)e=e.sibling,(o=o.sibling=xu(e,e.pendingProps)).return=t;o.sibling=null}return t.child}function Ja(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;null!==t;)null!==t.alternate&&(o=t),t=t.sibling;null===o?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var n=null;null!==o;)null!==o.alternate&&(n=o),o=o.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function el(e,t,o){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return wi(t.type)&&Ei(),null;case 3:return Gs(),hi(vi),hi(yi),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||!Na(t)||(t.effectTag|=4),null;case 5:Vs(t),o=Ls(Fs.current);var r=t.type;if(null!==e&&null!=t.stateNode)za(e,t,r,n,o),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(le(166));return null}if(e=Ls(xs.current),Na(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Dn]=t,n[An]=i,r){case"iframe":case"object":case"embed":Xo("load",n);break;case"video":case"audio":for(e=0;e<Jt.length;e++)Xo(Jt[e],n);break;case"source":Xo("error",n);break;case"img":case"image":case"link":Xo("error",n),Xo("load",n);break;case"form":Xo("reset",n),Xo("submit",n);break;case"details":Xo("toggle",n);break;case"input":St(n,i),Xo("invalid",n),dn(o,"onChange");break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Xo("invalid",n),dn(o,"onChange");break;case"textarea":It(n,i),Xo("invalid",n),dn(o,"onChange")}for(var s in un(r,i),e=null,i)if(i.hasOwnProperty(s)){var a=i[s];"children"===s?"string"==typeof a?n.textContent!==a&&(e=["children",a]):"number"==typeof a&&n.textContent!==""+a&&(e=["children",""+a]):_e.hasOwnProperty(s)&&null!=a&&dn(o,s)}switch(r){case"input":bt(n),Pt(n,i,!0);break;case"textarea":bt(n),Lt(n);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(n.onclick=hn)}o=e,t.updateQueue=o,null!==o&&(t.effectTag|=4)}else{switch(s=9===o.nodeType?o:o.ownerDocument,e===cn&&(e=kt(r)),e===cn?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),"select"===r&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Dn]=t,e[An]=n,ja(e,t),t.stateNode=e,s=pn(r,n),r){case"iframe":case"object":case"embed":Xo("load",e),a=n;break;case"video":case"audio":for(a=0;a<Jt.length;a++)Xo(Jt[a],e);a=n;break;case"source":Xo("error",e),a=n;break;case"img":case"image":case"link":Xo("error",e),Xo("load",e),a=n;break;case"form":Xo("reset",e),Xo("submit",e),a=n;break;case"details":Xo("toggle",e),a=n;break;case"input":St(e,n),a=Ot(e,n),Xo("invalid",e),dn(o,"onChange");break;case"option":a=At(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=se({},n,{value:void 0}),Xo("invalid",e),dn(o,"onChange");break;case"textarea":It(e,n),a=xt(e,n),Xo("invalid",e),dn(o,"onChange");break;default:a=n}un(r,a);var l=a;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];"style"===i?an(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&Bt(e,u):"children"===i?"string"==typeof u?("textarea"!==r||""!==u)&&Ut(e,u):"number"==typeof u&&Ut(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(_e.hasOwnProperty(i)?null!=u&&dn(o,i):null!=u&&Je(e,i,u,s))}switch(r){case"input":bt(e),Pt(e,n,!1);break;case"textarea":bt(e),Lt(e);break;case"option":null!=n.value&&e.setAttribute("value",""+wt(n.value));break;case"select":e.multiple=!!n.multiple,null!=(o=n.value)?Nt(e,!!n.multiple,o,!1):null!=n.defaultValue&&Nt(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=hn)}bn(r,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(0,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(le(166));o=Ls(Fs.current),Ls(xs.current),Na(t)?(o=t.stateNode,n=t.memoizedProps,o[Dn]=t,o.nodeValue!==n&&(t.effectTag|=4)):((o=(9===o.nodeType?o:o.ownerDocument).createTextNode(n))[Dn]=t,t.stateNode=o)}return null;case 13:return hi(Ws),n=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=o,t):(o=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Na(t):(n=null!==(r=e.memoizedState),o||null===r||null!==(r=e.child.sibling)&&(null!==(i=t.firstEffect)?(t.firstEffect=r,r.nextEffect=i):(t.firstEffect=t.lastEffect=r,r.nextEffect=null),r.effectTag=8)),o&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ws.current)?Il===_l&&(Il=Tl):(Il!==_l&&Il!==Tl||(Il=Pl),0!==kl&&null!==Al&&(Vu(Al,xl),Wu(Al,kl)))),(o||n)&&(t.effectTag|=4),null);case 4:return Gs(),null;case 10:return is(t),null;case 17:return wi(t.type)&&Ei(),null;case 19:if(hi(Ws),null===(n=t.memoizedState))return null;if(r=0!=(64&t.effectTag),null===(i=n.rendering)){if(r)Ja(n,!1);else if(Il!==_l||null!==e&&0!=(64&e.effectTag))for(i=t.child;null!==i;){if(null!==(e=Hs(i))){for(t.effectTag|=64,Ja(n,!1),null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)i=o,(r=n).effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(e=r.alternate)?(r.childExpirationTime=0,r.expirationTime=i,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,i=e.dependencies,r.dependencies=null===i?null:{expirationTime:i.expirationTime,firstContext:i.firstContext,responders:i.responders}),n=n.sibling;return fi(Ws,1&Ws.current|2),t.child}i=i.sibling}}else{if(!r)if(null!==(e=Hs(i))){if(t.effectTag|=64,r=!0,null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),Ja(n,!0),null===n.tail&&"hidden"===n.tailMode&&!i.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*ji()-n.renderingStartTime>n.tailExpiration&&1<o&&(t.effectTag|=64,r=!0,Ja(n,!1),t.expirationTime=t.childExpirationTime=o-1);n.isBackwards?(i.sibling=t.child,t.child=i):(null!==(o=n.last)?o.sibling=i:t.child=i,n.last=i)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=ji()+500),o=n.tail,n.rendering=o,n.tail=o.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=ji(),o.sibling=null,t=Ws.current,fi(Ws,r?1&t|2:1&t),o):null}throw Error(le(156,t.tag))}function tl(e){switch(e.tag){case 1:wi(e.type)&&Ei();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Gs(),hi(vi),hi(yi),0!=(64&(t=e.effectTag)))throw Error(le(285));return e.effectTag=-4097&t|64,e;case 5:return Vs(e),null;case 13:return hi(Ws),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return hi(Ws),null;case 4:return Gs(),null;case 10:return is(e),null;default:return null}}function ol(e,t){return{value:e,source:t,stack:Ct(t)}}ja=function(e,t){for(var o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},za=function(e,t,o,n,r){var i=e.memoizedProps;if(i!==n){var s,a,l=t.stateNode;switch(Ls(xs.current),e=null,o){case"input":i=Ot(l,i),n=Ot(l,n),e=[];break;case"option":i=At(l,i),n=At(l,n),e=[];break;case"select":i=se({},i,{value:void 0}),n=se({},n,{value:void 0}),e=[];break;case"textarea":i=xt(l,i),n=xt(l,n),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(l.onclick=hn)}for(s in un(o,n),o=null,i)if(!n.hasOwnProperty(s)&&i.hasOwnProperty(s)&&null!=i[s])if("style"===s)for(a in l=i[s])l.hasOwnProperty(a)&&(o||(o={}),o[a]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(_e.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in n){var u=n[s];if(l=null!=i?i[s]:void 0,n.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(o||(o={}),o[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(o||(o={}),o[a]=u[a])}else o||(e||(e=[]),e.push(s,o)),o=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(_e.hasOwnProperty(s)?(null!=u&&dn(r,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}o&&(e=e||[]).push("style",o),r=e,(t.updateQueue=r)&&(t.effectTag|=4)}},Ya=function(e,t,o,n){o!==n&&(t.effectTag|=4)};var nl="function"==typeof WeakSet?WeakSet:Set;function rl(e,t){var o=t.source,n=t.stack;null===n&&null!==o&&(n=Ct(o)),null!==o&&mt(o.type),t=t.value,null!==e&&1===e.tag&&mt(e.type);try{console.error(t)}catch(r){setTimeout((function(){throw r}))}}function il(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(o){Ou(e,o)}else t.current=null}function sl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var o=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?o:Ji(t.type,o),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(le(163))}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var o=t=t.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,void 0!==n&&n()}o=o.next}while(o!==t)}}function ll(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var o=t=t.next;do{if((o.tag&e)===e){var n=o.create;o.destroy=n()}o=o.next}while(o!==t)}}function ul(e,t,o){switch(o.tag){case 0:case 11:case 15:case 22:return void ll(3,o);case 1:if(e=o.stateNode,4&o.effectTag)if(null===t)e.componentDidMount();else{var n=o.elementType===o.type?t.memoizedProps:Ji(o.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=o.updateQueue)&&ys(o,t,e));case 3:if(null!==(t=o.updateQueue)){if(e=null,null!==o.child)switch(o.child.tag){case 5:e=o.child.stateNode;break;case 1:e=o.child.stateNode}ys(o,t,e)}return;case 5:return e=o.stateNode,void(null===t&&4&o.effectTag&&bn(o.type,o.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===o.memoizedState&&(o=o.alternate,null!==o&&(o=o.memoizedState,null!==o&&(o=o.dehydrated,null!==o&&Wo(o)))));case 19:case 17:case 20:case 21:return}throw Error(le(163))}function pl(e,t,o){switch("function"==typeof Pu&&Pu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;Ki(97<o?97:o,(function(){var e=n;do{var o=e.destroy;if(void 0!==o){var r=t;try{o()}catch(i){Ou(r,i)}}e=e.next}while(e!==n)}))}break;case 1:il(t),"function"==typeof(o=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(o){Ou(e,o)}}(t,o);break;case 5:il(t);break;case 4:yl(e,t,o)}}function cl(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&cl(t)}function dl(e){return 5===e.tag||3===e.tag||4===e.tag}function hl(e){e:{for(var t=e.return;null!==t;){if(dl(t)){var o=t;break e}t=t.return}throw Error(le(160))}switch(t=o.stateNode,o.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(le(161))}16&o.effectTag&&(Ut(t,""),o.effectTag&=-17);e:t:for(o=e;;){for(;null===o.sibling;){if(null===o.return||dl(o.return)){o=null;break e}o=o.return}for(o.sibling.return=o.return,o=o.sibling;5!==o.tag&&6!==o.tag&&18!==o.tag;){if(2&o.effectTag)continue t;if(null===o.child||4===o.tag)continue t;o.child.return=o,o=o.child}if(!(2&o.effectTag)){o=o.stateNode;break e}}n?fl(e,o,t):gl(e,o,t)}function fl(e,t,o){var n=e.tag,r=5===n||6===n;if(r)e=r?e.stateNode:e.stateNode.instance,t?8===o.nodeType?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(8===o.nodeType?(t=o.parentNode).insertBefore(e,o):(t=o).appendChild(e),null!=(o=o._reactRootContainer)||null!==t.onclick||(t.onclick=hn));else if(4!==n&&null!==(e=e.child))for(fl(e,t,o),e=e.sibling;null!==e;)fl(e,t,o),e=e.sibling}function gl(e,t,o){var n=e.tag,r=5===n||6===n;if(r)e=r?e.stateNode:e.stateNode.instance,t?o.insertBefore(e,t):o.appendChild(e);else if(4!==n&&null!==(e=e.child))for(gl(e,t,o),e=e.sibling;null!==e;)gl(e,t,o),e=e.sibling}function yl(e,t,o){for(var n,r,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(le(160));switch(n=s.stateNode,s.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var a=e,l=i,u=o,p=l;;)if(pl(a,p,u),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===l)break e;for(;null===p.sibling;){if(null===p.return||p.return===l)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r?(a=n,l=i.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(pl(e,i,o),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function vl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void al(3,t);case 1:return;case 5:var o=t.stateNode;if(null!=o){var n=t.memoizedProps,r=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(o[An]=n,"input"===e&&"radio"===n.type&&null!=n.name&&_t(o,n),pn(e,r),t=pn(e,n),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];"style"===s?an(o,a):"dangerouslySetInnerHTML"===s?Bt(o,a):"children"===s?Ut(o,a):Je(o,s,a,t)}switch(e){case"input":Tt(o,n);break;case"textarea":Ft(o,n);break;case"select":t=o._wrapperState.wasMultiple,o._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?Nt(o,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?Nt(o,!!n.multiple,n.defaultValue,!0):Nt(o,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(le(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Wo(t.containerInfo)));case 12:return;case 13:if(o=t,null===t.memoizedState?n=!1:(n=!0,o=t.child,Wl=ji()),null!==o)e:for(e=o;;){if(5===e.tag)i=e.stateNode,n?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,i.style.display=sn("display",r));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===o)break;for(;null===e.sibling;){if(null===e.return||e.return===o)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ml(t);case 19:return void ml(t);case 17:return}throw Error(le(163))}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var o=e.stateNode;null===o&&(o=e.stateNode=new nl),t.forEach((function(t){var n=_u.bind(null,e,t);o.has(t)||(o.add(t),t.then(n,n))}))}}var Cl="function"==typeof WeakMap?WeakMap:Map;function wl(e,t,o){(o=ds(o,null)).tag=3,o.payload={element:null};var n=t.value;return o.callback=function(){Bl||(Bl=!0,Ul=n),rl(e,t)},o}function El(e,t,o){(o=ds(o,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var r=t.value;o.payload=function(){return rl(e,t),n(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(o.callback=function(){"function"!=typeof n&&(null===jl?jl=new Set([this]):jl.add(this),rl(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:null!==o?o:""})}),o}var bl,Rl=Math.ceil,Ol=Ze.ReactCurrentDispatcher,Sl=Ze.ReactCurrentOwner,_l=0,Tl=3,Pl=4,Dl=0,Al=null,Nl=null,xl=0,Il=_l,Fl=null,Ll=1073741823,Ml=1073741823,Gl=null,kl=0,Vl=!1,Wl=0,Hl=null,Bl=!1,Ul=null,jl=null,zl=!1,Yl=null,Kl=90,ql=null,$l=0,Ql=null,Xl=0;function Zl(){return 0!=(48&Dl)?1073741821-(ji()/10|0):0!==Xl?Xl:Xl=1073741821-(ji()/10|0)}function Jl(e,t,o){if(0==(2&(t=t.mode)))return 1073741823;var n=zi();if(0==(4&t))return 99===n?1073741823:1073741822;if(0!=(16&Dl))return xl;if(null!==o)e=Zi(e,0|o.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Zi(e,150,100);break;case 97:case 96:e=Zi(e,5e3,250);break;case 95:e=2;break;default:throw Error(le(326))}return null!==Al&&e===xl&&--e,e}function eu(e,t){if(50<$l)throw $l=0,Ql=null,Error(le(185));if(null!==(e=tu(e,t))){var o=zi();1073741823===t?0!=(8&Dl)&&0==(48&Dl)?iu(e):(nu(e),0===Dl&&Qi()):nu(e),0==(4&Dl)||98!==o&&99!==o||(null===ql?ql=new Map([[e,t]]):(void 0===(o=ql.get(e))||o>t)&&ql.set(e,t))}}function tu(e,t){e.expirationTime<t&&(e.expirationTime=t);var o=e.alternate;null!==o&&o.expirationTime<t&&(o.expirationTime=t);var n=e.return,r=null;if(null===n&&3===e.tag)r=e.stateNode;else for(;null!==n;){if(o=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==o&&o.childExpirationTime<t&&(o.childExpirationTime=t),null===n.return&&3===n.tag){r=n.stateNode;break}n=n.return}return null!==r&&(Al===r&&(du(t),Il===Pl&&Vu(r,xl)),Wu(r,t)),r}function ou(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!ku(e,t=e.firstPendingTime))return t;var o=e.lastPingedTime;return 2>=(e=o>(e=e.nextKnownPendingLevel)?o:e)&&t!==e?0:e}function nu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=$i(iu.bind(null,e));else{var t=ou(e),o=e.callbackNode;if(0===t)null!==o&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=Zl();if(1073741823===t?n=99:1===t||2===t?n=95:n=0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==o){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=n)return;o!==Gi&&Pi(o)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?$i(iu.bind(null,e)):qi(n,ru.bind(null,e),{timeout:10*(1073741821-t)-ji()}),e.callbackNode=t}}}function ru(e,t){if(Xl=0,t)return Hu(e,t=Zl()),nu(e),null;var o=ou(e);if(0!==o){if(t=e.callbackNode,0!=(48&Dl))throw Error(le(327));if(Eu(),e===Al&&o===xl||lu(e,o),null!==Nl){var n=Dl;Dl|=16;for(var r=pu();;)try{fu();break}catch(a){uu(e,a)}if(rs(),Dl=n,Ol.current=r,1===Il)throw t=Fl,lu(e,o),Vu(e,o),nu(e),t;if(null===Nl)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=o,n=Il,Al=null,n){case _l:case 1:throw Error(le(345));case 2:Hu(e,2<o?2:o);break;case Tl:if(Vu(e,o),o===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=vu(r)),1073741823===Ll&&10<(r=Wl+500-ji())){if(Vl){var i=e.lastPingedTime;if(0===i||i>=o){e.lastPingedTime=o,lu(e,o);break}}if(0!==(i=ou(e))&&i!==o)break;if(0!==n&&n!==o){e.lastPingedTime=n;break}e.timeoutHandle=On(mu.bind(null,e),r);break}mu(e);break;case Pl:if(Vu(e,o),o===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=vu(r)),Vl&&(0===(r=e.lastPingedTime)||r>=o)){e.lastPingedTime=o,lu(e,o);break}if(0!==(r=ou(e))&&r!==o)break;if(0!==n&&n!==o){e.lastPingedTime=n;break}if(1073741823!==Ml?n=10*(1073741821-Ml)-ji():1073741823===Ll?n=0:(n=10*(1073741821-Ll)-5e3,0>(n=(r=ji())-n)&&(n=0),(o=10*(1073741821-o)-r)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Rl(n/1960))-n)&&(n=o)),10<n){e.timeoutHandle=On(mu.bind(null,e),n);break}mu(e);break;case 5:if(1073741823!==Ll&&null!==Gl){i=Ll;var s=Gl;if(0>=(n=0|s.busyMinDurationMs)?n=0:(r=0|s.busyDelayMs,n=(i=ji()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=r?0:r+n-i),10<n){Vu(e,o),e.timeoutHandle=On(mu.bind(null,e),n);break}}mu(e);break;default:throw Error(le(329))}if(nu(e),e.callbackNode===t)return ru.bind(null,e)}}return null}function iu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Dl))throw Error(le(327));if(Eu(),e===Al&&t===xl||lu(e,t),null!==Nl){var o=Dl;Dl|=16;for(var n=pu();;)try{hu();break}catch(r){uu(e,r)}if(rs(),Dl=o,Ol.current=n,1===Il)throw o=Fl,lu(e,t),Vu(e,t),nu(e),o;if(null!==Nl)throw Error(le(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Al=null,mu(e),nu(e)}return null}function su(e,t){var o=Dl;Dl|=1;try{return e(t)}finally{0===(Dl=o)&&Qi()}}function au(e,t){var o=Dl;Dl&=-2,Dl|=8;try{return e(t)}finally{0===(Dl=o)&&Qi()}}function lu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var o=e.timeoutHandle;if(-1!==o&&(e.timeoutHandle=-1,Sn(o)),null!==Nl)for(o=Nl.return;null!==o;){var n=o;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ei();break;case 3:Gs(),hi(vi),hi(yi);break;case 5:Vs(n);break;case 4:Gs();break;case 13:case 19:hi(Ws);break;case 10:is(n)}o=o.return}Al=e,Nl=xu(e.current,null),xl=t,Il=_l,Fl=null,Ml=Ll=1073741823,Gl=null,kl=0,Vl=!1}function uu(e,t){for(;;){try{if(rs(),Us.current=wa,$s)for(var o=Ys.memoizedState;null!==o;){var n=o.queue;null!==n&&(n.pending=null),o=o.next}if(zs=0,qs=Ks=Ys=null,$s=!1,null===Nl||null===Nl.return)return Il=1,Fl=t,Nl=null;e:{var r=e,i=Nl.return,s=Nl,a=t;if(t=xl,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==a&&"object"==typeof a&&"function"==typeof a.then){var l=a;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.expirationTime=u.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var p=0!=(1&Ws.current),c=i;do{var d;if(d=13===c.tag){var h=c.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var f=c.memoizedProps;d=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!p)}}if(d){var g=c.updateQueue;if(null===g){var y=new Set;y.add(l),c.updateQueue=y}else g.add(l);if(0==(2&c.mode)){if(c.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=ds(1073741823,null);v.tag=2,hs(s,v)}s.expirationTime=1073741823;break e}a=void 0,s=t;var m=r.pingCache;if(null===m?(m=r.pingCache=new Cl,a=new Set,m.set(l,a)):void 0===(a=m.get(l))&&(a=new Set,m.set(l,a)),!a.has(s)){a.add(s);var C=Su.bind(null,r,l,s);l.then(C,C)}c.effectTag|=4096,c.expirationTime=t;break e}c=c.return}while(null!==c);a=Error((mt(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+Ct(s))}5!==Il&&(Il=2),a=ol(a,s),c=i;do{switch(c.tag){case 3:l=a,c.effectTag|=4096,c.expirationTime=t,fs(c,wl(c,l,t));break e;case 1:l=a;var w=c.type,E=c.stateNode;if(0==(64&c.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===jl||!jl.has(E)))){c.effectTag|=4096,c.expirationTime=t,fs(c,El(c,l,t));break e}}c=c.return}while(null!==c)}Nl=yu(Nl)}catch(b){t=b;continue}break}}function pu(){var e=Ol.current;return Ol.current=wa,null===e?wa:e}function cu(e,t){e<Ll&&2<e&&(Ll=e),null!==t&&e<Ml&&2<e&&(Ml=e,Gl=t)}function du(e){e>kl&&(kl=e)}function hu(){for(;null!==Nl;)Nl=gu(Nl)}function fu(){for(;null!==Nl&&!ki();)Nl=gu(Nl)}function gu(e){var t=bl(e.alternate,e,xl);return e.memoizedProps=e.pendingProps,null===t&&(t=yu(e)),Sl.current=null,t}function yu(e){Nl=e;do{var t=Nl.alternate;if(e=Nl.return,0==(2048&Nl.effectTag)){if(t=el(t,Nl,xl),1===xl||1!==Nl.childExpirationTime){for(var o=0,n=Nl.child;null!==n;){var r=n.expirationTime,i=n.childExpirationTime;r>o&&(o=r),i>o&&(o=i),n=n.sibling}Nl.childExpirationTime=o}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Nl.firstEffect),null!==Nl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Nl.firstEffect),e.lastEffect=Nl.lastEffect),1<Nl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Nl:e.firstEffect=Nl,e.lastEffect=Nl))}else{if(null!==(t=tl(Nl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Nl.sibling))return t;Nl=e}while(null!==Nl);return Il===_l&&(Il=5),null}function vu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function mu(e){var t=zi();return Ki(99,Cu.bind(null,e,t)),null}function Cu(e,t){do{Eu()}while(null!==Yl);if(0!=(48&Dl))throw Error(le(327));var o=e.finishedWork,n=e.finishedExpirationTime;if(null===o)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,o===e.current)throw Error(le(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=vu(o);if(e.firstPendingTime=r,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Al&&(Nl=Al=null,xl=0),1<o.effectTag?null!==o.lastEffect?(o.lastEffect.nextEffect=o,r=o.firstEffect):r=o:r=o.firstEffect,null!==r){var i=Dl;Dl|=32,Sl.current=null,wn=Qo;var s=mn();if(Cn(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(a=(a=s.ownerDocument)&&a.defaultView||window).getSelection&&a.getSelection();if(l&&0!==l.rangeCount){a=l.anchorNode;var u=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{a.nodeType,p.nodeType}catch(S){a=null;break e}var c=0,d=-1,h=-1,f=0,g=0,y=s,v=null;t:for(;;){for(var m;y!==a||0!==u&&3!==y.nodeType||(d=c+u),y!==p||0!==l&&3!==y.nodeType||(h=c+l),3===y.nodeType&&(c+=y.nodeValue.length),null!==(m=y.firstChild);)v=y,y=m;for(;;){if(y===s)break t;if(v===a&&++f===u&&(d=c),v===p&&++g===l&&(h=c),null!==(m=y.nextSibling))break;v=(y=v).parentNode}y=m}a=-1===d||-1===h?null:{start:d,end:h}}else a=null}a=a||{start:0,end:0}}else a=null;En={activeElementDetached:null,focusedElem:s,selectionRange:a},Qo=!1,Hl=r;do{try{wu()}catch(S){if(null===Hl)throw Error(le(330));Ou(Hl,S),Hl=Hl.nextEffect}}while(null!==Hl);Hl=r;do{try{for(s=e,a=t;null!==Hl;){var C=Hl.effectTag;if(16&C&&Ut(Hl.stateNode,""),128&C){var w=Hl.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&C){case 2:hl(Hl),Hl.effectTag&=-3;break;case 6:hl(Hl),Hl.effectTag&=-3,vl(Hl.alternate,Hl);break;case 1024:Hl.effectTag&=-1025;break;case 1028:Hl.effectTag&=-1025,vl(Hl.alternate,Hl);break;case 4:vl(Hl.alternate,Hl);break;case 8:yl(s,u=Hl,a),cl(u)}Hl=Hl.nextEffect}}catch(S){if(null===Hl)throw Error(le(330));Ou(Hl,S),Hl=Hl.nextEffect}}while(null!==Hl);if(E=En,w=mn(),C=E.focusedElem,a=E.selectionRange,w!==C&&C&&C.ownerDocument&&vn(C.ownerDocument.documentElement,C)){null!==a&&Cn(C)&&(w=a.start,void 0===(E=a.end)&&(E=w),"selectionStart"in C?(C.selectionStart=w,C.selectionEnd=Math.min(E,C.value.length)):(E=(w=C.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),u=C.textContent.length,s=Math.min(a.start,u),a=void 0===a.end?s:Math.min(a.end,u),!E.extend&&s>a&&(u=a,a=s,s=u),u=yn(C,s),p=yn(C,a),u&&p&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==p.node||E.focusOffset!==p.offset)&&((w=w.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),s>a?(E.addRange(w),E.extend(p.node,p.offset)):(w.setEnd(p.node,p.offset),E.addRange(w))))),w=[];for(E=C;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<w.length;C++)(E=w[C]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Qo=!!wn,En=wn=null,e.current=o,Hl=r;do{try{for(C=e;null!==Hl;){var b=Hl.effectTag;if(36&b&&ul(C,Hl.alternate,Hl),128&b){w=void 0;var R=Hl.ref;if(null!==R){var O=Hl.stateNode;switch(Hl.tag){case 5:w=O;break;default:w=O}"function"==typeof R?R(w):R.current=w}}Hl=Hl.nextEffect}}catch(S){if(null===Hl)throw Error(le(330));Ou(Hl,S),Hl=Hl.nextEffect}}while(null!==Hl);Hl=null,Vi(),Dl=i}else e.current=o;if(zl)zl=!1,Yl=e,Kl=t;else for(Hl=r;null!==Hl;)t=Hl.nextEffect,Hl.nextEffect=null,Hl=t;if(0===(t=e.firstPendingTime)&&(jl=null),1073741823===t?e===Ql?$l++:($l=0,Ql=e):$l=0,"function"==typeof Tu&&Tu(o.stateNode,n),nu(e),Bl)throw Bl=!1,e=Ul,Ul=null,e;return 0!=(8&Dl)||Qi(),null}function wu(){for(;null!==Hl;){var e=Hl.effectTag;0!=(256&e)&&sl(Hl.alternate,Hl),0==(512&e)||zl||(zl=!0,qi(97,(function(){return Eu(),null}))),Hl=Hl.nextEffect}}function Eu(){if(90!==Kl){var e=97<Kl?97:Kl;return Kl=90,Ki(e,bu)}}function bu(){if(null===Yl)return!1;var e=Yl;if(Yl=null,0!=(48&Dl))throw Error(le(331));var t=Dl;for(Dl|=32,e=e.current.firstEffect;null!==e;){try{var o=e;if(0!=(512&o.effectTag))switch(o.tag){case 0:case 11:case 15:case 22:al(5,o),ll(5,o)}}catch(n){if(null===e)throw Error(le(330));Ou(e,n)}o=e.nextEffect,e.nextEffect=null,e=o}return Dl=t,Qi(),!0}function Ru(e,t,o){hs(e,t=wl(e,t=ol(o,t),1073741823)),null!==(e=tu(e,1073741823))&&nu(e)}function Ou(e,t){if(3===e.tag)Ru(e,e,t);else for(var o=e.return;null!==o;){if(3===o.tag){Ru(o,e,t);break}if(1===o.tag){var n=o.stateNode;if("function"==typeof o.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===jl||!jl.has(n))){hs(o,e=El(o,e=ol(t,e),1073741823)),null!==(o=tu(o,1073741823))&&nu(o);break}}o=o.return}}function Su(e,t,o){var n=e.pingCache;null!==n&&n.delete(t),Al===e&&xl===o?Il===Pl||Il===Tl&&1073741823===Ll&&ji()-Wl<500?lu(e,xl):Vl=!0:ku(e,o)&&(0!==(t=e.lastPingedTime)&&t<o||(e.lastPingedTime=o,nu(e)))}function _u(e,t){var o=e.stateNode;null!==o&&o.delete(t),0===(t=0)&&(t=Jl(t=Zl(),e,null)),null!==(e=tu(e,t))&&nu(e)}bl=function(e,t,o){var n=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||vi.current)Fa=!0;else{if(n<o){switch(Fa=!1,t.tag){case 3:Ua(t),xa();break;case 5:if(ks(t),4&t.mode&&1!==o&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:wi(t.type)&&Oi(t);break;case 4:Ms(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,r=t.type._context,fi(es,r._currentValue),r._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=o?qa(e,t,o):(fi(Ws,1&Ws.current),null!==(t=Za(e,t,o))?t.sibling:null);fi(Ws,1&Ws.current);break;case 19:if(n=t.childExpirationTime>=o,0!=(64&e.effectTag)){if(n)return Xa(e,t,o);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),fi(Ws,Ws.current),!n)return null}return Za(e,t,o)}Fa=!1}}else Fa=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=Ci(t,yi.current),as(t,o),r=Zs(null,t,n,e,r,o),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,wi(n)){var i=!0;Oi(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,ps(t);var s=n.getDerivedStateFromProps;"function"==typeof s&&Cs(t,n,s,e),r.updater=ws,t.stateNode=r,r._reactInternalFiber=t,Os(t,n,e,o),t=Ba(null,t,n,!0,i,o)}else t.tag=0,La(null,t,r,o),t=t.child;return t;case 16:e:{if(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(r),1!==r._status)throw r._result;switch(r=r._result,t.type=r,i=t.tag=function(e){if("function"==typeof e)return Nu(e)?1:0;if(null!=e){if((e=e.$$typeof)===pt)return 11;if(e===ht)return 14}return 2}(r),e=Ji(r,e),i){case 0:t=Wa(null,t,r,e,o);break e;case 1:t=Ha(null,t,r,e,o);break e;case 11:t=Ma(null,t,r,e,o);break e;case 14:t=Ga(null,t,r,Ji(r.type,e),n,o);break e}throw Error(le(306,r,""))}return t;case 0:return n=t.type,r=t.pendingProps,Wa(e,t,n,r=t.elementType===n?r:Ji(n,r),o);case 1:return n=t.type,r=t.pendingProps,Ha(e,t,n,r=t.elementType===n?r:Ji(n,r),o);case 3:if(Ua(t),n=t.updateQueue,null===e||null===n)throw Error(le(282));if(n=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,cs(e,t),gs(t,n,null,o),(n=t.memoizedState.element)===r)xa(),t=Za(e,t,o);else{if((r=t.stateNode.hydrate)&&(Sa=_n(t.stateNode.containerInfo.firstChild),Oa=t,r=_a=!0),r)for(o=As(t,null,n,o),t.child=o;o;)o.effectTag=-3&o.effectTag|1024,o=o.sibling;else La(e,t,n,o),xa();t=t.child}return t;case 5:return ks(t),null===e&&Da(t),n=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,s=r.children,Rn(n,r)?s=null:null!==i&&Rn(n,i)&&(t.effectTag|=16),Va(e,t),4&t.mode&&1!==o&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(La(e,t,s,o),t=t.child),t;case 6:return null===e&&Da(t),null;case 13:return qa(e,t,o);case 4:return Ms(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ds(t,null,n,o):La(e,t,n,o),t.child;case 11:return n=t.type,r=t.pendingProps,Ma(e,t,n,r=t.elementType===n?r:Ji(n,r),o);case 7:return La(e,t,t.pendingProps,o),t.child;case 8:case 12:return La(e,t,t.pendingProps.children,o),t.child;case 10:e:{n=t.type._context,r=t.pendingProps,s=t.memoizedProps,i=r.value;var a=t.type._context;if(fi(es,a._currentValue),a._currentValue=i,null!==s)if(a=s.value,0===(i=Br(a,i)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(a,i):1073741823))){if(s.children===r.children&&!vi.current){t=Za(e,t,o);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===n&&0!=(u.observedBits&i)){1===a.tag&&((u=ds(o,null)).tag=2,hs(a,u)),a.expirationTime<o&&(a.expirationTime=o),null!==(u=a.alternate)&&u.expirationTime<o&&(u.expirationTime=o),ss(a.return,o),l.expirationTime<o&&(l.expirationTime=o);break}u=u.next}}else s=10===a.tag&&a.type===t.type?null:a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}La(e,t,r.children,o),t=t.child}return t;case 9:return r=t.type,n=(i=t.pendingProps).children,as(t,o),n=n(r=ls(r,i.unstable_observedBits)),t.effectTag|=1,La(e,t,n,o),t.child;case 14:return i=Ji(r=t.type,t.pendingProps),Ga(e,t,r,i=Ji(r.type,i),n,o);case 15:return ka(e,t,t.type,t.pendingProps,n,o);case 17:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:Ji(n,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,wi(n)?(e=!0,Oi(t)):e=!1,as(t,o),bs(t,n,r),Os(t,n,r,o),Ba(null,t,n,!0,e,o);case 19:return Xa(e,t,o)}throw Error(le(156,t.tag))};var Tu=null,Pu=null;function Du(e,t,o,n){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Au(e,t,o,n){return new Du(e,t,o,n)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function xu(e,t){var o=e.alternate;return null===o?((o=Au(e.tag,t,e.key,e.mode)).elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.effectTag=0,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null),o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Iu(e,t,o,n,r,i){var s=2;if(n=e,"function"==typeof e)Nu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case rt:return Fu(o.children,r,i,t);case ut:s=8,r|=7;break;case it:s=8,r|=1;break;case st:return(e=Au(12,o,t,8|r)).elementType=st,e.type=st,e.expirationTime=i,e;case ct:return(e=Au(13,o,t,r)).type=ct,e.elementType=ct,e.expirationTime=i,e;case dt:return(e=Au(19,o,t,r)).elementType=dt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case at:s=10;break e;case lt:s=9;break e;case pt:s=11;break e;case ht:s=14;break e;case ft:s=16,n=null;break e;case gt:s=22;break e}throw Error(le(130,null==e?e:typeof e,""))}return(t=Au(s,o,t,r)).elementType=e,t.type=n,t.expirationTime=i,t}function Fu(e,t,o,n){return(e=Au(7,e,n,t)).expirationTime=o,e}function Lu(e,t,o){return(e=Au(6,e,null,t)).expirationTime=o,e}function Mu(e,t,o){return(t=Au(4,null!==e.children?e.children:[],e.key,t)).expirationTime=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gu(e,t,o){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=o,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function ku(e,t){var o=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==o&&o>=t&&e<=t}function Vu(e,t){var o=e.firstSuspendedTime,n=e.lastSuspendedTime;o<t&&(e.firstSuspendedTime=t),(n>t||0===o)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Wu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var o=e.firstSuspendedTime;0!==o&&(t>=o?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hu(e,t){var o=e.lastExpiredTime;(0===o||o>t)&&(e.lastExpiredTime=t)}function Bu(e,t,o,n){var r=t.current,i=Zl(),s=vs.suspense;i=Jl(i,r,s);e:if(o){t:{if(oo(o=o._reactInternalFiber)!==o||1!==o.tag)throw Error(le(170));var a=o;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(wi(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(null!==a);throw Error(le(171))}if(1===o.tag){var l=o.type;if(wi(l)){o=Ri(o,l,a);break e}}o=a}else o=gi;return null===t.context?t.context=o:t.pendingContext=o,(t=ds(i,s)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),hs(r,t),eu(r,i),i}function Uu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ju(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function zu(e,t){ju(e,t),(e=e.alternate)&&ju(e,t)}function Yu(e,t,o){var n=new Gu(e,t,o=null!=o&&!0===o.hydrate),r=Au(3,null,null,2===t?7:1===t?3:0);n.current=r,r.stateNode=n,ps(r),e[Nn]=n.current,o&&0!==t&&function(e,t){var o=to(t);Ao.forEach((function(e){mo(e,t,o)})),No.forEach((function(e){mo(e,t,o)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qu(e,t,o,n,r){var i=o._reactRootContainer;if(i){var s=i._internalRoot;if("function"==typeof r){var a=r;r=function(){var e=Uu(s);a.call(e)}}Bu(t,s,e,r)}else{if(i=o._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var o;o=e.lastChild;)e.removeChild(o);return new Yu(e,0,t?{hydrate:!0}:void 0)}(o,n),s=i._internalRoot,"function"==typeof r){var l=r;r=function(){var e=Uu(s);l.call(e)}}au((function(){Bu(t,s,e,r)}))}return Uu(s)}function $u(e,t,o){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:nt,key:null==n?null:""+n,children:e,containerInfo:t,implementation:o}}function Qu(e,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(le(200));return $u(e,t,null,o)}Yu.prototype.render=function(e){Bu(e,this._internalRoot,null,null)},Yu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Bu(null,e,null,(function(){t[Nn]=null}))},Co=function(e){if(13===e.tag){var t=Zi(Zl(),150,100);eu(e,t),zu(e,t)}},wo=function(e){13===e.tag&&(eu(e,3),zu(e,3))},Eo=function(e){if(13===e.tag){var t=Zl();eu(e,t=Jl(t,e,null)),zu(e,t)}},Ae=function(e,t,o){switch(t){case"input":if(Tt(e,o),t=o.name,"radio"===o.type&&null!=t){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var n=o[t];if(n!==e&&n.form===e.form){var r=Ln(n);if(!r)throw Error(le(90));Rt(n),Tt(n,r)}}}break;case"textarea":Ft(e,o);break;case"select":null!=(t=o.value)&&Nt(e,!!o.multiple,t,!1)}},Me=su,Ge=function(e,t,o,n,r){var i=Dl;Dl|=4;try{return Ki(98,e.bind(null,t,o,n,r))}finally{0===(Dl=i)&&Qi()}},ke=function(){0==(49&Dl)&&(function(){if(null!==ql){var e=ql;ql=null,e.forEach((function(e,t){Hu(t,e),nu(t)})),Qi()}}(),Eu())},Ve=function(e,t){var o=Dl;Dl|=2;try{return e(t)}finally{0===(Dl=o)&&Qi()}};var Xu={Events:[In,Fn,Ln,Pe,Se,Bn,function(e){ao(e,Hn)},Fe,Le,tn,po,Eu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var o=t.inject(e);Tu=function(e){try{t.onCommitFiberRoot(o,e,void 0,64==(64&e.current.effectTag))}catch(n){}},Pu=function(e){try{t.onCommitFiberUnmount(o,e)}catch(n){}}}catch(n){}})(se({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ze.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=io(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:xn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xu,oe.createPortal=Qu,oe.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(le(188));throw Error(le(268,Object.keys(e)))}return e=null===(e=io(t))?null:e.stateNode},oe.flushSync=function(e,t){if(0!=(48&Dl))throw Error(le(187));var o=Dl;Dl|=1;try{return Ki(99,e.bind(null,t))}finally{Dl=o,Qi()}},oe.hydrate=function(e,t,o){if(!Ku(t))throw Error(le(200));return qu(null,e,t,!0,o)},oe.render=function(e,t,o){if(!Ku(t))throw Error(le(200));return qu(null,e,t,!1,o)},oe.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(le(40));return!!e._reactRootContainer&&(au((function(){qu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Nn]=null}))})),!0)},oe.unstable_batchedUpdates=su,oe.unstable_createPortal=function(e,t){return Qu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},oe.unstable_renderSubtreeIntoContainer=function(e,t,o,n){if(!Ku(o))throw Error(le(200));if(null==e||void 0===e._reactInternalFiber)throw Error(le(38));return qu(e,t,o,!1,n)},oe.version="16.13.1",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),te.exports=oe;var Zu,Ju,ep=te.exports,tp={exports:{}};
|
||
/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/
|
||
Zu=tp,Ju=tp.exports,function(){var e,t="Expected a function",o="__lodash_hash_undefined__",n="__lodash_placeholder__",r=16,i=32,s=64,l=128,u=256,p=1/0,c=9007199254740991,d=NaN,h=4294967295,f=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",r],["flip",512],["partial",i],["partialRight",s],["rearg",u]],g="[object Arguments]",y="[object Array]",v="[object Boolean]",m="[object Date]",C="[object Error]",w="[object Function]",E="[object GeneratorFunction]",b="[object Map]",R="[object Number]",O="[object Object]",S="[object Promise]",_="[object RegExp]",T="[object Set]",P="[object String]",D="[object Symbol]",A="[object WeakMap]",N="[object ArrayBuffer]",x="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",L="[object Int8Array]",M="[object Int16Array]",G="[object Int32Array]",k="[object Uint8Array]",V="[object Uint8ClampedArray]",W="[object Uint16Array]",H="[object Uint32Array]",B=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,K=RegExp(z.source),q=RegExp(Y.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(te.source),ne=/^\s+/,re=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",be="\\u2700-\\u27bf",Re="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",_e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Pe="[\\ud800-\\udfff]",De="["+_e+"]",Ae="["+Ee+"]",Ne="\\d+",xe="[\\u2700-\\u27bf]",Ie="["+Re+"]",Fe="[^\\ud800-\\udfff"+_e+Ne+be+Re+Oe+"]",Le="\\ud83c[\\udffb-\\udfff]",Me="[^\\ud800-\\udfff]",Ge="(?:\\ud83c[\\udde6-\\uddff]){2}",ke="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Oe+"]",We="(?:"+Ie+"|"+Fe+")",He="(?:"+Ve+"|"+Fe+")",Be="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",je="(?:"+Ae+"|"+Le+")?",ze="[\\ufe0e\\ufe0f]?",Ye=ze+je+"(?:\\u200d(?:"+[Me,Ge,ke].join("|")+")"+ze+je+")*",Ke="(?:"+[xe,Ge,ke].join("|")+")"+Ye,qe="(?:"+[Me+Ae+"?",Ae,Ge,ke,Pe].join("|")+")",$e=RegExp(Te,"g"),Qe=RegExp(Ae,"g"),Xe=RegExp(Le+"(?="+Le+")|"+qe+Ye,"g"),Ze=RegExp([Ve+"?"+Ie+"+"+Be+"(?="+[De,Ve,"$"].join("|")+")",He+"+"+Ue+"(?="+[De,Ve+We,"$"].join("|")+")",Ve+"?"+We+"+"+Be,Ve+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Ke].join("|"),"g"),Je=RegExp("[\\u200d\\ud800-\\udfff"+Ee+Se+"]"),et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,nt={};nt[I]=nt[F]=nt[L]=nt[M]=nt[G]=nt[k]=nt[V]=nt[W]=nt[H]=!0,nt[g]=nt[y]=nt[N]=nt[v]=nt[x]=nt[m]=nt[C]=nt[w]=nt[b]=nt[R]=nt[O]=nt[_]=nt[T]=nt[P]=nt[A]=!1;var rt={};rt[g]=rt[y]=rt[N]=rt[x]=rt[v]=rt[m]=rt[I]=rt[F]=rt[L]=rt[M]=rt[G]=rt[b]=rt[R]=rt[O]=rt[_]=rt[T]=rt[P]=rt[D]=rt[k]=rt[V]=rt[W]=rt[H]=!0,rt[C]=rt[w]=rt[A]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,at=parseInt,lt="object"==typeof a&&a&&a.Object===Object&&a,ut="object"==typeof self&&self&&self.Object===Object&&self,pt=lt||ut||Function("return this")(),ct=Ju&&!Ju.nodeType&&Ju,dt=ct&&Zu&&!Zu.nodeType&&Zu,ht=dt&&dt.exports===ct,ft=ht&<.process,gt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||ft&&ft.binding&&ft.binding("util")}catch(t){}}(),yt=gt&>.isArrayBuffer,vt=gt&>.isDate,mt=gt&>.isMap,Ct=gt&>.isRegExp,wt=gt&>.isSet,Et=gt&>.isTypedArray;function bt(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function Rt(e,t,o,n){for(var r=-1,i=null==e?0:e.length;++r<i;){var s=e[r];t(n,s,o(s),e)}return n}function Ot(e,t){for(var o=-1,n=null==e?0:e.length;++o<n&&!1!==t(e[o],o,e););return e}function St(e,t){for(var o=null==e?0:e.length;o--&&!1!==t(e[o],o,e););return e}function _t(e,t){for(var o=-1,n=null==e?0:e.length;++o<n;)if(!t(e[o],o,e))return!1;return!0}function Tt(e,t){for(var o=-1,n=null==e?0:e.length,r=0,i=[];++o<n;){var s=e[o];t(s,o,e)&&(i[r++]=s)}return i}function Pt(e,t){return!(null==e||!e.length)&&kt(e,t,0)>-1}function Dt(e,t,o){for(var n=-1,r=null==e?0:e.length;++n<r;)if(o(t,e[n]))return!0;return!1}function At(e,t){for(var o=-1,n=null==e?0:e.length,r=Array(n);++o<n;)r[o]=t(e[o],o,e);return r}function Nt(e,t){for(var o=-1,n=t.length,r=e.length;++o<n;)e[r+o]=t[o];return e}function xt(e,t,o,n){var r=-1,i=null==e?0:e.length;for(n&&i&&(o=e[++r]);++r<i;)o=t(o,e[r],r,e);return o}function It(e,t,o,n){var r=null==e?0:e.length;for(n&&r&&(o=e[--r]);r--;)o=t(o,e[r],r,e);return o}function Ft(e,t){for(var o=-1,n=null==e?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}var Lt=Bt("length");function Mt(e,t,o){var n;return o(e,(function(e,o,r){if(t(e,o,r))return n=o,!1})),n}function Gt(e,t,o,n){for(var r=e.length,i=o+(n?1:-1);n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function kt(e,t,o){return t==t?function(e,t,o){for(var n=o-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}(e,t,o):Gt(e,Wt,o)}function Vt(e,t,o,n){for(var r=o-1,i=e.length;++r<i;)if(n(e[r],t))return r;return-1}function Wt(e){return e!=e}function Ht(e,t){var o=null==e?0:e.length;return o?zt(e,t)/o:d}function Bt(t){return function(o){return null==o?e:o[t]}}function Ut(t){return function(o){return null==t?e:t[o]}}function jt(e,t,o,n,r){return r(e,(function(e,r,i){o=n?(n=!1,e):t(o,e,r,i)})),o}function zt(t,o){for(var n,r=-1,i=t.length;++r<i;){var s=o(t[r]);s!==e&&(n=n===e?s:n+s)}return n}function Yt(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}function Kt(e){return e?e.slice(0,po(e)+1).replace(ne,""):e}function qt(e){return function(t){return e(t)}}function $t(e,t){return At(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function Xt(e,t){for(var o=-1,n=e.length;++o<n&&kt(t,e[o],0)>-1;);return o}function Zt(e,t){for(var o=e.length;o--&&kt(t,e[o],0)>-1;);return o}function Jt(e,t){for(var o=e.length,n=0;o--;)e[o]===t&&++n;return n}var eo=Ut({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),to=Ut({"&":"&","<":"<",">":">",'"':""","'":"'"});function oo(e){return"\\"+it[e]}function no(e){return Je.test(e)}function ro(e){var t=-1,o=Array(e.size);return e.forEach((function(e,n){o[++t]=[n,e]})),o}function io(e,t){return function(o){return e(t(o))}}function so(e,t){for(var o=-1,r=e.length,i=0,s=[];++o<r;){var a=e[o];a!==t&&a!==n||(e[o]=n,s[i++]=o)}return s}function ao(e){var t=-1,o=Array(e.size);return e.forEach((function(e){o[++t]=e})),o}function lo(e){return no(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):Lt(e)}function uo(e){return no(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function po(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var co=Ut({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ho=function a(re){var Ee,be=(re=null==re?pt:ho.defaults(pt.Object(),re,ho.pick(pt,tt))).Array,Re=re.Date,Oe=re.Error,Se=re.Function,_e=re.Math,Te=re.Object,Pe=re.RegExp,De=re.String,Ae=re.TypeError,Ne=be.prototype,xe=Se.prototype,Ie=Te.prototype,Fe=re["__core-js_shared__"],Le=xe.toString,Me=Ie.hasOwnProperty,Ge=0,ke=(Ee=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+Ee:"",Ve=Ie.toString,We=Le.call(Te),He=pt._,Be=Pe("^"+Le.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ht?re.Buffer:e,je=re.Symbol,ze=re.Uint8Array,Ye=Ue?Ue.allocUnsafe:e,Ke=io(Te.getPrototypeOf,Te),qe=Te.create,Xe=Ie.propertyIsEnumerable,Je=Ne.splice,it=je?je.isConcatSpreadable:e,lt=je?je.iterator:e,ut=je?je.toStringTag:e,ct=function(){try{var e=hi(Te,"defineProperty");return e({},"",{}),e}catch(t){}}(),dt=re.clearTimeout!==pt.clearTimeout&&re.clearTimeout,ft=Re&&Re.now!==pt.Date.now&&Re.now,gt=re.setTimeout!==pt.setTimeout&&re.setTimeout,Lt=_e.ceil,Ut=_e.floor,fo=Te.getOwnPropertySymbols,go=Ue?Ue.isBuffer:e,yo=re.isFinite,vo=Ne.join,mo=io(Te.keys,Te),Co=_e.max,wo=_e.min,Eo=Re.now,bo=re.parseInt,Ro=_e.random,Oo=Ne.reverse,So=hi(re,"DataView"),_o=hi(re,"Map"),To=hi(re,"Promise"),Po=hi(re,"Set"),Do=hi(re,"WeakMap"),Ao=hi(Te,"create"),No=Do&&new Do,xo={},Io=Ui(So),Fo=Ui(_o),Lo=Ui(To),Mo=Ui(Po),Go=Ui(Do),ko=je?je.prototype:e,Vo=ko?ko.valueOf:e,Wo=ko?ko.toString:e;function Ho(e){if(sa(e)&&!$s(e)&&!(e instanceof zo)){if(e instanceof jo)return e;if(Me.call(e,"__wrapped__"))return ji(e)}return new jo(e)}var Bo=function(){function t(){}return function(o){if(!ia(o))return{};if(qe)return qe(o);t.prototype=o;var n=new t;return t.prototype=e,n}}();function Uo(){}function jo(t,o){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=e}function zo(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Yo(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function Ko(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function qo(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function $o(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new qo;++t<o;)this.add(e[t])}function Qo(e){var t=this.__data__=new Ko(e);this.size=t.size}function Xo(e,t){var o=$s(e),n=!o&&qs(e),r=!o&&!n&&Js(e),i=!o&&!n&&!r&&fa(e),s=o||n||r||i,a=s?Yt(e.length,De):[],l=a.length;for(var u in e)!t&&!Me.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wi(u,l))||a.push(u);return a}function Zo(t){var o=t.length;return o?t[Qn(0,o-1)]:e}function Jo(e,t){return Gi(Nr(e),un(t,0,e.length))}function en(e){return Gi(Nr(e))}function tn(t,o,n){(n!==e&&!zs(t[o],n)||n===e&&!(o in t))&&an(t,o,n)}function on(t,o,n){var r=t[o];Me.call(t,o)&&zs(r,n)&&(n!==e||o in t)||an(t,o,n)}function nn(e,t){for(var o=e.length;o--;)if(zs(e[o][0],t))return o;return-1}function rn(e,t,o,n){return fn(e,(function(e,r,i){t(n,e,o(e),i)})),n}function sn(e,t){return e&&xr(t,Ma(t),e)}function an(e,t,o){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ln(t,o){for(var n=-1,r=o.length,i=be(r),s=null==t;++n<r;)i[n]=s?e:Na(t,o[n]);return i}function un(t,o,n){return t==t&&(n!==e&&(t=t<=n?t:n),o!==e&&(t=t>=o?t:o)),t}function pn(t,o,n,r,i,s){var a,l=1&o,u=2&o,p=4&o;if(n&&(a=i?n(t,r,i,s):n(t)),a!==e)return a;if(!ia(t))return t;var c=$s(t);if(c){if(a=function(e){var t=e.length,o=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(o.index=e.index,o.input=e.input),o}(t),!l)return Nr(t,a)}else{var d=yi(t),h=d==w||d==E;if(Js(t))return Sr(t,l);if(d==O||d==g||h&&!i){if(a=u||h?{}:mi(t),!l)return u?function(e,t){return xr(e,gi(e),t)}(t,function(e,t){return e&&xr(t,Ga(t),e)}(a,t)):function(e,t){return xr(e,fi(e),t)}(t,sn(a,t))}else{if(!rt[d])return i?t:{};a=function(e,t,o){var n,r=e.constructor;switch(t){case N:return _r(e);case v:case m:return new r(+e);case x:return function(e,t){var o=t?_r(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}(e,o);case I:case F:case L:case M:case G:case k:case V:case W:case H:return Tr(e,o);case b:return new r;case R:case P:return new r(e);case _:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new r;case D:return n=e,Vo?Te(Vo.call(n)):{}}}(t,d,l)}}s||(s=new Qo);var f=s.get(t);if(f)return f;s.set(t,a),ca(t)?t.forEach((function(e){a.add(pn(e,o,n,e,t,s))})):aa(t)&&t.forEach((function(e,r){a.set(r,pn(e,o,n,r,t,s))}));var y=c?e:(p?u?si:ii:u?Ga:Ma)(t);return Ot(y||t,(function(e,r){y&&(e=t[r=e]),on(a,r,pn(e,o,n,r,t,s))})),a}function cn(t,o,n){var r=n.length;if(null==t)return!r;for(t=Te(t);r--;){var i=n[r],s=o[i],a=t[i];if(a===e&&!(i in t)||!s(a))return!1}return!0}function dn(o,n,r){if("function"!=typeof o)throw new Ae(t);return Ii((function(){o.apply(e,r)}),n)}function hn(e,t,o,n){var r=-1,i=Pt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;o&&(t=At(t,qt(o))),n?(i=Dt,s=!1):t.length>=200&&(i=Qt,s=!1,t=new $o(t));e:for(;++r<a;){var p=e[r],c=null==o?p:o(p);if(p=n||0!==p?p:0,s&&c==c){for(var d=u;d--;)if(t[d]===c)continue e;l.push(p)}else i(t,c,n)||l.push(p)}return l}Ho.templateSettings={escape:$,evaluate:Q,interpolate:X,variable:"",imports:{_:Ho}},Ho.prototype=Uo.prototype,Ho.prototype.constructor=Ho,jo.prototype=Bo(Uo.prototype),jo.prototype.constructor=jo,zo.prototype=Bo(Uo.prototype),zo.prototype.constructor=zo,Yo.prototype.clear=function(){this.__data__=Ao?Ao(null):{},this.size=0},Yo.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yo.prototype.get=function(t){var n=this.__data__;if(Ao){var r=n[t];return r===o?e:r}return Me.call(n,t)?n[t]:e},Yo.prototype.has=function(t){var o=this.__data__;return Ao?o[t]!==e:Me.call(o,t)},Yo.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ao&&n===e?o:n,this},Ko.prototype.clear=function(){this.__data__=[],this.size=0},Ko.prototype.delete=function(e){var t=this.__data__,o=nn(t,e);return!(o<0||(o==t.length-1?t.pop():Je.call(t,o,1),--this.size,0))},Ko.prototype.get=function(t){var o=this.__data__,n=nn(o,t);return n<0?e:o[n][1]},Ko.prototype.has=function(e){return nn(this.__data__,e)>-1},Ko.prototype.set=function(e,t){var o=this.__data__,n=nn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this},qo.prototype.clear=function(){this.size=0,this.__data__={hash:new Yo,map:new(_o||Ko),string:new Yo}},qo.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},qo.prototype.get=function(e){return ci(this,e).get(e)},qo.prototype.has=function(e){return ci(this,e).has(e)},qo.prototype.set=function(e,t){var o=ci(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this},$o.prototype.add=$o.prototype.push=function(e){return this.__data__.set(e,o),this},$o.prototype.has=function(e){return this.__data__.has(e)},Qo.prototype.clear=function(){this.__data__=new Ko,this.size=0},Qo.prototype.delete=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o},Qo.prototype.get=function(e){return this.__data__.get(e)},Qo.prototype.has=function(e){return this.__data__.has(e)},Qo.prototype.set=function(e,t){var o=this.__data__;if(o instanceof Ko){var n=o.__data__;if(!_o||n.length<199)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new qo(n)}return o.set(e,t),this.size=o.size,this};var fn=Lr(bn),gn=Lr(Rn,!0);function yn(e,t){var o=!0;return fn(e,(function(e,n,r){return o=!!t(e,n,r)})),o}function vn(t,o,n){for(var r=-1,i=t.length;++r<i;){var s=t[r],a=o(s);if(null!=a&&(l===e?a==a&&!ha(a):n(a,l)))var l=a,u=s}return u}function mn(e,t){var o=[];return fn(e,(function(e,n,r){t(e,n,r)&&o.push(e)})),o}function Cn(e,t,o,n,r){var i=-1,s=e.length;for(o||(o=Ci),r||(r=[]);++i<s;){var a=e[i];t>0&&o(a)?t>1?Cn(a,t-1,o,n,r):Nt(r,a):n||(r[r.length]=a)}return r}var wn=Mr(),En=Mr(!0);function bn(e,t){return e&&wn(e,t,Ma)}function Rn(e,t){return e&&En(e,t,Ma)}function On(e,t){return Tt(t,(function(t){return oa(e[t])}))}function Sn(t,o){for(var n=0,r=(o=Er(o,t)).length;null!=t&&n<r;)t=t[Bi(o[n++])];return n&&n==r?t:e}function _n(e,t,o){var n=t(e);return $s(e)?n:Nt(n,o(e))}function Tn(t){return null==t?t===e?"[object Undefined]":"[object Null]":ut&&ut in Te(t)?function(t){var o=Me.call(t,ut),n=t[ut];try{t[ut]=e;var r=!0}catch(s){}var i=Ve.call(t);return r&&(o?t[ut]=n:delete t[ut]),i}(t):function(e){return Ve.call(e)}(t)}function Pn(e,t){return e>t}function Dn(e,t){return null!=e&&Me.call(e,t)}function An(e,t){return null!=e&&t in Te(e)}function Nn(t,o,n){for(var r=n?Dt:Pt,i=t[0].length,s=t.length,a=s,l=be(s),u=1/0,p=[];a--;){var c=t[a];a&&o&&(c=At(c,qt(o))),u=wo(c.length,u),l[a]=!n&&(o||i>=120&&c.length>=120)?new $o(a&&c):e}c=t[0];var d=-1,h=l[0];e:for(;++d<i&&p.length<u;){var f=c[d],g=o?o(f):f;if(f=n||0!==f?f:0,!(h?Qt(h,g):r(p,g,n))){for(a=s;--a;){var y=l[a];if(!(y?Qt(y,g):r(t[a],g,n)))continue e}h&&h.push(g),p.push(f)}}return p}function xn(t,o,n){var r=null==(t=Di(t,o=Er(o,t)))?t:t[Bi(ts(o))];return null==r?e:bt(r,t,n)}function In(e){return sa(e)&&Tn(e)==g}function Fn(t,o,n,r,i){return t===o||(null==t||null==o||!sa(t)&&!sa(o)?t!=t&&o!=o:function(t,o,n,r,i,s){var a=$s(t),l=$s(o),u=a?y:yi(t),p=l?y:yi(o),c=(u=u==g?O:u)==O,d=(p=p==g?O:p)==O,h=u==p;if(h&&Js(t)){if(!Js(o))return!1;a=!0,c=!1}if(h&&!c)return s||(s=new Qo),a||fa(t)?ni(t,o,n,r,i,s):function(e,t,o,n,r,i,s){switch(o){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new ze(e),new ze(t)));case v:case m:case R:return zs(+e,+t);case C:return e.name==t.name&&e.message==t.message;case _:case P:return e==t+"";case b:var a=ro;case T:var l=1&n;if(a||(a=ao),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var p=ni(a(e),a(t),n,r,i,s);return s.delete(e),p;case D:if(Vo)return Vo.call(e)==Vo.call(t)}return!1}(t,o,u,n,r,i,s);if(!(1&n)){var f=c&&Me.call(t,"__wrapped__"),w=d&&Me.call(o,"__wrapped__");if(f||w){var E=f?t.value():t,S=w?o.value():o;return s||(s=new Qo),i(E,S,n,r,s)}}return!!h&&(s||(s=new Qo),function(t,o,n,r,i,s){var a=1&n,l=ii(t),u=l.length,p=ii(o).length;if(u!=p&&!a)return!1;for(var c=u;c--;){var d=l[c];if(!(a?d in o:Me.call(o,d)))return!1}var h=s.get(t),f=s.get(o);if(h&&f)return h==o&&f==t;var g=!0;s.set(t,o),s.set(o,t);for(var y=a;++c<u;){var v=t[d=l[c]],m=o[d];if(r)var C=a?r(m,v,d,o,t,s):r(v,m,d,t,o,s);if(!(C===e?v===m||i(v,m,n,r,s):C)){g=!1;break}y||(y="constructor"==d)}if(g&&!y){var w=t.constructor,E=o.constructor;w==E||!("constructor"in t)||!("constructor"in o)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(o),g}(t,o,n,r,i,s))}(t,o,n,r,Fn,i))}function Ln(t,o,n,r){var i=n.length,s=i,a=!r;if(null==t)return!s;for(t=Te(t);i--;){var l=n[i];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<s;){var u=(l=n[i])[0],p=t[u],c=l[1];if(a&&l[2]){if(p===e&&!(u in t))return!1}else{var d=new Qo;if(r)var h=r(p,c,u,t,o,d);if(!(h===e?Fn(c,p,3,r,d):h))return!1}}return!0}function Mn(e){return!(!ia(e)||(t=e,ke&&ke in t))&&(oa(e)?Be:ge).test(Ui(e));var t}function Gn(e){return"function"==typeof e?e:null==e?ll:"object"==typeof e?$s(e)?Un(e[0],e[1]):Bn(e):vl(e)}function kn(e){if(!Si(e))return mo(e);var t=[];for(var o in Te(e))Me.call(e,o)&&"constructor"!=o&&t.push(o);return t}function Vn(e){if(!ia(e))return function(e){var t=[];if(null!=e)for(var o in Te(e))t.push(o);return t}(e);var t=Si(e),o=[];for(var n in e)("constructor"!=n||!t&&Me.call(e,n))&&o.push(n);return o}function Wn(e,t){return e<t}function Hn(e,t){var o=-1,n=Xs(e)?be(e.length):[];return fn(e,(function(e,r,i){n[++o]=t(e,r,i)})),n}function Bn(e){var t=di(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(o){return o===e||Ln(o,e,t)}}function Un(t,o){return bi(t)&&_i(o)?Ti(Bi(t),o):function(n){var r=Na(n,t);return r===e&&r===o?xa(n,t):Fn(o,r,3)}}function jn(t,o,n,r,i){t!==o&&wn(o,(function(s,a){if(i||(i=new Qo),ia(s))!function(t,o,n,r,i,s,a){var l=Ni(t,n),u=Ni(o,n),p=a.get(u);if(p)tn(t,n,p);else{var c=s?s(l,u,n+"",t,o,a):e,d=c===e;if(d){var h=$s(u),f=!h&&Js(u),g=!h&&!f&&fa(u);c=u,h||f||g?$s(l)?c=l:Zs(l)?c=Nr(l):f?(d=!1,c=Sr(u,!0)):g?(d=!1,c=Tr(u,!0)):c=[]:ua(u)||qs(u)?(c=l,qs(l)?c=ba(l):ia(l)&&!oa(l)||(c=mi(u))):d=!1}d&&(a.set(u,c),i(c,u,r,s,a),a.delete(u)),tn(t,n,c)}}(t,o,a,n,jn,r,i);else{var l=r?r(Ni(t,a),s,a+"",t,o,i):e;l===e&&(l=s),tn(t,a,l)}}),Ga)}function zn(t,o){var n=t.length;if(n)return wi(o+=o<0?n:0,n)?t[o]:e}function Yn(e,t,o){t=t.length?At(t,(function(e){return $s(e)?function(t){return Sn(t,1===e.length?e[0]:e)}:e})):[ll];var n=-1;return t=At(t,qt(pi())),function(e,t){var o=e.length;for(e.sort(t);o--;)e[o]=e[o].value;return e}(Hn(e,(function(e,o,r){return{criteria:At(t,(function(t){return t(e)})),index:++n,value:e}})),(function(e,t){return function(e,t,o){for(var n=-1,r=e.criteria,i=t.criteria,s=r.length,a=o.length;++n<s;){var l=Pr(r[n],i[n]);if(l)return n>=a?l:l*("desc"==o[n]?-1:1)}return e.index-t.index}(e,t,o)}))}function Kn(e,t,o){for(var n=-1,r=t.length,i={};++n<r;){var s=t[n],a=Sn(e,s);o(a,s)&&tr(i,Er(s,e),a)}return i}function qn(e,t,o,n){var r=n?Vt:kt,i=-1,s=t.length,a=e;for(e===t&&(t=Nr(t)),o&&(a=At(e,qt(o)));++i<s;)for(var l=0,u=t[i],p=o?o(u):u;(l=r(a,p,l,n))>-1;)a!==e&&Je.call(a,l,1),Je.call(e,l,1);return e}function $n(e,t){for(var o=e?t.length:0,n=o-1;o--;){var r=t[o];if(o==n||r!==i){var i=r;wi(r)?Je.call(e,r,1):hr(e,r)}}return e}function Qn(e,t){return e+Ut(Ro()*(t-e+1))}function Xn(e,t){var o="";if(!e||t<1||t>c)return o;do{t%2&&(o+=e),(t=Ut(t/2))&&(e+=e)}while(t);return o}function Zn(e,t){return Fi(Pi(e,t,ll),e+"")}function Jn(e){return Zo(za(e))}function er(e,t){var o=za(e);return Gi(o,un(t,0,o.length))}function tr(t,o,n,r){if(!ia(t))return t;for(var i=-1,s=(o=Er(o,t)).length,a=s-1,l=t;null!=l&&++i<s;){var u=Bi(o[i]),p=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var c=l[u];(p=r?r(c,u,l):e)===e&&(p=ia(c)?c:wi(o[i+1])?[]:{})}on(l,u,p),l=l[u]}return t}var or=No?function(e,t){return No.set(e,t),e}:ll,nr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:il(t),writable:!0})}:ll;function rr(e){return Gi(za(e))}function ir(e,t,o){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(o=o>r?r:o)<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=be(r);++n<r;)i[n]=e[n+t];return i}function sr(e,t){var o;return fn(e,(function(e,n,r){return!(o=t(e,n,r))})),!!o}function ar(e,t,o){var n=0,r=null==e?n:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;n<r;){var i=n+r>>>1,s=e[i];null!==s&&!ha(s)&&(o?s<=t:s<t)?n=i+1:r=i}return r}return lr(e,t,ll,o)}function lr(t,o,n,r){var i=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(o=n(o))!=o,l=null===o,u=ha(o),p=o===e;i<s;){var c=Ut((i+s)/2),d=n(t[c]),h=d!==e,f=null===d,g=d==d,y=ha(d);if(a)var v=r||g;else v=p?g&&(r||h):l?g&&h&&(r||!f):u?g&&h&&!f&&(r||!y):!f&&!y&&(r?d<=o:d<o);v?i=c+1:s=c}return wo(s,4294967294)}function ur(e,t){for(var o=-1,n=e.length,r=0,i=[];++o<n;){var s=e[o],a=t?t(s):s;if(!o||!zs(a,l)){var l=a;i[r++]=0===s?0:s}}return i}function pr(e){return"number"==typeof e?e:ha(e)?d:+e}function cr(e){if("string"==typeof e)return e;if($s(e))return At(e,cr)+"";if(ha(e))return Wo?Wo.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dr(e,t,o){var n=-1,r=Pt,i=e.length,s=!0,a=[],l=a;if(o)s=!1,r=Dt;else if(i>=200){var u=t?null:Xr(e);if(u)return ao(u);s=!1,r=Qt,l=new $o}else l=t?[]:a;e:for(;++n<i;){var p=e[n],c=t?t(p):p;if(p=o||0!==p?p:0,s&&c==c){for(var d=l.length;d--;)if(l[d]===c)continue e;t&&l.push(c),a.push(p)}else r(l,c,o)||(l!==a&&l.push(c),a.push(p))}return a}function hr(e,t){return null==(e=Di(e,t=Er(t,e)))||delete e[Bi(ts(t))]}function fr(e,t,o,n){return tr(e,t,o(Sn(e,t)),n)}function gr(e,t,o,n){for(var r=e.length,i=n?r:-1;(n?i--:++i<r)&&t(e[i],i,e););return o?ir(e,n?0:i,n?i+1:r):ir(e,n?i+1:0,n?r:i)}function yr(e,t){var o=e;return o instanceof zo&&(o=o.value()),xt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),o)}function vr(e,t,o){var n=e.length;if(n<2)return n?dr(e[0]):[];for(var r=-1,i=be(n);++r<n;)for(var s=e[r],a=-1;++a<n;)a!=r&&(i[r]=hn(i[r]||s,e[a],t,o));return dr(Cn(i,1),t,o)}function mr(t,o,n){for(var r=-1,i=t.length,s=o.length,a={};++r<i;){var l=r<s?o[r]:e;n(a,t[r],l)}return a}function Cr(e){return Zs(e)?e:[]}function wr(e){return"function"==typeof e?e:ll}function Er(e,t){return $s(e)?e:bi(e,t)?[e]:Hi(Ra(e))}var br=Zn;function Rr(t,o,n){var r=t.length;return n=n===e?r:n,!o&&n>=r?t:ir(t,o,n)}var Or=dt||function(e){return pt.clearTimeout(e)};function Sr(e,t){if(t)return e.slice();var o=e.length,n=Ye?Ye(o):new e.constructor(o);return e.copy(n),n}function _r(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Tr(e,t){var o=t?_r(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function Pr(t,o){if(t!==o){var n=t!==e,r=null===t,i=t==t,s=ha(t),a=o!==e,l=null===o,u=o==o,p=ha(o);if(!l&&!p&&!s&&t>o||s&&a&&u&&!l&&!p||r&&a&&u||!n&&u||!i)return 1;if(!r&&!s&&!p&&t<o||p&&n&&i&&!r&&!s||l&&n&&i||!a&&i||!u)return-1}return 0}function Dr(e,t,o,n){for(var r=-1,i=e.length,s=o.length,a=-1,l=t.length,u=Co(i-s,0),p=be(l+u),c=!n;++a<l;)p[a]=t[a];for(;++r<s;)(c||r<i)&&(p[o[r]]=e[r]);for(;u--;)p[a++]=e[r++];return p}function Ar(e,t,o,n){for(var r=-1,i=e.length,s=-1,a=o.length,l=-1,u=t.length,p=Co(i-a,0),c=be(p+u),d=!n;++r<p;)c[r]=e[r];for(var h=r;++l<u;)c[h+l]=t[l];for(;++s<a;)(d||r<i)&&(c[h+o[s]]=e[r++]);return c}function Nr(e,t){var o=-1,n=e.length;for(t||(t=be(n));++o<n;)t[o]=e[o];return t}function xr(t,o,n,r){var i=!n;n||(n={});for(var s=-1,a=o.length;++s<a;){var l=o[s],u=r?r(n[l],t[l],l,n,t):e;u===e&&(u=t[l]),i?an(n,l,u):on(n,l,u)}return n}function Ir(e,t){return function(o,n){var r=$s(o)?Rt:rn,i=t?t():{};return r(o,e,pi(n,2),i)}}function Fr(t){return Zn((function(o,n){var r=-1,i=n.length,s=i>1?n[i-1]:e,a=i>2?n[2]:e;for(s=t.length>3&&"function"==typeof s?(i--,s):e,a&&Ei(n[0],n[1],a)&&(s=i<3?e:s,i=1),o=Te(o);++r<i;){var l=n[r];l&&t(o,l,r,s)}return o}))}function Lr(e,t){return function(o,n){if(null==o)return o;if(!Xs(o))return e(o,n);for(var r=o.length,i=t?r:-1,s=Te(o);(t?i--:++i<r)&&!1!==n(s[i],i,s););return o}}function Mr(e){return function(t,o,n){for(var r=-1,i=Te(t),s=n(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===o(i[l],l,i))break}return t}}function Gr(t){return function(o){var n=no(o=Ra(o))?uo(o):e,r=n?n[0]:o.charAt(0),i=n?Rr(n,1).join(""):o.slice(1);return r[t]()+i}}function kr(e){return function(t){return xt(ol(qa(t).replace($e,"")),e,"")}}function Vr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Bo(e.prototype),n=e.apply(o,t);return ia(n)?n:o}}function Wr(t){return function(o,n,r){var i=Te(o);if(!Xs(o)){var s=pi(n,3);o=Ma(o),n=function(e){return s(i[e],e,i)}}var a=t(o,n,r);return a>-1?i[s?o[a]:a]:e}}function Hr(o){return ri((function(n){var r=n.length,i=r,s=jo.prototype.thru;for(o&&n.reverse();i--;){var a=n[i];if("function"!=typeof a)throw new Ae(t);if(s&&!l&&"wrapper"==li(a))var l=new jo([],!0)}for(i=l?i:r;++i<r;){var u=li(a=n[i]),p="wrapper"==u?ai(a):e;l=p&&Ri(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?l[li(p[0])].apply(l,p[3]):1==a.length&&Ri(a)?l[u]():l.thru(a)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&$s(t))return l.plant(t).value();for(var o=0,i=r?n[o].apply(this,e):t;++o<r;)i=n[o].call(this,i);return i}}))}function Br(t,o,n,r,i,s,a,u,p,c){var d=o&l,h=1&o,f=2&o,g=24&o,y=512&o,v=f?e:Vr(t);return function e(){for(var l=arguments.length,m=be(l),C=l;C--;)m[C]=arguments[C];if(g)var w=ui(e),E=Jt(m,w);if(r&&(m=Dr(m,r,i,g)),s&&(m=Ar(m,s,a,g)),l-=E,g&&l<c){var b=so(m,w);return $r(t,o,Br,e.placeholder,n,m,b,u,p,c-l)}var R=h?n:this,O=f?R[t]:t;return l=m.length,u?m=Ai(m,u):y&&l>1&&m.reverse(),d&&p<l&&(m.length=p),this&&this!==pt&&this instanceof e&&(O=v||Vr(O)),O.apply(R,m)}}function Ur(e,t){return function(o,n){return function(e,t,o,n){return bn(e,(function(e,r,i){t(n,o(e),r,i)})),n}(o,e,t(n),{})}}function jr(t,o){return function(n,r){var i;if(n===e&&r===e)return o;if(n!==e&&(i=n),r!==e){if(i===e)return r;"string"==typeof n||"string"==typeof r?(n=cr(n),r=cr(r)):(n=pr(n),r=pr(r)),i=t(n,r)}return i}}function zr(e){return ri((function(t){return t=At(t,qt(pi())),Zn((function(o){var n=this;return e(t,(function(e){return bt(e,n,o)}))}))}))}function Yr(t,o){var n=(o=o===e?" ":cr(o)).length;if(n<2)return n?Xn(o,t):o;var r=Xn(o,Lt(t/lo(o)));return no(o)?Rr(uo(r),0,t).join(""):r.slice(0,t)}function Kr(t){return function(o,n,r){return r&&"number"!=typeof r&&Ei(o,n,r)&&(n=r=e),o=ma(o),n===e?(n=o,o=0):n=ma(n),function(e,t,o,n){for(var r=-1,i=Co(Lt((t-e)/(o||1)),0),s=be(i);i--;)s[n?i:++r]=e,e+=o;return s}(o,n,r=r===e?o<n?1:-1:ma(r),t)}}function qr(e){return function(t,o){return"string"==typeof t&&"string"==typeof o||(t=Ea(t),o=Ea(o)),e(t,o)}}function $r(t,o,n,r,a,l,u,p,c,d){var h=8&o;o|=h?i:s,4&(o&=~(h?s:i))||(o&=-4);var f=[t,o,a,h?l:e,h?u:e,h?e:l,h?e:u,p,c,d],g=n.apply(e,f);return Ri(t)&&xi(g,f),g.placeholder=r,Li(g,t,o)}function Qr(e){var t=_e[e];return function(e,o){if(e=Ea(e),(o=null==o?0:wo(Ca(o),292))&&yo(e)){var n=(Ra(e)+"e").split("e");return+((n=(Ra(t(n[0]+"e"+(+n[1]+o)))+"e").split("e"))[0]+"e"+(+n[1]-o))}return t(e)}}var Xr=Po&&1/ao(new Po([,-0]))[1]==p?function(e){return new Po(e)}:hl;function Zr(e){return function(t){var o=yi(t);return o==b?ro(t):o==T?function(e){var t=-1,o=Array(e.size);return e.forEach((function(e){o[++t]=[e,e]})),o}(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jr(o,a,p,c,d,h,f,g){var y=2&a;if(!y&&"function"!=typeof o)throw new Ae(t);var v=c?c.length:0;if(v||(a&=-97,c=d=e),f=f===e?f:Co(Ca(f),0),g=g===e?g:Ca(g),v-=d?d.length:0,a&s){var m=c,C=d;c=d=e}var w=y?e:ai(o),E=[o,a,p,c,d,m,C,h,f,g];if(w&&function(e,t){var o=e[1],r=t[1],i=o|r,s=i<131,a=r==l&&8==o||r==l&&o==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==o;if(!s&&!a)return e;1&r&&(e[2]=t[2],i|=1&o?0:4);var p=t[3];if(p){var c=e[3];e[3]=c?Dr(c,p,t[4]):p,e[4]=c?so(e[3],n):t[4]}(p=t[5])&&(c=e[5],e[5]=c?Ar(c,p,t[6]):p,e[6]=c?so(e[5],n):t[6]),(p=t[7])&&(e[7]=p),r&l&&(e[8]=null==e[8]?t[8]:wo(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(E,w),o=E[0],a=E[1],p=E[2],c=E[3],d=E[4],!(g=E[9]=E[9]===e?y?0:o.length:Co(E[9]-v,0))&&24&a&&(a&=-25),a&&1!=a)b=8==a||a==r?function(t,o,n){var r=Vr(t);return function i(){for(var s=arguments.length,a=be(s),l=s,u=ui(i);l--;)a[l]=arguments[l];var p=s<3&&a[0]!==u&&a[s-1]!==u?[]:so(a,u);return(s-=p.length)<n?$r(t,o,Br,i.placeholder,e,a,p,e,e,n-s):bt(this&&this!==pt&&this instanceof i?r:t,this,a)}}(o,a,g):a!=i&&33!=a||d.length?Br.apply(e,E):function(e,t,o,n){var r=1&t,i=Vr(e);return function t(){for(var s=-1,a=arguments.length,l=-1,u=n.length,p=be(u+a),c=this&&this!==pt&&this instanceof t?i:e;++l<u;)p[l]=n[l];for(;a--;)p[l++]=arguments[++s];return bt(c,r?o:this,p)}}(o,a,p,c);else var b=function(e,t,o){var n=1&t,r=Vr(e);return function t(){return(this&&this!==pt&&this instanceof t?r:e).apply(n?o:this,arguments)}}(o,a,p);return Li((w?or:xi)(b,E),o,a)}function ei(t,o,n,r){return t===e||zs(t,Ie[n])&&!Me.call(r,n)?o:t}function ti(t,o,n,r,i,s){return ia(t)&&ia(o)&&(s.set(o,t),jn(t,o,e,ti,s),s.delete(o)),t}function oi(t){return ua(t)?e:t}function ni(t,o,n,r,i,s){var a=1&n,l=t.length,u=o.length;if(l!=u&&!(a&&u>l))return!1;var p=s.get(t),c=s.get(o);if(p&&c)return p==o&&c==t;var d=-1,h=!0,f=2&n?new $o:e;for(s.set(t,o),s.set(o,t);++d<l;){var g=t[d],y=o[d];if(r)var v=a?r(y,g,d,o,t,s):r(g,y,d,t,o,s);if(v!==e){if(v)continue;h=!1;break}if(f){if(!Ft(o,(function(e,t){if(!Qt(f,t)&&(g===e||i(g,e,n,r,s)))return f.push(t)}))){h=!1;break}}else if(g!==y&&!i(g,y,n,r,s)){h=!1;break}}return s.delete(t),s.delete(o),h}function ri(t){return Fi(Pi(t,e,Qi),t+"")}function ii(e){return _n(e,Ma,fi)}function si(e){return _n(e,Ga,gi)}var ai=No?function(e){return No.get(e)}:hl;function li(e){for(var t=e.name+"",o=xo[t],n=Me.call(xo,t)?o.length:0;n--;){var r=o[n],i=r.func;if(null==i||i==e)return r.name}return t}function ui(e){return(Me.call(Ho,"placeholder")?Ho:e).placeholder}function pi(){var e=Ho.iteratee||ul;return e=e===ul?Gn:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var o,n,r=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof t?"string":"hash"]:r.map}function di(e){for(var t=Ma(e),o=t.length;o--;){var n=t[o],r=e[n];t[o]=[n,r,_i(r)]}return t}function hi(t,o){var n=function(t,o){return null==t?e:t[o]}(t,o);return Mn(n)?n:e}var fi=fo?function(e){return null==e?[]:(e=Te(e),Tt(fo(e),(function(t){return Xe.call(e,t)})))}:wl,gi=fo?function(e){for(var t=[];e;)Nt(t,fi(e)),e=Ke(e);return t}:wl,yi=Tn;function vi(e,t,o){for(var n=-1,r=(t=Er(t,e)).length,i=!1;++n<r;){var s=Bi(t[n]);if(!(i=null!=e&&o(e,s)))break;e=e[s]}return i||++n!=r?i:!!(r=null==e?0:e.length)&&ra(r)&&wi(s,r)&&($s(e)||qs(e))}function mi(e){return"function"!=typeof e.constructor||Si(e)?{}:Bo(Ke(e))}function Ci(e){return $s(e)||qs(e)||!!(it&&e&&e[it])}function wi(e,t){var o=typeof e;return!!(t=null==t?c:t)&&("number"==o||"symbol"!=o&&ve.test(e))&&e>-1&&e%1==0&&e<t}function Ei(e,t,o){if(!ia(o))return!1;var n=typeof t;return!!("number"==n?Xs(o)&&wi(t,o.length):"string"==n&&t in o)&&zs(o[t],e)}function bi(e,t){if($s(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!ha(e))||J.test(e)||!Z.test(e)||null!=t&&e in Te(t)}function Ri(e){var t=li(e),o=Ho[t];if("function"!=typeof o||!(t in zo.prototype))return!1;if(e===o)return!0;var n=ai(o);return!!n&&e===n[0]}(So&&yi(new So(new ArrayBuffer(1)))!=x||_o&&yi(new _o)!=b||To&&yi(To.resolve())!=S||Po&&yi(new Po)!=T||Do&&yi(new Do)!=A)&&(yi=function(t){var o=Tn(t),n=o==O?t.constructor:e,r=n?Ui(n):"";if(r)switch(r){case Io:return x;case Fo:return b;case Lo:return S;case Mo:return T;case Go:return A}return o});var Oi=Fe?oa:El;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function _i(e){return e==e&&!ia(e)}function Ti(t,o){return function(n){return null!=n&&n[t]===o&&(o!==e||t in Te(n))}}function Pi(t,o,n){return o=Co(o===e?t.length-1:o,0),function(){for(var e=arguments,r=-1,i=Co(e.length-o,0),s=be(i);++r<i;)s[r]=e[o+r];r=-1;for(var a=be(o+1);++r<o;)a[r]=e[r];return a[o]=n(s),bt(t,this,a)}}function Di(e,t){return t.length<2?e:Sn(e,ir(t,0,-1))}function Ai(t,o){for(var n=t.length,r=wo(o.length,n),i=Nr(t);r--;){var s=o[r];t[r]=wi(s,n)?i[s]:e}return t}function Ni(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var xi=Mi(or),Ii=gt||function(e,t){return pt.setTimeout(e,t)},Fi=Mi(nr);function Li(e,t,o){var n=t+"";return Fi(e,function(e,t){var o=t.length;if(!o)return e;var n=o-1;return t[n]=(o>1?"& ":"")+t[n],t=t.join(o>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ot(f,(function(o){var n="_."+o[0];t&o[1]&&!Pt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),o)))}function Mi(t){var o=0,n=0;return function(){var r=Eo(),i=16-(r-n);if(n=r,i>0){if(++o>=800)return arguments[0]}else o=0;return t.apply(e,arguments)}}function Gi(t,o){var n=-1,r=t.length,i=r-1;for(o=o===e?r:o;++n<o;){var s=Qn(n,i),a=t[s];t[s]=t[n],t[n]=a}return t.length=o,t}var ki,Vi,Wi,Hi=(ki=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,o,n,r){t.push(n?r.replace(pe,"$1"):o||e)})),t},Vi=Vs(ki,(function(e){return 500===Wi.size&&Wi.clear(),e})),Wi=Vi.cache,Vi);function Bi(e){if("string"==typeof e||ha(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ui(e){if(null!=e){try{return Le.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ji(e){if(e instanceof zo)return e.clone();var t=new jo(e.__wrapped__,e.__chain__);return t.__actions__=Nr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Zn((function(e,t){return Zs(e)?hn(e,Cn(t,1,Zs,!0)):[]})),Yi=Zn((function(t,o){var n=ts(o);return Zs(n)&&(n=e),Zs(t)?hn(t,Cn(o,1,Zs,!0),pi(n,2)):[]})),Ki=Zn((function(t,o){var n=ts(o);return Zs(n)&&(n=e),Zs(t)?hn(t,Cn(o,1,Zs,!0),e,n):[]}));function qi(e,t,o){var n=null==e?0:e.length;if(!n)return-1;var r=null==o?0:Ca(o);return r<0&&(r=Co(n+r,0)),Gt(e,pi(t,3),r)}function $i(t,o,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==e&&(i=Ca(n),i=n<0?Co(r+i,0):wo(i,r-1)),Gt(t,pi(o,3),i,!0)}function Qi(e){return null!=e&&e.length?Cn(e,1):[]}function Xi(t){return t&&t.length?t[0]:e}var Zi=Zn((function(e){var t=At(e,Cr);return t.length&&t[0]===e[0]?Nn(t):[]})),Ji=Zn((function(t){var o=ts(t),n=At(t,Cr);return o===ts(n)?o=e:n.pop(),n.length&&n[0]===t[0]?Nn(n,pi(o,2)):[]})),es=Zn((function(t){var o=ts(t),n=At(t,Cr);return(o="function"==typeof o?o:e)&&n.pop(),n.length&&n[0]===t[0]?Nn(n,e,o):[]}));function ts(t){var o=null==t?0:t.length;return o?t[o-1]:e}var os=Zn(ns);function ns(e,t){return e&&e.length&&t&&t.length?qn(e,t):e}var rs=ri((function(e,t){var o=null==e?0:e.length,n=ln(e,t);return $n(e,At(t,(function(e){return wi(e,o)?+e:e})).sort(Pr)),n}));function is(e){return null==e?e:Oo.call(e)}var ss=Zn((function(e){return dr(Cn(e,1,Zs,!0))})),as=Zn((function(t){var o=ts(t);return Zs(o)&&(o=e),dr(Cn(t,1,Zs,!0),pi(o,2))})),ls=Zn((function(t){var o=ts(t);return o="function"==typeof o?o:e,dr(Cn(t,1,Zs,!0),e,o)}));function us(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Zs(e))return t=Co(e.length,t),!0})),Yt(t,(function(t){return At(e,Bt(t))}))}function ps(t,o){if(!t||!t.length)return[];var n=us(t);return null==o?n:At(n,(function(t){return bt(o,e,t)}))}var cs=Zn((function(e,t){return Zs(e)?hn(e,t):[]})),ds=Zn((function(e){return vr(Tt(e,Zs))})),hs=Zn((function(t){var o=ts(t);return Zs(o)&&(o=e),vr(Tt(t,Zs),pi(o,2))})),fs=Zn((function(t){var o=ts(t);return o="function"==typeof o?o:e,vr(Tt(t,Zs),e,o)})),gs=Zn(us),ys=Zn((function(t){var o=t.length,n=o>1?t[o-1]:e;return n="function"==typeof n?(t.pop(),n):e,ps(t,n)}));function vs(e){var t=Ho(e);return t.__chain__=!0,t}function ms(e,t){return t(e)}var Cs=ri((function(t){var o=t.length,n=o?t[0]:0,r=this.__wrapped__,i=function(e){return ln(e,t)};return!(o>1||this.__actions__.length)&&r instanceof zo&&wi(n)?((r=r.slice(n,+n+(o?1:0))).__actions__.push({func:ms,args:[i],thisArg:e}),new jo(r,this.__chain__).thru((function(t){return o&&!t.length&&t.push(e),t}))):this.thru(i)})),ws=Ir((function(e,t,o){Me.call(e,o)?++e[o]:an(e,o,1)})),Es=Wr(qi),bs=Wr($i);function Rs(e,t){return($s(e)?Ot:fn)(e,pi(t,3))}function Os(e,t){return($s(e)?St:gn)(e,pi(t,3))}var Ss=Ir((function(e,t,o){Me.call(e,o)?e[o].push(t):an(e,o,[t])})),_s=Zn((function(e,t,o){var n=-1,r="function"==typeof t,i=Xs(e)?be(e.length):[];return fn(e,(function(e){i[++n]=r?bt(t,e,o):xn(e,t,o)})),i})),Ts=Ir((function(e,t,o){an(e,o,t)}));function Ps(e,t){return($s(e)?At:Hn)(e,pi(t,3))}var Ds=Ir((function(e,t,o){e[o?0:1].push(t)}),(function(){return[[],[]]})),As=Zn((function(e,t){if(null==e)return[];var o=t.length;return o>1&&Ei(e,t[0],t[1])?t=[]:o>2&&Ei(t[0],t[1],t[2])&&(t=[t[0]]),Yn(e,Cn(t,1),[])})),Ns=ft||function(){return pt.Date.now()};function xs(t,o,n){return o=n?e:o,o=t&&null==o?t.length:o,Jr(t,l,e,e,e,e,o)}function Is(o,n){var r;if("function"!=typeof n)throw new Ae(t);return o=Ca(o),function(){return--o>0&&(r=n.apply(this,arguments)),o<=1&&(n=e),r}}var Fs=Zn((function(e,t,o){var n=1;if(o.length){var r=so(o,ui(Fs));n|=i}return Jr(e,n,t,o,r)})),Ls=Zn((function(e,t,o){var n=3;if(o.length){var r=so(o,ui(Ls));n|=i}return Jr(t,n,e,o,r)}));function Ms(o,n,r){var i,s,a,l,u,p,c=0,d=!1,h=!1,f=!0;if("function"!=typeof o)throw new Ae(t);function g(t){var n=i,r=s;return i=s=e,c=t,l=o.apply(r,n)}function y(e){return c=e,u=Ii(m,n),d?g(e):l}function v(t){var o=t-p;return p===e||o>=n||o<0||h&&t-c>=a}function m(){var e=Ns();if(v(e))return C(e);u=Ii(m,function(e){var t=n-(e-p);return h?wo(t,a-(e-c)):t}(e))}function C(t){return u=e,f&&i?g(t):(i=s=e,l)}function w(){var t=Ns(),o=v(t);if(i=arguments,s=this,p=t,o){if(u===e)return y(p);if(h)return Or(u),u=Ii(m,n),g(p)}return u===e&&(u=Ii(m,n)),l}return n=Ea(n)||0,ia(r)&&(d=!!r.leading,a=(h="maxWait"in r)?Co(Ea(r.maxWait)||0,n):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){u!==e&&Or(u),c=0,i=p=s=u=e},w.flush=function(){return u===e?l:C(Ns())},w}var Gs=Zn((function(e,t){return dn(e,1,t)})),ks=Zn((function(e,t,o){return dn(e,Ea(t)||0,o)}));function Vs(e,o){if("function"!=typeof e||null!=o&&"function"!=typeof o)throw new Ae(t);var n=function(){var t=arguments,r=o?o.apply(this,t):t[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,t);return n.cache=i.set(r,s)||i,s};return n.cache=new(Vs.Cache||qo),n}function Ws(e){if("function"!=typeof e)throw new Ae(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Vs.Cache=qo;var Hs=br((function(e,t){var o=(t=1==t.length&&$s(t[0])?At(t[0],qt(pi())):At(Cn(t,1),qt(pi()))).length;return Zn((function(n){for(var r=-1,i=wo(n.length,o);++r<i;)n[r]=t[r].call(this,n[r]);return bt(e,this,n)}))})),Bs=Zn((function(t,o){var n=so(o,ui(Bs));return Jr(t,i,e,o,n)})),Us=Zn((function(t,o){var n=so(o,ui(Us));return Jr(t,s,e,o,n)})),js=ri((function(t,o){return Jr(t,u,e,e,e,o)}));function zs(e,t){return e===t||e!=e&&t!=t}var Ys=qr(Pn),Ks=qr((function(e,t){return e>=t})),qs=In(function(){return arguments}())?In:function(e){return sa(e)&&Me.call(e,"callee")&&!Xe.call(e,"callee")},$s=be.isArray,Qs=yt?qt(yt):function(e){return sa(e)&&Tn(e)==N};function Xs(e){return null!=e&&ra(e.length)&&!oa(e)}function Zs(e){return sa(e)&&Xs(e)}var Js=go||El,ea=vt?qt(vt):function(e){return sa(e)&&Tn(e)==m};function ta(e){if(!sa(e))return!1;var t=Tn(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ua(e)}function oa(e){if(!ia(e))return!1;var t=Tn(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function na(e){return"number"==typeof e&&e==Ca(e)}function ra(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function ia(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function sa(e){return null!=e&&"object"==typeof e}var aa=mt?qt(mt):function(e){return sa(e)&&yi(e)==b};function la(e){return"number"==typeof e||sa(e)&&Tn(e)==R}function ua(e){if(!sa(e)||Tn(e)!=O)return!1;var t=Ke(e);if(null===t)return!0;var o=Me.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&Le.call(o)==We}var pa=Ct?qt(Ct):function(e){return sa(e)&&Tn(e)==_},ca=wt?qt(wt):function(e){return sa(e)&&yi(e)==T};function da(e){return"string"==typeof e||!$s(e)&&sa(e)&&Tn(e)==P}function ha(e){return"symbol"==typeof e||sa(e)&&Tn(e)==D}var fa=Et?qt(Et):function(e){return sa(e)&&ra(e.length)&&!!nt[Tn(e)]},ga=qr(Wn),ya=qr((function(e,t){return e<=t}));function va(e){if(!e)return[];if(Xs(e))return da(e)?uo(e):Nr(e);if(lt&&e[lt])return function(e){for(var t,o=[];!(t=e.next()).done;)o.push(t.value);return o}(e[lt]());var t=yi(e);return(t==b?ro:t==T?ao:za)(e)}function ma(e){return e?(e=Ea(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Ca(e){var t=ma(e),o=t%1;return t==t?o?t-o:t:0}function wa(e){return e?un(Ca(e),0,h):0}function Ea(e){if("number"==typeof e)return e;if(ha(e))return d;if(ia(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ia(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var o=fe.test(e);return o||ye.test(e)?at(e.slice(2),o?2:8):he.test(e)?d:+e}function ba(e){return xr(e,Ga(e))}function Ra(e){return null==e?"":cr(e)}var Oa=Fr((function(e,t){if(Si(t)||Xs(t))xr(t,Ma(t),e);else for(var o in t)Me.call(t,o)&&on(e,o,t[o])})),Sa=Fr((function(e,t){xr(t,Ga(t),e)})),_a=Fr((function(e,t,o,n){xr(t,Ga(t),e,n)})),Ta=Fr((function(e,t,o,n){xr(t,Ma(t),e,n)})),Pa=ri(ln),Da=Zn((function(t,o){t=Te(t);var n=-1,r=o.length,i=r>2?o[2]:e;for(i&&Ei(o[0],o[1],i)&&(r=1);++n<r;)for(var s=o[n],a=Ga(s),l=-1,u=a.length;++l<u;){var p=a[l],c=t[p];(c===e||zs(c,Ie[p])&&!Me.call(t,p))&&(t[p]=s[p])}return t})),Aa=Zn((function(t){return t.push(e,ti),bt(Va,e,t)}));function Na(t,o,n){var r=null==t?e:Sn(t,o);return r===e?n:r}function xa(e,t){return null!=e&&vi(e,t,An)}var Ia=Ur((function(e,t,o){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),e[t]=o}),il(ll)),Fa=Ur((function(e,t,o){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),Me.call(e,t)?e[t].push(o):e[t]=[o]}),pi),La=Zn(xn);function Ma(e){return Xs(e)?Xo(e):kn(e)}function Ga(e){return Xs(e)?Xo(e,!0):Vn(e)}var ka=Fr((function(e,t,o){jn(e,t,o)})),Va=Fr((function(e,t,o,n){jn(e,t,o,n)})),Wa=ri((function(e,t){var o={};if(null==e)return o;var n=!1;t=At(t,(function(t){return t=Er(t,e),n||(n=t.length>1),t})),xr(e,si(e),o),n&&(o=pn(o,7,oi));for(var r=t.length;r--;)hr(o,t[r]);return o})),Ha=ri((function(e,t){return null==e?{}:function(e,t){return Kn(e,t,(function(t,o){return xa(e,o)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var o=At(si(e),(function(e){return[e]}));return t=pi(t),Kn(e,o,(function(e,o){return t(e,o[0])}))}var Ua=Zr(Ma),ja=Zr(Ga);function za(e){return null==e?[]:$t(e,Ma(e))}var Ya=kr((function(e,t,o){return t=t.toLowerCase(),e+(o?Ka(t):t)}));function Ka(e){return tl(Ra(e).toLowerCase())}function qa(e){return(e=Ra(e))&&e.replace(me,eo).replace(Qe,"")}var $a=kr((function(e,t,o){return e+(o?"-":"")+t.toLowerCase()})),Qa=kr((function(e,t,o){return e+(o?" ":"")+t.toLowerCase()})),Xa=Gr("toLowerCase"),Za=kr((function(e,t,o){return e+(o?"_":"")+t.toLowerCase()})),Ja=kr((function(e,t,o){return e+(o?" ":"")+tl(t)})),el=kr((function(e,t,o){return e+(o?" ":"")+t.toUpperCase()})),tl=Gr("toUpperCase");function ol(t,o,n){return t=Ra(t),(o=n?e:o)===e?function(e){return et.test(e)}(t)?function(e){return e.match(Ze)||[]}(t):function(e){return e.match(le)||[]}(t):t.match(o)||[]}var nl=Zn((function(t,o){try{return bt(t,e,o)}catch(n){return ta(n)?n:new Oe(n)}})),rl=ri((function(e,t){return Ot(t,(function(t){t=Bi(t),an(e,t,Fs(e[t],e))})),e}));function il(e){return function(){return e}}var sl=Hr(),al=Hr(!0);function ll(e){return e}function ul(e){return Gn("function"==typeof e?e:pn(e,1))}var pl=Zn((function(e,t){return function(o){return xn(o,e,t)}})),cl=Zn((function(e,t){return function(o){return xn(e,o,t)}}));function dl(e,t,o){var n=Ma(t),r=On(t,n);null!=o||ia(t)&&(r.length||!n.length)||(o=t,t=e,e=this,r=On(t,Ma(t)));var i=!(ia(o)&&"chain"in o&&!o.chain),s=oa(e);return Ot(r,(function(o){var n=t[o];e[o]=n,s&&(e.prototype[o]=function(){var t=this.__chain__;if(i||t){var o=e(this.__wrapped__),r=o.__actions__=Nr(this.__actions__);return r.push({func:n,args:arguments,thisArg:e}),o.__chain__=t,o}return n.apply(e,Nt([this.value()],arguments))})})),e}function hl(){}var fl=zr(At),gl=zr(_t),yl=zr(Ft);function vl(e){return bi(e)?Bt(Bi(e)):function(e){return function(t){return Sn(t,e)}}(e)}var ml=Kr(),Cl=Kr(!0);function wl(){return[]}function El(){return!1}var bl,Rl=jr((function(e,t){return e+t}),0),Ol=Qr("ceil"),Sl=jr((function(e,t){return e/t}),1),_l=Qr("floor"),Tl=jr((function(e,t){return e*t}),1),Pl=Qr("round"),Dl=jr((function(e,t){return e-t}),0);return Ho.after=function(e,o){if("function"!=typeof o)throw new Ae(t);return e=Ca(e),function(){if(--e<1)return o.apply(this,arguments)}},Ho.ary=xs,Ho.assign=Oa,Ho.assignIn=Sa,Ho.assignInWith=_a,Ho.assignWith=Ta,Ho.at=Pa,Ho.before=Is,Ho.bind=Fs,Ho.bindAll=rl,Ho.bindKey=Ls,Ho.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $s(e)?e:[e]},Ho.chain=vs,Ho.chunk=function(t,o,n){o=(n?Ei(t,o,n):o===e)?1:Co(Ca(o),0);var r=null==t?0:t.length;if(!r||o<1)return[];for(var i=0,s=0,a=be(Lt(r/o));i<r;)a[s++]=ir(t,i,i+=o);return a},Ho.compact=function(e){for(var t=-1,o=null==e?0:e.length,n=0,r=[];++t<o;){var i=e[t];i&&(r[n++]=i)}return r},Ho.concat=function(){var e=arguments.length;if(!e)return[];for(var t=be(e-1),o=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Nt($s(o)?Nr(o):[o],Cn(t,1))},Ho.cond=function(e){var o=null==e?0:e.length,n=pi();return e=o?At(e,(function(e){if("function"!=typeof e[1])throw new Ae(t);return[n(e[0]),e[1]]})):[],Zn((function(t){for(var n=-1;++n<o;){var r=e[n];if(bt(r[0],this,t))return bt(r[1],this,t)}}))},Ho.conforms=function(e){return function(e){var t=Ma(e);return function(o){return cn(o,e,t)}}(pn(e,1))},Ho.constant=il,Ho.countBy=ws,Ho.create=function(e,t){var o=Bo(e);return null==t?o:sn(o,t)},Ho.curry=function t(o,n,r){var i=Jr(o,8,e,e,e,e,e,n=r?e:n);return i.placeholder=t.placeholder,i},Ho.curryRight=function t(o,n,i){var s=Jr(o,r,e,e,e,e,e,n=i?e:n);return s.placeholder=t.placeholder,s},Ho.debounce=Ms,Ho.defaults=Da,Ho.defaultsDeep=Aa,Ho.defer=Gs,Ho.delay=ks,Ho.difference=zi,Ho.differenceBy=Yi,Ho.differenceWith=Ki,Ho.drop=function(t,o,n){var r=null==t?0:t.length;return r?ir(t,(o=n||o===e?1:Ca(o))<0?0:o,r):[]},Ho.dropRight=function(t,o,n){var r=null==t?0:t.length;return r?ir(t,0,(o=r-(o=n||o===e?1:Ca(o)))<0?0:o):[]},Ho.dropRightWhile=function(e,t){return e&&e.length?gr(e,pi(t,3),!0,!0):[]},Ho.dropWhile=function(e,t){return e&&e.length?gr(e,pi(t,3),!0):[]},Ho.fill=function(t,o,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Ei(t,o,n)&&(n=0,r=i),function(t,o,n,r){var i=t.length;for((n=Ca(n))<0&&(n=-n>i?0:i+n),(r=r===e||r>i?i:Ca(r))<0&&(r+=i),r=n>r?0:wa(r);n<r;)t[n++]=o;return t}(t,o,n,r)):[]},Ho.filter=function(e,t){return($s(e)?Tt:mn)(e,pi(t,3))},Ho.flatMap=function(e,t){return Cn(Ps(e,t),1)},Ho.flatMapDeep=function(e,t){return Cn(Ps(e,t),p)},Ho.flatMapDepth=function(t,o,n){return n=n===e?1:Ca(n),Cn(Ps(t,o),n)},Ho.flatten=Qi,Ho.flattenDeep=function(e){return null!=e&&e.length?Cn(e,p):[]},Ho.flattenDepth=function(t,o){return null!=t&&t.length?Cn(t,o=o===e?1:Ca(o)):[]},Ho.flip=function(e){return Jr(e,512)},Ho.flow=sl,Ho.flowRight=al,Ho.fromPairs=function(e){for(var t=-1,o=null==e?0:e.length,n={};++t<o;){var r=e[t];n[r[0]]=r[1]}return n},Ho.functions=function(e){return null==e?[]:On(e,Ma(e))},Ho.functionsIn=function(e){return null==e?[]:On(e,Ga(e))},Ho.groupBy=Ss,Ho.initial=function(e){return null!=e&&e.length?ir(e,0,-1):[]},Ho.intersection=Zi,Ho.intersectionBy=Ji,Ho.intersectionWith=es,Ho.invert=Ia,Ho.invertBy=Fa,Ho.invokeMap=_s,Ho.iteratee=ul,Ho.keyBy=Ts,Ho.keys=Ma,Ho.keysIn=Ga,Ho.map=Ps,Ho.mapKeys=function(e,t){var o={};return t=pi(t,3),bn(e,(function(e,n,r){an(o,t(e,n,r),e)})),o},Ho.mapValues=function(e,t){var o={};return t=pi(t,3),bn(e,(function(e,n,r){an(o,n,t(e,n,r))})),o},Ho.matches=function(e){return Bn(pn(e,1))},Ho.matchesProperty=function(e,t){return Un(e,pn(t,1))},Ho.memoize=Vs,Ho.merge=ka,Ho.mergeWith=Va,Ho.method=pl,Ho.methodOf=cl,Ho.mixin=dl,Ho.negate=Ws,Ho.nthArg=function(e){return e=Ca(e),Zn((function(t){return zn(t,e)}))},Ho.omit=Wa,Ho.omitBy=function(e,t){return Ba(e,Ws(pi(t)))},Ho.once=function(e){return Is(2,e)},Ho.orderBy=function(t,o,n,r){return null==t?[]:($s(o)||(o=null==o?[]:[o]),$s(n=r?e:n)||(n=null==n?[]:[n]),Yn(t,o,n))},Ho.over=fl,Ho.overArgs=Hs,Ho.overEvery=gl,Ho.overSome=yl,Ho.partial=Bs,Ho.partialRight=Us,Ho.partition=Ds,Ho.pick=Ha,Ho.pickBy=Ba,Ho.property=vl,Ho.propertyOf=function(t){return function(o){return null==t?e:Sn(t,o)}},Ho.pull=os,Ho.pullAll=ns,Ho.pullAllBy=function(e,t,o){return e&&e.length&&t&&t.length?qn(e,t,pi(o,2)):e},Ho.pullAllWith=function(t,o,n){return t&&t.length&&o&&o.length?qn(t,o,e,n):t},Ho.pullAt=rs,Ho.range=ml,Ho.rangeRight=Cl,Ho.rearg=js,Ho.reject=function(e,t){return($s(e)?Tt:mn)(e,Ws(pi(t,3)))},Ho.remove=function(e,t){var o=[];if(!e||!e.length)return o;var n=-1,r=[],i=e.length;for(t=pi(t,3);++n<i;){var s=e[n];t(s,n,e)&&(o.push(s),r.push(n))}return $n(e,r),o},Ho.rest=function(o,n){if("function"!=typeof o)throw new Ae(t);return Zn(o,n=n===e?n:Ca(n))},Ho.reverse=is,Ho.sampleSize=function(t,o,n){return o=(n?Ei(t,o,n):o===e)?1:Ca(o),($s(t)?Jo:er)(t,o)},Ho.set=function(e,t,o){return null==e?e:tr(e,t,o)},Ho.setWith=function(t,o,n,r){return r="function"==typeof r?r:e,null==t?t:tr(t,o,n,r)},Ho.shuffle=function(e){return($s(e)?en:rr)(e)},Ho.slice=function(t,o,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Ei(t,o,n)?(o=0,n=r):(o=null==o?0:Ca(o),n=n===e?r:Ca(n)),ir(t,o,n)):[]},Ho.sortBy=As,Ho.sortedUniq=function(e){return e&&e.length?ur(e):[]},Ho.sortedUniqBy=function(e,t){return e&&e.length?ur(e,pi(t,2)):[]},Ho.split=function(t,o,n){return n&&"number"!=typeof n&&Ei(t,o,n)&&(o=n=e),(n=n===e?h:n>>>0)?(t=Ra(t))&&("string"==typeof o||null!=o&&!pa(o))&&!(o=cr(o))&&no(t)?Rr(uo(t),0,n):t.split(o,n):[]},Ho.spread=function(e,o){if("function"!=typeof e)throw new Ae(t);return o=null==o?0:Co(Ca(o),0),Zn((function(t){var n=t[o],r=Rr(t,0,o);return n&&Nt(r,n),bt(e,this,r)}))},Ho.tail=function(e){var t=null==e?0:e.length;return t?ir(e,1,t):[]},Ho.take=function(t,o,n){return t&&t.length?ir(t,0,(o=n||o===e?1:Ca(o))<0?0:o):[]},Ho.takeRight=function(t,o,n){var r=null==t?0:t.length;return r?ir(t,(o=r-(o=n||o===e?1:Ca(o)))<0?0:o,r):[]},Ho.takeRightWhile=function(e,t){return e&&e.length?gr(e,pi(t,3),!1,!0):[]},Ho.takeWhile=function(e,t){return e&&e.length?gr(e,pi(t,3)):[]},Ho.tap=function(e,t){return t(e),e},Ho.throttle=function(e,o,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ae(t);return ia(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ms(e,o,{leading:r,maxWait:o,trailing:i})},Ho.thru=ms,Ho.toArray=va,Ho.toPairs=Ua,Ho.toPairsIn=ja,Ho.toPath=function(e){return $s(e)?At(e,Bi):ha(e)?[e]:Nr(Hi(Ra(e)))},Ho.toPlainObject=ba,Ho.transform=function(e,t,o){var n=$s(e),r=n||Js(e)||fa(e);if(t=pi(t,4),null==o){var i=e&&e.constructor;o=r?n?new i:[]:ia(e)&&oa(i)?Bo(Ke(e)):{}}return(r?Ot:bn)(e,(function(e,n,r){return t(o,e,n,r)})),o},Ho.unary=function(e){return xs(e,1)},Ho.union=ss,Ho.unionBy=as,Ho.unionWith=ls,Ho.uniq=function(e){return e&&e.length?dr(e):[]},Ho.uniqBy=function(e,t){return e&&e.length?dr(e,pi(t,2)):[]},Ho.uniqWith=function(t,o){return o="function"==typeof o?o:e,t&&t.length?dr(t,e,o):[]},Ho.unset=function(e,t){return null==e||hr(e,t)},Ho.unzip=us,Ho.unzipWith=ps,Ho.update=function(e,t,o){return null==e?e:fr(e,t,wr(o))},Ho.updateWith=function(t,o,n,r){return r="function"==typeof r?r:e,null==t?t:fr(t,o,wr(n),r)},Ho.values=za,Ho.valuesIn=function(e){return null==e?[]:$t(e,Ga(e))},Ho.without=cs,Ho.words=ol,Ho.wrap=function(e,t){return Bs(wr(t),e)},Ho.xor=ds,Ho.xorBy=hs,Ho.xorWith=fs,Ho.zip=gs,Ho.zipObject=function(e,t){return mr(e||[],t||[],on)},Ho.zipObjectDeep=function(e,t){return mr(e||[],t||[],tr)},Ho.zipWith=ys,Ho.entries=Ua,Ho.entriesIn=ja,Ho.extend=Sa,Ho.extendWith=_a,dl(Ho,Ho),Ho.add=Rl,Ho.attempt=nl,Ho.camelCase=Ya,Ho.capitalize=Ka,Ho.ceil=Ol,Ho.clamp=function(t,o,n){return n===e&&(n=o,o=e),n!==e&&(n=(n=Ea(n))==n?n:0),o!==e&&(o=(o=Ea(o))==o?o:0),un(Ea(t),o,n)},Ho.clone=function(e){return pn(e,4)},Ho.cloneDeep=function(e){return pn(e,5)},Ho.cloneDeepWith=function(t,o){return pn(t,5,o="function"==typeof o?o:e)},Ho.cloneWith=function(t,o){return pn(t,4,o="function"==typeof o?o:e)},Ho.conformsTo=function(e,t){return null==t||cn(e,t,Ma(t))},Ho.deburr=qa,Ho.defaultTo=function(e,t){return null==e||e!=e?t:e},Ho.divide=Sl,Ho.endsWith=function(t,o,n){t=Ra(t),o=cr(o);var r=t.length,i=n=n===e?r:un(Ca(n),0,r);return(n-=o.length)>=0&&t.slice(n,i)==o},Ho.eq=zs,Ho.escape=function(e){return(e=Ra(e))&&q.test(e)?e.replace(Y,to):e},Ho.escapeRegExp=function(e){return(e=Ra(e))&&oe.test(e)?e.replace(te,"\\$&"):e},Ho.every=function(t,o,n){var r=$s(t)?_t:yn;return n&&Ei(t,o,n)&&(o=e),r(t,pi(o,3))},Ho.find=Es,Ho.findIndex=qi,Ho.findKey=function(e,t){return Mt(e,pi(t,3),bn)},Ho.findLast=bs,Ho.findLastIndex=$i,Ho.findLastKey=function(e,t){return Mt(e,pi(t,3),Rn)},Ho.floor=_l,Ho.forEach=Rs,Ho.forEachRight=Os,Ho.forIn=function(e,t){return null==e?e:wn(e,pi(t,3),Ga)},Ho.forInRight=function(e,t){return null==e?e:En(e,pi(t,3),Ga)},Ho.forOwn=function(e,t){return e&&bn(e,pi(t,3))},Ho.forOwnRight=function(e,t){return e&&Rn(e,pi(t,3))},Ho.get=Na,Ho.gt=Ys,Ho.gte=Ks,Ho.has=function(e,t){return null!=e&&vi(e,t,Dn)},Ho.hasIn=xa,Ho.head=Xi,Ho.identity=ll,Ho.includes=function(e,t,o,n){e=Xs(e)?e:za(e),o=o&&!n?Ca(o):0;var r=e.length;return o<0&&(o=Co(r+o,0)),da(e)?o<=r&&e.indexOf(t,o)>-1:!!r&&kt(e,t,o)>-1},Ho.indexOf=function(e,t,o){var n=null==e?0:e.length;if(!n)return-1;var r=null==o?0:Ca(o);return r<0&&(r=Co(n+r,0)),kt(e,t,r)},Ho.inRange=function(t,o,n){return o=ma(o),n===e?(n=o,o=0):n=ma(n),function(e,t,o){return e>=wo(t,o)&&e<Co(t,o)}(t=Ea(t),o,n)},Ho.invoke=La,Ho.isArguments=qs,Ho.isArray=$s,Ho.isArrayBuffer=Qs,Ho.isArrayLike=Xs,Ho.isArrayLikeObject=Zs,Ho.isBoolean=function(e){return!0===e||!1===e||sa(e)&&Tn(e)==v},Ho.isBuffer=Js,Ho.isDate=ea,Ho.isElement=function(e){return sa(e)&&1===e.nodeType&&!ua(e)},Ho.isEmpty=function(e){if(null==e)return!0;if(Xs(e)&&($s(e)||"string"==typeof e||"function"==typeof e.splice||Js(e)||fa(e)||qs(e)))return!e.length;var t=yi(e);if(t==b||t==T)return!e.size;if(Si(e))return!kn(e).length;for(var o in e)if(Me.call(e,o))return!1;return!0},Ho.isEqual=function(e,t){return Fn(e,t)},Ho.isEqualWith=function(t,o,n){var r=(n="function"==typeof n?n:e)?n(t,o):e;return r===e?Fn(t,o,e,n):!!r},Ho.isError=ta,Ho.isFinite=function(e){return"number"==typeof e&&yo(e)},Ho.isFunction=oa,Ho.isInteger=na,Ho.isLength=ra,Ho.isMap=aa,Ho.isMatch=function(e,t){return e===t||Ln(e,t,di(t))},Ho.isMatchWith=function(t,o,n){return n="function"==typeof n?n:e,Ln(t,o,di(o),n)},Ho.isNaN=function(e){return la(e)&&e!=+e},Ho.isNative=function(e){if(Oi(e))throw new Oe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(e)},Ho.isNil=function(e){return null==e},Ho.isNull=function(e){return null===e},Ho.isNumber=la,Ho.isObject=ia,Ho.isObjectLike=sa,Ho.isPlainObject=ua,Ho.isRegExp=pa,Ho.isSafeInteger=function(e){return na(e)&&e>=-9007199254740991&&e<=c},Ho.isSet=ca,Ho.isString=da,Ho.isSymbol=ha,Ho.isTypedArray=fa,Ho.isUndefined=function(t){return t===e},Ho.isWeakMap=function(e){return sa(e)&&yi(e)==A},Ho.isWeakSet=function(e){return sa(e)&&"[object WeakSet]"==Tn(e)},Ho.join=function(e,t){return null==e?"":vo.call(e,t)},Ho.kebabCase=$a,Ho.last=ts,Ho.lastIndexOf=function(t,o,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==e&&(i=(i=Ca(n))<0?Co(r+i,0):wo(i,r-1)),o==o?function(e,t,o){for(var n=o+1;n--;)if(e[n]===t)return n;return n}(t,o,i):Gt(t,Wt,i,!0)},Ho.lowerCase=Qa,Ho.lowerFirst=Xa,Ho.lt=ga,Ho.lte=ya,Ho.max=function(t){return t&&t.length?vn(t,ll,Pn):e},Ho.maxBy=function(t,o){return t&&t.length?vn(t,pi(o,2),Pn):e},Ho.mean=function(e){return Ht(e,ll)},Ho.meanBy=function(e,t){return Ht(e,pi(t,2))},Ho.min=function(t){return t&&t.length?vn(t,ll,Wn):e},Ho.minBy=function(t,o){return t&&t.length?vn(t,pi(o,2),Wn):e},Ho.stubArray=wl,Ho.stubFalse=El,Ho.stubObject=function(){return{}},Ho.stubString=function(){return""},Ho.stubTrue=function(){return!0},Ho.multiply=Tl,Ho.nth=function(t,o){return t&&t.length?zn(t,Ca(o)):e},Ho.noConflict=function(){return pt._===this&&(pt._=He),this},Ho.noop=hl,Ho.now=Ns,Ho.pad=function(e,t,o){e=Ra(e);var n=(t=Ca(t))?lo(e):0;if(!t||n>=t)return e;var r=(t-n)/2;return Yr(Ut(r),o)+e+Yr(Lt(r),o)},Ho.padEnd=function(e,t,o){e=Ra(e);var n=(t=Ca(t))?lo(e):0;return t&&n<t?e+Yr(t-n,o):e},Ho.padStart=function(e,t,o){e=Ra(e);var n=(t=Ca(t))?lo(e):0;return t&&n<t?Yr(t-n,o)+e:e},Ho.parseInt=function(e,t,o){return o||null==t?t=0:t&&(t=+t),bo(Ra(e).replace(ne,""),t||0)},Ho.random=function(t,o,n){if(n&&"boolean"!=typeof n&&Ei(t,o,n)&&(o=n=e),n===e&&("boolean"==typeof o?(n=o,o=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&o===e?(t=0,o=1):(t=ma(t),o===e?(o=t,t=0):o=ma(o)),t>o){var r=t;t=o,o=r}if(n||t%1||o%1){var i=Ro();return wo(t+i*(o-t+st("1e-"+((i+"").length-1))),o)}return Qn(t,o)},Ho.reduce=function(e,t,o){var n=$s(e)?xt:jt,r=arguments.length<3;return n(e,pi(t,4),o,r,fn)},Ho.reduceRight=function(e,t,o){var n=$s(e)?It:jt,r=arguments.length<3;return n(e,pi(t,4),o,r,gn)},Ho.repeat=function(t,o,n){return o=(n?Ei(t,o,n):o===e)?1:Ca(o),Xn(Ra(t),o)},Ho.replace=function(){var e=arguments,t=Ra(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ho.result=function(t,o,n){var r=-1,i=(o=Er(o,t)).length;for(i||(i=1,t=e);++r<i;){var s=null==t?e:t[Bi(o[r])];s===e&&(r=i,s=n),t=oa(s)?s.call(t):s}return t},Ho.round=Pl,Ho.runInContext=a,Ho.sample=function(e){return($s(e)?Zo:Jn)(e)},Ho.size=function(e){if(null==e)return 0;if(Xs(e))return da(e)?lo(e):e.length;var t=yi(e);return t==b||t==T?e.size:kn(e).length},Ho.snakeCase=Za,Ho.some=function(t,o,n){var r=$s(t)?Ft:sr;return n&&Ei(t,o,n)&&(o=e),r(t,pi(o,3))},Ho.sortedIndex=function(e,t){return ar(e,t)},Ho.sortedIndexBy=function(e,t,o){return lr(e,t,pi(o,2))},Ho.sortedIndexOf=function(e,t){var o=null==e?0:e.length;if(o){var n=ar(e,t);if(n<o&&zs(e[n],t))return n}return-1},Ho.sortedLastIndex=function(e,t){return ar(e,t,!0)},Ho.sortedLastIndexBy=function(e,t,o){return lr(e,t,pi(o,2),!0)},Ho.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var o=ar(e,t,!0)-1;if(zs(e[o],t))return o}return-1},Ho.startCase=Ja,Ho.startsWith=function(e,t,o){return e=Ra(e),o=null==o?0:un(Ca(o),0,e.length),t=cr(t),e.slice(o,o+t.length)==t},Ho.subtract=Dl,Ho.sum=function(e){return e&&e.length?zt(e,ll):0},Ho.sumBy=function(e,t){return e&&e.length?zt(e,pi(t,2)):0},Ho.template=function(t,o,n){var r=Ho.templateSettings;n&&Ei(t,o,n)&&(o=e),t=Ra(t),o=_a({},o,r,ei);var i,s,a=_a({},o.imports,r.imports,ei),l=Ma(a),u=$t(a,l),p=0,c=o.interpolate||Ce,d="__p += '",h=Pe((o.escape||Ce).source+"|"+c.source+"|"+(c===X?ce:Ce).source+"|"+(o.evaluate||Ce).source+"|$","g"),f="//# sourceURL="+(Me.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";t.replace(h,(function(e,o,n,r,a,l){return n||(n=r),d+=t.slice(p,l).replace(we,oo),o&&(i=!0,d+="' +\n__e("+o+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),p=l+e.length,e})),d+="';\n";var g=Me.call(o,"variable")&&o.variable;if(g){if(ue.test(g))throw new Oe("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(B,""):d).replace(U,"$1").replace(j,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=nl((function(){return Se(l,f+"return "+d).apply(e,u)}));if(y.source=d,ta(y))throw y;return y},Ho.times=function(e,t){if((e=Ca(e))<1||e>c)return[];var o=h,n=wo(e,h);t=pi(t),e-=h;for(var r=Yt(n,t);++o<e;)t(o);return r},Ho.toFinite=ma,Ho.toInteger=Ca,Ho.toLength=wa,Ho.toLower=function(e){return Ra(e).toLowerCase()},Ho.toNumber=Ea,Ho.toSafeInteger=function(e){return e?un(Ca(e),-9007199254740991,c):0===e?e:0},Ho.toString=Ra,Ho.toUpper=function(e){return Ra(e).toUpperCase()},Ho.trim=function(t,o,n){if((t=Ra(t))&&(n||o===e))return Kt(t);if(!t||!(o=cr(o)))return t;var r=uo(t),i=uo(o);return Rr(r,Xt(r,i),Zt(r,i)+1).join("")},Ho.trimEnd=function(t,o,n){if((t=Ra(t))&&(n||o===e))return t.slice(0,po(t)+1);if(!t||!(o=cr(o)))return t;var r=uo(t);return Rr(r,0,Zt(r,uo(o))+1).join("")},Ho.trimStart=function(t,o,n){if((t=Ra(t))&&(n||o===e))return t.replace(ne,"");if(!t||!(o=cr(o)))return t;var r=uo(t);return Rr(r,Xt(r,uo(o))).join("")},Ho.truncate=function(t,o){var n=30,r="...";if(ia(o)){var i="separator"in o?o.separator:i;n="length"in o?Ca(o.length):n,r="omission"in o?cr(o.omission):r}var s=(t=Ra(t)).length;if(no(t)){var a=uo(t);s=a.length}if(n>=s)return t;var l=n-lo(r);if(l<1)return r;var u=a?Rr(a,0,l).join(""):t.slice(0,l);if(i===e)return u+r;if(a&&(l+=u.length-l),pa(i)){if(t.slice(l).search(i)){var p,c=u;for(i.global||(i=Pe(i.source,Ra(de.exec(i))+"g")),i.lastIndex=0;p=i.exec(c);)var d=p.index;u=u.slice(0,d===e?l:d)}}else if(t.indexOf(cr(i),l)!=l){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},Ho.unescape=function(e){return(e=Ra(e))&&K.test(e)?e.replace(z,co):e},Ho.uniqueId=function(e){var t=++Ge;return Ra(e)+t},Ho.upperCase=el,Ho.upperFirst=tl,Ho.each=Rs,Ho.eachRight=Os,Ho.first=Xi,dl(Ho,(bl={},bn(Ho,(function(e,t){Me.call(Ho.prototype,t)||(bl[t]=e)})),bl),{chain:!1}),Ho.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ho[e].placeholder=Ho})),Ot(["drop","take"],(function(t,o){zo.prototype[t]=function(n){n=n===e?1:Co(Ca(n),0);var r=this.__filtered__&&!o?new zo(this):this.clone();return r.__filtered__?r.__takeCount__=wo(n,r.__takeCount__):r.__views__.push({size:wo(n,h),type:t+(r.__dir__<0?"Right":"")}),r},zo.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var o=t+1,n=1==o||3==o;zo.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:pi(e,3),type:o}),t.__filtered__=t.__filtered__||n,t}})),Ot(["head","last"],(function(e,t){var o="take"+(t?"Right":"");zo.prototype[e]=function(){return this[o](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var o="drop"+(t?"":"Right");zo.prototype[e]=function(){return this.__filtered__?new zo(this):this[o](1)}})),zo.prototype.compact=function(){return this.filter(ll)},zo.prototype.find=function(e){return this.filter(e).head()},zo.prototype.findLast=function(e){return this.reverse().find(e)},zo.prototype.invokeMap=Zn((function(e,t){return"function"==typeof e?new zo(this):this.map((function(o){return xn(o,e,t)}))})),zo.prototype.reject=function(e){return this.filter(Ws(pi(e)))},zo.prototype.slice=function(t,o){t=Ca(t);var n=this;return n.__filtered__&&(t>0||o<0)?new zo(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),o!==e&&(n=(o=Ca(o))<0?n.dropRight(-o):n.take(o-t)),n)},zo.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zo.prototype.toArray=function(){return this.take(h)},bn(zo.prototype,(function(t,o){var n=/^(?:filter|find|map|reject)|While$/.test(o),r=/^(?:head|last)$/.test(o),i=Ho[r?"take"+("last"==o?"Right":""):o],s=r||/^find/.test(o);i&&(Ho.prototype[o]=function(){var o=this.__wrapped__,a=r?[1]:arguments,l=o instanceof zo,u=a[0],p=l||$s(o),c=function(e){var t=i.apply(Ho,Nt([e],a));return r&&d?t[0]:t};p&&n&&"function"==typeof u&&1!=u.length&&(l=p=!1);var d=this.__chain__,h=!!this.__actions__.length,f=s&&!d,g=l&&!h;if(!s&&p){o=g?o:new zo(this);var y=t.apply(o,a);return y.__actions__.push({func:ms,args:[c],thisArg:e}),new jo(y,d)}return f&&g?t.apply(this,a):(y=this.thru(c),f?r?y.value()[0]:y.value():y)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ho.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var r=this.value();return t.apply($s(r)?r:[],e)}return this[o]((function(o){return t.apply($s(o)?o:[],e)}))}})),bn(zo.prototype,(function(e,t){var o=Ho[t];if(o){var n=o.name+"";Me.call(xo,n)||(xo[n]=[]),xo[n].push({name:t,func:o})}})),xo[Br(e,2).name]=[{name:"wrapper",func:e}],zo.prototype.clone=function(){var e=new zo(this.__wrapped__);return e.__actions__=Nr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Nr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Nr(this.__views__),e},zo.prototype.reverse=function(){if(this.__filtered__){var e=new zo(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zo.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,o=$s(e),n=t<0,r=o?e.length:0,i=function(e,t,o){for(var n=-1,r=o.length;++n<r;){var i=o[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=wo(t,e+s);break;case"takeRight":e=Co(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=i.start,a=i.end,l=a-s,u=n?a:s-1,p=this.__iteratees__,c=p.length,d=0,h=wo(l,this.__takeCount__);if(!o||!n&&r==l&&h==l)return yr(e,this.__actions__);var f=[];e:for(;l--&&d<h;){for(var g=-1,y=e[u+=t];++g<c;){var v=p[g],m=v.iteratee,C=v.type,w=m(y);if(2==C)y=w;else if(!w){if(1==C)continue e;break e}}f[d++]=y}return f},Ho.prototype.at=Cs,Ho.prototype.chain=function(){return vs(this)},Ho.prototype.commit=function(){return new jo(this.value(),this.__chain__)},Ho.prototype.next=function(){this.__values__===e&&(this.__values__=va(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Ho.prototype.plant=function(t){for(var o,n=this;n instanceof Uo;){var r=ji(n);r.__index__=0,r.__values__=e,o?i.__wrapped__=r:o=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,o},Ho.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof zo){var o=t;return this.__actions__.length&&(o=new zo(this)),(o=o.reverse()).__actions__.push({func:ms,args:[is],thisArg:e}),new jo(o,this.__chain__)}return this.thru(is)},Ho.prototype.toJSON=Ho.prototype.valueOf=Ho.prototype.value=function(){return yr(this.__wrapped__,this.__actions__)},Ho.prototype.first=Ho.prototype.head,lt&&(Ho.prototype[lt]=function(){return this}),Ho}();dt?((dt.exports=ho)._=ho,ct._=ho):pt._=ho}.call(a);var op=[];Object.freeze(op);var np={};function rp(){return++xc.mobxGuid}function ip(e){throw sp(!1,e),"X"}function sp(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is a production build."))}function ap(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}Object.freeze(np);var lp=function(){};function up(e){return null!==e&&"object"==typeof e}function pp(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function cp(e,t,o){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:o})}function dp(e,t){var o="isMobX"+e;return t.prototype[o]=!0,function(e){return up(e)&&!0===e[o]}}function hp(e){return e instanceof Map}function fp(e){return e instanceof Set}function gp(e){var t=new Set;for(var o in e)t.add(o);return Object.getOwnPropertySymbols(e).forEach((function(o){Object.getOwnPropertyDescriptor(e,o).enumerable&&t.add(o)})),Array.from(t)}function yp(e){return e&&e.toString?e.toString():new String(e).toString()}function vp(e){return null===e?null:"object"==typeof e?""+e:e}var mp="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Cp=Symbol("mobx administration"),wp=function(){function e(e){void 0===e&&(e="Atom@"+rp()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Qp.NOT_TRACKING}return e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.reportObserved=function(){return kc(this)},e.prototype.reportChanged=function(){Mc(),function(e){if(e.lowestObserverState===Qp.STALE)return;e.lowestObserverState=Qp.STALE,e.observers.forEach((function(t){t.dependenciesState===Qp.UP_TO_DATE&&(t.isTracing!==Zp.NONE&&Vc(t,e),t.onBecomeStale()),t.dependenciesState=Qp.STALE}))}(this),Gc()},e.prototype.toString=function(){return this.name},e}(),Ep=dp("Atom",wp);function bp(e,t,o){void 0===t&&(t=lp),void 0===o&&(o=lp);var n,r=new wp(e);return t!==lp&&rd("onBecomeObserved",r,t,n),o!==lp&&nd(r,o),r}var Rp={identity:function(e,t){return e===t},structural:function(e,t){return rh(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return rh(e,t,1)}},Op=function(e,t){return(Op=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */var Sp=function(){return(Sp=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function _p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],o=0;return t?t.call(e):{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}}}function Tp(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,i=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return s}function Pp(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Tp(arguments[t]));return e}var Dp=Symbol("mobx did run lazy initializers"),Ap=Symbol("mobx pending decorators"),Np={},xp={};function Ip(e,t){var o=t?Np:xp;return o[e]||(o[e]={configurable:!0,enumerable:t,get:function(){return Fp(this),this[e]},set:function(t){Fp(this),this[e]=t}})}function Fp(e){var t,o;if(!0!==e[Dp]){var n=e[Ap];if(n){cp(e,Dp,!0);var r=Pp(Object.getOwnPropertySymbols(n),Object.keys(n));try{for(var i=_p(r),s=i.next();!s.done;s=i.next()){var a=n[s.value];a.propertyCreator(e,a.prop,a.descriptor,a.decoratorTarget,a.decoratorArguments)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(t)throw t.error}}}}}function Lp(e,t){return function(){var o,n=function(n,r,i,s){if(!0===s)return t(n,r,i,n,o),null;if(!Object.prototype.hasOwnProperty.call(n,Ap)){var a=n[Ap];cp(n,Ap,Sp({},a))}return n[Ap][r]={prop:r,propertyCreator:t,descriptor:i,decoratorTarget:n,decoratorArguments:o},Ip(r,e)};return Mp(arguments)?(o=op,n.apply(null,arguments)):(o=Array.prototype.slice.call(arguments),n)}}function Mp(e){return(2===e.length||3===e.length)&&("string"==typeof e[1]||"symbol"==typeof e[1])||4===e.length&&!0===e[3]}function Gp(e,t,o){return dd(e)?e:Array.isArray(e)?qp.array(e,{name:o}):pp(e)?qp.object(e,void 0,{name:o}):hp(e)?qp.map(e,{name:o}):fp(e)?qp.set(e,{name:o}):e}function kp(e){return e}function Vp(e){sp(e);var t=Lp(!0,(function(t,o,n,r,i){var s=n?n.initializer?n.initializer.call(t):n.value:void 0;qd(t).addObservableProp(o,s,e)})),o=("undefined"!=typeof process&&process.env,t);return o.enhancer=e,o}var Wp={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Hp(e){return null==e?Wp:"string"==typeof e?{name:e,deep:!0,proxy:!0}:e}Object.freeze(Wp);var Bp=Vp(Gp),Up=Vp((function(e,t,o){return null==e||Jd(e)||Vd(e)||Ud(e)||Yd(e)?e:Array.isArray(e)?qp.array(e,{name:o,deep:!1}):pp(e)?qp.object(e,void 0,{name:o,deep:!1}):hp(e)?qp.map(e,{name:o,deep:!1}):fp(e)?qp.set(e,{name:o,deep:!1}):ip(!1)})),jp=Vp(kp),zp=Vp((function(e,t,o){return rh(e,t)?t:e}));function Yp(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?kp:Gp}var Kp={box:function(e,t){arguments.length>2&&$p("box");var o=Hp(t);return new bc(e,Yp(o),o.name,!0,o.equals)},array:function(e,t){arguments.length>2&&$p("array");var o=Hp(t);return Fd(e,Yp(o),o.name)},map:function(e,t){arguments.length>2&&$p("map");var o=Hp(t);return new Bd(e,Yp(o),o.name)},set:function(e,t){arguments.length>2&&$p("set");var o=Hp(t);return new zd(e,Yp(o),o.name)},object:function(e,t,o){"string"==typeof arguments[1]&&$p("object");var n=Hp(o);if(!1===n.proxy)return sd({},e,t,n);var r=ad(n),i=sd({},void 0,void 0,n),s=_d(i);return ld(s,e,t,r),s},ref:jp,shallow:Up,deep:Bp,struct:zp},qp=function(e,t,o){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return Bp.apply(null,arguments);if(dd(e))return e;var n=pp(e)?qp.object(e,t,o):Array.isArray(e)?qp.array(e,t):hp(e)?qp.map(e,t):fp(e)?qp.set(e,t):e;if(n!==e)return n;ip(!1)};function $p(e){ip("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(Kp).forEach((function(e){return qp[e]=Kp[e]}));var Qp,Xp,Zp,Jp,ec=Lp(!1,(function(e,t,o,n,r){var i=o.get,s=o.set,a=r[0]||{};qd(e).addComputedProp(e,t,Sp({get:i,set:s,context:e},a))})),tc=ec({equals:Rp.structural}),oc=function(e,t,o){if("string"==typeof t)return ec.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return ec.apply(null,arguments);var n="object"==typeof t?t:{};return n.get=e,n.set="function"==typeof t?t:n.set,n.name=n.name||e.name||"",new Oc(n)};oc.struct=tc,(Xp=Qp||(Qp={}))[Xp.NOT_TRACKING=-1]="NOT_TRACKING",Xp[Xp.UP_TO_DATE=0]="UP_TO_DATE",Xp[Xp.POSSIBLY_STALE=1]="POSSIBLY_STALE",Xp[Xp.STALE=2]="STALE",(Jp=Zp||(Zp={}))[Jp.NONE=0]="NONE",Jp[Jp.LOG=1]="LOG",Jp[Jp.BREAK=2]="BREAK";var nc=function(e){this.cause=e};function rc(e){return e instanceof nc}function ic(e){switch(e.dependenciesState){case Qp.UP_TO_DATE:return!1;case Qp.NOT_TRACKING:case Qp.STALE:return!0;case Qp.POSSIBLY_STALE:for(var t=dc(!0),o=pc(),n=e.observing,r=n.length,i=0;i<r;i++){var s=n[i];if(Sc(s)){if(xc.disableErrorBoundaries)s.get();else try{s.get()}catch(a){return cc(o),hc(t),!0}if(e.dependenciesState===Qp.STALE)return cc(o),hc(t),!0}}return fc(e),cc(o),hc(t),!1}}function sc(e){var t=e.observers.size>0;xc.computationDepth>0&&t&&ip(!1),xc.allowStateChanges||!t&&"strict"!==xc.enforceActions||ip(!1)}function ac(e,t,o){var n=dc(!0);fc(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++xc.runId;var r,i=xc.trackingDerivation;if(xc.trackingDerivation=e,!0===xc.disableErrorBoundaries)r=t.call(o);else try{r=t.call(o)}catch(s){r=new nc(s)}return xc.trackingDerivation=i,function(e){for(var t=e.observing,o=e.observing=e.newObserving,n=Qp.UP_TO_DATE,r=0,i=e.unboundDepsCount,s=0;s<i;s++){0===(a=o[s]).diffValue&&(a.diffValue=1,r!==s&&(o[r]=a),r++),a.dependenciesState>n&&(n=a.dependenciesState)}o.length=r,e.newObserving=null,i=t.length;for(;i--;){0===(a=t[i]).diffValue&&Fc(a,e),a.diffValue=0}for(;r--;){var a;1===(a=o[r]).diffValue&&(a.diffValue=0,Ic(a,e))}n!==Qp.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}(e),hc(n),r}function lc(e){var t=e.observing;e.observing=[];for(var o=t.length;o--;)Fc(t[o],e);e.dependenciesState=Qp.NOT_TRACKING}function uc(e){var t=pc();try{return e()}finally{cc(t)}}function pc(){var e=xc.trackingDerivation;return xc.trackingDerivation=null,e}function cc(e){xc.trackingDerivation=e}function dc(e){var t=xc.allowStateReads;return xc.allowStateReads=e,t}function hc(e){xc.allowStateReads=e}function fc(e){if(e.dependenciesState!==Qp.UP_TO_DATE){e.dependenciesState=Qp.UP_TO_DATE;for(var t=e.observing,o=t.length;o--;)t[o].lowestObserverState=Qp.UP_TO_DATE}}var gc=0,yc=1,vc=Object.getOwnPropertyDescriptor((function(){}),"name");function mc(e,t,o){var n=function(){return Cc(e,t,o||this,arguments)};return n.isMobxAction=!0,n}function Cc(e,t,o,n){var r=function(e,t,o){var n=!1,r=0,i=pc();Mc();var s=wc(!0),a=dc(!0),l={prevDerivation:i,prevAllowStateChanges:s,prevAllowStateReads:a,notifySpy:n,startTime:r,actionId:yc++,parentActionId:gc};return gc=l.actionId,l}();try{return t.apply(o,n)}catch(i){throw r.error=i,i}finally{!function(e){gc!==e.actionId&&ip("invalid action stack. did you forget to finish an action?");gc=e.parentActionId,void 0!==e.error&&(xc.suppressReactionErrors=!0);Ec(e.prevAllowStateChanges),hc(e.prevAllowStateReads),Gc(),cc(e.prevDerivation),e.notifySpy&&!1;xc.suppressReactionErrors=!1}(r)}}function wc(e){var t=xc.allowStateChanges;return xc.allowStateChanges=e,t}function Ec(e){xc.allowStateChanges=e}vc&&vc.configurable;var bc=function(e){function t(t,o,n,r,i){void 0===n&&(n="ObservableValue@"+rp()),void 0===r&&(r=!0),void 0===i&&(i=Rp.default);var s=e.call(this,n)||this;return s.enhancer=o,s.name=n,s.equals=i,s.hasUnreportedChange=!1,s.value=o(t,void 0,n),s}return function(e,t){function o(){this.constructor=e}Op(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value;if((e=this.prepareNewValue(e))!==xc.UNCHANGED){false,this.setNewValue(e)}},t.prototype.prepareNewValue=function(e){if(sc(this),Td(this)){var t=Dd(this,{object:this,type:"update",newValue:e});if(!t)return xc.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?xc.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Ad(this)&&xd(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return Pd(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Nd(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return vp(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(wp),Rc=dp("ObservableValue",bc),Oc=function(){function e(e){this.dependenciesState=Qp.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Qp.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+rp(),this.value=new nc(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Zp.NONE,sp(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+rp(),e.set&&(this.setter=mc(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?Rp.structural:Rp.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==Qp.UP_TO_DATE)return;e.lowestObserverState=Qp.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===Qp.UP_TO_DATE&&(t.dependenciesState=Qp.POSSIBLY_STALE,t.isTracing!==Zp.NONE&&Vc(t,e),t.onBecomeStale())}))}(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&ip("Cycle detected in computation "+this.name+": "+this.derivation),0!==xc.inBatch||0!==this.observers.size||this.keepAlive?(kc(this),ic(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===Qp.STALE)return;e.lowestObserverState=Qp.STALE,e.observers.forEach((function(t){t.dependenciesState===Qp.POSSIBLY_STALE?t.dependenciesState=Qp.STALE:t.dependenciesState===Qp.UP_TO_DATE&&(e.lowestObserverState=Qp.UP_TO_DATE)}))}(this)):ic(this)&&(this.warnAboutUntrackedRead(),Mc(),this.value=this.computeValue(!1),Gc());var e=this.value;if(rc(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(rc(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){sp(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else sp(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===Qp.NOT_TRACKING,o=this.computeValue(!0),n=t||rc(e)||rc(o)||!this.equals(e,o);return n&&(this.value=o),n},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,xc.computationDepth++,e)t=ac(this,this.derivation,this.scope);else if(!0===xc.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(o){t=new nc(o)}return xc.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(lc(this),this.value=void 0)},e.prototype.observe=function(e,t){var o=this,n=!0,r=void 0;return Jc((function(){var i=o.get();if(!n||t){var s=pc();e({type:"update",object:o,newValue:i,oldValue:r}),cc(s)}n=!1,r=i}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return vp(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),Sc=dp("ComputedValue",Oc),_c=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Tc={};function Pc(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Tc}var Dc,Ac=!0,Nc=!1,xc=((Dc=Pc()).__mobxInstanceCount>0&&!Dc.__mobxGlobals&&(Ac=!1),Dc.__mobxGlobals&&Dc.__mobxGlobals.version!==(new _c).version&&(Ac=!1),Ac?Dc.__mobxGlobals?(Dc.__mobxInstanceCount+=1,Dc.__mobxGlobals.UNCHANGED||(Dc.__mobxGlobals.UNCHANGED={}),Dc.__mobxGlobals):(Dc.__mobxInstanceCount=1,Dc.__mobxGlobals=new _c):(setTimeout((function(){Nc||ip("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new _c));function Ic(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Fc(e,t){e.observers.delete(t),0===e.observers.size&&Lc(e)}function Lc(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,xc.pendingUnobservations.push(e))}function Mc(){xc.inBatch++}function Gc(){if(0==--xc.inBatch){Uc();for(var e=xc.pendingUnobservations,t=0;t<e.length;t++){var o=e[t];o.isPendingUnobservation=!1,0===o.observers.size&&(o.isBeingObserved&&(o.isBeingObserved=!1,o.onBecomeUnobserved()),o instanceof Oc&&o.suspend())}xc.pendingUnobservations=[]}}function kc(e){var t=xc.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.size&&xc.inBatch>0&&Lc(e),!1)}function Vc(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Zp.BREAK){var o=[];Wc(ud(e),o,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof Oc?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+o.join("\n")+"\n*/\n ")()}}function Wc(e,t,o){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(o).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Wc(e,t,o+1)})))}var Hc=function(){function e(e,t,o,n){void 0===e&&(e="Reaction@"+rp()),void 0===n&&(n=!1),this.name=e,this.onInvalidate=t,this.errorHandler=o,this.requiresObservable=n,this.observing=[],this.newObserving=[],this.dependenciesState=Qp.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+rp(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Zp.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,xc.pendingReactions.push(this),Uc())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Mc(),this._isScheduled=!1,ic(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}Gc()}},e.prototype.track=function(e){if(!this.isDisposed){Mc(),this._isRunning=!0;var t=ac(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&lc(this),rc(t)&&this.reportExceptionInDerivation(t.cause),Gc()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(xc.disableErrorBoundaries)throw e;var o="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";xc.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(o,e),xc.globalReactionErrorHandlers.forEach((function(o){return o(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Mc(),lc(this),Gc()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[Cp]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=!1;"boolean"==typeof e[e.length-1]&&(o=e.pop());var n=md(e);if(!n)return ip(!1);n.isTracing===Zp.NONE&&console.log("[mobx.trace] '"+n.name+"' tracing enabled");n.isTracing=o?Zp.BREAK:Zp.LOG}(this,e)},e}(),Bc=function(e){return e()};function Uc(){xc.inBatch>0||xc.isRunningReactions||Bc(jc)}function jc(){xc.isRunningReactions=!0;for(var e=xc.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var o=e.splice(0),n=0,r=o.length;n<r;n++)o[n].runReaction()}xc.isRunningReactions=!1}var zc=dp("Reaction",Hc);function Yc(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function Kc(){ip(!1)}function qc(e){return function(t,o,n){if(n){if(n.value)return{value:mc(e,n.value),enumerable:!1,configurable:!0,writable:!0};var r=n.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return mc(e,r.call(this))}}}return $c(e).apply(this,arguments)}}function $c(e){return function(t,o,n){Object.defineProperty(t,o,{configurable:!0,enumerable:!1,get:function(){},set:function(t){cp(this,o,Qc(e,t))}})}}var Qc=function(e,t,o,n){return 1===arguments.length&&"function"==typeof e?mc(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?mc(e,t):1===arguments.length&&"string"==typeof e?qc(e):!0!==n?qc(t).apply(null,arguments):void cp(e,t,mc(e.name||t,o.value,this))};function Xc(e,t){"string"==typeof e||e.name;return Cc(0,"function"==typeof e?e:t,this,void 0)}function Zc(e,t,o){cp(e,t,mc(t,o.bind(e)))}function Jc(e,t){void 0===t&&(t=np);var o,n=t&&t.name||e.name||"Autorun@"+rp();if(!t.scheduler&&!t.delay)o=new Hc(n,(function(){this.track(s)}),t.onError,t.requiresObservable);else{var r=td(t),i=!1;o=new Hc(n,(function(){i||(i=!0,r((function(){i=!1,o.isDisposed||o.track(s)})))}),t.onError,t.requiresObservable)}function s(){e(o)}return o.schedule(),o.getDisposer()}Qc.bound=function(e,t,o,n){return!0===n?(Zc(e,t,o.value),null):o?{configurable:!0,enumerable:!1,get:function(){return Zc(this,t,o.value||o.initializer.call(this)),this[t]},set:Kc}:{enumerable:!1,configurable:!0,set:function(e){Zc(this,t,e)},get:function(){}}};var ed=function(e){return e()};function td(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ed}function od(e,t,o){void 0===o&&(o=np);var n,r,i,s=o.name||"Reaction@"+rp(),a=Qc(s,o.onError?(n=o.onError,r=t,function(){try{return r.apply(this,arguments)}catch(e){n.call(this,e)}}):t),l=!o.scheduler&&!o.delay,u=td(o),p=!0,c=!1,d=o.compareStructural?Rp.structural:o.equals||Rp.default,h=new Hc(s,(function(){p||l?f():c||(c=!0,u(f))}),o.onError,o.requiresObservable);function f(){if(c=!1,!h.isDisposed){var t=!1;h.track((function(){var o=e(h);t=p||!d(i,o),i=o})),p&&o.fireImmediately&&a(i,h),p||!0!==t||a(i,h),p&&(p=!1)}}return h.schedule(),h.getDisposer()}function nd(e,t,o){return rd("onBecomeUnobserved",e,t,o)}function rd(e,t,o,n){var r="function"==typeof n?eh(t,o):eh(t),i="function"==typeof n?n:o,s=e+"Listeners";return r[s]?r[s].add(i):r[s]=new Set([i]),"function"!=typeof r[e]?ip(!1):function(){var e=r[s];e&&(e.delete(i),0===e.size&&delete r[s])}}function id(e){var t,o,n=e.enforceActions,r=e.computedRequiresReaction,i=e.computedConfigurable,s=e.disableErrorBoundaries,a=e.reactionScheduler,l=e.reactionRequiresObservable,u=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((xc.pendingReactions.length||xc.inBatch||xc.isRunningReactions)&&ip("isolateGlobalState should be called before MobX is running any reactions"),Nc=!0,Ac&&(0==--Pc().__mobxInstanceCount&&(Pc().__mobxGlobals=void 0),xc=new _c)),void 0!==n){var p=void 0;switch(n){case!0:case"observed":p=!0;break;case!1:case"never":p=!1;break;case"strict":case"always":p="strict";break;default:ip("Invalid value for 'enforceActions': '"+n+"', expected 'never', 'always' or 'observed'")}xc.enforceActions=p,xc.allowStateChanges=!0!==p&&"strict"!==p}void 0!==r&&(xc.computedRequiresReaction=!!r),void 0!==l&&(xc.reactionRequiresObservable=!!l),void 0!==u&&(xc.observableRequiresReaction=!!u,xc.allowStateReads=!xc.observableRequiresReaction),void 0!==i&&(xc.computedConfigurable=!!i),void 0!==s&&(!0===s&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),xc.disableErrorBoundaries=!!s),a&&(t=a,o=Bc,Bc=function(e){return t((function(){return o(e)}))})}function sd(e,t,o,n){var r=ad(n=Hp(n));return Fp(e),qd(e,n.name,r.enhancer),t&&ld(e,t,o,r),e}function ad(e){return e.defaultDecorator||(!1===e.deep?jp:Bp)}function ld(e,t,o,n){var r,i;Mc();try{var s=mp(t);try{for(var a=_p(s),l=a.next();!l.done;l=a.next()){var u=l.value,p=Object.getOwnPropertyDescriptor(t,u);0;var c=(o&&u in o?o[u]:p.get?ec:n)(e,u,p,!0);c&&Object.defineProperty(e,u,c)}}catch(d){r={error:d}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}finally{Gc()}}function ud(e,t){return pd(eh(e,t))}function pd(e){var t,o,n={name:e.name};return e.observing&&e.observing.length>0&&(n.dependencies=(t=e.observing,o=[],t.forEach((function(e){-1===o.indexOf(e)&&o.push(e)})),o).map(pd)),n}function cd(e,t){return null!=e&&(void 0!==t?!!Jd(e)&&e[Cp].values.has(t):Jd(e)||!!e[Cp]||Ep(e)||zc(e)||Sc(e))}function dd(e){return 1!==arguments.length&&ip(!1),cd(e)}function hd(e,t,o){if(2!==arguments.length||Yd(e))if(Jd(e)){var n=e[Cp],r=n.values.get(t);r?n.write(t,o):n.addObservableProp(t,o,n.defaultEnhancer)}else if(Ud(e))e.set(t,o);else if(Yd(e))e.add(t);else{if(!Vd(e))return ip(!1);"number"!=typeof t&&(t=parseInt(t,10)),sp(t>=0,"Not a valid index: '"+t+"'"),Mc(),t>=e.length&&(e.length=t+1),e[t]=o,Gc()}else{Mc();var i=t;try{for(var s in i)hd(e,s,i[s])}finally{Gc()}}}var fd={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function gd(e,t,o,n){return n.detectCycles&&e.set(t,o),o}function yd(e,t,o){if(!t.recurseEverything&&!dd(e))return e;if("object"!=typeof e)return e;if(null===e)return null;if(e instanceof Date)return e;if(Rc(e))return yd(e.get(),t,o);var n;if(dd(e)&&(Jd(n=e)?n[Cp].getKeys():Ud(n)||Yd(n)?Array.from(n.keys()):Vd(n)?n.map((function(e,t){return t})):ip(!1)),!0===t.detectCycles&&null!==e&&o.has(e))return o.get(e);if(Vd(e)||Array.isArray(e)){var r=gd(o,e,[],t),i=e.map((function(e){return yd(e,t,o)}));r.length=i.length;for(var s=0,a=i.length;s<a;s++)r[s]=i[s];return r}if(Yd(e)||Object.getPrototypeOf(e)===Set.prototype){if(!1===t.exportMapsAsObjects){var l=gd(o,e,new Set,t);return e.forEach((function(e){l.add(yd(e,t,o))})),l}var u=gd(o,e,[],t);return e.forEach((function(e){u.push(yd(e,t,o))})),u}if(Ud(e)||Object.getPrototypeOf(e)===Map.prototype){if(!1===t.exportMapsAsObjects){var p=gd(o,e,new Map,t);return e.forEach((function(e,n){p.set(n,yd(e,t,o))})),p}var c=gd(o,e,{},t);return e.forEach((function(e,n){c[n]=yd(e,t,o)})),c}var d=gd(o,e,{},t);return gp(e).forEach((function(n){d[n]=yd(e[n],t,o)})),d}function vd(e,t){var o;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=fd),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(o=new Map),yd(e,t,o)}function md(e){switch(e.length){case 0:return xc.trackingDerivation;case 1:return eh(e[0]);case 2:return eh(e[0],e[1])}}function Cd(e,t){void 0===t&&(t=void 0),Mc();try{return e.apply(t)}finally{Gc()}}function wd(e,t,o){return 1===arguments.length||t&&"object"==typeof t?bd(e,t):Ed(e,t,o||{})}function Ed(e,t,o){var n;"number"==typeof o.timeout&&(n=setTimeout((function(){if(!i[Cp].isDisposed){i();var e=new Error("WHEN_TIMEOUT");if(!o.onError)throw e;o.onError(e)}}),o.timeout)),o.name=o.name||"When@"+rp();var r=mc(o.name+"-effect",t),i=Jc((function(t){e()&&(t.dispose(),n&&clearTimeout(n),r())}),o);return i}function bd(e,t){var o,n=new Promise((function(n,r){var i=Ed(e,n,Sp(Sp({},t),{onError:r}));o=function(){i(),r("WHEN_CANCELLED")}}));return n.cancel=o,n}function Rd(e){return e[Cp]}function Od(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var Sd={has:function(e,t){if(t===Cp||"constructor"===t||t===Dp)return!0;var o=Rd(e);return Od(t)?o.has(t):t in e},get:function(e,t){if(t===Cp||"constructor"===t||t===Dp)return e[t];var o=Rd(e),n=o.values.get(t);if(n instanceof wp){var r=n.get();return void 0===r&&o.has(t),r}return Od(t)&&o.has(t),e[t]},set:function(e,t,o){return!!Od(t)&&(hd(e,t,o),!0)},deleteProperty:function(e,t){return!!Od(t)&&(Rd(e).remove(t),!0)},ownKeys:function(e){return Rd(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return ip("Dynamic observable objects cannot be frozen"),!1}};function _d(e){var t=new Proxy(e,Sd);return e[Cp].proxy=t,t}function Td(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Pd(e,t){var o=e.interceptors||(e.interceptors=[]);return o.push(t),ap((function(){var e=o.indexOf(t);-1!==e&&o.splice(e,1)}))}function Dd(e,t){var o=pc();try{for(var n=Pp(e.interceptors||[]),r=0,i=n.length;r<i&&(sp(!(t=n[r](t))||t.type,"Intercept handlers should return nothing or a change object"),t);r++);return t}finally{cc(o)}}function Ad(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Nd(e,t){var o=e.changeListeners||(e.changeListeners=[]);return o.push(t),ap((function(){var e=o.indexOf(t);-1!==e&&o.splice(e,1)}))}function xd(e,t){var o=pc(),n=e.changeListeners;if(n){for(var r=0,i=(n=n.slice()).length;r<i;r++)n[r](t);cc(o)}}var Id={get:function(e,t){return t===Cp?e[Cp]:"length"===t?e[Cp].getArrayLength():"number"==typeof t?Md.get.call(e,t):"string"!=typeof t||isNaN(t)?Md.hasOwnProperty(t)?Md[t]:e[t]:Md.get.call(e,parseInt(t))},set:function(e,t,o){return"length"===t&&e[Cp].setArrayLength(o),"number"==typeof t&&Md.set.call(e,t,o),"symbol"==typeof t||isNaN(t)?e[t]=o:Md.set.call(e,parseInt(t),o),!0},preventExtensions:function(e){return ip("Observable arrays cannot be frozen"),!1}};function Fd(e,t,o,n){void 0===o&&(o="ObservableArray@"+rp()),void 0===n&&(n=!1);var r,i,s,a=new Ld(o,t,n);r=a.values,i=Cp,s=a,Object.defineProperty(r,i,{enumerable:!1,writable:!1,configurable:!0,value:s});var l=new Proxy(a.values,Id);if(a.proxy=l,e&&e.length){var u=wc(!0);a.spliceWithArray(0,0,e),Ec(u)}return l}var Ld=function(){function e(e,t,o){this.owned=o,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new wp(e||"ObservableArray@"+rp()),this.enhancer=function(o,n){return t(o,n,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return Pd(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Nd(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var o=new Array(e-t),n=0;n<e-t;n++)o[n]=void 0;this.spliceWithArray(t,0,o)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=t},e.prototype.spliceWithArray=function(e,t,o){var n=this;sc(this.atom);var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:null==t?0:Math.max(0,Math.min(t,r-e)),void 0===o&&(o=op),Td(this)){var i=Dd(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:o});if(!i)return op;t=i.removedCount,o=i.added}o=0===o.length?o:o.map((function(e){return n.enhancer(e,void 0)}));var s=this.spliceItemsIntoValues(e,t,o);return 0===t&&0===o.length||this.notifyArraySplice(e,o,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,o){var n;if(o.length<1e4)return(n=this.values).splice.apply(n,Pp([e,t],o));var r=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(o,this.values.slice(e+t)),r},e.prototype.notifyArrayChildUpdate=function(e,t,o){var n=!this.owned&&!1,r=Ad(this),i=r||n?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:o}:null;this.atom.reportChanged(),r&&xd(this,i)},e.prototype.notifyArraySplice=function(e,t,o){var n=!this.owned&&!1,r=Ad(this),i=r||n?{object:this.proxy,type:"splice",index:e,removed:o,added:t,removedCount:o.length,addedCount:t.length}:null;this.atom.reportChanged(),r&&xd(this,i)},e}(),Md={intercept:function(e){return this[Cp].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[Cp].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[Cp];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];var r=this[Cp];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray(e);case 2:return r.spliceWithArray(e,t)}return r.spliceWithArray(e,t,o)},spliceWithArray:function(e,t,o){return this[Cp].spliceWithArray(e,t,o)},push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=this[Cp];return o.spliceWithArray(o.values.length,0,e),o.values.length},pop:function(){return this.splice(Math.max(this[Cp].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=this[Cp];return o.spliceWithArray(0,0,e),o.values.length},reverse:function(){var e=this.slice();return e.reverse.apply(e,arguments)},sort:function(e){var t=this.slice();return t.sort.apply(t,arguments)},remove:function(e){var t=this[Cp],o=t.dehanceValues(t.values).indexOf(e);return o>-1&&(this.splice(o,1),!0)},get:function(e){var t=this[Cp];if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},set:function(e,t){var o=this[Cp],n=o.values;if(e<n.length){sc(o.atom);var r=n[e];if(Td(o)){var i=Dd(o,{type:"update",object:o.proxy,index:e,newValue:t});if(!i)return;t=i.newValue}(t=o.enhancer(t,r))!==r&&(n[e]=t,o.notifyArrayChildUpdate(e,t,r))}else{if(e!==n.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+n.length);o.spliceWithArray(e,0,[t])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){"function"==typeof Array.prototype[e]&&(Md[e]=function(){var t=this[Cp];t.atom.reportObserved();var o=t.dehanceValues(t.values);return o[e].apply(o,arguments)})})),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach((function(e){"function"==typeof Array.prototype[e]&&(Md[e]=function(t,o){var n=this,r=this[Cp];return r.atom.reportObserved(),r.dehanceValues(r.values)[e]((function(e,r){return t.call(o,e,r,n)}),o)})})),["reduce","reduceRight"].forEach((function(e){Md[e]=function(){var t=this,o=this[Cp];o.atom.reportObserved();var n=arguments[0];return arguments[0]=function(e,r,i){return r=o.dehanceValue(r),n(e,r,i,t)},o.values[e].apply(o.values,arguments)}}));var Gd,kd=dp("ObservableArrayAdministration",Ld);function Vd(e){return up(e)&&kd(e[Cp])}var Wd,Hd={},Bd=function(){function e(e,t,o){if(void 0===t&&(t=Gp),void 0===o&&(o="ObservableMap@"+rp()),this.enhancer=t,this.name=o,this[Gd]=Hd,this._keysAtom=bp(this.name+".keys()"),this[Symbol.toStringTag]="Map","function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!xc.trackingDerivation)return this._has(e);var o=this._hasMap.get(e);if(!o){var n=o=new bc(this._has(e),kp,this.name+"."+yp(e)+"?",!1);this._hasMap.set(e,n),nd(n,(function(){return t._hasMap.delete(e)}))}return o.get()},e.prototype.set=function(e,t){var o=this._has(e);if(Td(this)){var n=Dd(this,{type:o?"update":"add",object:this,newValue:t,name:e});if(!n)return this;t=n.newValue}return o?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((sc(this._keysAtom),Td(this))&&!(n=Dd(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var o=Ad(this),n=o?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return Cd((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),o&&xd(this,n),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var o=this._hasMap.get(e);o&&o.setNewValue(t)},e.prototype._updateValue=function(e,t){var o=this._data.get(e);if((t=o.prepareNewValue(t))!==xc.UNCHANGED){var n=Ad(this),r=n?{type:"update",object:this,oldValue:o.value,name:e,newValue:t}:null;false,o.setNewValue(t),n&&xd(this,r)}},e.prototype._addValue=function(e,t){var o=this;sc(this._keysAtom),Cd((function(){var n=new bc(t,o.enhancer,o.name+"."+yp(e),!1);o._data.set(e,n),t=n.value,o._updateHasMapEntry(e,!0),o._keysAtom.reportChanged()}));var n=Ad(this);n&&xd(this,n?{type:"add",object:this,name:e,newValue:t}:null)},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return lh({next:function(){var o=t.next(),n=o.done,r=o.value;return{done:n,value:n?void 0:e.get(r)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return lh({next:function(){var o=t.next(),n=o.done,r=o.value;return{done:n,value:n?void 0:[r,e.get(r)]}}})},e.prototype[(Gd=Cp,Symbol.iterator)]=function(){return this.entries()},e.prototype.forEach=function(e,t){var o,n;try{for(var r=_p(this),i=r.next();!i.done;i=r.next()){var s=Tp(i.value,2),a=s[0],l=s[1];e.call(t,l,a,this)}}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}},e.prototype.merge=function(e){var t=this;return Ud(e)&&(e=e.toJS()),Cd((function(){var o=wc(!0);try{pp(e)?gp(e).forEach((function(o){return t.set(o,e[o])})):Array.isArray(e)?e.forEach((function(e){var o=Tp(e,2),n=o[0],r=o[1];return t.set(n,r)})):hp(e)?(e.constructor!==Map&&ip("Cannot initialize from classes that inherit from Map: "+e.constructor.name),e.forEach((function(e,o){return t.set(o,e)}))):null!=e&&ip("Cannot initialize map from "+e)}finally{Ec(o)}})),this},e.prototype.clear=function(){var e=this;Cd((function(){uc((function(){var t,o;try{for(var n=_p(e.keys()),r=n.next();!r.done;r=n.next()){var i=r.value;e.delete(i)}}catch(s){t={error:s}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}}))}))},e.prototype.replace=function(e){var t=this;return Cd((function(){var o,n,r,i,s=function(e){if(hp(e)||Ud(e))return e;if(Array.isArray(e))return new Map(e);if(pp(e)){var t=new Map;for(var o in e)t.set(o,e[o]);return t}return ip("Cannot convert to map from '"+e+"'")}(e),a=new Map,l=!1;try{for(var u=_p(t._data.keys()),p=u.next();!p.done;p=u.next()){var c=p.value;if(!s.has(c))if(t.delete(c))l=!0;else{var d=t._data.get(c);a.set(c,d)}}}catch(b){o={error:b}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}try{for(var h=_p(s.entries()),f=h.next();!f.done;f=h.next()){var g=Tp(f.value,2),y=(c=g[0],d=g[1],t._data.has(c));if(t.set(c,d),t._data.has(c)){var v=t._data.get(c);a.set(c,v),y||(l=!0)}}}catch(R){r={error:R}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}if(!l)if(t._data.size!==a.size)t._keysAtom.reportChanged();else for(var m=t._data.keys(),C=a.keys(),w=m.next(),E=C.next();!w.done;){if(w.value!==E.value){t._keysAtom.reportChanged();break}w=m.next(),E=C.next()}t._data=a})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e,t,o={};try{for(var n=_p(this),r=n.next();!r.done;r=n.next()){var i=Tp(r.value,2),s=i[0],a=i[1];o["symbol"==typeof s?s:yp(s)]=a}}catch(l){e={error:l}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return o},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+Array.from(this.keys()).map((function(t){return yp(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return Nd(this,e)},e.prototype.intercept=function(e){return Pd(this,e)},e}(),Ud=dp("ObservableMap",Bd),jd={},zd=function(){function e(e,t,o){if(void 0===t&&(t=Gp),void 0===o&&(o="ObservableSet@"+rp()),this.name=o,this[Wd]=jd,this._data=new Set,this._atom=bp(this.name),this[Symbol.toStringTag]="Set","function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,n){return t(e,n,o)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Cd((function(){uc((function(){var t,o;try{for(var n=_p(e._data.values()),r=n.next();!r.done;r=n.next()){var i=r.value;e.delete(i)}}catch(s){t={error:s}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}}))}))},e.prototype.forEach=function(e,t){var o,n;try{for(var r=_p(this),i=r.next();!i.done;i=r.next()){var s=i.value;e.call(t,s,s,this)}}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((sc(this._atom),Td(this))&&!(n=Dd(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){Cd((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var o=Ad(this),n=o?{type:"add",object:this,newValue:e}:null;o&&xd(this,n)}return this},e.prototype.delete=function(e){var t=this;if(Td(this)&&!(n=Dd(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var o=Ad(this),n=o?{type:"delete",object:this,oldValue:e}:null;return Cd((function(){t._atom.reportChanged(),t._data.delete(e)})),o&&xd(this,n),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=Array.from(this.keys()),o=Array.from(this.values());return lh({next:function(){var n=e;return e+=1,n<o.length?{value:[t[n],o[n]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e=this,t=0,o=Array.from(this._data.values());return lh({next:function(){return t<o.length?{value:e.dehanceValue(o[t++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return Yd(e)&&(e=e.toJS()),Cd((function(){var o=wc(!0);try{Array.isArray(e)||fp(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&ip("Cannot initialize set from "+e)}finally{Ec(o)}})),this},e.prototype.observe=function(e,t){return Nd(this,e)},e.prototype.intercept=function(e){return Pd(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},e.prototype[(Wd=Cp,Symbol.iterator)]=function(){return this.values()},e}(),Yd=dp("ObservableSet",zd),Kd=function(){function e(e,t,o,n){void 0===t&&(t=new Map),this.target=e,this.values=t,this.name=o,this.defaultEnhancer=n,this.keysAtom=new wp(o+".keys")}return e.prototype.read=function(e){return this.values.get(e).get()},e.prototype.write=function(e,t){var o=this.target,n=this.values.get(e);if(n instanceof Oc)n.set(t);else{if(Td(this)){if(!(i=Dd(this,{type:"update",object:this.proxy||o,name:e,newValue:t})))return;t=i.newValue}if((t=n.prepareNewValue(t))!==xc.UNCHANGED){var r=Ad(this),i=r?{type:"update",object:this.proxy||o,oldValue:n.value,name:e,newValue:t}:null;false,n.setNewValue(t),r&&xd(this,i)}}},e.prototype.has=function(e){var t=this.pendingKeys||(this.pendingKeys=new Map),o=t.get(e);if(o)return o.get();var n=!!this.values.get(e);return o=new bc(n,kp,this.name+"."+yp(e)+"?",!1),t.set(e,o),o.get()},e.prototype.addObservableProp=function(e,t,o){void 0===o&&(o=this.defaultEnhancer);var n=this.target;if(Td(this)){var r=Dd(this,{object:this.proxy||n,name:e,type:"add",newValue:t});if(!r)return;t=r.newValue}var i=new bc(t,o,this.name+"."+yp(e),!1);this.values.set(e,i),t=i.value,Object.defineProperty(n,e,function(e){return $d[e]||($d[e]={configurable:!0,enumerable:!0,get:function(){return this[Cp].read(e)},set:function(t){this[Cp].write(e,t)}})}(e)),this.notifyPropertyAddition(e,t)},e.prototype.addComputedProp=function(e,t,o){var n,r,i,s=this.target;o.name=o.name||this.name+"."+yp(t),this.values.set(t,new Oc(o)),(e===s||(n=e,r=t,!(i=Object.getOwnPropertyDescriptor(n,r))||!1!==i.configurable&&!1!==i.writable))&&Object.defineProperty(e,t,function(e){return Qd[e]||(Qd[e]={configurable:xc.computedConfigurable,enumerable:!1,get:function(){return Xd(this).read(e)},set:function(t){Xd(this).write(e,t)}})}(t))},e.prototype.remove=function(e){if(this.values.has(e)){var t=this.target;if(Td(this))if(!(a=Dd(this,{object:this.proxy||t,name:e,type:"remove"})))return;try{Mc();var o=Ad(this),n=!1,r=this.values.get(e),i=r&&r.get();if(r&&r.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){var s=this.pendingKeys.get(e);s&&s.set(!1)}delete this.target[e];var a=o?{type:"remove",object:this.proxy||t,oldValue:i,name:e}:null;n,o&&xd(this,a)}finally{Gc()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return Nd(this,e)},e.prototype.intercept=function(e){return Pd(this,e)},e.prototype.notifyPropertyAddition=function(e,t){var o=Ad(this),n=o?{type:"add",object:this.proxy||this.target,name:e,newValue:t}:null;if(o&&xd(this,n),this.pendingKeys){var r=this.pendingKeys.get(e);r&&r.set(!0)}this.keysAtom.reportChanged()},e.prototype.getKeys=function(){var e,t;this.keysAtom.reportObserved();var o=[];try{for(var n=_p(this.values),r=n.next();!r.done;r=n.next()){var i=Tp(r.value,2),s=i[0];i[1]instanceof bc&&o.push(s)}}catch(a){e={error:a}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return o},e}();function qd(e,t,o){if(void 0===t&&(t=""),void 0===o&&(o=Gp),Object.prototype.hasOwnProperty.call(e,Cp))return e[Cp];pp(e)||(t=(e.constructor.name||"ObservableObject")+"@"+rp()),t||(t="ObservableObject@"+rp());var n=new Kd(e,new Map,yp(t),o);return cp(e,Cp,n),n}var $d=Object.create(null),Qd=Object.create(null);function Xd(e){var t=e[Cp];return t||(Fp(e),e[Cp])}var Zd=dp("ObservableObjectAdministration",Kd);function Jd(e){return!!up(e)&&(Fp(e),Zd(e[Cp]))}function eh(e,t){if("object"==typeof e&&null!==e){if(Vd(e))return void 0!==t&&ip(!1),e[Cp].atom;if(Yd(e))return e[Cp];if(Ud(e)){var o=e;return void 0===t?o._keysAtom:((n=o._data.get(t)||o._hasMap.get(t))||ip(!1),n)}var n;if(Fp(e),t&&!e[Cp]&&e[t],Jd(e))return t?((n=e[Cp].values.get(t))||ip(!1),n):ip(!1);if(Ep(e)||Sc(e)||zc(e))return e}else if("function"==typeof e&&zc(e[Cp]))return e[Cp];return ip(!1)}function th(e,t){return e||ip("Expecting some object"),void 0!==t?th(eh(e,t)):Ep(e)||Sc(e)||zc(e)||Ud(e)||Yd(e)?e:(Fp(e),e[Cp]?e[Cp]:void ip(!1))}var oh,nh=Object.prototype.toString;function rh(e,t,o){return void 0===o&&(o=-1),ih(e,t,o)}function ih(e,t,o,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var s=nh.call(e);if(s!==nh.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":o>=0&&o++}e=sh(e),t=sh(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!("function"==typeof l&&l instanceof l&&"function"==typeof u&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===o)return!1;o<0&&(o=-1),r=r||[];for(var p=(n=n||[]).length;p--;)if(n[p]===e)return r[p]===t;if(n.push(e),r.push(t),a){if((p=e.length)!==t.length)return!1;for(;p--;)if(!ih(e[p],t[p],o-1,n,r))return!1}else{var c=Object.keys(e),d=void 0;if(p=c.length,Object.keys(t).length!==p)return!1;for(;p--;)if(!ah(t,d=c[p])||!ih(e[d],t[d],o-1,n,r))return!1}return n.pop(),r.pop(),!0}function sh(e){return Vd(e)?e.slice():hp(e)||Ud(e)||fp(e)||Yd(e)?Array.from(e.entries()):e}function ah(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lh(e){return e[Symbol.iterator]=uh,e}function uh(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Yc,extras:{getDebugName:function(e,t){return(void 0!==t?eh(e,t):Jd(e)||Ud(e)||Yd(e)?th(e):eh(e)).name}},$mobx:Cp});var ph=new Uint8Array(16);function ch(){if(!oh&&!(oh="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oh(ph)}var dh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function hh(e){return"string"==typeof e&&dh.test(e)}for(var fh=[],gh=0;gh<256;++gh)fh.push((gh+256).toString(16).substr(1));function yh(e,t,o){var n=(e=e||{}).random||(e.rng||ch)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){o=o||0;for(var r=0;r<16;++r)t[o+r]=n[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(fh[e[t+0]]+fh[e[t+1]]+fh[e[t+2]]+fh[e[t+3]]+"-"+fh[e[t+4]]+fh[e[t+5]]+"-"+fh[e[t+6]]+fh[e[t+7]]+"-"+fh[e[t+8]]+fh[e[t+9]]+"-"+fh[e[t+10]]+fh[e[t+11]]+fh[e[t+12]]+fh[e[t+13]]+fh[e[t+14]]+fh[e[t+15]]).toLowerCase();if(!hh(o))throw TypeError("Stringified UUID is invalid");return o}(n)}let vh,mh;const Ch=new WeakMap,wh=new WeakMap,Eh=new WeakMap,bh=new WeakMap,Rh=new WeakMap;let Oh={get(e,t,o){if(e instanceof IDBTransaction){if("done"===t)return wh.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Eh.get(e);if("store"===t)return o.objectStoreNames[1]?void 0:o.objectStore(o.objectStoreNames[0])}return Th(e[t])},set:(e,t,o)=>(e[t]=o,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Sh(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(mh||(mh=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Ph(this),t),Th(Ch.get(this))}:function(...t){return Th(e.apply(Ph(this),t))}:function(t,...o){const n=e.call(Ph(this),t,...o);return Eh.set(n,t.sort?t.sort():[t]),Th(n)}}function _h(e){return"function"==typeof e?Sh(e):(e instanceof IDBTransaction&&function(e){if(wh.has(e))return;const t=new Promise(((t,o)=>{const n=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",i),e.removeEventListener("abort",i)},r=()=>{t(),n()},i=()=>{o(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",r),e.addEventListener("error",i),e.addEventListener("abort",i)}));wh.set(e,t)}(e),t=e,(vh||(vh=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,Oh):e);var t}function Th(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,o)=>{const n=()=>{e.removeEventListener("success",r),e.removeEventListener("error",i)},r=()=>{t(Th(e.result)),n()},i=()=>{o(e.error),n()};e.addEventListener("success",r),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&Ch.set(t,e)})).catch((()=>{})),Rh.set(t,e),t}(e);if(bh.has(e))return bh.get(e);const t=_h(e);return t!==e&&(bh.set(e,t),Rh.set(t,e)),t}const Ph=e=>Rh.get(e);function Dh(e,t,{blocked:o,upgrade:n,blocking:r,terminated:i}={}){const s=indexedDB.open(e,t),a=Th(s);return n&&s.addEventListener("upgradeneeded",(e=>{n(Th(s.result),e.oldVersion,e.newVersion,Th(s.transaction))})),o&&s.addEventListener("blocked",(()=>o())),a.then((e=>{i&&e.addEventListener("close",(()=>i())),r&&e.addEventListener("versionchange",(()=>r()))})).catch((()=>{})),a}function Ah(e,{blocked:t}={}){const o=indexedDB.deleteDatabase(e);return t&&o.addEventListener("blocked",(()=>t())),Th(o).then((()=>{}))}const Nh=["get","getKey","getAll","getAllKeys","count"],xh=["put","add","delete","clear"],Ih=new Map;function Fh(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Ih.get(t))return Ih.get(t);const o=t.replace(/FromIndex$/,""),n=t!==o,r=xh.includes(o);if(!(o in(n?IDBIndex:IDBObjectStore).prototype)||!r&&!Nh.includes(o))return;const i=async function(e,...t){const i=this.transaction(e,r?"readwrite":"readonly");let s=i.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[o](...t),r&&i.done]))[0]};return Ih.set(t,i),i}Oh=(e=>((e,n)=>t(e,o(n)))(((e,t)=>{for(var o in t||(t={}))r.call(t,o)&&s(e,o,t[o]);if(n)for(var o of n(t))i.call(t,o)&&s(e,o,t[o]);return e})({},e),{get:(t,o,n)=>Fh(t,o)||e.get(t,o,n),has:(t,o)=>!!Fh(t,o)||e.has(t,o)}))(Oh);for(var Lh={},Mh={byteLength:function(e){var t=Uh(e),o=t[0],n=t[1];return 3*(o+n)/4-n},toByteArray:function(e){var t,o,n=Uh(e),r=n[0],i=n[1],s=new Vh(function(e,t,o){return 3*(t+o)/4-o}(0,r,i)),a=0,l=i>0?r-4:r;for(o=0;o<l;o+=4)t=kh[e.charCodeAt(o)]<<18|kh[e.charCodeAt(o+1)]<<12|kh[e.charCodeAt(o+2)]<<6|kh[e.charCodeAt(o+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===i&&(t=kh[e.charCodeAt(o)]<<2|kh[e.charCodeAt(o+1)]>>4,s[a++]=255&t);1===i&&(t=kh[e.charCodeAt(o)]<<10|kh[e.charCodeAt(o+1)]<<4|kh[e.charCodeAt(o+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},fromByteArray:function(e){for(var t,o=e.length,n=o%3,r=[],i=16383,s=0,a=o-n;s<a;s+=i)r.push(jh(e,s,s+i>a?a:s+i));1===n?(t=e[o-1],r.push(Gh[t>>2]+Gh[t<<4&63]+"==")):2===n&&(t=(e[o-2]<<8)+e[o-1],r.push(Gh[t>>10]+Gh[t>>4&63]+Gh[t<<2&63]+"="));return r.join("")}},Gh=[],kh=[],Vh="undefined"!=typeof Uint8Array?Uint8Array:Array,Wh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hh=0,Bh=Wh.length;Hh<Bh;++Hh)Gh[Hh]=Wh[Hh],kh[Wh.charCodeAt(Hh)]=Hh;function Uh(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");return-1===o&&(o=t),[o,o===t?0:4-o%4]}function jh(e,t,o){for(var n,r,i=[],s=t;s<o;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(Gh[(r=n)>>18&63]+Gh[r>>12&63]+Gh[r>>6&63]+Gh[63&r]);return i.join("")}kh["-".charCodeAt(0)]=62,kh["_".charCodeAt(0)]=63;var zh={
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
read:function(e,t,o,n,r){var i,s,a=8*r-n-1,l=(1<<a)-1,u=l>>1,p=-7,c=o?r-1:0,d=o?-1:1,h=e[t+c];for(c+=d,i=h&(1<<-p)-1,h>>=-p,p+=a;p>0;i=256*i+e[t+c],c+=d,p-=8);for(s=i&(1<<-p)-1,i>>=-p,p+=n;p>0;s=256*s+e[t+c],c+=d,p-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)},write:function(e,t,o,n,r,i){var s,a,l,u=8*i-r-1,p=(1<<u)-1,c=p>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+c>=1?d/l:d*Math.pow(2,1-c))*l>=2&&(s++,l/=2),s+c>=p?(a=0,s=p):s+c>=1?(a=(t*l-1)*Math.pow(2,r),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,r),s=0));r>=8;e[o+h]=255&a,h+=f,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;e[o+h]=255&s,h+=f,s/=256,u-=8);e[o+h-f]|=128*g}};
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/
|
||
!function(e){const t=Mh,o=zh,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const r=2147483647;function i(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,o){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,o)}function a(e,t,o){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const o=0|h(e,t);let n=i(o);const r=n.write(e,t);r!==o&&(n=n.slice(0,r));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return c(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return c(e,t,o);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return c(e,t,o);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,o);const r=function(e){if(s.isBuffer(e)){const t=0|d(e.length),o=i(t);return 0===o.length||e.copy(o,0,0,t),o}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?i(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),i(e<0?0:0|d(e))}function p(e){const t=e.length<0?0:0|d(e.length),o=i(t);for(let n=0;n<t;n+=1)o[n]=255&e[n];return o}function c(e,t,o){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(o||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===o?new Uint8Array(e):void 0===o?new Uint8Array(e,t):new Uint8Array(e,t,o),Object.setPrototypeOf(n,s.prototype),n}function d(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const o=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===o)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return z(e).length;default:if(r)return n?-1:j(e).length;t=(""+t).toLowerCase(),r=!0}}function f(e,t,o){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if((o>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,o);case"utf8":case"utf-8":return O(this,t,o);case"ascii":return _(this,t,o);case"latin1":case"binary":return T(this,t,o);case"base64":return R(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,o);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,o){const n=e[t];e[t]=e[o],e[o]=n}function y(e,t,o,n,r){if(0===e.length)return-1;if("string"==typeof o?(n=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),q(o=+o)&&(o=r?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(r)return-1;o=e.length-1}else if(o<0){if(!r)return-1;o=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,o,n,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):v(e,[t],o,n,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,o,n,r){let i,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,o/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){let n=-1;for(i=o;i<a;i++)if(u(e,i)===u(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===l)return n*s}else-1!==n&&(i-=i-n),n=-1}else for(o+l>a&&(o=a-l),i=o;i>=0;i--){let o=!0;for(let n=0;n<l;n++)if(u(e,i+n)!==u(t,n)){o=!1;break}if(o)return i}return-1}function m(e,t,o,n){o=Number(o)||0;const r=e.length-o;n?(n=Number(n))>r&&(n=r):n=r;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(q(n))return s;e[o+s]=n}return s}function C(e,t,o,n){return Y(j(t,e.length-o),e,o,n)}function w(e,t,o,n){return Y(function(e){const t=[];for(let o=0;o<e.length;++o)t.push(255&e.charCodeAt(o));return t}(t),e,o,n)}function E(e,t,o,n){return Y(z(t),e,o,n)}function b(e,t,o,n){return Y(function(e,t){let o,n,r;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)o=e.charCodeAt(s),n=o>>8,r=o%256,i.push(r),i.push(n);return i}(t,e.length-o),e,o,n)}function R(e,o,n){return 0===o&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(o,n))}function O(e,t,o){o=Math.min(e.length,o);const n=[];let r=t;for(;r<o;){const t=e[r];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(r+s<=o){let o,n,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:o=e[r+1],128==(192&o)&&(l=(31&t)<<6|63&o,l>127&&(i=l));break;case 3:o=e[r+1],n=e[r+2],128==(192&o)&&128==(192&n)&&(l=(15&t)<<12|(63&o)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:o=e[r+1],n=e[r+2],a=e[r+3],128==(192&o)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&o)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),r+=s}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let o="",n=0;for(;n<t;)o+=String.fromCharCode.apply(String,e.slice(n,n+=S));return o}(n)}e.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,o){return a(e,t,o)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,o){return function(e,t,o){return l(e),e<=0?i(e):void 0!==t?"string"==typeof o?i(e).fill(t,o):i(e).fill(t):i(e)}(e,t,o)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let o=e.length,n=t.length;for(let r=0,i=Math.min(o,n);r<i;++r)if(e[r]!==t[r]){o=e[r],n=t[r];break}return o<n?-1:n<o?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let o;if(void 0===t)for(t=0,o=0;o<e.length;++o)t+=e[o].length;const n=s.allocUnsafe(t);let r=0;for(o=0;o<e.length;++o){let t=e[o];if(K(t,Uint8Array))r+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,r)):Uint8Array.prototype.set.call(n,t,r);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,r)}r+=t.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):f.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const o=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,o).replace(/(.{2})/g,"$1 ").trim(),this.length>o&&(t+=" ... "),"<Buffer "+t+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(e,t,o,n,r){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===o&&(o=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||o>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=o)return 0;if(n>=r)return-1;if(t>=o)return 1;if(this===e)return 0;let i=(r>>>=0)-(n>>>=0),a=(o>>>=0)-(t>>>=0);const l=Math.min(i,a),u=this.slice(n,r),p=e.slice(t,o);for(let s=0;s<l;++s)if(u[s]!==p[s]){i=u[s],a=p[s];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,o){return-1!==this.indexOf(e,t,o)},s.prototype.indexOf=function(e,t,o){return y(this,e,t,o,!0)},s.prototype.lastIndexOf=function(e,t,o){return y(this,e,t,o,!1)},s.prototype.write=function(e,t,o,n){if(void 0===t)n="utf8",o=this.length,t=0;else if(void 0===o&&"string"==typeof t)n=t,o=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(o)?(o>>>=0,void 0===n&&(n="utf8")):(n=o,o=void 0)}const r=this.length-t;if((void 0===o||o>r)&&(o=r),e.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return m(this,e,t,o);case"utf8":case"utf-8":return C(this,e,t,o);case"ascii":case"latin1":case"binary":return w(this,e,t,o);case"base64":return E(this,e,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,e,t,o);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function _(e,t,o){let n="";o=Math.min(e.length,o);for(let r=t;r<o;++r)n+=String.fromCharCode(127&e[r]);return n}function T(e,t,o){let n="";o=Math.min(e.length,o);for(let r=t;r<o;++r)n+=String.fromCharCode(e[r]);return n}function P(e,t,o){const n=e.length;(!t||t<0)&&(t=0),(!o||o<0||o>n)&&(o=n);let r="";for(let i=t;i<o;++i)r+=$[e[i]];return r}function D(e,t,o){const n=e.slice(t,o);let r="";for(let i=0;i<n.length-1;i+=2)r+=String.fromCharCode(n[i]+256*n[i+1]);return r}function A(e,t,o){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>o)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,o,n,r,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('"value" argument is out of bounds');if(o+n>e.length)throw new RangeError("Index out of range")}function x(e,t,o,n,r){W(t,n,r,e,o,7);let i=Number(t&BigInt(4294967295));e[o++]=i,i>>=8,e[o++]=i,i>>=8,e[o++]=i,i>>=8,e[o++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[o++]=s,s>>=8,e[o++]=s,s>>=8,e[o++]=s,s>>=8,e[o++]=s,o}function I(e,t,o,n,r){W(t,n,r,e,o,7);let i=Number(t&BigInt(4294967295));e[o+7]=i,i>>=8,e[o+6]=i,i>>=8,e[o+5]=i,i>>=8,e[o+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[o+3]=s,s>>=8,e[o+2]=s,s>>=8,e[o+1]=s,s>>=8,e[o]=s,o+8}function F(e,t,o,n,r,i){if(o+n>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){const o=this.length;(e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,o){e>>>=0,t>>>=0,o||A(e,t,this.length);let n=this[e],r=1,i=0;for(;++i<t&&(r*=256);)n+=this[e+i]*r;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,o){e>>>=0,t>>>=0,o||A(e,t,this.length);let n=this[e+--t],r=1;for(;t>0&&(r*=256);)n+=this[e+--t]*r;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||B(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,r=this[++e]+256*this[++e]+65536*this[++e]+o*2**24;return BigInt(n)+(BigInt(r)<<BigInt(32))})),s.prototype.readBigUInt64BE=Q((function(e){H(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||B(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],r=this[++e]*2**24+65536*this[++e]+256*this[++e]+o;return(BigInt(n)<<BigInt(32))+BigInt(r)})),s.prototype.readIntLE=function(e,t,o){e>>>=0,t>>>=0,o||A(e,t,this.length);let n=this[e],r=1,i=0;for(;++i<t&&(r*=256);)n+=this[e+i]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,o){e>>>=0,t>>>=0,o||A(e,t,this.length);let n=t,r=1,i=this[e+--n];for(;n>0&&(r*=256);)i+=this[e+--n]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);const o=this[e]|this[e+1]<<8;return 32768&o?4294901760|o:o},s.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);const o=this[e+1]|this[e]<<8;return 32768&o?4294901760|o:o},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||B(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(o<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=Q((function(e){H(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||B(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+o)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,o,n){if(e=+e,t>>>=0,o>>>=0,!n){N(this,e,t,o,Math.pow(2,8*o)-1,0)}let r=1,i=0;for(this[t]=255&e;++i<o&&(r*=256);)this[t+i]=e/r&255;return t+o},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,o,n){if(e=+e,t>>>=0,o>>>=0,!n){N(this,e,t,o,Math.pow(2,8*o)-1,0)}let r=o-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+o},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=Q((function(e,t=0){return x(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=Q((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,o,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*o-1);N(this,e,t,o,n-1,-n)}let r=0,i=1,s=0;for(this[t]=255&e;++r<o&&(i*=256);)e<0&&0===s&&0!==this[t+r-1]&&(s=1),this[t+r]=(e/i>>0)-s&255;return t+o},s.prototype.writeIntBE=function(e,t,o,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*o-1);N(this,e,t,o,n-1,-n)}let r=o-1,i=1,s=0;for(this[t+r]=255&e;--r>=0&&(i*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/i>>0)-s&255;return t+o},s.prototype.writeInt8=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=Q((function(e,t=0){return x(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=Q((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,o){return L(this,e,t,!0,o)},s.prototype.writeFloatBE=function(e,t,o){return L(this,e,t,!1,o)},s.prototype.writeDoubleLE=function(e,t,o){return M(this,e,t,!0,o)},s.prototype.writeDoubleBE=function(e,t,o){return M(this,e,t,!1,o)},s.prototype.copy=function(e,t,o,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(o||(o=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<o&&(n=o),n===o)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-o&&(n=e.length-t+o);const r=n-o;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,o,n):Uint8Array.prototype.set.call(e,this.subarray(o,n),t),r},s.prototype.fill=function(e,t,o,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,o=this.length):"string"==typeof o&&(n=o,o=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<o)throw new RangeError("Out of range index");if(o<=t)return this;let r;if(t>>>=0,o=void 0===o?this.length:o>>>0,e||(e=0),"number"==typeof e)for(r=t;r<o;++r)this[r]=e;else{const i=s.isBuffer(e)?e:s.from(e,n),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<o-t;++r)this[r+t]=i[r%a]}return this};const G={};function k(e,t,o){G[e]=class extends o{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",o=e.length;const n="-"===e[0]?1:0;for(;o>=n+4;o-=3)t=`_${e.slice(o-3,o)}${t}`;return`${e.slice(0,o)}${t}`}function W(e,t,o,n,r,i){if(e>o||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=i>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${o}${n}`,new G.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,o){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+o]||B(t,e.length-(o+1))}(n,r,i)}function H(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function B(e,t,o){if(Math.floor(e)!==e)throw H(e,o),new G.ERR_OUT_OF_RANGE(o||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(o||"offset",`>= ${o?1:0} and <= ${t}`,e)}k("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),k("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),k("ERR_OUT_OF_RANGE",(function(e,t,o){let n=`The value of "${e}" is out of range.`,r=o;return Number.isInteger(o)&&Math.abs(o)>2**32?r=V(String(o)):"bigint"==typeof o&&(r=String(o),(o>BigInt(2)**BigInt(32)||o<-(BigInt(2)**BigInt(32)))&&(r=V(r)),r+="n"),n+=` It must be ${t}. Received ${r}`,n}),RangeError);const U=/[^+/0-9A-Za-z-_]/g;function j(e,t){let o;t=t||1/0;const n=e.length;let r=null;const i=[];for(let s=0;s<n;++s){if(o=e.charCodeAt(s),o>55295&&o<57344){if(!r){if(o>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}r=o;continue}if(o<56320){(t-=3)>-1&&i.push(239,191,189),r=o;continue}o=65536+(r-55296<<10|o-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,o<128){if((t-=1)<0)break;i.push(o)}else if(o<2048){if((t-=2)<0)break;i.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;i.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return i}function z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,o,n){let r;for(r=0;r<n&&!(r+o>=t.length||r>=e.length);++r)t[r+o]=e[r];return r}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let o=0;o<16;++o){const n=16*o;for(let r=0;r<16;++r)t[n+r]=e[o]+e[r]}return t}();function Q(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}}(Lh);var Yh={exports:{}};
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(e){!function(){var t={}.hasOwnProperty;function o(){for(var e=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&e.push(s)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var a in r)t.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o}()}(Yh);var Kh=Yh.exports;if(!l.exports.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Yc)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");function qh(){var e=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,i=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return s}(l.exports.useState(0),2)[1];return l.exports.useCallback((function(){e((function(e){return e+1}))}),[])}var $h={};var Qh,Xh=(Qh="observerBatching","function"==typeof Symbol?Symbol.for(Qh):"__$mobx-react "+Qh+"__");function Zh(e){e()}function Jh(e){return ud(e)}var ef,tf=1e4,of=new Set;function nf(){void 0===ef&&(ef=setTimeout(rf,1e4))}function rf(){ef=void 0;var e=Date.now();of.forEach((function(t){var o=t.current;o&&e>=o.cleanAt&&(o.reaction.dispose(),t.current=null,of.delete(t))})),of.size>0&&nf()}var sf=!1,af=[];var lf={};function uf(e){return"observer"+e}function pf(e,t,o){void 0===t&&(t="observed"),void 0===o&&(o=lf);var n,r=function(e){return function(){sf?af.push(e):e()}}((o.useForceUpdate||qh)()),i=ee.useRef(null);if(!i.current){var s=new Hc(uf(t),(function(){a.mounted?r():(s.dispose(),i.current=null)})),a=function(e){return{cleanAt:Date.now()+tf,reaction:e}}(s);i.current=a,n=i,of.add(n),nf()}var l=i.current.reaction;return ee.useDebugValue(l,Jh),ee.useEffect((function(){var e;return e=i,of.delete(e),i.current?i.current.mounted=!0:(i.current={reaction:new Hc(uf(t),(function(){r()})),cleanAt:1/0},r()),function(){i.current.reaction.dispose(),i.current=null}}),[]),function(e){sf=!0,af=[];try{var t=e();sf=!1;var o=af.length>0?af:void 0;return ee.useLayoutEffect((function(){o&&o.forEach((function(e){return e()}))}),[o]),t}finally{sf=!1}}((function(){var t,o;if(l.track((function(){try{t=e()}catch(n){o=n}})),o)throw o;return t}))}var cf=function(){return(cf=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function df(e,t){var o,n,r,i=cf({forwardRef:!1},t),s=e.displayName||e.name,a=function(t,o){return pf((function(){return e(t,o)}),s)};return a.displayName=s,o=i.forwardRef?l.exports.memo(l.exports.forwardRef(a)):l.exports.memo(a),n=e,r=o,Object.keys(n).forEach((function(e){ff[e]||Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})),o.displayName=s,o}var hf,ff={$$typeof:!0,render:!0,compare:!0,type:!0};function gf(e){var t=e.children,o=e.render,n=t||o;return"function"!=typeof n?null:pf(n)}function yf(e,t,o,n,r){var i="children"===t?"render":"children",s="function"==typeof e[t],a="function"==typeof e[i];return s&&a?new Error("MobX Observer: Do not use children and render in the same time in`"+o):s||a?null:new Error("Invalid prop `"+r+"` of type `"+typeof e[t]+"` supplied to `"+o+"`, expected `function`.")}gf.propTypes={children:yf,render:yf},gf.displayName="Observer",(hf=te.exports.unstable_batchedUpdates)||(hf=Zh),id({reactionScheduler:hf}),("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:$h)[Xh]=!0;var vf=0;var mf={};function Cf(e){return mf[e]||(mf[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+vf+")";return vf++,t}(e)),mf[e]}function wf(e,t){if(Ef(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(var r=0;r<o.length;r++)if(!Object.hasOwnProperty.call(t,o[r])||!Ef(e[o[r]],t[o[r]]))return!1;return!0}function Ef(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function bf(e,t,o){Object.hasOwnProperty.call(e,t)?e[t]=o:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:o})}var Rf=Cf("patchMixins"),Of=Cf("patchedDefinition");function Sf(e,t){for(var o=this,n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];t.locks++;try{var s;return null!=e&&(s=e.apply(this,r)),s}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(o,r)}))}}function _f(e,t){return function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];Sf.call.apply(Sf,[this,e,t].concat(n))}}function Tf(e,t,o){var n=function(e,t){var o=e[Rf]=e[Rf]||{},n=o[t]=o[t]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}(e,t);n.methods.indexOf(o)<0&&n.methods.push(o);var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r[Of]){var i=e[t],s=Pf(e,t,r?r.enumerable:void 0,n,i);Object.defineProperty(e,t,s)}}function Pf(e,t,o,n,r){var i,s=_f(r,n);return(i={})[Of]=!0,i.get=function(){return s},i.set=function(r){if(this===e)s=_f(r,n);else{var i=Pf(this,t,o,n,r);Object.defineProperty(this,t,i)}},i.configurable=!0,i.enumerable=o,i}var Df=Cp||"$mobx",Af=Cf("isMobXReactObserver"),Nf=Cf("isUnmounted"),xf=Cf("skipRender"),If=Cf("isForcingUpdate");function Ff(e){var t=e.prototype;if(e[Af]){var o=Lf(t);console.warn("The provided component class ("+o+") \n has already been declared as an observer component.")}else e[Af]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==l.exports.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==Gf)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=Gf;kf(t,"props"),kf(t,"state");var n=t.render;return t.render=function(){return Mf.call(this,n)},Tf(t,"componentWillUnmount",(function(){var e;if(null===(e=this.render[Df])||void 0===e||e.dispose(),this[Nf]=!0,!this.render[Df]){var t=Lf(this);console.warn("The reactive render of an observer class component ("+t+") \n was overriden after MobX attached. This may result in a memory leak if the \n overriden reactive render was not properly disposed.")}})),e}function Lf(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function Mf(e){var t=this;bf(this,xf,!1),bf(this,If,!1);var o=Lf(this),n=e.bind(this),r=!1,i=new Hc(o+".render()",(function(){if(!r&&(r=!0,!0!==t[Nf])){var e=!0;try{bf(t,If,!0),t[xf]||l.exports.Component.prototype.forceUpdate.call(t),e=!1}finally{bf(t,If,!1),e&&i.dispose()}}}));function s(){r=!1;var e=void 0,t=void 0;if(i.track((function(){try{t=function(e,t){var o,n=wc(e);try{o=t()}finally{Ec(n)}return o}(!1,n)}catch(o){e=o}})),e)throw e;return t}return i.reactComponent=this,s[Df]=i,this.render=s,s.call(this)}function Gf(e,t){return this.state!==t||!wf(this.props,e)}function kf(e,t){var o=Cf("reactProp_"+t+"_valueHolder"),n=Cf("reactProp_"+t+"_atomHolder");function r(){return this[n]||bf(this,n,bp("reactive "+t)),this[n]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return dc&&hc&&(e=dc(!0)),r.call(this).reportObserved(),dc&&hc&&hc(e),this[o]},set:function(e){this[If]||wf(this[o],e)?bf(this,o,e):(bf(this,o,e),bf(this,xf,!0),r.call(this).reportChanged(),bf(this,xf,!1))}})}var Vf="function"==typeof Symbol&&Symbol.for,Wf=Vf?Symbol.for("react.forward_ref"):"function"==typeof l.exports.forwardRef&&l.exports.forwardRef((function(e){return null})).$$typeof,Hf=Vf?Symbol.for("react.memo"):"function"==typeof l.exports.memo&&l.exports.memo((function(e){return null})).$$typeof;function Bf(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),Hf&&e.$$typeof===Hf)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(Wf&&e.$$typeof===Wf){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return l.exports.forwardRef((function(){var e=arguments;return l.exports.createElement(gf,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(l.exports.Component,e)?Ff(e):df(e)}if(!l.exports.Component)throw new Error("mobx-react requires React to be available");if(!qp)throw new Error("mobx-react requires mobx to be available");var Uf={exports:{}};!function(e){!function(t,o,n){if(t){for(var r,i={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},s={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},u=1;u<20;++u)i[111+u]="f"+u;for(u=0;u<=9;++u)i[u+96]=u.toString();y.prototype.bind=function(e,t,o){var n=this;return e=e instanceof Array?e:[e],n._bindMultiple.call(n,e,t,o),n},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){var o=this;return o._directMap[e+":"+t]&&o._directMap[e+":"+t]({},e),o},y.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(g(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var o=e.composedPath()[0];o!==e.target&&(t=o)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);r=null},y.init=function(){var e=y(o);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),t.Mousetrap=y,e.exports&&(e.exports=y)}function p(e,t,o){e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o)}function c(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return i[e.which]?i[e.which]:s[e.which]?s[e.which]:String.fromCharCode(e.which).toLowerCase()}function d(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function h(e,t,o){return o||(o=function(){if(!r)for(var e in r={},i)e>95&&e<112||i.hasOwnProperty(e)&&(r[i[e]]=e);return r}()[e]?"keydown":"keypress"),"keypress"==o&&t.length&&(o="keydown"),o}function f(e,t){var o,n,r,i=[];for(o=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r<o.length;++r)n=o[r],l[n]&&(n=l[n]),t&&"keypress"!=t&&a[n]&&(n=a[n],i.push("shift")),d(n)&&i.push(n);return{key:n,modifiers:i,action:t=h(n,i,t)}}function g(e,t){return null!==e&&e!==o&&(e===t||g(e.parentNode,t))}function y(e){var t=this;if(e=e||o,!(t instanceof y))return new y(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},i=!1,s=!1,a=!1;function l(e){e=e||{};var t,o=!1;for(t in r)e[t]?o=!0:r[t]=0;o||(a=!1)}function u(e,o,n,i,s,a){var l,u,p,c,h=[],f=n.type;if(!t._callbacks[e])return[];for("keyup"==f&&d(e)&&(o=[e]),l=0;l<t._callbacks[e].length;++l)if(u=t._callbacks[e][l],(i||!u.seq||r[u.seq]==u.level)&&f==u.action&&("keypress"==f&&!n.metaKey&&!n.ctrlKey||(p=o,c=u.modifiers,p.sort().join(",")===c.sort().join(",")))){var g=!i&&u.combo==s,y=i&&u.seq==i&&u.level==a;(g||y)&&t._callbacks[e].splice(l,1),h.push(u)}return h}function h(e,o,n,r){t.stopCallback(o,o.target||o.srcElement,n,r)||!1===e(o,n)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(o),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(o))}function g(e){"number"!=typeof e.which&&(e.which=e.keyCode);var o=c(e);o&&("keyup"!=e.type||i!==o?t.handleKey(o,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):i=!1)}function v(e,t,o,s){function u(t){return function(){a=t,++r[e],clearTimeout(n),n=setTimeout(l,1e3)}}function p(t){h(o,t,e),"keyup"!==s&&(i=c(t)),setTimeout(l,10)}r[e]=0;for(var d=0;d<t.length;++d){var g=d+1===t.length?p:u(s||f(t[d+1]).action);m(t[d],g,s,e,d)}}function m(e,o,n,r,i){t._directMap[e+":"+n]=o;var s,a=(e=e.replace(/\s+/g," ")).split(" ");a.length>1?v(e,a,o,n):(s=f(e,n),t._callbacks[s.key]=t._callbacks[s.key]||[],u(s.key,s.modifiers,{type:s.action},r,e,i),t._callbacks[s.key][r?"unshift":"push"]({callback:o,modifiers:s.modifiers,action:s.action,seq:r,level:i,combo:e}))}t._handleKey=function(e,t,o){var n,r=u(e,t,o),i={},p=0,c=!1;for(n=0;n<r.length;++n)r[n].seq&&(p=Math.max(p,r[n].level));for(n=0;n<r.length;++n)if(r[n].seq){if(r[n].level!=p)continue;c=!0,i[r[n].seq]=1,h(r[n].callback,o,r[n].combo,r[n].seq)}else c||h(r[n].callback,o,r[n].combo);var f="keypress"==o.type&&s;o.type!=a||d(e)||f||l(i),s=c&&"keydown"==o.type},t._bindMultiple=function(e,t,o){for(var n=0;n<e.length;++n)m(e[n],t,o)},p(e,"keypress",g),p(e,"keydown",g),p(e,"keyup",g)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)}(Uf);var jf=Uf.exports,zf={},Yf={exports:{}};function Kf(){}function qf(){}qf.resetWarningCache=Kf;Yf.exports=function(){function e(e,t,o,n,r,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:qf,resetWarningCache:Kf};return o.PropTypes=o,o}();var $f={};
|
||
/**
|
||
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
' * @license MIT
|
||
*/!function(e){Object.defineProperty(e,"__esModule",{value:!0});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var t=function(){function e(e,t,o,n){void 0===n&&(n=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,o||0)),this.a=Math.min(1,Math.max(0,n||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var o=e.nameToHex[t];if(o)return e.fromHexString(o);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var o=t.match(e.hexRe);if(o)return new e((n=parseInt(o[1],16))/255,(r=parseInt(o[2],16))/255,(i=parseInt(o[3],16))/255,(s=void 0!==o[4]?parseInt(o[4],16):255)/255);if(o=t.match(e.shortHexRe)){var n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16),s=void 0!==o[4]?parseInt(o[4],16):15;return new e((n+=16*n)/255,(r+=16*r)/255,(i+=16*i)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var o=t.match(e.rgbRe);if(o)return new e(+o[1]/255,+o[2]/255,+o[3]/255);if(o=t.match(e.rgbaRe))return new e(+o[1]/255,+o[2]/255,+o[3]/255,+o[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,o,n,r){void 0===r&&(r=1);var i=e.HSBtoRGB(t,o,n);return new e(i[0],i[1],i[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],o=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*o)/o),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,o){var n=Math.min(e,t,o),r=Math.max(e,t,o),i=NaN;if(n!==r){var s=r-n,a=(r-e)/s,l=(r-t)/s,u=(r-o)/s;i=e===r?u-l:t===r?2+a-u:4+l-a,(i/=6)<0&&(i+=1)}return[360*i,0!==r?(r-n)/r:0,r]},e.HSBtoRGB=function(e,t,o){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var n=0,r=0,i=0;if(0===t)n=r=i=o;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=o*(1-t),u=o*(1-t*a),p=o*(1-t*(1-a));switch(s>>0){case 0:n=o,r=p,i=l;break;case 1:n=u,r=o,i=l;break;case 2:n=l,r=o,i=p;break;case 3:n=l,r=u,i=o;break;case 4:n=p,r=l,i=o;break;case 5:n=o,r=l,i=u}}return[n,r,i]},e.prototype.derive=function(t,o,n,r){var i=e.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&n>1&&(s=.05);var a=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*o,1),0);s=Math.max(Math.min(s*n,1),0);var u=Math.max(Math.min(this.a*r,1),0),p=e.HSBtoRGB(a,l,s);return p.push(u),e.fromArray(p)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function o(e,t){void 0===t&&(t=",");for(var o,n,r,i=[],s=function(e){return"\r"===e||"\n"===e},a=!1,l=function(l,u,p){var c=e[p-1],d=e[p],h=e[p+1],f=function(){i[l]||(i[l]=[]),i[l][u]||(i[l][u]="")};if(f(),'"'===d){if(a)return'"'===h?(i[l][u]+='"',p++):a=!1,o=l,n=u,r=p,"continue";if(void 0===c||c===t||s(c))return a=!0,o=l,n=u,r=p,"continue"}if(!a){if(d===t)return u++,f(),o=l,n=u,r=p,"continue";if(s(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&p++,o=l,n=u,r=p,"continue"}i[l][u]+=d,o=l,n=u,r=p},u=0,p=0,c=0;c<e.length;c++)l(u,p,c),u=o,p=n,c=r;return i}var n,r,i,s,l,u,p=Object.freeze({__proto__:null,stringToArray:o});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function c(){return void 0===r&&(r=!!document.documentMode),r}function d(){return void 0===i&&(i=!c()&&!!window.StyleMedia),i}function h(){if(void 0===n){var e=window;n=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||(t=e.safari&&e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return n}function f(){if(void 0===s){var e=window;s=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return s}function g(){if(void 0===l){var e=window;l=void 0!==e.InstallTrigger}return l}var y=Object.freeze({__proto__:null,isBrowserIE:c,isBrowserEdge:d,isBrowserSafari:h,isBrowserChrome:f,isBrowserFirefox:g,isIOSUserAgent:function(){return void 0===u&&(u=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),u},getMaxDivHeight:function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){var n=2*e;if(o.style.height=n+"px",n>t||o.clientHeight!==n)break;e=n}return document.body.removeChild(o),e},getScrollbarWidth:function(){var 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);var o=t.offsetWidth-t.clientWidth;return t.parentNode&&t.parentNode.removeChild(t),o},hasOverflowScrolling:function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),o=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var n=window.getComputedStyle(t);if("touch"===n.overflowScrolling&&(o=!0),!o)for(var r=0,i=e;r<i.length;r++)if("touch"===n[i[r]+"OverflowScrolling"]){o=!0;break}return t.parentNode&&t.parentNode.removeChild(t),o},getBodyWidth:function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},getBodyHeight:function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function v(e){return null==e||""===e?null:e}function m(e,t){return void 0===t&&(t=!1),null!=e&&(t||""!==e)}function C(e){return!m(e)}function w(e){return m(e)&&e.toString?e.toString():null}function E(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.keys(e).map((function(t){return e[t]}))}var b=Object.freeze({__proto__:null,makeNull:v,exists:m,missing:C,missingOrEmpty:function(e){return!e||C(e)||0===e.length},toStringOrNull:w,referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:function(e,t,o){void 0===o&&(o=!1);var n=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),n&&r)return 0;if(n)return-1;if(r)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"==typeof e){if(!o)return i(e,t);try{return e.localeCompare(t)}catch(s){return i(e,t)}}return i(e,t)},find:function e(t,o,n){if(null==t)return null;if(!Array.isArray(t))return e(E(t),o,n);for(var r=t,i=null,s=0;s<r.length;s++){var a=r[s];if("string"==typeof o){if(a[o]===n){i=a;break}}else if(o(a)){i=a;break}}return i},values:E}),R=/[&<>"']/g,O={"&":"&","<":"<",">":">",'"':""","'":"'"};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function S(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function _(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}var T=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function o(e,o){return t(e>>o&63|128)}function n(e){if(0==(4294967168&e))return t(e);var n="";return 0==(4294965248&e)?n=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),n=t(e>>12&15|224),n+=o(e,6)):0==(4292870144&e)&&(n=t(e>>18&7|240),n+=o(e,12),n+=o(e,6)),n+=t(63&e|128)}for(var r=function(e){for(var t,o,n=[],r=0,i=e.length;r<i;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<i?56320==(64512&(o=e.charCodeAt(r++)))?n.push(((1023&t)<<10)+(1023&o)+65536):(n.push(t),r--):n.push(t);return n}(e),i=r.length,s=-1,a="";++s<i;)a+=n(r[s]);return a},camelCaseToHyphen:S,hyphenToCamelCase:_,capitalise:function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()},escape:function(e){return null!=e&&e.replace?e.replace(R,(function(e){return O[e]})):e},camelCaseToHumanText:function(e){return e&&null!=e?e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" "):null}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function P(e,t){if(t&&0!==t.length){if(!(t.indexOf(" ")>=0)){if(e.classList)e.classList.add(t);else if(e.className&&e.className.length>0){var o=e.className.split(" ");o.indexOf(t)<0&&(o.push(t),e.setAttribute("class",o.join(" ")))}else e.setAttribute("class",t);return e}t.split(" ").forEach((function(t){return P(e,t)}))}}function D(e,t){if(e.classList)e.classList.remove(t);else if(e.className&&e.className.length>0){var o=e.className.split(" ").filter((function(e){return e!==t})).join(" ");e.setAttribute("class",o)}}function A(e,t,o){o?P(e,t):D(e,t)}function N(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var o=e.className===t,n=e.className.indexOf(" "+t+" ")>=0,r=0===e.className.indexOf(t+" "),i=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return o||n||r||i}return!1}function x(e,t){A(e,"ag-hidden",!t)}function I(e){var t=window.getComputedStyle(e),o=t.height,n=t.width,r=t.paddingTop,i=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,u=t.marginRight,p=t.marginBottom,c=t.marginLeft,d=t.boxSizing;return{height:parseFloat(o),width:parseFloat(n),paddingTop:parseFloat(r),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(p),marginLeft:parseFloat(c),boxSizing:d}}function F(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function L(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function M(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function G(e,t){for(var o=0;o<t.length;o++){var n=t[o],r=e.children[o];r!==n&&e.insertBefore(n,r)}}function k(e,t){t=W(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function V(e,t){t=W(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function W(e){return"number"==typeof e?e+"px":e}function H(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function B(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function U(e){return H(e)||B(e)}var j=Object.freeze({__proto__:null,addCssClass:P,removeCssClass:D,addOrRemoveCssClass:A,radioCssClass:function(e,t,o){for(var n=e.parentElement.firstChild;n;)t&&A(n,t,n===e),o&&A(n,o,n!==e),n=n.nextSibling},containsClass:N,setDisplayed:x,setVisible:function(e,t){A(e,"ag-invisible",!t)},isElementChildOfClass:function(e,t,o){for(var n=0;e;){if(N(e,t))return!0;if(e=e.parentElement,o&&++n>o)break}return!1},getElementSize:I,getInnerHeight:function(e){var t=I(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height},getInnerWidth:function(e){var t=I(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width},getAbsoluteHeight:function(e){var t=I(e),o=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+o)},getAbsoluteWidth:function(e){var t=I(e),o=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+o)},getScrollLeft:function(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),f()&&(o=e.scrollWidth-e.clientWidth-o)),o},setScrollLeft:function(e,t,o){o&&((h()||f())&&(t=e.scrollWidth-e.clientWidth-t),g()&&(t*=-1)),e.scrollLeft=t},clearElement:F,removeElement:function(e,t){L(e.querySelector(t))},removeFromParent:L,isVisible:function(e){return null!==e.offsetParent},loadTemplate:M,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:function(e){return e&&e.clientHeight?e.clientHeight:0},offsetWidth:function(e){return e&&e.clientWidth?e.clientWidth:0},ensureDomOrder:function(e,t,o){o&&o.nextSibling===t||(o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},setDomChildOrder:G,insertTemplateWithDomOrder:function(e,t,o){var n;return o?(o.insertAdjacentHTML("afterend",t),n=o.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,n=e.firstChild),n},prependDC:function(e,t){m(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:function(e,t){t&&Object.keys(t).forEach((function(o){var n=_(o);n&&(e.style[n]=t[o])}))},isHorizontalScrollShowing:function(e){return e.clientWidth<e.scrollWidth},isVerticalScrollShowing:function(e){return e.clientHeight<e.scrollHeight},setElementWidth:function(e,t){"flex"===t?(e.style.width=null,e.style.minWidth=null,e.style.maxWidth=null,e.style.flex="1 1 auto"):k(e,t)},setFixedWidth:k,setElementHeight:function(e,t){"flex"===t?(e.style.height=null,e.style.minHeight=null,e.style.maxHeight=null,e.style.flex="1 1 auto"):V(e,t)},setFixedHeight:V,formatSize:W,isNode:H,isElement:B,isNodeOrElement:U,copyNodeList:function(e){for(var t=e?e.length:0,o=[],n=0;n<t;n++)o.push(e[n]);return o},iterateNamedNodeMap:function(e,t){if(e)for(var o=0;o<e.length;o++){var n=e[o];t(n.name,n.value)}},setCheckboxState:function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function z(e,t){e&&!C(e)&&(Array.isArray(e)?e.forEach((function(e,o){return t(""+o,e)})):Object.keys(e).forEach((function(o){return t(o,e[o])})))}function Y(e,t){return e[t]}function K(e,t,o){e[t]=o}function q(e,t,o,n){var r=Y(e,o);void 0!==r&&K(t,o,n?n(r):r)}var $=Object.freeze({__proto__:null,iterateObject:z,cloneObject:function(e){for(var t={},o=Object.keys(e),n=0;n<o.length;n++){var r=o[n],i=e[r];t[r]=i}return t},deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},getProperty:Y,setProperty:K,copyPropertiesIfPresent:function(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];o.forEach((function(o){return q(e,t,o)}))},copyPropertyIfPresent:q,getAllKeysInObjects:function(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)},mergeDeep:function e(t,o,n){void 0===n&&(n=!0),m(o)&&z(o,(function(o,r){var i=t[o];i!==r&&("object"!=typeof i||"object"!=typeof r||Array.isArray(i)?(n||void 0!==r)&&(t[o]=r):e(i,r))}))},assign:function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return t.forEach((function(t){m(t)&&z(t,(function(t,o){e[t]=o}))})),e},missingOrEmptyObject:function(e){return C(e)||0===Object.keys(e).length},get:function(e,t,o){if(null==e)return o;for(var n=t.split("."),r=e;n.length>1;)if(null==(r=r[n.shift()]))return o;var i=r[n[0]];return null!=i?i:o},set:function(e,t,o){if(null!=e){for(var n=t.split("."),r=e;n.length>1;)if(null==(r=r[n.shift()]))return;r[n[0]]=o}},deepFreeze:function e(t){return Object.freeze(t),E(t).filter((function(e){return null!=e})).forEach((function(t){"object"!=typeof t&&"function"!=typeof t||e(t)})),t},getValueUsingField:function(e,t,o){if(t&&e){if(!o)return e[t];for(var n=t.split("."),r=e,i=0;i<n.length;i++)if(C(r=r[n[i]]))return null;return r}}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var Q=Object.freeze({__proto__:null,getNameOfClass:function(e){var t=e.toString(),o=/function (.{1,})\(/.exec(t);return o&&o.length>1?o[1]:""},findLineByLeastSquares:function(e){var t=e.length,o=0;if(t<=1)return e;for(var n=0;n<e.length;n++){var r=e[n];Math.floor(r)!==r&&(o=Math.max(o,r.toString().split(".")[1].length))}for(var i=0,s=0,a=0,l=0,u=0,p=0;p<t;p++)i+=p,s+=u=e[p],l+=p*p,a+=p*u;var c=(t*a-i*s)/(t*l-i*i),d=s/t-c*i/t,h=[];for(p=0;p<=t;p++)h.push(parseFloat((p*c+d).toFixed(o)));return h},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return z(e,(function(e,o){var n=S(e);t.push(n+": "+o+";")})),t.join(" ")},message:function(e){var t=document.createElement("div"),o=document.querySelector("#__ag__message");if(t.innerHTML=e,!o){o=M('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(o)}o.insertBefore(t,o.children[0])},bindCellRendererToHtmlElement:function(e,t){e.then((function(e){var o=e.getGui();null!=o&&("object"==typeof o?t.appendChild(o):t.innerHTML=o)}))}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o=0;o<e.length;o++){var n=e[o];if(m(n))return n}return null}function Z(e){if(e&&e.length)return e[e.length-1]}function J(e,t,o){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&re(e,(function(e,n){return o?o(e,t[n]):t[n]===e}))}function ee(e,t){var o=e.indexOf(t);o>=0&&e.splice(o,1)}function te(e,t){ie(t,(function(t){return ee(e,t)}))}function oe(e,t,o){e.splice(o,0,t)}function ne(e,t){return e.indexOf(t)>-1}function re(e,t){if(null==e)return!0;for(var o=0;o<e.length;o++)if(!t(e[o],o))return!1;return!0}function ie(e,t){if(null!=e)for(var o=0;o<e.length;o++)t(e[o],o)}function se(e,t){if(null==e)return null;for(var o=[],n=0;n<e.length;n++)o.push(t(e[n],n));return o}var ae=Object.freeze({__proto__:null,firstExistingValue:X,anyExists:function(e){return e&&null!=X(e)},existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:Z,areEqual:J,compareArrays:function(e,t){return J(e,t)},shallowCompare:function(e,t){return J(e,t)},sortNumerically:function(e){return e.sort((function(e,t){return e-t}))},removeRepeatsFromArray:function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var n=e[o]===t,r=e[o+1]===t;n&&r&&e.splice(o+1,1)}},removeFromArray:ee,removeAllFromArray:te,insertIntoArray:oe,insertArrayIntoArray:function(e,t,o){if(null!=e&&null!=t)for(var n=t.length-1;n>=0;n--){oe(e,t[n],o)}},moveInArray:function(e,t,o){te(e,t),ie(t.slice().reverse(),(function(t){return oe(e,t,o)}))},includes:ne,flatten:function(e){return[].concat.apply([],e)},pushAll:function(e,t){null!=t&&null!=e&&ie(t,(function(t){return e.push(t)}))},toStrings:function(e){return se(e,w)},findIndex:function(e,t){for(var o=0;o<e.length;o++)if(t(e[o],o,e))return o;return-1},every:re,some:function(e,t){if(null==e)return!1;for(var o=0;o<e.length;o++)if(t(e[o],o))return!0;return!1},forEach:ie,map:se,filter:function(e,t){if(null==e)return null;for(var o=[],n=0;n<e.length;n++)t(e[n],n)&&o.push(e[n]);return o},reduce:function(e,t,o){if(null==e||null==o)return null;for(var n=o,r=0;r<e.length;r++)n=t(n,e[r],r);return n},forEachSnapshotFirst:function(e,t){e&&e.slice(0).forEach(t)}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function le(e,t){for(var o=""+e;o.length<t;)o="0"+o;return o}function ue(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}var pe=Object.freeze({__proto__:null,padStart:le,createArrayOfNumbers:function(e,t){for(var o=[],n=e;n<=t;n++)o.push(n);return o},isNumeric:function(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)},getMaxSafeInteger:function(){return Number.MAX_SAFE_INTEGER||9007199254740991},cleanNumber:function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},decToHex:function(e,t){for(var o="",n=0;n<t;n++)o+=String.fromCharCode(255&e),e>>>=8;return o},formatNumberTwoDecimalPlacesAndCommas:function(e){return"number"!=typeof e?"":ue(Math.round(100*e)/100)},formatNumberCommas:ue,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function ce(e,t,o){if(void 0===t&&(t=!0),void 0===o&&(o="-"),!e)return null;var n=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return le(e,2)})).join(o);return t&&(n+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return le(e,2)})).join(":")),n}function de(e){if(!e)return null;var t=e.split(" "),o=t[0],n=t[1];if(!o)return null;var r=o.split("-").map((function(e){return parseInt(e,10)}));if(3!==r.filter((function(e){return!isNaN(e)})).length)return null;var i=r[0],s=r[1],a=r[2],l=new Date(i,s-1,a);if(l.getFullYear()!==i||l.getMonth()!==s-1||l.getDate()!==a)return null;if(!n||"00:00:00"===n)return l;var u=n.split(":").map((function(e){return parseInt(e,10)})),p=u[0],c=u[1],d=u[2];return p>=0&&p<24&&l.setHours(p),c>=0&&c<60&&l.setMinutes(c),d>=0&&d<60&&l.setSeconds(d),l}var he=Object.freeze({__proto__:null,serialiseDate:ce,parseDateTimeFromString:de}),fe="__ag_Grid_Stop_Propagation",ge=["touchstart","touchend","touchmove","touchcancel"],ye=["mouseover","mouseout","mouseenter","mouseleave"],ve={};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var me,Ce=(me={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof ve[e])return ve[e];var t=document.createElement(me[e]||"div"),o=(e="on"+e)in t;return o||(t.setAttribute(e,"return;"),o="function"==typeof t[e]),t=null,ve[e]=o});function we(e){var t=e;return t.target||t.srcElement}function Ee(e){for(var t=[],o=we(e);o;)t.push(o),o=o.parentElement;return t}function be(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:Ee(e)}var Re=Object.freeze({__proto__:null,stopPropagationForAgGrid:function(e){e[fe]=!0},isStopPropagationForAgGrid:function(e){return!0===e[fe]},isEventSupported:Ce,getCellCompForEvent:function(e,t){for(var o=we(t);o;){var n=e.getDomData(o,"cellComp");if(n)return n;o=o.parentElement}return null},addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},getTarget:we,isElementInEventPath:function(e,t){return!(!t||!e)&&be(t).indexOf(e)>=0},createEventPath:Ee,addAgGridEventPath:function(e){e.__agGridEventPath=be(e)},getEventPath:be,addSafePassiveEventListener:function(e,t,o,n){var r=ne(ge,o)?{passive:!0}:void 0;ne(ye,o)?e&&e.addEventListenerOutsideAngular&&e.addEventListenerOutsideAngular(t,o,n,r):t.addEventListener(o,n,r)}}),Oe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Se=/([^\s,]+)/g,_e={};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Te(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function Pe(e,t,o){var n;return void 0===o&&(o=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a=o&&!n;window.clearTimeout(n),n=window.setTimeout((function(){n=null,o||e.apply(s,r)}),t),a&&e.apply(s,r)}}var De=Object.freeze({__proto__:null,doOnce:function(e,t){_e[t]||(e(),_e[t]=!0)},getFunctionParameters:function(e){var t=e.toString().replace(Oe,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(Se)||[]},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},executeInAWhile:function(e){Te(e,400)},executeNextVMTurn:function(e){Te(e,0)},executeAfter:Te,debounce:Pe,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},callIfPresent:function(e){e&&e()}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Ae(e,t,o,n){var r=n?Ie:xe,i=t.map((function(t){return{value:t,relevance:r(e.toLowerCase(),t.toLocaleLowerCase())}}));return i.sort((function(e,t){return t.relevance-e.relevance})),o&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function Ne(e){var t,o,n,r=e.toLowerCase(),i=new Array(r.length-1);for(t=o=0,n=i.length;o<=n;t=o+=1)i[t]=r.slice(t,t+2);return i}function xe(e,t){if(0===e.length&&0===t.length)return 0;var o,n,r=Ne(e),i=Ne(t),s=r.length+i.length,a=0;for(o=0,n=r.length;o<n;o++){var l,u=r[o],p=void 0;for(p=0,l=i.length;p<l;p++){u===i[p]&&a++}}return a>0?2*a/s:0}function Ie(e,t){for(var o=e.replace(/\s/g,""),n=t.replace(/\s/g,""),r=0,i=0,s=0;s<o.length;s++){var a=n.indexOf(o[s]);-1!==a&&(i=a,r+=100*(n.length-i)/n.length,r*=r)}return r}var Fe=Object.freeze({__proto__:null,fuzzyCheckStrings:function(e,t,o){var n={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return n[e]=Ae(e,o)})),n},fuzzySuggestions:Ae,get_bigrams:Ne,string_distances:xe,string_weighted_distances:Ie}),Le={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Me(e,t,o,n){var r=null,i=o&&o.getColDef().icons;if(i&&(r=i[e]),t&&!r){var s=t.getIcons();s&&(r=s[e])}if(!r){var a=document.createElement("span"),l=Le[e];return l||(n?l=e:(console.warn("ag-Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),a}var u=void 0;if("function"==typeof r)u=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");u=r}return"string"==typeof u?M(u):U(u)?u:void console.warn("ag-Grid: iconRenderer should return back a string or a dom object")}var Ge=Object.freeze({__proto__:null,iconNameClassMap:Le,createIcon:function(e,t,o){var n=Me(e,t,o);if(n.className.indexOf("ag-icon")>-1)return n;var r=document.createElement("span");return r.appendChild(n),r},createIconNoSpan:Me}),ke=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_Z=90,e.KEY_Y=89,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e}(),Ve="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function We(e,t){return(e.which||e.keyCode)===t}var He=Object.freeze({__proto__:null,isKeyPressed:We,isCharacterKey:function(e){var t=e.which;return"number"==typeof t&&t?!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&16!==e.which:void 0===t},isEventFromPrintableCharacter:function(e){var t=String.fromCharCode(e.charCode);if(We(e,ke.KEY_NEW_LINE))return!1;if(e.altKey||e.ctrlKey)return!1;if(m(e.key)){var o=1===e.key.length,n=function(e){return(d()||c())&&"Del"===e.key&&46===e.charCode}(e);return o||n}return Ve.indexOf(t)>=0},isUserSuppressingKeyboardEvent:function(e,t,o,n,r){var i=e.getSuppressKeyboardEventFunc(),s=n.getColDef().suppressKeyboardEvent;if(!i&&!s)return!1;var a={event:t,editing:r,column:n,api:e.getApi(),node:o,data:o.data,colDef:n.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!s||!s(a))||!!i&&i(a)}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var Be=Object.freeze({__proto__:null,keys:function(e){var t=[];return e.forEach((function(e,o){return t.push(o)})),t}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var Ue=Object.freeze({__proto__:null,normalizeWheel:function(e){var t=0,o=0,n=0,r=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),n=10*t,r=10*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1==e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:n,pixelY:r}},isLeftClick:function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},areEventsNear:function(e,t,o){if(0===o)return!1;var n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(n,r)<=o}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var je=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(e){for(var o=function(e,o){var n=t[e.id],r=t[o.id],i=void 0!==n,s=void 0!==r;return i&&s?n-r:!i&&!s?e.__objectId-o.__objectId:i?1:-1},n=!1,r=0;r<e.length-1;r++)if(o(e[r],e[r+1])>0){n=!0;break}n&&e.sort(o)}},traverseNodesWithKey:function(e,t){var o=[];!function e(n){n.forEach((function(n){if(n.group||n.hasChildren()){o.push(n.key);var r=o.join("|");t(n,r),e(n.childrenAfterGroup),o.pop()}}))}(e)}});
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var ze,Ye=Object.freeze({__proto__:null,convertToSet:function(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}}),Ke=function(){return(Ke=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},qe=Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke(Ke({},Q),ae),y),p),he),j),Re),De),Fe),b),Ge),He),Be),Ue),pe),$),je),Ye),T),$e=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
ze=e.PromiseStatus||(e.PromiseStatus={}))[ze.IN_PROGRESS=0]="IN_PROGRESS",ze[ze.RESOLVED=1]="RESOLVED";var Qe=function(){function t(t){var o=this;this.status=e.PromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],t((function(e){return o.onDone(e)}),(function(e){return o.onReject(e)}))}return t.all=function(e){return new t((function(t){var o=e.length,n=new Array(o);ie(e,(function(e,r){e.then((function(e){n[r]=e,0===--o&&t(n)}))}))}))},t.resolve=function(e){return new t((function(t){return t(e)}))},t.prototype.then=function(t){this.status===e.PromiseStatus.IN_PROGRESS?this.waiters.push(t):t(this.resolution)},t.prototype.map=function(e){var o=this;return new t((function(t){return o.then((function(o){return t(e(o))}))}))},t.prototype.resolveNow=function(t,o){return this.status==e.PromiseStatus.IN_PROGRESS?t:o(this.resolution)},t.prototype.onDone=function(t){this.status=e.PromiseStatus.RESOLVED,this.resolution=t,ie(this.waiters,(function(e){return e(t)}))},t.prototype.onReject=function(e){console.warn("TBI")},t}(),Xe=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),Ze=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=qe.toStringOrNull(e);for(var o=0;;){var n=void 0;if(e?(n=e,0!==o&&(n+="_"+o)):t?(n=t,0!==o&&(n+="_"+o)):n=""+o,!this.existingKeys[n])return this.existingKeys[n]=!0,n;o++}},e}(),Je=function(){function e(e,t){if(this.beanWrappers={},this.componentsMappedByName={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return qe.values(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},e.prototype.createComponentFromElement=function(e,t,o){var n=e.nodeName,r=o?o[e.getAttribute("ref")]:void 0;return this.createComponent(n,t,e,r)},e.prototype.createComponent=function(e,t,o,n){if(this.componentsMappedByName&&this.componentsMappedByName[e]){this.componentsMappedByName[e];var r=new this.componentsMappedByName[e](n);return this.wireBean(r,t),r}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),qe.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),qe.iterateObject(this.beanWrappers,(function(t,o){var n;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,i,s=e.getBeansForParameters(n,o.bean.name),a=(r=o.bean,i=[null].concat(s),new(r.bind.apply(r,i)));o.beanInstance=a}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o=void 0;return o=e.prototype.constructor?e.prototype.constructor.name:""+e,void console.error("context item "+o+" is not a bean")}var n={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=n},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,n){var r=o.agClassAttributes;r&&r.forEach((function(o){var r=t.lookupBeanInstance(n,o.beanName,o.optional);e[o.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,n){qe.iterateObject(o.autowireMethods,(function(o,r){if("agConstructor"!==o){var i=t.getBeansForParameters(r,n);e[o].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var n=o.constructor;if(n.hasOwnProperty("__agBeanMetaData"))t(n.__agBeanMetaData,this.getBeanName(n));o=Object.getPrototypeOf(o)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var o=this,n=[];return e&&qe.iterateObject(e,(function(e,r){var i=o.lookupBeanInstance(t,r);n[Number(e)]=i})),n},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var n=this.beanWrappers[t];return n?n.beanInstance:(o||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var o=this;e.forEach((function(e){o.forEachMetaDataInHierarchy(e,(function(o){var n=o[t];n&&n.forEach((function(t){return e[t]()}))}))}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function et(e,t,o){var n=lt(e.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(t)}function tt(e,t,o){var n=lt(e.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(t)}function ot(e,t,o){var n=lt(e.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(t)}function nt(e){return function(t){lt(t).beanName=e}}function rt(e){return function(t,o,n){st(t,e,!1,t,o,null)}}function it(e){return function(t,o,n){st(t,e,!0,t,o,null)}}function st(e,t,o,n,r,i){if(null!==t)if("number"!=typeof i){var s=lt(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:o})}else console.error("ag-Grid: Autowired should be on an attribute");else console.error("ag-Grid: Autowired name should not be null")}function at(e){return function(t,o,n){var r,i="function"==typeof t?t:t.constructor;if("number"==typeof n){var s=void 0;o?(r=lt(i),s=o):(r=lt(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][n]=e}}}function lt(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var ut,pt=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ct=function(e,t){return function(o,n){t(o,n,e)}},dt=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}var t;return t=e,e.prototype.setBeans=function(e,t,o){if(void 0===o&&(o=null),this.logger=e.create("EventService"),o){var n=t.useAsyncEvents();this.addGlobalListener(o,n)}},e.prototype.getListeners=function(e,t){var o=t?this.allAsyncListeners:this.allSyncListeners,n=o.get(e);return n||(n=new Set,o.set(e,n)),n},e.prototype.addEventListener=function(e,t,o){var n=this;return void 0===o&&(o=!1),this.getListeners(e,o).add(t),function(){return n.removeEventListener(e,t,o)}},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1),this.getListeners(e,o).delete(t)},e.prototype.addModalPriorityEventListener=function(e,o,n){return void 0===n&&(n=!1),this.addEventListener(e+t.PRIORITY,o,n)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,o){var n=this,r=e.type,i=function(t){return t.forEach((function(t){o?n.dispatchAsync((function(){return t(e)})):t(e)}))};i(this.getListeners(r+t.PRIORITY,o)),i(this.getListeners(r,o)),(o?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(t){o?n.dispatchAsync((function(){return t(r,e)})):t(r,e)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},e.PRIORITY="-P1",pt([ct(0,at("loggerFactory")),ct(1,at("gridOptionsWrapper")),ct(2,at("globalEventListener"))],e.prototype,"setBeans",null),e=t=pt([nt("eventService")],e)}();(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
ut=e.ModuleNames||(e.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",ut.CommunityAllModules="@ag-grid-community/all",ut.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",ut.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",ut.CsvExportModule="@ag-grid-community/csv-export",ut.RowNodeCache="@ag-grid-community/row-node-cache",ut.EnterpriseCoreModule="@ag-grid-enterprise/core",ut.EnterpriseAllModules="@ag-grid-enterprise/all",ut.RowGroupingModule="@ag-grid-enterprise/row-grouping",ut.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",ut.FiltersToolPanelModule="@ag-grid-enterprise/filters-tool-panel",ut.MenuModule="@ag-grid-enterprise/menu",ut.SetFilterModule="@ag-grid-enterprise/set-filter",ut.StatusBarModule="@ag-grid-enterprise/status-bar",ut.SideBarModule="@ag-grid-enterprise/side-bar",ut.RangeSelectionModule="@ag-grid-enterprise/range-selection",ut.MasterDetailModule="@ag-grid-enterprise/master-detail",ut.RichSelectModule="@ag-grid-enterprise/rich-select",ut.GridChartsModule="@ag-grid-enterprise/charts",ut.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",ut.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",ut.ExcelExportModule="@ag-grid-enterprise/excel-export",ut.ClipboardModule="@ag-grid-enterprise/clipboard",ut.DateTimeCellEditorModule="@ag-grid-enterprise/date-time-cell-editor",ut.AngularModule="@ag-grid-community/angular",ut.ReactModule="@ag-grid-community/react",ut.VueModule="@ag-grid-community/vue",ut.PolymerModule="@ag-grid-community/polymer";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var ht=function(){function e(){}return e.register=function(t,o){void 0===o&&(o=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=o:e.moduleBased!==o&&qe.doOnce((function(){console.warn("ag-Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid-packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,o){void 0===o&&(o=!0),t&&t.forEach((function(t){return e.register(t,o)}))},e.assertRegistered=function(e,t){if(this.isRegistered(e))return!0;var o=t+e,n="ag-Grid: unable to use "+t+" as module "+e+" is not present. Please see: https://www.ag-grid.com/javascript-grid-modules/";return qe.doOnce((function(){console.warn(n)}),o),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return qe.values(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),ft=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},gt=function(){function t(e,t,o,n){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new dt,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=o,this.primary=n}return t.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},t.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},t.prototype.setParent=function(e){this.parent=e},t.prototype.getParent=function(){return this.parent},t.prototype.setOriginalParent=function(e){this.originalParent=e},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.initialise=function(){this.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.colDef.flex&&(this.flex=this.colDef.flex),this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var o=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=qe.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=qe.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!o,this.validate()},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(e){if(qe.missing(this.colDef)||qe.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===e;return t||o},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function o(e,t,o){qe.doOnce((function(){o?console.warn(e,o):qe.doOnce((function(){return console.warn(e)}),t)}),t)}if(!ht.isRegistered(e.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(n){qe.exists(t[n])&&(ht.isPackageBased()?o("ag-Grid: "+n+" is only valid in ag-grid-enterprise, your column definition should not have "+n,"ColumnRowGroupingMissing"+n):o("ag-Grid: "+n+" is only valid with ag-Grid Enterprise Module "+e.ModuleNames.RowGroupingModule+" - your column definition should not have "+n,"ColumnRowGroupingMissing"+n))}))}if(ht.isRegistered(e.ModuleNames.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(ht.isPackageBased()?o("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):o("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+e.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),ht.isRegistered(e.ModuleNames.DateTimeCellEditorModule)||"agRichSelect"!==this.colDef.cellEditor&&"agDateTimeCellEditor"!==this.colDef.cellEditor||(ht.isPackageBased()?o("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnDateTimeMissing"):o("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+e.ModuleNames.DateTimeCellEditorModule,"ColumnDateTimeMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(e){qe.exists(t[e])&&o("ag-Grid: "+e+" is not possible when doing tree data, your column definition should not have "+e,"TreeDataCannotRowGroup")}))}qe.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&o("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),qe.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&o("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup","ColumnCheck_sksldjf"),qe.get(this,"colDef.cellRendererParams.keyMap",null)&&o("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_ieiruhgdf"),qe.get(this,"colDef.cellRendererParams.keyMap",null)&&o("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_uitolghj"),t.floatingCellRenderer&&(o("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer","ColumnCheck_soihwewe"),this.colDef.pinnedRowCellRenderer=t.floatingCellRenderer),t.floatingRendererFramework&&(o("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework","ColumnCheck_zdkiouhwer"),this.colDef.pinnedRowCellRendererFramework=t.floatingRendererFramework),t.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams","ColumnCheck_retiuhjs"),this.colDef.pinnedRowCellRendererParams=t.floatingRendererParams),t.floatingValueFormatter&&(o("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter","ColumnCheck_qwroeihjdf"),this.colDef.pinnedRowValueFormatter=t.floatingValueFormatter),t.cellFormatter&&(o("ag-Grid: since v12, cellFormatter is now valueFormatter","ColumnCheck_eoireknml"),qe.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=t.cellFormatter)),t.headerCellTemplate&&o("ag-Grid: since v15, headerCellTemplate is gone, use header component instead.","ColumnCheck_eroihxcm"),t.headerCellRenderer&&o("ag-Grid: since v15, headerCellRenderer is gone, use header component instead.","ColumnCheck_terteuh"),t.volatile&&o("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells.","ColumnCheck_weoihjxcv"),t.suppressSorting&&(o("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.","ColumnCheck_43ljrer",this.colDef),this.colDef.sortable=!1),t.suppressFilter&&(o("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.","ColumnCheck_erlkhfdm",this.colDef),this.colDef.filter=!1),t.suppressResize&&(o("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.","ColumnCheck_weoihjxcv",this.colDef),this.colDef.resizable=!1),t.tooltip&&(o("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.","ColumnCheck_adslknjwef",this.colDef),this.colDef.tooltipValueGetter=t.tooltip),t.suppressToolPanel&&(o("ag-Grid: since v22, colDef.suppressToolPanel is gone, instead use suppressColumnsToolPanel / suppressFiltersToolPanel.","ColumnCheck_weihjlsjkdf",this.colDef),this.colDef.suppressColumnsToolPanel=!0)},t.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},t.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},t.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},t.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},t.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},t.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},t.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!0===this.colDef.resizable},t.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},t.prototype.setMoving=function(e,o){void 0===o&&(o="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MOVING_CHANGED,o))},t.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(e,o){void 0===o&&(o="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_SORT_CHANGED,o)))},t.prototype.setMenuVisible=function(e,o){void 0===o&&(o="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MENU_VISIBLE_CHANGED,o)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return this.sort===ke.SORT_ASC},t.prototype.isSortDescending=function(){return this.sort===ke.SORT_DESC},t.prototype.isSortNone=function(){return qe.missing(this.sort)},t.prototype.isSorting=function(){return qe.exists(this.sort)},t.prototype.getSortedAt=function(){return this.sortedAt},t.prototype.setSortedAt=function(e){this.sortedAt=e},t.prototype.setAggFunc=function(e){this.aggFunc=e},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(e,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LEFT_CHANGED,o)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(e,o,n){void 0===o&&(o="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FILTER_ACTIVE_CHANGED,o)));var r=this.createColumnEvent(t.EVENT_FILTER_CHANGED,o);n&&qe.mergeDeep(r,n),this.eventService.dispatchEvent(r)},t.prototype.setPinned=function(e){!0===e||e===ke.PINNED_LEFT?this.pinned=ke.PINNED_LEFT:e===ke.PINNED_RIGHT?this.pinned=ke.PINNED_RIGHT:this.pinned=null},t.prototype.setFirstRightPinned=function(e,o){void 0===o&&(o="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},t.prototype.setLastLeftPinned=function(e,o){void 0===o&&(o="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return this.pinned===ke.PINNED_LEFT||this.pinned===ke.PINNED_RIGHT},t.prototype.isPinnedLeft=function(){return this.pinned===ke.PINNED_LEFT},t.prototype.isPinnedRight=function(){return this.pinned===ke.PINNED_RIGHT},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(e,o){void 0===o&&(o="api");var n=!0===e;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VISIBLE_CHANGED,o)))},t.prototype.isVisible=function(){return this.visible},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.getColId()},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.getColSpan=function(e){if(qe.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)},t.prototype.getRowSpan=function(e){if(qe.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)},t.prototype.setActualWidth=function(e,o){void 0===o&&(o="api"),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.flex&&"flex"!==o&&(this.flex=0),this.actualWidth=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_WIDTH_CHANGED,o)))},t.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},t.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},t.prototype.setRowGroupActive=function(e,o){void 0===o&&(o="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_ROW_GROUP_CHANGED,o)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(e,o){void 0===o&&(o="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_PIVOT_CHANGED,o)))},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(e,o){void 0===o&&(o="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VALUE_CHANGED,o)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},t.prototype.isLockPosition=function(){return console.warn("ag-Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},t.prototype.isLockVisible=function(){return console.warn("ag-Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},t.prototype.isLockPinned=function(){return console.warn("ag-Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",ft([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ft([rt("columnUtils")],t.prototype,"columnUtils",void 0),ft([rt("columnApi")],t.prototype,"columnApi",void 0),ft([rt("gridApi")],t.prototype,"gridApi",void 0),ft([rt("context")],t.prototype,"context",void 0),ft([tt],t.prototype,"initialise",null),t}(),yt=function(){function e(e,t,o,n){this.displayedChildren=[],this.localEventService=new dt,this.groupId=t,this.instanceId=o,this.originalColumnGroup=e,this.pinned=n}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=qe.last(this.displayedChildren).getLeft();this.setLeft(t)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach((function(n){t===n&&(o=!0),n instanceof e&&n.isChildInThisGroupDeepSearch(t)&&(o=!0)})),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(o){o instanceof gt?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(o){o instanceof gt?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var o=this;if(this.isPadding())for(;o.getParent()&&o.isPadding();)o=o.getParent();o.originalColumnGroup.isExpandable()?this.children.forEach((function(n){switch(n.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:o.originalColumnGroup.isExpanded()&&t.displayedChildren.push(n);break;case e.HEADER_GROUP_SHOW_CLOSED:o.originalColumnGroup.isExpanded()||t.displayedChildren.push(n);break;default:n instanceof e&&n.isPadding()&&!n.displayedChildren.length||t.displayedChildren.push(n)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.HEADER_GROUP_PADDING="padding",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),vt=function(){function e(e,t,o,n){this.localEventService=new dt,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=o,this.level=n}return e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(o){o instanceof gt?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?yt.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(gt.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,n=!1,r=this.findChildren(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();if(l===yt.HEADER_GROUP_SHOW_OPEN)t=!0,n=!0;else if(l===yt.HEADER_GROUP_SHOW_CLOSED)o=!0,n=!0;else{if(t=!0,o=!0,l===yt.HEADER_GROUP_PADDING)n=n||a.children.some((function(e){return void 0!==e.getColumnGroupShow()}))}}}var u=t&&o&&n;if(this.expandable!==u){this.expandable=u;var p={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(p)}}},e.prototype.findChildren=function(){var t=this.children,o=t[0];if(o&&(!o.isPadding||!o.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),mt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Ct=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},wt=function(){function e(){}var t,o;return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,o){var n=new Ze;if(o){var r=o.map((function(e){return e.getId()}));n.addExistingKeys(r)}var i=o?o.slice():null,s=this.recursivelyCreateColumns(e,0,t,i,n,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof vt&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var o=this,n=[];return e.forEach((function(e){var r=o.createAutoGroupTreeItem(t,e);n.push(r)})),n},e.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,n=this.findDepth(e)-1;n>=0;n--){var r=new vt(null,"FAKE_PATH_"+t.getId()+"}_"+n,!0,n);this.context.wireBean(r),r.setChildren([o]),o.setOriginalParent(r),o=r}return o},e.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof vt;)t++,o=o[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,o,n){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof vt){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,n);a.setChildren(l),r.push(a)}else{for(var u=void 0,p=void 0,c=o-1;c>=t;c--){var d=n.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new vt(h,d,!0,t);this.context.wireBean(f),p&&p.setChildren([f]),p=f,u||(u=p)}if(u){if(r.push(u),e.some((function(e){return e instanceof vt}))){p.setChildren([s]);continue}p.setChildren(e);break}r.push(s)}}return r},e.prototype.findMaxDept=function(e,t){for(var o=t,n=0;n<e.length;n++){var r=e[n];if(r instanceof vt){var i=r,s=this.findMaxDept(i.getChildren(),t+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(e,t,o,n,r,i){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(o,e,t,n,r,i):s.createColumn(o,e,n,r,i),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,o,n,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId,null),l=new vt(s,a,!1,o);this.context.wireBean(l);var u=this.recursivelyCreateColumns(s.children,o+1,e,n,r,l);return l.setChildren(u),l},e.prototype.createMergedColGroupDef=function(e){var t={};return qe.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),qe.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,o,n,r){var i=this.mergeColDefs(t);this.checkForDeprecatedItems(i);var s=this.findExistingColumn(t,o);if(s)s.setColDef(i,t);else{var a=n.getUniqueKey(i.colId,i.field);s=new gt(i,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var o=qe.find(t,(function(t){var o=t.getUserProvidedColDef();return!!o&&(o===e||!(null===o.colId||void 0===o.colId)&&o.colId===e.colId)}));return o&&qe.removeFromArray(t,o),o},e.prototype.mergeColDefs=function(e){var t={};return qe.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),qe.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var o;if(e.type instanceof Array){e.type.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e.type}else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");o=e.type.split(",")}var n=qe.assign({},this.gridOptionsWrapper.getColumnTypes(),mt);o.forEach((function(e){var o=n[e.trim()];o?qe.assign(t,o):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},Ct([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ct([rt("columnUtils")],e.prototype,"columnUtils",void 0),Ct([rt("context")],e.prototype,"context",void 0),Ct([(t=0,o=at("loggerFactory"),function(e,n){o(e,n,t)})],e.prototype,"setBeans",null),e=Ct([nt("columnFactory")],e)}(),Et=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e}(),bt=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!=typeof o?0:o+1,this.existingIds[e]=t,t},e}(),Rt=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ot=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0,this.flexActive=!1}var t,o;return e.prototype.init=function(){this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var e=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var n=this.primaryColumns,r=this.columnFactory.createColumnTree(e,!0,n);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,n),this.extractPivotColumns(t,n),this.createValueColumns(t,n),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isImmutableColumns()&&o&&this.resetColumnState(!0,t);var i={type:Et.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(i);var s={type:Et.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s),this.flexActive=this.getDisplayedCenterColumns().some((function(e){return!!e.getFlex()}))},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,o=[];null!=t;)o.push(t),t=this.getDisplayedColAfter(t);return o},e.prototype.checkDisplayedVirtualColumns=function(){if(null!=this.displayedCenterColumns){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");if(this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")){var t={type:Et.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var o={type:Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var o=this.getPrimaryColumn(t),n=null;return this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;J(r,e)&&i===o&&(n=t)})),n},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,o=this.displayedRightColumns?qe.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?qe.last(this.displayedLeftColumns):null,o=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(n){n.setLastLeftPinned(n===t,e),n.setFirstRightPinned(n===o,e)}))},e.prototype.autoSizeColumns=function(e,t,o){var n=this;void 0===o&&(o="api"),this.animationFrameService.flushAllFrames();var r=[],i=-1;for(null==t&&(t=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==i;)i=0,this.actionOnGridColumns(e,(function(e){if(r.indexOf(e)>=0)return!1;var s=n.autoWidthCalculator.getPreferredWidthForColumn(e,t);if(s>0){var a=n.normaliseColumnWidth(e,s);e.setActualWidth(a,o),r.push(e),i++}return!0}),o);if(r.length){var s={type:Et.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"};this.eventService.dispatchEvent(s)}},e.prototype.autoSizeColumn=function(e,t,o){void 0===o&&(o="api"),e&&this.autoSizeColumns([e],t,o)},e.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns(o,e,t)},e.prototype.getColumnsFromTree=function(e){var t=[],o=function(e){for(var n=0;n<e.length;n++){var r=e[n];r instanceof gt?t.push(r):r instanceof vt&&o(r.getChildren())}};return o(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case ke.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case ke.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,o,n){for(var r,i=[],s=null,a=function(a){var l,u=t[a],p=t.length-a,c=Math.min(u.getColSpan(e),p),d=[u];if(c>1){for(var h=c-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(o?(l=!1,d.forEach((function(e){o(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&s)!!n&&n(u)&&i.push(s);i.push(u)}s=u,r=a},l=0;l<t.length;l++)a(l),l=r;return i},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var o=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,o,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),o=e.getLeft()+e.getActualWidth(),n=this.viewportLeft-200,r=this.viewportRight+200;return!(t<n&&o<n)&&!(t>r&&o>r)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,o,n,r,i){var s=this;if(void 0===i&&(i="api"),e&&!qe.missingOrEmpty(e)){var a=!1;if(e.forEach((function(e){var r=s.getPrimaryColumn(e);if(r){if(o){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;qe.removeFromArray(t,r)}n(r),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var l={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,o))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Et.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Et.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Et.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Et.EVENT_COLUMN_PIVOT_CHANGED,(function(e,o){o.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Et.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,o,n,r){var i=this;t.length=0,qe.exists(e)&&e.forEach((function(e){var o=i.getPrimaryColumn(e);o&&t.push(o)})),this.primaryColumns.forEach((function(e){var o=t.indexOf(e)>=0;n(o,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var s={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Et.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.prototype.setValueActive=function(e,t,o){if(e!==t.isValueActive()&&(t.setValueActive(e,o),e&&!t.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(n)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Et.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Et.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},e.prototype.setColumnWidths=function(e,t,o,n){var r=this;void 0===n&&(n="api");var i=[];e.forEach((function(e){var o=r.getPrimaryOrGridColumn(e.key);if(o&&(i.push({width:e.newWidth,ratios:[1],columns:[o]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(t=!t),t)){var n=r.getDisplayedColAfter(o);if(!n)return;var s=o.getActualWidth()-e.newWidth,a=n.getActualWidth()+s;i.push({width:a,ratios:[1],columns:[n]})}})),0!==i.length&&(this.resizeColumnSets(i,o,n),this.flexActive&&this.refreshFlexedColumns())},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,o=e.width,n=0,r=0,i=!0;return t.forEach((function(e){n+=e.getMinWidth(),e.getMaxWidth()>0?r+=e.getMaxWidth():i=!1})),o>=n&&(!i||o<=r)},e.prototype.resizeColumnSets=function(e,t,o){if(!e||e.every(this.checkMinAndMaxWidthsForSet.bind(this))){var n=[],r=[];e.forEach((function(e){var t=e.width,i=e.columns,s=e.ratios,a={},l={};i.forEach((function(e){return r.push(e)}));for(var u=!0,p=0,c=function(){if(++p>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";u=!1;var e=[],o=0,n=t;i.forEach((function(t,r){if(l[t.getId()])n-=a[t.getId()];else{e.push(t);var i=s[r];o+=i}}));var r=1/o;e.forEach((function(o,i){var p;i===e.length-1?p=n:(p=Math.round(s[i]*t*r),n-=p),p<o.getMinWidth()?(p=o.getMinWidth(),l[o.getId()]=!0,u=!0):o.getMaxWidth()>0&&p>o.getMaxWidth()&&(p=o.getMaxWidth(),l[o.getId()]=!0,u=!0),a[o.getId()]=p}))};u;){if("break"===c())break}i.forEach((function(e){var t=a[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,o),n.push(e))}))}));var i=n.length>0;if(i&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),i||t){var s={type:Et.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(s)}}else if(t){var a=e&&e.length>0?e[0].columns:null,l={type:Et.EVENT_COLUMN_RESIZED,columns:a,column:a&&1===a.length?a[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(l)}},e.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){e.setAggFunc(t);var n={type:Et.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(n)}},e.prototype.moveRowGroupColumn=function(e,t,o){void 0===o&&(o="api");var n=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,n);var r={type:Et.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r)},e.prototype.moveColumns=function(e,t,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("ag-Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var n=this.getGridColumns(e);if(!!this.doesMovePassRules(n,t)){qe.moveInArray(this.gridColumns,n,t),this.updateDisplayedColumns(o);var r={type:Et.EVENT_COLUMN_MOVED,columns:n,column:1===n.length?n[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var o=this.gridColumns.slice();return qe.moveInArray(o,e,t),!!this.doesMovePassMarryChildren(o)&&!!this.doesMovePassLockedPositions(o)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,o=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(o=!1):t=!0})),o},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof vt){var n=o;if(n.getColGroupDef()&&n.getColGroupDef().marryChildren){var r=[];n.getLeafColumns().forEach((function(t){var o=e.indexOf(t);r.push(o)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>n.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},e.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var n=this.gridColumns[e];this.moveColumn(n,t,o)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case ke.PINNED_LEFT:return this.leftWidth;case ke.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var n={type:Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case ke.PINNED_LEFT:return this.getDisplayedLeftColumns();case ke.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return qe.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return qe.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},e.prototype.setColumnsVisible=function(e,t,o){var n=this;void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,o),!0)}),o,(function(){return{type:Et.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:o}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},e.prototype.setColumnsPinned=function(e,t,o){var n,r=this;(void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),n=!0===t||t===ke.PINNED_LEFT?ke.PINNED_LEFT:t===ke.PINNED_RIGHT?ke.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==n&&(e.setPinned(n),!0)}),o,(function(){return{type:Et.EVENT_COLUMN_PINNED,pinned:n,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:o}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,o,n){var r=this;if(!qe.missingOrEmpty(e)){var i=[];if(e.forEach((function(e){var o=r.getGridColumn(e);o&&(!1!==t(o)&&i.push(o))})),i.length&&(this.updateDisplayedColumns(o),qe.exists(n)&&n)){var s=n();s.columns=i,s.column=1===i.length?i[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],o=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var n=t.getParent();n.getOriginalColumnGroup().getLevel()!==o;)n=n.getParent();if(n!==e)return n}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&qe.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,n=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:n,width:e.getActualWidth(),pivotIndex:o,pinned:e.getPinned(),rowGroupIndex:t,flex:e.getFlex()}},e.prototype.getColumnState=function(){if(qe.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,o){return t.indexOf(e.colId)-t.indexOf(o.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var o=this.getColumnsFromTree(this.primaryColumnTree),n=[],r=1e3,i=1e3;o&&o.forEach((function(e){var t=e.getColDef().rowGroupIndex,o=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};qe.missing(t)&&o&&(l.rowGroupIndex=r++),qe.missing(s)&&a&&(l.pivotIndex=i++),n.push(l)})),this.setColumnState(n,e,t)},e.prototype.setColumnState=function(e,t,o){var n=this;if(void 0===t&&(t=!1),void 0===o&&(o="api"),qe.missingOrEmpty(this.primaryColumns))return!1;var r=this.getColumnState();this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},u=[];if(e&&(e.forEach((function(e){if(qe.exists(n.getAutoColumn(e.colId)))u.push(e);else{var t=n.getPrimaryColumn(e.colId);t?(n.syncColumnWithStateItem(t,e,a,l,o),qe.removeFromArray(i,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),this.flexActive&&this.refreshFlexedColumns(void 0,void 0,!0)),i.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),u.forEach((function(e){var t=n.getAutoColumn(e.colId);n.syncColumnWithStateItem(t,e,a,l,o)})),e){var p=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return p.indexOf(e.getId())-p.indexOf(t.getId())}))}if(this.putFixedColumnsFirst(),this.updateDisplayedColumns(o),!t){var c={type:Et.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(c)}return this.raiseColumnEvents(r,o),s},e.prototype.raiseColumnEvents=function(e,t){var o=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var n=this.getColumnState(),r=function(r,i,s){if(!J(e.map(i).sort(),n.map(i).sort())){var a={type:r,columns:s,column:1===s.length?s[0]:null,api:o.gridApi,columnApi:o.columnApi,source:t};o.eventService.dispatchEvent(a)}},i=function(t){var n=[],r={};return e.forEach((function(e){r[e.colId]=e})),o.gridColumns.forEach((function(e){var o=r[e.getColId()];o&&!t(o,e)||n.push(e)})),n};r(Et.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns);r(Et.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns);r(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns);this.raiseColumnPinnedEvent(i((function(e,t){return e.pinned!==t.getPinned()})),t);var s=i((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t);this.raiseColumnResizeEvent(i((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var o={type:Et.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var o={type:Et.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnResizeEvent=function(e,t){if(e.length){var o={type:Et.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnMovedEvent=function(e,t){for(var o=[],n=this.getColumnState(),r=function(t){var r=e[t],s=n[t];if(!r||s.hide)return"continue";if(r.colId!==s.colId){var a=qe.find(i.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));o.push(a)}},i=this,s=0;s<n.length;s++)r(s);if(o.length){var a={type:Et.EVENT_COLUMN_MOVED,columns:o,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(a)}},e.prototype.sortColumnListUsingIndexes=function(e,t,o){return e[t.getId()]-e[o.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,o,n,r){if(e){e.setVisible(!t.hide,r),e.setPinned(t.pinned);var i=this.gridOptionsWrapper.getMinColWidth();null!=t.flex&&(e.setFlex(t.flex),!this.flexActive&&t.flex&&(this.flexActive=!0)),t.width&&i&&t.width>=i&&e.setActualWidth(t.width,r),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,r),this.valueColumns.push(e)):(qe.exists(t.aggFunc)&&console.warn("ag-Grid: 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."),e.setAggFunc(null),e.setValueActive(!1,r)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,r),o[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,r),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,r),n[e.getId()]=t.pivotIndex):e.setPivotActive(!1,r)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach((function(e){var n=t(e);n&&o.push(n)})),o},e.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("ag-Grid: could not find column "+e),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&qe.exists(this.groupAutoColumns)&&!qe.missing(this.groupAutoColumns)?qe.find(this.groupAutoColumns,(function(o){return t.columnsMatch(o,e)})):null},e.prototype.columnsMatch=function(e,t){var o=e===t,n=e.getColDef()===t,r=e.getColId()==t;return o||n||r},e.prototype.getDisplayNameForColumn=function(e,t,o){if(void 0===o&&(o=!1),!e)return null;var n=this.getHeaderName(e.getColDef(),e,null,null,t);return o?this.wrapHeaderNameWithAggFunc(e,n):n},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,o){var n=t?t.getColGroupDef():null;return n?this.getHeaderName(n,null,e,t,o):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,o,n,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:o,originalColumnGroup:n,location:r,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof i?i(s):"string"==typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?qe.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,n=e.getColDef().pivotValueColumn,r=null;if(qe.exists(n))r=n?n.getAggFunc():null,o=!0;else{var i=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();i&&s?(r=e.getAggFunc(),o=!0):o=!1}if(o){var a="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof yt)return e;var o=this.getAllDisplayedColumnGroups(),n="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof yt){var i=o;(n?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,o){return t.setValueActive(o,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,o){return t.setRowGroupActive(o,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},e.prototype.extractColumns=function(e,t,o,n,r){var i=this;t||(t=[]);var s=t.filter((function(e){return i.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return i.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));s.forEach((function(e){return o(e,!1)}));var u=[];return l.forEach((function(e){"number"==typeof n(e.getColDef())&&u.push(e)})),u.sort((function(e,t){var o=n(e.getColDef()),r=n(t.getColDef());return o===r?0:o<r?-1:1})),l.forEach((function(e){if(r(e.getColDef())){if(u.indexOf(e)>=0)return;u.push(e)}})),u.forEach((function(e){return o(e,!0)})),a.concat(u)},e.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,o){return t.setPivotActive(o,e)}),(function(e){return e.pivotIndex}),(function(e){return e.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof vt){var o={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(o)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof vt){var o=t;e.push({groupId:o.getGroupId(),open:o.isExpanded()})}})),e},e.prototype.setColumnGroupState=function(e,t){var o=this;void 0===t&&(t="api"),this.columnAnimationService.start();var n=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=o.getOriginalColumnGroup(t);i&&i.isExpanded()!==r&&(o.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),n.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),n.forEach((function(e){var t={type:Et.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,o){var n;void 0===o&&(o="api"),n=e instanceof vt?e.getId():e,this.setColumnGroupState([{groupId:n,open:t}],o)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof vt)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof vt){var n=o;n.getId()===e&&(t=n)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(t){var o=e.groupAutoColumns&&qe.includes(e.groupAutoColumns,t),n=e.valueColumns&&qe.includes(e.valueColumns,t);return o||n})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&qe.includes(e.groupAutoColumns,t)||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){qe.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var o=t.getColDef();o&&qe.exists(o.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var o=e&&e.length>0;if(o||this.secondaryColumnsPresent){if(o){this.processSecondaryColumnDefinitions(e);var n=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),o=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||o){var n=function(e){e.forEach((function(e){if(qe.exists(e.children)){var r=e;o&&o(r),n(r.children)}else{t&&t(e)}}))};e&&n(e)}},e.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:Et.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!qe.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(o){e.lastPrimaryOrder.indexOf(o)>=0&&(t=!1)})),!t){var o=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),n=this.gridColumns.filter((function(e){return o.indexOf(e)<0})),r=o.slice();n.forEach((function(e){var t=e.getOriginalParent();if(t){for(var o=[];!o.length&&t;){t.getLeafColumns().forEach((function(e){var t=r.indexOf(e)>=0,n=o.indexOf(e)<0;t&&n&&o.push(e)})),t=t.getOriginalParent()}if(o.length){var n=o.map((function(e){return r.indexOf(e)})),i=Math.max.apply(Math,n);qe.insertIntoArray(r,e,i+1)}else r.push(e)}else r.push(e)})),this.gridColumns=r}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var e=this.gridColumns.filter((function(e){return e.getColDef().lockPosition})),t=this.gridColumns.filter((function(e){return!e.getColDef().lockPosition}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!qe.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.refreshFlexedColumns(void 0,void 0,!0),this.updateBodyWidths();var t={type:Et.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,o=this.primaryColumns.slice(0),n=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(r){if(n){var i=t.getWidthOfColsInList(r);r.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var s=0;r.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}qe.removeAllFromArray(o,r)})),o.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof yt&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof gt&&t.push(e)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var o;switch(e){case ke.PINNED_LEFT:o=this.displayedLeftHeaderRows[t];break;case ke.PINNED_RIGHT:o=this.displayedRightHeaderRows[t];break;default:o=this.displayedCentreHeaderRows[t]}return qe.missing(o)&&(o=[]),o},e.prototype.updateDisplayedVirtualGroups=function(e){this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={};var t=function(o,n,r){for(var i=!1,s=0;s<o.length;s++){var a=o[s],l=void 0;if(a instanceof gt)l=!0===e[a.getId()];else l=t(a.getDisplayedChildren(),n,r+1);l&&(i=!0,n[r]||(n[r]=[]),n[r].push(a))}return i};t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return this.displayedCenterColumns.filter(this.isColumnInViewport.bind(this))},e.prototype.refreshFlexedColumns=function(e,t,o){if(void 0===t&&(t="flex"),this.flexActive&&(this.flexViewportWidth=e||this.flexViewportWidth,this.flexViewportWidth)){var n=this.displayedCenterColumns.filter((function(e){return!e.getFlex()})),r=this.displayedCenterColumns.filter((function(e){return e.getFlex()}));if(r.length){var i,s=[];e:for(;;){var a=r.reduce((function(e,t){return e+t.getFlex()}),0);i=this.flexViewportWidth-this.getWidthOfColsInList(n);for(var l=0;l<r.length;l++){var u=r[l],p=i*u.getFlex()/a,c=void 0;if(p<u.getMinWidth()?c=u.getMinWidth():null!=u.getMaxWidth()&&p>u.getMaxWidth()&&(c=u.getMaxWidth()),c){u.setActualWidth(c,t),qe.removeFromArray(r,u),n.push(u);continue e}s[l]=Math.round(p)}break}var d=i;r.forEach((function(e,o){e.setActualWidth(Math.min(s[o],d),t),d-=s[o]})),this.setLeftValues(t),o||(this.updateBodyWidths(),this.fireResizedEventForColumns(r,t))}else this.flexActive=!1}},e.prototype.sizeColumnsToFit=function(e,t,o){void 0===t&&(t="sizeColumnsToFit");var n=this.getAllDisplayedColumns();if(!(e<=0)&&n.length){var r=[],i=[];n.forEach((function(e){!0===e.getColDef().suppressSizeToFit?i.push(e):r.push(e)}));for(var s=r.slice(0),a=!1,l=function(e){qe.removeFromArray(r,e),i.push(e)};!a;){a=!0;var u=e-this.getWidthOfColsInList(i);if(u<=0)r.forEach((function(e){e.setMinimum(t)}));else for(var p=u/this.getWidthOfColsInList(r),c=u,d=r.length-1;d>=0;d--){var h=r[d],f=Math.round(h.getActualWidth()*p);if(f<h.getMinWidth())h.setMinimum(t),l(h),a=!1;else if(h.isGreaterThanMax(f))h.setActualWidth(h.getMaxWidth(),t),l(h),a=!1;else{0===d?h.setActualWidth(c,t):h.setActualWidth(f,t)}c-=f}}this.setLeftValues(t),this.updateBodyWidths(),o||this.fireResizedEventForColumns(s,t)}},e.prototype.fireResizedEventForColumns=function(e,t){var o=this;e.forEach((function(e){var n={type:Et.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:o.gridApi,columnApi:o.columnApi,source:t};o.eventService.dispatchEvent(n)}))},e.prototype.buildDisplayedTrees=function(e){var t=[],o=[],n=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":o.push(e);break;default:n.push(e)}}));var r=new bt;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,ke.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,ke.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof yt&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn(),o=this.gridOptionsWrapper.isGroupSuppressRow();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e&&!o){var n=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(n,this.groupAutoColumns)&&(this.groupAutoColumns=n)}else this.groupAutoColumns=null}},e.prototype.autoColsEqual=function(e,t){return J(e,t,(function(e,t){return e.getColId()===t.getColId()}))},e.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},e.prototype.hasFloatingFilters=function(){var e=this.gridOptionsWrapper.getDefaultColDef();return null!=e&&!0===e.floatingFilter||null!=this.columnDefs&&this.columnDefs.some((function(e){return!0===e.floatingFilter}))},Rt([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Rt([rt("expressionService")],e.prototype,"expressionService",void 0),Rt([rt("columnFactory")],e.prototype,"columnFactory",void 0),Rt([rt("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),Rt([rt("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),Rt([rt("eventService")],e.prototype,"eventService",void 0),Rt([rt("columnUtils")],e.prototype,"columnUtils",void 0),Rt([rt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Rt([rt("autoGroupColService")],e.prototype,"autoGroupColService",void 0),Rt([it("aggFuncService")],e.prototype,"aggFuncService",void 0),Rt([it("valueCache")],e.prototype,"valueCache",void 0),Rt([it("animationFrameService")],e.prototype,"animationFrameService",void 0),Rt([rt("columnApi")],e.prototype,"columnApi",void 0),Rt([rt("gridApi")],e.prototype,"gridApi",void 0),Rt([tt],e.prototype,"init",null),Rt([(t=0,o=at("loggerFactory"),function(e,n){o(e,n,t)})],e.prototype,"setBeans",null),e=Rt([nt("columnController")],e)}(),St=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},_t=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){var t=this.gridOptionsWrapper,o=null!=e.minWidth?e.minWidth:t.getMinColWidth(),n=null!=e.maxWidth?e.maxWidth:t.getMaxColWidth()||qe.getMaxSafeInteger(),r=null!=e.width?e.width:t.getColWidth();return Math.max(Math.min(r,n),o)},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],n=!1,r=function(t,i){for(var s=0;s<t.length;s++){if(n)return;var a=t[s];if(a instanceof vt)r(a.getChildren(),i+1),o[i]=a;else a===e&&(n=!0)}};return r(t,0),n?o:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var n=this;t&&t.forEach((function(t){t instanceof vt&&n.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof yt&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof yt&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},St([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=St([nt("columnUtils")],e)}(),Tt=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Pt=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,o,n,r){var i,s,a=this,l=[],u=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),p=[],c=!s,d=0;d<r.length;d++)if(c||r[d]!==s[d]){var h=a.createColumnGroup(r[d],o,u,n);p[d]=h,0==d?l.push(h):p[d-1].addChild(h)}else p[d]=i[d];0===p.length?l.push(e):qe.last(p).addChild(e);i=p,s=r})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,o,n){var r=e.getGroupId(),i=t.getInstanceIdForKey(r),s=o[yt.createUniqueId(r,i)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),qe.exists(s)?s.reset():(s=new yt(e,r,i,n),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach((function(e){if(e instanceof yt){var n=e;t[e.getUniqueId()]=n,o(n.getChildren())}}))};return e&&o(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach((function(e){if(e.setParent(t),e instanceof yt){var n=e;o.setupParentsIntoColumns(n.getChildren(),n)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],n=!1,r=function(e,i){for(var s=0;s<e.length;s++){if(n)return;var a=e[s];if(a instanceof vt)r(a.getChildren(),i+1),o[i]=a;else a===t&&(n=!0)}};return r(e,0),n?o:(console.warn("could not get path"),null)},Tt([rt("columnUtils")],e.prototype,"columnUtils",void 0),Tt([rt("context")],e.prototype,"context",void 0),e=Tt([nt("displayedGroupCreator")],e)}(),Dt=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","enableMultiRowDragging","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","processChartOptions","getChartToolbarItems","fillOperation"],e.ALL_PROPERTIES=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n}(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),At=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned","chartDataType"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","flex","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","sortable","resizable","singleClickEdit","floatingFilter"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n}(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Nt=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];return t.forEach((function(t){var n=e.DEFAULT_BY_KEY[t];n?o.push(n):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var o=[];return t.forEach((function(t){var n=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));n=r}else n=t;o.push(n)})),o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),xt=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},It=function(e,t){return function(o,n){t(o,n,e)}},Ft=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Lt(e){return!0===e||"true"===e}var Mt=function(){function t(){this.propertyEventService=new dt,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var o;return o=t,t.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.removeEventListener(o.PROP_DOM_LAYOUT,this.updateLayoutClassesListener)},t.prototype.init=function(){var t=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var r=function(e){return"ag-Grid: '"+e+"' is not supported on the Server-Side Row Model"};qe.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupDefaultExpanded")),qe.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeFooter")),qe.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&ht.assertRegistered(e.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("ag-Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(e){t.gridOptions.icons&&t.gridOptions.icons[e]&&console.warn("gridOptions.icons."+e+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.updateLayoutClassesListener=this.updateLayoutClasses.bind(this),this.addEventListener(o.PROP_DOM_LAYOUT,this.updateLayoutClassesListener)},t.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var o=Object.getOwnPropertyNames(t),n=Ft(At.ALL_PROPERTIES,At.FRAMEWORK_PROPERTIES);e.checkProperties(o,n,n,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},t.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=Ft(Dt.ALL_PROPERTIES,Dt.FRAMEWORK_PROPERTIES,qe.values(Et).map((function(e){return kt.getCallbackForEvent(e)}))),o=Ft(t,["api","columnApi"]);this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},t.prototype.checkProperties=function(e,t,o,n,r){var i=qe.fuzzyCheckStrings(e,t,o);qe.iterateObject(i,(function(e,t){console.warn("ag-grid: invalid "+n+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+n+" properties please check: "+r)},t.prototype.getDomData=function(e,t){var o=e[this.domDataKey];return o?o[t]:void 0},t.prototype.setDomData=function(e,t,o){var n=e[this.domDataKey];qe.missing(n)&&(n={},e[this.domDataKey]=n),n[t]=o},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.isRowDeselection=function(){return Lt(this.gridOptions.rowDeselection)},t.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},t.prototype.isRowMultiSelectWithClick=function(){return Lt(this.gridOptions.rowMultiSelectWithClick)},t.prototype.getContext=function(){return this.gridOptions.context},t.prototype.isPivotMode=function(){return Lt(this.gridOptions.pivotMode)},t.prototype.isPivotTotals=function(){return Lt(this.gridOptions.pivotTotals)},t.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},t.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},t.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_INFINITE},t.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_VIEWPORT},t.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.isRowModelDefault=function(){return qe.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===ke.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===ke.DEPRECATED_ROW_MODEL_TYPE_NORMAL},t.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},t.prototype.isSuppressFocusAfterRefresh=function(){return Lt(this.gridOptions.suppressFocusAfterRefresh)},t.prototype.isSuppressBrowserResizeObserver=function(){return Lt(this.gridOptions.suppressBrowserResizeObserver)},t.prototype.isSuppressMaintainUnsortedOrder=function(){return Lt(this.gridOptions.suppressMaintainUnsortedOrder)},t.prototype.isSuppressClearOnFillReduction=function(){return Lt(this.gridOptions.suppressClearOnFillReduction)},t.prototype.isShowToolPanel=function(){return Lt(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.isSuppressTouch=function(){return Lt(this.gridOptions.suppressTouch)},t.prototype.isSuppressRowTransform=function(){return Lt(this.gridOptions.suppressRowTransform)},t.prototype.isSuppressSetColumnStateEvents=function(){return Lt(this.gridOptions.suppressSetColumnStateEvents)},t.prototype.isAllowDragFromColumnsToolPanel=function(){return Lt(this.gridOptions.allowDragFromColumnsToolPanel)},t.prototype.useAsyncEvents=function(){return!Lt(this.gridOptions.suppressAsyncEvents)},t.prototype.isEnableCellChangeFlash=function(){return Lt(this.gridOptions.enableCellChangeFlash)},t.prototype.isGroupSelectsChildren=function(){var e=Lt(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},t.prototype.isSuppressRowHoverHighlight=function(){return Lt(this.gridOptions.suppressRowHoverHighlight)},t.prototype.isGroupSelectsFiltered=function(){return Lt(this.gridOptions.groupSelectsFiltered)},t.prototype.isGroupHideOpenParents=function(){return Lt(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupMultiAutoColumn=function(){return Lt(this.gridOptions.groupMultiAutoColumn)||Lt(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupRemoveSingleChildren=function(){return Lt(this.gridOptions.groupRemoveSingleChildren)},t.prototype.isGroupRemoveLowestSingleChildren=function(){return Lt(this.gridOptions.groupRemoveLowestSingleChildren)},t.prototype.isGroupIncludeFooter=function(){return Lt(this.gridOptions.groupIncludeFooter)},t.prototype.isGroupIncludeTotalFooter=function(){return Lt(this.gridOptions.groupIncludeTotalFooter)},t.prototype.isGroupSuppressBlankHeader=function(){return Lt(this.gridOptions.groupSuppressBlankHeader)},t.prototype.isSuppressRowClickSelection=function(){return Lt(this.gridOptions.suppressRowClickSelection)},t.prototype.isSuppressCellSelection=function(){return Lt(this.gridOptions.suppressCellSelection)},t.prototype.isSuppressMultiSort=function(){return Lt(this.gridOptions.suppressMultiSort)},t.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},t.prototype.isGroupSuppressAutoColumn=function(){return Lt(this.gridOptions.groupSuppressAutoColumn)},t.prototype.isPivotSuppressAutoColumn=function(){return Lt(this.gridOptions.pivotSuppressAutoColumn)},t.prototype.isSuppressDragLeaveHidesColumns=function(){return Lt(this.gridOptions.suppressDragLeaveHidesColumns)},t.prototype.isSuppressScrollOnNewData=function(){return Lt(this.gridOptions.suppressScrollOnNewData)},t.prototype.isRowDragManaged=function(){return Lt(this.gridOptions.rowDragManaged)},t.prototype.isSuppressRowDrag=function(){return Lt(this.gridOptions.suppressRowDrag)},t.prototype.isSuppressMoveWhenRowDragging=function(){return Lt(this.gridOptions.suppressMoveWhenRowDragging)},t.prototype.isEnableMultiRowDragging=function(){return Lt(this.gridOptions.enableMultiRowDragging)},t.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||ke.DOM_LAYOUT_NORMAL;return-1===[ke.DOM_LAYOUT_PRINT,ke.DOM_LAYOUT_AUTO_HEIGHT,ke.DOM_LAYOUT_NORMAL].indexOf(e)?(qe.doOnce((function(){return console.warn("ag-Grid: "+e+" is not valid for DOM Layout, valid values are "+ke.DOM_LAYOUT_NORMAL+", "+ke.DOM_LAYOUT_AUTO_HEIGHT+" and "+ke.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),ke.DOM_LAYOUT_NORMAL):e},t.prototype.isSuppressHorizontalScroll=function(){return Lt(this.gridOptions.suppressHorizontalScroll)},t.prototype.isSuppressMaxRenderedRowRestriction=function(){return Lt(this.gridOptions.suppressMaxRenderedRowRestriction)},t.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Lt(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},t.prototype.isAlwaysShowVerticalScroll=function(){return Lt(this.gridOptions.alwaysShowVerticalScroll)},t.prototype.isSuppressLoadingOverlay=function(){return Lt(this.gridOptions.suppressLoadingOverlay)},t.prototype.isSuppressNoRowsOverlay=function(){return Lt(this.gridOptions.suppressNoRowsOverlay)},t.prototype.isSuppressFieldDotNotation=function(){return Lt(this.gridOptions.suppressFieldDotNotation)},t.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},t.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},t.prototype.isFunctionsPassive=function(){return Lt(this.gridOptions.functionsPassive)},t.prototype.isSuppressTabbing=function(){return Lt(this.gridOptions.suppressTabbing)},t.prototype.isSuppressChangeDetection=function(){return Lt(this.gridOptions.suppressChangeDetection)},t.prototype.isSuppressAnimationFrame=function(){return Lt(this.gridOptions.suppressAnimationFrame)},t.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},t.prototype.isCacheQuickFilter=function(){return Lt(this.gridOptions.cacheQuickFilter)},t.prototype.isUnSortIcon=function(){return Lt(this.gridOptions.unSortIcon)},t.prototype.isSuppressMenuHide=function(){return Lt(this.gridOptions.suppressMenuHide)},t.prototype.isEnterMovesDownAfterEdit=function(){return Lt(this.gridOptions.enterMovesDownAfterEdit)},t.prototype.isEnterMovesDown=function(){return Lt(this.gridOptions.enterMovesDown)},t.prototype.isUndoRedoCellEditing=function(){return Lt(this.gridOptions.undoRedoCellEditing)},t.prototype.getUndoRedoCellEditingLimit=function(){return this.gridOptions.undoRedoCellEditingLimit},t.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},t.prototype.getRowClass=function(){return this.gridOptions.rowClass},t.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},t.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},t.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},t.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},t.prototype.getPopupParent=function(){return this.gridOptions.popupParent},t.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},t.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},t.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},t.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},t.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},t.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},t.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},t.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},t.prototype.isEmbedFullWidthRows=function(){return Lt(this.gridOptions.embedFullWidthRows)||Lt(this.gridOptions.deprecatedEmbedFullWidthRows)},t.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},t.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},t.prototype.getApi=function(){return this.gridOptions.api},t.prototype.getColumnApi=function(){return this.gridOptions.columnApi},t.prototype.isImmutableData=function(){return Lt(this.gridOptions.immutableData)},t.prototype.isImmutableColumns=function(){return Lt(this.gridOptions.immutableColumns)},t.prototype.isEnsureDomOrder=function(){return Lt(this.gridOptions.ensureDomOrder)},t.prototype.isEnableCharts=function(){return!!Lt(this.gridOptions.enableCharts)&&ht.assertRegistered(e.ModuleNames.GridChartsModule,"enableCharts")},t.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},t.prototype.isSingleClickEdit=function(){return Lt(this.gridOptions.singleClickEdit)},t.prototype.isSuppressClickEdit=function(){return Lt(this.gridOptions.suppressClickEdit)},t.prototype.isStopEditingWhenGridLosesFocus=function(){return Lt(this.gridOptions.stopEditingWhenGridLosesFocus)},t.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},t.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},t.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},t.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},t.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},t.prototype.isPaginateChildRows=function(){return!!(this.isGroupSuppressRow()||this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren())||Lt(this.gridOptions.paginateChildRows)},t.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},t.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},t.prototype.isPurgeClosedRowNodes=function(){return Lt(this.gridOptions.purgeClosedRowNodes)},t.prototype.isSuppressPaginationPanel=function(){return Lt(this.gridOptions.suppressPaginationPanel)},t.prototype.getRowData=function(){return this.gridOptions.rowData},t.prototype.isGroupUseEntireRow=function(e){return!e&&Lt(this.gridOptions.groupUseEntireRow)},t.prototype.isEnableRtl=function(){return Lt(this.gridOptions.enableRtl)},t.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},t.prototype.isGroupSuppressRow=function(){return Lt(this.gridOptions.groupSuppressRow)},t.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},t.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},t.prototype.isAngularCompileRows=function(){return Lt(this.gridOptions.angularCompileRows)},t.prototype.isAngularCompileFilters=function(){return Lt(this.gridOptions.angularCompileFilters)},t.prototype.isAngularCompileHeaders=function(){return Lt(this.gridOptions.angularCompileHeaders)},t.prototype.isDebug=function(){return Lt(this.gridOptions.debug)},t.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},t.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},t.prototype.getDatasource=function(){return this.gridOptions.datasource},t.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},t.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},t.prototype.isAccentedSort=function(){return Lt(this.gridOptions.accentedSort)},t.prototype.isEnableBrowserTooltips=function(){return Lt(this.gridOptions.enableBrowserTooltips)},t.prototype.isEnableCellExpressions=function(){return Lt(this.gridOptions.enableCellExpressions)},t.prototype.isEnableGroupEdit=function(){return Lt(this.gridOptions.enableGroupEdit)},t.prototype.isSuppressMiddleClickScrolls=function(){return Lt(this.gridOptions.suppressMiddleClickScrolls)},t.prototype.isPreventDefaultOnContextMenu=function(){return Lt(this.gridOptions.preventDefaultOnContextMenu)},t.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Lt(this.gridOptions.suppressPreventDefaultOnMouseWheel)},t.prototype.isSuppressColumnVirtualisation=function(){return Lt(this.gridOptions.suppressColumnVirtualisation)},t.prototype.isSuppressContextMenu=function(){return Lt(this.gridOptions.suppressContextMenu)},t.prototype.isAllowContextMenuWithControlKey=function(){return Lt(this.gridOptions.allowContextMenuWithControlKey)},t.prototype.isSuppressCopyRowsToClipboard=function(){return Lt(this.gridOptions.suppressCopyRowsToClipboard)},t.prototype.isCopyHeadersToClipboard=function(){return Lt(this.gridOptions.copyHeadersToClipboard)},t.prototype.isSuppressClipboardPaste=function(){return Lt(this.gridOptions.suppressClipboardPaste)},t.prototype.isSuppressLastEmptyLineOnPaste=function(){return Lt(this.gridOptions.suppressLastEmptyLineOnPaste)},t.prototype.isPagination=function(){return Lt(this.gridOptions.pagination)},t.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Lt(this.gridOptions.suppressEnterpriseResetOnNewColumns)},t.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},t.prototype.getAsyncTransactionWaitMillis=function(){return qe.exists(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:ke.BATCH_WAIT_MILLIS},t.prototype.isSuppressMovableColumns=function(){return Lt(this.gridOptions.suppressMovableColumns)},t.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Lt(this.gridOptions.animateRows)},t.prototype.isSuppressColumnMoveAnimation=function(){return Lt(this.gridOptions.suppressColumnMoveAnimation)},t.prototype.isSuppressAggFuncInHeader=function(){return Lt(this.gridOptions.suppressAggFuncInHeader)},t.prototype.isSuppressAggAtRootLevel=function(){return Lt(this.gridOptions.suppressAggAtRootLevel)},t.prototype.isEnableRangeSelection=function(){return ht.isRegistered(e.ModuleNames.RangeSelectionModule)&&Lt(this.gridOptions.enableRangeSelection)},t.prototype.isEnableRangeHandle=function(){return Lt(this.gridOptions.enableRangeHandle)},t.prototype.isEnableFillHandle=function(){return Lt(this.gridOptions.enableFillHandle)},t.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},t.prototype.isSuppressMultiRangeSelection=function(){return Lt(this.gridOptions.suppressMultiRangeSelection)},t.prototype.isPaginationAutoPageSize=function(){return Lt(this.gridOptions.paginationAutoPageSize)},t.prototype.isRememberGroupStateWhenNewData=function(){return Lt(this.gridOptions.rememberGroupStateWhenNewData)},t.prototype.getIcons=function(){return this.gridOptions.icons},t.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},t.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},t.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},t.prototype.isMasterDetail=function(){return!!Lt(this.gridOptions.masterDetail)&&ht.assertRegistered(e.ModuleNames.MasterDetailModule,"masterDetail")},t.prototype.isKeepDetailRows=function(){return Lt(this.gridOptions.keepDetailRows)},t.prototype.getKeepDetailRowsCount=function(){return this.gridOptions.keepDetailRowsCount>0?this.gridOptions.keepDetailRowsCount:10},t.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},t.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},t.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},t.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},t.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},t.prototype.isSuppressAutoSize=function(){return Lt(this.gridOptions.suppressAutoSize)},t.prototype.isEnableCellTextSelection=function(){return Lt(this.gridOptions.enableCellTextSelection)},t.prototype.isSuppressParentsInRowNodes=function(){return Lt(this.gridOptions.suppressParentsInRowNodes)},t.prototype.isFunctionsReadOnly=function(){return Lt(this.gridOptions.functionsReadOnly)},t.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},t.prototype.isEnableCellTextSelect=function(){return Lt(this.gridOptions.enableCellTextSelection)},t.prototype.isEnableOldSetFilterModel=function(){return Lt(this.gridOptions.enableOldSetFilterModel)},t.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},t.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},t.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},t.prototype.isSuppressCsvExport=function(){return Lt(this.gridOptions.suppressCsvExport)},t.prototype.isAllowShowChangeAfterFilter=function(){return Lt(this.gridOptions.allowShowChangeAfterFilter)},t.prototype.isSuppressExcelExport=function(){return Lt(this.gridOptions.suppressExcelExport)},t.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Lt(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},t.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},t.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},t.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},t.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},t.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},t.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},t.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},t.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},t.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},t.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},t.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},t.prototype.isTreeData=function(){return!!Lt(this.gridOptions.treeData)&&ht.assertRegistered(e.ModuleNames.RowGroupingModule,"Tree Data")},t.prototype.isValueCache=function(){return Lt(this.gridOptions.valueCache)},t.prototype.isValueCacheNeverExpires=function(){return Lt(this.gridOptions.valueCacheNeverExpires)},t.prototype.isDeltaSort=function(){return Lt(this.gridOptions.deltaSort)},t.prototype.isAggregateOnlyChangedColumns=function(){return Lt(this.gridOptions.aggregateOnlyChangedColumns)},t.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},t.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},t.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},t.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},t.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},t.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},t.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},t.prototype.getViewportRowModelPageSize=function(){return e=this.gridOptions.viewportRowModelPageSize,t=5,e>0?e:t;var e,t},t.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},t.prototype.isServerSideSortingAlwaysResets=function(){return Lt(this.gridOptions.serverSideSortingAlwaysResets)},t.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},t.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},t.prototype.getClipboardDeliminator=function(){return qe.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},t.prototype.setProperty=function(e,t){var o=this.gridOptions,n=o[e];if(n!==t){o[e]=t;var r={type:e,currentValue:t,previousValue:n};this.propertyEventService.dispatchEvent(r)}},t.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===ke.DOM_LAYOUT_AUTO_HEIGHT,o=e===ke.DOM_LAYOUT_PRINT,n=e===ke.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){qe.addOrRemoveCssClass(e,"ag-layout-auto-height",t),qe.addOrRemoveCssClass(e,"ag-layout-normal",n),qe.addOrRemoveCssClass(e,"ag-layout-print",o)}))},t.prototype.addEventListener=function(e,t){o.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,t)},t.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},t.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},t.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},t.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},t.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},t.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},t.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},t.prototype.getTooltipShowDelay=function(){var e=this.gridOptions.tooltipShowDelay;return qe.exists(e)?(e<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,e)):null},t.prototype.isTooltipMouseTrack=function(){return Lt(this.gridOptions.tooltipMouseTrack)},t.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&qe.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&qe.exists(e)?e:document},t.prototype.getMinColWidth=function(){if(this.gridOptions.minColWidth>o.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var e=this.getFromTheme(null,"headerCellMinWidth");return Math.max(e,o.MIN_COL_WIDTH)},t.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>o.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},t.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<o.MIN_COL_WIDTH?200:this.gridOptions.colWidth},t.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(qe.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=ke.ROW_BUFFER_SIZE,e},t.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},t.prototype.getScrollbarWidth=function(){if(null==this.scrollWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0;this.scrollWidth=e?this.gridOptions.scrollbarWidth:qe.getScrollbarWidth()}return this.scrollWidth},t.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var o={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},n={};Object.keys(o).forEach((function(t){var r=o[t],i=e.gridOptions[t];if(void 0!==i){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+r),n[r]=i}})),Object.keys(n).length>0&&!qe.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=Nt.parse(t.sideBar));var r=this.gridOptions.sideBar;if(Object.keys(n).length>0&&r&&r.toolPanels){var i=r.toolPanels.filter((function(e){return"columns"===e.id}));1===i.length&&qe.mergeDeep(i[0],{componentParams:n})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.deprecatedEmbedFullWidthRows&&console.warn("ag-Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing."),t.doesDataFlower&&console.warn("ag-Grid: since v21.1, doesDataFlower is deprecated. Master/Detail is the new way for showing child data for a row and was introduced over a year ago. Please migrate your code to use master/detail instead."),t.enableOldSetFilterModel&&console.warn("ag-Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards."),t.floatingFilter&&(console.warn("ag-Grid: since v23.1, floatingFilter on the gridOptions is deprecated. Please use floatingFilter on the colDef instead."),t.defaultColDef||(t.defaultColDef={}),null==t.defaultColDef.floatingFilter&&(t.defaultColDef.floatingFilter=!0));var s=function(e,o,n){null!=t[e]&&(console.warn("ag-grid: since version "+n+", '"+e+"' is deprecated / renamed, please use the new property name '"+o+"' instead."),null==t[o]&&(t[o]=t[e]))};s("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),s("deltaRowDataMode","immutableData","23.1.x"),s("deltaColumnMode","immutableColumns","23.1.x")},t.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.isRowModelDefault()&&qe.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(qe.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),qe.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},t.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,o){var n=e.gridOptions.localeText;return n&&n[t]?n[t]:o}},t.prototype.globalEventHandler=function(e,t){var o=kt.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)},t.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||qe.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},t.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var o={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context},n=this.gridOptions.getRowHeight(o);if(null!=n)return{height:n,estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var r=this.getDefaultRowHeight(),i=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:r,s=Math.min(r,i);if(this.columnController.isAutoRowHeightActive()){if(t)return{height:i,estimated:!0};var a=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(a,s),estimated:!1}}return{height:i,estimated:!1}},t.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},t.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},t.prototype.getFromTheme=function(e,t){var o=this.environment.getTheme().theme;return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,t):e},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},t.MIN_COL_WIDTH=10,t.PROP_HEADER_HEIGHT="headerHeight",t.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",t.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",t.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",t.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",t.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",t.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",t.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",t.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",t.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",t.PROP_POPUP_PARENT="popupParent",t.PROP_DOM_LAYOUT="domLayout",xt([rt("gridOptions")],t.prototype,"gridOptions",void 0),xt([rt("columnController")],t.prototype,"columnController",void 0),xt([rt("eventService")],t.prototype,"eventService",void 0),xt([rt("gridApi")],t.prototype,"gridApi",void 0),xt([rt("columnApi")],t.prototype,"columnApi",void 0),xt([rt("environment")],t.prototype,"environment",void 0),xt([rt("autoHeightCalculator")],t.prototype,"autoHeightCalculator",void 0),xt([rt("context")],t.prototype,"context",void 0),xt([It(0,at("gridApi")),It(1,at("columnApi"))],t.prototype,"agWire",null),xt([ot],t.prototype,"destroy",null),xt([tt],t.prototype,"init",null),t=o=xt([nt("gridOptionsWrapper")],t)}(),Gt=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n},kt=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,o,n){void 0===n&&(n=!1),Vt(o),"object"!=typeof t&&(t={});var r=t,i=function(e){return void 0!==o[e]};return Gt(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEach((function(e){return r[e]=o[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toBoolean(o[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toNumber(o[t])})),n||e.EVENTS.filter((function(t){return i(t)||i(e.getCallbackForEvent(t))})).forEach((function(e){return Mt.checkEventDeprecation(e)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,o,n,r){if(t){Vt(t);var i=o,s=function(e){return t[e]};Gt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(s).forEach((function(e){return i[e]=t[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(s).forEach((function(o){return i[o]=e.toBoolean(t[o].currentValue)})),e.NUMBER_PROPERTIES.filter(s).forEach((function(o){return i[o]=e.toNumber(t[o].currentValue)})),t.enableCellTextSelection&&n.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&n.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&n.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&n.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&n.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&n.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&n.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&n.setDatasource(t.datasource.currentValue),t.headerHeight&&n.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&n.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&r.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&n.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&n.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.suppressMoveWhenRowDragging&&n.setSuppressMoveWhenRowDragging(e.toBoolean(t.suppressMoveWhenRowDragging.currentValue)),t.suppressRowClickSelection&&n.setSuppressRowClickSelection(e.toBoolean(t.suppressRowClickSelection.currentValue)),t.gridAutoHeight&&n.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&n.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&n.setSideBar(t.sideBar.currentValue);var a={type:Et.EVENT_COMPONENT_STATE_CHANGED,api:o.api,columnApi:o.columnApi};qe.iterateObject(t,(function(e,t){a[e]=t})),n.dispatchEvent(a)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=Dt.STRING_PROPERTIES,e.OBJECT_PROPERTIES=Dt.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=Dt.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=Dt.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=Dt.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=Dt.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=Dt.ALL_PROPERTIES,e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function Vt(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/kt.EVENTS=qe.values(Et);var Wt,Ht=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Bt=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.getContext=function(){return e.context},this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new dt),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,o){var n=this;if(!this.destroyed){e instanceof HTMLElement?qe.addSafePassiveEventListener(this.getFrameworkOverrides(),e,t,o):e.addEventListener(t,o);var r=function(){return e.removeEventListener(t,o),n.destroyFunctions=n.destroyFunctions.filter((function(e){return e!==r})),null};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.wireDependentBean=function(e,t){return e.destroy&&this.addDestroyFunc(e.destroy.bind(e)),this.wireBean(e,t)},e.prototype.wireBean=function(e,t){return(t||this.getContext()).wireBean(e),e},e.EVENT_DESTROYED="destroyed",Ht([rt("context")],e.prototype,"context",void 0),Ht([rt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Ht([ot],e.prototype,"destroy",null),e}(),Ut=(Wt=function(e,t){return(Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}Wt(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),jt=new $e,zt=function(e){function t(t){var o=e.call(this)||this;return o.childComponents=[],o.annotatedEventListeners=[],o.displayed=!0,o.visible=!0,o.compId=jt.next(),t&&o.setTemplate(t),o}return Ut(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e,t){var o=this,n=qe.copyNodeList(e.childNodes);qe.forEach(n,(function(n){if(n instanceof HTMLElement){var r=o.getContext().createComponentFromElement(n,(function(e){o.copyAttributesFromNode(n,e.getGui())}),t);if(r){if(r.addItems&&n.children.length){o.createChildComponentsFromTags(n);var i=Array.prototype.slice.call(n.children);r.addItems(i)}o.swapComponentForNode(r,e,n)}else n.childNodes&&o.createChildComponentsFromTags(n)}}))},t.prototype.copyAttributesFromNode=function(e,t){qe.iterateNamedNodeMap(e.attributes,(function(e,o){return t.setAttribute(e,o)}))},t.prototype.swapComponentForNode=function(e,t,o){var n=e.getGui();t.replaceChild(n,o),t.insertBefore(document.createComment(o.nodeName),n),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var o=this;this.iterateOverQuerySelectors((function(n){o[n.attributeName]===t&&(o[n.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var o=t.__agComponentMetaData,n=t.constructor.name;o&&o[n]&&o[n].querySelectors&&qe.forEach(o[n].querySelectors,(function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var o=qe.loadTemplate(e);this.setTemplateFromElement(o,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(o){var n=e.eGui.querySelector(o.querySelector);n&&(t[o.attributeName]=n.__agComponent||n)}))}},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");qe.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),qe.forEach(t,(function(t){var o=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,o),e.annotatedEventListeners.push({eventName:t.eventName,listener:o})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],o=Object.getPrototypeOf(this);null!=o;){var n=o.__agComponentMetaData,r=o.constructor.name;if(void 0===r){var i=/function\s([^(]{1,})\(/.exec(o.constructor.toString());i&&i.length>1&&(r=i[1].trim())}n&&n[r]&&n[r][e]&&(t=t.concat(n[r][e])),o=Object.getPrototypeOf(o)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(qe.forEach(this.annotatedEventListeners,(function(t){return e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(t||(t=this.eGui),qe.isNodeOrElement(e))t.appendChild(e);else{var o=e;t.appendChild(o.getGui()),this.childComponents.push(o)}},t.prototype.addFeature=function(e,t){this.wireDependentBean(e,t)},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,qe.setVisible(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,qe.setDisplayed(this.eGui,e);var o={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},t.prototype.destroy=function(){qe.forEach(this.childComponents,(function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners(),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var o=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return o.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){qe.addCssClass(this.eGui,e)},t.prototype.removeCssClass=function(e){qe.removeCssClass(this.eGui,e)},t.prototype.addOrRemoveCssClass=function(e,t){qe.addOrRemoveCssClass(this.eGui,e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([et],t.prototype,"createChildComponentsPreConstruct",null),t}(Bt),Yt=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yt(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){qe.addCssClass(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&qe.removeCssClass(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(zt);function qt(e){return $t.bind(this,"[ref="+e+"]")}function $t(e,t,o,n){null!==e?"number"!=typeof n?Xt(t,"querySelectors",{attributeName:o,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function Qt(e,t,o){null!==e?Xt(t,"listenerMethods",{methodName:o,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function Xt(e,t,o){var n=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(e,e.constructor.name);n[t]||(n[t]=[]),n[t].push(o)}var Zt,Jt,eo=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),to=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return eo(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===ke.KEY_BACKSPACE||e.keyPress===ke.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==ke.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e));qe.exists(t)&&o.setValue(t,!0),this.addDestroyableEventListener(o.getGui(),"keydown",(function(e){var t=e.keyCode===ke.KEY_PAGE_UP,o=e.keyCode===ke.KEY_PAGE_DOWN;(t||o)&&e.preventDefault()}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;qe.isBrowserSafari()||e.getFocusableElement().focus();var t=e.getInputElement();if(this.highlightAllOnFocus)t.select();else{var o=e.getValue(),n=qe.exists(o)&&o.length||0;n&&t.setSelectionRange(n,n)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()},t.prototype.focusOut=function(){var e=this.eInput.getInputElement();qe.isBrowserIE()&&e.setSelectionRange(0,0)},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([qt("eInput")],t.prototype,"eInput",void 0),t}(Kt),oo=function(){function e(e,t,o){var n=this;this.alive=!0,e.newDateComponent(t).then((function(e){n.alive?(n.dateComp=e,o.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),n.tempValue&&e.setDate(n.tempValue)):e.destroy&&e.destroy()}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp&&this.dateComp.destroy&&this.dateComp.destroy()},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e}(),no=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions?e.filterOptions:t,this.mapCustomOptions(),this.selectDefaultItem(e)},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){"string"!=typeof t&&(t.displayKey?t.displayName?t.test?e.customFilterOptions[t.displayKey]=t:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("ag-Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),ro=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),io=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},so=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.applyActive=!1,t.hidePopup=null,t.appliedModel=null,t}return ro(t,e),t.prototype.onFilterChanged=function(){console.warn("ag-Grid: you should not call onFilterChanged() directly on the filter, please call\n gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.postConstruct=function(){var e='\n <div>\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper" ref="eFilterBodyWrapper">\n '+this.createBodyTemplate()+"\n </div>\n </div>";this.setTemplate(e)},t.prototype.init=function(e){this.setParams(e),this.resetUiToDefaults(!0),this.updateUiVisibility(),this.setupOnBtApplyDebounce()},t.prototype.setParams=function(e){if(this.providedFilterParams=e,e.newRowsAction===t.NEW_ROWS_ACTION_KEEP)this.newRowsActionKeep=!0;else if(e.newRowsAction===t.NEW_ROWS_ACTION_CLEAR)this.newRowsActionKeep=!1;else{var o=this.rowModel.getType(),n=[ke.ROW_MODEL_TYPE_SERVER_SIDE,ke.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=n.indexOf(o)>=0}this.applyActive=t.isUseApplyButton(e),this.createButtonPanel(e)},t.prototype.createButtonPanel=function(e){var t=this,o=!0===e.clearButton,n=!0===e.resetButton;if(this.applyActive||o||n){var r=this.gridOptionsWrapper.getLocaleTextFunc(),i=document.createElement("div");qe.addCssClass(i,"ag-filter-apply-panel");var s=function(e,o){var n=qe.loadTemplate('<button type="button" class="ag-standard-button ag-filter-apply-panel-button">'+e+"</button>");i.appendChild(n),t.addDestroyableEventListener(n,"click",o)};o&&s(r("clearFilter","Clear Filter"),(function(){return t.onBtClear()})),n&&s(r("resetFilter","Reset Filter"),(function(){return t.onBtReset()})),this.applyActive&&s(r("applyFilter","Apply Filter"),(function(){return t.onBtApply()})),this.eFilterBodyWrapper.parentElement.appendChild(i)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=qe.debounce(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){e?this.setModelIntoUi(e):this.resetUiToDefaults(),this.updateUiVisibility(),this.applyModel()},t.prototype.onBtClear=function(){this.resetUiToDefaults(),this.updateUiVisibility(),this.onUiChanged()},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.appliedModel;return this.appliedModel=this.getModelFromUi(),!this.areModelsEqual(this.appliedModel,e)},t.prototype.onBtApply=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t});var o=this.providedFilterParams,n=o.closeOnApply,r=o.applyButton,i=o.resetButton;n&&!e&&this.hidePopup&&(r||i)&&(this.hidePopup(),this.hidePopup=null)},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||(this.resetUiToDefaults(),this.appliedModel=null)},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e){void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),e?this.onBtApply(!0):this.applyActive||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){this.hidePopup=e.hidePopup},t.getDebounceMs=function(e,o){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when applyButton = true"),0):null!=e.debounceMs?e.debounceMs:o},t.isUseApplyButton=function(e){return e.apply&&!e.applyButton&&(console.warn("ag-Grid: as of ag-Grid v21, filterParams.apply is now filterParams.applyButton, please change to applyButton"),e.applyButton=!0),!0===e.applyButton},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.NEW_ROWS_ACTION_KEEP="keep",t.NEW_ROWS_ACTION_CLEAR="clear",io([qt("eFilterBodyWrapper")],t.prototype,"eFilterBodyWrapper",void 0),io([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),io([rt("rowModel")],t.prototype,"rowModel",void 0),io([tt],t.prototype,"postConstruct",null),t}(zt),ao=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),lo=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(Jt=Zt||(Zt={}))[Jt.One=0]="One",Jt[Jt.Two=1]="Two";var uo,po,co={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",inRangeStart:"From",inRangeEnd:"To",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},ho=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ao(t,e),t.prototype.showValueFrom=function(e){return!this.doesFilterHaveHiddenInput(e)&&e!==t.EMPTY},t.prototype.showValueTo=function(e){return e===t.IN_RANGE},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.eJoinOperatorAnd.setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(Zt.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(Zt.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(Zt.One),condition2:this.createCondition(Zt.Two)}:this.createCondition(Zt.One):null},t.prototype.getCondition1Type=function(){return this.eType1.getValue()},t.prototype.getCondition2Type=function(){return this.eType2.getValue()},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var o,n=!e.operator,r=!t.operator;if(!n&&r||n&&!r)return!1;if(n){var i=e,s=t;o=this.areSimpleModelsEqual(i,s)}else{var a=e,l=t;o=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.condition2)}return o},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,o="OR"===t.operator;this.eJoinOperatorAnd.setValue(!o),this.eJoinOperatorOr.setValue(o),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,Zt.One),this.setConditionIntoUi(t.condition2,Zt.Two)}else{var n=e;this.eJoinOperatorAnd.setValue(!0),this.eJoinOperatorOr.setValue(!1),this.eType1.setValue(n.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(n,Zt.One),this.setConditionIntoUi(null,Zt.Two)}},t.prototype.doesFilterPass=function(e){var t=this.getModel();if(t.operator){var o=t,n=this.individualConditionPasses(e,o.condition1),r=this.individualConditionPasses(e,o.condition2);return"AND"===o.operator?n&&r:n||r}var i=t;return this.individualConditionPasses(e,i)},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new no,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions();t.forEach((function(t){var o=function(){var o="string"==typeof t?t:t.displayKey;return{value:o,text:e.translate(o)}};e.eType1.addOption(o()),e.eType2.addOption(o())}));var o=t.length<=1;this.eType1.setDisabled(o),this.eType2.setDisabled(o)},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(Zt.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(Zt.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.isConditionUiComplete(Zt.One),t=this.allowTwoConditions&&e;qe.setDisplayed(this.eCondition2Body,t),qe.setDisplayed(this.eType2.getGui(),t),qe.setDisplayed(this.eJoinOperatorPanel,t)},t.prototype.resetUiToDefaults=function(e){var t="ag-simple-filter-and-or-"+this.getCompId(),o=this.gridOptionsWrapper.getLocaleTextFunc(),n=this.optionsFactory.getDefaultOption();this.eType1.setValue(n,e),this.eType2.setValue(n,e),this.eJoinOperatorAnd.setValue(!0,e).setName(t).setLabel(o("andCondition","AND")),this.eJoinOperatorOr.setValue(!1,e).setName(t).setLabel(o("orCondition","OR"))},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=co[e];return!o&&this.optionsFactory.getCustomOption(e)&&(o=this.optionsFactory.getCustomOption(e).displayName),t(e,o)},t.prototype.addChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",lo([qt("eOptions1")],t.prototype,"eType1",void 0),lo([qt("eOptions2")],t.prototype,"eType2",void 0),lo([qt("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),lo([qt("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),lo([qt("eCondition2Body")],t.prototype,"eCondition2Body",void 0),lo([qt("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),t}(so),fo=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),go=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fo(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("ag-Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.nullComparator=function(e,o,n){if(null==n)switch(e){case t.EMPTY:return 0;case t.EQUALS:return this.scalarFilterParams.includeBlanksInEquals?0:1;case t.NOT_EQUAL:return this.scalarFilterParams.includeBlanksInEquals?1:0;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInGreaterThan?1:-1;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInLessThan?-1:1}return this.comparator()(o,n)},t.prototype.individualConditionPasses=function(e,o){var n=this.scalarFilterParams.valueGetter(e.node),r=this.mapRangeFromModel(o),i=r.from,s=r.to,a=o.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=i||l.hideFilterInput))return l.test(i,n);var u=this.nullComparator(a,i,n);switch(a){case t.EQUALS:return 0===u;case t.NOT_EQUAL:return 0!==u;case t.GREATER_THAN:return u>0;case t.GREATER_THAN_OR_EQUAL:return u>=0;case t.LESS_THAN:return u<0;case t.LESS_THAN_OR_EQUAL:return u<=0;case t.IN_RANGE:var p=this.nullComparator(a,s,n);return this.scalarFilterParams.inRangeInclusive?u>=0&&p<=0:u>0&&p<0;default:throw new Error("Unexpected type of filter: "+a)}},t}(ho),yo=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vo=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},mo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yo(t,e),t.prototype.mapRangeFromModel=function(e){return{from:de(e.dateFrom),to:de(e.dateTo)}},t.prototype.setValueFromFloatingFilter=function(e){if(null!=e){var t=de(e);this.dateCondition1FromComp.setDate(t)}else this.dateCondition1FromComp.setDate(null);this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},t.prototype.setConditionIntoUi=function(e,t){var o=e?[de(e.dateFrom),de(e.dateTo)]:[null,null],n=o[0],r=o[1],i=this.getFromToComponents(t),s=i[0],a=i[1];s.setDate(n),a.setDate(r)},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),this.dateCondition1FromComp.setDate(null),this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t,this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t={onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams};this.dateCondition1FromComp=new oo(this.userComponentFactory,t,this.eCondition1PanelFrom),this.dateCondition1ToComp=new oo(this.userComponentFactory,t,this.eCondition1PanelTo),this.dateCondition2FromComp=new oo(this.userComponentFactory,t,this.eCondition2PanelFrom),this.dateCondition2ToComp=new oo(this.userComponentFactory,t,this.eCondition2PanelTo),this.addDestroyFunc((function(){e.dateCondition1FromComp.destroy(),e.dateCondition1ToComp.destroy(),e.dateCondition2FromComp.destroy(),e.dateCondition2ToComp.destroy()}))},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===Zt.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom">\n </div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo">\n </div>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===Zt.One?this.getCondition1Type():this.getCondition2Type();if(t===ho.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(t))return!0;var o=this.getFromToComponents(e),n=o[0],r=o[1];return null!=n.getDate()&&(t!==ho.IN_RANGE||null!=r.getDate())},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.createCondition=function(e){var o=e===Zt.One?this.getCondition1Type():this.getCondition2Type(),n=this.getFromToComponents(e),r=n[0],i=n[1];return{dateFrom:ce(r.getDate()),dateTo:ce(i.getDate()),type:o,filterType:t.FILTER_TYPE}},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc()("dateFormatOoo","yyyy-mm-dd");this.dateCondition1FromComp.setInputPlaceholder(e),this.dateCondition1ToComp.setInputPlaceholder(e),this.dateCondition2FromComp.setInputPlaceholder(e),this.dateCondition2ToComp.setInputPlaceholder(e)},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.getCondition1Type();x(this.eCondition1PanelFrom,this.showValueFrom(t)),x(this.eCondition1PanelTo,this.showValueTo(t));var o=this.getCondition2Type();x(this.eCondition2PanelFrom,this.showValueFrom(o)),x(this.eCondition2PanelTo,this.showValueTo(o))},t.prototype.getFromToComponents=function(e){return e===Zt.One?[this.dateCondition1FromComp,this.dateCondition1ToComp]:[this.dateCondition2FromComp,this.dateCondition2ToComp]},t.FILTER_TYPE="date",t.DEFAULT_FILTER_OPTIONS=[go.EQUALS,go.GREATER_THAN,go.LESS_THAN,go.NOT_EQUAL,go.IN_RANGE],vo([qt("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),vo([qt("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),vo([qt("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),vo([qt("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),vo([rt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(go),Co=function(){function e(e,t){var o=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new dt,this.eElement=e,this.preventMouseClick=t;var n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",n,{passive:!0}),o.eElement.removeEventListener("touchmove",r,{passive:!0}),o.eElement.removeEventListener("touchend",i,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var n=this.touchStart;window.setTimeout((function(){var r=o.touchStart===n;if(o.touching&&r&&!o.moved){o.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!qe.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var o={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),wo=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Eo=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},bo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return wo(t,e),t.prototype.init=function(e){var o=qe.firstExistingValue(e.template,t.TEMPLATE);o=o&&o.trim?o.trim():o,this.setTemplate(o),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=qe.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,o){if(null!=t){var n=qe.createIconNoSpan(e,this.gridOptionsWrapper,o);t.appendChild(n)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var o=new Co(this.getGui(),!0),n=t.isSuppressMenuHide(),r=n&&qe.exists(this.eMenu),i=r?new Co(this.eMenu,!0):o;if(this.params.enableMenu){var s=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(i,Co[s],(function(o){t.getApi().showColumnMenuAfterMouseClick(e.params.column,o.touchStart)}))}if(this.params.enableSorting){this.addDestroyableEventListener(o,Co.EVENT_TAP,(function(t){var o=t.touchStart.target;n&&e.eMenu.contains(o)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return o.destroy()})),r&&this.addDestroyFunc((function(){return i.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||qe.isIOSUserAgent()&&!t)qe.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0");var o=this.eMenu.style;o.transition="opacity 0.2s, border 0.2s",o["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.setMouseOverParent=function(e){this.gridOptionsWrapper.isSuppressMenuHide()||(this.eMenu.style.opacity=e?"1":"0")},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){qe.removeFromParent(this.eSortAsc),qe.removeFromParent(this.eSortDesc),qe.removeFromParent(this.eSortNone),qe.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,gt.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",(function(o){var n=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!(n||r)){var i=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(i)}})),this.addDestroyableEventListener(this.params.column,gt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,Et.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&qe.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&qe.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();qe.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),o=t.indexOf(e),n=t.length>1,r=e.isSorting()&&n;qe.setDisplayed(this.eSortOrder,r),o>=0?this.eSortOrder.innerHTML=(o+1).toString():qe.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,gt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();qe.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation"> <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on"> <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span> <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span> <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span> <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span> <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span> <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span> </div></div>',Eo([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Eo([rt("sortController")],t.prototype,"sortController",void 0),Eo([rt("menuFactory")],t.prototype,"menuFactory",void 0),Eo([rt("eventService")],t.prototype,"eventService",void 0),Eo([qt("eFilter")],t.prototype,"eFilter",void 0),Eo([qt("eSortAsc")],t.prototype,"eSortAsc",void 0),Eo([qt("eSortDesc")],t.prototype,"eSortDesc",void 0),Eo([qt("eSortNone")],t.prototype,"eSortNone",void 0),Eo([qt("eSortOrder")],t.prototype,"eSortOrder",void 0),Eo([qt("eMenu")],t.prototype,"eMenu",void 0),Eo([qt("eLabel")],t.prototype,"eLabel",void 0),Eo([qt("eText")],t.prototype,"eText",void 0),t}(zt),Ro=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Oo=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},So=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ro(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!qe.isStopPropagationForAgGrid(t)){var o=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){qe.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",o),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",o),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var n=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(n,vt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(n,vt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var o=new Co(e);this.addDestroyableEventListener(o,Co.EVENT_TAP,t),this.addDestroyFunc((function(){return o.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();qe.setDisplayed(this.eOpenIcon,e),qe.setDisplayed(this.eCloseIcon,!e)}else qe.setDisplayed(this.eOpenIcon,!1),qe.setDisplayed(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var o=qe.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return qe.setDisplayed(this.eOpenIcon,!1),void qe.setDisplayed(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(qe.exists(e)){var t=qe.escape(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation"><span ref="agLabel" class="ag-header-group-text" role="columnheader"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',Oo([rt("columnController")],t.prototype,"columnController",void 0),Oo([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Oo([qt("agOpened")],t.prototype,"eOpenIcon",void 0),Oo([qt("agClosed")],t.prototype,"eCloseIcon",void 0),t}(zt),_o=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},To=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.highlighted=null,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,o,n){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:n}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var o=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(o)},e.prototype.getRowIndexString=function(){return this.rowPinned===ke.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===ke.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var o=qe.exists(this.id)?this.createDaemonNode():null,n=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,o),this.checkRowSelectable();var r=this.createDataChangedEvent(e,n,!1);this.dispatchLocalEvent(r)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&qe.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setRowHeight=function(t,o){void 0===o&&(o=!1),this.rowHeight=t,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=this.createGlobalRowEvent(Et.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(o),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var o=this.columnController.getPrimaryColumn(e),n=this.valueService.getValue(o,this);this.valueService.setValue(this,o,t),this.dispatchCellChangedEvent(o,t,n)},e.prototype.setGroupValue=function(e,t){var o=this.columnController.getGridColumn(e);qe.missing(this.groupData)&&(this.groupData={});var n=o.getColId(),r=this.groupData[n];r!==t&&(this.groupData[n]=t,this.dispatchCellChangedEvent(o,t,r))},e.prototype.setAggData=function(e){var t=this,o=qe.getAllKeysInObjects([this.aggData,e]),n=this.aggData;this.aggData=e,this.eventService&&o.forEach((function(e){var o=t.columnController.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=n?n[e]:void 0;t.dispatchCellChangedEvent(o,r,i)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyRowGroupNode=function(){return this.group&&qe.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o,n){var r={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o,oldValue:n};this.dispatchLocalEvent(r)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,n=!1;if(this.childrenAfterGroup)for(var r=0;r<this.childrenAfterGroup.length;r++){var i=this.childrenAfterGroup[r];if(i.selectable)switch(i.isSelected()){case!0:t=!0;break;case!1:o=!0;break;default:n=!0}}e=n?void 0:!(!t||o)||!(!t&&o)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===ke.PINNED_TOP||this.rowPinned===ke.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,n=!0===e.clearSelection,r=!0===e.suppressFinishActions,i=!0===e.rangeSelect,s=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(i){var a=this.selectionController.getLastSelectedNode()!==this,l=this.gridOptionsWrapper.isRowSelectionMulti();if(a&&l)return this.doRowRangeSelection()}var u=0;s&&this.group||this.selectThisNode(o)&&u++;if(t&&this.group&&(u+=this.selectChildNodes(o,s)),!r){if(o&&(n||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var p={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(p)}o&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=this.gridOptionsWrapper.isGroupSelectsChildren(),t=this.selectionController.getLastSelectedNode(),o=this.rowModel.getNodesInRangeForSelection(this,t),n=0;o.forEach((function(t){t.group&&e||t.selectThisNode(!0)&&n++})),this.selectionController.updateGroupsFromChildrenSelections();var r={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(r),n},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(Et.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var o=t?this.childrenAfterFilter:this.childrenAfterGroup;if(!qe.missing(o)){for(var n=0,r=0;r<o.length;r++)n+=o[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return n}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new dt),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,o=this,n=!0,r=!1;n&&!r;){var i=o.parent;qe.exists(i)&&o.firstChild?i.rowGroupColumn===e&&(r=!0,t=i):n=!1,o=i}return r?t:null},e.prototype.isFullWidthCell=function(){var e=this.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e(this)},e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",_o([rt("eventService")],e.prototype,"mainEventService",void 0),_o([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_o([rt("selectionController")],e.prototype,"selectionController",void 0),_o([rt("columnController")],e.prototype,"columnController",void 0),_o([rt("valueService")],e.prototype,"valueService",void 0),_o([rt("rowModel")],e.prototype,"rowModel",void 0),_o([rt("context")],e.prototype,"context",void 0),_o([rt("valueCache")],e.prototype,"valueCache",void 0),_o([rt("columnApi")],e.prototype,"columnApi",void 0),_o([rt("gridApi")],e.prototype,"gridApi",void 0),e}(),Po=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Do=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.labelSeparator="",t.labelAlignment="left",t.config={},t.label="",t}return Po(t,e),t.prototype.postConstruct=function(){qe.addCssClass(this.getGui(),"ag-labeled"),qe.addCssClass(this.eLabel,"ag-label");var e=this.config,t=e.labelSeparator,o=e.label,n=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=o&&this.setLabel(o),null!=n&&this.setLabelWidth(n),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){this.eLabel.innerText=this.label+this.labelSeparator,qe.addOrRemoveCssClass(this.eLabel,"ag-hidden",""===this.label)},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return qe.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),qe.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),qe.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||qe.setElementWidth(this.eLabel,e),this},function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([tt],t.prototype,"postConstruct",null),t}(zt),Ao=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),No=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return Ao(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),qe.addCssClass(this.getGui(),this.className)},t.prototype.onValueChange=function(e){var o=this;return this.addDestroyableEventListener(this,t.EVENT_CHANGED,(function(){e(o.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return qe.setFixedWidth(this.getGui(),e),this},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,o){return this.value===e||(this.value=e,o||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return e&&t.setAttribute("disabled","true"),qe.addOrRemoveCssClass(t,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(Do),xo=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Io=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Fo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.config={},t.TEMPLATE='\n <div role="presentation">\n <label ref="eLabel" class="ag-input-field-label"></label>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <%displayField% ref="eInput" class="ag-input-field-input"></%displayField%>\n </div>\n </div>',t}return xo(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),qe.addCssClass(this.eLabel,this.className+"-label"),qe.addCssClass(this.eWrapper,this.className+"-input-wrapper"),qe.addCssClass(this.eInput,this.className+"-input"),qe.addCssClass(this.getGui(),"ag-input-field");var t=this.eInput.id?this.eInput.id:"ag-input-id-"+this.getCompId();this.eLabel.htmlFor=t,this.eInput.id=t;var o=this.config,n=o.width,r=o.value;null!=n&&this.setWidth(n),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.eInput,"input",(function(t){var o=t.target.value;e.setValue(o)}))},t.prototype.setInputType=function(){this.inputType&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return qe.setElementWidth(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){var t=this.eInput;return e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder"),this},t.prototype.setDisabled=function(t){return t?this.eInput.setAttribute("disabled","true"):this.eInput.removeAttribute("disabled"),e.prototype.setDisabled.call(this,t)},Io([qt("eLabel")],t.prototype,"eLabel",void 0),Io([qt("eWrapper")],t.prototype,"eWrapper",void 0),Io([qt("eInput")],t.prototype,"eInput",void 0),t}(No),Lo=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mo=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Go=function(e){function t(){var t=e.call(this)||this;return t.className="ag-checkbox",t.displayTag="input",t.inputType="checkbox",t.labelAlignment="right",t.selected=!1,t.readOnly=!1,t.passive=!1,t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return Lo(t,e),t.prototype.addInputListeners=function(){this.addDestroyableEventListener(this.eInput,"click",this.onCheckboxClick.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){qe.addOrRemoveCssClass(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return qe.addOrRemoveCssClass(this.eWrapper,"ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){var e=this.getNextValue();this.passive?this.dispatchChange(e):this.setValue(e)},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=this.selected,this.eInput.indeterminate=void 0===this.selected,t||this.dispatchChange(this.selected))},t.prototype.dispatchChange=function(e,o){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,event:o});var n=this.getInputElement(),r={type:Et.EVENT_CHECKBOX_CHANGED,id:n.id,name:n.name,selected:e};this.eventService.dispatchEvent(r)},t.prototype.onCheckboxClick=function(e){this.selected=e.target.checked,this.refreshSelectedClass(this.selected),this.dispatchChange(this.selected,e)},t.prototype.refreshSelectedClass=function(e){qe.addOrRemoveCssClass(this.eWrapper,"ag-checked",!0===e),qe.addOrRemoveCssClass(this.eWrapper,"ag-indeterminate",null==e)},Mo([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Mo([rt("eventService")],t.prototype,"eventService",void 0),t}(Fo),ko=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vo=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Wo=function(e){function t(){return e.call(this,'<div class="ag-selection-checkbox"><ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox></div>')||this}return ko(t,e),t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();this.eCheckbox.setValue(e,!0)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return qe.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return qe.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckbox,Go.EVENT_CHANGED,(function(e){e.selected?t.onUncheckedClicked(e.event||{}):t.onCheckedClicked()})),this.addDestroyableEventListener(this.rowNode,To.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setDisplayed(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},Vo([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Vo([rt("eventService")],t.prototype,"eventService",void 0),Vo([qt("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(zt),Ho={propertyName:"dateComponent",isCellRenderer:function(){return!1}},Bo={propertyName:"headerComponent",isCellRenderer:function(){return!1}},Uo={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},jo={propertyName:"groupRowInnerRenderer",isCellRenderer:function(){return!0}},zo={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},Yo={propertyName:"pinnedRowCellRenderer",isCellRenderer:function(){return!0}},Ko={propertyName:"cellEditor",isCellRenderer:function(){return!1}},qo={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},$o={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},Qo={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},Xo={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},Zo={propertyName:"filter",isCellRenderer:function(){return!1}},Jo={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},en={propertyName:"toolPanel",isCellRenderer:function(){return!1}},tn={propertyName:"statusPanel",isCellRenderer:function(){return!1}},on=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(po=uo||(uo={}))[po.DEFAULT=0]="DEFAULT",po[po.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",po[po.HARDCODED=2]="HARDCODED";var nn,rn,sn=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Ho,"agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,Bo,"agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,Uo,"agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,jo,null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,o){return this.createAndInitUserComponent(null,e,{propertyName:t,isCellRenderer:function(){return!0}},o)},e.prototype.newCellRenderer=function(e,t,o){return void 0===o&&(o=!1),this.createAndInitUserComponent(e,t,o?Yo:zo,null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,Ko,"agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,qo,null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,$o,"agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,Qo,"agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){return this.createAndInitUserComponent(e.colDef,e,Xo,"agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,o,n){return this.createAndInitUserComponent(e,t,Zo,o,!1,n)},e.prototype.newSetFilterCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,zo,null,!0)},e.prototype.newFloatingFilterComponent=function(e,t,o){return this.createAndInitUserComponent(e,t,Jo,o,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,en)},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,tn)},e.prototype.createAndInitUserComponent=function(e,t,o,n,r,i){void 0===r&&(r=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,o,t,n,r);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,o.propertyName,t,s.paramsFromSelector);this.addReactHacks(l);var u=i?i(l,a):l,p=this.initComponent(a,u);return null==p?Qe.resolve(a):p.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=qe.cloneObject(t));var o=this.context.getBean("frameworkComponentWrapper");o&&(e.frameworkComponentWrapper=o)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var o=new e;return this.initComponent(o,t),o},e.prototype.lookupComponentClassDef=function(e,t,o,n){void 0===o&&(o=null);var r,i=null,s=null,a=null,l=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?i=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?s=u:a=u)),l=e[t+"Framework"],r=e[t+"Selector"]}if(s&&l||i&&l||a&&l)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(l&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(r&&(i||s||a||l))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(l)return{componentFromFramework:!0,component:l,source:uo.HARDCODED,paramsFromSelector:null};if(s)return{componentFromFramework:!1,component:s,source:uo.HARDCODED,paramsFromSelector:null};if(a)return this.agComponentUtils.adaptFunction(t,a,!1,uo.HARDCODED);var p,c=r?r(o):null;if(!(p=c&&c.component?c.component:i||n))return null;var d=this.lookupFromRegisteredComponents(t,p);return d?{componentFromFramework:d.componentFromFramework,component:d.component,source:d.source,paramsFromSelector:c?c.params:null}:null},e.prototype.lookupFromRegisteredComponents=function(e,t){var o=null!=t?t:e,n=this.userComponentRegistry.retrieve(o);return null==n?null:n.componentFromFramework?{component:n.component,componentFromFramework:!0,source:uo.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(n.component)?{component:n.component,componentFromFramework:!1,source:n.source==nn.REGISTERED?uo.REGISTERED_BY_NAME:uo.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,n.component,n.componentFromFramework,n.source==nn.REGISTERED?uo.REGISTERED_BY_NAME:uo.DEFAULT)},e.prototype.createFinalParams=function(e,t,o,n){void 0===n&&(n=null);var r={};qe.mergeDeep(r,o);var i=e?e[t+"Params"]:null;return null!=i&&("function"==typeof i?qe.mergeDeep(r,i(o)):"object"==typeof i&&qe.mergeDeep(r,i)),qe.mergeDeep(r,n),r},e.prototype.createComponentInstance=function(e,t,o,n,r){var i,s=t.propertyName,a=this.lookupComponentClassDef(e,s,o,n);if(!a||!a.component){var l=e?e[s]:n,u=l||n;return r||console.error("Could not find component "+u+", did you forget to configure this component?"),null}if(a.componentFromFramework){var p=a.component,c=this.componentMetadataProvider.retrieve(s);i=this.frameworkComponentWrapper.wrap(p,c.mandatoryMethodList,c.optionalMethodList,t,n)}else i=new a.component;return{componentInstance:i,paramsFromSelector:a.paramsFromSelector}},e.prototype.initComponent=function(e,t){if(this.context.wireBean(e),null!=e.init)return e.init(t)},on([rt("gridOptions")],e.prototype,"gridOptions",void 0),on([rt("context")],e.prototype,"context",void 0),on([rt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),on([rt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),on([rt("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),on([it("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e=on([nt("userComponentFactory")],e)}(),an=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ln=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},un=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return an(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),o=null==e.value,n=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var r=e.node;if(r.footer)n=(e.colDef&&e.colDef.showRowGroup)!==(r.rowGroupColumn&&r.rowGroupColumn.getColId())}this.cellIsBlank=t||o||n,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===ke.PINNED_LEFT,t=this.params.pinned===ke.PINNED_RIGHT,o=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!o:this.columnController.isPinningLeft()?!e:!o},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){qe.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var o=e*t,n=this.getGui(),r=this.gridOptionsWrapper.isEnableRtl()?"paddingRight":"paddingLeft";n.style[r]=o+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,To.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||qe.get(e.colDef,"cellRendererParams.innerRenderer",null)||qe.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var o=qe.cloneObject(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,o=this.params,n=this.displayedGroup.rowGroupColumn,r=n||o.column,i=this.params.value,s=r?this.valueFormatterService.formatValue(r,o.node,o.scope,i):null;o.valueFormatted=s,(e=o.fullWidth?this.useFullWidth(o):this.useInnerRenderer(this.params.colDef.cellRendererParams,r.getColDef(),o))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,o){var n=this,r=null,i=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(i&&null!=i.component&&i.source!=uo.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,o);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=uo.DEFAULT?this.userComponentFactory.newCellRenderer(t,o):s&&s.source==uo.DEFAULT&&qe.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,o):this.userComponentFactory.newCellRenderer({},o)}return null!=r?r.then((function(e){null!=e?qe.bindCellRendererToHtmlElement(r,n.eValue):n.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value})):this.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,r},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?qe.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,To.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){qe.exists(this.params.value)&&(this.eValue.innerText=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var o=new Wo;this.getContext().wireBean(o),o.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return o.destroy()}))}qe.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,o=qe.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),n=qe.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(o),this.eContracted.appendChild(n),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(e.node,To.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,To.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){qe.isKeyPressed(e,ke.KEY_ENTER)&&!this.params.suppressEnterExpand&&(this.params.column&&this.params.column.isCellEditable(this.params.node)||(e.preventDefault(),this.onExpandOrContract()))},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var o=t.rowGroupColumn;this.draggedFromHideOpenParents=!!o&&!e.isRowGroupDisplayed(o.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var n=t.parent;!qe.missing(n);){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroup=n;break}n=n.parent}qe.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){qe.isStopPropagationForAgGrid(e)||(qe.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){qe.isStopPropagationForAgGrid(e)||(qe.isElementInEventPath(this.eExpanded,e)||qe.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract())},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;qe.setDisplayed(this.eContracted,!t),qe.setDisplayed(this.eExpanded,t)}else qe.setDisplayed(this.eExpanded,!1),qe.setDisplayed(this.eContracted,!1);var o=this.displayedGroup,n=this.columnController.isPivotMode()&&o.leafGroup,r=!o.isExpandable(),i=o.footer||r||n;this.addOrRemoveCssClass("ag-row-group",!i),this.addOrRemoveCssClass("ag-row-group-leaf-indent",i)},t.prototype.destroy=function(){this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy(),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper"><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',ln([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ln([rt("expressionService")],t.prototype,"expressionService",void 0),ln([rt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),ln([rt("columnController")],t.prototype,"columnController",void 0),ln([rt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ln([qt("eExpanded")],t.prototype,"eExpanded",void 0),ln([qt("eContracted")],t.prototype,"eContracted",void 0),ln([qt("eCheckbox")],t.prototype,"eCheckbox",void 0),ln([qt("eValue")],t.prototype,"eValue",void 0),ln([qt("eChildCount")],t.prototype,"eChildCount",void 0),t}(zt),pn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),cn=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o}return pn(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var o=Math.abs(t),n=e.formatValue(o),r=qe.exists(n)?n:o,i=t>=0;this.eDelta.innerHTML=i?"↑"+r:"↓"+r,qe.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",i),qe.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!i)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){qe.removeCssClass(this.eValue,"ag-value-change-value-highlight"),qe.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue&&(qe.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:qe.exists(e.value)?this.eValue.innerHTML=t:qe.clearElement(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())){if("number"==typeof t&&"number"==typeof this.lastValue){var o=t-this.lastValue;this.showDelta(e,o)}return this.lastValue&&qe.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([rt("filterManager")],t.prototype,"filterManager",void 0),t}(zt),dn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),hn=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return dn(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=qe.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&qe.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(qe.missing(t)&&(t=""),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=t,qe.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:qe.exists(e.value)?this.eCurrent.innerHTML=t:qe.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([rt("filterManager")],t.prototype,"filterManager",void 0),t}(zt),fn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gn=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},yn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return fn(t,e),t.prototype.init=function(e){var t=qe.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',gn([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),gn([qt("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),gn([qt("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(zt),vn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),mn=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Cn=function(e){function t(){return e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this}return vn(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,qe.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(o){var n={value:o},r=t.valueFormatterService.formatValue(e.column,null,null,o),i=null!=r;n.text=i?r:o,t.eSelect.addOption(n)})),this.eSelect.setValue(e.value,!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},mn([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),mn([rt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),mn([qt("eSelect")],t.prototype,"eSelect",void 0),t}(Kt),wn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),En=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wn(t,e),t.prototype.isPopup=function(){return!0},t}(to),bn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bn(t,e),t.prototype.isPopup=function(){return!0},t}(Cn),On=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Sn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return On(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),qe.exists(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==ke.KEY_LEFT||t==ke.KEY_UP||t==ke.KEY_RIGHT||t==ke.KEY_DOWN||e.shiftKey&&t==ke.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([qt("eTextArea")],t.prototype,"eTextArea",void 0),t}(Kt),_n=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Tn=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Pn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _n(t,e),t.prototype.mapRangeFromModel=function(e){return{from:e.filter,to:e.filterTo}},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),[this.eValueFrom1,this.eValueFrom2,this.eValueTo1,this.eValueTo2].forEach((function(e){return e.setValue(null,t)})),this.resetPlaceholder()},t.prototype.setConditionIntoUi=function(e,t){var o=t===Zt.One,n=o?this.eValueFrom1:this.eValueFrom2,r=o?this.eValueTo1:this.eValueTo2;n.setValue(e?""+e.filter:null),r.setValue(e?""+e.filterTo:null)},t.prototype.setValueFromFloatingFilter=function(e){this.eValueFrom1.setValue(e),this.eValueFrom2.setValue(null),this.eValueTo1.setValue(null),this.eValueTo2.setValue(null)},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.addValueChangedListeners()},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValueFrom1.onValueChange(t),this.eValueFrom2.onValueChange(t),this.eValueTo1.onValueChange(t),this.eValueTo2.onValueChange(t)},t.prototype.resetPlaceholder=function(){var e=this.translate.bind(this),t=this.getCondition1Type()===go.IN_RANGE,o=this.getCondition2Type()===go.IN_RANGE;this.eValueFrom1.setInputPlaceholder(e(t?"inRangeStart":"filterOoo")),this.eValueTo1.setInputPlaceholder(e(t?"inRangeEnd":"filterOoo")),this.eValueFrom2.setInputPlaceholder(e(o?"inRangeStart":"filterOoo")),this.eValueTo2.setInputPlaceholder(e(o?"inRangeEnd":"filterOoo"))},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),this.eValueFrom1.getInputElement().focus()},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===Zt.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-number-field class="ag-filter-from ag-filter-filter" ref="eValueFrom'+t+'"></ag-input-number-field>\n <ag-input-number-field class="ag-filter-to ag-filter-filter" ref="eValueTo'+t+'"></ag-input-number-field>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===Zt.One,o=t?this.getCondition1Type():this.getCondition2Type(),n=t?this.eValueFrom1:this.eValueFrom2,r=t?this.eValueTo1:this.eValueTo2,i=this.stringToFloat(n.getValue()),s=this.stringToFloat(r.getValue());return o!==ho.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||(o===ho.IN_RANGE?null!=i&&null!=s:null!=i))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var t=qe.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.createCondition=function(e){var o=e===Zt.One,n=o?this.getCondition1Type():this.getCondition2Type(),r=o?this.eValueFrom1:this.eValueFrom2,i=this.stringToFloat(r.getValue()),s=o?this.eValueTo1:this.eValueTo2,a=this.stringToFloat(s.getValue()),l={filterType:t.FILTER_TYPE,type:n};return this.doesFilterHaveHiddenInput(n)||(l.filter=i,l.filterTo=a),l},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.showValueFrom(this.getCondition1Type());qe.setDisplayed(this.eValueFrom1.getGui(),t);var o=this.showValueTo(this.getCondition1Type());qe.setDisplayed(this.eValueTo1.getGui(),o);var n=this.showValueFrom(this.getCondition2Type());qe.setDisplayed(this.eValueFrom2.getGui(),n);var r=this.showValueTo(this.getCondition2Type());qe.setDisplayed(this.eValueTo2.getGui(),r)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[go.EQUALS,go.NOT_EQUAL,go.LESS_THAN,go.LESS_THAN_OR_EQUAL,go.GREATER_THAN,go.GREATER_THAN_OR_EQUAL,go.IN_RANGE],Tn([qt("eValueFrom1")],t.prototype,"eValueFrom1",void 0),Tn([qt("eValueFrom2")],t.prototype,"eValueFrom2",void 0),Tn([qt("eValueTo1")],t.prototype,"eValueTo1",void 0),Tn([qt("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(go),Dn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),An=function(e){function t(){return e.call(this)||this}return Dn(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=o.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(zt),Nn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xn=function(e){function t(){return e.call(this)||this}return Nn(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=o.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(zt),In=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fn=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return In(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(Kt),Ln=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mn=function(e){function t(){return e.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return Ln(t,e),t.prototype.init=function(e){var t=this;this.shouldUseBrowserDatePicker(e)&&(c()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.getInputElement().type="date"),this.listener=e.onDateChanged,this.addDestroyableEventListener(this.eDateInput.getInputElement(),"input",(function(e){e.target===document.activeElement&&t.listener()}))},t.prototype.getDate=function(){return de(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(ce(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:f()||g()},function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([qt("eDateInput")],t.prototype,"eDateInput",void 0),t}(zt),Gn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gn(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,o=this.conditionToString(t.condition1),n=this.conditionToString(t.condition2);return o+" "+t.operator+" "+n}var r=e;return this.conditionToString(r)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new no,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.prototype.isTypeEditable=function(e){return!this.doesFilterHaveHiddenInput(e)&&e&&e!==ho.IN_RANGE&&e!==ho.EMPTY},t}(zt),Vn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wn=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Hn=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex; overflow: hidden;"></div>\n </div>')||this}return Vn(t,e),t.prototype.getDefaultFilterOptions=function(){return mo.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type===ho.IN_RANGE?e.dateFrom+"-"+e.dateTo:null!=e.dateFrom?""+e.dateFrom:""+e.type},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent(),this.eReadOnlyText.setDisabled(!0)},t.prototype.setEditable=function(e){x(this.eDateWrapper,e),x(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,o){if(!this.isEventFromFloatingFilter(o)){e.prototype.setLastTypeFromModel.call(this,t);var n=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(n),n){if(t){var r=t;this.dateComp.setDate(de(r.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=ce(this.dateComp.getDate());this.params.parentFilterInstance((function(o){o&&o.onFloatingFilterChanged(e.getLastType(),t)}))},t.prototype.createDateComponent=function(){var e=this,t=so.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:Pe(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new oo(this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},Wn([rt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Wn([qt("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Wn([qt("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(kn),Bn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Un=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bn(t,e),t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getValue=function(e){var t=e.getValue();return(t=v(t))&&""===t.trim()&&(t=null),t},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.eValue1.onValueChange(t),this.eValue2.onValueChange(t)},t.prototype.setParams=function(o){e.prototype.setParams.call(this,o),this.textFilterParams=o,this.comparator=this.textFilterParams.textCustomComparator||t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter||(1==this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER),this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===Zt.One?this.eValue1:this.eValue2).setValue(e?e.filter:null)},t.prototype.createCondition=function(e){var o=e===Zt.One,n=o?this.getCondition1Type():this.getCondition2Type(),r=o?this.eValue1:this.eValue2,i=this.getValue(r),s={filterType:t.FILTER_TYPE,type:n};return this.doesFilterHaveHiddenInput(n)||(s.filter=i),s},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(t){e.prototype.resetUiToDefaults.call(this,t),[this.eValue1,this.eValue2].forEach((function(e){return e.setValue(null,t)})),this.resetPlaceholder()},t.prototype.resetPlaceholder=function(){var e=this.translate.bind(this)("filterOoo","Filter...");[this.eValue1,this.eValue2].forEach((function(t){return t.setInputPlaceholder(e)}))},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.setValue(e),this.eValue2.setValue(null)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===Zt.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-text-field class="ag-filter-filter" ref="eValue'+t+'"></ag-input-text-field>\n </div>'},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());x(this.eValue1.getGui(),t);var o=this.showValueFrom(this.getCondition2Type());x(this.eValue2.getGui(),o)},t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),this.eValue1.getInputElement().focus()},t.prototype.isConditionUiComplete=function(e){var t=e===Zt.One,o=t?this.getCondition1Type():this.getCondition2Type();return o!==ho.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||null!=this.getValue(t?this.eValue1:this.eValue2))},t.prototype.individualConditionPasses=function(e,t){var o=t.filter,n=t.type,r=this.textFilterParams.valueGetter(e.node),i=this.formatter(r),s=this.optionsFactory.getCustomOption(n);if(s&&(null!=o||s.hideFilterInput))return s.test(o,i);if(null==r)return n===ho.NOT_EQUAL||n===ho.NOT_CONTAINS;var a=this.formatter(o);return this.comparator(n,i,a)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[ho.CONTAINS,ho.NOT_CONTAINS,ho.EQUALS,ho.NOT_EQUAL,ho.STARTS_WITH,ho.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,o,n){switch(e){case t.CONTAINS:return o.indexOf(n)>=0;case t.NOT_CONTAINS:return-1===o.indexOf(n);case t.EQUALS:return o===n;case t.NOT_EQUAL:return o!=n;case t.STARTS_WITH:return 0===o.indexOf(n);case t.ENDS_WITH:var r=o.lastIndexOf(n);return r>=0&&r===o.length-n.length;default:return console.warn("invalid filter type "+e),!1}},Un([qt("eValue1")],t.prototype,"eValue1",void 0),Un([qt("eValue2")],t.prototype,"eValue2",void 0),t}(ho),zn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Yn=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zn(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){if(!this.isEventFromFloatingFilter(t)){this.setLastTypeFromModel(e);var o=this.getTextFromModel(e);this.eFloatingFilterInput.setValue(o);var n=this.canWeEditAfterModelFromParentFilter(e);this.setEditable(n)}},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=so.isUseApplyButton(this.params.filterParams);var o=so.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n=Pe(this.syncUpWithParentFilter.bind(this),o),r=this.eFloatingFilterInput.getGui();this.addDestroyableEventListener(r,"input",n),this.addDestroyableEventListener(r,"keypress",n),this.addDestroyableEventListener(r,"keydown",n);var i=t.column.getDefinition();i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0)},t.prototype.syncUpWithParentFilter=function(e){var t=this,o=this.eFloatingFilterInput.getValue(),n=We(e,ke.KEY_ENTER);this.applyActive&&!n||this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),o)}))},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},Yn([qt("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),Yn([tt],t.prototype,"postConstruct",null),t}(kn),qn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qn(t,e),t.prototype.getDefaultFilterOptions=function(){return Pn.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==ho.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(Kn),Qn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qn(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return jn.DEFAULT_FILTER_OPTIONS},t}(Kn),Zn=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(rn=nn||(nn={}))[rn.DEFAULT=0]="DEFAULT",rn[rn.REGISTERED=1]="REGISTERED";var Jn,er=function(){function e(){this.agGridDefaults={agDateInput:Mn,agColumnHeader:bo,agColumnGroupHeader:So,agTextColumnFloatingFilter:Xn,agNumberColumnFloatingFilter:$n,agDateColumnFloatingFilter:Hn,agAnimateShowChangeCellRenderer:cn,agAnimateSlideCellRenderer:hn,agGroupCellRenderer:un,agGroupRowRenderer:un,agLoadingCellRenderer:yn,agCellEditor:to,agTextCellEditor:to,agSelectCellEditor:Cn,agPopupTextCellEditor:En,agPopupSelectCellEditor:Rn,agLargeTextCellEditor:Sn,agTextColumnFilter:jn,agNumberColumnFilter:Pn,agDateColumnFilter:mo,agLoadingOverlay:An,agNoRowsOverlay:xn,agTooltipComponent:Fn},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=t},e.prototype.registerComponent=function(e,t){var o=this.translateIfDeprecated(e);this.frameworkComponents[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComponents[o]=t},e.prototype.registerFwComponent=function(e,t){var o=this.translateIfDeprecated(e);this.jsComponents[o]?console.error("Trying to register a component that you have already registered for plain javascript: "+o):this.frameworkComponents[o]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:nn.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:nn.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:nn.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-Grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(qe.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},Zn([rt("gridOptions")],e.prototype,"gridOptions",void 0),Zn([rt("context")],e.prototype,"context",void 0),Zn([tt],e.prototype,"init",null),e=Zn([nt("userComponentRegistry")],e)}(),tr=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var o=0;o<e.children.length;o++)this.depthFirstSearchChangedPath(e.children[o],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,o){if(e.childrenAfterGroup)for(var n=0;n<e.childrenAfterGroup.length;n++){var r=e.childrenAfterGroup[n];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[n],t,o):o&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,o=0;!this.mapToItems[t.id];){var n={rowNode:t,children:null};this.mapToItems[t.id]=n,o++,t=t.parent}return o},e.prototype.populateColumnsMap=function(e,t){var o=this;if(this.keepingColumns&&t)for(var n=e;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),t.forEach((function(e){return o.nodeIdsToColumns[n.id][e.getId()]=!0})),n=n.parent},e.prototype.linkPathItems=function(e,t){for(var o=e,n=0;n<t;n++){var r=this.mapToItems[o.id],i=this.mapToItems[o.parent.id];i.children||(i.children=[]),i.children.push(r),o=o.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return o[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!o[e.getId()]}))},e}(),or=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},nr=function(){function e(){this.events=[]}var t,o;return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.events.push(this.eventService.addEventListener(Et.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.events.push(this.eventService.addEventListener(Et.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)))},e.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()})),this.events=[]},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return qe.iterateObject(this.selectedNodes,(function(t,o){o&&e.push(o)})),e},e.prototype.getSelectedRows=function(){var e=[];return qe.iterateObject(this.selectedNodes,(function(t,o){o&&o.data&&e.push(o.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;qe.iterateObject(this.selectedNodes,(function(t,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new tr(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,o={},n=0;return qe.iterateObject(this.selectedNodes,(function(r,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];n+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(o[i.parent.id]=i.parent)}})),qe.iterateObject(o,(function(e,t){t.calculateSelectedFromChildren()})),n},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){qe.exists(t)&&e.id!==t.id&&(qe.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},e.prototype.syncInNewRowNode=function(e){qe.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(o){for(var n=0,r=o.length;n<r;n++){var i=o[n];i.isSelected()?t.push(i):i.group&&i.children&&e(i.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")}else console.warn("getBestCostNodeSelection is only available when using normal row model")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return qe.iterateObject(this.selectedNodes,(function(t,o){o&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},o=this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else qe.iterateObject(this.selectedNodes,(function(e,o){o&&t(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==ke.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,o=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(o):t.forEachNode(o),this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var o=this.rowModel.getRow(e);this.selectNode(o,t)},or([rt("eventService")],e.prototype,"eventService",void 0),or([rt("rowModel")],e.prototype,"rowModel",void 0),or([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),or([rt("columnApi")],e.prototype,"columnApi",void 0),or([rt("gridApi")],e.prototype,"gridApi",void 0),or([(t=0,o=at("loggerFactory"),function(e,n){o(e,n,t)})],e.prototype,"setBeans",null),or([tt],e.prototype,"init",null),or([ot],e.prototype,"destroy",null),e=or([nt("selectionController")],e)}(),rr=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ir=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error("ag-Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o){void 0===o&&(o=!0),this.columnController.setColumnWidths([{key:e,newWidth:t}],!1,o)},e.prototype.setColumnWidths=function(e,t){void 0===t&&(t=!0),this.columnController.setColumnWidths(e,!1,t)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e,t){return this.columnController.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){return this.columnController.autoSizeColumns(e,t,"api")},e.prototype.autoSizeAllColumns=function(e){this.columnController.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},rr([rt("columnController")],e.prototype,"columnController",void 0),e=rr([nt("columnApi")],e)}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
Jn=e.CellRangeType||(e.CellRangeType={}))[Jn.VALUE=0]="VALUE",Jn[Jn.DIMENSION=1]="DIMENSION";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var sr,ar,lr,ur=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(sr=e.DragSourceType||(e.DragSourceType={}))[sr.ToolPanel=0]="ToolPanel",sr[sr.HeaderCell=1]="HeaderCell",sr[sr.RowDrag=2]="RowDrag",sr[sr.ChartPanel=3]="ChartPanel",(ar=e.VerticalDirection||(e.VerticalDirection={}))[ar.Up=0]="Up",ar[ar.Down=1]="Down",(lr=e.HorizontalDirection||(e.HorizontalDirection={}))[lr.Left=0]="Left",lr[lr.Right=1]="Right";var pr,cr,dr=function(){function t(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var o;return o=t,t.prototype.init=function(){this.ePinnedIcon=qe.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=qe.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=qe.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=qe.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=qe.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=qe.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=qe.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=qe.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=qe.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},t.prototype.removeDragSource=function(e){var t=qe.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),qe.removeFromArray(this.dragSourceAndParamsList,t))},t.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(e,t){var o=this.getHorizontalDirection(e),n=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var r=qe.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(r!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,n,t),this.enterDragTargetIfExists(r,e,o,n,t),this.lastDropTarget=r;else if(r&&r.onDragging){var i=this.createDropTargetEvent(r,e,o,n,t);r.onDragging(i)}},t.prototype.enterDragTargetIfExists=function(e,t,o,n,r){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,o,n,r);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(e,t,o,n){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,o,n);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],o=e.getSecondaryContainers?e.getSecondaryContainers():null;return o&&(t=t.concat(o)),t},t.prototype.isMouseOnDropTarget=function(e,t){var o=!1;return this.getAllContainersFromDropTarget(t).filter((function(e){return e})).forEach((function(t){var n=t.getBoundingClientRect();if(0!==n.width&&0!==n.height){var r=e.clientX>=n.left&&e.clientX<=n.right,i=e.clientY>=n.top&&e.clientY<=n.bottom;r&&i&&(o=!0)}})),o&&t.isInterestedIn(this.dragSource.type)},t.prototype.addDropTarget=function(e){this.dropTargets.push(e)},t.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},t.prototype.findExternalZone=function(e){var t=this.dropTargets.filter((function(e){return e.external}));return qe.find(t,(function(t){return t.getContainer()===e.getContainer()}))},t.prototype.getHorizontalDirection=function(t){var o=this.eventLastTime.clientX,n=t.clientX;return o===n?null:o>n?e.HorizontalDirection.Left:e.HorizontalDirection.Right},t.prototype.getVerticalDirection=function(t){var o=this.eventLastTime.clientY,n=t.clientY;return o===n?null:o>n?e.VerticalDirection.Up:e.VerticalDirection.Down},t.prototype.createDropTargetEvent=function(e,t,o,n,r){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,p=a.dragItem,c=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:n,hDirection:o,dragSource:c,fromNudge:r,dragItem:p,api:l,columnApi:u,dropZoneTarget:i}},t.prototype.positionGhost=function(e){var t=this.eGhost,o=t.getBoundingClientRect().height,n=qe.getBodyWidth()-2,r=qe.getBodyHeight()-2,i=e.pageY-o/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=window.pageYOffset||a.documentElement.scrollTop,u=window.pageXOffset||a.documentElement.scrollLeft;n>0&&s+t.clientWidth>n+u&&(s=n+u-t.clientWidth),s<0&&(s=0),r>0&&i+t.clientHeight>r+l&&(i=r+l-t.clientHeight),i<0&&(i=0),t.style.left=s+"px",t.style.top=i+"px"},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=qe.loadTemplate(o.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&qe.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;qe.isFunction(n)&&(n=n()),t.innerHTML=qe.escape(n),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument();this.eGhostParent=r.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(e,t){var n;switch(void 0===t&&(t=!1),qe.clearElement(this.eGhostIcon),e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}qe.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',ur([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ur([rt("dragService")],t.prototype,"dragService",void 0),ur([rt("environment")],t.prototype,"environment",void 0),ur([rt("columnApi")],t.prototype,"columnApi",void 0),ur([rt("gridApi")],t.prototype,"gridApi",void 0),ur([tt],t.prototype,"init",null),ur([ot],t.prototype,"destroy",null),t=o=ur([nt("dragAndDropService")],t)}(),hr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),fr=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},gr=function(t){function o(e,o,n,r){var i=t.call(this,'<div class="ag-drag-handle ag-row-drag" role="presentation"></div>')||this;return i.rowNode=e,i.column=o,i.cellValue=n,i.beans=r,i}return hr(o,t),o.prototype.postConstruct=function(){this.getGui().appendChild(qe.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new mr(this,this.beans,this.rowNode,this.column):new vr(this,this.beans,this.rowNode,this.column);this.addFeature(e,this.beans.context)},o.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isEnableMultiRowDragging())return 1;var e=this.beans.selectionController.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},o.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&qe.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},o.prototype.addDragSource=function(){var t=this,o={rowNode:this.rowNode,columns:[this.column],defaultTextValue:this.cellValue},n=this.column.getColDef().rowDragText,r={type:e.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=t.getSelectedCount();return n?n(o,e):1===e?t.cellValue:e+" rows"},getDragItem:function(){return o},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return t.beans.dragAndDropService.removeDragSource(r)}))},fr([tt],o.prototype,"postConstruct",null),o}(zt),yr=function(e){function t(t,o,n){var r=e.call(this)||this;return r.parent=t,r.column=n,r.rowNode=o,r}return hr(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);qe.isFunction(this.column.getColDef().rowDrag)?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(Bt),vr=function(e){function t(t,o,n,r){var i=e.call(this,t,n,r)||this;return i.beans=o,i}return hr(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},fr([tt],t.prototype,"postConstruct",null),t}(yr),mr=function(e){function t(t,o,n,r){var i=e.call(this,t,n,r)||this;return i.beans=o,i}return hr(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridPanel.getRowDragFeature(),t=e&&e.shouldPreventRowMove(),o=this.beans.gridOptionsWrapper.isSuppressRowDrag(),n=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!n||o;this.setDisplayedOrVisible(r)},fr([tt],t.prototype,"postConstruct",null),t}(yr),Cr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),wr=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.getGuiCalledOnChild=!1,o.cellEditor=t,o}return Cr(t,e),t.prototype.onKeyDown=function(e){qe.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(o){var n=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){n.cellEditor.destroy&&n.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.getPopupPosition=function(){if(this.cellEditor.getPopupPosition)return this.cellEditor.getPopupPosition()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Kt),Er=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),br=function(e){function t(t,o,n,r,i){var s=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return s.rowNode=t,s.column=o,s.cellValue=n,s.beans=r,s.eCell=i,s}return Er(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(qe.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,o=this.column.getColDef().dndSourceOnRowDrag,n=qe.isBrowserIE();n||e.dataTransfer.setDragImage(this.eCell,0,0);o?o({rowNode:this.rowNode,dragEvent:e}):function(){try{var o=JSON.stringify(t.rowNode.data);n?e.dataTransfer.setData("text",o):(e.dataTransfer.setData("application/json",o),e.dataTransfer.setData("text/plain",o))}catch(r){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([tt],t.prototype,"postConstruct",null),t}(zt),Rr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Or=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(cr=pr||(pr={}))[cr.NOTHING=0]="NOTHING",cr[cr.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",cr[cr.SHOWING=2]="SHOWING";var Sr,_r,Tr=function(e){function t(t,o){var n=e.call(this)||this;return n.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=pr.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n.location=o,n}return Rr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addDestroyableEventListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addDestroyableEventListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onMouseMove.bind(this)),this.addDestroyableEventListener(e,"mousedown",this.onMouseDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=pr.WAITING_TO_SHOW},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===pr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=pr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===pr.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=pr.NOTHING},t.prototype.destroyTooltipComp=function(){qe.addCssClass(this.tooltipComp.getGui(),"ag-tooltip-hiding");var e=this.tooltipPopupDestroyFunc,t=this.tooltipComp;window.setTimeout((function(){e(),t.destroy&&t.destroy()}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=this.parentComp.getTooltipText();if(e){this.state=pr.SHOWING,this.tooltipInstanceCount++;var t={location:this.location,api:this.gridApi,columnApi:this.columnApi,colDef:this.parentComp.getComponentHolder(),column:this.parentComp.getColumn,context:this.gridOptionsWrapper.getContext(),rowIndex:this.parentComp.getCellPosition&&this.parentComp.getCellPosition().rowIndex,value:e},o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.newTooltipComponent(t).then(o)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==pr.SHOWING||this.tooltipInstanceCount!==e)t.destroy&&t.destroy();else{var o=t.getGui();this.tooltipComp=t,qe.containsClass(o,"ag-tooltip")||qe.addCssClass(o,"ag-tooltip-custom"),this.tooltipPopupDestroyFunc=this.popupService.addPopup(!1,o,!1),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Or([rt("popupService")],t.prototype,"popupService",void 0),Or([rt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Or([rt("columnApi")],t.prototype,"columnApi",void 0),Or([rt("gridApi")],t.prototype,"gridApi",void 0),Or([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Or([tt],t.prototype,"postConstruct",null),t}(Bt),Pr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Dr=function(){return(Dr=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ar=function(t){function o(e,o,n,r,i,s,a){var l=t.call(this)||this;if(l.hasChartRange=!1,l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=e,l.beans=o,l.column=n,l.rowNode=r,l.rowComp=i,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=l.beans.rangeController&&o.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusController.isCellFocused(l.cellPosition),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled&&l.beans.rangeController){var u=l.beans.rangeController;l.rangeCount=u.getCellRangeCount(l.cellPosition),l.hasChartRange=l.getHasChartRange()}return l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return Pr(o,t),o.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],o=this.column,n=this.getCellWidth(),r=this.modifyLeftForPrintLayout(this.getCellLeft()),i=this.getInitialValueToRender(),s=qe.get(this.column,"colDef.template",null)?i:qe.escape(i);this.tooltip=this.getToolTip();var a=qe.escape(this.tooltip),l=qe.escape(o.getId()),u="",p="",c=this.preProcessStylesFromColDef(),d=this.getInitialCssClasses(),h=this.getStylesForRowSpanning(),f=qe.escape(this.getAriaColumnIndex());return this.usingWrapper&&(u='<div ref="eCellWrapper" class="ag-cell-wrapper" role="presentation">\n <span ref="eCellValue" role="gridcell" aria-colindex="'+f+'" class="ag-cell-value" '+e+">",p="</span></div>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="'+(this.usingWrapper?"presentation":"gridcell")+'"'),this.usingWrapper||t.push(" aria-colindex="+f),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+qe.escape(d.join(" "))+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&qe.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+Number(n)+"px; left: "+Number(r)+"px; "+qe.escape(c)+" "+qe.escape(h)+'" >'),t.push(u),qe.exists(s,!0)&&t.push(s),t.push(p),t.push("</div>"),t.join("")},o.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},o.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.refreshHandle(),qe.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.addFeature(new Tr(this,"cell"),this.beans.context)},o.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);qe.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},o.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},o.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?qe.last(this.colsSpanning):this.column).getLeft()},o.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},o.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},o.prototype.setupColSpan=function(){qe.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},o.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var o=this.column,n=this.column.getPinned(),r=0;o&&r<e&&(t.push(o),(o=this.beans.columnController.getDisplayedColAfter(o))&&!qe.missing(o))&&n===o.getPinned();r++);return t},o.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();qe.areEqual(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},o.prototype.getAriaColumnIndex=function(){return(this.beans.columnController.getAllDisplayedColumns().indexOf(this.column)+1).toString()},o.prototype.refreshAriaIndex=function(){var e=this.getAriaColumnIndex();(this.usingWrapper?this.eCellValue:this.getGui()).setAttribute("aria-colindex",e)},o.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-auto-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),qe.pushAll(e,this.preProcessClassesFromColDef()),qe.pushAll(e,this.preProcessCellClassRules()),qe.pushAll(e,this.getInitialRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},o.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},o.prototype.getRenderedRow=function(){return this.rowComp},o.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},o.prototype.getCellRenderer=function(){return this.cellRenderer},o.prototype.getCellEditor=function(){return this.cellEditor},o.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editingCell){var t=this.getComponentHolder(),o=e&&e.newData,n=e&&e.suppressFlash||t.suppressCellFlash,r=e&&e.forceRefresh,i=this.value;this.value=this.getValue();var s=!this.valuesAreEqual(i,this.value);if(r||s){this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value),!o&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!n&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},o.prototype.flashCell=function(){this.animateCell("data-changed")},o.prototype.animateCell=function(e){var t="ag-cell-"+e,o="ag-cell-"+e+"-animation",n=this.getGui();qe.addCssClass(n,t),qe.removeCssClass(n,o),window.setTimeout((function(){qe.removeCssClass(n,t),qe.addCssClass(n,o),window.setTimeout((function(){qe.removeCssClass(n,o)}),1e3)}),500)},o.prototype.replaceContentsAfterRefresh=function(){qe.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},o.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=Dr({},this.rowNode.data),this.angular1Compile())},o.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){return t.remove()}))}}},o.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&qe.addStylesToElement(this.getGui(),e)},o.prototype.preProcessStylesFromColDef=function(){return qe.cssStyleObjectToMarkup(this.processStylesFromColDef())},o.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(o)}else t=e.cellStyle;return t}},o.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return qe.addCssClass(e.getGui(),t)}))},o.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},o.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},o.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.chooseCellRenderer(),this.usingCellRenderer)this.createCellRendererInstance();else{var o=this.getValueToUse();null!=o&&(this.eParentOfValue.innerHTML=qe.escape(o))}},o.prototype.attemptCellRendererRefresh=function(){if(qe.missing(this.cellRenderer)||!this.cellRenderer||qe.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),o=this.cellRenderer.refresh(t);return!0===o||void 0===o},o.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){var t=qe.exists(e);t&&this.tooltip===e.toString()||(qe.exists(this.tooltip),this.tooltip=e,this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&(t?this.eParentOfValue.setAttribute("title",this.tooltip):this.eParentOfValue.removeAttribute("title")))}},o.prototype.valuesAreEqual=function(e,t){var o=this.getComponentHolder(),n=o?o.equals:null;return n?n(e,t):e===t},o.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&qe.exists(t))return qe.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var o=e.tooltipValueGetter||e.tooltip;return o?o({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data}):null},o.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?qe.escape(this.tooltip):this.tooltip},o.prototype.processCellClassRules=function(e,t){var o=this.getComponentHolder();this.beans.stylingService.processClassRules(o.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},o.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){return qe.addCssClass(e.getGui(),t)}),(function(t){return qe.removeCssClass(e.getGui(),t)}))},o.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){return e.push(t)}),(function(e){})),e},o.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,this.includeRowDraggingComponent=!1,void(this.includeDndSourceComponent=!1);var t="function"==typeof e.checkboxSelection,o="function"==typeof e.rowDrag,n="function"==typeof e.dndSource;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=o||!0===e.rowDrag,this.includeDndSourceComponent=n||!0===e.dndSource;var r=this.beans.gridOptionsWrapper.isEnableCellTextSelection();this.usingWrapper=r||this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},o.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var t=this.createCellRendererParams(),n=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",t);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",t)&&this.rowNode.rowPinned?(this.cellRendererType=o.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):n?(this.cellRendererType=o.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},o.prototype.createCellRendererInstance=function(e){var t=this;if(void 0===e&&(e=!1),this.usingCellRenderer){var n=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(n||r||this.autoHeightCell)&&(e=!1);var i=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===o.CELL_RENDERER_TYPE_NORMAL;this.createCellRendererFunc=function(){t.createCellRendererFunc=null;var e=t.beans.userComponentFactory.newCellRenderer(t.getComponentHolder(),i,!a);e&&e.then(s)},e?this.beans.taskQueue.createTask(this.createCellRendererFunc,this.rowNode.rowIndex,"createTasksP2"):this.createCellRendererFunc()}},o.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),qe.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},o.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,o){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,o)}}},o.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},o.prototype.getValueToUse=function(){return null!=this.valueFormatted?this.valueFormatted:this.value},o.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},o.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),n=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&o&&!n;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},o.prototype.onMouseEvent=function(e,t){if(!qe.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},o.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,Et.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(o)}),0)},o.prototype.createEvent=function(e,t){var o={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(o.$scope=this.scope),o},o.prototype.onMouseOut=function(e){var t=this.createEvent(e,Et.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},o.prototype.onMouseOver=function(e){var t=this.createEvent(e,Et.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},o.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,Et.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},o.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},o.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},o.prototype.startEditingIfEnabled=function(e,t,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var n=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(e,t,o);this.createCellEditor(r).then(n),qe.missing(this.cellEditor)&&o&&this.focusCell(!0)}},o.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(o){if(!(o.isPopup&&o.isPopup()))return o;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var n=new wr(o);return t.beans.context.wireBean(n),n.init(e),n}))},o.prototype.afterCellEditorCreated=function(e,t){if(!(e!==this.cellEditorVersion)&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var o=this.createEvent(null,Et.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(o)}else t.destroy&&t.destroy()},o.prototype.addInCellEditor=function(){qe.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},o.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null,o=this.beans.gridOptionsWrapper.isStopEditingWhenGridLosesFocus();this.hideEditorPopup=this.beans.popupService.addPopup(o,t,!0,(function(){e.onPopupEditorClosed()}));var n={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0};"under"===(this.cellEditor&&this.cellEditor.getPopupPosition?this.cellEditor.getPopupPosition():"over")?this.beans.popupService.positionPopupUnderComponent(n):this.beans.popupService.positionPopupOverComponent(n),this.angular1Compile()},o.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusController.isCellFocused(this.cellPosition)&&this.focusCell(!0))},o.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;qe.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),qe.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),qe.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),qe.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),qe.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)}},o.prototype.createCellEditorParams=function(e,t,o){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},o.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},o.prototype.parseValue=function(e){var t=this.getComponentHolder(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},n=t.valueParser;return qe.exists(n)?this.beans.expressionService.evaluate(n,o):e},o.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,e)},o.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},o.prototype.isEditing=function(){return this.editingCell},o.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case ke.KEY_ENTER:this.onEnterKeyDown();break;case ke.KEY_F2:this.onF2KeyDown();break;case ke.KEY_ESCAPE:this.onEscapeKeyDown();break;case ke.KEY_TAB:this.onTabKeyDown(e);break;case ke.KEY_BACKSPACE:case ke.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case ke.KEY_DOWN:case ke.KEY_UP:case ke.KEY_RIGHT:case ke.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},o.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},o.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.cellPosition,!0),e.preventDefault())},o.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController){var t=this.beans.rangeController.extendLatestRangeInDirection(e);t&&this.beans.rowRenderer.ensureCellVisible(t)}},o.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},o.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},o.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,ke.KEY_DOWN,this.cellPosition,!1):this.startRowOrCellEdit(ke.KEY_ENTER)},o.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,ke.KEY_DOWN,this.cellPosition,!1)},o.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(ke.KEY_F2)},o.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},o.prototype.onKeyPress=function(e){if(!(qe.getTarget(e)!==this.getGui())&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):qe.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},o.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.editingCell&&t.isRowSelection()){var o=!this.rowNode.isSelected();(o||t.isRowDeselection())&&this.rowNode.setSelected(o)}e.preventDefault()},o.prototype.onMouseDown=function(e){var t=e.ctrlKey,o=e.metaKey,n=e.shiftKey,r=e.target,i=this.beans,s=i.eventService,a=i.rangeController;if(!this.isRightClickInExistingRange(e)){if(!n||a&&!a.getCellRanges().length){var l=(qe.isBrowserIE()||qe.isBrowserEdge())&&r.classList.contains("ag-cell");this.focusCell(l)}else e.preventDefault();if(!this.containsWidget(r)){if(a){var u=this.cellPosition;if(n)a.extendLatestRangeToCell(u);else{var p=t||o;a.setRangeToCell(u,p)}}s.dispatchEvent(this.createEvent(e,Et.EVENT_CELL_MOUSE_DOWN))}}},o.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeController;if(t&&(t.isCellInAnyRange(this.getCellPosition())&&2===e.button))return!0;return!1},o.prototype.containsWidget=function(e){return qe.isElementChildOfClass(e,"ag-selection-checkbox",3)},o.prototype.isDoubleClickOnIPad=function(){if(!qe.isIOSUserAgent()||qe.isEventSupported("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},o.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,o=t.eventService,n=t.gridOptionsWrapper,r=this.createEvent(e,Et.EVENT_CELL_CLICKED);o.dispatchEvent(r);var i=this.getComponentHolder();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(n.isSingleClickEdit()||i.singleClickEdit)&&!n.isSuppressClickEdit()&&this.startRowOrCellEdit()},o.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},o.prototype.getCellPosition=function(){return this.cellPosition},o.prototype.getParentRow=function(){return this.eParentRow},o.prototype.setParentRow=function(e){this.eParentRow=e},o.prototype.getColumn=function(){return this.column},o.prototype.getComponentHolder=function(){return this.column.getColDef()},o.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},o.prototype.destroy=function(){this.createCellRendererFunc&&this.beans.taskQueue.cancelTask(this.createCellRendererFunc),this.stopEditing(),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null),this.selectionHandle&&this.selectionHandle.destroy(),t.prototype.destroy.call(this)},o.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px",this.refreshAriaIndex()},o.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout&&this.column.getPinned()!==ke.PINNED_LEFT?this.column.getPinned()===ke.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},o.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},o.prototype.getRangeBorders=function(){var e,t,o=this,n=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,s=!1,a=!1,l=this.cellPosition.column,u=this.beans,p=u.rangeController,c=u.columnController;n?(e=c.getDisplayedColAfter(l),t=c.getDisplayedColBefore(l)):(e=c.getDisplayedColBefore(l),t=c.getDisplayedColAfter(l));var d=p.getCellRanges().filter((function(e){return p.isCellInSpecificRange(o.cellPosition,e)}));e||(a=!0),t||(i=!0);for(var h=0;h<d.length&&!(r&&i&&s&&a);h++){var f=d[h],g=p.getRangeStartRow(f),y=p.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellPosition)&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(y,this.cellPosition)&&(s=!0),!a&&f.columns.indexOf(e)<0&&(a=!0),!i&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:s,left:a}},o.prototype.getInitialRangeClasses=function(){var e=[];if(!this.rangeSelectionEnabled||!this.rangeCount)return e;e.push("ag-cell-range-selected"),this.hasChartRange&&e.push("ag-cell-range-chart");var t=Math.min(this.rangeCount,4);if(e.push("ag-cell-range-selected-"+t),this.isSingleCell()&&e.push("ag-cell-range-single-cell"),this.rangeCount>0){var o=this.getRangeBorders();o.top&&e.push("ag-cell-range-top"),o.right&&e.push("ag-cell-range-right"),o.bottom&&e.push("ag-cell-range-bottom"),o.left&&e.push("ag-cell-range-left")}return this.selectionHandle&&e.push("ag-cell-range-handle"),e},o.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},o.prototype.onRangeSelectionChanged=function(){var e=this.beans.rangeController;if(e){var t=this.cellPosition,o=this.rangeCount,n=e.getCellRangeCount(t),r=this.getGui();o!==n&&(qe.addOrRemoveCssClass(r,"ag-cell-range-selected",0!==n),qe.addOrRemoveCssClass(r,"ag-cell-range-selected-1",1===n),qe.addOrRemoveCssClass(r,"ag-cell-range-selected-2",2===n),qe.addOrRemoveCssClass(r,"ag-cell-range-selected-3",3===n),qe.addOrRemoveCssClass(r,"ag-cell-range-selected-4",n>=4),this.rangeCount=n);var i=this.getHasChartRange();i!==this.hasChartRange&&(this.hasChartRange=i,qe.addOrRemoveCssClass(r,"ag-cell-range-chart",this.hasChartRange)),this.updateRangeBorders(),qe.addOrRemoveCssClass(r,"ag-cell-range-single-cell",this.isSingleCell()),this.refreshHandle()}},o.prototype.getHasChartRange=function(){var t=this.beans.rangeController;if(!this.rangeCount||!t)return!1;var o=t.getCellRanges();return o.length>0&&o.every((function(t){return qe.includes([e.CellRangeType.DIMENSION,e.CellRangeType.VALUE],t.type)}))},o.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,o=t.gridOptionsWrapper,n=t.rangeController,r=n.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var s=qe.last(r),a=this.getCellPosition(),l=1===i&&(o.isEnableFillHandle()||o.isEnableRangeHandle())&&!this.editingCell;if(this.hasChartRange){var u=r[0].type===e.CellRangeType.DIMENSION&&n.isCellInSpecificRange(a,r[0]);qe.addOrRemoveCssClass(this.getGui(),"ag-cell-range-chart-category",u),l=s.type===e.CellRangeType.VALUE}return l&&null!=s.endRow&&n.isContiguousRange(s)&&n.isBottomRightCell(s,a)},o.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,o=e.context,n=e.rangeController,r=qe.last(n.getCellRanges()).type,i=t.isEnableFillHandle()&&qe.missing(r)?"fill":"range";this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle.destroy(),this.selectionHandle=void 0),this.selectionHandle||(this.selectionHandle=o.createComponentFromElement(document.createElement("ag-"+i+"-handle"))),this.selectionHandle.refresh(this)},o.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},o.prototype.refreshHandle=function(){if(this.beans.rangeController){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle.destroy(),this.selectionHandle=null),e&&this.addSelectionHandle(),qe.addOrRemoveCssClass(this.getGui(),"ag-cell-range-handle",!!this.selectionHandle)}},o.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),o=!t&&e.top,n=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left,s=this.getGui();qe.addOrRemoveCssClass(s,"ag-cell-range-top",o),qe.addOrRemoveCssClass(s,"ag-cell-range-right",n),qe.addOrRemoveCssClass(s,"ag-cell-range-bottom",r),qe.addOrRemoveCssClass(s,"ag-cell-range-left",i)},o.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,qe.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},o.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,qe.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},o.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.eCellValue=this.getRefElement("eCellValue"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},o.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},o.prototype.addRowDragging=function(){var e=this.beans.gridOptionsWrapper.isPagination(),t=this.beans.gridOptionsWrapper.isRowDragManaged(),o=this.beans.gridOptionsWrapper.isRowModelDefault();if(t){if(!o)return void qe.doOnce((function(){return console.warn("ag-Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(e)return void qe.doOnce((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var n=new gr(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(n,this.beans.context),this.eCellWrapper.insertBefore(n.getGui(),this.eParentOfValue)},o.prototype.addDndSource=function(){var e=new br(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.addFeature(e,this.beans.context),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},o.prototype.addSelectionCheckbox=function(){var e=new Wo;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},o.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsWrapper.setDomData(t,o.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(t,o.DOM_DATA_KEY_CELL_COMP,null)}))},o.prototype.isSingleCell=function(){var e=this.beans.rangeController;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},o.prototype.onCellFocused=function(e){var t=this.beans.focusController.isCellFocused(this.cellPosition);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&qe.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t);if(t&&e&&e.forceBrowserFocus){var o=this.getFocusableElement();o.focus(),document.activeElement&&document.activeElement!==document.body||o.focus()}var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editingCell||this.stopRowOrCellEdit()},o.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},o.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,o=!1,n=this.getValue();if(!e)this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),o=!0);if(this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(qe.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var r=this.cellRendererGui;r&&this.getGui().appendChild(r)}this.setInlineEditingClass(),o&&t!==n&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var i=this.createEvent(null,Et.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)}else this.editingCell=!1},o.DOM_DATA_KEY_CELL_COMP="cellComp",o.CELL_RENDERER_TYPE_NORMAL="cellRenderer",o.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",o}(zt),Nr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xr=function(){return(xr=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ir=function(t){function o(e,o,n,r,i,s,a,l,u,p,c){var d=t.call(this)||this;return d.eAllRowContainers=[],d.active=!0,d.rowContainerReadyCount=0,d.refreshNeeded=!1,d.columnRefreshPending=!1,d.cellComps={},d.createSecondPassFuncs=[],d.removeFirstPassFuncs=[],d.removeSecondPassFuncs=[],d.initialised=!1,d.elementOrderChanged=!1,d.lastMouseDownOnDragger=!1,d.parentScope=e,d.beans=a,d.bodyContainerComp=o,d.pinnedLeftContainerComp=n,d.pinnedRightContainerComp=r,d.fullWidthContainerComp=i,d.rowNode=s,d.rowIsEven=d.rowNode.rowIndex%2==0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=u,d.printLayout=p,d.embedFullWidth=c,d.setAnimateFlags(l),d}return Nr(o,t),o.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEach((function(e){return qe.removeCssClass(e,"ag-opacity-zero")}))}))},o.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var o=[],n=this.rowNode.rowHeight,r=this.getInitialRowClasses(t).join(" "),i=qe.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=qe.escape(a),u=this.getInitialRowTopStyle(),p=this.rowNode.getRowIndexString(),c=this.beans.gridPanel.headerRootComp.getHeaderRowCount();return o.push("<div"),o.push(' role="row"'),o.push(' row-index="'+p+'" aria-rowindex="'+(c+this.rowNode.rowIndex+1)+'"'),o.push(i?' row-id="'+i+'"':""),o.push(a?' row-business-key="'+l+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+r+'"'),o.push(' style="height: '+n+"px; "+u+" "+s+'">'),o.push(e),o.push("</div>"),o.join("")},o.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},o.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},o.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},o.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+o+"px; ":"transform: translateY("+o+"px);"},o.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},o.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},o.prototype.lazyCreateCells=function(e,t){if(this.active){var o=this.createCells(e);t.innerHTML=o.template,this.callAfterRowAttachedOnCells(o.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},o.prototype.createRowContainer=function(e,t,o){var n=this,r=this.useAnimationFrameForCreate,i=r?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(i.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(n.getCompId());n.afterRowAttached(e,s),o(s),r?n.beans.taskQueue.createTask(n.lazyCreateCells.bind(n,t,s),n.rowNode.rowIndex,"createTasksP1"):(n.callAfterRowAttachedOnCells(i.cellComps,s),n.rowContainerReadyCount=3)}))},o.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=xr({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},o.prototype.setupRowContainers=function(){var e=this.rowNode.isFullWidthCell(),t=this.beans.doingMasterDetail&&this.rowNode.detail,n=this.beans.columnController.isPivotMode(),r=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(n);this.rowNode.stub?this.createFullWidthRows(o.LOADING_CELL_RENDERER,o.LOADING_CELL_RENDERER_COMP_NAME):t?this.createFullWidthRows(o.DETAIL_CELL_RENDERER,o.DETAIL_CELL_RENDERER_COMP_NAME):e?this.createFullWidthRows(o.FULL_WIDTH_CELL_RENDERER,null):r?this.createFullWidthRows(o.GROUP_ROW_RENDERER,o.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},o.prototype.setupNormalRowContainers=function(){var e,t=this,o=[],n=[];this.printLayout?e=this.beans.columnController.getAllDisplayedColumns():(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return t.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,n,(function(e){return t.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,o,(function(e){return t.ePinnedLeftRow=e}))},o.prototype.createFullWidthRows=function(e,t){var o=this;if(this.fullWidthRow=!0,this.embedFullWidth){if(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,(function(e){o.eFullWidthRowBody=e}),(function(e){o.fullWidthRowComponentBody=e})),this.printLayout)return;this.createFullWidthRowContainer(this.pinnedLeftContainerComp,ke.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){o.eFullWidthRowLeft=e}),(function(e){o.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,ke.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){o.eFullWidthRowRight=e}),(function(e){o.fullWidthRowComponentRight=e}))}else this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){o.eFullWidthRow=e}),(function(e){o.fullWidthRowComponent=e}))},o.prototype.setAnimateFlags=function(e){if(e){var t=qe.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},o.prototype.isEditing=function(){return this.editingRow},o.prototype.stopRowEditing=function(e){this.stopEditing(e)},o.prototype.isFullWidth=function(){return this.fullWidthRow},o.prototype.refreshFullWidth=function(){var e=this,t=function(t,o,n){if(!t||!o)return!0;if(!o.refresh)return!1;var r=e.createFullWidthParams(t,n);return o.refresh(r)},o=t(this.eFullWidthRow,this.fullWidthRowComponent,null),n=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),r=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,ke.PINNED_LEFT),i=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,ke.PINNED_RIGHT);return o&&n&&r&&i},o.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,To.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,To.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,Et.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(e,Et.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},o.prototype.addListenersForCellComps=function(){var e=this;this.addDestroyableEventListener(this.rowNode,To.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addDestroyableEventListener(this.rowNode,To.EVENT_CELL_CHANGED,(function(t){e.forEachCellComp((function(e){return e.onCellChanged(t)}))}))},o.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},o.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},o.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},o.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},o.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.eAllRowContainers.forEach((function(t){qe.removeCssClass(t,"ag-row-highlight-above"),qe.removeCssClass(t,"ag-row-highlight-below"),e&&qe.addCssClass(t,"ag-row-highlight-"+e)}))},o.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},o.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},o.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},o.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},o.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponent),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponentBody),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,ke.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,ke.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},o.prototype.getContainerForCell=function(e){switch(e){case ke.PINNED_LEFT:return this.ePinnedLeftRow;case ke.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},o.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},o.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},o.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.createTask(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex,"createTasksP1")}else this.refreshNeeded=!0},o.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,o;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,o),this.elementOrderChanged=!1;var n=Object.keys(this.cellComps);e.forEach((function(e){return qe.removeFromArray(n,e.getId())})),t.forEach((function(e){return qe.removeFromArray(n,e.getId())})),o.forEach((function(e){return qe.removeFromArray(n,e.getId())}));var r=n.filter(this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(r)}},o.prototype.onColumnMoved=function(){this.elementOrderChanged=!0},o.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var o=t.cellComps[e];qe.missing(o)||(o.detach(),o.destroy(),t.cellComps[e]=null)}))},o.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),o=!0,n=this.cellComps[e];if(!n||this.isCellInWrongRow(n))return o;var r=n.isEditing(),i=this.beans.focusController.isCellFocused(n.getCellPosition());if(r||i){var s=n.getColumn();return!(t.indexOf(s)>=0)&&o}return o},o.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),o=e.getColumn().getPinned(),n=this.getContainerForCell(o),r=e.getParentRow();r!==n&&(r&&r.removeChild(t),n.appendChild(t),e.setParentRow(n),this.elementOrderChanged=!0)}},o.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),o=this.getContainerForCell(t.getPinned());return e.getParentRow()!==o},o.prototype.insertCellsIntoContainer=function(e,t){var o=this;if(e){var n=[],r=[];if(t.forEach((function(t){var i=t.getId(),s=o.cellComps[i];s?o.ensureCellInCorrectContainer(s):o.createNewCell(t,e,n,r)})),n.length>0&&(qe.appendHtml(e,n.join("")),this.callAfterRowAttachedOnCells(r,e)),this.elementOrderChanged&&this.beans.gridOptionsWrapper.isEnsureDomOrder()){var i=t.map((function(e){return o.getCellForCol(e)}));qe.setDomChildOrder(e,i)}}},o.prototype.addDomData=function(e){var t=this.beans.gridOptionsWrapper;t.setDomData(e,o.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){t.setDomData(e,o.DOM_DATA_KEY_RENDERED_ROW,null)}))},o.prototype.createNewCell=function(e,t,o,n){var r=new Ar(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),i=r.getCreateTemplate();o.push(i),n.push(r),this.cellComps[e.getId()]=r,r.setParentRow(t),this.elementOrderChanged=!0},o.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"mousedown":this.onRowMouseDown(t)}},o.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},o.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},o.prototype.onRowDblClick=function(e){if(!qe.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(Et.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},o.prototype.onRowMouseDown=function(e){this.lastMouseDownOnDragger=qe.isElementChildOfClass(e.target,"ag-row-drag",3)},o.prototype.onRowClick=function(e){if(!(qe.isStopPropagationForAgGrid(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Et.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,n=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):o?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!r&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:n})}}}},o.prototype.createFullWidthRowContainer=function(t,o,n,r,i,s,a){var l=this,u=this.createTemplate("",n);t.appendRowTemplate(u,(function(){var n=t.getRowElement(l.getCompId()),u=l.createFullWidthParams(n,o),p=function(e){if(l.isAlive()){var t=e.getGui();n.appendChild(t),a(e)}else e.destroy&&e.destroy()},c=l.beans.detailRowCompCache.get(l.rowNode,o);if(c)p(c);else{var d=l.beans.userComponentFactory.newFullWidthCellRenderer(u,r,i);if(!d){var h=ht.isRegistered(e.ModuleNames.MasterDetailModule);return void("agDetailCellRenderer"!==i||h?console.error("ag-Grid: fullWidthCellRenderer "+i+" not found"):console.warn("ag-Grid: cell renderer agDetailCellRenderer (for master detail) not found. Did you forget to include the master detail module?"))}d.then(p)}l.afterRowAttached(t,n),s(n),l.angular1Compile(n)}))},o.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},o.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},o.prototype.getInitialRowClasses=function(e){var t=[],o=this.beans.gridOptionsWrapper.isTreeData(),n=this.rowNode;return qe.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),n.isRowPinned()&&t.push("ag-row-pinned"),n.isSelected()&&t.push("ag-row-selected"),n.group?(t.push("ag-row-group"),t.push("ag-row-level-"+n.level),n.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(n.parent?n.parent.level+1:"0")),n.stub&&t.push("ag-row-loading"),this.fullWidthRow&&t.push("ag-full-width-row"),(o?n.allChildrenCount:n.group&&!n.footer)&&t.push(n.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),n.dragging&&t.push("ag-row-dragging"),qe.pushAll(t,this.processClassesFromGridOptions()),qe.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},o.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},o.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},o.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return qe.addOrRemoveCssClass(e,"ag-row-last",t)})))},o.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},o.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},o.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(Et.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},o.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(Et.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Et.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},o.prototype.startRowEditing=function(e,t,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),this.editingRow||(this.forEachCellComp((function(n){var r=n===o;r?n.startEditingIfEnabled(e,t,r):n.startEditingIfEnabled(null,null,r)})),this.setEditingRow(!0))},o.prototype.forEachCellComp=function(e){qe.iterateObject(this.cellComps,(function(t,o){o&&e(o)}))},o.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return qe.addCssClass(e,t)}))}))},o.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return qe.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return qe.removeCssClass(e,t)}))}))},o.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},o=this.beans.gridOptionsWrapper.getRowClass();if(o){if("function"==typeof o)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(o)}var n=this.beans.gridOptionsWrapper.getRowClassFunc();n&&t(n({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()}));return e},o.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return qe.cssStyleObjectToMarkup(e)},o.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return qe.addStylesToElement(t,e)}))},o.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,o=this.beans.gridOptionsWrapper.getRowStyleFunc();if(o)t=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope});return qe.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},o.prototype.createCells=function(e){var t=this,o=[],n=[];return e.forEach((function(e){var r=new Ar(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),i=r.getCreateTemplate();o.push(i),n.push(r),t.cellComps[e.getId()]=r})),{template:o.join(""),cellComps:n}},o.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-selected",e)}))},o.prototype.callAfterRowAttachedOnCells=function(e,t){var o=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),o.editingRow&&e.startEditingIfEnabled()}))},o.prototype.afterRowAttached=function(e,t){var o=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(qe.exists(o.rowNode.rowTop)){var e=o.roundRowTopToBounds(o.rowNode.rowTop);o.setRowTop(e)}else qe.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.createTask(this.addHoverFunctionality.bind(this,t),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t)},o.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,To.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||qe.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,To.EVENT_MOUSE_LEAVE,(function(){qe.removeCssClass(e,"ag-row-hover")})))},o.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,n=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),n)},o.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},o.prototype.onRowHeightChanged=function(){if(qe.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},o.prototype.addEventListener=function(e,o){"renderedRowRemoved"!==e&&"rowRemoved"!==e||(e=Et.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+Et.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.addEventListener.call(this,e,o)},o.prototype.removeEventListener=function(e,o){"renderedRowRemoved"!==e&&"rowRemoved"!==e||(e=Et.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Et.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.removeEventListener.call(this,e,o)},o.prototype.destroy=function(e){(void 0===e&&(e=!1),this.active=!1,this.destroyFullWidthComponents(),e)?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var o=this.createRowEvent(Et.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(o),this.beans.eventService.dispatchEvent(o),t.prototype.destroy.call(this)},o.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},o.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},o.prototype.onCellFocusChanged=function(){var e=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},o.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},o.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},o.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},o.prototype.setRowTop=function(e){if(!this.printLayout&&qe.exists(e)){var t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=o})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+o+")"}))}},o.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},o.prototype.getRowNode=function(){return this.rowNode},o.prototype.getRenderedCellForColumn=function(e){var t=this,o=this.cellComps[e.getColId()];if(o)return o;var n=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return t&&-1!==t.getColSpanningList().indexOf(e)}));return n.length?n[0]:void 0},o.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes())},o.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),o=this.rowNode.rowIndex%2==0,n=this.rowIsEven!==o,r=this.beans.gridPanel.headerRootComp.getHeaderRowCount();n&&(this.rowIsEven=o),this.eAllRowContainers.forEach((function(i){i.setAttribute("row-index",t),i.setAttribute("aria-rowindex",(r+e.rowNode.rowIndex+1).toString()),n&&(qe.addOrRemoveCssClass(i,"ag-row-even",o),qe.addOrRemoveCssClass(i,"ag-row-odd",!o))}))},o.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},o.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},o.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},o.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},o.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},o.DOM_DATA_KEY_RENDERED_ROW="renderedRow",o.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",o.GROUP_ROW_RENDERER="groupRowRenderer",o.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",o.LOADING_CELL_RENDERER="loadingCellRenderer",o.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",o.DETAIL_CELL_RENDERER="detailCellRenderer",o.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",o}(zt),Fr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Lr=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Mr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}var o,n;return Fr(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.getGridCore=function(){return this.gridCore},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,Et.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.registerCellEventListeners=function(){var e=this;this.addDestroyableEventListener(this.eventService,Et.EVENT_CELL_FOCUSED,(function(t){e.forEachCellComp((function(e){return e.onCellFocused(t)}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_FLASH_CELLS,(function(t){e.forEachCellComp((function(e){return e.onFlashCells(t)}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,(function(){e.forEachCellComp((function(e){return e.onColumnHover()}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.forEachCellComp((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addDestroyableEventListener(this.eventService,Et.EVENT_RANGE_SELECTION_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRangeSelectionChanged()}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_MOVED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_PINNED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_VISIBLE,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addDestroyableEventListener(this.eventService,Et.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnController.getAllGridColumns();t&&t.forEach((function(t){var o=function(o){e.forEachCellComp((function(e){e.getColumn()===t&&o(e)}))},n=function(){o((function(e){return e.onLeftChanged()}))},r=function(){o((function(e){return e.onWidthChanged()}))},i=function(){o((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){o((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(gt.EVENT_LEFT_CHANGED,n),t.addEventListener(gt.EVENT_WIDTH_CHANGED,r),t.addEventListener(gt.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(gt.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(gt.EVENT_LEFT_CHANGED,n),t.removeEventListener(gt.EVENT_WIDTH_CHANGED,r),t.removeEventListener(gt.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(gt.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){qe.missing(e)&&(e={type:Et.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function o(o,n){var r=n.getCellForCol(e);r&&t.push(r)}return qe.iterateObject(this.rowCompsByIndex,o),qe.iterateObject(this.floatingBottomRowComps,o),qe.iterateObject(this.floatingTopRowComps,o),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWidth)},t.prototype.refreshFloatingRows=function(e,t,o,n,r,i){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new Ir(s.$scope,r,o,n,i,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return qe.missing(e)||qe.iterateObject(this.rowCompsByIndex,(function(o,n){var r=n.getRowNode();e.indexOf(r)>=0&&t.push(o)})),t},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusController.getFocusCellToUseAfterRefresh();if(qe.missing(t))return null;var o=document.activeElement,n=this.gridOptionsWrapper.getDomData(o,Ar.DOM_DATA_KEY_CELL_COMP);return qe.missing(n)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&e.recycleRows,n=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=this.binRowComps(o);this.redraw(r,n),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!o&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var o=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(o)}))}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,o){o.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,o){return o.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){qe.iterateObject(this.rowCompsByIndex,e),qe.iterateObject(this.floatingTopRowComps,e),qe.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,o){var n=this.rowCompsByIndex[t];n&&n.addEventListener(e,o)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellRenderer();o&&t.push(o)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellEditor();o&&t.push(o)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var o=t.getCellPosition();e.push(o)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,o){var n,r,i=this;qe.exists(e)&&(n={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===ke.PINNED_TOP?n.top[e.id]=!0:e.rowPinned===ke.PINNED_BOTTOM?n.bottom[e.id]=!0:n.normal[e.id]=!0}))),qe.exists(t)&&(r={},t.forEach((function(e){var t=i.columnController.getGridColumn(e);qe.exists(t)&&(r[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),i=t.id,s=t.rowPinned;if(qe.exists(n))if(s===ke.PINNED_BOTTOM){if(!n.bottom[i])return}else if(s===ke.PINNED_TOP){if(!n.top[i])return}else if(!n.normal[i])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();r&&!r[t]||o(e)}))};qe.iterateObject(this.rowCompsByIndex,(function(e,t){s(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t),e.prototype.destroy.call(this)},t.prototype.binRowComps=function(e){var t,o=this,n={};return e?(t=[],qe.iterateObject(this.rowCompsByIndex,(function(e,r){var i=r.getRowNode();qe.exists(i.id)?(n[i.id]=r,delete o.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),n},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var o=Object.keys(this.rowCompsByIndex).filter((function(e){return!t[e]}));this.removeRowComps(o)},t.prototype.calculateIndexesToDraw=function(e){var t=this,o=qe.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow),n=function(e,n){var r=Number(e);(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(n)&&o.push(r)};return qe.iterateObject(this.rowCompsByIndex,n),qe.iterateObject(e,n),o.sort((function(e,t){return e-t})),o},t.prototype.redraw=function(e,t,o){var n=this;void 0===t&&(t=!1),void 0===o&&(o=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw(e);this.removeRowCompsNotToDraw(r),this.printLayout&&(t=!1);var i=[],s=[];r.forEach((function(r){var a=n.createOrUpdateRowComp(r,e,t,o);qe.exists(a)&&(s.push(a),qe.pushAll(i,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),qe.executeNextVMTurn(i),o&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask(this.destroyRowComps.bind(this,e,t)):this.destroyRowComps(e,t),this.checkAngularCompile(),this.gridPanel.updateRowCount()},t.prototype.flushContainers=function(e){qe.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];qe.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var n=o.getRowNode().rowIndex;e.push(n.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];qe.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()&&!o.refreshFullWidth()){var n=o.getRowNode().rowIndex;e.push(n.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,o,n){var r,i=this.rowCompsByIndex[e];if(i||(r=this.paginationProxy.getRow(e),qe.exists(r)&&qe.exists(t)&&t[r.id]&&r.alreadyRendered&&(i=t[r.id],t[r.id]=null)),!i){if(r||(r=this.paginationProxy.getRow(e)),!qe.exists(r))return;i=this.createRowComp(r,o,n)}else i.ensureDomOrder();return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[e]=i,i},t.prototype.destroyRowComps=function(e,t){var o=[];qe.iterateObject(e,(function(e,n){n&&(n.destroy(t),qe.pushAll(o,n.getAndClearDelayedDestroyFunctions()))})),qe.executeInAWhile(o)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,o=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var n=this.paginationProxy.getPixelOffset(),r=this.maxDivHeightScaler.getOffset(),i=this.gridPanel.getVScrollPosition(),s=i.top,a=i.bottom,l=this.gridOptionsWrapper.getRowBufferInPixels(),u=s+n+r-l,p=a+n+r+l;this.ensureAllRowsInRangeHaveHeightsCalculated(u,p);var c=this.paginationProxy.getRowIndexAtPixel(u),d=this.paginationProxy.getRowIndexAtPixel(p),h=this.paginationProxy.getPageFirstRow(),f=this.paginationProxy.getPageLastRow();c<h&&(c=h),d>f&&(d=f),e=c,t=d}else e=0,t=-1;var g=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,y=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),v=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);g&&!y&&t-e>v&&(t=e+v);var m=e!==this.firstRenderedRow,C=t!==this.lastRenderedRow;if(m||C){this.firstRenderedRow=e,this.lastRenderedRow=t;var w={type:Et.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var E={type:Et.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return o.eventService.dispatchEventOnce(E)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),o=this.focusController.isRowNodeFocused(t),n=e.isEditing(),r=t.detail;return!!(o||n||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowComp=function(e,t,o){var n=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=o&&!n&&!this.printLayout,i=new Ir(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,r,this.printLayout,this.embedFullWidthRows);return i.init(),i},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,o,n){for(var r=o,i=!1;!i;){if(this.gridOptionsWrapper.isEnableRtl()?t===ke.KEY_LEFT&&(r=this.getLastCellOfColSpan(r)):t===ke.KEY_RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(t,r),qe.missing(r))i=!0;else{var s=this.rowPositionUtils.getRowNode(r);if(!s.detail&&!s.isFullWidthCell())if(s.group){var a=this.columnController.isPivotMode();this.gridOptionsWrapper.isGroupUseEntireRow(a)||(i=!0)}else i=!0}}if(n){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(qe.exists(l)){var u=l({key:t,previousCellPosition:o,nextCellPosition:r||null,event:e});qe.exists(u)?(u.floating&&(qe.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),r={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):r=null}}if(r){this.ensureCellVisible(r);var p=this.getComponentForCell(r);p&&(r=p.getCellPosition(),this.ensureCellVisible(r),this.focusController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(r))}},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;var o=t.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:qe.last(o),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){qe.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,o){var n=this.getComponentForCell(e);n&&n.startRowOrCellEdit(t,o)},t.prototype.getComponentForCell=function(e){var t;switch(e.rowPinned){case ke.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case ke.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;this.moveToCellAfter(e,o)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusController.getFocusedCell();if(qe.missing(t))return!1;var o=this.getComponentForCell(t);return!qe.missing(o)&&this.moveToCellAfter(o,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var o=e.getCellPosition();e.stopEditing();var n=this.findNextCellToFocusOn(o,t,!0),r=qe.exists(n);return r&&(n.startEditingIfEnabled(null,null,!0),n.focusCell(!1)),r},t.prototype.moveToNextEditingRow=function(e,t){var o=e.getCellPosition(),n=this.findNextCellToFocusOn(o,t,!0),r=qe.exists(n);return r&&this.moveEditToNextCellOrRow(e,n),r},t.prototype.moveToNextCellNotEditing=function(e,t){var o=e.getCellPosition(),n=this.findNextCellToFocusOn(o,t,!1),r=qe.exists(n);return r&&n.focusCell(!0),r},t.prototype.moveEditToNextCellOrRow=function(e,t){var o=e.getCellPosition(),n=t.getCellPosition();if(o.rowIndex===n.rowIndex&&o.rowPinned===n.rowPinned)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var r=e.getRenderedRow(),i=t.getRenderedRow();e.setFocusOutOnEditor(),r.stopEditing(),i.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,o){for(var n=e;;){t||(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextTabbedCell(n,t);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if(qe.exists(r)){var i=r({backwards:t,editing:o,previousCellPosition:e,nextCellPosition:n||null});qe.exists(i)?(i.floating&&(qe.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),i.rowPinned=i.floating),n={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}):n=null}if(!n)return null;if(o){var s=this.lookupRowNodeForCell(n);if(!n.column.isCellEditable(s))continue}qe.missing(n.rowPinned)&&this.gridPanel.ensureIndexVisible(n.rowIndex),n.column.isPinned()||this.gridPanel.ensureColumnVisible(n.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(n);if(!qe.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(n),a}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===ke.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===ke.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},Lr([rt("paginationProxy")],t.prototype,"paginationProxy",void 0),Lr([rt("columnController")],t.prototype,"columnController",void 0),Lr([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Lr([rt("$scope")],t.prototype,"$scope",void 0),Lr([rt("eventService")],t.prototype,"eventService",void 0),Lr([rt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Lr([rt("rowModel")],t.prototype,"rowModel",void 0),Lr([rt("loggerFactory")],t.prototype,"loggerFactory",void 0),Lr([rt("focusController")],t.prototype,"focusController",void 0),Lr([rt("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Lr([rt("columnApi")],t.prototype,"columnApi",void 0),Lr([rt("gridApi")],t.prototype,"gridApi",void 0),Lr([rt("beans")],t.prototype,"beans",void 0),Lr([rt("maxDivHeightScaler")],t.prototype,"maxDivHeightScaler",void 0),Lr([rt("animationFrameService")],t.prototype,"animationFrameService",void 0),Lr([rt("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Lr([it("rangeController")],t.prototype,"rangeController",void 0),Lr([(o=0,n=at("loggerFactory"),function(e,t){n(e,t,o)})],t.prototype,"agWire",null),t=Lr([nt("rowRenderer")],t)}(Bt),Gr=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,o,n,r){qe.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,o,n,r)},e.addToolPanelClassesFromColDef=function(e,t,o,n,r){qe.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,o,n,r)},e.addColumnClassesFromCollDef=function(e,t,o,n,r,i){if(!qe.missing(e)){var s;if("function"==typeof e)s=e({colDef:t,column:r,columnGroup:i,context:n.getContext(),api:n.getApi()});else s=e;"string"==typeof s?qe.addCssClass(o,s):Array.isArray(s)&&s.forEach((function(e){qe.addCssClass(o,e)}))}},e}(),kr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vr=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Wr=function(e){function t(t,o){var n=e.call(this)||this;return n.columns=t,n.element=o,n}return kr(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addDestroyableEventListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Vr([rt("columnHoverService")],t.prototype,"columnHoverService",void 0),Vr([tt],t.prototype,"postConstruct",null),t}(Bt),Hr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Br=function(e){function t(t,o,n,r){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=o,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=r,i.beans=n,i.printLayout=n.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,i}return Hr(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?qe.last(this.colsSpanning):this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,gt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=qe.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),o=this.getColumnOrGroup().getOldLeft();this.setLeft(o),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===ke.PINNED_LEFT?t:e.getPinned()===ke.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){if(qe.exists(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof gt){var t=this.beans.columnController.getAllDisplayedColumns().indexOf(this.columnOrGroup);this.ariaEl.setAttribute("aria-colindex",(t+1).toString())}else this.ariaEl.removeAttribute("aria-colindex")},t}(Bt),Ur=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),jr=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},zr=function(e){function t(t,o){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.cbSelectAll=t,n.column=o;var r=o.getColDef();return n.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,n}return Ur(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,Go.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,o=0,n=function(n){e.gridOptionsWrapper.isGroupSelectsChildren()&&n.group||(n.isSelected()?t++:n.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(n):this.gridApi.forEachNode(n),{notSelected:o,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===ke.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},jr([rt("gridApi")],t.prototype,"gridApi",void 0),jr([rt("columnApi")],t.prototype,"columnApi",void 0),jr([rt("eventService")],t.prototype,"eventService",void 0),jr([rt("rowModel")],t.prototype,"rowModel",void 0),jr([rt("selectionController")],t.prototype,"selectionController",void 0),jr([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),jr([tt],t.prototype,"postConstruct",null),t}(Bt),Yr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kr=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},qr=function(t){function o(e,n,r){var i=t.call(this,o.TEMPLATE)||this;return i.column=e,i.dragSourceDropTarget=n,i.pinned=r,i}return Yr(o,t),o.prototype.getColumn=function(){return this.column},o.prototype.getComponentHolder=function(){return this.column.getColDef()},o.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),o=e.sortable,n=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,o,n),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(o),this.addColumnHoverListener(),this.addMouseListeners(),this.addFeature(new Wr([this.column],this.getGui())),this.addDestroyableEventListener(this.column,gt.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(new zr(this.cbSelectAll,this.column));var r=new Br(this.column,this.getGui(),this.beans);r.init(),this.addDestroyFunc(r.destroy.bind(r)),this.addAttributes(),Gr.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},o.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},o.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);qe.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},o.prototype.addMouseListeners=function(){var e=this.onMouseOverOut.bind(this);this.addGuiEventListener("mouseenter",e),this.addGuiEventListener("mouseleave",e)},o.prototype.onMouseOverOut=function(e){this.headerComp&&this.headerComp.setMouseOverParent&&this.headerComp.setMouseOverParent("mouseenter"===e.type)},o.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();qe.addCssClass(t,"ag-header-cell-sortable")}},o.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},o.prototype.appendHeaderComp=function(e,t,o){var n=this,r={column:this.column,displayName:e,enableSorting:t,enableMenu:o,showColumnMenu:function(e){n.gridApi.showColumnMenuAfterButtonClick(n.column,e)},progressSort:function(e){n.sortController.progressSort(n.column,!!e,"uiColumnSorted")},setSort:function(e,t){n.sortController.setSortForColumn(n.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},i=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(r).then(i)},o.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e),this.headerComp=t},o.prototype.onColumnMovingChanged=function(){this.column.isMoving()?qe.addCssClass(this.getGui(),"ag-header-cell-moving"):qe.removeCssClass(this.getGui(),"ag-header-cell-moving")},o.prototype.setupMove=function(t,o){var n=this,r=this.column.getColDef(),i=this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||r.lockPosition;if((!i||r.enableRowGroup||r.enablePivot)&&t){var s={type:e.DragSourceType.HeaderCell,eElement:t,defaultIconName:dr.ICON_HIDE,getDragItem:function(){return n.createDragItem()},dragItemName:o,dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return!i&&n.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return!i&&n.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(s,!0),this.addDestroyFunc((function(){return n.dragAndDropService.removeDragSource(s)}))}},o.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},o.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var o=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(o);var n=!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize,r=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();if(n){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")}));var i=new Co(this.eResize);this.addDestroyableEventListener(i,Co.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")})),this.addDestroyFunc(i.destroy.bind(i))}}else qe.removeFromParent(this.eResize)},o.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),n=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnController.setColumnWidths(n,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&qe.removeCssClass(this.getGui(),"ag-column-resizing")},o.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,qe.addCssClass(this.getGui(),"ag-column-resizing")},o.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},o.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.addFeature(new Tr(this,"header")))},o.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,gt.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},o.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},o.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,gt.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},o.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,gt.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},o.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},o.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},o.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==ke.PINNED_LEFT&&(t*=-1):this.pinned===ke.PINNED_RIGHT&&(t*=-1),t},o.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on"> <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div> <ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',Kr([rt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),Kr([rt("dragAndDropService")],o.prototype,"dragAndDropService",void 0),Kr([rt("columnController")],o.prototype,"columnController",void 0),Kr([rt("horizontalResizeService")],o.prototype,"horizontalResizeService",void 0),Kr([rt("menuFactory")],o.prototype,"menuFactory",void 0),Kr([rt("gridApi")],o.prototype,"gridApi",void 0),Kr([rt("columnApi")],o.prototype,"columnApi",void 0),Kr([rt("sortController")],o.prototype,"sortController",void 0),Kr([rt("eventService")],o.prototype,"eventService",void 0),Kr([rt("userComponentFactory")],o.prototype,"userComponentFactory",void 0),Kr([rt("columnHoverService")],o.prototype,"columnHoverService",void 0),Kr([rt("beans")],o.prototype,"beans",void 0),Kr([qt("eResize")],o.prototype,"eResize",void 0),Kr([qt("cbSelectAll")],o.prototype,"cbSelectAll",void 0),Kr([tt],o.prototype,"init",null),o}(zt),$r=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Qr=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Xr=function(t){function o(e,n,r){var i=t.call(this,o.TEMPLATE)||this;return i.childColumnsDestroyFuncs=[],i.columnGroup=e,i.dragSourceDropTarget=n,i.pinned=r,i}return $r(o,t),o.prototype.postConstruct=function(){Gr.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(new Wr(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new Br(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},o.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,gt.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},o.prototype.getColumn=function(){return this.columnGroup},o.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},o.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},o.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.addFeature(new Tr(this,"headerGroup")))},o.prototype.onColumnMovingChanged=function(){qe.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},o.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},o.prototype.appendHeaderGroupComp=function(e){var t=this,o={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var n=this.columnGroup,r=n.getLeafColumns();n.getParent()&&n.getParent().getLeafColumns().length===r.length;)n=n.getParent();var i=n.getColGroupDef();i&&(e=i.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(o).then(s)},o.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},o.prototype.addClasses=function(){var e=this.columnGroup.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+e+"-group")},o.prototype.setupMove=function(t,o){var n=this;if(t&&!this.isSuppressMoving()){var r=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),i={type:e.DragSourceType.HeaderCell,eElement:t,defaultIconName:dr.ICON_HIDE,dragItemName:o,getDragItem:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return r.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return r.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return n.dragAndDropService.removeDragSource(i)}))}},o.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var o=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(o.push(t),qe.removeFromArray(e,t))})),e.forEach((function(e){return o.push(e)})),{columns:o,visibleState:t}},o.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},o.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,yt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},o.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},o.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener(gt.EVENT_WIDTH_CHANGED,t),o.addEventListener(gt.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){o.removeEventListener(gt.EVENT_WIDTH_CHANGED,t),o.removeEventListener(gt.EVENT_VISIBLE_CHANGED,t)}))}))},o.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},o.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},o.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",(function(t){var n=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||n.push(e.getColId())})),n.length>0&&e.columnController.autoSizeColumns(n,o,"uiColumnResized")}))}}else qe.removeFromParent(this.eHeaderCellResize)},o.prototype.onResizeStart=function(e){var t=this,o=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=o.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var n=null;if(e&&(n=this.columnController.getDisplayedGroupAfter(this.columnGroup)),n){var r=n.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;qe.addCssClass(this.getGui(),"ag-column-resizing")},o.prototype.onResizing=function(e,t){var o=[],n=this.normaliseDragChange(t);o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+n}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-n}),this.columnController.resizeColumnSets(o,e,"uiColumnDragged"),e&&qe.removeCssClass(this.getGui(),"ag-column-resizing")},o.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==ke.PINNED_LEFT&&(t*=-1):this.pinned===ke.PINNED_RIGHT&&(t*=-1),t},o.TEMPLATE='<div class="ag-header-group-cell" role="presentation"> <div ref="agResize" class="ag-header-cell-resize" role="presentation"></div></div>',Qr([rt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),Qr([rt("columnController")],o.prototype,"columnController",void 0),Qr([rt("horizontalResizeService")],o.prototype,"horizontalResizeService",void 0),Qr([rt("dragAndDropService")],o.prototype,"dragAndDropService",void 0),Qr([rt("userComponentFactory")],o.prototype,"userComponentFactory",void 0),Qr([rt("gridApi")],o.prototype,"gridApi",void 0),Qr([rt("columnApi")],o.prototype,"columnApi",void 0),Qr([rt("beans")],o.prototype,"beans",void 0),Qr([tt],o.prototype,"postConstruct",null),o}(zt),Zr=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Jr=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return Zr(t,e),t.prototype.init=function(e){this.params=e,this.eFloatingFilterText.setDisabled(!0)},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var n=o.getModelAsString(e);t.eFloatingFilterText.setValue(n)}})):this.eFloatingFilterText.setValue("")},function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([qt("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),t}(zt),ei=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ti=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},oi=function(t){function o(e){var n=t.call(this,o.TEMPLATE)||this;return n.column=e,n}return ei(o,t),o.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(new Wr([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},o.prototype.setupFloatingFilter=function(){var e=this,t=this.column.getColDef();t.filter&&t.floatingFilter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?(e.setupWithFloatingFilter(t),e.setupSyncWithFilter()):e.setupEmpty()})):this.setupEmpty()):this.setupEmpty()},o.prototype.setupLeftPositioning=function(){var e=new Br(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},o.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){var o=e.getFilterComponent().resolveNow(null,(function(e){return e.getModel()}));e.onParentModelChanged(o,t)};this.addDestroyableEventListener(this.column,gt.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},o.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},o.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},o.prototype.onColumnHover=function(){A(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},o.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,gt.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},o.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},o.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var o=e.getGui();A(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),A(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),x(this.eButtonWrapper,!this.suppressFilterButton);var n=Me("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(n),this.eFloatingFilterBody.appendChild(o),e.afterGuiAttached&&e.afterGuiAttached()}else t()},o.prototype.parentFilterInstance=function(e){this.getFilterComponent().then(e)},o.prototype.getFilterComponent=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI")},o.prototype.getFloatingFilterInstance=function(){var t,n=this.column.getColDef();if("string"==typeof n.filter)t=o.filterToFloatingFilterNames[n.filter];else if(n.filterFramework);else if(!0===n.filter){t=ht.isRegistered(e.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}var r=this.filterManager.createFilterParams(this.column,this.column.getColDef()),i=this.userComponentFactory.createFinalParams(n,"filter",r),s={api:this.gridApi,column:this.column,filterParams:i,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!n.floatingFilterComponentParams&&!!n.floatingFilterComponentParams.suppressFilterButton;var a=this.userComponentFactory.newFloatingFilterComponent(n,s,t);if(!a){var l=this.getFilterComponentPrototype(n);if(l&&l.prototype&&l.prototype.getModelAsString){var u=this.userComponentFactory.createUserComponentFromConcreteClass(Jr,s);a=Qe.resolve(u)}}return a},o.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},o.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},o.prototype.setupEmpty=function(){x(this.eButtonWrapper,!1)},o.prototype.currentParentModel=function(){return this.getFilterComponent().resolveNow(null,(function(e){return e.getModel()}))},o.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(o){return o.onParentModelChanged(e,t)}))},o.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},o.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},o.TEMPLATE='<div class="ag-header-cell" role="presentation">\n <div ref="eFloatingFilterBody" role="columnheader"></div>\n <div class="ag-floating-filter-button" ref="eButtonWrapper" role="presentation">\n <button type="button" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter"></button>\n </div>\n </div>',ti([rt("columnHoverService")],o.prototype,"columnHoverService",void 0),ti([rt("eventService")],o.prototype,"eventService",void 0),ti([rt("beans")],o.prototype,"beans",void 0),ti([rt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),ti([rt("userComponentFactory")],o.prototype,"userComponentFactory",void 0),ti([rt("gridApi")],o.prototype,"gridApi",void 0),ti([rt("columnApi")],o.prototype,"columnApi",void 0),ti([rt("filterManager")],o.prototype,"filterManager",void 0),ti([rt("menuFactory")],o.prototype,"menuFactory",void 0),ti([qt("eFloatingFilterBody")],o.prototype,"eFloatingFilterBody",void 0),ti([qt("eButtonWrapper")],o.prototype,"eButtonWrapper",void 0),ti([qt("eButtonShowMainFilter")],o.prototype,"eButtonShowMainFilter",void 0),ti([tt],o.prototype,"postConstruct",null),o}(zt),ni=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ri=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(_r=Sr||(Sr={}))[_r.COLUMN_GROUP=0]="COLUMN_GROUP",_r[_r.COLUMN=1]="COLUMN",_r[_r.FLOATING_FILTER=2]="FLOATING_FILTER";var ii,si,ai=function(e){function t(t,o,n,r){var i=e.call(this,'<div class="ag-header-row" role="row" />')||this;i.headerComps={},i.dept=t,i.type=o,i.pinned=n,i.dropTarget=r;var s=Sr[o].toLowerCase().replace(/_/g,"-");return i.addCssClass("ag-header-row-"+s),h()&&(i.getGui().style.transform="translateZ(0)"),i}return ni(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(o){e(t.headerComps[o])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var o=t.headerComps[e];t.getGui().removeChild(o.getGui()),o.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,o=this.columnController.getHeaderRowCount(),n=[],r=0;this.columnController.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnController.hasFloatingFilters()&&(o++,r=1),e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=o-(1+r),s=0;s<i;s++)n.push(e);n.push(t);for(s=0;s<r;s++)n.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=n[s];this.getGui().style.top=a+"px",this.getGui().style.height=n[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT?C(this.pinned)?this.columnController.getContainerWidth(ke.PINNED_RIGHT)+this.columnController.getContainerWidth(ke.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDepth=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT){if(C(this.pinned)){var t=[];return[ke.PINNED_LEFT,null,ke.PINNED_RIGHT].forEach((function(o){var n=e.columnController.getVirtualHeaderGroupRow(o,e.type==Sr.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(n)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==Sr.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=Object.keys(this.headerComps),o=[];if(this.getItemsAtDepth().forEach((function(n){if(!n.isEmptyGroup()){var r,i,s=n.getUniqueId(),a=e.getGui();t.indexOf(s)>=0?ee(t,s):(r=e.createHeaderComp(n),e.headerComps[s]=r,i=r.getGui(),a.appendChild(i)),o.push(s)}})),this.removeAndDestroyChildComponents(t),this.gridOptionsWrapper.isEnsureDomOrder()){var n=o.map((function(t){return e.headerComps[t].getGui()}));G(this.getGui(),n)}},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case Sr.COLUMN:t=new qr(e,this.dropTarget,this.pinned);break;case Sr.COLUMN_GROUP:t=new Xr(e,this.dropTarget,this.pinned);break;case Sr.FLOATING_FILTER:t=new oi(e)}return this.getContext().wireBean(t),t},ri([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ri([rt("columnController")],t.prototype,"columnController",void 0),ri([rt("eventService")],t.prototype,"eventService",void 0),ri([tt],t.prototype,"init",null),t}(zt),li=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ui=function(){function t(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!qe.exists(e)}return t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},t.prototype.getIconName=function(){return this.pinned?dr.ICON_PINNED:dr.ICON_MOVE},t.prototype.onDragEnter=function(t){var o=t.dragItem.columns;if(t.dragSource.type===e.DragSourceType.ToolPanel)this.setColumnsVisible(o,!0,"uiColumnDragged");else{var n=t.dragItem.visibleState,r=o.filter((function(e){return n[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(o,this.pinned,"uiColumnDragged"),this.onDragging(t,!0)},t.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},t.prototype.setColumnsVisible=function(e,t,o){if(void 0===o&&(o="api"),e){var n=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnController.setColumnsVisible(n,t,o)}},t.prototype.setColumnsPinned=function(e,t,o){if(void 0===o&&(o="api"),e){var n=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnController.setColumnsPinned(n,t,o)}},t.prototype.onDragStop=function(){this.ensureIntervalCleared()},t.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},t.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),o=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(e,t){var o=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!qe.missing(e.hDirection)){var n=this.normaliseX(e.x);t||this.checkCenterForScrolling(n);var r=this.normaliseDirection(e.hDirection),i=e.dragSource.type,s=e.dragSource.getDragItem().columns;s=s.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==o.pinned})),this.attemptMoveColumns(i,s,r,n,t)}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case e.HorizontalDirection.Left:return e.HorizontalDirection.Right;case e.HorizontalDirection.Right:return e.HorizontalDirection.Left;default:console.error("ag-Grid: Unknown direction "+t)}},t.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),o=qe.sortNumerically(e.map((function(e){return t.indexOf(e)}))),n=o[0];return qe.last(o)-n!==o.length-1?null:n},t.prototype.attemptMoveColumns=function(t,o,n,r,i){var s=n===e.HorizontalDirection.Left,a=n===e.HorizontalDirection.Right,l=this.calculateValidMoves(o,a,r),u=this.calculateOldIndex(o);if(0!==l.length){var p=l[0],c=null!==u&&!i;if(t==e.DragSourceType.HeaderCell&&(c=null!==u),c){if(s&&p>=u)return;if(a&&p<=u)return}for(var d=0;d<l.length;d++){var h=l[d];if(this.columnController.doesMovePassRules(o,h))return void this.columnController.moveColumns(o,h,"uiColumnDragged")}}},t.prototype.calculateValidMoves=function(e,t,o){if(this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable})))return[];var n,r=this.columnController.getDisplayedColumns(this.pinned),i=this.columnController.getAllGridColumns(),s=r.filter((function(t){return qe.includes(e,t)})),a=r.filter((function(t){return!qe.includes(e,t)})),l=i.filter((function(t){return!qe.includes(e,t)})),u=0,p=o;if(t){var c=0;s.forEach((function(e){return c+=e.getActualWidth()})),p-=c}if(p>0){for(var d=0;d<a.length;d++){if((p-=a[d].getActualWidth())<0)break;u++}t&&u++}if(u>0){var h=a[u-1];n=l.indexOf(h)+1}else-1===(n=l.indexOf(a[0]))&&(n=0);var f=[n];if(t)for(var g=n+1,y=i.length-1;g<=y;)f.push(g),g++;else{g=n,y=i.length-1;for(var v=i[g];g<=y&&this.isColumnHidden(r,v);)g++,f.push(g),v=i[g];g=n-1;for(;g>=0;)f.push(g),g--}return f},t.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},t.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(dr.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(dr.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(dr.ICON_MOVE))},t.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(dr.ICON_PINNED),this.failedMoveAttempts>7)){var n=this.needToMoveLeft?ke.PINNED_LEFT:ke.PINNED_RIGHT;this.setColumnsPinned(o,n,"uiColumnDragged"),this.dragAndDropService.nudge()}}},li([rt("loggerFactory")],t.prototype,"loggerFactory",void 0),li([rt("columnController")],t.prototype,"columnController",void 0),li([rt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),li([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),li([tt],t.prototype,"init",null),t}(),pi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ci=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;(this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly())||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?dr.ICON_PINNED:dr.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},pi([rt("columnController")],e.prototype,"columnController",void 0),pi([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),di=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(si=ii||(ii={}))[si.ColumnMove=0]="ColumnMove",si[si.Pivot=1]="Pivot";var hi,fi,gi=function(){function t(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return t.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case ke.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case ke.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},t.prototype.isInterestedIn=function(t){return t===e.DragSourceType.HeaderCell||t===e.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnController=new ui(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new ci(this.pinned);this.context.wireBean(e),this.dropListeners[ii.ColumnMove]=this.moveColumnController,this.dropListeners[ii.Pivot]=e,this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.getDropType=function(t){return this.columnController.isPivotMode()&&t.dragSource.type===e.DragSourceType.ToolPanel?ii.Pivot:ii.ColumnMove},t.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},di([rt("context")],t.prototype,"context",void 0),di([rt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),di([rt("columnController")],t.prototype,"columnController",void 0),di([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),di([tt],t.prototype,"init",null),t}(),yi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},vi=function(){function e(e,t,o){this.headerRowComps=[],this.events=[],this.eContainer=e,this.pinned=o,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.events=[this.eventService.addEventListener(Et.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))]},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===ke.PINNED_LEFT,t=this.pinned===ke.PINNED_RIGHT,o=this.columnController,n=this.gridOptionsWrapper.isEnableRtl();if(e||t){var r=o[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(n&&e||!n&&t)&&(r+=this.scrollWidth),k(this.eContainer,r)}},e.prototype.destroy=function(){this.removeHeaderRowComps(),this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.getRowComps=function(){return this.headerRowComps},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,o=new gi(this.pinned,t);this.context.wireBean(o),o.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){return e.destroy()})),this.headerRowComps.length=0,F(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var o=t!==e-1?Sr.COLUMN_GROUP:Sr.COLUMN,n=new ai(t,o,this.pinned,this.dropTarget);this.context.wireBean(n),this.headerRowComps.push(n),n.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(n.getGui())}if(!this.columnController.isPivotMode()&&this.columnController.hasFloatingFilters()){n=new ai(e,Sr.FLOATING_FILTER,this.pinned,this.dropTarget);this.context.wireBean(n),this.headerRowComps.push(n),n.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(n.getGui())}},yi([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),yi([rt("context")],e.prototype,"context",void 0),yi([rt("columnController")],e.prototype,"columnController",void 0),yi([rt("eventService")],e.prototype,"eventService",void 0),yi([rt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),yi([tt],e.prototype,"init",null),yi([ot],e.prototype,"destroy",null),e}(),mi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ci=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},wi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return mi(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new vi(this.eHeaderContainer,this.eHeaderViewport,null),o=new vi(this.ePinnedLeftHeader,null,ke.PINNED_LEFT),n=new vi(this.ePinnedRightHeader,null,ke.PINNED_RIGHT);this.childContainers=[t,o,n],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){this.childContainers.forEach((function(e){return e.destroy()})),e.prototype.destroy.call(this)},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();A(this.getGui(),"ag-pivot-on",e),A(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+1+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){x(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){x(this.ePinnedRightHeader,e)},t.prototype.getHeaderRowCount=function(){return 0===this.childContainers.length?0:this.childContainers[0].getRowComps().length},t.TEMPLATE='\n <div class="ag-header" role="presentation">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="rowgroup"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',Ci([qt("ePinnedLeftHeader")],t.prototype,"ePinnedLeftHeader",void 0),Ci([qt("ePinnedRightHeader")],t.prototype,"ePinnedRightHeader",void 0),Ci([qt("eHeaderContainer")],t.prototype,"eHeaderContainer",void 0),Ci([qt("eHeaderViewport")],t.prototype,"eHeaderViewport",void 0),Ci([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ci([rt("columnController")],t.prototype,"columnController",void 0),Ci([rt("eventService")],t.prototype,"eventService",void 0),Ci([rt("gridApi")],t.prototype,"gridApi",void 0),Ci([rt("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Ci([tt],t.prototype,"postConstruct",null),t}(zt),Ei=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},bi=function(){function t(){this.allFilters=new Map,this.quickFilter=null,this.quickFilterParts=null,this.processingFilterChange=!1,this.eventListenerDestroyers=[]}var o;return o=t,t.prototype.init=function(){this.eventListenerDestroyers=[this.eventService.addEventListener(Et.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(Et.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this))],this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(e){var t=this,o=[];if(e){var n=qe.convertToSet(Object.keys(e));this.allFilters.forEach((function(r,i){var s=e[i];t.setModelOnFilterWrapper(r.filterPromise,s),o.push(r.filterPromise),n.delete(i)})),n.forEach((function(n){var r=t.columnController.getPrimaryColumn(n);if(r){var i=t.getOrCreateFilterWrapper(r,"NO_UI");t.setModelOnFilterWrapper(i.filterPromise,e[n]),o.push(i.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+n)}))}else this.allFilters.forEach((function(e){t.setModelOnFilterWrapper(e.filterPromise,null),o.push(e.filterPromise)}));Qe.all(o).then((function(e){return t.onFilterChanged()}))},t.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},t.prototype.getFilterModel=function(){var e={};return this.allFilters.forEach((function(t,o){var n=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==n)return null;if("function"==typeof n.getModel){var r=n.getModel();qe.exists(r)&&(e[o]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},t.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},t.prototype.setAdvancedFilterPresent=function(){var e=!1;this.allFilters.forEach((function(t){e||t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},t.prototype.updateFilterFlagInColumns=function(e,t){this.allFilters.forEach((function(o){var n=o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));o.column.setFilterActive(n,e,t)}))},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},t.prototype.doesFilterPass=function(e,t){var o=e.data,n=!0;return this.allFilters.forEach((function(r){if(n&&null!=r){var i=r.filterPromise.resolveNow(void 0,(function(e){return e}));if(null!=i&&i!==t&&i.isFilterActive()){if(!i.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");n=i.doesFilterPass({node:e,data:o})}}})),n},t.prototype.parseQuickFilter=function(e){return qe.exists(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},t.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},t.prototype.onFilterChanged=function(e){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged",e),this.checkExternalFilter(),this.allFilters.forEach((function(e){e.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var t={type:Et.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};e&&qe.mergeDeep(t,e),this.processingFilterChange=!0,this.eventService.dispatchEvent(t),this.processingFilterChange=!1},t.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},t.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},t.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},t.prototype.doesRowPassQuickFilterNoCache=function(e,t){var o=this,n=this.columnController.getAllColumnsForQuickFilter();return qe.some(n,(function(n){var r=o.getQuickFilterTextForColumn(n,e);return qe.exists(r)&&r.indexOf(t)>=0}))},t.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},t.prototype.doesRowPassQuickFilter=function(e){var t=this,o=this.gridOptionsWrapper.isCacheQuickFilter();return qe.every(this.quickFilterParts,(function(n){return o?t.doesRowPassQuickFilterCache(e,n):t.doesRowPassQuickFilterNoCache(e,n)}))},t.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e))&&!(this.advancedFilterPresent&&!this.doesFilterPass(e,t)))},t.prototype.getQuickFilterTextForColumn=function(e,t){var o=this.valueService.getValue(e,t,!0),n=e.getColDef();if(n.getQuickFilterText){var r={value:o,node:t,data:t.data,column:e,colDef:n,context:this.gridOptionsWrapper.getContext()};o=n.getQuickFilterText(r)}return qe.exists(o)?o.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(e){var t=this,n=[];ie(this.columnController.getAllColumnsForQuickFilter(),(function(o){var r=t.getQuickFilterTextForColumn(o,e);qe.exists(r)&&n.push(r)})),e.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(e){this.allFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},t.prototype.createValueGetter=function(e){var t=this;return function(o){return t.valueService.getValue(e,o,!0)}},t.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},t.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},t.prototype.getOrCreateFilterWrapper=function(e,t){var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allFilters.set(e.getColId(),o)),o},t.prototype.cachedFilter=function(e){return this.allFilters.get(e.getColId())},t.prototype.createFilterInstance=function(t,o){var n,r=this,i=ht.isRegistered(e.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",s=qe.cloneObject(t.getColDef()),a=this.createFilterParams(t,s,o);a.filterChangedCallback=this.onFilterChanged.bind(this),a.filterModifiedCallback=function(){var e={type:Et.EVENT_FILTER_MODIFIED,api:r.gridApi,columnApi:r.columnApi,column:t,filterInstance:n};r.eventService.dispatchEvent(e)};var l=this.userComponentFactory.newFilterComponent(s,a,i,(function(e,t){return qe.assign(e,{doesRowPassOtherFilter:r.doesRowPassOtherFilters.bind(r,t)})}));return l&&l.then((function(e){return n=e})),l},t.prototype.createFilterParams=function(e,t,o){void 0===o&&(o=null);var n={api:this.gridOptionsWrapper.getApi(),column:e,colDef:t,rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return o&&(n.$scope=o),n},t.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:Qe.resolve(null)};return o.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,o.filterPromise=this.createFilterInstance(e,o.scope),o.filterPromise&&this.putIntoGui(o,t),o},t.prototype.putIntoGui=function(e,t){var o=this,n=document.createElement("div");n.className="ag-filter",e.guiPromise=new Qe((function(r){e.filterPromise.then((function(i){var s=i.getGui();if(qe.missing(s)&&console.warn("getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=qe.loadTemplate(s)),n.appendChild(s),e.scope){var a=o.$compile(n)(e.scope);e.compiledElement=a,window.setTimeout((function(){return e.scope.$apply()}),0)}r(n),o.eventService.dispatchEvent({type:Et.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:n,api:o.gridApi,columnApi:o.columnApi})}))}))},t.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;this.allFilters.forEach((function(o){!e.columnController.getPrimaryColumn(o.column)&&(t=!0,e.disposeFilterWrapper(o,"filterDestroyed"))})),t&&this.onFilterChanged()},t.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allFilters.get(e.getColId());o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged())},t.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then((function(n){n.setModel(null),n.destroy&&n.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),o.allFilters.delete(e.column.getColId())}))},t.prototype.destroy=function(){var e=this;this.allFilters.forEach((function(t){return e.disposeFilterWrapper(t,"filterDestroyed")})),this.eventListenerDestroyers.length&&(this.eventListenerDestroyers.forEach((function(e){return e()})),this.eventListenerDestroyers.length=0)},t.QUICK_FILTER_SEPARATOR="\n",Ei([rt("$compile")],t.prototype,"$compile",void 0),Ei([rt("$scope")],t.prototype,"$scope",void 0),Ei([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ei([rt("valueService")],t.prototype,"valueService",void 0),Ei([rt("columnController")],t.prototype,"columnController",void 0),Ei([rt("rowModel")],t.prototype,"rowModel",void 0),Ei([rt("eventService")],t.prototype,"eventService",void 0),Ei([rt("columnApi")],t.prototype,"columnApi",void 0),Ei([rt("gridApi")],t.prototype,"gridApi",void 0),Ei([rt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ei([tt],t.prototype,"init",null),Ei([ot],t.prototype,"destroy",null),t=o=Ei([nt("filterManager")],t)}(),Ri=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Oi=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,o,n){if(void 0===o&&(o=!1),void 0===n&&(n=!1),this.initialised||this.init(),t){var r,i=e.getColDef(),s=i.field,a=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],p=!n&&t.aggData&&void 0!==t.aggData[a];if(o&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&p?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=qe.getValueUsingField(l,s,e.isFieldContainsDots()):u?r=t.groupData[a]:p?r=t.aggData[a]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(r=qe.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var c=r.substring(1);r=this.executeValueGetter(c,l,e,t)}return r}},e.prototype.setValue=function(e,t,o,n){var r=this.columnController.getPrimaryColumn(t);if(e&&r){qe.missing(e.data)&&(e.data={});var i=r.getColDef(),s=i.field,a=i.newValueHandler,l=i.valueSetter;if(qe.missing(s)&&qe.missing(a)&&qe.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,p={node:e,data:e.data,oldValue:this.getValue(r,e),newValue:o,colDef:r.getColDef(),column:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(p.newValue=o,void 0===(u=a&&qe.exists(a)?a(p):qe.exists(l)?this.expressionService.evaluate(l,p):this.setValueUsingField(e.data,s,o,r.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),p.newValue=this.getValue(r,e);var c=r.getColDef().onCellValueChanged;"function"==typeof c&&setTimeout((function(){return c(p)}),0);var d={type:Et.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:p.column,api:p.api,colDef:p.colDef,columnApi:p.columnApi,context:p.context,data:e.data,node:e,oldValue:p.oldValue,newValue:p.newValue,value:p.newValue,source:n};this.eventService.dispatchEvent(d)}}}},e.prototype.setValueUsingField=function(e,t,o,n){if(!t)return!1;if(n)for(var r=t.split("."),i=e;r.length>0&&i;){var s=r.shift();0===r.length?i[s]=o:i=i[s]}else e[t]=o;return!0},e.prototype.executeFilterValueGetter=function(e,t,o,n){var r={data:t,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)};return this.expressionService.evaluate(e,r)},e.prototype.executeValueGetter=function(e,t,o,n){var r=o.getId(),i=this.valueCache.getValue(n,r);if(void 0!==i)return i;var s={data:t,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(n,r,a),a},e.prototype.getValueCallback=function(e,t){var o=this.columnController.getPrimaryColumn(t);return o?this.getValue(o,e):null},e.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),n=e.getColDef().keyCreator,r=n?n({value:o}):o;return"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&qe.doOnce((function(){console.warn("ag-Grid: 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 (se ag-Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r},Ri([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ri([rt("expressionService")],e.prototype,"expressionService",void 0),Ri([rt("columnController")],e.prototype,"columnController",void 0),Ri([rt("eventService")],e.prototype,"eventService",void 0),Ri([rt("valueCache")],e.prototype,"valueCache",void 0),Ri([tt],e.prototype,"init",null),e=Ri([nt("valueService")],e)}(),Si=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},_i=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(Mt.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");qe.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=qe.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(qe.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),qe.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},Si([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Si([tt],e.prototype,"postConstruct",null),e}(),Ti=function(){return(Ti=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Pi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Di=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n},Ai=function(){function t(e,t){this.isMultiRowDrag=!1,this.events=[],this.isGridSorted=!1,this.isGridFiltered=!1,this.isRowGroupActive=!1,this.eContainer=e,this.gridPanel=t}return t.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.events.push(this.eventService.addEventListener(Et.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this))),this.onSortChanged(),this.onFilterChanged(),this.onRowGroupChanged()},t.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()}))},t.prototype.onSortChanged=function(){var e=this.sortController.getSortModel();this.isGridSorted=!qe.missingOrEmpty(e)},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnController.getRowGroupColumns();this.isRowGroupActive=!qe.missingOrEmpty(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(t){return t===e.DragSourceType.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?dr.ICON_NOT_ALLOWED:dr.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes;var t=this.gridOptionsWrapper.isEnableMultiRowDragging(),o=this.selectionController.getSelectedNodes(),n=e.dragItem.rowNode;return t&&-1!==o.indexOf(n)?(this.isMultiRowDrag=!0,Di(o)):(this.isMultiRowDrag=!1,[n])},t.prototype.onDragEnter=function(e){this.dispatchEvent(Et.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){return this.gridPanel.getGui().contains(e.dragSource.eElement)},t.prototype.isDropZoneWithinThisGrid=function(e){var t=this.gridPanel.getGui(),o=e.dropZoneTarget;return!t.contains(o)},t.prototype.onEnterOrDragging=function(e){this.dispatchEvent(Et.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},t.prototype.doManagedDrag=function(e,t){var o,n=this,r=this.isFromThisGrid(e);r?(o=[e.dragItem.rowNode],this.isMultiRowDrag&&(o=Di(this.selectionController.getSelectedNodes()).sort((function(e,t){return n.getRowIndexNumber(e)-n.getRowIndexNumber(t)}))),e.dragItem.rowNodes=o):o=e.dragItem.rowNodes,this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!r?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(o[0],t):this.moveRows(o,t))},t.prototype.getRowIndexNumber=function(e){return parseInt(Z(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var t=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),n=o&&"below"===o.highlighted,r=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes,s=n?1:0;if(this.isFromThisGrid(e))i.forEach((function(e){e.rowTop<r&&(s-=1)})),this.moveRows(i,r,s);else{var a=this.gridOptionsWrapper.getRowNodeIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(r)+1;"above"===this.clientSideRowModel.getHighlightPosition(r)&&l--,this.clientSideRowModel.updateRowData({add:i.map((function(e){return e.data})).filter((function(e){return!t.clientSideRowModel.getRowNode(a?a(e):e.id)})),addIndex:l})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,t,o){void 0===o&&(o=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,o)&&(this.focusController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},t.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},t.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},t.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},t.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},t.prototype.addRowDropZone=function(t){var o=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("ag-Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var n={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,n=t):(t.onDragEnter&&(n.onDragEnter=function(e){t.onDragEnter(o.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_ENTER,e))}),t.onDragLeave&&(n.onDragLeave=function(e){t.onDragLeave(o.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_LEAVE,e))}),t.onDragging&&(n.onDragging=function(e){t.onDragging(o.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_MOVE,e))}),t.onDragStop&&(n.onDragStop=function(e){t.onDragStop(o.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_END,e))})),this.dragAndDropService.addDropTarget(Ti({isInterestedIn:function(t){return t===e.DragSourceType.RowDrag},getIconName:function(){return dr.ICON_MOVE},external:!0},n))}else qe.doOnce((function(){return console.warn("ag-Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},t.prototype.getRowDropZone=function(e){var t=this,o=this.getContainer.bind(this),n=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:o,onDragEnter:e.onDragEnter?function(o){n(o),e.onDragEnter(t.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_ENTER,o))}:n,onDragLeave:e.onDragLeave?function(o){r(o),e.onDragLeave(t.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_LEAVE,o))}:r,onDragging:e.onDragging?function(o){i(o),e.onDragging(t.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_MOVE,o))}:i,onDragStop:e.onDragStop?function(o){s(o),e.onDragStop(t.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:n,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(t,o){var n,r=this.mouseEventService.getNormalisedPosition(o).y,i=-1,s=null;switch(r>this.rowModel.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(r),s=this.rowModel.getRow(i)),o.vDirection){case e.VerticalDirection.Down:n="down";break;case e.VerticalDirection.Up:n="up";break;default:n=null}return{type:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:o.event,node:o.dragItem.rowNode,nodes:o.dragItem.rowNodes,overIndex:i,overNode:s,y:r,vDirection:n}},t.prototype.dispatchEvent=function(e,t){var o=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(o)},t.prototype.onDragLeave=function(e){this.dispatchEvent(Et.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchEvent(Et.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.ensureIntervalCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Pi([rt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Pi([rt("rowModel")],t.prototype,"rowModel",void 0),Pi([rt("columnController")],t.prototype,"columnController",void 0),Pi([rt("focusController")],t.prototype,"focusController",void 0),Pi([rt("sortController")],t.prototype,"sortController",void 0),Pi([rt("filterManager")],t.prototype,"filterManager",void 0),Pi([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pi([rt("selectionController")],t.prototype,"selectionController",void 0),Pi([it("rangeController")],t.prototype,"rangeController",void 0),Pi([rt("mouseEventService")],t.prototype,"mouseEventService",void 0),Pi([rt("eventService")],t.prototype,"eventService",void 0),Pi([tt],t.prototype,"postConstruct",null),Pi([ot],t.prototype,"destroy",null),t}(),Ni=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ii=function(t){function o(){var e=t.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n <div class="ag-center-cols-clipper" ref="eCenterColsClipper" role="presentation" unselectable="on">\n <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n <div class="ag-center-cols-container" ref="eCenterContainer" role="rowgroup" unselectable="on"></div>\n </div>\n </div>\n <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n </div>\n <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n </div>')||this;return e.scrollLeft=-1,e.scrollTop=-1,e.resetLastHorizontalScrollElementDebounced=qe.debounce(e.resetLastHorizontalScrollElement.bind(e),500),e}return Ni(o,t),o.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},o.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},o.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},o.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},o.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},o.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.mouseEventService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var o=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return o()}))})),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){e.addDestroyableEventListener(t,"focusin",(function(){qe.addCssClass(t,"ag-has-focus")})),e.addDestroyableEventListener(t,"focusout",(function(e){t.contains(e.relatedTarget)||qe.removeCssClass(t,"ag-has-focus")}))}))},o.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},o.prototype.onCenterViewportResized=function(){qe.isVisible(this.eCenterViewport)?(this.checkViewportAndScrolls(),this.columnController.refreshFlexedColumns(this.getCenterWidth())):this.bodyHeight=0},o.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},o.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){return qe.addOrRemoveCssClass(t,"ag-selectable",e)}))},o.prototype.addRowDragListener=function(){var e=new Ai(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e),this.rowDragFeature=e},o.prototype.getRowDragFeature=function(){return this.rowDragFeature},o.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var o=!1,n=t.relatedTarget;qe.exists(n)&&!o;){var r=!!e.gridOptionsWrapper.getDomData(n,wr.DOM_KEY_POPUP_EDITOR_WRAPPER),i=e.eBodyViewport===n||e.eBottom===n||e.eTop===n;o=r||i,n=n.parentNode}o||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},o.prototype.addAngularApplyCheck=function(){var e=this,t=!1,o=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addDestroyableEventListener(this.eventService,Et.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},o.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},o.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,Mt.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},o.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!qe.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var o={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController)};e.dragService.addDragSource(o),e.addDestroyFunc((function(){return e.dragService.removeDragSource(o)}))}))},o.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var o=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(n){return e.addDestroyableEventListener(n,t,o)}))}))},o.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var o=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(n){e.addDestroyableEventListener(n,t,o)}))}))},o.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var o=qe.getTarget(t);o!==e.eBodyViewport&&o!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},o.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},o.prototype.getRowForEvent=function(e){for(var t=qe.getTarget(e);t;){var o=this.gridOptionsWrapper.getDomData(t,Ir.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;t=t.parentElement}return null},o.prototype.processKeyboardEvent=function(e,t){var o=qe.getCellCompForEvent(this.gridOptionsWrapper,t);if(o){var n=o.getRenderedRow().getRowNode(),r=o.getColumn(),i=o.isEditing();if(!qe.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,n,r,i))switch(e){case"keydown":!i&&this.navigationService.handlePageScrollingKey(t)||o.onKeyDown(t),this.doGridOperations(t,o);break;case"keypress":o.onKeyPress(t)}if("keydown"===e){var s=o.createEvent(t,Et.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=o.createEvent(t,Et.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},o.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case ke.KEY_A:return this.onCtrlAndA(e);case ke.KEY_C:return this.onCtrlAndC(e);case ke.KEY_V:return this.onCtrlAndV();case ke.KEY_D:return this.onCtrlAndD(e);case ke.KEY_Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case ke.KEY_Y:return this.undoRedoService.redo()}},o.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},o.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!qe.isStopPropagationForAgGrid(t)){var o=this.getRowForEvent(t),n=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?(this.preventDefaultOnContextMenu(t),this.handleContextMenuMouseEvent(t,null,o,n)):(n&&n.onMouseEvent(e,t),o&&o.onMouseEvent(e,t))}},o.prototype.mockContextMenuForIPad=function(){var e=this;qe.isIOSUserAgent()&&this.eAllCellContainers.forEach((function(t){var o=new Co(t);e.addDestroyableEventListener(o,Co.EVENT_LONG_TAP,(function(t){var o=e.getRowForEvent(t.touchEvent),n=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,n)})),e.addDestroyFunc((function(){return o.destroy()}))}))},o.prototype.handleContextMenuMouseEvent=function(e,t,o,n){var r=o?o.getRowNode():null,i=n?n.getColumn():null,s=null;if(i){var a=e||t;n.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}this.onContextMenu(e,t,r,i,s)},o.prototype.onContextMenu=function(e,t,o,n,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var i=e||t.touches[0];this.contextMenuFactory.showMenu(o,n,r,i),(e||t).preventDefault()}},o.prototype.preventDefaultOnContextMenu=function(e){var t=this.gridOptionsWrapper,o=e.which;(t.isPreventDefaultOnContextMenu()||t.isSuppressMiddleClickScrolls()&&2===o)&&e.preventDefault()},o.prototype.onCtrlAndA=function(e){var t=this,o=t.columnController,n=t.pinnedRowModel,r=t.paginationProxy,i=t.rangeController,s=ke.PINNED_BOTTOM,a=ke.PINNED_TOP;if(i&&r.isRowsToRender()){var l=[n.isEmpty(a),n.isEmpty(s)],u=l[0]?null:a,p=void 0,c=void 0;l[1]?(p=null,c=this.paginationProxy.getRowCount()-1):(p=s,c=n.getPinnedBottomRowData().length-1);var d=o.getAllDisplayedColumns();if(qe.missingOrEmpty(d))return;i.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:c,rowEndPinned:p,columnStart:d[0],columnEnd:qe.last(d)})}e.preventDefault()},o.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},o.prototype.onCtrlAndV=function(){ht.isRegistered(e.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},o.prototype.onCtrlAndD=function(t){ht.isRegistered(e.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),t.preventDefault()},o.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var o=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=o)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var n,r=this.paginationProxy.getRow(e);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,u=l+r.rowHeight,p=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=p.top+c,h=p.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),y=this.heightScaler.getScrollPositionForPixel(u-f),v=Math.min((g+y)/2,l),m=null;"top"===t?m=g:"bottom"===t?m=y:"middle"===t?m=v:d>l?m=g:h<u&&(m=y),null!==m&&(this.eBodyViewport.scrollTop=m,this.rowRenderer.redrawAfterScroll()),n=i!==r.rowTop||s!==r.rowHeight}while(n);this.animationFrameService.flushAllFrames()}}},o.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},o.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return qe.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||qe.isVerticalScrollShowing(this.eBodyViewport)},o.prototype.isHorizontalScrollShowing=function(){return qe.isHorizontalScrollShowing(this.eCenterViewport)},o.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize(),this.scrollLeft!==this.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.eCenterViewport)},o.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},o.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},o.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=t?0:o,r=qe.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+o+"px)",qe.setFixedHeight(this.eHorizontalScrollBody,n),qe.setFixedHeight(this.eBodyHorizontalScrollViewport,n+(r?1:0)),qe.setFixedHeight(this.eBodyHorizontalScrollContainer,n)},o.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},o.prototype.updateRowCount=function(){var e=(this.headerRootComp.getHeaderRowCount()+this.paginationProxy.getRowCount()).toString();this.getGui().setAttribute("aria-rowcount",e)},o.prototype.updateColumnCount=function(){var e=this.beans.columnController.getAllDisplayedColumns();this.getGui().setAttribute("aria-colcount",e.length.toString())},o.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var o,n,r=t.getLeft(),i=r+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(o=l-a-s,n=l-a):(o=a,n=s+a);var u=o>r,p=n<i,c=s<t.getActualWidth(),d=u||c,h=p,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-r:l-i:d?r:i-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},o.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},o.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},o.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},o.prototype.sizeColumnsToFit=function(e){var t=this,o=this.eBodyViewport.clientWidth;o>0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},o.prototype.getCenterContainer=function(){return this.eCenterContainer},o.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},o.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},o.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},o.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new _i({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new _i({eContainer:this.eFullWidthContainer}),pinnedLeft:new _i({eContainer:this.eLeftContainer}),pinnedRight:new _i({eContainer:this.eRightContainer}),floatingTop:new _i({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new _i({eContainer:this.eLeftTop}),floatingTopPinnedRight:new _i({eContainer:this.eRightTop}),floatingTopFullWidth:new _i({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new _i({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new _i({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new _i({eContainer:this.eRightBottom}),floatingBottomFullWidth:new _i({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},qe.iterateObject(this.rowContainerComponents,(function(t,o){o&&e.getContext().wireBean(o)}))},o.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();qe.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),qe.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,Et.EVENT_HEIGHT_SCALE_CHANGED,t)},o.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},o.prototype.getRowContainers=function(){return this.rowContainerComponents},o.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},o.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},o.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},o.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},o.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth());this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},o.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),n=this.pinningLeft=!this.printLayout&&o>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==n&&this.headerRootComp.setLeftVisible(n),r.forEach((function(t){return qe.setDisplayed(t,e.pinningLeft)})),n&&r.forEach((function(e){return qe.setFixedWidth(e,o)}))},o.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&t>0,n=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==o&&this.headerRootComp.setRightVisible(o),n.forEach((function(e){return qe.setDisplayed(e,o)})),o&&n.forEach((function(e){return qe.setFixedWidth(e,t)}))},o.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},o.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),qe.setFixedWidth(this.eHorizontalRightSpacer,e),qe.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),qe.setFixedWidth(this.eHorizontalLeftSpacer,t),qe.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},o.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Et.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},o.prototype.setHeaderAndFloatingHeights=function(){var e,t,o,n=this,r=n.columnController,i=n.gridOptionsWrapper,s=n.pinnedRowModel,a=n.eTop,l=n.eBottom,u=0,p=r.getHeaderRowCount();r.isPivotMode()?(t=i.getPivotGroupHeaderHeight(),o=i.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(p++,u=1),t=i.getGroupHeaderHeight(),o=i.getHeaderHeight());var c=p-(1+u);e=u*i.getFloatingFiltersHeight(),e+=c*t,e+=o,this.headerRootComp.setHeight(e);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},o.prototype.getBodyHeight=function(){return this.bodyHeight},o.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},o.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},o.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},o.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},o.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},o.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(e),this.scrollTop=e,this.redrawRowsAfterScroll()},o.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},o.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},o.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},o.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,o=t.scrollWidth,n=t.clientWidth,r=Math.floor(qe.getScrollLeft(e,this.enableRtl));r<0||r+n>o||(this.doHorizontalScroll(r),this.resetLastHorizontalScrollElementDebounced())},o.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},o.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:Et.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},o.prototype.redrawRowsAfterScroll=function(){var e={type:Et.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},o.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},o.prototype.getCenterViewportScrollLeft=function(){return qe.getScrollLeft(this.eCenterViewport,this.enableRtl)},o.prototype.setCenterViewportScrollLeft=function(e){qe.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},o.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,o=this.eCenterViewport,n=o.clientWidth,r=o.scrollWidth;if(!(Math.abs(t)+n>r||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var i=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;qe.setScrollLeft(i,e,this.enableRtl)}},o.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},o.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},xi([rt("alignedGridsService")],o.prototype,"alignedGridsService",void 0),xi([rt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),xi([rt("columnController")],o.prototype,"columnController",void 0),xi([rt("rowRenderer")],o.prototype,"rowRenderer",void 0),xi([rt("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),xi([rt("eventService")],o.prototype,"eventService",void 0),xi([rt("animationFrameService")],o.prototype,"animationFrameService",void 0),xi([rt("navigationService")],o.prototype,"navigationService",void 0),xi([rt("autoHeightCalculator")],o.prototype,"autoHeightCalculator",void 0),xi([rt("columnAnimationService")],o.prototype,"columnAnimationService",void 0),xi([rt("autoWidthCalculator")],o.prototype,"autoWidthCalculator",void 0),xi([rt("paginationAutoPageSizeService")],o.prototype,"paginationAutoPageSizeService",void 0),xi([rt("beans")],o.prototype,"beans",void 0),xi([rt("paginationProxy")],o.prototype,"paginationProxy",void 0),xi([rt("columnApi")],o.prototype,"columnApi",void 0),xi([rt("gridApi")],o.prototype,"gridApi",void 0),xi([rt("dragService")],o.prototype,"dragService",void 0),xi([rt("mouseEventService")],o.prototype,"mouseEventService",void 0),xi([rt("$scope")],o.prototype,"$scope",void 0),xi([rt("scrollVisibleService")],o.prototype,"scrollVisibleService",void 0),xi([rt("valueService")],o.prototype,"valueService",void 0),xi([rt("dragAndDropService")],o.prototype,"dragAndDropService",void 0),xi([rt("maxDivHeightScaler")],o.prototype,"heightScaler",void 0),xi([rt("resizeObserverService")],o.prototype,"resizeObserverService",void 0),xi([rt("undoRedoService")],o.prototype,"undoRedoService",void 0),xi([it("rangeController")],o.prototype,"rangeController",void 0),xi([it("contextMenuFactory")],o.prototype,"contextMenuFactory",void 0),xi([it("clipboardService")],o.prototype,"clipboardService",void 0),xi([qt("eBodyViewport")],o.prototype,"eBodyViewport",void 0),xi([qt("eCenterContainer")],o.prototype,"eCenterContainer",void 0),xi([qt("eCenterViewport")],o.prototype,"eCenterViewport",void 0),xi([qt("eLeftContainer")],o.prototype,"eLeftContainer",void 0),xi([qt("eRightContainer")],o.prototype,"eRightContainer",void 0),xi([qt("eCenterColsClipper")],o.prototype,"eCenterColsClipper",void 0),xi([qt("eHorizontalScrollBody")],o.prototype,"eHorizontalScrollBody",void 0),xi([qt("eHorizontalLeftSpacer")],o.prototype,"eHorizontalLeftSpacer",void 0),xi([qt("eHorizontalRightSpacer")],o.prototype,"eHorizontalRightSpacer",void 0),xi([qt("eBodyHorizontalScrollViewport")],o.prototype,"eBodyHorizontalScrollViewport",void 0),xi([qt("eBodyHorizontalScrollContainer")],o.prototype,"eBodyHorizontalScrollContainer",void 0),xi([qt("eFullWidthContainer")],o.prototype,"eFullWidthContainer",void 0),xi([qt("eTop")],o.prototype,"eTop",void 0),xi([qt("eLeftTop")],o.prototype,"eLeftTop",void 0),xi([qt("eRightTop")],o.prototype,"eRightTop",void 0),xi([qt("eTopContainer")],o.prototype,"eTopContainer",void 0),xi([qt("eTopViewport")],o.prototype,"eTopViewport",void 0),xi([qt("eTopFullWidthContainer")],o.prototype,"eTopFullWidthContainer",void 0),xi([qt("eBottom")],o.prototype,"eBottom",void 0),xi([qt("eLeftBottom")],o.prototype,"eLeftBottom",void 0),xi([qt("eRightBottom")],o.prototype,"eRightBottom",void 0),xi([qt("eBottomContainer")],o.prototype,"eBottomContainer",void 0),xi([qt("eBottomViewport")],o.prototype,"eBottomViewport",void 0),xi([qt("eBottomFullWidthContainer")],o.prototype,"eBottomFullWidthContainer",void 0),xi([qt("headerRoot")],o.prototype,"headerRootComp",void 0),xi([qt("overlayWrapper")],o.prototype,"overlayWrapper",void 0),xi([tt],o.prototype,"init",null),o}(zt),Fi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Li=function(){function t(){this.detailGridInfoMap={}}return t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},t.prototype.init=function(){switch(this.rowModel.getType()){case ke.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case ke.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case ke.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},t.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},t.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},t.prototype.forEachDetailGridInfo=function(e){var t=0;qe.iterateObject(this.detailGridInfoMap,(function(o,n){qe.exists(n)&&(e(n,t),t++)}))},t.prototype.getDataAsCsv=function(t){if(ht.assertRegistered(e.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){ht.assertRegistered(e.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getDataAsExcel=function(t){if(ht.assertRegistered(e.ModuleNames.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(t)},t.prototype.exportDataAsExcel=function(t){ht.assertRegistered(e.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")&&this.excelCreator.exportDataAsExcel(t)},t.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},t.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_INFINITE+"'")},t.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+ke.ROW_MODEL_TYPE_VIEWPORT+"'")},t.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var t=this.immutableService.createTransactionForRowData(e),o=t[0],n=t[1];this.clientSideRowModel.updateRowData(o,n),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},t.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},t.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},t.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},t.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},t.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},t.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},t.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},t.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},t.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},t.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},t.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},t.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},t.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,o=0,n=0,r=this;!function i(){var s=(new Date).getTime();r.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var r=(new Date).getTime(),l=a-s,u=r-a;console.log("duration: processing = "+l+"ms, reflow = "+u+"ms"),t++,o+=l,n+=u,t<e?window.setTimeout(i,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+o/t+"ms"),console.log("average reflow = "+n/t+"ms"))}),0)}()},t.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},t.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},t.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},t.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},t.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},t.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},t.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},t.prototype.onGroupExpandedOrCollapsed=function(e){qe.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),qe.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:ke.STEP_MAP})},t.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},t.prototype.refreshClientSideRowModel=function(e){qe.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=ke.STEP_EVERYTHING,o={group:ke.STEP_EVERYTHING,filter:ke.STEP_FILTER,map:ke.STEP_MAP,aggregate:ke.STEP_AGGREGATE,sort:ke.STEP_SORT,pivot:ke.STEP_PIVOT};if(qe.exists(e)&&(t=o[e]),qe.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var n={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(n)}},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},t.prototype.expandAll=function(){qe.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},t.prototype.collapseAll=function(){qe.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},t.prototype.getToolPanelInstance=function(e){return this.gridCore.getToolPanelInstance(e)},t.prototype.addVirtualRowListener=function(e,t,o){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,o)},t.prototype.addRenderedRowListener=function(e,t,o){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,o)},t.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},t.prototype.selectIndex=function(e,t,o){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},t.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},t.prototype.selectNode=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},t.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},t.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},t.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},t.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},t.prototype.recomputeAggregates=function(){qe.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:ke.STEP_AGGREGATE})},t.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},t.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},t.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},t.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},t.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},t.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},t.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},t.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},t.prototype.forEachLeafNode=function(e){qe.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},t.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},t.prototype.forEachNodeAfterFilter=function(e){qe.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},t.prototype.forEachNodeAfterFilterAndSort=function(e){qe.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},t.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},t.prototype.getFilterInstance=function(e,t){var o=this.columnController.getPrimaryColumn(e);if(o){var n=this.filterManager.getFilterComponent(o,"NO_UI"),r=n.resolveNow(null,(function(e){return e}));return t&&(r?setTimeout(t,0,r):n.then(t)),r}},t.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},t.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},t.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},t.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged()},t.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},t.prototype.getSortModel=function(){return this.sortController.getSortModel()},t.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusController.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusController.clearFocusedCell()},t.prototype.setFocusedCell=function(e,t,o){this.focusController.setFocusedCell(e,t,o,!0)},t.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_SUPPRESS_ROW_DRAG,e)},t.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},t.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},t.prototype.addRowDropZone=function(e){this.gridPanel.getRowDragFeature().addRowDropZone(e)},t.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},t.prototype.getRowDropZoneParams=function(e){return this.gridPanel.getRowDragFeature().getRowDropZone(e)},t.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_HEADER_HEIGHT,e),this.doLayout()},t.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},t.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_DOM_LAYOUT,e)},t.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},t.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},t.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},t.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},t.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},t.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},t.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},t.prototype.setSideBarPosition=function(e){this.gridCore.setSideBarPosition(e)},t.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},t.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},t.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},t.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},t.prototype.getSideBar=function(){return this.gridCore.getSideBar()},t.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},t.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},t.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},t.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},t.prototype.resetRowHeights=function(){qe.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},t.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},t.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},t.prototype.onRowHeightChanged=function(){qe.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);return qe.missing(o)&&(o=this.columnController.getGridColumn(e)),qe.missing(o)?null:this.valueService.getValue(o,t)},t.prototype.addEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,o)},t.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},t.prototype.removeEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},t.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},t.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},t.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},t.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},t.prototype.getRangeSelections=function(){return console.warn("ag-Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the ag-Grid documentation."),null},t.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},t.prototype.camelCaseToHumanReadable=function(e){return qe.camelCaseToHumanText(e)},t.prototype.addRangeSelection=function(e){console.warn("ag-Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},t.prototype.addCellRange=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addCellRange(e)},t.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.removeAllCellRanges()},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getChartModels=function(){if(ht.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.getChartModels")&&ht.assertRegistered(e.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.createRangeChart=function(t){if(ht.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&ht.assertRegistered(e.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createPivotChart=function(t){if(ht.assertRegistered(e.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&ht.assertRegistered(e.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},t.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},t.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t)},t.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterMouseEvent(o,t)},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(Mt.PROP_POPUP_PARENT,e)},t.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},t.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},t.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},t.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},t.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t};qe.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(o,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},t.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},t.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.prototype.applyTransaction=function(e){var t=null;if(this.clientSideRowModel){if(e&&null!=e.addIndex){qe.doOnce((function(){return console.warn("ag-Grid: as of v23.1, transaction.addIndex is deprecated. If you want precision control of adding data, use immutableData instead")}),"transaction.addIndex deprecated")}t=this.clientSideRowModel.updateRowData(e)}else if(this.infiniteRowModel){qe.doOnce((function(){return console.warn("ag-Grid: as of v23.1, transactions for Infinite Row Model are deprecated. If you want to make updates to data in Infinite Row Models, then refresh the data.")}),"applyTransaction infiniteRowModel deprecated"),this.infiniteRowModel.updateRowData(e)}else console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel.");return this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},t.prototype.updateRowData=function(e){return qe.doOnce((function(){return console.warn("ag-Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},t.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.batchUpdateRowData=function(e,t){qe.doOnce((function(){return console.warn("ag-Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},t.prototype.insertItemsAtIndex=function(e,t,o){console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},t.prototype.removeItems=function(e,t){console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},t.prototype.addItems=function(e,t){console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},t.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},t.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},t.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},t.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.isMaxRowFound=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},t.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},t.prototype.setInfiniteRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getCacheBlockState=function(){return this.infiniteRowModel?this.infiniteRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},t.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},t.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},Fi([it("immutableService")],t.prototype,"immutableService",void 0),Fi([it("csvCreator")],t.prototype,"csvCreator",void 0),Fi([it("excelCreator")],t.prototype,"excelCreator",void 0),Fi([rt("rowRenderer")],t.prototype,"rowRenderer",void 0),Fi([rt("filterManager")],t.prototype,"filterManager",void 0),Fi([rt("columnController")],t.prototype,"columnController",void 0),Fi([rt("selectionController")],t.prototype,"selectionController",void 0),Fi([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fi([rt("valueService")],t.prototype,"valueService",void 0),Fi([rt("alignedGridsService")],t.prototype,"alignedGridsService",void 0),Fi([rt("eventService")],t.prototype,"eventService",void 0),Fi([rt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Fi([rt("context")],t.prototype,"context",void 0),Fi([rt("rowModel")],t.prototype,"rowModel",void 0),Fi([rt("sortController")],t.prototype,"sortController",void 0),Fi([rt("paginationProxy")],t.prototype,"paginationProxy",void 0),Fi([rt("focusController")],t.prototype,"focusController",void 0),Fi([rt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Fi([it("rangeController")],t.prototype,"rangeController",void 0),Fi([it("clipboardService")],t.prototype,"clipboardService",void 0),Fi([it("aggFuncService")],t.prototype,"aggFuncService",void 0),Fi([rt("menuFactory")],t.prototype,"menuFactory",void 0),Fi([it("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Fi([rt("cellRendererFactory")],t.prototype,"cellRendererFactory",void 0),Fi([rt("valueCache")],t.prototype,"valueCache",void 0),Fi([rt("animationFrameService")],t.prototype,"animationFrameService",void 0),Fi([it("statusBarService")],t.prototype,"statusBarService",void 0),Fi([it("chartService")],t.prototype,"chartService",void 0),Fi([it("undoRedoService")],t.prototype,"undoRedoService",void 0),Fi([tt],t.prototype,"init",null),t=Fi([nt("gridApi")],t)}(),Mi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Gi=function(){function e(){this.expressionToFunctionCache={}}var t,o;return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var o=e;return this.evaluateExpression(o,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(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.columnApi,t.getValue,t.column,t.columnGroup)}catch(o){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+o),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Mi([(t=0,o=at("loggerFactory"),function(e,n){o(e,n,t)})],e.prototype,"setBeans",null),e=Mi([nt("expressionService")],e)}(),ki=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Vi=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var n=this.waitingCallbacks[e],r=this;if(!n){n=[],this.waitingCallbacks[e]=n;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&n.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],n=0;n<o.length;n++){(0,o[n])()}if(this.$scope){var r=this;window.setTimeout((function(){r.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},ki([rt("$scope")],e.prototype,"$scope",void 0),e=ki([nt("templateService")],e)}(),Wi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Hi=function(){function e(){this.popupList=[],this.events=[]}return e.prototype.init=function(){var e=this;this.events=[this.eventService.addEventListener(Et.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){qe.addCssClass(e.element,"ag-keyboard-focus")}))})),this.eventService.addEventListener(Et.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){qe.removeCssClass(e.element,"ag-keyboard-focus")}))}))]},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),o=this.getParentRect(),n=this.keepYWithinBounds(e,t.top-o.top),r=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=r+"px";var i,s=o.right-o.left-r;function a(){return t.right-o.left-2}function l(){return t.left-o.left-r}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=a()),i>s&&(i=0)):((i=a())>s&&(i=l()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=n+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),o=t.x,n=t.y,r=e.ePopup,i=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:r,x:o,y:n,nudgeX:i,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},e.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),o=e.alignSide||"left",n=this.getParentRect(),r=t.left-n.left;"right"===o&&(r-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:r,y:t.top-n.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),o=this.getParentRect();this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-o.left,y:t.top-o.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,o,n,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:e,type:n,eventSource:t,mouseEvent:o})},e.prototype.positionPopup=function(e){var t=e.x,o=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(o+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),o=this.keepYWithinBounds(e,o)),e.ePopup.style.left=t+"px",e.ePopup.style.top=o+"px"},e.prototype.getParentRect=function(){var e=this.getPopupParent(),t=this.gridOptionsWrapper.getDocument();e===t.body&&(e=t.documentElement);var o=getComputedStyle(e),n=e.getBoundingClientRect();return{top:n.top+parseFloat(o.borderTopWidth)||0,left:n.left+parseFloat(o.borderLeftWidth)||0,right:n.right+parseFloat(o.borderRightWidth)||0,bottom:n.bottom+parseFloat(o.borderBottomWidth)||0}},e.prototype.keepYWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=r===o.body,l=Math.min(200,i.height),u=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,u=qe.getAbsoluteHeight(e.ePopup)-l);var p=a?qe.getAbsoluteHeight(n)+n.scrollTop:i.height;a&&(p-=Math.abs(s.top-i.top));var c=p-l-u;return Math.min(Math.max(t,0),Math.abs(c))},e.prototype.keepXWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=r===o.body,l=e.ePopup,u=Math.min(200,i.width),p=0;e.minWidth&&e.minWidth<u?u=e.minWidth:l.offsetWidth>0&&(u=l.offsetWidth,l.style.minWidth=u+"px",p=qe.getAbsoluteWidth(l)-u);var c=a?qe.getAbsoluteWidth(n)+n.scrollLeft:i.width;a&&(c-=Math.abs(s.left-i.left));var d=c-u-p;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.addAsModalPopup=function(e,t,o,n){return this.addPopup(!0,e,t,o,n)},e.prototype.addPopup=function(e,t,o,n,r,i){var s=this,a=this.gridOptionsWrapper.getDocument();if((new Date).getTime(),!a)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var l=qe.findIndex(this.popupList,(function(e){return e.element===t}));if(-1!==l)return this.popupList[l].hideFunc;var u=this.getPopupParent();u.appendChild(t),t.style.top="0px",t.style.left="0px";var p=document.createElement("div"),c=this.environment.getTheme().theme;c&&qe.addCssClass(p,c),qe.addCssClass(p,"ag-popup"),qe.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),qe.addCssClass(t,"ag-popup-child"),p.appendChild(t),u.appendChild(p),i?this.setAlwaysOnTop(p,!0):this.bringPopupToFront(p);var d=!1,h=function(e){(e.which||e.keyCode)===ke.KEY_ESCAPE&&p.contains(document.activeElement)&&y(null)},f=function(e){y(e)},g=function(e){y(null,e)},y=function(e,o){s.isEventFromCurrentPopup(e,o,t)||s.isEventSameChainAsOriginalEvent(r,e,o)||d||(d=!0,u.removeChild(p),a.removeEventListener("keydown",h),a.removeEventListener("mousedown",f),a.removeEventListener("touchstart",g),a.removeEventListener("contextmenu",f),s.eventService.removeEventListener(Et.EVENT_DRAG_STARTED,f),n&&n(),s.popupList=s.popupList.filter((function(e){return e.element!==t})))};return window.setTimeout((function(){o&&a.addEventListener("keydown",h),e&&(a.addEventListener("mousedown",f),s.eventService.addEventListener(Et.EVENT_DRAG_STARTED,f),a.addEventListener("touchstart",g),a.addEventListener("contextmenu",f))}),0),this.popupList.push({element:t,hideFunc:y}),y},e.prototype.isEventFromCurrentPopup=function(e,t,o){var n=e||t;if(!n)return!1;var r=qe.findIndex(this.popupList,(function(e){return e.element===o}));if(-1===r)return!1;for(var i=r;i<this.popupList.length;i++){var s=this.popupList[i];if(qe.isElementInEventPath(s.element,n))return!0}for(var a=n.target;a&&a!=document.body;){if(a.classList.contains("ag-custom-component-popup")||null===a.parentElement)return!0;a=a.parentElement}},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,o){var n=null;if(t?n=t:o&&(n=o.touches[0]),n&&e){var r=t?t.screenX:0,i=t?t.screenY:0,s=Math.abs(e.screenX-r)<5,a=Math.abs(e.screenY-i)<5;if(s&&a)return!0}return!1},e.prototype.getWrapper=function(e){for(;!qe.containsClass(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return qe.containsClass(e,"ag-popup")?e:null},e.prototype.setAlwaysOnTop=function(e,t){var o=this.getWrapper(e);o&&(qe.addOrRemoveCssClass(o,"ag-always-on-top",!!t),t&&this.bringPopupToFront(o))},e.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),n=o.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=r.length,s=this.getWrapper(e);if(s&&!(n<=1)&&t.contains(e)){var a=o.indexOf(s);if(i)qe.containsClass(s,"ag-always-on-top")?a!==n-1&&qe.last(r).insertAdjacentElement("afterend",s):a!==n-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==n-1&&qe.last(o).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},Wi([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wi([rt("environment")],e.prototype,"environment",void 0),Wi([rt("eventService")],e.prototype,"eventService",void 0),Wi([tt],e.prototype,"init",null),Wi([ot],e.prototype,"destroy",null),e=Wi([nt("popupService")],e)}(),Bi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ui=function(){function e(){}var t,o;return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new ji(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},Bi([(t=0,o=at("gridOptionsWrapper"),function(e,n){o(e,n,t)})],e.prototype,"setBeans",null),e=Bi([nt("loggerFactory")],e)}(),ji=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}(),zi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Yi=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e,t){var o=this.getHeaderCellForColumn(e);if(!o)return-1;var n=document.createElement("span");n.style.position="fixed";var r=this.gridPanel.getCenterContainer();r.appendChild(n),this.putRowCellsIntoDummyContainer(e,n),t||this.cloneItemIntoDummy(o,n);var i=n.offsetWidth;return r.removeChild(n),i+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(o){if(o instanceof qr){var n=o;n.getColumn()===e&&(t=n)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var o=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return o.cloneItemIntoDummy(e,t)}))},e.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var n=document.createElement("div");qe.containsClass(o,"ag-header-cell")&&(qe.addCssClass(n,"ag-header"),qe.addCssClass(n,"ag-header-row"),n.style.position="static"),n.style.display="table-row",n.appendChild(o),t.appendChild(n)},zi([rt("rowRenderer")],e.prototype,"rowRenderer",void 0),zi([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=zi([nt("autoWidthCalculator")],e)}(),Ki=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},qi=function(){function e(){}return e.prototype.addResizeBar=function(e){var t=this,o={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)};this.dragService.addDragSource(o,!0);return function(){return t.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="ew-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},Ki([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ki([rt("dragService")],e.prototype,"dragService",void 0),Ki([rt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=Ki([nt("horizontalResizeService")],e)}(),$i=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Qi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Xi=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return $i(o,t),o.prototype.init=function(){var t=this;this.logger=this.loggerFactory.create("GridCore");var o=this.createTemplate();if(this.setTemplate(o),[this.gridApi,this.rowRenderer,this.popupService].forEach((function(e){return e.registerGridCore(t)})),ht.isRegistered(e.ModuleNames.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){t.eGridDiv.removeChild(t.getGui())})),this.$scope){var n=this.$scope.$watch(this.quickFilterOnScope,(function(e){return t.filterManager.setQuickFilter(e)}));this.addDestroyFunc(n)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var r=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}));var i=this.getGui();this.addDestroyableEventListener(this.eventService,Et.EVENT_KEYBOARD_FOCUS,(function(){qe.addCssClass(i,"ag-keyboard-focus")})),this.addDestroyableEventListener(this.eventService,Et.EVENT_MOUSE_FOCUS,(function(){qe.removeCssClass(i,"ag-keyboard-focus")}))},o.prototype.createTemplate=function(){var t=ht.isRegistered(e.ModuleNames.SideBarModule),o=ht.isRegistered(e.ModuleNames.StatusBarModule);return'<div class="ag-root-wrapper">\n '+(ht.isRegistered(e.ModuleNames.RowGroupingModule)?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n '+(t?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(o?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(ht.isRegistered(e.ModuleNames.EnterpriseCoreModule)?"<ag-watermark></ag-watermark>":"")+"\n </div>"},o.prototype.onGridSizeChanged=function(){var e={type:Et.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},o.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";qe.addCssClass(this.getGui(),e)},o.prototype.getRootGui=function(){return this.getGui()},o.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},o.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("ag-Grid: sideBar is not loaded")},o.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("ag-Grid: sideBar is not loaded")},o.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},o.prototype.getSideBar=function(){return this.gridOptions.sideBar},o.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(e);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},o.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},o.prototype.setSideBar=function(e){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=Nt.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},o.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},o.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},o.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},o.prototype.destroy=function(){this.logger.log("Grid DOM removed"),t.prototype.destroy.call(this)},o.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t=null),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var o=this.rowModel.getRowCount(),n="function"==typeof e,r=-1,i=0;i<o;i++){var s=this.rowModel.getRow(i);if(n){if(e(s)){r=i;break}}else if(e===s||e===s.data){r=i;break}}r>=0&&this.gridPanel.ensureIndexVisible(r,t)},Qi([rt("gridOptions")],o.prototype,"gridOptions",void 0),Qi([rt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),Qi([rt("rowModel")],o.prototype,"rowModel",void 0),Qi([rt("resizeObserverService")],o.prototype,"resizeObserverService",void 0),Qi([rt("columnController")],o.prototype,"columnController",void 0),Qi([rt("rowRenderer")],o.prototype,"rowRenderer",void 0),Qi([rt("filterManager")],o.prototype,"filterManager",void 0),Qi([rt("eventService")],o.prototype,"eventService",void 0),Qi([rt("eGridDiv")],o.prototype,"eGridDiv",void 0),Qi([rt("$scope")],o.prototype,"$scope",void 0),Qi([rt("quickFilterOnScope")],o.prototype,"quickFilterOnScope",void 0),Qi([rt("popupService")],o.prototype,"popupService",void 0),Qi([rt("focusController")],o.prototype,"focusController",void 0),Qi([rt("loggerFactory")],o.prototype,"loggerFactory",void 0),Qi([rt("columnApi")],o.prototype,"columnApi",void 0),Qi([rt("gridApi")],o.prototype,"gridApi",void 0),Qi([rt("environment")],o.prototype,"environment",void 0),Qi([it("clipboardService")],o.prototype,"clipboardService",void 0),Qi([qt("gridPanel")],o.prototype,"gridPanel",void 0),Qi([qt("sideBar")],o.prototype,"sideBarComp",void 0),Qi([qt("rootWrapperBody")],o.prototype,"eRootWrapperBody",void 0),Qi([tt],o.prototype,"init",null),o}(zt),Zi=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ji=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,(function(n){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:n})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var o=this;this.showPopup(e,(function(n){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:n,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var o,n=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),i=document.createElement("div");qe.addCssClass(i,"ag-menu"),r.guiPromise.then((function(e){return i.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&o()};this.eventService.addEventListener("bodyScroll",s);o=this.popupService.addAsModalPopup(i,!0,(function(){n.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(i),r.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:o};e.afterGuiAttached(t)}})),this.hidePopup=o,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Zi([rt("eventService")],e.prototype,"eventService",void 0),Zi([rt("filterManager")],e.prototype,"filterManager",void 0),Zi([rt("popupService")],e.prototype,"popupService",void 0),e=Zi([nt("menuFactory")],e)}(),es=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ts=function(){function e(){this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var n=e.touchStartListener;t.removeEventListener("touchstart",n,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=qe.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),qe.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");qe.exists(t)&&qe.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var n=null,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(n=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:n,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var n=t.touches[0];this.touchLastTime=n,this.touchStart=n,t.cancelable&&t.preventDefault();var r=function(t){return o.onTouchUp(t,e.eElement)},i=e.eElement,s=[{target:i,type:"touchmove",listener:function(t){return o.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:r,options:{passive:!0}},{target:i,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(n,this.touchStart,e.eElement)},e.prototype.onMouseDown=function(e,t){var o=this,n=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var r=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0);var i=[{target:r,type:"mousemove",listener:function(t,n){return o.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t,n){return o.onMouseUp(t,e.eElement)}},{target:r,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},e.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,o=e.type,n=e.listener,r=e.options;t.addEventListener(o,n,r)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,o=e.type,n=e.listener,r=e.options;t.removeEventListener(o,n,r)}))}))},e.prototype.isEventNearStartEvent=function(e,t){var o=this.currentDragParams.dragStartPixels,n=qe.exists(o)?o:4;return qe.areEventsNear(e,t,n)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var n={type:Et.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:o};this.eventService.dispatchEvent(n),this.currentDragParams.onDragStart(t)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e,t){var o=this.getFirstActiveTouch(e.touches);o&&this.onCommonMove(o,this.touchStart,t)},e.prototype.onMouseMove=function(e,t){this.onCommonMove(e,this.mouseStartEvent,t)},e.prototype.onTouchUp=function(e,t){var o=this.getFirstActiveTouch(e.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,t)},e.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},e.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var o={type:Et.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(o)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},es([rt("loggerFactory")],e.prototype,"loggerFactory",void 0),es([rt("eventService")],e.prototype,"eventService",void 0),es([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),es([rt("columnApi")],e.prototype,"columnApi",void 0),es([rt("gridApi")],e.prototype,"gridApi",void 0),es([tt],e.prototype,"init",null),es([ot],e.prototype,"destroy",null),e=es([nt("dragService")],e)}(),os=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ns=function(){function e(){var e=this;this.getSortModel=function(){return e.getColumnsWithSortingOrdered().map((function(e){return{colId:e.getColId(),sort:e.getSort()}}))}}var t;return t=e,e.prototype.progressSort=function(e,t,o){void 0===o&&(o="api");var n=this.getNextSortDirection(e);this.setSortForColumn(e,n,t,o)},e.prototype.setSortForColumn=function(e,t,o,n){if(void 0===n&&(n="api"),t!==ke.SORT_ASC&&t!==ke.SORT_DESC&&(t=null),e.setSort(t,n),e.getSort()){var r=Number((new Date).valueOf());e.setSortedAt(r)}else e.setSortedAt(null);o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,n),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:Et.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==e&&o.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var o;if(o=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var n,r=o.indexOf(e.getSort()),i=r<0,s=r==o.length-1;return n=i||s?o[0]:o[r+1],t.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("ag-grid: invalid sort type "+n),null):n},e.prototype.setSortModel=function(e,t){var o=this;void 0===t&&(t="api");var n=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(r){var i=null,s=-1;if(n&&r.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof r.getColId()&&o.compareColIds(l,r)&&(i=l.sort,s=a)}i?(r.setSort(i,t),r.setSortedAt(s)):(r.setSort(null,t),r.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e.sort((function(e,t){return e.sortedAt-t.sortedAt})),e},e.prototype.getSortForRowController=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{inverter:e.getSort()===ke.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[ke.SORT_ASC,ke.SORT_DESC,null],os([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),os([rt("columnController")],e.prototype,"columnController",void 0),os([rt("eventService")],e.prototype,"eventService",void 0),os([rt("columnApi")],e.prototype,"columnApi",void 0),os([rt("gridApi")],e.prototype,"gridApi",void 0),e=t=os([nt("sortController")],e)}(),rs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},is=function(){function e(){this.keyboardFocusActive=!1,this.events=[]}return e.prototype.init=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.clearFocusedCell.bind(this);this.events=[this.eventService.addEventListener(Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.eventService.addEventListener(Et.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addEventListener(Et.EVENT_COLUMN_GROUP_OPENED,t),this.eventService.addEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,t)];var o=this.activateKeyboardMode.bind(this);e.addEventListener("keydown",o),this.events.push((function(){return e.removeEventListener("keydown",o)}));var n=this.activateMouseMode.bind(this);e.addEventListener("mousedown",n),this.events.push((function(){return e.removeEventListener("mousedown",n)}))},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},e.prototype.isKeyboardFocus=function(){return this.keyboardFocusActive},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.activateMouseMode=function(){this.keyboardFocusActive=!1,this.eventService.dispatchEvent({type:Et.EVENT_MOUSE_FOCUS})},e.prototype.activateKeyboardMode=function(){this.keyboardFocusActive=!0,this.eventService.dispatchEvent({type:Et.EVENT_KEYBOARD_FOCUS})},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCellPosition&&this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var o=this.gridOptionsWrapper.getDomData(t,Ar.DOM_DATA_KEY_CELL_COMP);if(o)return o.getCellPosition();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,o,n){void 0===n&&(n=!1);var r=qe.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:qe.makeNull(o),column:r},this.onCellFocused(n)},e.prototype.isCellFocused=function(e){return!qe.missing(this.focusedCellPosition)&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(e,t){if(qe.missing(this.focusedCellPosition))return!1;var o=qe.makeNull(t);return this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===o},e.prototype.findFocusableElements=function(e,t){var o=".ag-hidden, .ag-hidden *, .ag-disabled, .ag-disabled *";t&&(o+=", "+t);var n=Array.from(e.querySelectorAll("[tabindex], input, select, button, textarea")),r=Array.from(e.querySelectorAll(o));if(!r.length)return n;return function(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}(n,r)},e.prototype.onCellFocused=function(e){var t={type:Et.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCellPosition&&(t.rowIndex=this.focusedCellPosition.rowIndex,t.column=this.focusedCellPosition.column,t.rowPinned=this.focusedCellPosition.rowPinned),this.eventService.dispatchEvent(t)},rs([rt("eventService")],e.prototype,"eventService",void 0),rs([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),rs([rt("columnController")],e.prototype,"columnController",void 0),rs([rt("columnApi")],e.prototype,"columnApi",void 0),rs([rt("gridApi")],e.prototype,"gridApi",void 0),rs([tt],e.prototype,"init",null),rs([ot],e.prototype,"destroy",null),e=rs([nt("focusController")],e)}(),ss=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},as=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return qe.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var o=qe.getEventPath(e),n=0;n<o.length;n++){var r=o[n][t.GRID_DOM_KEY];if(qe.exists(r))return r===this.gridInstanceId}return!1},e.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},e.prototype.getNormalisedPosition=function(e){var t=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,o=e.x,n=e.y;if(t){var r=this.gridPanel.getVScrollPosition();return{x:o+this.gridPanel.getHScrollPosition().left,y:n+r.top}}return{x:o,y:n}},e.gridInstanceSequence=new $e,e.GRID_DOM_KEY="__ag_grid_instance",ss([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ss([rt("eGridDiv")],e.prototype,"eGridDiv",void 0),ss([tt],e.prototype,"init",null),e=t=ss([nt("mouseEventService")],e)}(),ls=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},us=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var o=t,n=!1;!n;){switch(e){case ke.KEY_UP:o=this.getCellAbove(o);break;case ke.KEY_DOWN:o=this.getCellBelow(o);break;case ke.KEY_RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case ke.KEY_LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("ag-Grid: unknown key for navigation "+e)}n=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.rowPinned){case ke.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case ke.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!o.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getRowBelow=function(e){var t=e.rowIndex,o=e.rowPinned;if(this.isLastRowInContainer(e))switch(o){case ke.PINNED_BOTTOM:return null;case ke.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(ke.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ke.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(ke.PINNED_BOTTOM)?{rowIndex:0,rowPinned:ke.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:o}},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,o=e.rowIndex;return t===ke.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:t===ke.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.rowModel.getRowCount()-1<=o},e.prototype.getRowAbove=function(e){var t=e.rowIndex,o=e.rowPinned;return 0===t?o===ke.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(ke.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:o}},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:ke.PINNED_TOP}},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,n=e.rowPinned,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var i=this.getRowBelow(e);if(qe.missing(i))return null;o=i?i.rowIndex:null,n=i?i.rowPinned:null}return{rowIndex:o,column:r,rowPinned:n}},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,n=e.rowPinned,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=qe.last(t);var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(qe.missing(i))return null;o=i?i.rowIndex:null,n=i?i.rowPinned:null}return{rowIndex:o,column:r,rowPinned:n}},ls([rt("columnController")],e.prototype,"columnController",void 0),ls([rt("rowModel")],e.prototype,"rowModel",void 0),ls([rt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ls([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=ls([nt("cellNavigationService")],e)}(),ps=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},cs=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=hn,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=cn,this.cellRendererMap[t.GROUP]=un},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return qe.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",ps([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ps([rt("expressionService")],e.prototype,"expressionService",void 0),ps([rt("eventService")],e.prototype,"eventService",void 0),ps([tt],e.prototype,"init",null),e=t=ps([nt("cellRendererFactory")],e)}(),ds=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},hs=function(){function e(){}return e.prototype.formatValue=function(e,t,o,n,r,i){void 0===i&&(i=!0);var s,a=null,l=e.getColDef();if(r?s=r:i&&(s=t&&t.rowPinned&&l.pinnedRowValueFormatter?l.pinnedRowValueFormatter:l.valueFormatter),s){var u={value:n,node:t,data:t?t.data:null,colDef:l,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};u.$scope=o,a=this.expressionService.evaluate(s,u)}else if(l.refData)return l.refData[n]||"";return null==a&&Array.isArray(n)&&(a=n.join(", ")),a},ds([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ds([rt("expressionService")],e.prototype,"expressionService",void 0),e=ds([nt("valueFormatterService")],e)}(),fs=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.inputType="radio",t}return fs(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){var e=this.getNextValue();this.setValue(e)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addDestroyableEventListener(this.eventService,Et.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(Go),ys=function(){function e(){}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListenerOutsideAngular=function(e,t,o,n){e.addEventListener(t,o,n)},e}(),vs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ms=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:Et.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},vs([rt("eventService")],e.prototype,"eventService",void 0),vs([rt("columnController")],e.prototype,"columnController",void 0),vs([rt("columnApi")],e.prototype,"columnApi",void 0),vs([rt("gridApi")],e.prototype,"gridApi",void 0),vs([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=vs([nt("scrollVisibleService")],e)}(),Cs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ws=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,o,n){this.processClassRules(e.cellClassRules,t,o,n),this.processStaticCellClasses(e,t,o)},e.prototype.processClassRules=function(e,t,o,n){if("object"==typeof e&&null!==e)for(var r=Object.keys(e),i=0;i<r.length;i++){var s=r[i],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?o(s):n&&n(s)}},e.prototype.processStaticCellClasses=function(e,t,o){if(e.cellClass){var n=void 0;if("function"==typeof e.cellClass)n=(0,e.cellClass)(t);else n=e.cellClass;"string"==typeof n?o(n):Array.isArray(n)&&n.forEach((function(e){o(e)}))}},Cs([rt("expressionService")],e.prototype,"expressionService",void 0),e=Cs([nt("stylingService")],e)}(),Es=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),bs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Rs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Es(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Et.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Et.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},bs([rt("eventService")],t.prototype,"eventService",void 0),bs([rt("columnApi")],t.prototype,"columnApi",void 0),bs([rt("gridApi")],t.prototype,"gridApi",void 0),t=bs([nt("columnHoverService")],t)}(Bt),Os=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ss=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},Os([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Os([nt("columnAnimationService")],e)}(),_s=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ts=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,o=[],n=this.gridOptionsWrapper.isTreeData(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return n&&r&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),r=!1),r?e.forEach((function(e,n){o.push(t.createOneAutoGroupColumn(e,n))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.createOneAutoGroupColumn=function(e,o){var n,r=this.generateDefaultColDef(e);n=e?ke.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var i=this.gridOptionsWrapper.getAutoGroupColumnDef();(qe.mergeDeep(r,i),(r=this.columnFactory.mergeColDefs(r)).colId=n,this.gridOptionsWrapper.isTreeData())||qe.missing(r.field)&&qe.missing(r.valueGetter)&&qe.missing(r.filterValueGetter)&&(r.filter=!1);o&&o>0&&(r.headerCheckboxSelection=!1);var s=new gt(r,null,n,!0);return this.context.wireBean(s),s},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),o={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework)||(o.cellRenderer="agGroupCellRenderer"),e){var n=e.getColDef();qe.assign(o,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:n.headerValueGetter}),n.cellRenderer&&qe.assign(o,{cellRendererParams:{innerRenderer:n.cellRenderer,innerRendererParams:n.cellRendererParams}}),o.showRowGroup=e.getColId()}else o.showRowGroup=!0;return o},e.GROUP_AUTO_COLUMN_BUNDLE_ID=ke.GROUP_AUTO_COLUMN_ID,_s([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_s([rt("context")],e.prototype,"context",void 0),_s([rt("columnController")],e.prototype,"columnController",void 0),_s([rt("columnFactory")],e.prototype,"columnFactory",void 0),e=t=_s([nt("autoGroupColService")],e)}(),Ps=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ds=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},As=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return Ps(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addDestroyableEventListener(this.eventService,Et.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,o,n){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:Et.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:Et.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return qe.missing(this.topRowBounds)||qe.missing(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.pixelOffset=qe.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},t.prototype.setZeroRows=function(){this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!qe.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>e&&(o=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),o===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=n-1}}else this.setZeroRows()},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!qe.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Ds([rt("rowModel")],t.prototype,"rowModel",void 0),Ds([rt("eventService")],t.prototype,"eventService",void 0),Ds([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ds([rt("selectionController")],t.prototype,"selectionController",void 0),Ds([rt("columnApi")],t.prototype,"columnApi",void 0),Ds([rt("gridApi")],t.prototype,"gridApi",void 0),Ds([tt],t.prototype,"postConstruct",null),t=Ds([nt("paginationProxy")],t)}(Bt),Ns=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ns(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var o=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},xs([rt("eventService")],t.prototype,"eventService",void 0),xs([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),xs([rt("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),t=xs([nt("paginationAutoPageSizeService")],t)}(Bt),Fs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ls=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},e.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},Fs([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Fs([tt],e.prototype,"init",null),e=Fs([nt("valueCache")],e)}(),Ms=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Gs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ks=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ms(t,e),t.prototype.init=function(){this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,Et.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==ke.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),n=new tr(o,this.clientSideRowModel.getRootNode());n.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(n)}this.rowRenderer.refreshCells()}},Gs([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Gs([rt("rowModel")],t.prototype,"rowModel",void 0),Gs([rt("rowRenderer")],t.prototype,"rowRenderer",void 0),Gs([rt("eventService")],t.prototype,"eventService",void 0),Gs([tt],t.prototype,"init",null),t=Gs([nt("changeDetectionService")],t)}(Bt),Vs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ws=function(){function e(){this.consuming=!1,this.events=[]}var t,o;return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.events=[this.eventService.addEventListener(Et.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(Et.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))]},e.prototype.destroy=function(){this.events.length&&this.events.forEach((function(e){return e()})),this.events=[]},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case Et.EVENT_COLUMN_MOVED:case Et.EVENT_COLUMN_VISIBLE:case Et.EVENT_COLUMN_PINNED:case Et.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case Et.EVENT_COLUMN_GROUP_OPENED:var n=e;t.processGroupOpenedEvent(n);break;case Et.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(e){var t,o=e.columnGroup;if(o){var n=o.getGroupId();t=this.columnController.getOriginalColumnGroup(n)}o&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(t,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,o=this,n=e.column;if(n&&(t=this.columnController.getPrimaryColumn(n.getColId())),!n||t){var r=this.getColumnIds(e),i=this.getMasterColumns(e);switch(e.type){case Et.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(r,s.toIndex,"alignedGridChanged");break;case Et.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(r,a.visible,"alignedGridChanged");break;case Et.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(r,l.pinned,"alignedGridChanged");break;case Et.EVENT_COLUMN_RESIZED:var u=e;i.forEach((function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth());var n=[{key:t.getColId(),newWidth:t.getActualWidth()}];o.columnController.setColumnWidths(n,!1,u.finished,"alignedGridChanged")}))}var p=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(p)}))}},Vs([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Vs([rt("columnController")],e.prototype,"columnController",void 0),Vs([rt("eventService")],e.prototype,"eventService",void 0),Vs([(t=0,o=at("loggerFactory"),function(e,n){o(e,n,t)})],e.prototype,"setBeans",null),Vs([tt],e.prototype,"init",null),Vs([ot],e.prototype,"destroy",null),e=Vs([nt("alignedGridsService")],e)}(),Hs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Bs=function(){function e(){}return e.prototype.adaptFunction=function(e,t,o,n){if(null==t)return{component:null,componentFromFramework:o,source:n,paramsFromSelector:null};var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:o,component:r.functionAdapter(t),source:n,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),o=typeof t;return"string"===o||"number"===o||"boolean"===o?qe.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},Hs([rt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=Hs([nt("agComponentUtils")],e)}(),Us=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},js=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},Us([rt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),Us([tt],e.prototype,"postConstruct",null),e=Us([nt("componentMetadataProvider")],e)}(),zs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ys=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},zs([rt("paginationProxy")],e.prototype,"paginationProxy",void 0),zs([rt("context")],e.prototype,"context",void 0),zs([rt("columnApi")],e.prototype,"columnApi",void 0),zs([rt("gridApi")],e.prototype,"gridApi",void 0),zs([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),zs([rt("expressionService")],e.prototype,"expressionService",void 0),zs([rt("rowRenderer")],e.prototype,"rowRenderer",void 0),zs([rt("$compile")],e.prototype,"$compile",void 0),zs([rt("templateService")],e.prototype,"templateService",void 0),zs([rt("valueService")],e.prototype,"valueService",void 0),zs([rt("eventService")],e.prototype,"eventService",void 0),zs([rt("columnController")],e.prototype,"columnController",void 0),zs([rt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),zs([it("rangeController")],e.prototype,"rangeController",void 0),zs([rt("focusController")],e.prototype,"focusController",void 0),zs([it("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),zs([rt("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),zs([rt("popupService")],e.prototype,"popupService",void 0),zs([rt("valueFormatterService")],e.prototype,"valueFormatterService",void 0),zs([rt("stylingService")],e.prototype,"stylingService",void 0),zs([rt("columnHoverService")],e.prototype,"columnHoverService",void 0),zs([rt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),zs([rt("animationFrameService")],e.prototype,"taskQueue",void 0),zs([rt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),zs([rt("sortController")],e.prototype,"sortController",void 0),zs([rt("filterManager")],e.prototype,"filterManager",void 0),zs([rt("maxDivHeightScaler")],e.prototype,"maxDivHeightScaler",void 0),zs([rt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),zs([rt("detailRowCompCache")],e.prototype,"detailRowCompCache",void 0),zs([rt("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),zs([rt("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),zs([rt("selectionController")],e.prototype,"selectionController",void 0),zs([tt],e.prototype,"postConstruct",null),e=zs([nt("beans")],e)}(),Ks=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},qs={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:40,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:28,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:30,rowHeight:42,chartMenuPanelWidth:240}},$s={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Qs={},Xs=function(){function e(){}return e.prototype.getSassVariable=function(e,t){var o="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),n=qs[o][t],r=0;if(Qs[e]||(Qs[e]={}),Qs[e][t])return Qs[e][t];if($s[t]){var i=$s[t],s=document.createElement("div");s.style.position="absolute";var a=i.reduce((function(t,o,n){0===n&&qe.addCssClass(t,e);var r=document.createElement("div");return r.style.position="static",qe.addCssClass(r,o),t.appendChild(r),r}),s);if(document.body){document.body.appendChild(s);var l=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(a)[l],10),document.body.removeChild(s)}}return Qs[e][t]=r||n,Qs[e][t]},e.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},e.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},e.prototype.getTheme=function(){for(var e,t=/\bag-(material|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&!(e=t.exec(o.className));)o=o.parentElement;if(!e)return{};var n=e[0];if(void 0===e[2]){var r=n.replace("ag-","ag-theme-");qe.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+n+" with "+r+".")}),"using-old-theme")}return{theme:n,el:o,themeFamily:n.replace(/-dark$/,"")}},Ks([rt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=Ks([nt("environment")],e)}(),Zs=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Js=function(){function e(){this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.createTask=function(e,t,o){this.verifyAnimationFrameOn(o);var n={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[o],n),this.schedule()},e.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},e.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},e.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,o){return e.index!==o.index?t*(o.index-e.index):o.createOrder-e.createOrder})),e.sorted=!0}},e.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,o=t.list,n=this.createTasksP2,r=n.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0;l||a<e;){var u=void 0;if(o.length)this.sortTaskList(t),u=o.pop().task;else if(r.length)this.sortTaskList(n),u=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}u=i.pop()}this.cancelledTasks.has(u)||u(),a=(new Date).getTime()-s}o.length||r.length||i.length?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:Et.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},Zs([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Zs([rt("eventService")],e.prototype,"eventService",void 0),Zs([tt],e.prototype,"init",null),e=Zs([nt("animationFrameService")],e)}(),ea=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ta=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,o=e.altKey,n=e.ctrlKey,r=this.mouseEventService.getCellPositionForEvent(e);if(!r)return!1;var i=!1;switch(t){case ke.KEY_PAGE_HOME:case ke.KEY_PAGE_END:n||o||(this.onHomeOrEndKey(t),i=!0);break;case ke.KEY_LEFT:case ke.KEY_RIGHT:n&&!o&&(this.onCtrlLeftOrRight(t,r),i=!0);break;case ke.KEY_UP:case ke.KEY_DOWN:n&&!o&&(this.onCtrlUpOrDown(t,r),i=!0);break;case ke.KEY_PAGE_DOWN:n||o||(this.onPageDown(r),i=!0);break;case ke.KEY_PAGE_UP:n||o||(this.onPageUp(r),i=!0)}return i&&e.preventDefault(),i},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var n=this.paginationProxy.getPixelOffset(),r=t.top+o,i=this.paginationProxy.getRowIndexAtPixel(r+n),s=this.paginationProxy.getRow(e.rowIndex).rowTop+o-n,a=this.paginationProxy.getRowIndexAtPixel(s+n),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),i>l&&(i=l),this.navigateTo(i,"top",null,a,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var n=this.paginationProxy.getPixelOffset(),r=t.top,i=this.paginationProxy.getRowIndexAtPixel(r+n),s=this.paginationProxy.getRow(e.rowIndex),a=s.rowTop+s.rowHeight-o-n,l=this.paginationProxy.getRowIndexAtPixel(a+n),u=this.paginationProxy.getPageFirstRow();l<u&&(l=u),i<u&&(i=u),this.navigateTo(i,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,o,n,r){if(qe.exists(o)&&this.gridPanel.ensureColumnVisible(o),qe.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusController.setFocusedCell(n,r,null,!0),this.rangeController){var i={rowIndex:n,rowPinned:null,column:r};this.rangeController.setRangeToCell(i)}},e.prototype.onCtrlUpOrDown=function(e,t){var o=e===ke.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(o,null,t.column,o,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var o=e===ke.KEY_LEFT,n=this.columnController.getAllDisplayedColumns(),r=o?n[0]:qe.last(n);this.navigateTo(t.rowIndex,null,r,t.rowIndex,r)},e.prototype.onHomeOrEndKey=function(e){var t=e===ke.KEY_PAGE_HOME,o=this.columnController.getAllDisplayedColumns(),n=t?o[0]:qe.last(o),r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,n,r,n)},ea([rt("mouseEventService")],e.prototype,"mouseEventService",void 0),ea([rt("paginationProxy")],e.prototype,"paginationProxy",void 0),ea([rt("focusController")],e.prototype,"focusController",void 0),ea([rt("animationFrameService")],e.prototype,"animationFrameService",void 0),ea([it("rangeController")],e.prototype,"rangeController",void 0),ea([rt("columnController")],e.prototype,"columnController",void 0),ea([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ea([tt],e.prototype,"init",null),e=ea([nt("navigationService")],e)}(),oa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),na=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ra=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return oa(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.maxDivHeight=qe.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:Et.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},na([rt("eventService")],t.prototype,"eventService",void 0),na([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),na([tt],t.prototype,"postConstruct",null),t=na([nt("maxDivHeightScaler")],t)}(Bt),ia=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},sa=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},e.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))}},e.prototype.recurseDown=function(e,t){var o=this;e.forEach((function(e){if(e.group){var n;if(e.hasChildren()&&o.recurseDown(t(e),t),o.groupSelectsChildren){var r=qe.find(t(e),"selectable",!0);n=qe.exists(r)}else n=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(e);e.setRowSelectable(n)}}))},ia([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ia([tt],e.prototype,"init",null),e=ia([nt("selectableService")],e)}(),aa=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},la=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),qe.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var o=this.gridPanel.getCenterContainer();o.appendChild(this.eDummyContainer);var n=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(o){var r=new Ar(t.$scope,t.beans,o,e,null,!0,!1);r.setParentRow(t.eDummyContainer),n.push(r)}));var r=n.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=r,n.forEach((function(e){return e.afterAttached()}));for(var i=0,s=0;s<this.eDummyContainer.children.length;s++){var a=this.eDummyContainer.children[s];a.offsetHeight>i&&(i=a.offsetHeight)}return o.removeChild(this.eDummyContainer),n.forEach((function(e){e.detach(),e.destroy()})),qe.clearElement(this.eDummyContainer),i},aa([rt("beans")],e.prototype,"beans",void 0),aa([rt("$scope")],e.prototype,"$scope",void 0),aa([rt("columnController")],e.prototype,"columnController",void 0),e=aa([nt("autoHeightCalculator")],e)}(),ua=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),pa=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ca=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return ua(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",qe.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",qe.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",qe.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",qe.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===ke.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,Et.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),o=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):qe.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),n=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n <span ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n '+o+'\n <span ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n '+n+'\n <span ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel">\n <div ref="btFirst" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("first","First")+'</button>\n </div>\n <div ref="btPrevious" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("previous","Previous")+'</button>\n </div>\n <span class="ag-paging-description">\n '+t+'\n <span ref="lbCurrent" class="ag-paging-number"></span>\n '+n+'\n <span ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <span ref="lbTotal" class="ag-paging-number"></span>\n <div ref="btNext" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("next","Next")+'</button>\n </div>\n <div ref="btLast" class="ag-paging-button-wrapper">\n <button type="button" class="ag-paging-button">'+e("last","Last")+"</button>\n </div>\n </span>\n </div>"},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,qe.addOrRemoveCssClass(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),qe.addOrRemoveCssClass(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled);var n=this.isZeroPagesToDisplay(),r=t&&e===o-1;this.nextButtonDisabled=r||n,qe.addOrRemoveCssClass(this.btNext,"ag-disabled",this.nextButtonDisabled),this.lastButtonDisabled=!t||n||e===o-1,qe.addOrRemoveCssClass(this.btLast,"ag-disabled",this.lastButtonDisabled)},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),n=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=n*o+1)+n-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.serverSideRowModel&&this.serverSideRowModel.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var n=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=n,this.lbRecordCount.innerHTML=n}},pa([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),pa([rt("eventService")],t.prototype,"eventService",void 0),pa([rt("paginationProxy")],t.prototype,"paginationProxy",void 0),pa([rt("rowRenderer")],t.prototype,"rowRenderer",void 0),pa([rt("rowModel")],t.prototype,"rowModel",void 0),pa([qt("btFirst")],t.prototype,"btFirst",void 0),pa([qt("btPrevious")],t.prototype,"btPrevious",void 0),pa([qt("btNext")],t.prototype,"btNext",void 0),pa([qt("btLast")],t.prototype,"btLast",void 0),pa([qt("lbRecordCount")],t.prototype,"lbRecordCount",void 0),pa([qt("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),pa([qt("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),pa([qt("eSummaryPanel")],t.prototype,"eSummaryPanel",void 0),pa([qt("lbCurrent")],t.prototype,"lbCurrent",void 0),pa([qt("lbTotal")],t.prototype,"lbTotal",void 0),pa([tt],t.prototype,"postConstruct",null),t}(zt),da=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ha=function(){function e(){}return e.prototype.observeResize=function(e,t,o){void 0===o&&(o=50);var n,r,i,s,a,l=this.frameworkOverrides,u=qe.debounce(t,o),p=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!p?((a=new window.ResizeObserver(u)).observe(e),function(){return a.disconnect()}):(n=qe.offsetWidth(e),r=qe.offsetHeight(e),i=!0,(s=function(){if(i){var a=qe.offsetWidth(e),u=qe.offsetHeight(e);(a!==n||u!==r)&&(n=a,r=u,t()),l.setTimeout(s,o)}})(),function(){return i=!1})},da([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),da([rt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),e=da([nt("resizeObserverService")],e)}(),fa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ga=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(fi=hi||(hi={}))[fi.Loading=0]="Loading",fi[fi.NoRows=1]="NoRows";var ya=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o}return fa(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){qe.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===hi.Loading),qe.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===hi.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,hi.Loading)},t.prototype.showNoRowsOverlay=function(){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,hi.NoRows)},t.prototype.showOverlay=function(e,t){var o=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e.then((function(e){o.inProgress=!1,o.eOverlayWrapper.appendChild(e.getGui()),o.activeOverlay=e,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,qe.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},t.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',ga([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ga([rt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ga([qt("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),ga([tt],t.prototype,"postConstruct",null),t}(zt),va=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ma=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ca=function(e){function t(o){void 0===o&&(o={});var n=e.call(this,t.getTemplate(o))||this;n.suppressEnabledCheckbox=!0,n.suppressOpenCloseIcons=!1;var r=o.title,i=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return n.title=r,n.cssIdentifier=o.cssIdentifier||"default",n.enabled=null==i||i,n.items=s||[],n.alignItems=o.alignItems||"center",null!=a&&(n.suppressEnabledCheckbox=a),null!=l&&(n.suppressOpenCloseIcons=l),n}return va(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(qe.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(qe.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addDestroyableEventListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()}))},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;qe.setDisplayed(this.eGroupClosedIcon,e&&!this.expanded),qe.setDisplayed(this.eGroupOpenedIcon,e&&this.expanded),qe.setDisplayed(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){var t=this.getGui();this.alignItems!==e&&qe.removeCssClass(t,"ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var o="ag-group-item-alignment-"+this.alignItems;return qe.addCssClass(t,o),this},t.prototype.toggleGroupExpand=function(e){if(this.suppressOpenCloseIcons)return this.expanded=!0,this.refreshChildDisplay(),qe.setDisplayed(this.eContainer,!0),this;if(e=null!=e?e:!this.expanded,this.expanded===e)return this;if(this.expanded=e,this.refreshChildDisplay(),qe.setDisplayed(this.eContainer,e),this.expanded){this.dispatchEvent({type:"expanded"})}else{this.dispatchEvent({type:"collapsed"})}return this},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,o=e instanceof zt?e.getGui():e;qe.addCssClass(o,"ag-group-item"),qe.addCssClass(o,"ag-"+this.cssIdentifier+"-group-item"),t.appendChild(o),this.items.push(o)},t.prototype.hideItem=function(e,t){var o=this.items[t];qe.addOrRemoveCssClass(o,"ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){qe.addCssClass(this.eTitleBar,e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(o){t.setEnabled(o,!0),e(o)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){qe.addOrRemoveCssClass(this.getGui(),"ag-disabled",!this.enabled),qe.addOrRemoveCssClass(this.eTitleBar,"ag-disabled-group-title-bar",this.suppressEnabledCheckbox&&!this.enabled),qe.addOrRemoveCssClass(this.eContainer,"ag-disabled-group-container",!this.enabled)},ma([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ma([qt("eTitleBar")],t.prototype,"eTitleBar",void 0),ma([qt("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),ma([qt("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),ma([qt("eToolbar")],t.prototype,"eToolbar",void 0),ma([qt("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),ma([qt("eTitle")],t.prototype,"eTitle",void 0),ma([qt("eContainer")],t.prototype,"eContainer",void 0),ma([tt],t.prototype,"postConstruct",null),t}(zt),wa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ea=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ba=function(e){function t(o){var n=e.call(this,t.getTemplate(o))||this;return n.closable=!0,n.positioned=!1,n.dragStartPosition={x:0,y:0},n.position={x:0,y:0},n.size={width:void 0,height:void 0},n.config=o,n}return wa(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,o=t.component,n=t.closable,r=t.hideTitleBar,i=t.title,s=t.minWidth,a=t.width,l=t.minHeight,u=t.height,p=t.centered,c=t.x,d=t.y,h=this.getGui();o&&this.setBodyComponent(o),r?qe.addCssClass(this.eTitleBar,"ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=n?n:this.closable)),this.addDestroyableEventListener(this.eTitleBar,"mousedown",(function(t){if(h.contains(t.relatedTarget)||h.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=s?s:250,this.popupParent=this.popupService.getPopupParent(),a&&this.setWidth(a),u&&this.setHeight(u),this.renderComponent&&this.renderComponent(),a&&u||this.refreshSize(),p?this.center():(c||d)&&this.offsetElement(c,d),this.positioned=!0,this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=this.popupParent.getBoundingClientRect(),o=e.e,n=e.isLeft,r=e.isTop,i=e.anywhereWithin,s=e.topBuffer,a=o.clientX-this.dragStartPosition.x,l=o.clientY-this.dragStartPosition.y,u=this.getWidth(),p=this.getHeight(),c=t.left>=o.clientX&&this.position.x<=0||t.right<=o.clientX&&t.right<=this.position.x+t.left+u;return c||(c=n?a<0&&o.clientX>this.position.x+t.left||a>0&&o.clientX<this.position.x+t.left:i?a<0&&o.clientX>this.position.x+t.left+u||a>0&&o.clientX<this.position.x+t.left:a<0&&o.clientX>this.position.x+t.left+u||a>0&&o.clientX<this.position.x+t.left+u),{movementX:a=c?0:a,movementY:l=t.top>=o.clientY&&this.position.y<=0||t.bottom<=o.clientY&&t.bottom<=this.position.y+t.top+p||r&&(l<0&&o.clientY>this.position.y+t.top+(s||0)||l>0&&o.clientY<this.position.y+t.top)||!r&&(l<0&&o.clientY>this.position.y+t.top+p||l>0&&o.clientY<this.position.y+t.top+p)?0:l}},t.prototype.refreshSize=function(){var e=this.size,t=e.width,o=e.height;t||this.setWidth(this.getGui().offsetWidth),o||this.setHeight(this.getGui().offsetHeight)},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var o=this.getGui();this.popupService.positionPopup({ePopup:o,x:e,y:t,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(o.style.left,10),this.position.y=parseInt(o.style.top,10)},t.prototype.getHeight=function(){return this.size.height},t.prototype.setHeight=function(e){var t=this.getGui(),o=!1;if("string"==typeof e&&-1!==e.indexOf("%"))qe.setFixedHeight(t,e),e=qe.getAbsoluteHeight(t),o=!0;else{e=Math.max(this.minHeight,e);var n=t.offsetParent;n&&n.clientHeight&&e+this.position.y>n.clientHeight&&(e=n.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,o?(t.style.maxHeight="unset",t.style.minHeight="unset"):qe.setFixedHeight(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),o=!1;if("string"==typeof e&&-1!==e.indexOf("%"))qe.setFixedWidth(t,e),e=qe.getAbsoluteWidth(t),o=!0;else{e=Math.max(this.minWidth,e);var n=t.offsetParent;n&&n.clientWidth&&e+this.position.x>n.clientWidth&&(e=n.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,o?(t.style.maxWidth="unset",t.style.minWidth="unset"):qe.setFixedWidth(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,o=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,o)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var o=this.closeButtonComp=new zt(t.CLOSE_BTN_TEMPLATE);this.getContext().wireBean(o),(n=o.getGui()).appendChild(qe.addCssClass(qe.createIconNoSpan("close",this.gridOptionsWrapper),"ag-panel-title-bar-button-icon")),this.addTitleBarButton(o),o.addDestroyableEventListener(n,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var n;(n=this.closeButtonComp.getGui()).parentElement.removeChild(n),this.closeButtonComp.destroy(),this.closeButtonComp=void 0}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var o=this.eTitleBarButtons,n=o.children,r=n.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r));var i=e.getGui();qe.addCssClass(i,"ag-panel-title-bar-button"),0===t?o.insertAdjacentElement("afterbegin",i):t===r?o.insertAdjacentElement("beforeend",i):n[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return qe.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return qe.getInnerWidth(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp.destroy(),this.closeButtonComp=void 0);var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Ea([rt("popupService")],t.prototype,"popupService",void 0),Ea([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ea([qt("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Ea([qt("eTitleBar")],t.prototype,"eTitleBar",void 0),Ea([qt("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Ea([qt("eTitle")],t.prototype,"eTitle",void 0),Ea([tt],t.prototype,"postConstruct",null),t}(zt),Ra=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Oa=function(e){function t(t){var o=e.call(this,t)||this;return o.RESIZE_TEMPLATE='\n <div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>\n ',o.MAXIMIZE_BTN_TEMPLATE='<div class="ag-dialog-button"></span>',o.resizable={},o.movable=!1,o.isMoving=!1,o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.isResizing=!1,o.lastPosition={x:0,y:0,width:0,height:0},o}return Ra(t,e),t.prototype.postConstruct=function(){var t=this,o=this.getGui(),n=this.config,r=n.movable,i=n.resizable,s=n.maximizable;qe.addCssClass(o,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addDestroyableEventListener(o,"focusin",(function(e){o.contains(e.relatedTarget)||t.popupService.bringPopupToFront(o)})),r&&this.setMovable(r),s&&this.setMaximizable(s),this.addResizers(),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,o=t.alwaysOnTop,n=t.modal;this.close=this.popupService.addPopup(n,e,!0,this.destroy.bind(this),void 0,o),e.focus()},t.prototype.addResizers=function(){var e=this.getGui();if(e){var t=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;e.appendChild(t.firstChild),this.createMap()}},t.prototype.createMap=function(){var e=this.getGui();this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e){this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onResize=function(e,t){if(this.isResizing){var o=!!t.match(/left/i),n=!!t.match(/right/i),r=!!t.match(/top/i),i=!!t.match(/bottom/i),s=o||n,a=r||i,l=this.calculateMouseMovement({e:e,isLeft:o,isTop:r}),u=l.movementX,p=l.movementY,c=0,d=0;if(s&&u){var h=o?-1:1,f=this.getWidth(),g=f+u*h,y=!1;o&&(c=f-g,(this.position.x+c<=0||g<=this.minWidth)&&(y=!0,c=0)),y||this.setWidth(g)}if(a&&p){h=r?-1:1;var v=this.getHeight(),m=v+p*h,C=!1;r&&(d=v-m,(this.position.y+d<=0||m<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(m)}this.updateDragStartPosition(e.clientX,e.clientY),(c||d)&&this.offsetElement(this.position.x+c,this.position.y+d)}},t.prototype.onResizeEnd=function(){this.isResizing=!1;var e={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.dispatchEvent(e)},t.prototype.onMoveStart=function(e){this.isMoving=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t=this.position,o=t.x,n=t.y,r=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),i=r.movementX,s=r.movementY;this.offsetElement(o+i,n+s),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1},t.prototype.toggleMaximize=function(){if(this.isMaximized){var e=this.lastPosition,t=e.x,o=e.y,n=e.width,r=e.height;this.setWidth(n),this.setHeight(r),this.offsetElement(t,o)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){qe.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),qe.addOrRemoveCssClass(this.minimizeIcon,"ag-hidden",!this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=void 0),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){var t=this;"boolean"==typeof e&&(e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}),Object.keys(e).forEach((function(o){var n=o,r=!!e[n],i=t.getResizerElement(n),s=t.resizerMap[n].dragSource||{eElement:i,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,n)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[n]===r&&(t.isAlive()||r)||(r?(t.dragService.addDragSource(s),i.style.pointerEvents="all"):(t.dragService.removeDragSource(s),i.style.pointerEvents="none"),t.resizerMap[n].dragSource=r?s:void 0)}))},t.prototype.setMovable=function(e){if(e!==this.movable){this.movable=e;var t=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}},t.prototype.setMaximizable=function(e){var t=this;if(!1===e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&e!==this.isMaximizable){var n=this.maximizeButtonComp=new zt(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().wireBean(n);var r=n.getGui();r.appendChild(this.maximizeIcon=qe.createIconNoSpan("maximize",this.gridOptionsWrapper)),qe.addCssClass(this.maximizeIcon,"ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=qe.createIconNoSpan("minimize",this.gridOptionsWrapper)),qe.addCssClass(this.minimizeIcon,"ag-panel-title-bar-button-icon"),qe.addCssClass(this.minimizeIcon,"ag-hidden"),n.addDestroyableEventListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(n,0),this.maximizeListeners.push(this.addDestroyableEventListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addDestroyableEventListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([rt("dragService")],t.prototype,"dragService",void 0),t}(ba),Sa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_a=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-text-field",o.displayTag="input",o.inputType="text",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return Sa(t,e),t.prototype.setValue=function(t,o){var n=e.prototype.setValue.call(this,t,o);return this.eInput.value!==t&&(this.eInput.value=t),n},t}(Fo),Ta=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pa=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-text-area",o.displayTag="textarea",o.inputType="",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return Ta(t,e),t.prototype.setValue=function(t,o){var n=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,n},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Fo),Da=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Aa=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Na=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.labelAlignment="top",o}return Da(t,e),t.prototype.init=function(){qe.addCssClass(this.eSlider.getGui(),"ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,o=No.EVENT_CHANGED;return this.addDestroyableEventListener(this.eText,o,(function(){var o=parseFloat(t.eText.getValue());t.eSlider.setValue(o.toString(),!0),e(o||0)})),this.addDestroyableEventListener(this.eSlider,o,(function(){var o=t.eSlider.getValue();t.eText.setValue(o,!0),e(parseFloat(o))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:No.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',Aa([qt("eLabel")],t.prototype,"eLabel",void 0),Aa([qt("eSlider")],t.prototype,"eSlider",void 0),Aa([qt("eText")],t.prototype,"eText",void 0),Aa([tt],t.prototype,"init",null),t}(Do),xa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ia=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Fa=function(e){function o(t){var n=e.call(this,o.TEMPLATE)||this;return n.H=1,n.S=1,n.B=1,n.A=1,n.isSpectrumDragging=!1,n.isSpectrumHueDragging=!1,n.isSpectrumAlphaDragging=!1,n.colorChanged=!1,n.picker=t.picker,n}return xa(o,e),o.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addDestroyableEventListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addDestroyableEventListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addDestroyableEventListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addDestroyableEventListener(document,"mouseup",this.onMouseUp.bind(this)),this.addDestroyableEventListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},o.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},o.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},o.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},o.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},o.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},o.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},o.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},o.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},o.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},o.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},o.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var o=e.clientX-t.left,n=e.clientY-t.top;o=Math.max(o,0),o=Math.min(o,t.width),n=Math.max(n,0),n=Math.min(n,t.height),this.setSpectrumValue(o/t.width,1-n/t.height)}},o.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var o=this.spectrumHueSlider,n=o.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,o.style.left=r+n.width/2+"px",this.update()}},o.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var o=this.spectrumAlphaSlider,n=o.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,o.style.left=r+n.width/2+"px",this.update()}},o.prototype.update=function(){var e=t.fromHSB(360*this.H,this.S,this.B,this.A),o=t.fromHSB(360*this.H,1,1),n=e.toRgbaString(),r=this.picker;t.fromString(r.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),r.setValue(n),this.spectrumColor.style.backgroundColor=o.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},o.prototype.setSpectrumValue=function(e,t){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var n=this.spectrumDragger,r=n.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,n.style.left=e*o.width-r.width/2+"px",n.style.top=(1-t)*o.height-r.height/2+"px",this.update()}},o.prototype.initRecentColors=function(){var e=o.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},o.prototype.setValue=function(e){var o=t.fromString(e),n=o.toHSB(),r=n[0],i=n[1],s=n[2];this.H=(isNaN(r)?0:r)/360,this.A=o.a;var a=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-a.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(i,s)},o.prototype.onRecentColorClick=function(e){var t=e.target;if(qe.exists(t.id)){var n=parseInt(t.id,10);this.setValue(o.recentColors[n]),this.destroy()}},o.prototype.addRecentColor=function(){var e=t.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=o.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter((function(t){return t!=e})),(n=[e].concat(n)).length>o.maxRecentColors&&(n=n.slice(0,o.maxRecentColors)),o.recentColors=n)},o.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},o.maxRecentColors=8,o.recentColors=[],o.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',Ia([qt("spectrumColor")],o.prototype,"spectrumColor",void 0),Ia([qt("spectrumVal")],o.prototype,"spectrumVal",void 0),Ia([qt("spectrumDragger")],o.prototype,"spectrumDragger",void 0),Ia([qt("spectrumHue")],o.prototype,"spectrumHue",void 0),Ia([qt("spectrumHueSlider")],o.prototype,"spectrumHueSlider",void 0),Ia([qt("spectrumAlpha")],o.prototype,"spectrumAlpha",void 0),Ia([qt("spectrumAlphaSlider")],o.prototype,"spectrumAlphaSlider",void 0),Ia([qt("recentColors")],o.prototype,"recentColors",void 0),Ia([tt],o.prototype,"postConstruct",null),o}(zt),La=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ma=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ga=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TEMPLATE='<div class="ag-picker-field" role="presentation">\n <label ref="eLabel"></label>\n <div ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper" tabIndex="-1">\n <%displayField% ref="eDisplayField" class="ag-picker-field-display"></%displayField%>\n <div ref="eIcon" class="ag-picker-field-icon"></div>\n </div>\n </div>',t.isDestroyingPicker=!1,t.skipClick=!1,t}return La(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var o=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},n=this.getGui();this.addDestroyableEventListener(n,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&qe.isVisible(t.pickerComponent.getGui())&&n.contains(e.target)&&(t.skipClick=!0)})),this.addDestroyableEventListener(n,"keydown",(function(e){switch(e.keyCode){case ke.KEY_UP:case ke.KEY_DOWN:case ke.KEY_ENTER:case ke.KEY_SPACE:o();case ke.KEY_ESCAPE:e.preventDefault()}})),this.addDestroyableEventListener(this.eWrapper,"click",o),this.addDestroyableEventListener(this.eLabel,"click",o),this.pickerIcon&&this.eIcon.appendChild(qe.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return qe.setElementWidth(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Ma([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ma([qt("eLabel")],t.prototype,"eLabel",void 0),Ma([qt("eWrapper")],t.prototype,"eWrapper",void 0),Ma([qt("eDisplayField")],t.prototype,"eDisplayField",void 0),Ma([qt("eIcon")],t.prototype,"eIcon",void 0),t}(No),ka=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Va=function(e){function t(t){var o=e.call(this)||this;return o.displayTag="div",o.className="ag-color-picker",o.pickerIcon="colorPicker",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&t.color&&(o.value=t.color),o}return ka(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),o=new Oa({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.getContext().wireBean(o),qe.addCssClass(o.getGui(),"ag-color-dialog");var n=new Fa({picker:this});return this.getContext().wireBean(n),n.addDestroyFunc((function(){o.isAlive()&&o.destroy()})),o.setParentComponent(this),o.setBodyComponent(n),n.setValue(this.getValue()),o.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,n.isAlive()&&n.destroy()),e.isAlive()&&e.getFocusableElement().focus()})),o},t.prototype.setValue=function(e){return this.value===e||(this.value=e,this.eDisplayField.style.backgroundColor=e,this.dispatchEvent({type:No.EVENT_CHANGED})),this},t.prototype.getValue=function(){return this.value},t}(Ga),Wa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ha=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return Wa(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),o=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==o&&t.setValue(o)}))},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,null!=this.min?this.eInput.setAttribute("min",e.toString()):this.eInput.removeAttribute("min")),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,null!=this.max?this.eInput.setAttribute("max",e.toString()):this.eInput.removeAttribute("max")),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,null!=e?this.eInput.setAttribute("step",e.toString()):this.eInput.removeAttribute("step")),this},t.prototype.setValue=function(t,o){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,o)},t}(_a),Ba=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ua=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-range-field",o.displayTag="input",o.inputType="range",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return Ba(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,o=t.min,n=t.max,r=t.step;null!=o&&this.setMinValue(o),null!=n&&this.setMaxValue(n),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this,t=qe.isBrowserIE()?"change":"input";this.addDestroyableEventListener(this.eInput,t,(function(t){var o=t.target.value;e.setValue(o)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.step=e,this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,o){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var n=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,n},t}(Fo),ja=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),za=function(e){function t(o){void 0===o&&(o="default");var n=e.call(this,t.getTemplate(o))||this;return n.cssIdentifier=o,n.options=[],n.itemEls=[],n}return ja(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.getTemplate=function(e){return'<div class="ag-list ag-'+e+'-list"></div>'},t.prototype.handleKeyDown=function(e){var t=e.keyCode;switch(t){case ke.KEY_ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case ke.KEY_DOWN:case ke.KEY_UP:var n=t===ke.KEY_DOWN,r=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(n?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[n?0:this.itemEls.length-1];this.highlightItem(r)}},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=e.value,o=e.text,n=qe.escape(void 0===o?t:o);return this.options.push({value:t,text:n}),this.renderOption(n),this},t.prototype.renderOption=function(e){var t=this,o=document.createElement("div"),n=document.createElement("span");qe.addCssClass(o,"ag-list-item"),qe.addCssClass(o,"ag-"+this.cssIdentifier+"-list-item"),o.tabIndex=-1,n.innerHTML=e,this.itemEls.push(o),this.addDestroyableEventListener(o,"mouseover",(function(e){return t.highlightItem(o)})),this.addDestroyableEventListener(o,"mouseleave",(function(){return t.clearHighlighted()})),this.addDestroyableEventListener(o,"click",(function(){var e=t.itemEls.indexOf(o);t.setValueByIndex(e)})),o.appendChild(n),this.getGui().appendChild(o)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var o=qe.findIndex(this.options,(function(t){return t.value===e}));if(-1!==o){var n=this.options[o];this.value=n.value,this.displayValue=null!=n.text?n.text:n.value,this.highlightItem(this.itemEls[o]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=qe.findIndex(this.options,(function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(qe.radioCssClass(e,"ag-active-item"),this.highlightedEl=e,this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(qe.removeCssClass(this.highlightedEl,"ag-active-item"),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:No.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([tt],t.prototype,"init",null),t}(zt),Ya=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ka=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},qa=function(e){function t(t){var o=e.call(this)||this;return o.displayTag="div",o.className="ag-select",o.pickerIcon="smallDown",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),o}return Ya(t,e),t.prototype.init=function(){var e=this;this.listComponent=new za("select"),this.getContext().wireBean(this.listComponent),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addDestroyableEventListener(this.listComponent,za.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addDestroyableEventListener(this.listComponent,No.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),o=this.addDestroyableEventListener(document.body,"wheel",(function(o){!t.contains(o.target)&&e.hideList&&e.hideList()})),n=this.addDestroyableEventListener(t,"focusout",(function(o){!t.contains(o.relatedTarget)&&e.hideList&&e.hideList()}));return this.hideList=this.popupService.addPopup(!0,t,!0,(function(){e.hideList=null,n(),o(),e.isAlive()&&e.getFocusableElement().focus()})),qe.setElementWidth(t,qe.getAbsoluteWidth(this.eWrapper)),t.style.maxHeight=qe.getInnerHeight(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,o,n){if(this.value!==t&&(n||this.listComponent.setValue(t,!0),this.listComponent.getValue()!==this.getValue()))return this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,o)},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.listComponent.destroy(),e.prototype.destroy.call(this)},Ka([rt("popupService")],t.prototype,"popupService",void 0),Ka([tt],t.prototype,"init",null),t}(Ga),$a=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Qa=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Xa=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return $a(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var o=parseFloat(e);o>180&&(o-=360),t.setValue(o)})),this.updateNumberInput(),qe.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addDestroyableEventListener(this,No.EVENT_CHANGED,(function(){t.eAngleValue.getInputElement().contains(document.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,n=t.width/2,r=t.height/2;o.style.left=n+8*Math.cos(e)+"px",o.style.top=r+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,o=Math.atan2(t,e);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(o)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,o=t.width/2,n=t.height/2,r=e.clientX-t.left-o,i=e.clientY-t.top-n,s=Math.atan2(i,r);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addDestroyableEventListener(this,No.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var o;return o=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(o),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:No.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return qe.setFixedWidth(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',Qa([qt("eLabel")],t.prototype,"eLabel",void 0),Qa([qt("eParentCircle")],t.prototype,"eParentCircle",void 0),Qa([qt("eChildCircle")],t.prototype,"eChildCircle",void 0),Qa([qt("eAngleValue")],t.prototype,"eAngleValue",void 0),Qa([rt("dragService")],t.prototype,"dragService",void 0),t}(Do),Za=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ja=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t.inputType="checkbox",t}return Za(t,e),t.prototype.setValue=function(t,o){return e.prototype.setValue.call(this,t,o),qe.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(gs),el=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},tl=function(){function e(){this.cacheItems=[]}return e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(e,t,o){if(!this.active||!e.detail)this.destroyFullWidthRow(o);else{var n=this.getCacheItem(e,!0);switch(t){case ke.PINNED_LEFT:this.destroyFullWidthRow(n.left),n.left=o;break;case ke.PINNED_RIGHT:this.destroyFullWidthRow(n.right),n.right=o;break;default:this.destroyFullWidthRow(n.center),n.center=o}this.cacheItems.sort((function(e,t){return t.lastAccessedTime-e.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}},e.prototype.getCacheItem=function(e,t){var o;void 0===t&&(t=!1);for(var n=0;n<this.cacheItems.length;n++){var r=this.cacheItems[n];if(r.rowNode===e){o=r;break}}return!o&&t&&(o={rowNode:e},this.cacheItems.push(o)),o&&this.stampCacheItem(o),o},e.prototype.stampCacheItem=function(e){e.lastAccessedTime=(new Date).getTime()},e.prototype.destroyFullWidthRow=function(e){e&&e.destroy&&e.destroy()},e.prototype.purgeCache=function(e){for(var t=e;t<this.cacheItems.length;t++){var o=this.cacheItems[t];this.destroyFullWidthRow(o.center),this.destroyFullWidthRow(o.left),this.destroyFullWidthRow(o.right)}this.cacheItems.length>e&&(this.cacheItems.length=e)},e.prototype.get=function(e,t){if(e.detail){var o,n=this.getCacheItem(e);if(n)switch(t){case ke.PINNED_LEFT:n.left&&(o=n.left,n.left=void 0);break;case ke.PINNED_RIGHT:n.right&&(o=n.right,n.right=void 0);break;default:n.center&&(o=n.center,n.center=void 0)}return o}},e.prototype.destroy=function(){this.purgeCache(0)},el([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),el([tt],e.prototype,"postConstruct",null),el([ot],e.prototype,"destroy",null),e=el([nt("detailRowCompCache")],e)}(),ol=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},nl=function(){function e(){}return e.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},e.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},e.prototype.before=function(e,t){switch(e.rowPinned){case ke.PINNED_TOP:if(t.rowPinned!==ke.PINNED_TOP)return!0;break;case ke.PINNED_BOTTOM:if(t.rowPinned!==ke.PINNED_BOTTOM)return!1;break;default:if(qe.exists(t.rowPinned))return t.rowPinned!==ke.PINNED_TOP}return e.rowIndex<t.rowIndex},ol([rt("rowModel")],e.prototype,"rowModel",void 0),ol([rt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),e=ol([nt("rowPositionUtils")],e)}(),rl=function(){function e(){}return e.prototype.createId=function(e){var t=e.rowIndex,o=e.rowPinned,n=e.column;return this.createIdFromValues(t,n,o)},e.prototype.createIdFromValues=function(e,t,o){return e+"."+(null==o?"null":o)+"."+t.getId()},e.prototype.equals=function(e,t){var o=e.column===t.column,n=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return o&&n&&r},e=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}([nt("cellPositionUtils")],e)}(),il=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},sl=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===ke.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return qe.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var o=t===ke.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(qe.missingOrEmpty(o))return 0;for(var n=0;n<o.length;n++){var r=o[n];if(r.rowTop+r.rowHeight-1>=e)return n}return o.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Et.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Et.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var o=this,n=[];if(e){var r=0;e.forEach((function(e,i){var s=new To;o.context.wireBean(s),s.data=e,s.id=(t?"t":"b")+"-"+i,s.rowPinned=t?ke.PINNED_TOP:ke.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),r+=s.rowHeight,n.push(s)}))}return n},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){qe.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){qe.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=qe.last(e);return t.rowTop+t.rowHeight}return 0},il([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),il([rt("eventService")],e.prototype,"eventService",void 0),il([rt("context")],e.prototype,"context",void 0),il([rt("columnApi")],e.prototype,"columnApi",void 0),il([rt("gridApi")],e.prototype,"gridApi",void 0),il([tt],e.prototype,"init",null),e=il([nt("pinnedRowModel")],e)}(),al=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ll=function(e){this.cellValueChanges=e},ul=function(e){function t(t,o,n){var r=e.call(this,t)||this;return r.initialRange=o,r.finalRange=n,r}return al(t,e),t}(ll),pl=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.DEFAULT_STACK_SIZE=10,e}(),cl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},dl=function(){function t(){var e=this;this.cellValueChanges=[],this.isCellEditing=!1,this.isRowEditing=!1,this.isPasting=!1,this.isFilling=!1,this.events=[],this.onCellValueChanged=function(t){if(e.isCellEditing||e.isRowEditing||e.isPasting||e.isFilling){var o=t.rowPinned,n=t.rowIndex,r=t.column,i=t.oldValue,s=t.value,a={rowPinned:o,rowIndex:n,columnId:r.getColId(),oldValue:i,newValue:s};e.cellValueChanges.push(a)}},this.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()}}return t.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new pl(e),this.redoStack=new pl(e),this.events=[].concat(this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),[this.eventService.addEventListener(Et.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.eventService.addEventListener(Et.EVENT_MODEL_UPDATED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_MOVED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_PINNED,this.clearStacks),this.eventService.addEventListener(Et.EVENT_COLUMN_VISIBLE,this.clearStacks),this.eventService.addEventListener(Et.EVENT_ROW_DRAG_END,this.clearStacks)]))}},t.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[])},t.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof ul?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},t.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof ul?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},t.prototype.processAction=function(e,t){var o=this;e.cellValueChanges.forEach((function(e){var n=e.rowIndex,r=e.rowPinned,i=e.columnId,s={rowIndex:n,rowPinned:r},a=o.getRowNode(s);null!=a.rowTop&&a.setDataValue(i,t(e))}))},t.prototype.processRangeAndCellFocus=function(e,t){if(t){var o=t.startRow,n=t.endRow,r={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:t.startColumn.getColId()};this.setLastFocusedCell(r);var i={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:n.rowIndex,rowEndPinned:n.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var s=e[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a),u={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId};this.setLastFocusedCell(u)}},t.prototype.setLastFocusedCell=function(t){var o=t.rowIndex,n=t.columnId,r=t.rowPinned;this.gridApi.ensureIndexVisible(o),this.gridApi.ensureColumnVisible(n),ht.isRegistered(e.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusController.setFocusedCell(o,n,r,!0)},t.prototype.addRowEditingListeners=function(){var e=this;return[this.eventService.addEventListener(Et.EVENT_ROW_EDITING_STARTED,(function(){e.isRowEditing=!0})),this.eventService.addEventListener(Et.EVENT_ROW_EDITING_STOPPED,(function(){var t=new ll(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isRowEditing=!1}))]},t.prototype.addCellEditingListeners=function(){var e=this;return[this.eventService.addEventListener(Et.EVENT_CELL_EDITING_STARTED,(function(){e.isCellEditing=!0})),this.eventService.addEventListener(Et.EVENT_CELL_EDITING_STOPPED,(function(){if(e.isCellEditing=!1,!e.isRowEditing&&!e.isPasting&&!e.isFilling){var t=new ll(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))]},t.prototype.addPasteListeners=function(){var e=this;return[this.eventService.addEventListener(Et.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.eventService.addEventListener(Et.EVENT_PASTE_END,(function(){var t=new ll(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))]},t.prototype.addFillListeners=function(){var e=this;return[this.eventService.addEventListener(Et.EVENT_FILL_START,(function(){e.isFilling=!0})),this.eventService.addEventListener(Et.EVENT_FILL_END,(function(t){var o=new ul(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(o),e.isFilling=!1}))]},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case ke.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case ke.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},cl([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),cl([rt("focusController")],t.prototype,"focusController",void 0),cl([rt("eventService")],t.prototype,"eventService",void 0),cl([rt("gridApi")],t.prototype,"gridApi",void 0),cl([rt("rowModel")],t.prototype,"rowModel",void 0),cl([rt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),cl([tt],t.prototype,"init",null),cl([ot],t.prototype,"destroy",null),t=cl([nt("undoRedoService")],t)}(),hl=function(){function t(t,o,n){if(t)if(o){var r=!!o.debug;this.gridOptions=o;var i=this.getRegisteredModules(n),s=this.createBeansList(i),a=this.createAgStackComponentsList(i),l=this.createProvidedBeans(t,n);if(s){var u={providedBeanInstances:l,beanClasses:s,components:a,debug:r};this.logger=new ji("ag-Grid",(function(){return o.debug}));var p=new ji("Context",(function(){return u.debug}));this.context=new Je(u,p),this.registerModuleUserComponents(i);var c=new(n&&n.rootComponent||Xi);this.context.wireBean(c),this.setColumnsAndData(),this.dispatchGridReadyEvent(o);var d=ht.isRegistered(e.ModuleNames.EnterpriseCoreModule);this.logger.log("initialised successfully, enterprise = "+d)}}else console.error("ag-Grid: no gridOptions provided to the grid");else console.error("ag-Grid: no div element provided to the grid")}return t.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,o=ht.getRegisteredModules(),n=[],r={};function i(e,t){var o;r[(o=t).moduleName]||(r[o.moduleName]=!0,n.push(o),ht.register(o,e)),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),o&&o.forEach(i.bind(null,!ht.isPackageBased())),n},t.prototype.registerModuleUserComponents=function(e){var t=this.context.getBean("userComponentRegistry");this.extractModuleEntity(e,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(e){t.registerDefaultComponent(e.componentName,e.componentClass)}))},t.prototype.createProvidedBeans=function(e,t){var o=t?t.frameworkOverrides:null;qe.missing(o)&&(o=new ys);var n={gridOptions:this.gridOptions,eGridDiv:e,$scope:t?t.$scope:null,$compile:t?t.$compile:null,quickFilterOnScope:t?t.quickFilterOnScope:null,globalEventListener:t?t.globalEventListener:null,frameworkOverrides:o};return t&&t.providedBeanInstances&&qe.assign(n,t.providedBeanInstances),n},t.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Go},{componentName:"AgRadioButton",componentClass:gs},{componentName:"AgToggleButton",componentClass:Ja},{componentName:"AgInputTextField",componentClass:_a},{componentName:"AgInputTextArea",componentClass:Pa},{componentName:"AgInputNumberField",componentClass:Ha},{componentName:"AgInputRange",componentClass:Ua},{componentName:"AgSelect",componentClass:qa},{componentName:"AgSlider",componentClass:Na},{componentName:"AgAngleSelect",componentClass:Xa},{componentName:"AgColorPicker",componentClass:Va},{componentName:"AgGridComp",componentClass:Ii},{componentName:"AgHeaderRoot",componentClass:wi},{componentName:"AgPagination",componentClass:ca},{componentName:"AgOverlayWrapper",componentClass:ya},{componentName:"AgGroupComponent",componentClass:Ca},{componentName:"AgPanel",componentClass:ba},{componentName:"AgDialog",componentClass:Oa}],o=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(o)},t.prototype.createBeansList=function(e){var t=this.getRowModelClass(e);if(t){var o=[t,Ys,nl,rl,Is,Li,er,Bs,js,ha,sn,ra,la,cs,qi,sl,ts,Pt,dt,Mt,Hi,nr,bi,Ot,As,Mr,Gi,wt,Vi,Ws,ta,Ls,Oi,Ui,_t,Yi,Ji,dr,ir,is,as,Xs,us,hs,ws,ms,ns,Rs,Ss,sa,Ts,ks,Js,tl,dl],n=this.extractModuleEntity(e,(function(e){return e.beans?e.beans:[]}));o.push.apply(o,n);var r=[];return o.forEach((function(e){r.indexOf(e)<0&&r.push(e)})),r}},t.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},t.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),o=e.getColumnDefs();qe.exists(o)&&t.setColumnDefs(o,"gridInitializing"),this.context.getBean("rowModel").start()},t.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),o={type:Et.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(o)},t.prototype.getRowModelClass=function(t){var o=this.gridOptions.rowModelType;"enterprise"===o&&(console.warn("ag-Grid: enterprise rowModel deprecated. Should now be called server side row model instead."),o=ke.ROW_MODEL_TYPE_SERVER_SIDE),"normal"===o&&(console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),o=ke.ROW_MODEL_TYPE_CLIENT_SIDE),o||(o=ke.ROW_MODEL_TYPE_CLIENT_SIDE);var n={};t.forEach((function(e){qe.iterateObject(e.rowModels,(function(e,t){n[e]=t}))}));var r=n[o];return qe.exists(r)?r:(o===ke.ROW_MODEL_TYPE_INFINITE&&console.error('ag-Grid: Row Model "Infinite" not found. Please ensure the '+e.ModuleNames.InfiniteRowModelModule+" is registered.';"),console.error("ag-Grid: could not find matching row model for rowModelType "+o),o===ke.ROW_MODEL_TYPE_VIEWPORT&&console.error('ag-Grid: Row Model "Viewport" not found. Please ensure the ag-Grid Enterprise Module '+e.ModuleNames.ViewportRowModelModule+" is registered.';"),o===ke.ROW_MODEL_TYPE_SERVER_SIDE&&console.error('ag-Grid: Row Model "Server Side" not found. Please ensure the ag-Grid Enterprise Module '+e.ModuleNames.ServerSideRowModelModule+" is registered.';"),void(o===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error('ag-Grid: Row Model "Client Side" not found. Please ensure the '+e.ModuleNames.ClientSideRowModelModule+" is registered.';")))},t.prototype.destroy=function(){this.gridOptions.api.destroy()},t}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/function fl(e,t,o,n){var r,i,s=n.agGrid;if(i=s+".quickFilterText",r=t.$eval(s)){var a=e[0],l=new hl(a,r,{$scope:t,$compile:o,quickFilterOnScope:i});t.$on("$destroy",(function(){l.destroy(),l=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/var gl=!1;
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var yl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yl(t,e),t.prototype.onTabKeyDown=function(e){e.preventDefault()},t.prototype.attachListenersToGui=function(){var e=this,t=this.getGui();t&&(this.tabListener&&(this.tabListener=this.tabListener()),this.tabListener=this.addDestroyableEventListener(t,"keydown",(function(t){t.keyCode===ke.KEY_TAB&&e.onTabKeyDown(t)})))},function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([tt],t.prototype,"attachListenersToGui",null),t}(zt),ml=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},wl=function(e){function t(o){var n=e.call(this,t.getTemplate(o.cssClass))||this;return n.items=[],n.params=o,o.items&&o.items.forEach((function(e){return n.addItem(e)})),n}return ml(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case ke.KEY_RIGHT:case ke.KEY_LEFT:if(!this.eHeader.contains(document.activeElement))return;var t=this.items.indexOf(this.activeItem),o=e.keyCode===ke.KEY_RIGHT?Math.min(t+1,this.items.length-1):Math.max(t-1,0);if(t===o)return;e.preventDefault();var n=this.items[o];this.showItemWrapper(n),n.eHeaderButton.focus();break;case ke.KEY_UP:case ke.KEY_DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(t){e.prototype.onTabKeyDown.call(this,t);var o=this.focusController.findFocusableElements(this.eBody,".ag-set-filter-list *, .ag-menu-list *"),n=document.activeElement;if(this.eHeader.contains(n))o.length&&o[t.shiftKey?o.length-1:0].focus();else{var r=o.indexOf(n),i=t.shiftKey?r-1:r+1;if(i<0||i>=o.length)return void this.activeItem.eHeaderButton.focus();var s=o[i];s&&s.focus()}},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.getMinDimensions=function(){var e=this.getGui().cloneNode(!0),t=e.querySelector('[ref="eBody"]');e.style.position="fixed",this.getGui().appendChild(e);var o=0,n=0;return this.items.forEach((function(r){qe.clearElement(t);var i=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=i&&(t.appendChild(i),o<e.offsetWidth&&(o=e.offsetWidth),n<e.offsetHeight&&(n=e.offsetHeight))})),this.getGui().removeChild(e),{height:n,width:o}},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");t.tabIndex=-1,t.appendChild(e.title),qe.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},t.prototype.showItem=function(e){var t=qe.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(qe.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e),e.focus()})),this.activeItem&&qe.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),qe.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):qe.callIfPresent(this.params.onActiveItemClicked)},Cl([rt("focusController")],t.prototype,"focusController",void 0),Cl([qt("eHeader")],t.prototype,"eHeader",void 0),Cl([qt("eBody")],t.prototype,"eBody",void 0),Cl([tt],t.prototype,"init",null),t}(vl);
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var El=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),bl=function(e){function t(o,n){var r=e.call(this)||this;return r.version=0,r.state=t.STATE_DIRTY,r.rowNodeCacheParams=n,r.blockNumber=o,r.startRow=o*n.blockSize,r.endRow=r.startRow+n.blockSize,r}return El(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var o=this.startRow;o<this.endRow;o++){if(o<t)e(this.getRowUsingLocalIndex(o),o)}},t.prototype.forEachNode=function(e,t,o,n){this.forEachNodeCallback((function(o){e(o,t.next()),n&&o.childrenCache&&o.childrenCache.forEachNodeDeep(e,t)}),o)},t.prototype.forEachNodeDeep=function(e,t,o){this.forEachNode(e,t,o,!0)},t.prototype.forEachNodeShallow=function(e,t,o){this.forEachNode(e,t,o,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var o=e-this.startRow;this.rowNodes[o]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,o=this.createBlankRowNode(e);return this.rowNodes[t]=o,o},t.prototype.setNewData=function(e,t){var o=this.setBlankRowNode(e);return this.setDataAndId(o,t,this.startRow+e),o},t.prototype.createBlankRowNode=function(e){var t=new To;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,o=this.createBlankRowNode(t);this.rowNodes.push(o)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,o=[];this.rowNodes.forEach((function(n,r){var i=e[r];n.stub&&o.push(n),t.setDataAndId(n,i,t.startRow+r)})),o.length>0&&this.beans.rowRenderer.redrawRows(o)},t.prototype.destroy=function(){this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()})),e.prototype.destroy.call(this)},t.prototype.pageLoaded=function(e,o,n){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(o)),n=qe.cleanNumber(n);var r={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:n};this.dispatchEvent(r)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Bt),Rl=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=qe.debounce(this.performCheckBlocksToLoad.bind(this),t))}var t,o;return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){qe.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===bl.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var o=t.getNodeIdPrefix(),n={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};qe.exists(o)?e[o+t.getBlockNumber()]=n:e[t.getBlockNumber()]=n})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);i>3&&s&&Object.defineProperty(t,o,s)}([(t=0,o=at("loggerFactory"),function(e,n){o(e,n,t)})],e.prototype,"setBeans",null),e}(),Ol=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Sl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},_l=function(e){function t(t){var o=e.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=t.initialRowCount,o.cacheParams=t,o}return Ol(t,e),t.prototype.destroy=function(){var t=this;this.forEachBlockInOrder((function(e){return t.destroyBlock(e)})),e.prototype.destroy.call(this)},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,n=[];this.forEachBlockInOrder((function(t){t!==e&&n.push(t)})),n.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,i=r?this.cacheParams.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach((function(e,t){if(e.getState()===bl.STATE_DIRTY&&t>=s||!!r&&t>=i){if(e.isAnyNodeOpen(o.virtualRowCount))return;if(o.isBlockCurrentlyDisplayed(e))return;o.removeBlockFromCache(e)}}))},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=this.rowRenderer.getFirstVirtualRenderedRow(),o=this.rowRenderer.getLastVirtualRenderedRow(),n=e.getDisplayIndexStart(),r=e.getDisplayIndexEnd()-1;return null!=n&&null!=r&&(!(n>o)&&!(r<t))},t.prototype.postCreateBlock=function(e){e.addEventListener(bl.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var o=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<o?(this.virtualRowCount=o,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,qe.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var o=this;void 0===t&&(t=new $e),this.forEachBlockInOrder((function(n){n.forEachNodeDeep(e,t,o.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var o=this;e.forEach((function(e){var n=o.blocks[e];t(n,e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.forEachBlockInOrder((function(o,n){n*e.cacheParams.blockSize>=e.virtualRowCount&&t.push(o)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),this.maxRowFound=!1,0===this.virtualRowCount&&(this.virtualRowCount=this.cacheParams.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,n=[],r=-1,i=!1,s=new $e;qe.missing(e)&&(i=!0);var a=!1;return this.forEachBlockInOrder((function(l,u){a||(i&&r+1!==u?a=!0:(r=u,l.forEachNodeShallow((function(o){var r=o===e||o===t;(i||r)&&n.push(o),r&&(i=!i)}),s,o.virtualRowCount)))})),a||i?[]:n},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Sl([rt("eventService")],t.prototype,"eventService",void 0),Sl([rt("rowRenderer")],t.prototype,"rowRenderer",void 0),Sl([tt],t.prototype,"init",null),t}(Bt),Tl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Dl=function(e){function t(o){void 0===o&&(o="default");var n=e.call(this,t.getTemplate(o))||this;return n.cssIdentifier=o,n.rowsInBodyContainer={},n.rowHeight=20,n}return Tl(t,e),t.prototype.init=function(){this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener(),this.rowHeight=this.getItemHeight()},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container"></div>\n </div>'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("invalid row index for ensureIndexVisible: "+e);else{var o=e*this.rowHeight,n=o+this.rowHeight,r=this.getGui(),i=r.scrollTop,s=r.offsetHeight,a=i+s<n;if(i>o)r.scrollTop=o;else if(a){var l=n-s;r.scrollTop=l}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){qe.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},t.prototype.clearVirtualRows=function(){var e=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(e)},t.prototype.drawVirtualRows=function(){var e=this.getGui().scrollTop,t=e+this.getGui().offsetHeight,o=Math.floor(e/this.rowHeight),n=Math.floor(t/this.rowHeight);this.ensureRowsRendered(o,n)},t.prototype.ensureRowsRendered=function(e,t){for(var o=Object.keys(this.rowsInBodyContainer),n=e;n<=t;n++)if(o.indexOf(n.toString())>=0)o.splice(o.indexOf(n.toString()),1);else if(this.model.getRowCount()>n){var r=this.model.getRow(n);this.insertRow(r,n)}this.removeVirtualRows(o)},t.prototype.removeVirtualRows=function(e){var t=this;e.forEach((function(e){var o=t.rowsInBodyContainer[e];t.eListContainer.removeChild(o.eDiv),o.rowComponent.destroy&&o.rowComponent.destroy(),delete t.rowsInBodyContainer[e]}))},t.prototype.insertRow=function(e,t){var o=document.createElement("div");qe.addCssClass(o,"ag-virtual-list-item"),qe.addCssClass(o,"ag-"+this.cssIdentifier+"-virtual-list-item"),o.style.height=this.rowHeight+"px",o.style.top=this.rowHeight*t+"px";var n=this.componentCreator(e);o.appendChild(n.getGui()),this.eListContainer.appendChild(o),this.rowsInBodyContainer[t]={rowComponent:n,eDiv:o}},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},Pl([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pl([tt],t.prototype,"init",null),t}(zt);
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var Al,Nl,xl=function(){function e(){}return e.prototype.wrap=function(e,t,o,n,r){var i=this;void 0===o&&(o=[]);var s=this.createWrapper(e,n,r);return t.forEach((function(e){i.createMethod(s,e,!0)})),o.forEach((function(e){i.createMethod(s,e,!1)})),s},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/(Al=e.ChartType||(e.ChartType={})).GroupedColumn="groupedColumn",Al.StackedColumn="stackedColumn",Al.NormalizedColumn="normalizedColumn",Al.GroupedBar="groupedBar",Al.StackedBar="stackedBar",Al.NormalizedBar="normalizedBar",Al.Line="line",Al.Scatter="scatter",Al.Bubble="bubble",Al.Pie="pie",Al.Doughnut="doughnut",Al.Area="area",Al.StackedArea="stackedArea",Al.NormalizedArea="normalizedArea",Al.Histogram="histogram",(Nl=e.LegendPosition||(e.LegendPosition={})).Top="top",Nl.Right="right",Nl.Bottom="bottom",Nl.Left="left";
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
var Il=void 0===a?{}:a;Il.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Il.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Il.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Il.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Il.Node="undefined"==typeof Node?{}:Node,Il.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var Fl,Ll,Ml=function(){function e(t,o,n,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.context=n,this.eventService=r,this.columnController=i,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=qe.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.getNodeChildDetails&&console.warn("ag-Grid: the callback nodeChildDetailsFunc() is now deprecated. The new way of doing\n tree data in ag-Grid was introduced in v14 (released November 2017). In the next\n major release of ag-Grid we will be dropping support for the old version of\n tree data. If you are reading this message, please go to the docs to see how\n to implement Tree Data without using nodeChildDetailsFunc().")},e.prototype.getCopyOfNodesMap=function(){return qe.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var o=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=o,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=o},e.prototype.updateRowData=function(e,t){if(this.isLegacyTreeData())return null;var o={remove:[],update:[],add:[]};return this.executeAdd(e,o),this.executeRemove(e,o),this.executeUpdate(e,o),t&&qe.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),o},e.prototype.executeAdd=function(e,t){var o=this,n=e.add,r=e.addIndex;n&&("number"==typeof r&&r>=0?n.reverse().forEach((function(e){var n=o.addRowNode(e,r);t.add.push(n)})):n.forEach((function(e){var n=o.addRowNode(e);t.add.push(n)})))},e.prototype.executeRemove=function(e,t){var o=this,n=e.remove;if(n){var r={},i=!1;if(n.forEach((function(e){var n=o.lookupRowNode(e);n&&(n.isSelected()&&(i=!0),n.setSelected(!1,!1,!0),n.clearRowTop(),r[n.id]=!0,delete o.allNodesMap[n.id],t.remove.push(n))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!r[e.id]})),i){this.selectionController.updateGroupsFromChildrenSelections();var s={type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}}},e.prototype.executeUpdate=function(e,t){var o=this,n=e.update;n&&n.forEach((function(e){var n=o.lookupRowNode(e);n&&(n.updateData(e),t.update.push(n))}))},e.prototype.addRowNode=function(t,o){var n=this.createNode(t,this.rootNode,e.TOP_LEVEL);return qe.exists(o)?qe.insertIntoArray(this.rootNode.allLeafChildren,n,o):this.rootNode.allLeafChildren.push(n),n},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsWrapper.getRowNodeIdFunc();if(qe.exists(o)){var n=o(e);if(!(t=this.allNodesMap[n]))return console.error("ag-Grid: could not find row id="+n+", data item was not found for this id"),null}else if(!(t=qe.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.recursiveFunction=function(e,t,o){var n=this;if("string"!=typeof e){var r=[];return e.forEach((function(e){var i=n.createNode(e,t,o);r.push(i)})),r}console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.createNode=function(e,t,o){var n=new To;this.context.wireBean(n);var r=this.gridOptionsWrapper.isTreeData(),i=!r&&qe.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(i&&i.group)n.group=!0,n.childrenAfterGroup=this.recursiveFunction(i.children,n,o+1),n.expanded=!0===i.expanded,n.field=i.field,n.key=i.key,n.canFlower=n.master,this.setLeafChildren(n);else if(n.group=!1,r)n.master=!1,n.expanded=!1;else{this.doesDataFlower?n.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?n.master=this.isRowMasterFunc(e):n.master=!0:n.master=!1;var s=this.columnController.getRowGroupColumns(),a=o+(s?s.length:0);n.expanded=!!n.master&&this.isExpanded(a)}return n.canFlower=n.master,t&&!this.suppressParentsInRowNodes&&(n.parent=t),n.level=o,n.setDataAndId(e,this.nextId.toString()),this.allNodesMap[n.id]&&console.warn("ag-grid: duplicate node id '"+n.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[n.id]=n,this.nextId++,n},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!qe.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Gl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(Ll=Fl||(Fl={}))[Ll.Normal=0]="Normal",Ll[Ll.AfterFilter=1]="AfterFilter",Ll[Ll.AfterFilterAndSort=2]="AfterFilterAndSort",Ll[Ll.PivotNodes=3]="PivotNodes";var kl,Vl,Wl=function(){function e(){this.events=[]}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:ke.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:ke.STEP_EVERYTHING,afterColumnsChanged:!0});this.events=[this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:ke.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(Et.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(Et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(Et.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,e)],this.refreshMapFunc=this.refreshModel.bind(this,{step:ke.STEP_MAP,keepRenderedRows:!0,animate:!0}),this.gridOptionsWrapper.addEventListener(Mt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshMapFunc),this.gridOptionsWrapper.addEventListener(Mt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,this.refreshMapFunc),this.rootNode=new To,this.nodeManager=new Ml(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.destroy=function(){this.events.length&&(this.events.forEach((function(e){return e()})),this.events=[]),this.gridOptionsWrapper.removeEventListener(Mt.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshMapFunc),this.gridOptionsWrapper.removeEventListener(Mt.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,this.refreshMapFunc)},e.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},e.prototype.ensureRowHeightsValid=function(e,t,o,n){var r,i=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,o),u=Math.min(a,n),p=l;p<=u;p++){var c=this.getRow(p);if(c.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(c);c.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTops()}while(r);return i},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var o=this.gridOptionsWrapper.getDomLayout()===ke.DOM_LAYOUT_NORMAL,n=this.rowsToDisplay[t];if(qe.missing(n.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(n,o);n.setRowHeight(r.height,r.estimated)}n.setRowTop(e),n.setRowIndex(t),e+=n.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup)if(!(t.isActive()&&!e.expanded))for(var o=0;o<e.childrenAfterGroup.length;o++)this.resetRowTops(e.childrenAfterGroup[o],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowsAtPixel=function(e,t,o){var n=this;void 0===o&&(o=0);var r=this.getRowIndexAtPixel(t);return this.getRow(r)!==e[0]&&(e.forEach((function(e){qe.removeFromArray(n.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){qe.insertIntoArray(n.rootNode.allLeafChildren,e,r+o+t)})),this.refreshModel({step:ke.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.highlightRowAtPixel=function(e,t){var o=null!=t?this.getRowIndexAtPixel(t):null,n=null!=o?this.getRow(o):null;if(n&&e&&n!==e&&null!=t){var r=this.getHighlightPosition(t,n);this.lastHighlightedRow&&this.lastHighlightedRow!==n&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),n.setHighlighted(r),this.lastHighlightedRow=n}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},e.prototype.getHighlightPosition=function(e,t){if(!t){var o=this.getRowIndexAtPixel(e);if(!(t=this.getRow(o||0)))return"below"}return e-t.rowTop<t.rowHeight/2?"above":"below"},e.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){return this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},e.prototype.getRowBounds=function(e){if(qe.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_FILTER,keepRenderedRows:!0,animate:t})}},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:ke.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return ke.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:ke.STEP_PIVOT}):this.refreshModel({step:ke.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=qe.missingOrEmpty(e),o=new tr(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},e.prototype.refreshModel=function(e){var t=this,o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case ke.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,e.afterColumnsChanged);case ke.STEP_FILTER:this.doFilter(o);case ke.STEP_PIVOT:this.doPivot(o);case ke.STEP_AGGREGATE:this.doAggregate(o);case ke.STEP_SORT:this.doSort(e.rowNodeTransactions,o);case ke.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,o),this.setRowTops();var n={type:Et.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(n),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=qe.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?qe.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:qe.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,qe.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return qe.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o,n=!t,r=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=n&&!r;if(n||a!==t&&a!==e||(n=!0),!(a.group&&s)){var u=n&&!r,p=a.isParentOfNode(o);(u||p)&&i.push(a)}l&&(a!==t&&a!==e||(r=!0,o=a===t?t:e))})),i},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(qe.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var n=Math.floor((t+o)/2),r=this.rowsToDisplay[n];if(this.isRowInPixel(r,e))return n;r.rowTop<e?t=n+1:r.rowTop>e&&(o=n-1)}},e.prototype.isRowInPixel=function(e,t){var o=e.rowTop,n=e.rowTop+e.rowHeight;return o<=t&&n>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=qe.last(this.rowsToDisplay);return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,o){return e(t,o)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,Fl.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,Fl.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Fl.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Fl.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,n){if(!e)return n;for(var r=0;r<e.length;r++){var i=e[r];if(t(i,n++),i.hasChildren()){var s=null;switch(o){case Fl.Normal:s=i.childrenAfterGroup;break;case Fl.AfterFilter:s=i.childrenAfterFilter;break;case Fl.AfterFilterAndSort:s=i.childrenAfterSort;break;case Fl.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(n=this.recursivelyWalkNodesAndCallback(s,t,o,n))}}return n},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function o(n){if(!n)return;n.forEach((function(n){(t?qe.exists(n.childrenAfterGroup):n.group)&&(n.expanded=e,o(n.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:ke.STEP_MAP});var o=e?"expandAll":"collapseAll",n={api:this.gridApi,columnApi:this.columnApi,type:Et.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(n)},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,o,n,r){if(!qe.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))if(this.groupStage){if(t){var i={add:[],remove:[],update:[]};t.forEach((function(e){qe.pushAll(i.add,e.add),qe.pushAll(i.remove,e.remove),qe.pushAll(i.update,e.update)})),this.groupStage.execute({rowNode:this.rootNode,rowNodeTransaction:i,rowNodeOrder:o,changedPath:n})}else this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:r}),this.restoreGroupState(e);this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(n)}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren},e.prototype.restoreGroupState=function(e){e&&qe.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return qe.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){return e[o]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var o={type:Et.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:ke.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var o=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var n=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();window.setTimeout((function(){o.executeBatchUpdateRowData(),o.rowDataTransactionBatch=null}),n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(n){var r=e.nodeManager.updateRowData(n.rowDataTransaction,null);o.push(r),n.callback&&t.push(n.callback.bind(null,r))})),this.commonUpdateRowData(o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([o],t),o},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:ke.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var o={type:Et.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:ke.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},Gl([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Gl([rt("columnController")],e.prototype,"columnController",void 0),Gl([rt("filterManager")],e.prototype,"filterManager",void 0),Gl([rt("$scope")],e.prototype,"$scope",void 0),Gl([rt("selectionController")],e.prototype,"selectionController",void 0),Gl([rt("eventService")],e.prototype,"eventService",void 0),Gl([rt("context")],e.prototype,"context",void 0),Gl([rt("valueService")],e.prototype,"valueService",void 0),Gl([rt("valueCache")],e.prototype,"valueCache",void 0),Gl([rt("columnApi")],e.prototype,"columnApi",void 0),Gl([rt("gridApi")],e.prototype,"gridApi",void 0),Gl([rt("filterStage")],e.prototype,"filterStage",void 0),Gl([rt("sortStage")],e.prototype,"sortStage",void 0),Gl([rt("flattenStage")],e.prototype,"flattenStage",void 0),Gl([it("groupStage")],e.prototype,"groupStage",void 0),Gl([it("aggregationStage")],e.prototype,"aggregationStage",void 0),Gl([it("pivotStage")],e.prototype,"pivotStage",void 0),Gl([tt],e.prototype,"init",null),Gl([ot],e.prototype,"destroy",null),e=Gl([nt("rowModel")],e)}(),Hl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Bl=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;this.filterService.filter(o),this.selectableService.updateSelectableAfterFiltering(t)},Hl([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Hl([rt("selectableService")],e.prototype,"selectableService",void 0),Hl([rt("filterService")],e.prototype,"filterService",void 0),e=Hl([nt("filterStage")],e)}(),Ul=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},jl=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),o=qe.exists(t)&&t.length>0,n=o&&qe.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=n?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=this.columnController.getValueColumns(),s=qe.missingOrEmpty(i);this.sortService.sort(t,o,n,r,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){o(e.add),o(e.update),o(e.remove)})),t},Ul([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ul([rt("sortService")],e.prototype,"sortService",void 0),Ul([rt("sortController")],e.prototype,"sortController",void 0),Ul([rt("columnController")],e.prototype,"columnController",void 0),e=Ul([nt("sortStage")],e)}(),zl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Yl=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=[],n={value:0},r=this.columnController.isPivotMode(),i=r&&t.leafGroup,s=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,n,r,0),!i&&o.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,o,n,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,n,r){if(!qe.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),u=0;u<e.length;u++){var p=e[u],c=p.hasChildren(),d=i&&c,h=n&&!c,f=a&&c&&1===p.childrenAfterGroup.length,g=l&&c&&p.leafGroup&&1===p.childrenAfterGroup.length,y=n&&p.leafGroup,v=s&&p.expanded&&!y;if(!(h||d||v||f||g)&&this.addRowNodeToRowsToDisplay(p,t,o,r),!n||!p.leafGroup)if(c){var m=f||g;if(p.expanded||m){var C=m?r:r+1;this.recursivelyAddToRowsToDisplay(p.childrenAfterSort,t,o,n,C),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(p),this.addRowNodeToRowsToDisplay(p.sibling,t,o,r))}}else if(p.master&&p.expanded){var w=this.createDetailNode(p);this.addRowNodeToRowsToDisplay(w,t,o,r)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,o,n){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:n)},e.prototype.ensureFooterNodeExists=function(e){if(!qe.exists(e.sibling)){var t=new To;this.context.wireBean(t),Object.keys(e).forEach((function(o){t[o]=e[o]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,qe.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(qe.exists(e.detailNode))return e.detailNode;var t=new To;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,qe.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},zl([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),zl([rt("selectionController")],e.prototype,"selectionController",void 0),zl([rt("eventService")],e.prototype,"eventService",void 0),zl([rt("context")],e.prototype,"context",void 0),zl([rt("columnController")],e.prototype,"columnController",void 0),e=zl([nt("flattenStage")],e)}(),Kl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ql=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,o,n,r,i){var s=this;r.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=o?s.doDeltaSort(a,e,n,r,i):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},e.prototype.doFullSort=function(e,t){var o=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return o.sort(this.compareRowNodes.bind(this,t)),o},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,o,n,r){var i=e.childrenAfterSort.filter((function(e){var t=!o[e.id],i=r||n.canSkip(e);return t&&i})).map(this.mapNodeToSortedNode.bind(this)),s={};i.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?i:0===i.length?a:this.mergeSortedArrays(t,i,a)},e.prototype.mergeSortedArrays=function(e,t,o){for(var n=[],r=0,i=0;r<t.length&&i<o.length;){this.compareRowNodes(e,t[r],o[i])<0?n.push(t[r++]):n.push(o[i++])}for(;r<t.length;)n.push(t[r++]);for(;i<o.length;)n.push(o[i++]);return n},e.prototype.compareRowNodes=function(e,t,o){for(var n=t.rowNode,r=o.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=-1===a.inverter,u=this.getValue(n,a.column),p=this.getValue(r,a.column),c=void 0;if(0!==(c=a.column.getColDef().comparator?a.column.getColDef().comparator(u,p,n,r,l):qe.defaultComparator(u,p,this.gridOptionsWrapper.isAccentedSort())))return c*a.inverter}return t.currentPos-o.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!qe.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,o=0;o<t.length;o++){var n=t[o],r=0===o,i=o===e.childrenAfterSort.length-1;n.setFirstChild(r),n.setLastChild(i),n.setChildIndex(o)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var o=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&o(e)}))};e.executeFromRootNode((function(e){return o(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;qe.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){o.columnController.getGroupDisplayColumns().forEach((function(n){var r=n.getColDef().showRowGroup;if("string"==typeof r){var i=r,s=o.columnController.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(n.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(n.getId(),a.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Kl([rt("sortController")],e.prototype,"sortController",void 0),Kl([rt("columnController")],e.prototype,"columnController",void 0),Kl([rt("valueService")],e.prototype,"valueService",void 0),Kl([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Kl([tt],e.prototype,"init",null),e=Kl([nt("sortService")],e)}(),$l=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ql=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var o=this,n=function(t,n){t.hasChildren()?(t.childrenAfterFilter=e&&!n?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,n=e.data&&o.filterManager.doesRowPassFilter(e);return t||n})):t.childrenAfterGroup,o.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var r=function(e,t){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var s=e.childrenAfterGroup[i],a=t||o.filterManager.doesRowPassFilter(s);s.childrenAfterGroup?r(e.childrenAfterGroup[i],a):n(s,a)}n(e,t)};t.executeFromRootNode((function(e){return r(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return n(e,!1)}),!0)}},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},$l([rt("filterManager")],e.prototype,"filterManager",void 0),$l([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),$l([tt],e.prototype,"postConstruct",null),e=$l([nt("filterService")],e)}(),Xl=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Zl=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(qe.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!qe.missing(t)){var o={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return qe.exists(e)&&e.forEach((function(e,i){var s=t(e),a=n[s];(r&&(r[s]=i),a)?(a.data!==e&&o.update.push(e),n[s]=void 0):o.add.push(e)})),qe.iterateObject(n,(function(e,t){t&&o.remove.push(t.data)})),[o,r]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},Xl([rt("rowModel")],e.prototype,"rowModel",void 0),Xl([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xl([tt],e.prototype,"postConstruct",null),e=Xl([nt("immutableService")],e)}(),Jl={moduleName:e.ModuleNames.ClientSideRowModelModule,beans:[Bl,jl,Yl,ql,Ql,Zl],rowModels:{clientSide:Wl}},eu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),tu=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ou=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.cacheParams=o,n}return eu(t,e),t.prototype.getDisplayIndexStart=function(){return this.getBlockNumber()*this.cacheParams.blockSize},t.prototype.getDisplayIndexEnd=function(){return this.getDisplayIndexStart()+this.cacheParams.blockSize},t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.uiLevel=0,this.setIndexAndTopOnRowNode(o,t),o},t.prototype.setDataAndId=function(e,t,o){qe.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,o){e.prototype.setRowNode.call(this,t,o),this.setIndexAndTopOnRowNode(o,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};qe.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0)},tu([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),tu([rt("rowRenderer")],t.prototype,"rowRenderer",void 0),tu([tt],t.prototype,"init",null),t}(bl),nu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ru=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},iu=function(e){function t(t){return e.call(this,t)||this}var o,n;return nu(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.moveItemsDown=function(e,t,o){for(var n=e.getStartRow(),r=t+o,i=e.getEndRow()-1;i>=n;i--)if(!(i<r)){var s=i-o,a=this.getRow(s,!0);a?e.setRowNode(i,a):(e.setBlankRowNode(i),e.setDirty())}},t.prototype.insertItems=function(e,t,o){for(var n=e.getStartRow(),r=e.getEndRow(),i=[],s=0;s<o.length;s++){var a=t+s;if(a>=n&&a<r){var l=o[s],u=e.setNewData(a,l);i.push(u)}}return i},t.prototype.insertItemsAtIndex=function(e,t){var o=this,n=[];this.forEachBlockInReverseOrder((function(r){r.getEndRow()<=e||(o.moveItemsDown(r,e,t.length),o.insertItems(r,e,t).forEach((function(e){return n.push(e)})))})),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var r={type:Et.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.cacheParams.blockSize),n=this.getBlock(o);if(!n){if(t)return null;n=this.createBlock(o)}return n.getRow(e)},t.prototype.createBlock=function(e){var t=new ou(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},ru([rt("columnApi")],t.prototype,"columnApi",void 0),ru([rt("gridApi")],t.prototype,"gridApi",void 0),ru([(o=0,n=at("loggerFactory"),function(e,t){n(e,t,o)})],t.prototype,"setBeans",null),t}(_l),su=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),au=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},lu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return su(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,o,n){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})))},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,Et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,Et.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!qe.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return ke.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;qe.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),qe.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),qe.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),qe.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return qe.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return qe.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!qe.missing(this.datasource)){qe.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Et.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new Rl(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new $e},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=1),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new iu(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(_l.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new $e)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return t>o?o:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){qe.exists(e.remove)||qe.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):qe.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},au([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),au([rt("filterManager")],t.prototype,"filterManager",void 0),au([rt("sortController")],t.prototype,"sortController",void 0),au([rt("selectionController")],t.prototype,"selectionController",void 0),au([rt("eventService")],t.prototype,"eventService",void 0),au([rt("gridApi")],t.prototype,"gridApi",void 0),au([rt("columnApi")],t.prototype,"columnApi",void 0),au([rt("rowRenderer")],t.prototype,"rowRenderer",void 0),au([tt],t.prototype,"init",null),au([ot],t.prototype,"destroyDatasource",null),t=au([nt("rowModel")],t)}(Bt),uu={moduleName:e.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:lu}},pu=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},cu=function(){function e(e){var t=e.columnController,o=e.valueService,n=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnController=t,this.valueService=o,this.gridOptionsWrapper=n,this.processCellCallback=r,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.firstGroupColumn=qe.find(e,(function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,o,n){var r;r=n&&n.group&&(e===this.firstGroupColumn||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(n):this.valueService.getValue(e,n);var i=this.processCell(n,e,r,this.processCellCallback,o);return null!=i?i:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,o,n,r){return n?n({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):o},e}(),du=function(){function e(){}return e.prototype.serialize=function(e,t){void 0===t&&(t={});var o=t.shouldRowBeSkipped||function(){return!1},n=this.gridOptionsWrapper.getApi(),r=this.gridOptionsWrapper.getColumnApi(),i=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),s=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),a=this.gridOptionsWrapper.getContext(),l=this.columnController.isPivotMode(),u=this.rowModel.getType()===ke.ROW_MODEL_TYPE_CLIENT_SIDE,p=!u&&t.onlySelected,c=[];if(c=qe.existsAndNotEmpty(t.columnKeys)?this.columnController.getGridColumns(t.columnKeys):t.allColumns&&!l?(c=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([ke.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),t.customHeader&&e.addCustomContent(t.customHeader),e.prepare(c),t.columnGroups){var d=new bt,h=this.displayedGroupCreator.createDisplayedGroups(c,this.columnController.getGridBalancedTree(),d,null);this.recursivelyAddHeaderGroups(h,e,t.processGroupHeaderCallback)}if(!t.skipHeader){var f=e.onNewHeaderRow();c.forEach((function(e,t){f.onColumn(e,t,void 0)}))}(this.pinnedRowModel.forEachPinnedTopRow(g),l)?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(g):this.rowModel.forEachNode(g):t.onlySelectedAllPages||p?this.selectionController.getSelectedNodes().forEach((function(e){g(e)})):u?this.rowModel.forEachNodeAfterFilterAndSort(g):this.rowModel.forEachNode(g);function g(l){var u=s&&l.leafGroup,p=1===l.allChildrenCount&&(i||u);if((!l.group||!t.skipGroups&&!p)&&((!t.skipFooters||!l.footer)&&(!t.onlySelected||l.isSelected())&&(!t.skipPinnedTop||"top"!==l.rowPinned)&&(!t.skipPinnedBottom||"bottom"!==l.rowPinned)&&(!(-1===l.level)||l.leafGroup)&&!o({node:l,api:n,context:a}))){var d=e.onNewBodyRow();if(c.forEach((function(e,t){d.onColumn(e,t,l)})),t.getCustomContentBelowRow){var h=t.getCustomContentBelowRow({node:l,api:n,columnApi:r,context:a});h&&e.addCustomContent(h)}}}return this.pinnedRowModel.forEachPinnedBottomRow(g),t.customFooter&&e.addCustomContent(t.customFooter),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t,o){var n=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return n.push(e)}))})),e.length>0&&e[0]instanceof yt&&this.doAddHeaderHeader(t,e,o),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,t,o)},e.prototype.doAddHeaderHeader=function(e,t,o){var n=this,r=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,s=e;t=o?o({columnGroup:s,api:n.gridOptionsWrapper.getApi(),columnApi:n.gridOptionsWrapper.getColumnApi(),context:n.gridOptionsWrapper.getContext()}):n.columnController.getDisplayNameForColumnGroup(s,"header"),r.onColumn(t||"",i++,s.getLeafColumns().length-1)}))},pu([rt("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),pu([rt("columnController")],e.prototype,"columnController",void 0),pu([rt("rowModel")],e.prototype,"rowModel",void 0),pu([rt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),pu([rt("selectionController")],e.prototype,"selectionController",void 0),pu([rt("columnFactory")],e.prototype,"columnFactory",void 0),pu([rt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=pu([nt("gridSerializer")],e)}();(Vl=kl||(kl={}))[Vl.HEADER_GROUPING=0]="HEADER_GROUPING",Vl[Vl.HEADER=1]="HEADER",Vl[Vl.BODY=2]="BODY";var hu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),fu=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},gu=function(e){function t(t){var o=e.call(this,t)||this;o.isFirstLine=!0,o.result="";var n=t.suppressQuotes,r=t.columnSeparator;return o.suppressQuotes=n,o.columnSeparator=r,o}return hu(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,o){0!==o&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(o)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,ke.EXPORT_TYPE_CSV,o))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(cu),yu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hu(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,o=t.columnController,n=t.valueService,r=t.gridOptionsWrapper,i=e.processCellCallback,s=e.processHeaderCallback,a=e.processGroupHeaderCallback,l=e.processRowGroupCallback,u=e.suppressQuotes,p=e.columnSeparator;return new gu({columnController:o,valueService:n,gridOptionsWrapper:r,processCellCallback:i||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:l||void 0,suppressQuotes:u||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},fu([rt("columnController")],t.prototype,"columnController",void 0),fu([rt("valueService")],t.prototype,"valueService",void 0),fu([rt("downloader")],t.prototype,"downloader",void 0),fu([rt("gridSerializer")],t.prototype,"gridSerializer",void 0),fu([rt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),fu([tt],t.prototype,"postConstruct",null),t=fu([nt("csvCreator")],t)}(function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),o=t.mergedParams,n=t.data,r=o&&o.fileName&&0!==o.fileName.length?o.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,this.packageFile(n)),n},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),o={};return qe.assign(o,t),qe.assign(o,e),o},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}()),vu=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var o=document.createElement("a"),n=window.URL.createObjectURL(t);o.setAttribute("href",n),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(o),window.setTimeout((function(){window.URL.revokeObjectURL(n)}),0)}},e=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}([nt("downloader")],e)}(),mu="\r\n",Cu=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.prototype.createXml=function(e,t){var o=this,n="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(r){n+=o.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){n+=o.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+n;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">"+mu:(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=o.createXml(e,t)})),r+"</"+e.name+">"+mu):r+"/>"+mu},e.prototype.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var n=t;return"boolean"==typeof t&&o&&(n=o(t))," "+e+'="'+n+'"'},e=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}([nt("xmlFactory")],e)}(),wu=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],Eu=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),o=t.length,n="",r=0,i=0,s=0,a=t;s<a.length;s++){var l=a[s],u=this.getHeader(l,r),p=u.fileHeader,c=u.folderHeader,d=u.content;r+=p.length+d.length,i+=c.length,e+=p+d,n+=c}return e+n+this.buildFolderEnd(o,i,r)},e.prototype.getHeader=function(e,t){var o=e.content,n=e.path,r=e.created,i=qe.utf8_encode,s=qe.decToHex,a=i(n),l=a!==n,u=this.convertTime(r),p=this.convertDate(r),c="";if(l){var d=s(1,1)+s(this.getFromCrc32Table(a),4)+a;c="up"+s(d.length,2)+d}var h="\n\0"+(l?"\0\b":"\0\0")+"\0\0"+s(u,2)+s(p,2)+s(o?this.getFromCrc32Table(o):0,4)+s(o?o.length:0,4)+s(o?o.length:0,4)+s(a.length,2)+s(c.length,2);return{fileHeader:"PK"+h+a+c,folderHeader:"PK\0"+h+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+s(t,4)+a+c,content:o||""}},e.prototype.buildFolderEnd=function(e,t,o){var n=qe.decToHex;return"PK\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(o,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var o=0,n=0;n<e.length;n++)o=e.charCodeAt(n),t=t>>>8^wu[255&(t^o)];return-1^t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}([nt("zipContainer")],e)}(),bu={moduleName:e.ModuleNames.CsvExportModule,beans:[yu,vu,Cu,du,Eu]};ht.register(Jl,!1),ht.register(uu,!1),ht.register(bu,!1),e.AgAbstractField=No,e.AgAngleSelect=Xa,e.AgCheckbox=Go,e.AgColorPicker=Va,e.AgDialog=Oa,e.AgGroupComponent=Ca,e.AgInputNumberField=Ha,e.AgInputRange=Ua,e.AgInputTextArea=Pa,e.AgInputTextField=_a,e.AgPanel=ba,e.AgRadioButton=gs,e.AgSelect=qa,e.AgSlider=Na,e.AgToggleButton=Ja,e.AlignedGridsService=Ws,e.AnimateShowChangeCellRenderer=cn,e.AnimateSlideCellRenderer=hn,e.AutoWidthCalculator=Yi,e.Autowired=rt,e.BaseComponentWrapper=xl,e.Bean=nt,e.BeanStub=Bt,e.BodyDropPivotTarget=ci,e.BodyDropTarget=gi,e.CellComp=Ar,e.CellNavigationService=us,e.CellPositionUtils=rl,e.CellRendererFactory=cs,e.ChangedPath=tr,e.CheckboxSelectionComponent=Wo,e.ColDefUtil=At,e.Color=t,e.Column=gt,e.ColumnApi=ir,e.ColumnController=Ot,e.ColumnFactory=wt,e.ColumnGroup=yt,e.ColumnKeyCreator=Ze,e.ColumnUtils=_t,e.Component=zt,e.ComponentUtil=kt,e.Constants=ke,e.Context=Je,e.CssClassApplier=Gr,e.DateFilter=mo,e.DisplayedGroupCreator=Pt,e.DragAndDropService=dr,e.DragService=ts,e.Environment=Xs,e.EventService=dt,e.Events=Et,e.ExpressionService=Gi,e.FilterManager=bi,e.FocusController=is,e.Grid=hl,e.GridApi=Li,e.GridCore=Xi,e.GridOptionsWrapper=Mt,e.GridPanel=Ii,e.GroupCellRenderer=un,e.GroupInstanceIdCreator=bt,e.HeaderContainer=vi,e.HeaderRootComp=wi,e.HeaderRowComp=ai,e.HorizontalResizeService=qi,e.LargeTextCellEditor=Sn,e.Listener=function(e){return Qt.bind(this,e)},e.Logger=ji,e.LoggerFactory=Ui,e.ManagedTabComponent=vl,e.ModuleRegistry=ht,e.MouseEventService=as,e.MoveColumnController=ui,e.NumberFilter=Pn,e.NumberSequence=$e,e.Optional=it,e.OriginalColumnGroup=vt,e.PaginationProxy=As,e.PinnedRowModel=sl,e.PopupComponent=Kt,e.PopupEditorWrapper=wr,e.PopupSelectCellEditor=Rn,e.PopupService=Hi,e.PopupTextCellEditor=En,e.PostConstruct=tt,e.PreConstruct=et,e.PreDestroy=ot,e.Promise=Qe,e.PropertyKeys=Dt,e.ProvidedFilter=so,e.Qualifier=at,e.QuerySelector=
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function(e){return $t.bind(this,e)},e.RefSelector=qt,e.ResizeObserverService=ha,e.RowComp=Ir,e.RowNode=To,e.RowNodeBlock=bl,e.RowNodeBlockLoader=Rl,e.RowNodeCache=_l,e.RowPositionUtils=nl,e.RowRenderer=Mr,e.ScalarFilter=go,e.ScrollVisibleService=ms,e.SelectCellEditor=Cn,e.SelectableService=sa,e.SelectionController=nr,e.SetLeftFeature=Br,e.SimpleFilter=ho,e.SortController=ns,e.StandardMenuFactory=Ji,e.StylingService=ws,e.TabbedLayout=wl,e.TemplateService=Vi,e.TextCellEditor=to,e.TextFilter=jn,e.Timer=Xe,e.TooltipFeature=Tr,e.TouchListener=Co,e.UserComponentFactory=sn,e.UserComponentRegistry=er,e.ValueCache=Ls,e.ValueFormatterService=hs,e.ValueService=Oi,e.VanillaFrameworkOverrides=ys,e.VirtualList=Dl,e._=qe,e.defaultGroupComparator=
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function(e,t,o,n,r){void 0===r&&(r=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var i=qe.exists(o)&&o.group,s=qe.exists(n)&&n.group,a=!i&&!s;return i&&s?qe.defaultComparator(o.key,n.key,r):a?qe.defaultComparator(e,t,r):i?1:-1},e.initialiseAgGridWithAngular1=
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",fl],scope:!0}}))},e.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!gl){gl=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);kt.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var o={};o[e]={currentValue:t},this.onChange(o)},t.onChange=function(e){this._initialised&&kt.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=kt.copyAttributesToGridOptions(e,this);var o={globalEventListener:t};this._agGrid=new hl(this,this._gridOptions,o),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,o="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,n=e.nodeValue;kt.ALL_PROPERTIES.indexOf(o)>=0&&(this[o]=n)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var o=e.toLowerCase(),n=new Event(o);n.agGridDetails=t,this.dispatchEvent(n);var r="on"+o;"function"==typeof this[r]&&this[r](n)},document.registerElement("ag-grid",{prototype:e})}},e.simpleHttpRequest=
|
||
/**
|
||
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
|
||
* @version v23.1.1
|
||
* @link http://www.ag-grid.com/
|
||
* @license MIT
|
||
*/
|
||
function(e){return new Qe((function(t){var o=new XMLHttpRequest;o.open("GET",e.url),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var e=JSON.parse(o.responseText);t(e)}}}))},e.stringToArray=o}($f);var Qf,Xf={},Zf=a&&a.__extends||(Qf=function(e,t){return(Qf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}Qf(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(Xf,"__esModule",{value:!0});var Jf=l.exports,eg=l.exports,tg=Yf.exports,og=$f,ng=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.props=t,n.state=o,n}return Zf(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return Jf.Children.map(e.children,(function(e){return t.toColDef(e.props)}))},t.toColDef=function(e){var o=t.createColDefFromGridColumn(e);return t.hasChildColumns(e)&&(o.children=t.getChildColDefs(e.children)),o},t.hasChildColumns=function(e){return Jf.Children.count(e.children)>0},t.getChildColDefs=function(e){return Jf.Children.map(e,(function(e){return t.createColDefFromGridColumn(e.props)}))},t.createColDefFromGridColumn=function(e){var o={};return t.assign(o,e),delete o.children,o},t.assign=function(e,t){return[t].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),e)},t}(eg.Component);function rg(e,t){e.forEach((function(e){ng[e]=t}))}Xf.AgGridColumn=ng,rg(og.ColDefUtil.BOOLEAN_PROPERTIES,tg.bool),rg(og.ColDefUtil.STRING_PROPERTIES,tg.string),rg(og.ColDefUtil.OBJECT_PROPERTIES,tg.object),rg(og.ColDefUtil.ARRAY_PROPERTIES,tg.array),rg(og.ColDefUtil.NUMBER_PROPERTIES,tg.number),rg(og.ColDefUtil.FUNCTION_PROPERTIES,tg.func);var ig={},sg={};Object.defineProperty(sg,"__esModule",{value:!0});var ag=function(){function e(){}return e.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return null!=t&&null!=t[e]},e.prototype.callMethod=function(e,t){var o=this,n=this.getFrameworkComponentInstance();if(null!=n){var r=this.getFrameworkComponentInstance()[e];if(null==r)return;return r.apply(n,t)}window.setTimeout((function(){return o.callMethod(e,t)}),100)},e.prototype.addMethod=function(e,t){this[e]=t},e}();sg.BaseReactComponent=ag;var lg={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.assignProperties=function(e,t){Object.keys(t).forEach((function(o){e[o]=t[o]}))},e.assign=function(t,o,n){if("string"==typeof o&&(o=o.split(".")),o.length>1){var r=o.shift();e.assign(t[r]="[object Object]"===Object.prototype.toString.call(t[r])?t[r]:{},o,n)}else t[o[0]]=n}}(lg);var ug={};Object.defineProperty(ug,"__esModule",{value:!0});var pg=0;ug.default=function(){return"agPortalKey_"+ ++pg};var cg={exports:{}},dg=f,hg=l.exports;
|
||
/** @license React v16.13.1
|
||
* react-dom-server.browser.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function fg(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var gg="function"==typeof Symbol&&Symbol.for,yg=gg?Symbol.for("react.portal"):60106,vg=gg?Symbol.for("react.fragment"):60107,mg=gg?Symbol.for("react.strict_mode"):60108,Cg=gg?Symbol.for("react.profiler"):60114,wg=gg?Symbol.for("react.provider"):60109,Eg=gg?Symbol.for("react.context"):60110,bg=gg?Symbol.for("react.concurrent_mode"):60111,Rg=gg?Symbol.for("react.forward_ref"):60112,Og=gg?Symbol.for("react.suspense"):60113,Sg=gg?Symbol.for("react.suspense_list"):60120,_g=gg?Symbol.for("react.memo"):60115,Tg=gg?Symbol.for("react.lazy"):60116,Pg=gg?Symbol.for("react.block"):60121,Dg=gg?Symbol.for("react.fundamental"):60117,Ag=gg?Symbol.for("react.scope"):60119;function Ng(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case vg:return"Fragment";case yg:return"Portal";case Cg:return"Profiler";case mg:return"StrictMode";case Og:return"Suspense";case Sg:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Eg:return"Context.Consumer";case wg:return"Context.Provider";case Rg:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case _g:return Ng(e.type);case Pg:return Ng(e.render);case Tg:if(e=1===e._status?e._result:null)return Ng(e)}return null}var xg=hg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;xg.hasOwnProperty("ReactCurrentDispatcher")||(xg.ReactCurrentDispatcher={current:null}),xg.hasOwnProperty("ReactCurrentBatchConfig")||(xg.ReactCurrentBatchConfig={suspense:null});var Ig={};function Fg(e,t){for(var o=0|e._threadCount;o<=t;o++)e[o]=e._currentValue2,e._threadCount=o+1}for(var Lg=new Uint16Array(16),Mg=0;15>Mg;Mg++)Lg[Mg]=Mg+1;Lg[15]=0;var Gg=/^[: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]*$/,kg=Object.prototype.hasOwnProperty,Vg={},Wg={};function Hg(e){return!!kg.call(Wg,e)||!kg.call(Vg,e)&&(Gg.test(e)?Wg[e]=!0:(Vg[e]=!0,!1))}function Bg(e,t,o,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=i}var Ug={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Ug[e]=new Bg(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Ug[t]=new Bg(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Ug[e]=new Bg(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Ug[e]=new Bg(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Ug[e]=new Bg(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Ug[e]=new Bg(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Ug[e]=new Bg(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Ug[e]=new Bg(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Ug[e]=new Bg(e,5,!1,e.toLowerCase(),null,!1)}));var jg=/[\-:]([a-z])/g;function zg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(jg,zg);Ug[t]=new Bg(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(jg,zg);Ug[t]=new Bg(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(jg,zg);Ug[t]=new Bg(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Ug[e]=new Bg(e,1,!1,e.toLowerCase(),null,!1)})),Ug.xlinkHref=new Bg("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Ug[e]=new Bg(e,1,!1,e.toLowerCase(),null,!0)}));var Yg=/["'&<>]/;function Kg(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=Yg.exec(e);if(t){var o,n="",r=0;for(o=t.index;o<e.length;o++){switch(e.charCodeAt(o)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==o&&(n+=e.substring(r,o)),r=o+1,n+=t}e=r!==o?n+e.substring(r,o):n}return e}function qg(e,t){var o,n=Ug.hasOwnProperty(e)?Ug[e]:null;return(o="style"!==e)&&(o=null!==n?0===n.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),o||function(e,t,o,n){if(null==t||function(e,t,o,n){if(null!==o&&0===o.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==o?!o.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,o,n))return!0;if(n)return!1;if(null!==o)switch(o.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,n,!1)?"":null!==n?(e=n.attributeName,3===(o=n.type)||4===o&&!0===t?e+'=""':(n.sanitizeURL&&(t=""+t),e+'="'+Kg(t)+'"')):Hg(e)?e+'="'+Kg(t)+'"':""}var $g="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Qg=null,Xg=null,Zg=null,Jg=!1,ey=!1,ty=null,oy=0;function ny(){if(null===Qg)throw Error(fg(321));return Qg}function ry(){if(0<oy)throw Error(fg(312));return{memoizedState:null,queue:null,next:null}}function iy(){return null===Zg?null===Xg?(Jg=!1,Xg=Zg=ry()):(Jg=!0,Zg=Xg):null===Zg.next?(Jg=!1,Zg=Zg.next=ry()):(Jg=!0,Zg=Zg.next),Zg}function sy(e,t,o,n){for(;ey;)ey=!1,oy+=1,Zg=null,o=e(t,n);return Xg=Qg=null,oy=0,Zg=ty=null,o}function ay(e,t){return"function"==typeof t?t(e):t}function ly(e,t,o){if(Qg=ny(),Zg=iy(),Jg){var n=Zg.queue;if(t=n.dispatch,null!==ty&&void 0!==(o=ty.get(n))){ty.delete(n),n=Zg.memoizedState;do{n=e(n,o.action),o=o.next}while(null!==o);return Zg.memoizedState=n,[n,t]}return[Zg.memoizedState,t]}return e=e===ay?"function"==typeof t?t():t:void 0!==o?o(t):t,Zg.memoizedState=e,e=(e=Zg.queue={last:null,dispatch:null}).dispatch=uy.bind(null,Qg,e),[Zg.memoizedState,e]}function uy(e,t,o){if(!(25>oy))throw Error(fg(301));if(e===Qg)if(ey=!0,e={action:o,next:null},null===ty&&(ty=new Map),void 0===(o=ty.get(t)))ty.set(t,e);else{for(t=o;null!==t.next;)t=t.next;t.next=e}}function py(){}var cy=0,dy={readContext:function(e){var t=cy;return Fg(e,t),e[t]},useContext:function(e){ny();var t=cy;return Fg(e,t),e[t]},useMemo:function(e,t){if(Qg=ny(),t=void 0===t?null:t,null!==(Zg=iy())){var o=Zg.memoizedState;if(null!==o&&null!==t){e:{var n=o[1];if(null===n)n=!1;else{for(var r=0;r<n.length&&r<t.length;r++)if(!$g(t[r],n[r])){n=!1;break e}n=!0}}if(n)return o[0]}}return e=e(),Zg.memoizedState=[e,t],e},useReducer:ly,useRef:function(e){Qg=ny();var t=(Zg=iy()).memoizedState;return null===t?(e={current:e},Zg.memoizedState=e):t},useState:function(e){return ly(ay,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:py,useEffect:py,useDebugValue:py,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return ny(),e},useTransition:function(){return ny(),[function(e){e()},!1]}},hy="http://www.w3.org/1999/xhtml";var fy={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},gy=dg({menuitem:!0},fy),yy={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vy=["Webkit","ms","Moz","O"];Object.keys(yy).forEach((function(e){vy.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yy[t]=yy[e]}))}));var my=/([A-Z])/g,Cy=/^ms-/,wy=hg.Children.toArray,Ey=xg.ReactCurrentDispatcher,by={listing:!0,pre:!0,textarea:!0},Ry=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Oy={},Sy={};var _y=Object.prototype.hasOwnProperty,Ty={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Py(e,t){if(void 0===e)throw Error(fg(152,Ng(t)||"Component"))}function Dy(e,t,o){function n(n,r){var i=r.prototype&&r.prototype.isReactComponent,s=function(e,t,o,n){if(n&&"object"==typeof(n=e.contextType)&&null!==n)return Fg(n,o),n[o];if(e=e.contextTypes){for(var r in o={},e)o[r]=t[r];t=o}else t=Ig;return t}(r,t,o,i),a=[],l=!1,u={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===a)return null},enqueueReplaceState:function(e,t){l=!0,a=[t]},enqueueSetState:function(e,t){if(null===a)return null;a.push(t)}};if(i){if(i=new r(n.props,s,u),"function"==typeof r.getDerivedStateFromProps){var p=r.getDerivedStateFromProps.call(null,n.props,i.state);null!=p&&(i.state=dg({},i.state,p))}}else if(Qg={},i=r(n.props,s,u),null==(i=sy(r,n.props,i,s))||null==i.render)return void Py(e=i,r);if(i.props=n.props,i.context=s,i.updater=u,void 0===(u=i.state)&&(i.state=u=null),"function"==typeof i.UNSAFE_componentWillMount||"function"==typeof i.componentWillMount)if("function"==typeof i.componentWillMount&&"function"!=typeof r.getDerivedStateFromProps&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&"function"!=typeof r.getDerivedStateFromProps&&i.UNSAFE_componentWillMount(),a.length){u=a;var c=l;if(a=null,l=!1,c&&1===u.length)i.state=u[0];else{p=c?u[0]:i.state;var d=!0;for(c=c?1:0;c<u.length;c++){var h=u[c];null!=(h="function"==typeof h?h.call(i,p,n.props,s):h)&&(d?(d=!1,p=dg({},p,h)):dg(p,h))}i.state=p}}else a=null;if(Py(e=i.render(),r),"function"==typeof i.getChildContext&&"object"==typeof(n=r.childContextTypes)){var f=i.getChildContext();for(var g in f)if(!(g in n))throw Error(fg(108,Ng(r)||"Unknown",g))}f&&(t=dg({},t,f))}for(;hg.isValidElement(e);){var r=e,i=r.type;if("function"!=typeof i)break;n(r,i)}return{child:e,context:t}}var Ay=function(){function e(e,t){hg.isValidElement(e)?e.type!==vg?e=[e]:(e=e.props.children,e=hg.isValidElement(e)?[e]:wy(e)):e=wy(e),e={type:null,domNamespace:hy,children:e,childIndex:0,context:Ig,footer:""};var o=Lg[0];if(0===o){var n=Lg,r=2*(o=n.length);if(!(65536>=r))throw Error(fg(304));var i=new Uint16Array(r);for(i.set(n),(Lg=i)[0]=o+1,n=o;n<r-1;n++)Lg[n]=n+1;Lg[r-1]=0}else Lg[0]=Lg[o];this.threadID=o,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;Lg[e]=Lg[0],Lg[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,o=e.type._context,n=this.threadID;Fg(o,n);var r=o[n];this.contextStack[t]=o,this.contextValueStack[t]=r,o[n]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],o=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=o},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=cy;cy=this.threadID;var o=Ey.current;Ey.current=dy;try{for(var n=[""],r=!1;n[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var i=this.threadID;Lg[i]=Lg[0],Lg[0]=i;break}var s=this.stack[this.stack.length-1];if(r||s.childIndex>=s.children.length){var a=s.footer;if(""!==a&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===wg)this.popProvider(s.type);else if(s.type===Og){this.suspenseDepth--;var l=n.pop();if(r){r=!1;var u=s.fallbackFrame;if(!u)throw Error(fg(303));this.stack.push(u),n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}n[this.suspenseDepth]+=l}n[this.suspenseDepth]+=a}else{var p=s.children[s.childIndex++],c="";try{c+=this.render(p,s.context,s.domNamespace)}catch(d){if(null!=d&&"function"==typeof d.then)throw Error(fg(294));throw d}n.length<=this.suspenseDepth&&n.push(""),n[this.suspenseDepth]+=c}}return n[0]}finally{Ey.current=o,cy=t}},t.render=function(e,t,o){if("string"==typeof e||"number"==typeof e)return""===(o=""+e)?"":this.makeStaticMarkup?Kg(o):this.previousWasTextNode?"\x3c!-- --\x3e"+Kg(o):(this.previousWasTextNode=!0,Kg(o));if(e=(t=Dy(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!hg.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((o=e.$$typeof)===yg)throw Error(fg(257));throw Error(fg(258,o.toString()))}return e=wy(e),this.stack.push({type:null,domNamespace:o,children:e,childIndex:0,context:t,footer:""}),""}var n=e.type;if("string"==typeof n)return this.renderDOM(e,t,o);switch(n){case mg:case bg:case Cg:case Sg:case vg:return e=wy(e.props.children),this.stack.push({type:null,domNamespace:o,children:e,childIndex:0,context:t,footer:""}),"";case Og:throw Error(fg(294))}if("object"==typeof n&&null!==n)switch(n.$$typeof){case Rg:Qg={};var r=n.render(e.props,e.ref);return r=sy(n.render,e.props,r,e.ref),r=wy(r),this.stack.push({type:null,domNamespace:o,children:r,childIndex:0,context:t,footer:""}),"";case _g:return e=[hg.createElement(n.type,dg({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:o,children:e,childIndex:0,context:t,footer:""}),"";case wg:return o={type:e,domNamespace:o,children:n=wy(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(o),"";case Eg:n=e.type,r=e.props;var i=this.threadID;return Fg(n,i),n=wy(r.children(n[i])),this.stack.push({type:e,domNamespace:o,children:n,childIndex:0,context:t,footer:""}),"";case Dg:throw Error(fg(338));case Tg:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(n=e.type),n._status){case 1:return e=[hg.createElement(n._result,dg({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:o,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw n._result;default:throw Error(fg(295))}case Ag:throw Error(fg(343))}throw Error(fg(130,null==n?n:typeof n,""))},t.renderDOM=function(e,t,o){var n=e.type.toLowerCase();if(!Oy.hasOwnProperty(n)){if(!Ry.test(n))throw Error(fg(65,n));Oy[n]=!0}var r=e.props;if("input"===n)r=dg({type:void 0},r,{defaultChecked:void 0,defaultValue:void 0,value:null!=r.value?r.value:r.defaultValue,checked:null!=r.checked?r.checked:r.defaultChecked});else if("textarea"===n){var i=r.value;if(null==i){i=r.defaultValue;var s=r.children;if(null!=s){if(null!=i)throw Error(fg(92));if(Array.isArray(s)){if(!(1>=s.length))throw Error(fg(93));s=s[0]}i=""+s}null==i&&(i="")}r=dg({},r,{value:void 0,children:""+i})}else if("select"===n)this.currentSelectValue=null!=r.value?r.value:r.defaultValue,r=dg({},r,{value:void 0});else if("option"===n){s=this.currentSelectValue;var a=function(e){if(null==e)return e;var t="";return hg.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(r.children);if(null!=s){var l=null!=r.value?r.value+"":a;if(i=!1,Array.isArray(s)){for(var u=0;u<s.length;u++)if(""+s[u]===l){i=!0;break}}else i=""+s===l;r=dg({selected:void 0,children:void 0},r,{selected:i,children:a})}}if(i=r){if(gy[n]&&(null!=i.children||null!=i.dangerouslySetInnerHTML))throw Error(fg(137,n,""));if(null!=i.dangerouslySetInnerHTML){if(null!=i.children)throw Error(fg(60));if("object"!=typeof i.dangerouslySetInnerHTML||!("__html"in i.dangerouslySetInnerHTML))throw Error(fg(61))}if(null!=i.style&&"object"!=typeof i.style)throw Error(fg(62,""))}for(v in i=r,s=this.makeStaticMarkup,a=1===this.stack.length,l="<"+e.type,i)if(_y.call(i,v)){var p=i[v];if(null!=p){if("style"===v){u=void 0;var c="",d="";for(u in p)if(p.hasOwnProperty(u)){var h=0===u.indexOf("--"),f=p[u];if(null!=f){if(h)var g=u;else if(g=u,Sy.hasOwnProperty(g))g=Sy[g];else{var y=g.replace(my,"-$1").toLowerCase().replace(Cy,"-ms-");g=Sy[g]=y}c+=d+g+":",d=u,c+=h=null==f||"boolean"==typeof f||""===f?"":h||"number"!=typeof f||0===f||yy.hasOwnProperty(d)&&yy[d]?(""+f).trim():f+"px",d=";"}}p=c||null}u=null;e:if(h=n,f=i,-1===h.indexOf("-"))h="string"==typeof f.is;else switch(h){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":h=!1;break e;default:h=!0}h?Ty.hasOwnProperty(v)||(u=Hg(u=v)&&null!=p?u+'="'+Kg(p)+'"':""):u=qg(v,p),u&&(l+=" "+u)}}s||a&&(l+=' data-reactroot=""');var v=l;i="",fy.hasOwnProperty(n)?v+="/>":(v+=">",i="</"+e.type+">");e:{if(null!=(s=r.dangerouslySetInnerHTML)){if(null!=s.__html){s=s.__html;break e}}else if("string"==typeof(s=r.children)||"number"==typeof s){s=Kg(s);break e}s=null}return null!=s?(r=[],by.hasOwnProperty(n)&&"\n"===s.charAt(0)&&(v+="\n"),v+=s):r=wy(r.children),e=e.type,o=null==o||"http://www.w3.org/1999/xhtml"===o?function(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}(e):"http://www.w3.org/2000/svg"===o&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":o,this.stack.push({domNamespace:o,type:n,children:r,childIndex:0,context:t,footer:i}),this.previousWasTextNode=!1,v},e}(),Ny={renderToString:function(e){e=new Ay(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Ay(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(fg(207))},renderToStaticNodeStream:function(){throw Error(fg(208))},version:"16.13.1"},xy=Ny.default||Ny;cg.exports=xy;var Iy=a&&a.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(ig,"__esModule",{value:!0});var Fy=l.exports,Ly=te.exports,My=$f,Gy=sg,ky=lg,Vy=ug,Wy=cg.exports,Hy=function(e){function t(o,n,r){var i=e.call(this)||this;return i.portal=null,i.componentWrappingElement="div",i.staticMarkup=null,i.staticRenderTime=0,i.reactComponent=o,i.componentType=r,i.parentComponent=n,i.statelessComponent=t.isStateless(i.reactComponent),i}return Iy(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new My.Promise((function(o){t.createReactComponent(e,o)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.parentComponent.destroyPortal(this.portal)},t.prototype.createReactComponent=function(e,t){var o=this;this.statelessComponent||(e.ref=function(e){o.componentInstance=e,o.addParentContainerStyleAndClasses(),o.removeStaticMarkup()});var n=Fy.createElement(this.reactComponent,e),r=Ly.createPortal(n,this.eParentElement,Vy.default());this.portal=r,this.parentComponent.mountReactPortal(r,this,(function(e){t(e),o.statelessComponent&&(o.staticRenderTime>=2?o.eParentElement.addEventListener("DOMNodeInserted",(function(){o.removeStaticMarkup()}),!1):setTimeout((function(){o.removeStaticMarkup()})))}))},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&ky.assignProperties(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return My._.addCssClass(e.eParentElement,t)})))},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return My._.addCssClass(t,"ag-react-container"),e.reactContainer=t,t},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.hasSymbol=function(){return"function"==typeof Symbol&&Symbol.for},t.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"==typeof e&&e.$$typeof===t.REACT_MEMO_TYPE},t.prototype.isNullRender=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.isCellRenderer()){var t=console.error,o=Fy.createElement(this.reactComponent,e);try{var n=console.error;console.error=function(){};var r=Date.now(),i=Wy.renderToStaticMarkup(o);this.staticRenderTime=Date.now()-r,console.error=n,""===i?this.staticMarkup=i:i&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=i,this.eParentElement.appendChild(this.staticMarkup))}catch(s){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.isCellRenderer()&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullRender()||this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!this.isStatelessComponent()&&this.getFrameworkComponentInstance()},t.REACT_MEMO_TYPE=t.hasSymbol()?Symbol.for("react.memo"):60115,t}(Gy.BaseReactComponent);ig.ReactComponent=Hy;var By={};!function(e){var t,o;Object.defineProperty(e,"__esModule",{value:!0}),(o=t=e.ChangeDetectionStrategyType||(e.ChangeDetectionStrategyType={})).IdentityCheck="IdentityCheck",o.DeepValueCheck="DeepValueCheck",o.NoCheck="NoCheck";var n=function(){function e(){var e;this.strategyMap=((e={})[t.DeepValueCheck]=new i,e[t.IdentityCheck]=new r((function(e,t){return e===t})),e[t.NoCheck]=new r((function(e,t){return!0})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();e.ChangeDetectionService=n;var r=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),i=function(){function e(){}return e.prototype.areEqual=function(t,o){return e.areEquivalent(e.copy(t),e.copy(o))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],o=0;o<e.length;o++)t.push(this.copy(e[o]));return t}return"object"!=typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"==typeof e&&isNaN(e)},e.areEquivalent=function(t,o){if(t=e.unwrapStringOrNumber(t),o=e.unwrapStringOrNumber(o),t===o)return!0;if(null===t||null===o||typeof t!=typeof o)return!1;if(e.isNaN(t)&&e.isNaN(o))return!0;if(t instanceof Date)return o instanceof Date&&t.valueOf()===o.valueOf();if("function"==typeof t)return t.toString()===o.toString();if("object"!=typeof t)return t==o;var n=void 0===t.areEquivPropertyTracking,r=void 0===o.areEquivPropertyTracking;try{var i=void 0;if(n)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===o})))return!0;if(r)o.areEquivPropertyTracking=[];else if(o.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(o),o.areEquivPropertyTracking.push(t);var s={};for(i in t)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in o)"areEquivPropertyTracking"!=i&&(s[i]=null);for(i in s)if(!this.areEquivalent(t[i],o[i]))return!1;return!0}finally{n&&delete t.areEquivPropertyTracking,r&&delete o.areEquivPropertyTracking}},e}()}(By);var Uy=a&&a.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),jy=a&&a.__spreadArrays||function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n};Object.defineProperty(zf,"__esModule",{value:!0});var zy=l.exports,Yy=l.exports,Ky=Yf.exports,qy=$f,$y=Xf,Qy=ig,Xy=By,Zy=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.props=t,n.state=o,n.changeDetectionService=new Xy.ChangeDetectionService,n.api=null,n.portals=[],n.hasPendingPortalUpdate=!1,n.destroyed=!1,n}return Uy(t,e),t.prototype.render=function(){var e=this;return zy.createElement("div",{style:this.createStyleForDiv(),ref:function(t){e.eGridDiv=t}},this.portals)},t.prototype.createStyleForDiv=function(){var e={height:"100%"},t=this.props.containerStyle;return t&&Object.keys(t).forEach((function(o){e[o]=t[o]})),e},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new ev(this)},modules:e},o=this.props.gridOptions||{};$y.AgGridColumn.hasChildColumns(this.props)&&(o.columnDefs=$y.AgGridColumn.mapChildColumnDefs(this.props)),this.gridOptions=qy.ComponentUtil.copyAttributesToGridOptions(o,this.props),new qy.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi},t.prototype.waitForInstance=function(e,o,n){var r=this;if(void 0===n&&(n=0),this.destroyed)o(null);else if(e.rendered())o(null);else{if(n>=t.MAX_COMPONENT_CREATION_TIME)return void console.error("ag-Grid: React Component '"+e.getReactComponentName()+"' not created within "+t.MAX_COMPONENT_CREATION_TIME+"ms");window.setTimeout((function(){return r.waitForInstance(e,o,n+5)}),5)}},t.prototype.mountReactPortal=function(e,t,o){this.portals=jy(this.portals,[e]),this.batchUpdate(this.waitForInstance(t,o))},t.prototype.batchUpdate=function(e){var t=this;if(this.hasPendingPortalUpdate)return e&&e();setTimeout((function(){t.api&&t.forceUpdate((function(){e&&e(),t.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0},t.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.props.deltaRowDataMode||this.props.immutableData)return Xy.ChangeDetectionStrategyType.IdentityCheck}return Xy.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var o={};this.extractGridPropertyChanges(e,t,o),this.extractDeclarativeColDefChanges(t,o),Object.keys(o).length>0&&qy.ComponentUtil.processOnChange(o,this.gridOptions,this.api,this.columnApi)},t.prototype.extractDeclarativeColDefChanges=function(e,t){var o=!!e.debug;if($y.AgGridColumn.hasChildColumns(e)){var n=this.changeDetectionService.getStrategy(Xy.ChangeDetectionStrategyType.DeepValueCheck),r=this.gridOptions.columnDefs,i=$y.AgGridColumn.mapChildColumnDefs(e);n.areEqual(r,i)||(o&&console.log("agGridReact: colDefs definitions changed"),t.columnDefs={previousValue:this.gridOptions.columnDefs,currentValue:$y.AgGridColumn.mapChildColumnDefs(e)})}},t.prototype.extractGridPropertyChanges=function(e,t,o){var n=this,r=!!t.debug;Object.keys(t).forEach((function(i){-1!==qy.ComponentUtil.ALL_PROPERTIES.indexOf(i)&&(n.changeDetectionService.getStrategy(n.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),o[i]={previousValue:e[i],currentValue:t[i]}))})),qy.ComponentUtil.getEventCallbacks().forEach((function(i){n.props[i]!==t[i]&&(r&&console.log("agGridReact: ["+i+"] event callback changed"),o[i]={previousValue:e[i],currentValue:t[i]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0},t.prototype.isDisableStaticMarkup=function(){return!!this.props.disableStaticMarkup},t.MAX_COMPONENT_CREATION_TIME=1e3,t}(Yy.Component);function Jy(e,t){e.forEach((function(e){Zy[e]=t}))}zf.AgGridReact=Zy,Zy.propTypes={gridOptions:Ky.object},Jy(qy.ComponentUtil.getEventCallbacks(),Ky.func),Jy(qy.ComponentUtil.BOOLEAN_PROPERTIES,Ky.bool),Jy(qy.ComponentUtil.STRING_PROPERTIES,Ky.string),Jy(qy.ComponentUtil.OBJECT_PROPERTIES,Ky.object),Jy(qy.ComponentUtil.ARRAY_PROPERTIES,Ky.array),Jy(qy.ComponentUtil.NUMBER_PROPERTIES,Ky.number),Jy(qy.ComponentUtil.FUNCTION_PROPERTIES,Ky.func);for(var ev=function(e){function t(t){var o=e.call(this)||this;return o.agGridReact=t,o}return Uy(t,e),t.prototype.createWrapper=function(e,t){return new Qy.ReactComponent(e,this.agGridReact,t)},t}(qy.BaseComponentWrapper),tv=zf.AgGridReact,ov=Xf.AgGridColumn,nv={},rv={byteLength:function(e){var t=cv(e),o=t[0],n=t[1];return 3*(o+n)/4-n},toByteArray:function(e){var t,o,n=cv(e),r=n[0],i=n[1],s=new av(function(e,t,o){return 3*(t+o)/4-o}(0,r,i)),a=0,l=i>0?r-4:r;for(o=0;o<l;o+=4)t=sv[e.charCodeAt(o)]<<18|sv[e.charCodeAt(o+1)]<<12|sv[e.charCodeAt(o+2)]<<6|sv[e.charCodeAt(o+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===i&&(t=sv[e.charCodeAt(o)]<<2|sv[e.charCodeAt(o+1)]>>4,s[a++]=255&t);1===i&&(t=sv[e.charCodeAt(o)]<<10|sv[e.charCodeAt(o+1)]<<4|sv[e.charCodeAt(o+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},fromByteArray:function(e){for(var t,o=e.length,n=o%3,r=[],i=16383,s=0,a=o-n;s<a;s+=i)r.push(dv(e,s,s+i>a?a:s+i));1===n?(t=e[o-1],r.push(iv[t>>2]+iv[t<<4&63]+"==")):2===n&&(t=(e[o-2]<<8)+e[o-1],r.push(iv[t>>10]+iv[t>>4&63]+iv[t<<2&63]+"="));return r.join("")}},iv=[],sv=[],av="undefined"!=typeof Uint8Array?Uint8Array:Array,lv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uv=0,pv=lv.length;uv<pv;++uv)iv[uv]=lv[uv],sv[lv.charCodeAt(uv)]=uv;function cv(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");return-1===o&&(o=t),[o,o===t?0:4-o%4]}function dv(e,t,o){for(var n,r,i=[],s=t;s<o;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(iv[(r=n)>>18&63]+iv[r>>12&63]+iv[r>>6&63]+iv[63&r]);return i.join("")}sv["-".charCodeAt(0)]=62,sv["_".charCodeAt(0)]=63;var hv={};
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function fv(){return(fv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}function gv(e,t){return(gv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}hv.read=function(e,t,o,n,r){var i,s,a=8*r-n-1,l=(1<<a)-1,u=l>>1,p=-7,c=o?r-1:0,d=o?-1:1,h=e[t+c];for(c+=d,i=h&(1<<-p)-1,h>>=-p,p+=a;p>0;i=256*i+e[t+c],c+=d,p-=8);for(s=i&(1<<-p)-1,i>>=-p,p+=n;p>0;s=256*s+e[t+c],c+=d,p-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)},hv.write=function(e,t,o,n,r,i){var s,a,l,u=8*i-r-1,p=(1<<u)-1,c=p>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+c>=1?d/l:d*Math.pow(2,1-c))*l>=2&&(s++,l/=2),s+c>=p?(a=0,s=p):s+c>=1?(a=(t*l-1)*Math.pow(2,r),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,r),s=0));r>=8;e[o+h]=255&a,h+=f,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;e[o+h]=255&s,h+=f,s/=256,u-=8);e[o+h-f]|=128*g},
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/
|
||
function(e){const t=rv,o=hv,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const r=2147483647;function i(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,o){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,o)}function a(e,t,o){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const o=0|h(e,t);let n=i(o);const r=n.write(e,t);r!==o&&(n=n.slice(0,r));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return c(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return c(e,t,o);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return c(e,t,o);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,o);const r=function(e){if(s.isBuffer(e)){const t=0|d(e.length),o=i(t);return 0===o.length||e.copy(o,0,0,t),o}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?i(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),i(e<0?0:0|d(e))}function p(e){const t=e.length<0?0:0|d(e.length),o=i(t);for(let n=0;n<t;n+=1)o[n]=255&e[n];return o}function c(e,t,o){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(o||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===o?new Uint8Array(e):void 0===o?new Uint8Array(e,t):new Uint8Array(e,t,o),Object.setPrototypeOf(n,s.prototype),n}function d(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const o=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===o)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return z(e).length;default:if(r)return n?-1:j(e).length;t=(""+t).toLowerCase(),r=!0}}function f(e,t,o){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if((o>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,o);case"utf8":case"utf-8":return O(this,t,o);case"ascii":return _(this,t,o);case"latin1":case"binary":return T(this,t,o);case"base64":return R(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,o);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,o){const n=e[t];e[t]=e[o],e[o]=n}function y(e,t,o,n,r){if(0===e.length)return-1;if("string"==typeof o?(n=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),q(o=+o)&&(o=r?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(r)return-1;o=e.length-1}else if(o<0){if(!r)return-1;o=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:v(e,t,o,n,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):v(e,[t],o,n,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,o,n,r){let i,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,o/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){let n=-1;for(i=o;i<a;i++)if(u(e,i)===u(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===l)return n*s}else-1!==n&&(i-=i-n),n=-1}else for(o+l>a&&(o=a-l),i=o;i>=0;i--){let o=!0;for(let n=0;n<l;n++)if(u(e,i+n)!==u(t,n)){o=!1;break}if(o)return i}return-1}function m(e,t,o,n){o=Number(o)||0;const r=e.length-o;n?(n=Number(n))>r&&(n=r):n=r;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(q(n))return s;e[o+s]=n}return s}function C(e,t,o,n){return Y(j(t,e.length-o),e,o,n)}function w(e,t,o,n){return Y(function(e){const t=[];for(let o=0;o<e.length;++o)t.push(255&e.charCodeAt(o));return t}(t),e,o,n)}function E(e,t,o,n){return Y(z(t),e,o,n)}function b(e,t,o,n){return Y(function(e,t){let o,n,r;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)o=e.charCodeAt(s),n=o>>8,r=o%256,i.push(r),i.push(n);return i}(t,e.length-o),e,o,n)}function R(e,o,n){return 0===o&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(o,n))}function O(e,t,o){o=Math.min(e.length,o);const n=[];let r=t;for(;r<o;){const t=e[r];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(r+s<=o){let o,n,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:o=e[r+1],128==(192&o)&&(l=(31&t)<<6|63&o,l>127&&(i=l));break;case 3:o=e[r+1],n=e[r+2],128==(192&o)&&128==(192&n)&&(l=(15&t)<<12|(63&o)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:o=e[r+1],n=e[r+2],a=e[r+3],128==(192&o)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&o)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),r+=s}return function(e){const t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);let o="",n=0;for(;n<t;)o+=String.fromCharCode.apply(String,e.slice(n,n+=S));return o}(n)}e.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,o){return a(e,t,o)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,o){return function(e,t,o){return l(e),e<=0?i(e):void 0!==t?"string"==typeof o?i(e).fill(t,o):i(e).fill(t):i(e)}(e,t,o)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let o=e.length,n=t.length;for(let r=0,i=Math.min(o,n);r<i;++r)if(e[r]!==t[r]){o=e[r],n=t[r];break}return o<n?-1:n<o?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let o;if(void 0===t)for(t=0,o=0;o<e.length;++o)t+=e[o].length;const n=s.allocUnsafe(t);let r=0;for(o=0;o<e.length;++o){let t=e[o];if(K(t,Uint8Array))r+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,r)):Uint8Array.prototype.set.call(n,t,r);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,r)}r+=t.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):f.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const o=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,o).replace(/(.{2})/g,"$1 ").trim(),this.length>o&&(t+=" ... "),"<Buffer "+t+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(e,t,o,n,r){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===o&&(o=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||o>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=o)return 0;if(n>=r)return-1;if(t>=o)return 1;if(this===e)return 0;let i=(r>>>=0)-(n>>>=0),a=(o>>>=0)-(t>>>=0);const l=Math.min(i,a),u=this.slice(n,r),p=e.slice(t,o);for(let s=0;s<l;++s)if(u[s]!==p[s]){i=u[s],a=p[s];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,o){return-1!==this.indexOf(e,t,o)},s.prototype.indexOf=function(e,t,o){return y(this,e,t,o,!0)},s.prototype.lastIndexOf=function(e,t,o){return y(this,e,t,o,!1)},s.prototype.write=function(e,t,o,n){if(void 0===t)n="utf8",o=this.length,t=0;else if(void 0===o&&"string"==typeof t)n=t,o=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(o)?(o>>>=0,void 0===n&&(n="utf8")):(n=o,o=void 0)}const r=this.length-t;if((void 0===o||o>r)&&(o=r),e.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return m(this,e,t,o);case"utf8":case"utf-8":return C(this,e,t,o);case"ascii":case"latin1":case"binary":return w(this,e,t,o);case"base64":return E(this,e,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,e,t,o);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function _(e,t,o){let n="";o=Math.min(e.length,o);for(let r=t;r<o;++r)n+=String.fromCharCode(127&e[r]);return n}function T(e,t,o){let n="";o=Math.min(e.length,o);for(let r=t;r<o;++r)n+=String.fromCharCode(e[r]);return n}function P(e,t,o){const n=e.length;(!t||t<0)&&(t=0),(!o||o<0||o>n)&&(o=n);let r="";for(let i=t;i<o;++i)r+=$[e[i]];return r}function D(e,t,o){const n=e.slice(t,o);let r="";for(let i=0;i<n.length-1;i+=2)r+=String.fromCharCode(n[i]+256*n[i+1]);return r}function A(e,t,o){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>o)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,o,n,r,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('"value" argument is out of bounds');if(o+n>e.length)throw new RangeError("Index out of range")}function x(e,t,o,n,r){W(t,n,r,e,o,7);let i=Number(t&BigInt(4294967295));e[o++]=i,i>>=8,e[o++]=i,i>>=8,e[o++]=i,i>>=8,e[o++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[o++]=s,s>>=8,e[o++]=s,s>>=8,e[o++]=s,s>>=8,e[o++]=s,o}function I(e,t,o,n,r){W(t,n,r,e,o,7);let i=Number(t&BigInt(4294967295));e[o+7]=i,i>>=8,e[o+6]=i,i>>=8,e[o+5]=i,i>>=8,e[o+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[o+3]=s,s>>=8,e[o+2]=s,s>>=8,e[o+1]=s,s>>=8,e[o]=s,o+8}function F(e,t,o,n,r,i){if(o+n>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){const o=this.length;(e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,o){e>>>=0,t>>>=0,o||A(e,t,this.length);let n=this[e],r=1,i=0;for(;++i<t&&(r*=256);)n+=this[e+i]*r;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,o){e>>>=0,t>>>=0,o||A(e,t,this.length);let n=this[e+--t],r=1;for(;t>0&&(r*=256);)n+=this[e+--t]*r;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||B(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,r=this[++e]+256*this[++e]+65536*this[++e]+o*2**24;return BigInt(n)+(BigInt(r)<<BigInt(32))})),s.prototype.readBigUInt64BE=Q((function(e){H(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||B(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],r=this[++e]*2**24+65536*this[++e]+256*this[++e]+o;return(BigInt(n)<<BigInt(32))+BigInt(r)})),s.prototype.readIntLE=function(e,t,o){e>>>=0,t>>>=0,o||A(e,t,this.length);let n=this[e],r=1,i=0;for(;++i<t&&(r*=256);)n+=this[e+i]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,o){e>>>=0,t>>>=0,o||A(e,t,this.length);let n=t,r=1,i=this[e+--n];for(;n>0&&(r*=256);)i+=this[e+--n]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);const o=this[e]|this[e+1]<<8;return 32768&o?4294901760|o:o},s.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);const o=this[e+1]|this[e]<<8;return 32768&o?4294901760|o:o},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||B(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(o<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=Q((function(e){H(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||B(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+o)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,o,n){if(e=+e,t>>>=0,o>>>=0,!n){N(this,e,t,o,Math.pow(2,8*o)-1,0)}let r=1,i=0;for(this[t]=255&e;++i<o&&(r*=256);)this[t+i]=e/r&255;return t+o},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,o,n){if(e=+e,t>>>=0,o>>>=0,!n){N(this,e,t,o,Math.pow(2,8*o)-1,0)}let r=o-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+o},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=Q((function(e,t=0){return x(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=Q((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,o,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*o-1);N(this,e,t,o,n-1,-n)}let r=0,i=1,s=0;for(this[t]=255&e;++r<o&&(i*=256);)e<0&&0===s&&0!==this[t+r-1]&&(s=1),this[t+r]=(e/i>>0)-s&255;return t+o},s.prototype.writeIntBE=function(e,t,o,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*o-1);N(this,e,t,o,n-1,-n)}let r=o-1,i=1,s=0;for(this[t+r]=255&e;--r>=0&&(i*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/i>>0)-s&255;return t+o},s.prototype.writeInt8=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,o){return e=+e,t>>>=0,o||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=Q((function(e,t=0){return x(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=Q((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,o){return L(this,e,t,!0,o)},s.prototype.writeFloatBE=function(e,t,o){return L(this,e,t,!1,o)},s.prototype.writeDoubleLE=function(e,t,o){return M(this,e,t,!0,o)},s.prototype.writeDoubleBE=function(e,t,o){return M(this,e,t,!1,o)},s.prototype.copy=function(e,t,o,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(o||(o=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<o&&(n=o),n===o)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-o&&(n=e.length-t+o);const r=n-o;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,o,n):Uint8Array.prototype.set.call(e,this.subarray(o,n),t),r},s.prototype.fill=function(e,t,o,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,o=this.length):"string"==typeof o&&(n=o,o=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<o)throw new RangeError("Out of range index");if(o<=t)return this;let r;if(t>>>=0,o=void 0===o?this.length:o>>>0,e||(e=0),"number"==typeof e)for(r=t;r<o;++r)this[r]=e;else{const i=s.isBuffer(e)?e:s.from(e,n),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<o-t;++r)this[r+t]=i[r%a]}return this};const G={};function k(e,t,o){G[e]=class extends o{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",o=e.length;const n="-"===e[0]?1:0;for(;o>=n+4;o-=3)t=`_${e.slice(o-3,o)}${t}`;return`${e.slice(0,o)}${t}`}function W(e,t,o,n,r,i){if(e>o||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=i>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${o}${n}`,new G.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,o){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+o]||B(t,e.length-(o+1))}(n,r,i)}function H(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function B(e,t,o){if(Math.floor(e)!==e)throw H(e,o),new G.ERR_OUT_OF_RANGE(o||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(o||"offset",`>= ${o?1:0} and <= ${t}`,e)}k("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),k("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),k("ERR_OUT_OF_RANGE",(function(e,t,o){let n=`The value of "${e}" is out of range.`,r=o;return Number.isInteger(o)&&Math.abs(o)>2**32?r=V(String(o)):"bigint"==typeof o&&(r=String(o),(o>BigInt(2)**BigInt(32)||o<-(BigInt(2)**BigInt(32)))&&(r=V(r)),r+="n"),n+=` It must be ${t}. Received ${r}`,n}),RangeError);const U=/[^+/0-9A-Za-z-_]/g;function j(e,t){let o;t=t||1/0;const n=e.length;let r=null;const i=[];for(let s=0;s<n;++s){if(o=e.charCodeAt(s),o>55295&&o<57344){if(!r){if(o>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}r=o;continue}if(o<56320){(t-=3)>-1&&i.push(239,191,189),r=o;continue}o=65536+(r-55296<<10|o-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,o<128){if((t-=1)<0)break;i.push(o)}else if(o<2048){if((t-=2)<0)break;i.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;i.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return i}function z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,o,n){let r;for(r=0;r<n&&!(r+o>=t.length||r>=e.length);++r)t[r+o]=e[r];return r}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let o=0;o<16;++o){const n=16*o;for(let r=0;r<16;++r)t[n+r]=e[o]+e[r]}return t}();function Q(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}}(nv);var vv=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function mv(e,t){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(n=e[o],r=t[o],!(n===r||vv(n)&&vv(r)))return!1;var n,r;return!0}function Cv(e,t){var o;void 0===t&&(t=mv);var n,r=[],i=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return i&&o===this&&t(s,r)||(n=e.apply(this,s),i=!0,o=this,r=s),n}}var wv="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Ev(e){cancelAnimationFrame(e.id)}var bv=null;function Rv(e){if(void 0===e&&(e=!1),null===bv||e){var t=document.createElement("div"),o=t.style;o.width="50px",o.height="50px",o.overflow="scroll",o.direction="rtl";var n=document.createElement("div"),r=n.style;return r.width="100px",r.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?bv="positive-descending":(t.scrollLeft=1,bv=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),bv}return bv}var Ov=function(e,t){return e};function Sv(e){var t,o,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,u=e.getStopIndexForStartIndex,p=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return o=t=function(e){var t,o;function h(t){var o;return(o=e.call(this,t)||this)._instanceProps=p(o.props,yv(yv(o))),o._outerRef=void 0,o._resetIsScrollingTimeoutId=null,o.state={instance:yv(yv(o)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof o.props.initialScrollOffset?o.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},o._callOnItemsRendered=void 0,o._callOnItemsRendered=Cv((function(e,t,n,r){return o.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:r})})),o._callOnScroll=void 0,o._callOnScroll=Cv((function(e,t,n){return o.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),o._getItemStyle=void 0,o._getItemStyle=function(e){var t,r=o.props,s=r.direction,a=r.itemSize,l=r.layout,u=o._getItemStyleCache(c&&a,c&&l,c&&s);if(u.hasOwnProperty(e))t=u[e];else{var p=n(o.props,e,o._instanceProps),d=i(o.props,e,o._instanceProps),h="horizontal"===s||"horizontal"===l,f="rtl"===s,g=h?p:0;u[e]=t={position:"absolute",left:f?void 0:g,right:f?g:void 0,top:h?0:p,height:h?"100%":d,width:h?d:"100%"}}return t},o._getItemStyleCache=void 0,o._getItemStyleCache=Cv((function(e,t,o){return{}})),o._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,r=t.scrollLeft,i=t.scrollWidth;o.setState((function(e){if(e.scrollOffset===r)return null;var t=o.props.direction,s=r;if("rtl"===t)switch(Rv()){case"negative":s=-r;break;case"positive-descending":s=i-n-r}return s=Math.max(0,Math.min(s,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<r?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),o._resetIsScrollingDebounced)},o._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,r=t.scrollHeight,i=t.scrollTop;o.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,r-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),o._resetIsScrollingDebounced)},o._outerRefSetter=function(e){var t=o.props.outerRef;o._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},o._resetIsScrollingDebounced=function(){null!==o._resetIsScrollingTimeoutId&&Ev(o._resetIsScrollingTimeoutId),o._resetIsScrollingTimeoutId=function(e,t){var o=wv(),n={id:requestAnimationFrame((function r(){wv()-o>=t?e.call(null):n.id=requestAnimationFrame(r)}))};return n}(o._resetIsScrolling,150)},o._resetIsScrolling=function(){o._resetIsScrollingTimeoutId=null,o.setState({isScrolling:!1},(function(){o._getItemStyleCache(-1,null)}))},o}o=e,(t=h).prototype=Object.create(o.prototype),t.prototype.constructor=t,gv(t,o),h.getDerivedStateFromProps=function(e,t){return _v(e,t),d(e),null};var f=h.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var o=this.props.itemCount,n=this.state.scrollOffset;e=Math.max(0,Math.min(e,o-1)),this.scrollTo(s(this.props,e,t,n,this._instanceProps))},f.componentDidMount=function(){var e=this.props,t=e.direction,o=e.initialScrollOffset,n=e.layout;if("number"==typeof o&&null!=this._outerRef){var r=this._outerRef;"horizontal"===t||"horizontal"===n?r.scrollLeft=o:r.scrollTop=o}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,o=e.layout,n=this.state,r=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===o)if("rtl"===t)switch(Rv()){case"negative":i.scrollLeft=-r;break;case"positive-ascending":i.scrollLeft=r;break;default:var s=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-s-r}else i.scrollLeft=r;else i.scrollTop=r}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Ev(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,o=e.className,n=e.direction,i=e.height,s=e.innerRef,a=e.innerElementType,u=e.innerTagName,p=e.itemCount,c=e.itemData,d=e.itemKey,h=void 0===d?Ov:d,f=e.layout,g=e.outerElementType,y=e.outerTagName,v=e.style,m=e.useIsScrolling,C=e.width,w=this.state.isScrolling,E="horizontal"===n||"horizontal"===f,b=E?this._onScrollHorizontal:this._onScrollVertical,R=this._getRangeToRender(),O=R[0],S=R[1],_=[];if(p>0)for(var T=O;T<=S;T++)_.push(l.exports.createElement(t,{data:c,key:h(T,c),index:T,isScrolling:m?w:void 0,style:this._getItemStyle(T)}));var P=r(this.props,this._instanceProps);return l.exports.createElement(g||y||"div",{className:o,onScroll:b,ref:this._outerRefSetter,style:fv({position:"relative",height:i,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:n},v)},l.exports.createElement(a||u||"div",{children:_,ref:s,style:{height:E?"100%":P,pointerEvents:w?"none":void 0,width:E?P:"100%"}}))},f._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],o=e[1],n=e[2],r=e[3];this._callOnItemsRendered(t,o,n,r)}if("function"==typeof this.props.onScroll){var i=this.state,s=i.scrollDirection,a=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,o=e.overscanCount,n=this.state,r=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var l=a(this.props,s,this._instanceProps),p=u(this.props,l,s,this._instanceProps),c=r&&"backward"!==i?1:Math.max(1,o),d=r&&"forward"!==i?1:Math.max(1,o);return[Math.max(0,l-c),Math.max(0,Math.min(t-1,p+d)),l,p]},h}(l.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},o}var _v=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Tv=Sv({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,o,n){var r=e.direction,i=e.height,s=e.itemCount,a=e.itemSize,l=e.layout,u=e.width,p="horizontal"===r||"horizontal"===l?u:i,c=Math.max(0,s*a-p),d=Math.min(c,t*a),h=Math.max(0,t*a-p+a);switch("smart"===o&&(o=n>=h-p&&n<=d+p?"auto":"center"),o){case"start":return d;case"end":return h;case"center":var f=Math.round(h+(d-h)/2);return f<Math.ceil(p/2)?0:f>c+Math.floor(p/2)?c:f;case"auto":default:return n>=h&&n<=d?n:n<h?h:d}},getStartIndexForOffset:function(e,t){var o=e.itemCount,n=e.itemSize;return Math.max(0,Math.min(o-1,Math.floor(t/n)))},getStopIndexForStartIndex:function(e,t,o){var n=e.direction,r=e.height,i=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,u=t*s,p="horizontal"===n||"horizontal"===a?l:r,c=Math.ceil((p+o-u)/s);return Math.max(0,Math.min(i-1,t+c-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});export{tv as A,Tv as F,ee as R,Qc as a,Dh as b,oc as c,Ah as d,Xc as e,Lh as f,id as g,Bf as h,Kh as i,l as j,ep as k,tp as l,jf as m,nv as n,qp as o,ov as p,od as r,vd as t,Ph as u,yh as v,wd as w};
|