PageSourceSearch

https://portal.sqoot.nl/static/js/2.99d63403.chunk.js

js sqoot.nl collected 2026-10-05 21:27:08 UTC 1,736,298 bytes, 3 lines download raw bytes

1/*! For license information please see 2.99d63403.chunk.js.LICENSE.txt */
2(this.webpackJsonpsqoot=this.webpackJsonpsqoot||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(97)},function(e,t,n){"use strict";var o=n(15);function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}var a=n(0),s=n.n(a),l=n(22);n(37);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function c(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}var p=n(23);n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var d=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).history=Object(l.a)(t.props),t}return i(t,e),t.prototype.render=function(){return s.a.createElement(o.c,{history:this.history,children:this.props.children})},t}(s.a.Component);s.a.Component;var h=function(e,t){return"function"===typeof e?e(t):e},f=function(e,t){return"string"===typeof e?Object(l.c)(e,null,null,t):e},g=function(e){return e},y=s.a.forwardRef;"undefined"===typeof y&&(y=g);var v=y((function(e,t){var n=e.innerRef,o=e.navigate,r=e.onClick,i=c(e,["innerRef","navigate","onClick"]),a=i.target,l=u({},i,{onClick:function(e){try{r&&r(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return l.ref=g!==y&&t||n,s.a.createElement("a",l)}));var m=y((function(e,t){var n=e.component,r=void 0===n?v:n,i=e.replace,a=e.to,d=e.innerRef,m=c(e,["component","replace","to","innerRef"]);return(s.a.createElement(o.e.Consumer,null,(function(e){e||Object(p.a)(!1);var n=e.history,o=f(h(a,e.location),e.location),c=o?n.createHref(o):"",v=u({},m,{href:c,navigate:function(){var t=h(a,e.location),o=Object(l.e)(e.location)===Object(l.e)(f(t));(i||o?n.replace:n.push)(t)}});return g!==y?v.ref=t||d:v.innerRef=d,s.a.createElement(r,v)})))})),C=function(e){return e},w=s.a.forwardRef;"undefined"===typeof w&&(w=C);w((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,l=e.activeStyle,d=e.className,g=e.exact,y=e.isActive,v=e.location,b=e.sensitive,E=e.strict,_=e.style,O=e.to,R=e.innerRef,S=c(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return(s.a.createElement(o.e.Consumer,null,(function(e){e||Object(p.a)(!1);var n=v||e.location,i=f(h(O,n),n),c=i.pathname,T=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=T?Object(o.f)(n.pathname,{path:T,exact:g,sensitive:b,strict:E}):null,D=!!(y?y(P,n):P),A="function"===typeof d?d(D):d,N="function"===typeof _?_(D):_;D&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,a),N=u({},N,l));var I=u({"aria-current":D&&r||null,className:A,style:N,to:i},S);return C!==w?I.ref=t||R:I.innerRef=R,s.a.createElement(m,I)})))}))},function(e,t,n){"use strict";function o(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return o}
2))},function(e,t,n){"use strict";function o(e){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(19),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(o.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(10);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function o(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var o=n(0);n(18),n(48);function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function a(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function s(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}i.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0;n(91);var l=n(76),u=n(59);n.d(t,"a",(function(){return p}));Object.keys,o.Component;var c,p=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}),(function(e){return e}))},d={fromESObservable:null,toESObservable:null},h={fromESObservable:function(e){return"function"===typeof d.fromESObservable?d.fromESObservable(e):e},toESObservable:function(e){return"function"===typeof d.toESObservable?d.toESObservable(e):e}};c=h},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return A})),n.d(t,"g",(function(){return G}));var o=n(34),r=n(0),i=n.n(r),a=n(37),s=n.n(a),l=n(22),u=n(23),c=n(33),p=n(77),d=n.n(p),h=(n(83),n(78)),f=n(93),g=n.n(f),y="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function v(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,o){e=n,t.forEach((function(t){return t(e,o)}))}}}var m=i.a.createContext||function(e,t){var n,r,a="__create-react-context-"+function(){var e="__global_unique_id__";return y[e]=(y[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).emitter=v(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,o=this.props.value,r=e.value;((i=o)===(a=r)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(o,r):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(i.a.Component);l.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var u=function(t){function n(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.a.Component);return u.contextTypes=((r={})[a]=s.a.object,r),{Provider:l,Consumer:u}},C=function(e){var t=m();return t.displayName=e,t},w=C("Router-History"),b=C("Router"),E=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}Object(o.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}
2))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(w.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;var _=function(e){function t(){return e.apply(this,arguments)||this}Object(o.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);var O={},R=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(O[e])return O[e];var t=d.a.compile(e);return R<1e4&&(O[e]=t,R++),t}(e)(t,{pretty:!0})}function T(e){var t=e.computedMatch,n=e.to,o=e.push,r=void 0!==o&&o;return(i.a.createElement(b.Consumer,null,(function(e){e||Object(u.a)(!1);var o=e.history,a=e.staticContext,s=r?o.push:o.replace,p=Object(l.c)(t?"string"===typeof n?S(n,t.params):Object(c.a)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(s(p),null):i.a.createElement(_,{onMount:function(){s(p)},onUpdate:function(e,t){var n=Object(l.c)(t.to);Object(l.f)(n,Object(c.a)({},p,{key:n.key}))||s(p)},to:n})})))}var P={},D=0;function A(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,o=n.path,r=n.exact,i=void 0!==r&&r,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(o).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var o=function(e,t){var n=""+t.end+t.strict+t.sensitive,o=P[n]||(P[n]={});if(o[e])return o[e];var r=[],i={regexp:d()(e,r,t),keys:r};return D<1e4&&(o[e]=i,D++),i}(n,{end:i,strict:s,sensitive:u}),r=o.regexp,a=o.keys,l=r.exec(e);if(!l)return null;var c=l[0],p=l.slice(1),h=e===c;return i&&!h?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:h,params:a.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var N=function(e){function t(){return e.apply(this,arguments)||this}return Object(o.a)(t,e),t.prototype.render=function(){var e=this;return(i.a.createElement(b.Consumer,null,(function(t){t||Object(u.a)(!1);var n=e.props.location||t.location,o=e.props.computedMatch?e.props.computedMatch:e.props.path?A(n.pathname,e.props):t.match,r=Object(c.a)({},t,{location:n,match:o}),a=e.props,s=a.children,l=a.component,p=a.render;return Array.isArray(s)&&function(e){return 0===i.a.Children.count(e)}(s)&&(s=null),i.a.createElement(b.Provider,{value:r},r.match?s?"function"===typeof s?s(r):s:l?i.a.createElement(l,r):p?p(r):null:"function"===typeof s?s(r):null)})))},t}(i.a.Component);function I(e){return"/"===e.charAt(0)?e:"/"+e}function x(e,t){if(!e)return t;var n=I(e);return 0!==t.pathname.indexOf(n)?t:Object(c.a)({},t,{pathname:t.pathname.substr(n.length)})}function F(e){return"string"===typeof e?e:Object(l.e)(e)}function k(e){return function(){Object(u.a)(!1)}}function M(){}i.a.Component;var L=function(e){function t(){return e.apply(this,arguments)||this}return Object(o.a)(t,e),t.prototype.render=function(){var e=this;return(i.a.createElement(b.Consumer,null,(function(t){t||Object(u.a)(!1);var n,o,r=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==o&&i.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;o=a?A(r.pathname,Object(c.a)({},e.props,{path:a})):t.match}})),o?i.a.cloneElement(n,{location:r,computedMatch:o}):null})))},t}(i.a.Component);function G(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,o=Object(h.a)(t,["wrappedComponentRef"]);return(i.a.createElement(b.Consumer,null,(function(t){return t||Object(u.a)(!1),i.a.createElement(e,Object(c.a)({},o,t,{ref:n}))}
2)))};return n.displayName=t,n.WrappedComponent=e,g()(n,e)}i.a.useContext}).call(this,n(31))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o={};function r(){return o}},function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return o}))},function(e,t,n){t.AgGridReact=n(115).AgGridReact,t.AgGridColumn=n(84).AgGridColumn},function(e,t,n){(function(e){!function(t,n,o,r,i,a,s,l,u,c,p,d,h,f,g,y,v,m,C,w,b,E,_,O,R,S,T,P,D,A,N,I,x,F,k,M,L,G,W,V,H,j,B,U,z,Y,q,K,Q,X,$,J,Z,ee,te,ne,oe,re,ie,ae,se,le){"use strict";function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function de(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(){return(fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?Ce(e):t}function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=me(e);if(t){var r=me(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return we(this,n)}}function Ee(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function _e(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o,r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,i=i&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i,a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a,s=s&&Object.prototype.hasOwnProperty.call(s,"default")?
2s.default:s,l=l&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l,u=u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,c=c&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c,p=p&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p,d=d&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d,h=h&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h,f=f&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f,g=g&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g,y=y&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y,v=v&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v,m=m&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m,C=C&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C,w=w&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w,b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b,E=E&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E,_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,O=O&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O,R=R&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R,S=S&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S,T=T&&Object.prototype.hasOwnProperty.call(T,"default")?T.default:T,P=P&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P,D=D&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D,A=A&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A,N=N&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N,I=I&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I,x=x&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x,F=F&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F,k=k&&Object.prototype.hasOwnProperty.call(k,"default")?k.default:k,M=M&&Object.prototype.hasOwnProperty.call(M,"default")?M.default:M,L=L&&Object.prototype.hasOwnProperty.call(L,"default")?L.default:L,G=G&&Object.prototype.hasOwnProperty.call(G,"default")?G.default:G,W=W&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W,V=V&&Object.prototype.hasOwnProperty.call(V,"default")?V.default:V,H=H&&Object.prototype.hasOwnProperty.call(H,"default")?H.default:H,j=j&&Object.prototype.hasOwnProperty.call(j,"default")?j.default:j,B=B&&Object.prototype.hasOwnProperty.call(B,"default")?B.default:B,U=U&&Object.prototype.hasOwnProperty.call(U,"default")?U.default:U,z=z&&Object.prototype.hasOwnProperty.call(z,"default")?z.default:z,Y=Y&&Object.prototype.hasOwnProperty.call(Y,"default")?Y.default:Y,q=q&&Object.prototype.hasOwnProperty.call(q,"default")?q.default:q,K=K&&Object.prototype.hasOwnProperty.call(K,"default")?K.default:K,Q=Q&&Object.prototype.hasOwnProperty.call(Q,"default")?Q.default:Q,X=X&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X,$=$&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,J=J&&Object.prototype.hasOwnProperty.call(J,"default")?J.default:J,Z=Z&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z,ee=ee&&Object.prototype.hasOwnProperty.call(ee,"default")?ee.default:ee,te=te&&Object.prototype.hasOwnProperty.call(te,"default")?te.default:te,ne=ne&&Object.prototype.hasOwnProperty.call(ne,"default")?ne.default:ne,oe=oe&&Object.prototype.hasOwnProperty.call(oe,"default")?oe.default:oe,re=re&&Object.prototype.hasOwnProperty.call(re,"default")?re.default:re,ie=ie&&Object.prototype.hasOwnProperty.call(ie,"default")?ie.default:ie,ae=ae&&Object.prototype.hasOwnProperty.call(ae,"default")?ae.default:ae,se=se&&Object.prototype.hasOwnProperty.call(se,"default")?se.default:se;var Oe={p:_e,P:function(e,t){var n,o=e.match(/(P+)(p+)?/),r=o[1],i=o[2];if(!i)return Ee(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Ee(r,t)).replace("{{time}}",_e(i,t))}},Re=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Se(e){var t=e?"string"==typeof e||e instanceof String?ae(e):re(e):new Date;return Pe(t)?t:null}function Te(e,t,n,o){var r=null,i=Ue(n)||Be(),a=!0;return Array.isArray(t)?(t.forEach((function(t){var n=ie(e,t,new Date,{locale:i});o&&(a=Pe(n)&&e===s(n,t,{awareOfUnicodeTokens:!0})),Pe(n)&&a&&(r=n)})),r):(r=ie(e,t,new Date,{locale:i}),o?a=Pe(r)&&e===s(r,t,{awareOfUnicodeTokens:!0}):Pe(r)||(t=t.match(Re).map((function(e){var t=e[0];return"p"===t||"P"===t?i?(0,Oe[t])(e,i.formatLong):t:e})).join(""),e.length>0&&(r=ie(e,t.slice(0,e.length),new Date)),Pe(r)||(r=new Date(e))),Pe(r)&&a?r:null)}function Pe(e){return a(e)&&te(e,new Date("1/1/1000"))}function De(e,t,n){if("en"===n)return s(e,t,{awareOfUnicodeTokens:!0});var o=Ue(n);return n&&!o&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!o&&Be()&&Ue(Be())&&(o=Ue(Be())),s(e,t,{locale:o||null,awareOfUnicodeTokens:!0})}function Ae(e,t){var n=t.hour,o=void 0===n?0:n,r=t.minute,i=void 0===r?0:r,a=t.second;return I(N(A(e,void 0===a?0:a),i),o)}function Ne(e,t){var n=t&&Ue(t)||Be()&&Ue(Be());return R(e,n?{locale:n}:null)}function Ie(e,t){return De(e,"ddd",t)}function xe(e){return j(e)}function Fe(e,t){var n=Ue(t||Be());return B(e,{locale:n})}function ke(e){return U(e)}function Me(e){return z(e)}function Le(e,t){return e&&t?Z(e,t):!e&&!t}function Ge(e,t){return e&&t?J(e,t):!e&&!t}function We(e,t){return e&&t?ee(e,t):!e&&!t}function Ve(e,t){return e&&t?$(e,t):!e&&!t}function He(e,t){return e&&t?X(e,t):!e&&!t}function je(e,t,n){var o,r=j(t),i=q(n);try{o=oe(e,{start:r,end:i})}catch(e){o=!1}return o}function Be(){return("undefined"!=typeof window?window:e).__localeId__}function Ue(t){if("string"==typeof t){var n="undefined"!=typeof window?window:e;return n.__localeData__?n.__localeData__[t]:null}return t}function ze(e,t){return De(x(Se(),e),"LLLL",t)}function Ye(e,t){return De(x(Se(),e),"LLL",t)}function qe(e,t){return De(F(Se(),e),"QQQ",t)}function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate,r=t.excludeDates,i=t.includeDates,a=t.filterDate;return et(e,{minDate:n,maxDate:o})||r&&r.some((function(t){return Ve(e,t)}))||i&&!i.some((function(t){return Ve(e,t)}))||a&&!a(Se(e))||!1}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates;return n&&n.some((function(t){return Ve(e,t)}))||!1}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate,r=t.excludeDates,i=t.includeDates,a=t.filterDate;return et(e,{minDate:n,maxDate:o})||r&&r.some((function(t){return Ge(e,t)}))||i&&!i.some((function(t){return Ge(e,t)}))||a&&!a(Se(e))||!1}function $e(e,t,n,o){var r=P(e),i=S(e),a=P(t),s=S(t),l=P(o);return r===a&&r===l?i<=n&&n<=s:r<a?l===r&&i<=n||l===a&&s>=n||l<a&&l>r:void 0}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate,r=t.excludeDates,i=t.includeDates,a=t.filterDate;return et(e,{minDate:n,maxDate:o})||r&&r.some((function(t){return We(e,t)}))||i&&!i.some((function(t){return We(e,t)}))||a&&!a(Se(e))||!1}function Ze(e,t,n,o){var r=P(e),i=T(e),a=P(t),s=T(t),l=P(o);return r===a&&r===l?i<=n&&n<=s:r<a?l===r&&i<=n||l===a&&s>=n||l<a&&l>r:void 0}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate;return n&&G(e,n)<0||o&&G(e,o)>0}function tt(e,t){for(var n=t.length,o=0;o<n;o++)if(E(t[o])===E(e)&&b(t[o])===b(e))return!0;return!1}function nt(e,t){var n=t.minTime,o=t.maxTime;if(!n||!o)throw new Error("Both minTime and maxTime props required");var r,i=Se(),a=I(N(i,b(e)),E(e)),s=I(N(i,b(n)),E(n)),l=I(N(i,b(o)),E(o));try{r=!oe(a,{start:s,end:l})}catch(e){r=!1}return r}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.includeDates,r=m(e,1);return n&&W(n,r)>0||o&&o.every((function(e){return W(e,r)>0}))||!1}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,o=t.includeDates,r=d(e,1);return n&&W(r,n)>0||o&&o.every((function(e){return W(r,e)>0}))||!1}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.includeDates,r=C(e,1);return n&&H(n,r)>0||o&&o.every((function(e){return H(e,r)>0}))||!1}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,o=t.includeDates,r=h(e,1);return n&&H(r,n)>0||o&&o.every((function(e){return H(r,e)>0}))||!1}function st(e){var t=e.minDate,n=e.includeDates;if(n&&t){var o=n.filter((function(e){return G(e,t)>=0}));return M(o)}return n?M(n):t}function lt(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var o=n.filter((function(e){return G(e,t)<=0}));return L(o)}return n?L(n):t}function ut(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,o=0,r=e.length;o<r;o++){var a=e[o];if(i(a)){var s=De(a,"MM.dd.yyyy"),l=n.get(s)||[];l.includes(t)||(l.push(t),n.set(s,l))}else if("object"===ue(a)){var u=Object.keys(a),c=u[0],p=a[u[0]];if("string"==typeof c&&p.constructor===Array)for(var d=0,h=p.length;d<h;d++){var f=De(p[d],"MM.dd.yyyy"),g=n.get(f)||[];g.includes(c)||(g.push(c),n.set(f,g))}}}return n}function ct(e,t,n,o,r){for(var i=r.length,a=[],s=0;s<i;s++){var c=l(u(e,E(r[s])),b(r[s])),p=l(e,(n+1)*o);te(c,t)&&ne(c,p)&&a.push(r[s])}return a}function pt(e){return e<10?"0".concat(e):"".concat(e)}function dt(e,t,n,o){for(var r=[],i=0;i<2*t+1;i++){var a=e+t-i,s=!0;n&&(s=P(n)<=a),o&&s&&(s=P(o)>=a),s&&r.push(a)}return r}var ht=se(function(e){ve(o,e);var t=be(o);function o(e){var r;ce(this,o),he(Ce(r=t.call(this,e)),"renderOptions",(function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return n.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(Ce(r),t)},e===t?n.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),o=r.props.minDate?P(r.props.minDate):null,i=r.props.maxDate?P(r.props.maxDate):null;return i&&r.state.yearsList.find((function(e){return e===i}))||t.unshift(n.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},n.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),o&&r.state.yearsList.find((function(e){return e===o}
2))||t.push(n.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},n.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),he(Ce(r),"onChange",(function(e){r.props.onChange(e)})),he(Ce(r),"handleClickOutside",(function(){r.props.onCancel()})),he(Ce(r),"shiftYears",(function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})})),he(Ce(r),"incrementYears",(function(){return r.shiftYears(1)})),he(Ce(r),"decrementYears",(function(){return r.shiftYears(-1)}));var i=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,s=i||(a?10:5);return r.state={yearsList:dt(r.props.year,s,r.props.minDate,r.props.maxDate)},r}return de(o,[{key:"render",value:function(){var e=r({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return n.createElement("div",{className:e},this.renderOptions())}}]),o}(n.Component)),ft=function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return he(Ce(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),he(Ce(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?P(e.props.minDate):1900,o=e.props.maxDate?P(e.props.maxDate):2100,r=[],i=t;i<=o;i++)r.push(n.createElement("option",{key:i,value:i},i));return r})),he(Ce(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),he(Ce(e),"renderSelectMode",(function(){return n.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),he(Ce(e),"renderReadView",(function(t){return n.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},n.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),n.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),he(Ce(e),"renderDropdown",(function(){return n.createElement(ht,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),he(Ce(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),he(Ce(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),he(Ce(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),he(Ce(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),he(Ce(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),he(Ce(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return de(o,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return n.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),o}(n.Component),gt=se(function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return he(Ce(e=t.call.apply(t,[this].concat(i))),"renderOptions",(function(){return e.props.monthNames.map((function(t,o){return n.createElement("div",{className:e.props.month===o?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(Ce(e),o)},e.props.month===o?n.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",t)}))})),he(Ce(e),"onChange",(function(t){return e.props.onChange(t)})),he(Ce(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return de(o,[{key:"render",value:function(){return n.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),o}(n.Component)),yt=function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return he(Ce(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),he(Ce(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return n.createElement("option",{key:t,value:t},e)}))})),he(Ce(e),"renderSelectMode",(function(t){return n.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}}
2,e.renderSelectOptions(t))})),he(Ce(e),"renderReadView",(function(t,o){return n.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},n.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),n.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[e.props.month]))})),he(Ce(e),"renderDropdown",(function(t){return n.createElement(gt,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),he(Ce(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,o=[e.renderReadView(!n,t)];return n&&o.unshift(e.renderDropdown(t)),o})),he(Ce(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),he(Ce(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return de(o,[{key:"render",value:function(){var e,t=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return Ye(e,t.props.locale)}:function(e){return ze(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(o);break;case"select":e=this.renderSelectMode(o)}return n.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),o}(n.Component);function vt(e,t){for(var n=[],o=ke(e),r=ke(t);!te(o,r);)n.push(Se(o)),o=d(o,1);return n}var mt=se(function(e){ve(o,e);var t=be(o);function o(e){var r;return ce(this,o),he(Ce(r=t.call(this,e)),"renderOptions",(function(){return r.state.monthYearsList.map((function(e){var t=D(e),o=Le(r.props.date,e)&&Ge(r.props.date,e);return n.createElement("div",{className:o?"react-datepicker__month-year-option --selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(Ce(r),t)},o?n.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",De(e,r.props.dateFormat))}))})),he(Ce(r),"onChange",(function(e){return r.props.onChange(e)})),he(Ce(r),"handleClickOutside",(function(){r.props.onCancel()})),r.state={monthYearsList:vt(r.props.minDate,r.props.maxDate)},r}return de(o,[{key:"render",value:function(){var e=r({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return n.createElement("div",{className:e},this.renderOptions())}}]),o}(n.Component)),Ct=function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return he(Ce(e=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),he(Ce(e),"renderSelectOptions",(function(){for(var t=ke(e.props.minDate),o=ke(e.props.maxDate),r=[];!te(t,o);){var i=D(t);r.push(n.createElement("option",{key:i,value:i},De(t,e.props.dateFormat,e.props.locale))),t=d(t,1)}return r})),he(Ce(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),he(Ce(e),"renderSelectMode",(function(){return n.createElement("select",{value:D(ke(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),he(Ce(e),"renderReadView",(function(t){var o=De(e.props.date,e.props.dateFormat,e.props.locale);return n.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},n.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),n.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))})),he(Ce(e),"renderDropdown",(function(){return n.createElement(mt,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown})})),he(Ce(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),he(Ce(e),"onChange",(function(t){e.toggleDropdown();var n=Se(parseInt(t));Le(e.props.date,n)&&Ge(e.props.date,n)||e.props.onChange(n)})),he(Ce(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return de(o,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return n.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),o}(n.Component),wt=function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return he(Ce(e=t.call.apply(t,[this].concat(a))),"dayEl",n.createRef()),he(Ce(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),he(Ce(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),he(Ce(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),he(Ce(e),"isSameDay",(function(t){return Ve(e.props.day,t)})),he(Ce(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!e.props.inline&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)})),he(Ce(e),"isDisabled",(function(){return Ke(e.props.day,e.props)})),he(Ce(e),"isExcluded",(function(){return Qe(e.props.day,e.props)})),he(Ce(e),"getHighLightedClass",(function(t){var n=e.props,o=n.day,r=n.highlightDates;if(!r)return!1;var i=De(o,"MM.dd.yyyy");return r.get(i)})),he(Ce(e),"isInRange",(function(){var t=e.props,n=t.day,o=t.startDate,r=t.endDate;return!(!o||!r)&&je(n,o,r)})),he(Ce(e),"isInSelectingRange",(function(){var t=e.props,n=t.day,o=t.selectsStart,r=t.selectsEnd,i=t.selectingDate,a=t.startDate,
2s=t.endDate;return!(!o&&!r||!i||e.isDisabled())&&(o&&s&&(ne(i,s)||He(i,s))?je(n,i,s):!(!r||!a||!te(i,a)&&!He(i,a))&&je(n,a,i))})),he(Ce(e),"isSelectingRangeStart",(function(){if(!e.isInSelectingRange())return!1;var t=e.props,n=t.day,o=t.selectingDate,r=t.startDate;return Ve(n,t.selectsStart?o:r)})),he(Ce(e),"isSelectingRangeEnd",(function(){if(!e.isInSelectingRange())return!1;var t=e.props,n=t.day,o=t.selectingDate,r=t.endDate;return Ve(n,t.selectsEnd?o:r)})),he(Ce(e),"isRangeStart",(function(){var t=e.props,n=t.day,o=t.startDate,r=t.endDate;return!(!o||!r)&&Ve(o,n)})),he(Ce(e),"isRangeEnd",(function(){var t=e.props,n=t.day,o=t.startDate,r=t.endDate;return!(!o||!r)&&Ve(r,n)})),he(Ce(e),"isWeekend",(function(){var t=_(e.props.day);return 0===t||6===t})),he(Ce(e),"isOutsideMonth",(function(){return void 0!==e.props.month&&e.props.month!==S(e.props.day)})),he(Ce(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return r("react-datepicker__day",n,"react-datepicker__day--"+Ie(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSameDay(e.props.selected),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isSameDay(Se()),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isOutsideMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))})),he(Ce(e),"getAriaLabel",(function(){var t=e.props,n=t.day,o=t.ariaLabelPrefixWhenEnabled,r=void 0===o?"Choose":o,i=t.ariaLabelPrefixWhenDisabled,a=void 0===i?"Not available":i,s=e.isDisabled()||e.isExcluded()?a:r;return"".concat(s," ").concat(De(n,"PPPP"))})),he(Ce(e),"getTabIndex",(function(t,n){var o=t||e.props.selected,r=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(o)&&Ve(r,o)?0:-1})),he(Ce(e),"handleFocusDay",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus()})),he(Ce(e),"render",(function(){return n.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"button","aria-disabled":e.isDisabled()},e.props.renderDayContents?e.props.renderDayContents(O(e.props.day),e.props.day):O(e.props.day))})),e}return de(o,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),o}(n.Component),bt=function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return he(Ce(e=t.call.apply(t,[this].concat(r))),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),e}return de(o,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,o=e.ariaLabelPrefix,i=void 0===o?"week ":o,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return n.createElement("div",{className:r(a),"aria-label":"".concat(i," ").concat(this.props.weekNumber),onClick:this.handleClick},t)}}]),o}(n.Component),Et=function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return he(Ce(e=t.call.apply(t,[this].concat(i))),"handleDayClick",(function(t,n){e.props.onDayCl
2ick&&e.props.onDayClick(t,n)})),he(Ce(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),he(Ce(e),"handleWeekClick",(function(t,n,o){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,o),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),he(Ce(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):Ne(t,e.props.locale)})),he(Ce(e),"renderDays",(function(){var t=Fe(e.props.day,e.props.locale),o=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var i=e.props.onWeekSelect?e.handleWeekClick.bind(Ce(e),t,r):void 0;o.push(n.createElement(bt,{key:"W",weekNumber:r,onClick:i,ariaLabelPrefix:e.props.ariaLabelPrefix}))}return o.concat([0,1,2,3,4,5,6].map((function(o){var r=c(t,o);return n.createElement(wt,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(Ce(e),r),onMouseEnter:e.handleDayMouseEnter.bind(Ce(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,includeDates:e.props.includeDates,inline:e.props.inline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef})})))})),e}return de(o,[{key:"render",value:function(){return n.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),o}(n.Component),_t=function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return he(Ce(e=t.call.apply(t,[this].concat(a))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),he(Ce(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),he(Ce(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),he(Ce(e),"isRangeStartMonth",(function(t){var n=e.props,o=n.day,r=n.startDate,i=n.endDate;return!(!r||!i)&&Ge(x(o,t),r)})),he(Ce(e),"isRangeStartQuarter",(function(t){var n=e.props,o=n.day,r=n.startDate,i=n.endDate;return!(!r||!i)&&We(F(o,t),r)})),he(Ce(e),"isRangeEndMonth",(function(t){var n=e.props,o=n.day,r=n.startDate,i=n.endDate;return!(!r||!i)&&Ge(x(o,t),i)})),he(Ce(e),"isRangeEndQuarter",(function(t){var n=e.props,o=n.day,r=n.startDate,i=n.endDate;return!(!r||!i)&&We(F(o,t),i)})),he(Ce(e),"isWeekInMonth",(function(t){var n=e.props.day,o=c(t,6);return Ge(t,n)||Ge(o,n)})),he(Ce(e),"renderWeeks",(function(){for(var t=[],o=e.props.fixedHeight,r=Fe(ke(e.props.day),e.props.locale),i=0,a=!1;t.push(n.createElement(Et,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:i,day:r,month:S(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,includeDates:e.props.includeDates,inline:e.props.inline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,showWeekNumber:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef}
2)),!a;){i++,r=p(r,1);var s=o&&i>=6,l=!o&&!e.isWeekInMonth(r);if(s||l){if(!e.props.peekNextMonth)break;a=!0}}return t})),he(Ce(e),"onMonthClick",(function(t,n){e.handleDayClick(ke(x(e.props.day,n)),t)})),he(Ce(e),"onQuarterClick",(function(t,n){e.handleDayClick(Me(F(e.props.day,n)),t)})),he(Ce(e),"getMonthClassNames",(function(t){var n=e.props,o=n.day,i=n.startDate,a=n.endDate,s=n.selected,l=n.minDate,u=n.maxDate;return r("react-datepicker__month-text","react-datepicker__month-".concat(t),{"react-datepicker__month--disabled":(l||u)&&Xe(x(o,t),e.props),"react-datepicker__month--selected":S(o)===t&&P(o)===P(s),"react-datepicker__month--in-range":$e(i,a,t,o),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t)})})),he(Ce(e),"getQuarterClassNames",(function(t){var n=e.props,o=n.day,i=n.startDate,a=n.endDate,s=n.selected,l=n.minDate,u=n.maxDate;return r("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(l||u)&&Je(F(o,t),e.props),"react-datepicker__quarter--selected":T(o)===t&&P(o)===P(s),"react-datepicker__quarter--in-range":Ze(i,a,t,o),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})})),he(Ce(e),"renderMonths",(function(){var t=e.props,o=t.showFullMonthYearPicker,r=t.locale;return[[0,1,2],[3,4,5],[6,7,8],[9,10,11]].map((function(t,i){return n.createElement("div",{className:"react-datepicker__month-wrapper",key:i},t.map((function(t,i){return n.createElement("div",{key:i,onClick:function(n){e.onMonthClick(n,t)},className:e.getMonthClassNames(t)},o?ze(t,r):Ye(t,r))})))}))})),he(Ce(e),"renderQuarters",(function(){return n.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,o){return n.createElement("div",{key:o,onClick:function(n){e.onQuarterClick(n,t)},className:e.getQuarterClassNames(t)},qe(t,e.props.locale))})))})),he(Ce(e),"getClassNames",(function(){var t=e.props,n=t.selectingDate,o=t.selectsStart,i=t.selectsEnd,a=t.showMonthYearPicker,s=t.showQuarterYearPicker;return r("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(o||i)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":s})})),e}return de(o,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,o=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,a=void 0===i?"month ":i;return n.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(a," ").concat(De(r,"yyyy-MM"))},t?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),o}(n.Component),Ot=function(e){ve(o,e);var t=be(o);function o(){var e;ce(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return he(Ce(e=t.call.apply(t,[this].concat(i))),"state",{height:null}),he(Ce(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&nt(t,e.props)||e.props.excludeTimes&&tt(t,e.props.excludeTimes)||e.props.includeTimes&&!tt(t,e.props.includeTimes)||e.props.onChange(t)})),he(Ce(e),"liClasses",(function(t,n,o){var r=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,o):void 0];return e.props.selected&&n===E(t)&&o===b(t)&&r.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&nt(t,e.props)||e.props.excludeTimes&&tt(t,e.props.excludeTimes)||e.props.includeTimes&&!tt(t,e.props.includeTimes))&&r.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*E(t)+b(t))%e.props.intervals!=0&&r.push("react-datepicker__time-list-item--injected"),r.join(" ")})),he(Ce(e),"renderTimes",(function(){for(var t=[],o=e.props.format?e.props.format:"p",r=e.props.intervals,i=e.props.selected||e.props.openToDate||Se(),a=E(i),s=b(i),u=xe(Se()),c=1440/r,p=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),d=0;d<c;d++){var h=l(u,d*r);if(t.push(h),p){var f=ct(u,h,d,r,p);t=t.concat(f)}}return t.map((function(t,r){return n.createElement("li",{key:r,onClick:e.handleClick.bind(Ce(e),t),className:e.liClasses(t,a,s),ref:function(n){a===E(t)&&s>=b(t)&&(e.centerLi=n)}},De(t,o,e.props.locale))}))})),e}
2return de(o,[{key:"componentDidMount",value:function(){this.list.scrollTop=o.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return n.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},n.createElement("div",{className:"react-datepicker__header react-datepicker__header--time",ref:function(t){e.header=t}},n.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),n.createElement("div",{className:"react-datepicker__time"},n.createElement("div",{className:"react-datepicker__time-box"},n.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{}},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),o}(n.Component);he(Ot,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var Rt=function(e){ve(o,e);var t=be(o);function o(e){var n;return ce(this,o),he(Ce(n=t.call(this,e)),"handleYearClick",(function(e,t){n.props.onDayClick&&n.props.onDayClick(e,t)})),he(Ce(n),"onYearClick",(function(e,t){var o;n.handleYearClick((o=k(n.props.date,t),Y(o)),e)})),n}return de(o,[{key:"render",value:function(){for(var e=this,t=[],o=this.props.date,r=function(o,r){t.push(n.createElement("div",{onClick:function(t){e.onYearClick(t,o)},className:"react-datepicker__year-container-text",key:o},o))},i=P(o)-11,a=0;i<=P(o);i++,a++)r(i);return n.createElement("div",{className:"react-datepicker__year-container"},t)}}]),o}(n.Component),St=function(e){ve(o,e);var t=be(o);function o(e){var r;return ce(this,o),he(Ce(r=t.call(this,e)),"onTimeChange",(function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)})),he(Ce(r),"renderTimeInput",(function(){var e=r.state.time,t=r.props,o=t.timeString,i=t.customTimeInput;return i?n.cloneElement(i,{value:e,onChange:r.onTimeChange}):n.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||o)}})})),r.state={time:r.props.timeString},r}return de(o,[{key:"render",value:function(){return n.createElement("div",{className:"react-datepicker__input-time-container"},n.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),n.createElement("div",{className:"react-datepicker-time__input-container"},n.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}]),o}(n.Component);function Tt(e){var t=e.className,o=e.children,r=e.showPopperArrow,i=e.arrowProps,a=void 0===i?{}:i;return n.createElement("div",{className:t},r&&n.createElement("div",fe({className:"react-datepicker__triangle"},a)),o)}var Pt=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Dt=function(e){ve(o,e);var t=be(o);function o(e){var i;return ce(this,o),he(Ce(i=t.call(this,e)),"handleClickOutside",(function(e){i.props.onClickOutside(e)})),he(Ce(i),"setClickOutsideRef",(function(){return i.containerRef.current})),he(Ce(i),"handleDropdownFocus",(function(e){(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.className||"").split(/\s+/);return Pt.some((function(e){return t.indexOf(e)>=0}))})(e.target)&&i.props.onDropdownFocus()})),he(Ce(i),"getDateInView",(function(){var e=i.props,t=e.preSelection,n=e.selected,o=e.openToDate,r=st(i.props),a=lt(i.props),s=Se();return o||n||t||(r&&ne(s,r)?r:a&&te(s,a)?a:s)})),he(Ce(i),"increaseMonth",(function(){i.setState((function(e){var t=e.date;return{date:d(t,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),he(Ce(i),"decreaseMonth",(function(){i.setState((function(e){var t=e.date;return{date:m(t,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),he(Ce(i),"handleDayClick",(function(e,t,n){return i.props.onSelect(e,t,n)})),he(Ce(i),"handleDayMouseEnter",(function(e){i.setState({selectingDate:e}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(e)})),he(Ce(i),"handleMonthMouseLeave",(function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()})),he(Ce(i),"handleYearChange",(function(e){i.props.onYearChange&&i.props.onYearChange(e)}
2)),he(Ce(i),"handleMonthChange",(function(e){i.props.onMonthChange&&i.props.onMonthChange(e),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(e),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(e)})),he(Ce(i),"handleMonthYearChange",(function(e){i.handleYearChange(e),i.handleMonthChange(e)})),he(Ce(i),"changeYear",(function(e){i.setState((function(t){var n=t.date;return{date:k(n,e)}}),(function(){return i.handleYearChange(i.state.date)}))})),he(Ce(i),"changeMonth",(function(e){i.setState((function(t){var n=t.date;return{date:x(n,e)}}),(function(){return i.handleMonthChange(i.state.date)}))})),he(Ce(i),"changeMonthYear",(function(e){i.setState((function(t){var n=t.date;return{date:k(x(n,S(e)),P(e))}}),(function(){return i.handleMonthYearChange(i.state.date)}))})),he(Ce(i),"header",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.date,t=Fe(e,i.props.locale),o=[];return i.props.showWeekNumbers&&o.push(n.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),o.concat([0,1,2,3,4,5,6].map((function(e){var o=c(t,e),a=i.formatWeekday(o,i.props.locale),s=i.props.weekDayClassName?i.props.weekDayClassName(o):void 0;return n.createElement("div",{key:e,className:r("react-datepicker__day-name",s)},a)})))})),he(Ce(i),"formatWeekday",(function(e,t){return i.props.formatWeekDay?function(e,t,n){return t(De(e,"EEEE",n))}(e,i.props.formatWeekDay,t):i.props.useWeekdaysShort?function(e,t){return De(e,"EEE",t)}(e,t):function(e,t){return De(e,"EEEEEE",t)}(e,t)})),he(Ce(i),"decreaseYear",(function(){i.setState((function(e){var t=e.date;return{date:C(t,i.props.showYearPicker?11:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),he(Ce(i),"renderPreviousButton",(function(){if(!i.props.renderCustomHeader){var e=i.props.showMonthYearPicker?it(i.state.date,i.props):ot(i.state.date,i.props);if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!e)&&!i.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],o=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(o=i.decreaseYear),e&&i.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),o=null);var r=i.props.showMonthYearPicker||i.props.showQuarterYearPicker,a=i.props,s=a.previousMonthAriaLabel,l=void 0===s?"Previous Month":s,u=a.previousYearAriaLabel,c=void 0===u?"Previous Year":u;return n.createElement("button",{type:"button",className:t.join(" "),onClick:o,"aria-label":r?c:l},r?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel)}}})),he(Ce(i),"increaseYear",(function(){i.setState((function(e){var t=e.date;return{date:h(t,i.props.showYearPicker?11:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),he(Ce(i),"renderNextButton",(function(){if(!i.props.renderCustomHeader){var e=i.props.showMonthYearPicker?at(i.state.date,i.props):rt(i.state.date,i.props);if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!e)&&!i.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var o=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(o=i.increaseYear),e&&i.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),o=null);var r=i.props.showMonthYearPicker||i.props.showQuarterYearPicker,a=i.props,s=a.nextMonthAriaLabel,l=void 0===s?"Next Month":s,u=a.nextYearAriaLabel,c=void 0===u?"Next Year":u;return n.createElement("button",{type:"button",className:t.join(" "),onClick:o,"aria-label":r?c:l},r?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel)}}})),he(Ce(i),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.date,t=["react-datepicker__current-month"];return i.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),n.createElement("div",{className:t.join(" ")},De(e,i.props.dateFormat,i.props.locale))})),he(Ce(i),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showYearDropdown&&!e)return n.createElement(ft,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:P(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})})),he(Ce(i),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showMonthDropdown&&!e)return n.createElement(yt,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:S(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})})),he(Ce(i),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(i.props.showMonthYearDropdown&&!e)return n.createElement(Ct,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,
2scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})})),he(Ce(i),"renderTodayButton",(function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return n.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return i.props.onSelect(j(Se()),e)}},i.props.todayButton)})),he(Ce(i),"renderDefaultHeader",(function(e){var t=e.monthDate,o=e.i;return n.createElement("div",{className:"react-datepicker__header"},i.renderCurrentMonth(t),n.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(0!==o),i.renderMonthYearDropdown(0!==o),i.renderYearDropdown(0!==o)),n.createElement("div",{className:"react-datepicker__day-names"},i.header(t)))})),he(Ce(i),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,o=e.i;if(0!==o&&void 0!==o)return null;var r=ot(i.state.date,i.props),a=rt(i.state.date,i.props),s=it(i.state.date,i.props),l=at(i.state.date,i.props),u=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return n.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(ye(ye({},i.state),{},{changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:r,nextMonthButtonDisabled:a,prevYearButtonDisabled:s,nextYearButtonDisabled:l})),u&&n.createElement("div",{className:"react-datepicker__day-names"},i.header(t)))})),he(Ce(i),"renderYearHeader",(function(){return n.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},i.props.showYearPicker?"".concat(P(i.state.date)-11," - ").concat(P(i.state.date)):P(i.state.date))})),he(Ce(i),"renderHeader",(function(e){switch(!0){case void 0!==i.props.renderCustomHeader:return i.renderCustomHeader(e);case i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker:return i.renderYearHeader(e);default:return i.renderDefaultHeader(e)}})),he(Ce(i),"renderMonths",(function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var e=[],t=i.props.showPreviousMonths?i.props.monthsShown-1:0,o=m(i.state.date,t),r=0;r<i.props.monthsShown;++r){var a=r-i.props.monthSelectedIn,s=d(o,a),l="month-".concat(r);e.push(n.createElement("div",{key:l,ref:function(e){i.monthContainer=e},className:"react-datepicker__month-container"},i.renderHeader({monthDate:s,i:r}),n.createElement(_t,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,onChange:i.changeMonthYear,day:s,dayClassName:i.props.dayClassName,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:r,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,inline:i.props.inline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef})))}return e}})),he(Ce(i),"renderYears",(function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?n.createElement("div",{className:"react-datepicker__year"}
2,i.renderHeader(),n.createElement(Rt,{onDayClick:i.handleDayClick,date:i.state.date})):void 0})),he(Ce(i),"renderTimeSection",(function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return n.createElement(Ot,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale})})),he(Ce(i),"renderInputTimeSection",(function(){var e=new Date(i.props.selected),t="".concat(pt(e.getHours()),":").concat(pt(e.getMinutes()));if(i.props.showTimeInput)return n.createElement(St,{timeString:t,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})})),i.containerRef=n.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null},i}return de(o,null,[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null}}}]),de(o,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){this.props.preSelection&&!Ve(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Ve(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var e=this.props.container||Tt;return n.createElement("div",{ref:this.containerRef},n.createElement(e,{className:r("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}]),o}(n.Component),At=function(e){return!e.disabled&&-1!==e.tabIndex},Nt=function(e){ve(o,e);var t=be(o);function o(e){var r;return ce(this,o),he(Ce(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(At)})),he(Ce(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),he(Ce(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=n.createRef(),r}return de(o,null,[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),de(o,[{key:"render",value:function(){return this.props.enableTabLoop?n.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},n.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,n.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}]),o}(n.Component),It=function(e){ve(o,e);var t=be(o);function o(){return ce(this,o),t.apply(this,arguments)}return de(o,[{key:"render",value:function(){var e,t=this.props,o=t.className,i=t.wrapperClassName,a=t.hidePopper,s=t.popperComponent,l=t.popperModifiers,u=t.popperPlacement,c=t.popperProps,p=t.targetComponent,d=t.enableTabLoop,h=t.popperOnKeyDown;if(!a){var f=r("react-datepicker-popper",o);e=n.createElement(le.Popper,fe({modifiers:l,placement:u},c),(function(e){var t=e.ref,o=e.style,r=e.placement,i=e.arrowProps;return n.createElement(Nt,{enableTabLoop:d},n.createElement("div",fe({ref:t,style:o}
2,{className:f,"data-placement":r,onKeyDown:h}),n.cloneElement(s,{arrowProps:i})))}))}this.props.popperContainer&&(e=n.createElement(this.props.popperContainer,{},e));var g=r("react-datepicker-wrapper",i);return n.createElement(le.Manager,{className:"react-datepicker-manager"},n.createElement(le.Reference,null,(function(e){var t=e.ref;return n.createElement("div",{ref:t,className:g},p)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:{preventOverflow:{enabled:!0,escapeWithReference:!0,boundariesElement:"viewport"}},popperProps:{},popperPlacement:"bottom-start"}}}]),o}(n.Component),xt=se(Dt),Ft=function(e){ve(o,e);var t=be(o);function o(e){var a;return ce(this,o),he(Ce(a=t.call(this,e)),"getPreSelection",(function(){return a.props.openToDate?a.props.openToDate:a.props.selectsEnd&&a.props.startDate?a.props.startDate:a.props.selectsStart&&a.props.endDate?a.props.endDate:Se()})),he(Ce(a),"calcInitialState",(function(){var e=a.getPreSelection(),t=st(a.props),n=lt(a.props),o=t&&ne(e,t)?t:n&&te(e,n)?n:e;return{open:a.props.startOpen||!1,preventFocus:!1,preSelection:a.props.selected?a.props.selected:o,highlightDates:ut(a.props.highlightDates),focused:!1}})),he(Ce(a),"clearPreventFocusTimeout",(function(){a.preventFocusTimeout&&clearTimeout(a.preventFocusTimeout)})),he(Ce(a),"setFocus",(function(){a.input&&a.input.focus&&a.input.focus()})),he(Ce(a),"setBlur",(function(){a.input&&a.input.blur&&a.input.blur(),a.cancelFocusInput()})),he(Ce(a),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.setState({open:e,preSelection:e&&a.state.open?a.state.preSelection:a.calcInitialState().preSelection,lastPreSelectChange:Mt},(function(){e||a.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&a.setBlur(),a.setState({inputValue:null})}))}))})),he(Ce(a),"inputOk",(function(){return i(a.state.preSelection)})),he(Ce(a),"isCalendarOpen",(function(){return void 0===a.props.open?a.state.open&&!a.props.disabled&&!a.props.readOnly:a.props.open})),he(Ce(a),"handleFocus",(function(e){a.state.preventFocus||(a.props.onFocus(e),a.props.preventOpenOnFocus||a.props.readOnly||a.setOpen(!0)),a.setState({focused:!0})})),he(Ce(a),"cancelFocusInput",(function(){clearTimeout(a.inputFocusTimeout),a.inputFocusTimeout=null})),he(Ce(a),"deferFocusInput",(function(){a.cancelFocusInput(),a.inputFocusTimeout=setTimeout((function(){return a.setFocus()}),1)})),he(Ce(a),"handleDropdownFocus",(function(){a.cancelFocusInput()})),he(Ce(a),"handleBlur",(function(e){(!a.state.open||a.props.withPortal||a.props.showTimeInput)&&a.props.onBlur(e),a.setState({focused:!1})})),he(Ce(a),"handleCalendarClickOutside",(function(e){a.props.inline||a.setOpen(!1),a.props.onClickOutside(e),a.props.withPortal&&e.preventDefault()})),he(Ce(a),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if(!a.props.onChangeRaw||(a.props.onChangeRaw.apply(Ce(a),t),"function"==typeof o.isDefaultPrevented&&!o.isDefaultPrevented())){a.setState({inputValue:o.target.value,lastPreSelectChange:kt});var r=Te(o.target.value,a.props.dateFormat,a.props.locale,a.props.strictParsing);!r&&o.target.value||a.setSelected(r,o,!0)}})),he(Ce(a),"handleSelect",(function(e,t,n){a.setState({preventFocus:!0},(function(){return a.preventFocusTimeout=setTimeout((function(){return a.setState({preventFocus:!1})}),50),a.preventFocusTimeout})),a.setSelected(e,t,!1,n),!a.props.shouldCloseOnSelect||a.props.showTimeSelect?a.setPreSelection(e):a.props.inline||a.setOpen(!1)})),he(Ce(a),"setSelected",(function(e,t,n,o){var r=e;null!==r&&Ke(r,a.props)||(He(a.props.selected,r)&&!a.props.allowSameDay||(null!==r&&(!a.props.selected||n&&(a.props.showTimeSelect||a.props.showTimeSelectOnly||a.props.showTimeInput)||(r=Ae(r,{hour:E(a.props.selected),minute:b(a.props.selected),second:w(a.props.selected)})),a.props.inline||a.setState({preSelection:r}),a.props.inline&&a.props.monthsShown>1&&!a.props.inlineFocusSelectedMonth&&a.setState({monthSelectedIn:o})),a.props.onChange(r,t)),a.props.onSelect(r,t),n||a.setState({inputValue:null}))})),he(Ce(a),"setPreSelection",(function(e){var t=void 0!==a.props.minDate,n=void 0!==a.props.maxDate,o=!0;e&&(t&&n?o=je(e,a.props.minDate,a.props.maxDate):t?o=te(e,a.props.minDate):n&&(o=ne(e,a.props.maxDate))),o&&a.setState({preSelection:e})})),he(Ce(a),"handleTimeChange",(function(e){var t=Ae(a.props.selected?a.props.selected:a.getPreSelection(),{hour:E(e),minute:b(e)});a.setState({preSelection:t}),a.props.onChange(t),a.props.shouldCloseOnSelect&&a.setOpen(!1),a.props.showTimeInput&&a.setOpen(!0),a.setState({inputValue:null})})),he(Ce(a),"onInputClick",(function(){a.props.disabled||a.props.readOnly||a.setOpen(!0),a.props.onInputClick()})),he(Ce(a),"onInputKeyDown",(function(e){a.props.onKeyDown(e);var t=e.key;if(a.state.open||a.props.inline||a.props.preventOpenOnFocus){if(a.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=a.calendar.componentNode&&a.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus())}var o=Se(a.state.preSelection);"Enter"===t?(e.preventDefault(),a.inputOk()&&a.state.lastPreSelectChange===Mt?(a.handleSelect(o,e),!a.props.shouldCloseOnSelect&&a.setPreSelection(o)):a.setOpen(!1)):"Escape"===t&&(e.preventDefault(),a.setOpen(!1)),a.inputOk()||a.props.onInputError({code:1,msg:"Date input not valid."})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||a.onInputClick()})),he(Ce(a),"onDayKeyDown",(function(e){a.props.onKeyDown(e);var t=e.key,n=Se(a.state.preSelection);if("Enter"===t)e.preventDefault(),a.handleSelect(n,e),!a.props.shouldCloseOnSelect&&a.setPreSelection(n);else if("Escape"===t)e.preventDefault(),a.setOpen(!1),a.inputOk()||a.props.onInputError({code:1,msg:"Date input not valid."});else if(!a.props.disabledKeyboardNavigation){var o;switch(t){case"ArrowLeft":o=y(n,1);break;case"ArrowRight":o=c(n,1);break;case"ArrowUp":o=v(n,1);break;case"ArrowDown":o=p(n,1);break;case"PageUp":o=m(n,1);break;case"PageDown":o=d(n,1);break;case"Home":o=C(n,1);break;case"End":o=h(n,1)}if(!o)return void(a.props.onInputError&&a.props.onInputError({code:1,msg:"Date input not valid."}));e.preventDefault(),a.setState({lastPreSelectChange:Mt}),a.props.adjustDateOnChange&&a.setSelected(o),a.setPreSelection(o)}})),he(Ce(a),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),a.setState({preventFocus:!0},(function(){a.setOpen(!1),setTimeout((function(){a.setFocus(),a.setState({preventFocus:!1})}))})))})),he(Ce(a),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),a.props.onChange(null,e),a.setState({inputValue:null})})),he(Ce(a),"clear",(function(){a.onClearClick()})),he(Ce(a),"renderCalendar",(function(){return a.props.inline||a.isCalendarOpen()?n.createElement(xt,{ref:function(e){a.calendar=e},locale:a.props.locale,chooseDayAriaLabelPrefix:a.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:a.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:a.props.weekAriaLabelPrefix,adju
2stDateOnChange:a.props.adjustDateOnChange,setOpen:a.setOpen,shouldCloseOnSelect:a.props.shouldCloseOnSelect,dateFormat:a.props.dateFormatCalendar,useWeekdaysShort:a.props.useWeekdaysShort,formatWeekDay:a.props.formatWeekDay,dropdownMode:a.props.dropdownMode,selected:a.props.selected,preSelection:a.state.preSelection,onSelect:a.handleSelect,onWeekSelect:a.props.onWeekSelect,openToDate:a.props.openToDate,minDate:a.props.minDate,maxDate:a.props.maxDate,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,startDate:a.props.startDate,endDate:a.props.endDate,excludeDates:a.props.excludeDates,filterDate:a.props.filterDate,onClickOutside:a.handleCalendarClickOutside,formatWeekNumber:a.props.formatWeekNumber,highlightDates:a.state.highlightDates,includeDates:a.props.includeDates,includeTimes:a.props.includeTimes,injectTimes:a.props.injectTimes,inline:a.props.inline,peekNextMonth:a.props.peekNextMonth,showMonthDropdown:a.props.showMonthDropdown,showPreviousMonths:a.props.showPreviousMonths,useShortMonthInDropdown:a.props.useShortMonthInDropdown,showMonthYearDropdown:a.props.showMonthYearDropdown,showWeekNumbers:a.props.showWeekNumbers,showYearDropdown:a.props.showYearDropdown,withPortal:a.props.withPortal,forceShowMonthNavigation:a.props.forceShowMonthNavigation,showDisabledMonthNavigation:a.props.showDisabledMonthNavigation,scrollableYearDropdown:a.props.scrollableYearDropdown,scrollableMonthYearDropdown:a.props.scrollableMonthYearDropdown,todayButton:a.props.todayButton,weekLabel:a.props.weekLabel,outsideClickIgnoreClass:"react-datepicker-ignore-onclickoutside",fixedHeight:a.props.fixedHeight,monthsShown:a.props.monthsShown,monthSelectedIn:a.state.monthSelectedIn,onDropdownFocus:a.handleDropdownFocus,onMonthChange:a.props.onMonthChange,onYearChange:a.props.onYearChange,dayClassName:a.props.dayClassName,weekDayClassName:a.props.weekDayClassName,monthClassName:a.props.monthClassName,timeClassName:a.props.timeClassName,showTimeSelect:a.props.showTimeSelect,showTimeSelectOnly:a.props.showTimeSelectOnly,onTimeChange:a.handleTimeChange,timeFormat:a.props.timeFormat,timeIntervals:a.props.timeIntervals,minTime:a.props.minTime,maxTime:a.props.maxTime,excludeTimes:a.props.excludeTimes,timeCaption:a.props.timeCaption,className:a.props.calendarClassName,container:a.props.calendarContainer,yearDropdownItemNumber:a.props.yearDropdownItemNumber,previousMonthButtonLabel:a.props.previousMonthButtonLabel,nextMonthButtonLabel:a.props.nextMonthButtonLabel,previousYearButtonLabel:a.props.previousYearButtonLabel,nextYearButtonLabel:a.props.nextYearButtonLabel,timeInputLabel:a.props.timeInputLabel,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,renderCustomHeader:a.props.renderCustomHeader,popperProps:a.props.popperProps,renderDayContents:a.props.renderDayContents,onDayMouseEnter:a.props.onDayMouseEnter,onMonthMouseLeave:a.props.onMonthMouseLeave,showTimeInput:a.props.showTimeInput,showMonthYearPicker:a.props.showMonthYearPicker,showFullMonthYearPicker:a.props.showFullMonthYearPicker,showYearPicker:a.props.showYearPicker,showQuarterYearPicker:a.props.showQuarterYearPicker,showPopperArrow:a.props.showPopperArrow,excludeScrollbar:a.props.excludeScrollbar,handleOnKeyDown:a.onDayKeyDown,isInputFocused:a.state.focused,customTimeInput:a.props.customTimeInput,setPreSelection:a.setPreSelection},a.props.children):null})),he(Ce(a),"renderDateInput",(function(){var e,t,o,i,s,l=r(a.props.className,he({},"react-datepicker-ignore-onclickoutside",a.state.open)),u=a.props.customInput||n.createElement("input",{type:"text"}),c=a.props.customInputRef||"ref",p="string"==typeof a.props.value?a.props.value:"string"==typeof a.state.inputValue?a.state.inputValue:(t=a.props.selected,i=(o=a.props).dateFormat,s=o.locale,t&&De(t,Array.isArray(i)?i[0]:i,s)||"");return n.cloneElement(u,(he(e={},c,(function(e){a.input=e})),he(e,"value",p),he(e,"onBlur",a.handleBlur),he(e,"onChange",a.handleChange),he(e,"onClick",a.onInputClick),he(e,"onFocus",a.handleFocus),he(e,"onKeyDown",a.onInputKeyDown),he(e,"id",a.props.id),he(e,"name",a.props.name),he(e,"autoFocus",a.props.autoFocus),he(e,"placeholder",a.props.placeholderText),he(e,"disabled",a.props.disabled),he(e,"autoComplete",a.props.autoComplete),he(e,"className",r(u.props.className,l)),he(e,"t
2itle",a.props.title),he(e,"readOnly",a.props.readOnly),he(e,"required",a.props.required),he(e,"tabIndex",a.props.tabIndex),he(e,"aria-labelledby",a.props.ariaLabelledBy),e))})),he(Ce(a),"renderClearButton",(function(){var e=a.props,t=e.isClearable,o=e.selected,r=e.clearButtonTitle,i=e.ariaLabelClose,s=void 0===i?"Close":i;return t&&null!=o?n.createElement("button",{type:"button",className:"react-datepicker__close-icon","aria-label":s,onClick:a.onClearClick,title:r,tabIndex:-1}):null})),a.state=a.calcInitialState(),a}return de(o,null,[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,renderDayContents:function(e){return e},inlineFocusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null}}}]),de(o,[{key:"componentDidUpdate",value:function(e,t){var n,o;e.inline&&(n=e.selected,o=this.props.selected,n&&o?S(n)!==S(o)||P(n)!==P(o):n!==o)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:ut(this.props.highlightDates)}),t.focused||He(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout()}},{key:"render",value:function(){var e=this.renderCalendar();return this.props.inline&&!this.props.withPortal?e:this.props.withPortal?n.createElement("div",null,this.props.inline?null:n.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),this.state.open||this.props.inline?n.createElement("div",{className:"react-datepicker__portal"},e):null):n.createElement(It,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),popperModifiers:this.props.popperModifiers,targetComponent:n.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}]),o}(n.Component),kt="input",Mt="navigate";t.CalendarContainer=Tt,t.default=Ft,t.getDefaultLocale=Be,t.registerLocale=function(t,n){var o="undefined"!=typeof window?window:e;o.__localeData__||(o.__localeData__={}),o.__localeData__[t]=n},t.setDefaultLocale=function(t){("undefined"!=typeof window?window:e).__localeId__=t},Object.defineProperty(t,"__esModule",{value:!0})}(t,n(0),n(37),n(123),n(69),n(68),n(189),n(70),n(71),n(46),n(72),n(47),n(73),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(191),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(75),n(142),n(143),n(144),n(145),n(146),n(65),n(147),n(148),n(39),n(28),n(149),n(55),n(150),n(66),n(151),n(67),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(8),n(188),n(160),n(161),n(190))}).call(this,n(31))},function(e,t,n){"use strict";var o=n(18);function r(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,o=n+1,r=e.length;o<r;n+=1,o+=1)e[n]=e[o];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,o=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&r(e),l=t&&r(t),u=s||l;if(e&&r(e)?a=o:o.length&&(a.pop(),a=a.concat(o)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var p=0,d=a.length;d>=0;d--){var h=a[d];"."===h?i(a,d):".."===h?(i(a,d),p++):p&&(i(a,d),p--)}if(!u)for(;p--;p)a.unshift("..");!u||""===a[0]||a[0]&&r(a[0])||a.unshift("");var f=a.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;
vendor: 10,596 bytes, line 2
2if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,o){return e(t,n[o])}));if("object"===typeof t||"object"===typeof n){var o=s(t),r=s(n);return o!==t||r!==n?e(o,r):Object.keys(Object.assign({},t,n)).every((function(o){return e(t[o],n[o])}))}return!1},u=n(23);function c(e){return"/"===e.charAt(0)?e:"/"+e}function p(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e.pathname,n=e.search,o=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function g(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",o="",r=t.indexOf("#");-1!==r&&(o=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e)).state=t:(void 0===(i=Object(o.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof o?o(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var n=!0;function o(){n&&e.apply(void 0,arguments)}return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t.forEach((function(e){return e.apply(void 0,n)}))}}}n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return P})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return f}));var m=!("undefined"===typeof window||!window.document||!window.document.createElement);function C(e,t){t(window.confirm(e))}function w(){try{return window.history.state||{}}catch(e){return{}}}function b(e){void 0===e&&(e={}),m||Object(u.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,p=void 0===l?C:l,y=i.keyLength,b=void 0===y?6:y,E=e.basename?h(c(e.basename)):"";function _(e){var t=e||{},n=t.key,o=t.state,r=window.location,i=r.pathname+r.search+r.hash;return E&&(i=d(i,E)),g(i,o,n)}function O(){return Math.random().toString(36).substr(2,b)}var R=v();function S(e){Object(o.a)(G,e),G.length=t.length,R.notifyListeners(G.location,G.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||A(_(e.state))}function P(){A(_(w()))}var D=!1;function A(e){if(D)D=!1,S();else{R.confirmTransitionTo(e,"POP",p,(function(t){t?S({action:"POP",location:e}):function(e){var t=G.location,n=I.indexOf(t.key);-1===n&&(n=0);var o=I.indexOf(e.key);-1===o&&(o=0);var r=n-o;r&&(D=!0,F(r))}(e)}))}}var N=_(w()),I=[N.key];function x(e){return E+f(e)}function F(e){t.go(e)}var k=0;function M(e){1===(k+=e)&&1===e?(window.addEventListener("popstate",T),r&&window.addEventListener("hashchange",P)):0===k&&(window.removeEventListener("popstate",T),r&&window.removeEventListener("hashchange",P))}var L=!1;var G={length:t.length,action:"POP",location:N,createHref:x,push:function(e,o){var r=g(e,o,O(),G.location);R.confirmTransitionTo(r,"PUSH",p,(function(e){if(e){var o=x(r),i=r.key,a=r.state;if(n)if(t.pushState({key:i,state:a},null,o),s)window.location.href=o;else{var l=I.indexOf(G.location.key),u=I.slice(0,l+1);u.push(r.key),I=u,S({action:"PUSH",location:r})}else window.location.href=o}}))},replace:function(e,o){var r=g(e,o,O(),G.location);R.confirmTransitionTo(r,"REPLACE",p,(function(e){if(e){var o=x(r),i=r.key,a=r.state;if(n)if(t.replaceState({key:i,state:a},null,o),s)window.location.replace(o);else{var l=I.indexOf(G.location.key);-1!==l&&(I[l]=r.key),S({action:"REPLACE",location:r})}else window.location.replace(o)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=R.setPrompt(e);return L||(M(1),L=!0),function(){return L&&(L=!1,M(-1)),t()}},listen:function(e){var t=R.appendListener(e);return M(1),function(){M(-1),t()}}};return G}var E={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+p(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:p,decodePath:c},slash:{encodePath:c,decodePath:c}};function _(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function R(e){window.location.replace(_(window.location.href)+"#"+e)}function S(e){void 0===e&&(e={}),m||Object(u.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?C:r,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?h(c(e.basename)):"",p=E[s],y=p.encodePath,w=p.decodePath;function b(){var e=w(O());return l&&(e=d(e,l)),g(e)}var S=v();function T(e){Object(o.a)(W,e),W.length=t.length,S.notifyListeners(W.location,W.action)}var P=!1,D=null;function A(){var e,t,n=O(),o=y(n);if(n!==o)R(o);else{var r=b(),a=W.location;if(!P&&(t=r,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(D===f(r))return;D=null,function(e){if(P)P=!1,T();else{S.confirmTransitionTo(e,"POP",i,(function(t){t?T({action:"POP",location:e}):function(e){var t=W.location,n=F.lastIndexOf(f(t));-1===n&&(n=0);var o=F.lastIndexOf(f(e));-1===o&&(o=0);var r=n-o;r&&(P=!0,k(r))}(e)}))}}(r)}}var N=O(),I=y(N);N!==I&&R(I);var x=b(),F=[f(x)];function k(e){t.go(e)}var M=0;function L(e){1===(M+=e)&&1===e?window.addEventListener("hashchange",A):0===M&&window.removeEventListener("hashchange",A)}var G=!1;var W={length:t.length,action:"POP",location:x,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=_(window.location.href)),n+"#"+y(l+f(e))},push:function(e,t){var n=g(e,void 0,void 0,W.location);S.confirmTransitionTo(n,"PUSH",i,(function(e){if(e){var t=f(n),o=y(l+t);if(O()!==o){D=t,function(e){window.location.hash=e}(o);var r=F.lastIndexOf(f(W.location)),i=F.slice(0,r+1);i.push(t),F=i,T({action:"PUSH",location:n})}else T()}}))},replace:function(e,t){var n=g(e,void 0,void 0,W.location);S.confirmTransitionTo(n,"REPLACE",i,(function(e){if(e){var t=f(n),o=y(l+t);O()!==o&&(D=t,R(o));var r=F.indexOf(f(W.location));-1!==r&&(F[r]=t),T({action:"REPLACE",location:n})}}))},go:k,goBack:function(){k(-1)},goForward:function(){k(1)},block:function(e){void 0===e&&(e=!1);var t=S.setPrompt(e);return G||(L(1),G=!0),function(){return G&&(G=!1,L(-1)),t()}},listen:function(e){var t=S.appendListener(e);return L(1),function(){L(-1),t()}}};return W}function T(e,t,n){return Math.min(Math.max(e,t),n)}function P(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,u=void 0===l?6:l,c=v();function p(e){Object(o.a)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,u)}var h=T(s,0,i.length-1),y=i.map((function(e){return g(e,void 0,"string"===typeof e?d():e.key||d())})),m=f;function C(e){var t=T(w.index+e,0,w.entries.length-1),o=w.entries[t];c.confirmTransitionTo(o,"POP",n,(function(e){e?p({action:"POP",location:o,index:t}):p()}))}var w={length:y.length,action:"POP",location:y[h],index:h,entries:y,createHref:m,push:function(e,t){var o=g(e,t,d(),w.location);c.confirmTransitionTo(o,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),p({action:"PUSH",location:o,index:t,entries:n})}}))},replace:function(e,t){var o=g(e,t,d(),w.location);c.confirmTransitionTo(o,"REPLACE",n,(function(e){e&&(w.entries[w.index]=o,p({action:"REPLACE",location:o}))}))},go:C,goBack:function(){C(-1)},goForward:function(){C(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o="Invariant failed";function r(e,t){if(!e)throw new Error(o)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(8),r=n(2),i=n(11),a=n(17);function s(e,t){var n,s,l,u,c,p,d,h;Object(r.a)(1,arguments);var f=Object(a.a)(),g=Object(i.a)(null!==(n=null!==(s=null!==(l=null!==(u=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==u?u:null===t||void 0===t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(p=c.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(d=f.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Object(o.default)(e),v=y.getUTCDay(),m=(v<g?7:0)+v-g;return y.setUTCDate(y.getUTCDate()-m),y.setUTCHours(0,0,0,0),y}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return p})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return y}
2)),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return m})),n.d(t,"__asyncGenerator",(function(){return C})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return b})),n.d(t,"__makeTemplateObject",(function(){return E})),n.d(t,"__importStar",(function(){return _})),n.d(t,"__importDefault",(function(){return O})),n.d(t,"__classPrivateFieldGet",(function(){return R})),n.d(t,"__classPrivateFieldSet",(function(){return S}));var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function s(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,o){t(n,o,e)}}function u(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(t){i(t)}}function s(e){try{l(o.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}function p(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function d(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}function m(e){return this instanceof m?(this.v=e,this):new m(e)}
2function C(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){r[e]&&(o[e]=function(t){return new Promise((function(n,o){i.push([e,t,n,o])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof m?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(o){c(i[0][3],o)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:m(e[o](t)),done:"return"===o}:r?r(t):t}:r}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,r){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,r,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}function R(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=1,n=Object(o.default)(e),i=n.getUTCDay(),a=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var o=n(8),r=n(11),i=n(2),a=n(17);function s(e,t){var n,s,l,u,c,p,d,h;Object(i.a)(1,arguments);var f=Object(a.a)(),g=Object(r.a)(null!==(n=null!==(s=null!==(l=null!==(u=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==u?u:null===t||void 0===t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(p=c.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(d=f.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Object(o.default)(e),v=y.getDay(),m=(v<g?7:0)+v-g;return y.setDate(y.getDate()-m),y.setHours(0,0,0,0),y}},function(e,t,n){"use strict";function o(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var o=["D","DD"],r=["YY","YYYY"];function i(e){return-1!==o.indexOf(e)}function a(e){return-1!==r.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
2concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));Math.pow(10,8);var o=6e4,r=36e5,i=1e3},function(e,t,n){"use strict";function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n(108)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=n(26),a=n(61),s=n(52),l=n(82),u=((o={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",o["bad-app-name"]="Illegal App name: '{$appName}",o["duplicate-app"]="Firebase App named '{$appName}' already exists",o["app-deleted"]="Firebase App named '{$appName}' already deleted",o["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",o["invalid-log-argument"]="First argument to `onLog` must be null or a function.",o),c=new a.ErrorFactory("app","Firebase",u),p=((r={})["@firebase/app"]="fire-core",r["@firebase/analytics"]="fire-analytics",r["@firebase/auth"]="fire-auth",r["@firebase/database"]="fire-rtdb",r["@firebase/functions"]="fire-fn",r["@firebase/installations"]="fire-iid",r["@firebase/messaging"]="fire-fcm",r["@firebase/performance"]="fire-perf",r["@firebase/remote-config"]="fire-rc",r["@firebase/storage"]="fire-gcs",r["@firebase/firestore"]="fire-fst",r["fire-js"]="fire-js",r["firebase-wrapper"]="fire-js-all",r),d=new l.Logger("@firebase/app"),h=function(){function e(e,t,n){var o,r,l=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=a.deepCopy(e),this.container=new s.ComponentContainer(t.name),this._addComponent(new s.Component("app",(function(){return l}),"PUBLIC"));try{for(var u=i.__values(this.firebase_.INTERNAL.components.values()),c=u.next();!c.done;c=u.next()){var p=c.value;this._addComponent(p)}}catch(d){o={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){return void 0===t&&(t="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t="[DEFAULT]"),this.container.getProvider(e).
2clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){d.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw c.create("app-deleted",{appName:this.name_})},e}();h.prototype.name&&h.prototype.options||h.prototype.delete||console.log("dc");var f=function e(){var t=function(e){var t={},n=new Map,o={__esModule:!0,initializeApp:function(n,r){void 0===r&&(r={});if("object"!==typeof r||null===r){r={name:r}}var i=r;void 0===i.name&&(i.name="[DEFAULT]");var s=i.name;if("string"!==typeof s||!s)throw c.create("bad-app-name",{appName:String(s)});if(a.contains(t,s))throw c.create("duplicate-app",{appName:s});var l=new e(n,i,o);return t[s]=l,l},app:r,registerVersion:function(e,t,n){var o,r=null!==(o=p[e])&&void 0!==o?o:e;n&&(r+="-"+n);var i=r.match(/\s|\//),a=t.match(/\s|\//);if(i||a){var l=['Unable to register library "'+r+'" with version "'+t+'":'];return i&&l.push('library name "'+r+'" contains illegal characters (whitespace or "/")'),i&&a&&l.push("and"),a&&l.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void d.warn(l.join(" "))}u(new s.Component(r+"-version",(function(){return{library:r,version:t}}),"VERSION"))},setLogLevel:l.setLogLevel,onLog:function(e,t){if(null!==e&&"function"!==typeof e)throw c.create("invalid-log-argument",{appName:name});l.setUserLogHandler(e,t)},apps:null,SDK_VERSION:"7.20.0",INTERNAL:{registerComponent:u,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){if("serverAuth"===t)return null;return t}}};function r(e){if(e=e||"[DEFAULT]",!a.contains(t,e))throw c.create("no-app",{appName:e});return t[e]}function u(s){var l,u,p=s.name;if(n.has(p))return d.debug("There were multiple attempts to register component "+p+"."),"PUBLIC"===s.type?o[p]:null;if(n.set(p,s),"PUBLIC"===s.type){var h=function(e){if(void 0===e&&(e=r()),"function"!==typeof e[p])throw c.create("invalid-app-argument",{appName:p});return e[p]()};void 0!==s.serviceProps&&a.deepExtend(h,s.serviceProps),o[p]=h,e.prototype[p]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getService.bind(this,p);return n.apply(this,s.multipleInstances?e:[])}}try{for(var f=i.__values(Object.keys(t)),g=f.next();!g.done;g=f.next()){var y=g.value;t[y]._addComponent(s)}}catch(v){l={error:v}}finally{try{g&&!g.done&&(u=f.return)&&u.call(f)}finally{if(l)throw l.error}}return"PUBLIC"===s.type?o[p]:null}return(o.default=o,Object.defineProperty(o,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),r.App=e,o)}(h);return t.INTERNAL=i.__assign(i.__assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){a.deepExtend(t,e)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),t}(),g=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();if(a.isBrowser()&&void 0!==self.firebase){d.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var y=self.firebase.SDK_VERSION;y&&y.indexOf("LITE")>=0&&d.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var v=f.initializeApp;f.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.isNode()&&d.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),v.apply(void 0,e)};var m=f;!function(e,t){e.INTERNAL.registerComponent(new s.Component("platform-logger",(function(e){return new g(e)}),"PRIVATE")),e.registerVersion("@firebase/app","0.6.11",t),e.registerVersion("fire-js","")}(m),t.default=m,t.firebase=m},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e);return t.setHours(0,0,0,0),t}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}
2e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(11),r=n(8),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e).getTime(),a=Object(o.a)(t);return new Date(n+a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(8),r=n(2),i=n(25),a=n(11),s=n(17);function l(e,t){var n,l,u,c,p,d,h,f;Object(r.a)(1,arguments);var g=Object(o.default)(e),y=g.getUTCFullYear(),v=Object(s.a)(),m=Object(a.a)(null!==(n=null!==(l=null!==(u=null!==(c=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null===t||void 0===t?void 0:null===(p=t.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==u?u:v.firstWeekContainsDate)&&void 0!==l?l:null===(h=v.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=new Date(0);C.setUTCFullYear(y+1,0,m),C.setUTCHours(0,0,0,0);var w=Object(i.a)(C,t),b=new Date(0);b.setUTCFullYear(y,0,m),b.setUTCHours(0,0,0,0);var E=Object(i.a)(b,t);return g.getTime()>=w.getTime()?y+1:g.getTime()>=E.getTime()?y:y-1}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(98)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(8),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e),a=Object(o.a)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(8),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e),a=Object(o.a)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),l=new Date(n.getTime());l.setMonth(n.getMonth()+a+1,0);var u=l.getDate();return s>=u?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty;function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}e.exports=function(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a<n.length;a++)if(!o.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}},function(e,t,n){"use strict";var o=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},i={p:r,P:function(e,t){var n,i=e.match(/(P+)(p+)?/)||[],a=i[1],s=i[2];if(!s)return o(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",o(a,t)).replace("{{time}}",r(s,t))}};t.a=i},function(e,t,n){"use strict";function o(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var r=o(n(38));r.default.registerVersion("firebase","7.24.0","app"),e.exports=r.default},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),r=n(61),i=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),a=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e="[DEFAULT]");var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new r.Deferred;this.instancesDeferred.set(t,n);try{var o=this.getOrInitializeService(t);o&&n.resolve(o)}catch(i){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=o.__assign({identifier:"[DEFAULT]",optional:!1},e),n=t.identifier,r=t.optional,i=this.normalizeInstanceIdentifier(n);try{var a=this.getOrInitializeService(i);if(!a){if(r)return null;throw Error("Service "+this.name+" is not available")}return a}catch(s){if(r)return null;throw s}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");
2if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService("[DEFAULT]")}catch(p){}try{for(var r=o.__values(this.instancesDeferred.entries()),i=r.next();!i.done;i=r.next()){var a=o.__read(i.value,2),s=a[0],l=a[1],u=this.normalizeInstanceIdentifier(s);try{var c=this.getOrInitializeService(u);l.resolve(c)}catch(p){}}}catch(d){t={error:d}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e="[DEFAULT]"),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return o.__awaiter(this,void 0,void 0,(function(){var e;return o.__generator(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(o.__spread(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})),e.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()}))))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return"[DEFAULT]"===e?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:"[DEFAULT]":e},e}();var s=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new a(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=i,t.ComponentContainer=s,t.Provider=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(41),r=n(2),i=n(11);function a(e,t){Object(r.a)(2,arguments);var n=Object(i.a)(t);return Object(o.a)(e,-n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(8),r=n(2),i=n(27);function a(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=Object(i.a)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=Object(i.a)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";var o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(e,t,n){var r,i=o[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}var a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var o;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}return o[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,s=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?p(l,(function(e){return e.test(s)})):c(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=n.valueCallback?n.valueCallback(a):a;var d=t.slice(s.length);return{value:a,rest:d}}}function c(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function p(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var d,h={code:"en-US",formatDistance:r,formatLong:a,formatRelative:function(e,t,n,o){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var o=n[0],r=e.match(d.parsePattern);if(!r)return null;var i=d.valueCallback?d.valueCallback(r[0]):r[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(o.length);return{value:i,rest:a}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=h},function(e,t,n){"use strict";var o=n(8),r=n(25),i=n(42),a=n(2),s=n(11),l=n(17);function u(e,t){var n,o,u,c,p,d,h,f;Object(a.a)(1,arguments);var g=Object(l.a)(),y=Object(s.a)(null!==(n=null!==(o=null!==(u=null!==(c=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null===t||void 0===t?void 0:null===(p=t.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==u?u:g.firstWeekContainsDate)&&void 0!==o?o:null===(h=g.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),v=Object(i.a)(e,t),m=new Date(0);m.setUTCFullYear(v,0,y),m.setUTCHours(0,0,0,0);var C=Object(r.a)(m,t);return C}n.d(t,"a",(function(){return c}));function c(e,t){Object(a.a)(1,arguments);var n=Object(o.default)(e),i=Object(r.a)(n,t).getTime()-u(n,t).getTime();return Math.round(i/6048e5)+1}},function(e,t,n){"use strict";var o=n(8),r=n(27),i=n(54),a=n(2);function s(e){Object(a.a)(1,arguments);var t=Object(i.a)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var o=Object(r.a)(n);return o}n.d(t,"a",(function(){return l}));function l(e){Object(a.a)(1,arguments);var t=Object(o.default)(e),n=Object(r.a)(t).getTime()-s(t).getTime();return Math.round(n/6048e5)+1}},function(e,t,n){"use strict";(function(e,o){var r,i=n(92);r="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:o;var a=Object(i.a)(r);t.a=a}).call(this,n(31),n(107)(e))},function(e,t,n){"use strict";var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;
2if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(r){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))r.call(n,c)&&(l[c]=n[c]);if(o){s=o(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),r={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},i=function(e,t){if(!e)throw a(t)},a=function(e){return new Error("Firebase Database ("+r.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,o=0;o<e.length;o++){var r=e.charCodeAt(o);r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296===(64512&r)&&o+1<e.length&&56320===(64512&e.charCodeAt(o+1))?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++o)),t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,o=[],r=0;r<e.length;r+=3){var i=e[r],a=r+1<e.length,s=a?e[r+1]:0,l=r+2<e.length,u=l?e[r+2]:0,c=i>>2,p=(3&i)<<4|s>>4,d=(15&s)<<2|u>>6,h=63&u;l||(h=64,a||(d=64)),o.push(n[c],n[p],n[d],n[h])}return o.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,o=0;n<e.length;){var r=e[n++];if(r<128)t[o++]=String.fromCharCode(r);else if(r>191&&r<224){var i=e[n++];t[o++]=String.fromCharCode((31&r)<<6|63&i)}else if(r>239&&r<365){var a=((7&r)<<18|(63&(i=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[o++]=String.fromCharCode(55296+(a>>10)),t[o++]=String.fromCharCode(56320+(1023&a))}else{i=e[n++];var s=e[n++];t[o++]=String.fromCharCode((15&r)<<12|(63&i)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,o=[],r=0;r<e.length;){var i=n[e.charAt(r++)],a=r<e.length?n[e.charAt(r)]:0,s=++r<e.length?n[e.charAt(r)]:64,l=++r<e.length?n[e.charAt(r)]:64;if(++r,null==i||null==a||null==s||null==l)throw Error();var u=i<<2|a>>4;if(o.push(u),64!==s){var c=a<<4&240|s>>2;if(o.push(c),64!==l){var p=s<<6&192|l;o.push(p)}}}return o},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},u=function(e){try{return l.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function c(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=c(e[n],t[n]));return e}var p=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,o){n?t.reject(n):t.resolve(o),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,o))}},e}();function d(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function h(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(t){return!1}}var f=function(e){function t(n,o){var r=e.call(this,o)||this;return r.code=n,r.name="FirebaseError",Object.setPrototypeOf(r,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,g.prototype.create),r}return o.__extends(t,e),t}(Error),g=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=t[0]||{},r=this.service+"/"+e,i=this.errors[e],a=i?y(i,o):"Error",s=this.serviceName+": "+a+" ("+r+").",l=new f(r,s),u=0,c=Object.keys(o);u<c.length;u++){var p=c[u];
2"_"!==p.slice(-1)&&(p in l&&console.warn('Overwriting FirebaseError base field "'+p+'" can cause unexpected behavior.'),l[p]=o[p])}return l},e}();function y(e,t){return e.replace(v,(function(e,n){var o=t[n];return null!=o?String(o):"<"+n+"?>"}))}var v=/\{\$([^}]+)}/g;function m(e){return JSON.parse(e)}var C=function(e){var t={},n={},o={},r="";try{var i=e.split(".");t=m(u(i[0])||""),n=m(u(i[1])||""),r=i[2],o=n.d||{},delete n.d}catch(a){}return{header:t,claims:n,data:o,signature:r}};var w=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"===typeof e)for(var o=0;o<16;o++)n[o]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(o=0;o<16;o++)n[o]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(o=16;o<80;o++){var r=n[o-3]^n[o-8]^n[o-14]^n[o-16];n[o]=4294967295&(r<<1|r>>>31)}var i,a,s=this.chain_[0],l=this.chain_[1],u=this.chain_[2],c=this.chain_[3],p=this.chain_[4];for(o=0;o<80;o++){o<40?o<20?(i=c^l&(u^c),a=1518500249):(i=l^u^c,a=1859775393):o<60?(i=l&u|c&(l|u),a=2400959708):(i=l^u^c,a=3395469782);r=(s<<5|s>>>27)+i+p+a+n[o]&4294967295;p=c,c=u,u=4294967295&(l<<30|l>>>2),l=s,s=r}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+l&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+p&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,o=0,r=this.buf_,i=this.inbuf_;o<t;){if(0===i)for(;o<=n;)this.compress_(e,o),o+=this.blockSize;if("string"===typeof e){for(;o<t;)if(r[i]=e.charCodeAt(o),++o,++i===this.blockSize){this.compress_(r),i=0;break}}else for(;o<t;)if(r[i]=e[o],++o,++i===this.blockSize){this.compress_(r),i=0;break}}this.inbuf_=i,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var o=0;for(n=0;n<5;n++)for(var r=24;r>=0;r-=8)e[o]=this.chain_[n]>>r&255,++o;return e},e}();var b=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var o,r=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(o=function(e,t){if("object"!==typeof e||null===e)return!1;for(var n=0,o=t;n<o.length;n++){var r=o[n];if(r in e&&"function"===typeof e[r])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(o.next=E),void 0===o.error&&(o.error=E),void 0===o.complete&&(o.complete=E);var i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{r.finalError?o.error(r.finalError):o.complete()}catch(e){}})),this.observers.push(o),i},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(o){"undefined"!==typeof console&&console.error&&console.error(o)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function E(){}function _(e,t,n){var o="";switch(t){case 1:o=n?"first":"First";break;case 2:o=n?"second":"Second";break;case 3:o=n?"third":"Third";break;case 4:o=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}var r=e+" failed: ";return r+=o+" argument "}t.CONSTANTS=r,t.Deferred=p,t.ErrorFactory=g,t.FirebaseError=f,t.MAX_VALUE_MILLIS=144e5,t.RANDOM_FACTOR=.5,t.Sha1=w,t.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},t.assert=i,t.assertionError=a,t.async=function(e,t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];Promise.resolve(!0).then((function(){e.apply(void 0,n)})).catch((function(e){t&&t(e)}))}},t.base64=l,t.base64Decode=u,t.base64Encode=function(e){var t=s(e);return l.encodeByteArray(t,!0)},t.calculateBackoffMillis=function(e,t,n){void 0===t&&(t=1e3),void 0===n&&(n=2);var o=t*Math.pow(n,e),r=Math.round(.5*o*(Math.random()-.5)*2);return Math.min(144e5,o+r)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createSubscribe=function(e,t){var n=new b(e,t);return n.subscribe.bind(n)},t.decode=C,t.deepCopy=function(e){return c(void 0,e)},t.deepExtend=c,t.errorPrefix=_,t.getUA=d,t.isAdmin=function(e){var t=C(e).claims;return"object"===typeof t&&!0===t.admin},t.isBrowser=function(){return"object"===typeof self&&self.self===self},t.isBrowserExtension=function(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id},t.isElectron=function(){return d().indexOf("Electron/")>=0},t.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){var e=d();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isIndexedDBAvailable=function(){return"indexedDB"in self&&null!=indexedDB},t.isMobileCordova=function(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(d())},t.isNode=h,t.isNodeSdk=function(){return!0===r.NODE_CLIENT||!0===r.NODE_ADMIN},t.isReactNative=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},t.isSafari=function(){return!h()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},t.isUWP=function(){return d().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){var t=C(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t=C(e).claims,n=Math.floor((new Date).getTime()/1e3),o=0,r=0;return"object"===typeof t&&(t.hasOwnProperty("nbf")?o=t.nbf:t.hasOwnProperty("iat")&&(o=t.iat),r=t.hasOwnProperty("exp")?t.exp:o+86400),!!n&&!!o&&!!r&&n>=o&&n<=r},t.issuedAtTime=function(e){var t=C(e).claims;return"object"===typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=m,t.map=function(e,t,n){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=t.call(n,e[r],r,e));return o},t.querystring=function(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEac
2h((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},o=0,r=Object.entries(e);o<r.length;o++){var i=r[o];n(i[0],i[1])}return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}})),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t++:o<2048?t+=2:o>=55296&&o<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,o=0;o<e.length;o++){var r=e.charCodeAt(o);if(r>=55296&&r<=56319){var a=r-55296;o++,i(o<e.length,"Surrogate pair missing trail surrogate."),r=65536+(a<<10)+(e.charCodeAt(o)-56320)}r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):r<65536?(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,o){var r;if(o<t?r="at least "+t:o>n&&(r=0===n?"none":"no more than "+n),r)throw new Error(e+" failed: Was called with "+o+(1===o?" argument.":" arguments.")+" Expects "+r+".")},t.validateCallback=function(e,t,n,o){if((!o||n)&&"function"!==typeof n)throw new Error(_(e,t,o)+"must be a valid function.")},t.validateContextObject=function(e,t,n,o){if((!o||n)&&("object"!==typeof n||null===n))throw new Error(_(e,t,o)+"must be a valid context object.")},t.validateIndexedDBOpenable=function(){return new Promise((function(e,t){try{var n=!0,o="validate-browser-context-for-indexeddb-analytics-module",r=window.indexedDB.open(o);r.onsuccess=function(){r.result.close(),n||window.indexedDB.deleteDatabase(o),e(!0)},r.onupgradeneeded=function(){n=!1},r.onerror=function(){var e;t((null===(e=r.error)||void 0===e?void 0:e.message)||"")}}catch(i){t(i)}}))},t.validateNamespace=function(e,t,n,o){if((!o||n)&&"string"!==typeof n)throw new Error(_(e,t,o)+"must be a valid firebase namespace.")}}).call(this,n(31))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n,o){void 0===o&&(o=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,n||0)),this.a=Math.min(1,Math.max(0,o||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var n=t.match(e.hexRe);if(n)return new e((o=parseInt(n[1],16))/255,(r=parseInt(n[2],16))/255,(i=parseInt(n[3],16))/255,(a=void 0!==n[4]?parseInt(n[4],16):255)/255);if(n=t.match(e.shortHexRe)){var o=parseInt(n[1],16),r=parseInt(n[2],16),i=parseInt(n[3],16),a=void 0!==n[4]?parseInt(n[4],16):15;return new e((o+=16*o)/255,(r+=16*r)/255,(i+=16*i)/255,(a+=16*a)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var n=t.match(e.rgbRe);if(n)return new e(+n[1]/255,+n[2]/255,+n[3]/255);if(n=t.match(e.rgbaRe))return new e(+n[1]/255,+n[2]/255,+n[3]/255,+n[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,n,o,r){void 0===r&&(r=1);var i=e.HSBtoRGB(t,n,o);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)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"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,n){var o=Math.min(e,t,n),r=Math.max(e,t,n
2),i=NaN;if(o!==r){var a=r-o,s=(r-e)/a,l=(r-t)/a,u=(r-n)/a;i=e===r?u-l:t===r?2+s-u:4+l-s,(i/=6)<0&&(i+=1)}return[360*i,0!==r?(r-o)/r:0,r]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var o=0,r=0,i=0;if(0===t)o=r=i=n;else{var a=6*(e-Math.floor(e)),s=a-Math.floor(a),l=n*(1-t),u=n*(1-t*s),c=n*(1-t*(1-s));switch(a>>0){case 0:o=n,r=c,i=l;break;case 1:o=u,r=n,i=l;break;case 2:o=l,r=n,i=c;break;case 3:o=l,r=u,i=n;break;case 4:o=c,r=l,i=n;break;case 5:o=n,r=l,i=u}}return[o,r,i]},e.prototype.derive=function(t,n,o,r){var i=e.RGBtoHSB(this.r,this.g,this.b),a=i[2];0==a&&o>1&&(a=.05);var s=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);a=Math.max(Math.min(a*o,1),0);var u=Math.max(Math.min(this.a*r,1),0),c=e.HSBtoRGB(s,l,a);return c.push(u),e.fromArray(c)},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}();function o(e,t){void 0===t&&(t=",");for(var n,o,r,i=[],a=function(e){return"\r"===e||"\n"===e},s=!1,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){i[l]||(i[l]=[]),i[l][u]||(i[l][u]="")};if(f(),'"'===d){if(s)return'"'===h?(i[l][u]+='"',c++):s=!1,n=l,o=u,r=c,"continue";
2if(void 0===p||p===t||a(p))return s=!0,n=l,o=u,r=c,"continue"}if(!s){if(d===t)return u++,f(),n=l,o=u,r=c,"continue";if(a(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,n=l,o=u,r=c,"continue"}i[l][u]+=d,n=l,o=u,r=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=n,c=o,p=r;return i}var r,i,a,s,l,u,c=Object.freeze({__proto__:null,stringToArray:o});function p(){return void 0===i&&(i=!!document.documentMode),i}function d(){return void 0===a&&(a=!p()&&!!window.StyleMedia),a}function h(){if(void 0===r){var e=window;r=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||(t=e.safari&&e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return r}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="undefined"!==typeof e.InstallTrigger}return l}var y=Object.freeze({__proto__:null,isBrowserIE:p,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},getTabIndex:function(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");if(p()&&0===t&&null===e.getAttribute("tabIndex")){return!0==={a:!0,body:!0,button:!0,frame:!0,iframe:!0,img:!0,input:!0,isindex:!0,object:!0,select:!0,textarea:!0}[e.nodeName.toLowerCase()]?"0":null}return-1!==t||null!==n&&(""!==n||g())?t.toString():null},getMaxDivHeight:function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var o=2*e;if(n.style.height=o+"px",o>t||n.clientHeight!==o)break;e=o}return document.body.removeChild(n),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 n=t.offsetWidth-t.clientWidth;return t.parentNode&&t.parentNode.removeChild(t),n},hasOverflowScrolling:function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),n=!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 o=window.getComputedStyle(t);if("touch"===o.overflowScrolling&&(n=!0),!n)for(var r=0,i=e;r<i.length;r++)if("touch"===o[i[r]+"OverflowScrolling"]){n=!0;break}return t.parentNode&&t.parentNode.removeChild(t),n},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}});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 b(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 E=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,n){void 0===n&&(n=!1);var o=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&r)return 0;if(o)return-1;if(r)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"===typeof e){if(!n)return i(e,t);try{return e.localeCompare(t)}catch(a){return i(e,t)}}return i(e,t)},find:function e(t,n,o){if(null===t||void 0===t)return null;
2if(!Array.isArray(t))return e(b(t),n,o);for(var r=t,i=null,a=0;a<r.length;a++){var s=r[a];if("string"===typeof n){if(s[n]===o){i=s;break}}else if(n(s)){i=s;break}}return i},values:b}),_=/[&<>"']/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function R(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function S(e){return null===e||void 0===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 n(e,n){return t(e>>n&63|128)}function o(e){if(0==(4294967168&e))return t(e);var o="";return 0==(4294965248&e)?o=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),o=t(e>>12&15|224),o+=n(e,6)):0==(4292870144&e)&&(o=t(e>>18&7|240),o+=n(e,12),o+=n(e,6)),o+=t(63&e|128)}for(var r=function(e){for(var t,n,o=[],r=0,i=e.length;r<i;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<i?56320==(64512&(n=e.charCodeAt(r++)))?o.push(((1023&t)<<10)+(1023&n)+65536):(o.push(t),r--):o.push(t);return o}(e),i=r.length,a=-1,s="";++a<i;)s+=o(r[a]);return s},camelCaseToHyphen:R,hyphenToCamelCase:S,capitalise:function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()},escape:function(e){return null!=e&&e.replace?e.replace(_,(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}});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 n=e.className.split(" ");n.indexOf(t)<0&&(n.push(t),e.setAttribute("class",n.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 n=e.className.split(" ").filter((function(e){return e!==t})).join(" ");e.setAttribute("class",n)}}function A(e,t,n){n?P(e,t):D(e,t)}function N(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var n=e.className===t,o=e.className.indexOf(" "+t+" ")>=0,r=0===e.className.indexOf(t+" "),i=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return n||o||r||i}return!1}function I(e,t){A(e,"ag-hidden",!t)}function x(e,t){t?e.setAttribute("disabled",""):e.removeAttribute("disabled")}function F(e){var t=window.getComputedStyle(e),n=t.height,o=t.width,r=t.paddingTop,i=t.paddingRight,a=t.paddingBottom,s=t.paddingLeft,l=t.marginTop,u=t.marginRight,c=t.marginBottom,p=t.marginLeft,d=t.boxSizing;return{height:parseFloat(n),width:parseFloat(o),paddingTop:parseFloat(r),paddingRight:parseFloat(i),paddingBottom:parseFloat(a),paddingLeft:parseFloat(s),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(c),marginLeft:parseFloat(p),boxSizing:d}}function k(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function M(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function G(e,t){for(var n=0;n<t.length;n++){var o=t[n],r=e.children[n];r!==o&&e.insertBefore(o,r)}}function W(e,t){"flex"===t?(e.style.width=null,e.style.minWidth=null,e.style.maxWidth=null,e.style.flex="1 1 auto"):V(e,t)}function V(e,t){t=j(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function H(e,t){t=j(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function j(e){return"number"===typeof e?e+"px":e}function B(e){return"function"===typeof Node?e instanceof Node:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName}function U(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&null!==e&&1===e.nodeType&&"string"===typeof e.nodeName}function z(e){return B(e)||U(e)}var Y=Object.freeze({__proto__:null,addCssClass:P,removeCssClass:D,addOrRemoveCssClass:A,radioCssClass:function(e,t,n){for(var o=e.parentElement.firstChild;o;)t&&A(o,t,o===e),n&&A(o,n,o!==e),o=o.nextSibling},containsClass:N,setDisplayed:I,setVisible:function(e,t){A(e,"ag-invisible",!t)},setDisabled:x,isElementChildOfClass:function(e,t,n){for(var o=0;e;){if(N(e,t))return!0;
2if(e=e.parentElement,n&&++o>n)break}return!1},getElementSize:F,getInnerHeight:function(e){var t=F(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height},getInnerWidth:function(e){var t=F(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width},getAbsoluteHeight:function(e){var t=F(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)},getAbsoluteWidth:function(e){var t=F(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)},getScrollLeft:function(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),f()&&(n=e.scrollWidth-e.clientWidth-n)),n},setScrollLeft:function(e,t,n){n&&((h()||f())&&(t=e.scrollWidth-e.clientWidth-t),g()&&(t*=-1)),e.scrollLeft=t},clearElement:k,removeElement:function(e,t){M(e.querySelector(t))},removeFromParent:M,isVisible:function(e){return null!==e.offsetParent},loadTemplate:L,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,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},setDomChildOrder:G,insertTemplateWithDomOrder:function(e,t,n){var o;return n?(n.insertAdjacentHTML("afterend",t),o=n.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,o=e.firstChild),o},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(n){var o=S(n);o&&(e.style[o]=t[n])}))},isHorizontalScrollShowing:function(e){return e.clientWidth<e.scrollWidth},isVerticalScrollShowing:function(e){return e.clientHeight<e.scrollHeight},setElementWidth:W,setFixedWidth:V,setElementHeight:function(e,t){"flex"===t?(e.style.height=null,e.style.minHeight=null,e.style.maxHeight=null,e.style.flex="1 1 auto"):H(e,t)},setFixedHeight:H,formatSize:j,isNode:B,isElement:U,isNodeOrElement:z,copyNodeList:function(e){for(var t=e?e.length:0,n=[],o=0;o<t;o++)n.push(e[o]);return n},iterateNamedNodeMap:function(e,t){if(e)for(var n=0;n<e.length;n++){var o=e[n];t(o.name,o.value)}},setCheckboxState:function(e,t){"boolean"===typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0}});function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var o=e[n];if(m(o))return o}return null}function K(e){if(e&&e.length)return e[e.length-1]}function Q(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&ee(e,(function(e,o){return n?n(e,t[o]):t[o]===e}))}function X(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function $(e,t){ne(t,(function(t){return X(e,t)}))}function J(e,t,n){e.splice(n,0,t)}function Z(e,t){return e.indexOf(t)>-1}function ee(e,t){if(null==e)return!0;for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function te(e,t){if(null==e)return!1;for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}function ne(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n],n)}function oe(e,t){if(null==e)return null;for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var re=Object.freeze({__proto__:null,firstExistingValue:q,anyExists:function(e){return e&&null!=q(e)},existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:K,areEqual:Q,compareArrays:function(e,t){return Q(e,t)},shallowCompare:function(e,t){return Q(e,t)},sortNumerically:function(e){return e.sort((function(e,t){return e-t}))},removeRepeatsFromArray:function(e,t){if(e)for(var n=e.length-2;n>=0;n--){var o=e[n]===t,r=e[n+1]===t;o&&r&&e.splice(n+1,1)}},removeFromArray:X,removeAllFromArray:$,insertIntoArray:J,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){J(e,t[o],n)}},moveInArray:function(e,t,n){$(e,t),ne(t.slice().reverse(),(function(t){return J(e,t,n)}))},includes:Z,flatten:function(e){return[].concat.apply([],e)},pushAll:function(e,t){null!=t&&null!=e&&ne(t,(function(t){return e.push(t)}))},toStrings:function(e){return oe(e,w)},findIndex:function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1},every:ee,some:te,forEach:ne,map:oe,filter:function(e,t){if(null==e)return null;for(var n=[],o=0;o<e.length;o++)t(e[o],o)&&n.push(e[o]);return n},reduce:function(e,t,n){if(null==e||null==n)return null;for(var o=n,r=0;r<e.length;r++)o=t(o,e[r],r);return o}
2,forEachSnapshotFirst:function(e,t){e&&e.slice(0).forEach(t)}});function ie(e,t){null!=e&&(Array.isArray(e)?ne(e,(function(e,n){return t(""+n,e)})):ne(Object.keys(e),(function(n){return t(n,e[n])})))}function ae(e){for(var t={},n=Object.keys(e),o=0;o<n.length;o++){var r=n[o],i=e[r];t[r]=i}return t}function se(e,t){return e[t]}function le(e,t,n){e[t]=n}function ue(e,t,n,o){var r=se(e,n);void 0!==r&&le(t,n,o?o(r):r)}function ce(e,t,n){void 0===n&&(n=!0),m(t)&&ie(t,(function(t,o){var r=e[t];r!==o&&("object"!==typeof r||"object"!==typeof o||Array.isArray(r)?(n||void 0!==o)&&(e[t]=o):ce(r,o))}))}function pe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ne(t,(function(t){return ie(t,(function(t,n){return e[t]=n}))})),e}var de=Object.freeze({__proto__:null,iterateObject:ie,cloneObject:ae,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},getProperty:se,setProperty:le,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];ne(n,(function(n){return ue(e,t,n)}))},copyPropertyIfPresent:ue,getAllKeysInObjects:function(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){ne(Object.keys(e),(function(e){return t[e]=null}))})),Object.keys(t)},mergeDeep:ce,assign:pe,missingOrEmptyObject:function(e){return C(e)||0===Object.keys(e).length},get:function(e,t,n){if(null==e)return n;for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return n;var i=r[o[0]];return null!=i?i:n},set:function(e,t,n){if(null!=e){for(var o=t.split("."),r=e;o.length>1;)if(null==(r=r[o.shift()]))return;r[o[0]]=n}},deepFreeze:function e(t){return Object.freeze(t),ne(b(t),(function(t){null==t||"object"!==typeof t&&"function"!==typeof t||e(t)})),t},getValueUsingField:function(e,t,n){if(t&&e){if(!n)return e[t];for(var o=t.split("."),r=e,i=0;i<o.length;i++)if(C(r=r[o[i]]))return null;return r}}});var he=Object.freeze({__proto__:null,getNameOfClass:function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var o=0;o<e.length;o++){var r=e[o];Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var i=0,a=0,s=0,l=0,u=0,c=0;c<t;c++)i+=c,a+=u=e[c],l+=c*c,s+=c*u;var p=(t*s-i*a)/(t*l-i*i),d=a/t-p*i/t,h=[];for(c=0;c<=t;c++)h.push(parseFloat((c*p+d).toFixed(n)));return h},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return ie(e,(function(e,n){var o=R(e);t.push(o+": "+n+";")})),t.join(" ")},message:function(e){var t=document.createElement("div"),n=document.querySelector("#__ag__message");if(t.innerHTML=e,!n){n=L('<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(n)}n.insertBefore(t,n.children[0])},bindCellRendererToHtmlElement:function(e,t){e.then((function(e){var n=e.getGui();null!=n&&("object"===typeof n?t.appendChild(n):t.innerHTML=n)}))}});function fe(e,t){for(var n=""+e;n.length<t;)n="0"+n;return n}function ge(e){return"number"!==typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}var ye=Object.freeze({__proto__:null,padStart:fe,createArrayOfNumbers:function(e,t){for(var n=[],o=e;o<=t;o++)n.push(o);return n},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 n="",o=0;o<t;o++)n+=String.fromCharCode(255&e),e>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(e){return"number"!==typeof e?"":ge(Math.round(100*e)/100)},formatNumberCommas:ge,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}});function ve(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n="-"),!e)return null;var o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return fe(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return fe(e,2)})).join(":")),o}function me(e){if(!e)return null;var t=e.split(" "),n=t[0],o=t[1];if(!n)return null;var r=n.split("-").map((function(e){return parseInt(e,10)}));if(3!==r.filter((function(e){return!isNaN(e)})).length)return null;var i=r[0],a=r[1],s=r[2],l=new Date(i,a-1,s);if(l.getFullYear()!==i||l.getMonth()!==a-1||l.getDate()!==s)return null;if(!o||"00:00:00"===o)return l;var u=o.split(":").map((function(e){return parseInt(e,10)})),c=u[0],p=u[1],d=u[2];return c>=0&&c<24&&l.setHours(c),p>=0&&p<60&&l.setMinutes(p),d>=0&&d<60&&l.setSeconds(d),l}var Ce=Object.freeze({__proto__:null,serialiseDate:ve,parseDateTimeFromString:me}),we=["touchstart","touchend","touchmove","touchcancel"],be=["mouseover","mouseout","mouseenter","mouseleave"],Ee={};var _e=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(t){if("boolean"===typeof Ee[t])return Ee[t];var n=document.createElement(e[t]||"div"),o=(t="on"+t)in n;return o||(n.setAttribute(t,"return;"),o="function"==typeof n[t]),n=null,Ee[t]=o}}();function Oe(e){var t=e;return t.target||t.srcElement}function Re(e){for(var t=[],n=Oe(e);n;)t.push(n),n=n.parentElement;return t}function Se(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:Re(e)}var Te=Object.freeze({__proto__:null,stopPropagationForAgGrid:function(e){e.__ag_Grid_Stop_Propagation=!0},isStopPropagationForAgGrid:function(e){return!0===e.__ag_Grid_Stop_Propagation},isEventSupported:_e,getCellCompForEvent:function(e,t){for(var n=Oe(t);n;){var o=e.getDomData(n,"cellComp");if(o)return o;n=n.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:Oe,isElementInEventPath:function(e,t){return!(!t||!e)&&Se(t).indexOf(e)>=0},createEventPath:Re,addAgGridEventPath:function(e){e.__agGridEventPath=Se(e)},getEventPath:Se,addSafePassiveEventListener:function(e,t,n,o){var r=Z(we,n)?{passive:!0}:void 0;Z(be,n)?e&&e.addEventListenerOutsideAngular&&e.addEventListenerOutsideAngular(t,n,o,r):t.addEventListener(n,o,r)}}),Pe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,De=/([^\s,]+)/g,Ae={};function Ne(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function Ie(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=this,s=n&&!o;window.clearTimeout(o),o=window.setTimeout((function(){o=null,n||e.apply(a,r)}),t),s&&e.apply(a,r)}}var xe=Object.freeze({__proto__:null,doOnce:function(e,t){Ae[t]||(e(),Ae[t]=!0)},getFunctionParameters:function(e){var t=e.toString().replace(Pe,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(De)||[]},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},executeInAWhile:function(e){Ne(e,400)},executeNextVMTurn:function(e){Ne(e,0)},executeAfter:Ne,debounce:Ie,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()}});function Fe(e,t,n,o){var r=o?Le:Me,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})),n&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function ke(e){var t,n,o,r=e.toLowerCase(),i=new Array(r.length-1);for(t=n=0,o=i.length;n<=o;t=n+=1)i[t]=r.slice(t,t+2);return i}function Me(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=ke(e),i=ke(t),a=r.length+i.length,s=0;for(n=0,o=r.length;n<o;n++){var l,u=r[n],c=void 0;for(c=0,l=i.length;c<l;c++){u===i[c]&&s++}}return s>0?2*s/a:0}function Le(e,t){for(var n=e.replace(/\s/g,""),o=t.replace(/\s/g,""),r=0,i=0,a=0;a<n.length;a++){var s=o.indexOf(n[a]);-1!==s&&(i=s,r+=100*(o.length-i)/o.length,r*=r)}return r}var Ge=Object.freeze({__proto__:null,fuzzyCheckStrings:function(e,t,n){var o={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return o[e]=Fe(e,n)})),o},fuzzySuggestions:Fe,get_bigrams:ke,string_distances:Me,string_weighted_distances:Le}),We={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"};function Ve(e,t,n,o){var r=null,i=n&&n.getColDef().icons;
2if(i&&(r=i[e]),t&&!r){var a=t.getIcons();a&&(r=a[e])}if(!r){var s=document.createElement("span"),l=We[e];return l||(o?l=e:(console.warn("ag-Grid: Did not find icon "+e),l="")),s.setAttribute("class","ag-icon ag-icon-"+l),s.setAttribute("unselectable","on"),s}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?L(u):z(u)?u:void console.warn("ag-Grid: iconRenderer should return back a string or a dom object")}var He=Object.freeze({__proto__:null,iconNameClassMap:We,createIcon:function(e,t,n){var o=Ve(e,t,n);if(o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r},createIconNoSpan:Ve}),je=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}();function Be(e,t){return(e.which||e.keyCode)===t}var Ue=Object.freeze({__proto__:null,isKeyPressed:Be,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(Be(e,je.KEY_NEW_LINE))return!1;if(e.altKey||e.ctrlKey)return!1;if(m(e.key)){var n=1===e.key.length,o=function(e){return(d()||p())&&"Del"===e.key&&46===e.charCode}(e);return n||o}return"qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"\xa3$%^&*()_+-=[];'#,./\\|<>?:@~{}".indexOf(t)>=0},isUserSuppressingKeyboardEvent:function(e,t,n,o,r){var i=e.getSuppressKeyboardEventFunc(),a=o.getColDef().suppressKeyboardEvent;if(!i&&!a)return!1;var s={event:t,editing:r,column:o,api:e.getApi(),node:n,data:n.data,colDef:o.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!a||!a(s))||!!i&&i(s)}});var ze=Object.freeze({__proto__:null,keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}});var Ye=Object.freeze({__proto__:null,normalizeWheel:function(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}},isLeftClick:function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},areEventsNear:function(e,t,n){if(0===n)return!1;var o=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(o,r)<=n}});var qe=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(e){for(var n=function(e,n){var o=t[e.id],r=t[n.id],i=void 0!==o,a=void 0!==r;return i&&a?o-r:!i&&!a?e.__objectId-n.__objectId:i?1:-1},o=!1,r=0;r<e.length-1;r++)if(n(e[r],e[r+1])>0){o=!0;break}o&&e.sort(n)}},traverseNodesWithKey:function(e,t){var n=[];
2!function e(o){o.forEach((function(o){if(o.group||o.hasChildren()){n.push(o.key);var r=n.join("|");t(o,r),e(o.childrenAfterGroup),n.pop()}}))}(e)}});function Ke(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Qe,Xe=Object.freeze({__proto__:null,convertToSet:Ke}),$e=function(){return($e=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Je=$e($e($e($e($e($e($e($e($e($e($e($e($e($e($e($e($e($e($e({},he),re),y),c),Ce),Y),Te),xe),Ge),E),He),Ue),ze),Ye),ye),de),qe),Xe),T),Ze=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}();(Qe=t.PromiseStatus||(t.PromiseStatus={}))[Qe.IN_PROGRESS=0]="IN_PROGRESS",Qe[Qe.RESOLVED=1]="RESOLVED";var et=function(){function e(e){var n=this;this.status=t.PromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],e((function(e){return n.onDone(e)}),(function(e){return n.onReject(e)}))}return e.all=function(t){return new e((function(e){var n=t.length,o=new Array(n);ne(t,(function(t,r){t.then((function(t){o[r]=t,0===--n&&e(o)}))}))}))},e.resolve=function(t){return void 0===t&&(t=null),new e((function(e){return e(t)}))},e.prototype.then=function(n){var o=this;return new e((function(e){o.status===t.PromiseStatus.RESOLVED?e(n(o.resolution)):o.waiters.push((function(t){return e(n(t))}))}))},e.prototype.resolveNow=function(e,n){return this.status===t.PromiseStatus.RESOLVED?n(this.resolution):e},e.prototype.onDone=function(e){this.status=t.PromiseStatus.RESOLVED,this.resolution=e,ne(this.waiters,(function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),tt=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}(),nt=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=Je.toStringOrNull(e);for(var n=0;;){var o=void 0;if(e?(o=e,0!==n&&(o+="_"+n)):t?(o=t,0!==n&&(o+="_"+n)):o=""+n,!this.existingKeys[o])return this.existingKeys[o]=!0,o;n++}},e}(),ot=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return Je.values(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),Je.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),Je.iterateObject(this.beanWrappers,(function(t,n){var o;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(o=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r=e.getBeansForParameters(o,n.bean.name),i=function(e,t){var n=[null].concat(t);return new(e.bind.apply(e,n))}(n.bean,r);n.beanInstance=i}));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 n=void 0;return n=e.prototype.constructor?e.prototype.constructor.name:""+e,void console.error("context item "+n+" is not a bean")}var o={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=o},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=t.lookupBeanInstance(o,n.beanName,n.optional);e[n.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,o){Je.iterateOb
2ject(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var i=t.getBeansForParameters(r,o);e[n].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var o=n.constructor;if(o.hasOwnProperty("__agBeanMetaData"))t(o.__agBeanMetaData,this.getBeanName(o));n=Object.getPrototypeOf(n)}},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 n=this,o=[];return e&&Je.iterateObject(e,(function(e,r){var i=n.lookupBeanInstance(t,r);o[Number(e)]=i})),o},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var o=this.beanWrappers[t];return o?o.beanInstance:(n||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;e.forEach((function(e){n.callLifeCycleMethodsOneBean(e,t)}))},e.prototype.callLifeCycleMethodsOneBean=function(e,t,n){var o={};this.forEachMetaDataInHierarchy(e,(function(e){var r=e[t];r&&r.forEach((function(e){e!=n&&(o[e]=!0)}))})),Object.keys(o).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.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOneBean(e,"preDestroyMethods","destroy"),e.destroy&&e.destroy()})),[]):[]},e}();function rt(e,t,n){var o=dt(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function it(e,t,n){var o=dt(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function at(e,t,n){var o=dt(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function st(e){return function(t){dt(t).beanName=e}}function lt(e){return function(t,n,o){ct(t,e,!1,t,n,null)}}function ut(e){return function(t,n,o){ct(t,e,!0,t,n,null)}}function ct(e,t,n,o,r,i){if(null!==t)if("number"!==typeof i){var a=dt(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:r,beanName:t,optional:n})}else console.error("ag-Grid: Autowired should be on an attribute");else console.error("ag-Grid: Autowired name should not be null")}function pt(e){return function(t,n,o){var r,i="function"==typeof t?t:t.constructor;if("number"===typeof o){var a=void 0;n?(r=dt(i),a=n):(r=dt(i),a="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[a]||(r.autowireMethods[a]={}),r.autowireMethods[a][o]=e}}}function dt(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var ht,ft=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gt=function(e,t){return function(n,o){t(n,o,e)}},yt=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={}}
2return e.prototype.setBeans=function(e,t,n){if(void 0===n&&(n=null),this.logger=e.create("EventService"),n){var o=t.useAsyncEvents();this.addGlobalListener(n,o)}},e.prototype.getListeners=function(e,t){var n=t?this.allAsyncListeners:this.allSyncListeners,o=n.get(e);return o||(o=new Set,n.set(e,o)),o},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n).delete(t)},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,t){var n=this,o=e.type;this.getListeners(o,t).forEach((function(o){t?n.dispatchAsync((function(){return o(e)})):o(e)})),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){t?n.dispatchAsync((function(){return r(o,e)})):r(o,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()}))},ft([gt(0,pt("loggerFactory")),gt(1,pt("gridOptionsWrapper")),gt(2,pt("globalEventListener"))],e.prototype,"setBeans",null),e=ft([st("eventService")],e)}();(ht=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",ht.CommunityAllModules="@ag-grid-community/all",ht.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",ht.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",ht.CsvExportModule="@ag-grid-community/csv-export",ht.RowNodeCache="@ag-grid-community/row-node-cache",ht.EnterpriseCoreModule="@ag-grid-enterprise/core",ht.EnterpriseAllModules="@ag-grid-enterprise/all",ht.RowGroupingModule="@ag-grid-enterprise/row-grouping",ht.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",ht.FiltersToolPanelModule="@ag-grid-enterprise/filters-tool-panel",ht.MenuModule="@ag-grid-enterprise/menu",ht.SetFilterModule="@ag-grid-enterprise/set-filter",ht.StatusBarModule="@ag-grid-enterprise/status-bar",ht.SideBarModule="@ag-grid-enterprise/side-bar",ht.RangeSelectionModule="@ag-grid-enterprise/range-selection",ht.MasterDetailModule="@ag-grid-enterprise/master-detail",ht.RichSelectModule="@ag-grid-enterprise/rich-select",ht.GridChartsModule="@ag-grid-enterprise/charts",ht.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",ht.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",ht.ExcelExportModule="@ag-grid-enterprise/excel-export",ht.ClipboardModule="@ag-grid-enterprise/clipboard",ht.DateTimeCellEditorModule="@ag-grid-enterprise/date-time-cell-editor",ht.AngularModule="@ag-grid-community/angular",ht.ReactModule="@ag-grid-community/react",ht.VueModule="@ag-grid-community/vue",ht.PolymerModule="@ag-grid-community/polymer";var vt=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&Je.doOnce((function(){console.warn("ag-Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) 
2- 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,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(e,t){if(this.isRegistered(e))return!0;var n=t+e,o="ag-Grid: unable to use "+t+" as module "+e+" is not present. Please see: https://www.ag-grid.com/javascript-grid-modules/";return Je.doOnce((function(){console.warn(o)}),n),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return Je.values(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),mt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ct=function(){function e(e,t,n,o){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new yt,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=n,this.primary=o}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.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.resetActualWidth();var n=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=Je.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!n,this.tooltipFieldContainsDots=Je.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!n,this.validate()},e.prototype.resetActualWidth=function(){this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(Je.missing(this.colDef)||Je.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function n(e,t,n){Je.doOnce((function(){n?console.warn(e,n):Je.doOnce((function(){return console.warn(e)}),t)}),t)}if(!vt.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){Je.exists(e[o])&&(vt.isPackageBased()?n("ag-Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):n("ag-Grid: "+o+" is only valid with ag-Grid Enterprise Module "+t.ModuleNames.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(vt.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(vt.isPackageBased()?n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),vt.isRegistered(t.ModuleNames.DateTimeCellEditorModule)||"agRichSelect"!==this.colDef.cellEditor&&"agDateTimeCellEditor"!==this.colDef.cellEditor||(vt.isPackageBased()?n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnDateTimeMissing"):n("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+t.ModuleNames.DateTimeCellEditorModule,"ColumnDateTimeMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){Je.exists(e[t])&&n("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}Je.exists(this.colDef.width)&&"number"!==typeof this.colDef.width&&n("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),Je.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup","ColumnCheck_sksldjf"),Je.get(this,"colDef.cellRendererParams.keyMap",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_ieiruhgdf"),Je.get(this,"colDef.cellRendererParams.keyMap",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_uitolghj"),e.floatingCellRenderer&&(n("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer","ColumnCheck_soihwewe"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&
2(n("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework","ColumnCheck_zdkiouhwer"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams","ColumnCheck_retiuhjs"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(n("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter","ColumnCheck_qwroeihjdf"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(n("ag-Grid: since v12, cellFormatter is now valueFormatter","ColumnCheck_eoireknml"),Je.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&n("ag-Grid: since v15, headerCellTemplate is gone, use header component instead.","ColumnCheck_eroihxcm"),e.headerCellRenderer&&n("ag-Grid: since v15, headerCellRenderer is gone, use header component instead.","ColumnCheck_terteuh"),e.volatile&&n("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells.","ColumnCheck_weoihjxcv"),e.suppressSorting&&(n("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.","ColumnCheck_43ljrer",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(n("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.","ColumnCheck_erlkhfdm",this.colDef),this.colDef.filter=!1),e.suppressResize&&(n("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.","ColumnCheck_weoihjxcv",this.colDef),this.colDef.resizable=!1),e.tooltip&&(n("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.","ColumnCheck_adslknjwef",this.colDef),this.colDef.tooltipValueGetter=e.tooltip),e.suppressToolPanel&&(n("ag-Grid: since v22, colDef.suppressToolPanel is gone, instead use suppressColumnsToolPanel / suppressFiltersToolPanel.","ColumnCheck_weihjlsjkdf",this.colDef),this.colDef.suppressColumnsToolPanel=!0)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.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()}},e.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},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"===typeof t?t:"function"===typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible}
2,e.prototype.isSortAscending=function(){return this.sort===je.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===je.SORT_DESC},e.prototype.isSortNone=function(){return Je.missing(this.sort)},e.prototype.isSorting=function(){return Je.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,o){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);o&&Je.mergeDeep(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===je.PINNED_LEFT?this.pinned=je.PINNED_LEFT:e===je.PINNED_RIGHT?this.pinned=je.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===je.PINNED_LEFT||this.pinned===je.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===je.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===je.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.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()}},e.prototype.getColSpan=function(e){if(Je.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(Je.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(t,n){void 0===n&&(n="api"),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.flex&&"flex"!==n&&(this.flex=0),this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,n)))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.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},e.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},e.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},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",mt([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),mt([lt("columnUtils")],e.prototype,"columnUtils",void 0),mt([lt("columnApi")],e.prototype,"columnApi",void 0),mt([lt("gridApi")],e.prototype,"gridApi",void 0),mt([lt("context")],e.prototype,"context",void 0),mt([it],e.prototype,"initialise",null),e}(),wt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bt=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new yt,this.groupId=t,this.instanceId=n,this.originalColumnGroup=e,this.pinned=o}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.forEac
2h((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=Je.last(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}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 n=!1;return this.children.forEach((function(o){t===o&&(n=!0),o instanceof e&&o.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n},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(n){n instanceof Ct?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof Ct?t.push(n):n instanceof e&&n.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.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var n=this;if(this.isPadding())for(;n.getParent()&&n.isPadding();)n=n.getParent();n.originalColumnGroup.isExpandable()?this.children.forEach((function(o){switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.originalColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:n.originalColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:o instanceof e&&o.isPadding()&&!o.displayedChildren.length||t.displayedChildren.push(o)}})):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",wt([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),Et=function(){function e(e,t,n,o){this.localEventService=new yt,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=n,this.level=o}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 n={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(n)},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.forEac
2h((function(n){n instanceof Ct?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?bt.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(Ct.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,o=!1,r=this.findChildren(),i=0,a=r.length;i<a;i++){var s=r[i];if(s.isVisible()){var l=s.getColumnGroupShow();if(l===bt.HEADER_GROUP_SHOW_OPEN)t=!0,o=!0;else if(l===bt.HEADER_GROUP_SHOW_CLOSED)n=!0,o=!0;else{if(t=!0,n=!0,l===bt.HEADER_GROUP_PADDING)o=o||s.children.some((function(e){return void 0!==e.getColumnGroupShow()}))}}}var u=t&&n&&o;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildren=function(){var t=this.children,n=t[0];if(n&&(!n.isPadding||!n.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}(),_t={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Ot=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rt=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 yt),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.addManagedListener=function(e,t,n){var o=this;if(!this.destroyed){e instanceof HTMLElement?Je.addSafePassiveEventListener(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function r(){return e.removeEventListener(t,n),o.destroyFunctions=o.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.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&e.forEach((function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",Ot([lt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Ot([lt("context")],e.prototype,"context",void 0),Ot([lt("eventService")],e.prototype,"eventService",void 0),Ot([at],e.prototype,"destroy",null),e}(),St=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Tt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pt=function(e,t){return function(n,o){t(n,o,e)}},Dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return St(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var o=new nt;if(n){var r=n.map((function(e){return e.getId()}));o.addExistingKeys(r)}var i=n?n.slice():null,a=this.recursivelyCreateColumns(e,0,t,i,o,null),s=this.findMaxDept(a,0);this.logger.log("Number of levels for grouped columns is "+s);var l=this.balanceColumnTree(a,0,s,o);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof Et&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:s}},t.prototype.createForAutoGroups=function(e,t){var n=this,o=[];return e.forEach((function(e){var r=n.createAutoGroupTreeItem(t,e);o.push(r)})),o},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,o=this.findDepth(e)-1;o>=0;o--){var r=new Et(null,"FAKE_PATH_"+t.getId()+"}_"+o,!0,o);this.context.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof Et;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,o){for(var r=[],i=0;i<e.length;i++){var a=e[i];if(a instanceof Et){var s=a,l=this.balanceColumnTree(s.getChildren(),t+1,n,o);s.setChildren(l),r.push(s)}else{for(var u=void 0,c=void 0,p=n-1;p>=t;p--){var d=o.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new Et(h,d,!0,t);this.context.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u){if(r.push(u),e.some((function(e){return e instanceof Et}))){c.setChildren([a]);continue}c.setChildren(e);break}r.push(a)}}return r},t.prototype.findMaxDept=function(e,t){for(var n=t,o=0;o<e.length;o++){var r=e[o];if(r instanceof Et){var i=r,a=this.findMaxDept(i.getChildren(),t+1);n<a&&(n=a)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,o,r,i){var a=this,s=[];return e?(e.forEach((function(e){var l;l=a.isColumnGroup(e)?a.createColumnGroup(n,e,t,o,r,i):a.createColumn(n,e,o,r,i),s.push(l)})),s):s},t.prototype.createColumnGroup=function(e,t,n,o,r,i){var a=this.createMergedColGroupDef(t),s=r.getUniqueKey(a.groupId,null),l=new Et(a,s,!1,n);this.context.createBean(l);var u=this.recursivelyCreateColumns(a.children,n+1,e,o,r,l);return l.setChildren(u),l},t.prototype.createMergedColGroupDef=function(e){var t={};return Je.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),Je.assign(t,e),this.checkForDeprecatedItems(t),t},t.prototype.createColumn=function(e,t,n,o,r){var i=this.mergeColDefs(t);this.checkForDeprecatedItems(i);var a=this.findExistingColumn(t,n);if(a)a.setColDef(i,t);else{var s=o.getUniqueKey(i.colId,i.field);a=new Ct(i,t,s,e),this.context.createBean(a)}return a},t.prototype.findExistingColumn=function(e,t){var n=Je.find(t,(function(t){var n=t.getUserProvidedColDef();return!!n&&(n===e||!(null===n.colId||void 0===n.colId)&&n.colId===e.colId)}));return n&&Je.removeFromArray(t,n),n},t.prototype.mergeColDefs=function(e){var t={};return Je.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),Je.assign(t,e),t},t.prototype.assignColumnTypes=function(e,t){var n;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[]'"):n=e.type}else{if("string"!==typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");n=e.type.split(",")}var o=Je.assign({},_t),r=this.gridOptionsWrapper.getColumnTypes()||{};
2Je.iterateObject(r,(function(e,t){e in o?console.warn("ag-Grid: the column type '"+e+"' is a default column type and cannot be overridden."):o[e]=t})),n.forEach((function(e){var n=o[e.trim()];n?Je.assign(t,n):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.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)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Tt([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Tt([lt("columnUtils")],t.prototype,"columnUtils",void 0),Tt([Pt(0,pt("loggerFactory"))],t.prototype,"setBeans",null),t=Tt([st("columnFactory")],t)}(Rt),At=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="columnAggFu
2ncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e}(),Nt=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t="number"!==typeof n?0:n+1,this.existingIds[e]=t,t},e}(),It=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ft=function(e,t){return function(n,o){t(n,o,e)}},kt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.secondaryColumnsPresent=!1,t.gridHeaderRowCount=0,t.displayedLeftColumns=[],t.displayedRightColumns=[],t.displayedCenterColumns=[],t.allDisplayedColumns=[],t.allDisplayedVirtualColumns=[],t.allDisplayedCenterVirtualColumns=[],t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.flexActive=!1,t}return It(t,e),t.prototype.init=function(){this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var e=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",this.onAutoGroupColumnDefChanged.bind(this))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns,r=this.columnFactory.createColumnTree(e,!0,o);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,o),this.extractPivotColumns(t,o),this.createValueColumns(t,o),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isImmutableColumns()&&n&&this.resetColumnState(!0,t);var i={type:At.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(i);var a={type:At.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(a),this.flexActive=this.getDisplayedCenterColumns().some((function(e){return!!e.getFlex()}))},t.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},t.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},t.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)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.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:At.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},t.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&
2(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.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)},t.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 n={type:At.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var n=this.getPrimaryColumn(t),o=null;return this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;Q(r,e)&&i===n&&(o=t)})),o},t.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,n=this.displayedRightColumns?Je.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?Je.last(this.displayedLeftColumns):null,n=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===n,e)}))},t.prototype.autoSizeColumns=function(e,t,n){var o=this;void 0===n&&(n="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 a=o.autoWidthCalculator.getPreferredWidthForColumn(e,t);if(a>0){var s=o.normaliseColumnWidth(e,a);e.setActualWidth(s,n),r.push(e),i++}return!0}),n);if(r.length){var a={type:At.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(a)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns([e],t,n)},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns(n,e,t)},t.prototype.getColumnsFromTree=function(e){var t=[];return function e(n){for(var o=0;o<n.length;o++){var r=n[o];r instanceof Ct?t.push(r):r instanceof Et&&e(r.getChildren())}}(e),t},t.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},t.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},t.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},t.prototype.getDisplayedColumnGroups=function(e){switch(e){case je.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case je.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},t.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},t.prototype.getDisplayedColumnsForRow=function(e,t,n,o){for(var r,i=[],a=null,s=function(s){var l,u=t[s],c=t.length-s,p=Math.min(u.getColSpan(e),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[s+f]);s+=h}if(n?(l=!1,d.forEach((function(e){n(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&a)!!o&&o(u)&&i.push(a);i.push(u)}a=u,r=s},l=0;l<t.length;l++)s(l),l=r;return i},t.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,n,(function(e){return e.getLeft()>t.viewportLeft}))},t.prototype.isColumnInViewport=function(e){var t=e.getLeft(),n=e.getLeft()+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&n<o)&&!(t>r&&n>r)},t.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},t.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},t.prototype.updatePrimaryColumnList=function(e,t,n,o,r,i){var a=this;if(void 0===i&&(i="api"),e&&!Je.missingOrEmpty(e)){var s=!1;if(e.forEach((function(e){var r=a.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;Je.removeFromArray(t,r)}o(r),s=!0}})),s){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)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,At.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),At.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),At.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),At.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,At.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){
2n.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),At.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,o,r){var i=this;t.length=0,Je.exists(e)&&e.forEach((function(e){var n=i.getPrimaryColumn(e);n&&t.push(n)})),this.primaryColumns.forEach((function(e){var n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var a={type:n,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(a)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,At.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),At.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),At.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,o){var r=this;void 0===o&&(o="api");var i=[];e.forEach((function(e){var n=r.getPrimaryOrGridColumn(e.key);if(n&&(i.push({width:e.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(t=!t),t)){var o=r.getDisplayedColAfter(n);if(!o)return;var a=n.getActualWidth()-e.newWidth,s=o.getActualWidth()+a;i.push({width:s,ratios:[1],columns:[o]})}})),0!==i.length&&(this.resizeColumnSets(i,n,o),this.flexActive&&this.refreshFlexedColumns())},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,o=0,r=0,i=!0;return t.forEach((function(e){o+=e.getMinWidth(),e.getMaxWidth()>0?r+=e.getMaxWidth():i=!1})),n>=o&&(!i||n<=r)},t.prototype.resizeColumnSets=function(e,t,n){if(!e||e.every(this.checkMinAndMaxWidthsForSet.bind(this))){var o=[],r=[];e.forEach((function(e){var t=e.width,i=e.columns,a=e.ratios,s={},l={};i.forEach((function(e){return r.push(e)}));for(var u=!0,c=0,p=function(){if(++c>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";u=!1;var e=[],n=0,o=t;i.forEach((function(t,r){if(l[t.getId()])o-=s[t.getId()];else{e.push(t);var i=a[r];n+=i}}));var r=1/n;e.forEach((function(n,i){var c;i===e.length-1?c=o:(c=Math.round(a[i]*t*r),o-=c),c<n.getMinWidth()?(c=n.getMinWidth(),l[n.getId()]=!0,u=!0):n.getMaxWidth()>0&&c>n.getMaxWidth()&&(c=n.getMaxWidth(),l[n.getId()]=!0,u=!0),s[n.getId()]=c}))};u;){if("break"===p())break}i.forEach((function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),o.push(e))}))}));var i=o.length>0;if(i&&(this.setLeftValues(n),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),i||t){var a={type:At.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(a)}}else if(t){var s=e&&e.length>0?e[0].columns:null,l={type:At.EVENT_COLUMN_RESIZED,columns:s,column:s&&1===s.length?s[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(l)}}
2,t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){e.setAggFunc(t);var o={type:At.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)}},t.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var o=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,o);var r={type:At.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)},t.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="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 o=this.getGridColumns(e);if(!!this.doesMovePassRules(o,t)){Je.moveInArray(this.gridColumns,o,t),this.updateDisplayedColumns(n);var r={type:At.EVENT_COLUMN_MOVED,columns:o,column:1===o.length?o[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},t.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return Je.moveInArray(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},t.prototype.doesMovePassLockedPositions=function(e){var t=!1,n=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(n=!1):t=!0})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof Et){var o=n;if(o.getColGroupDef()&&o.getColGroupDef().marryChildren){var r=[];o.getLeafColumns().forEach((function(t){var n=e.indexOf(t);r.push(n)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>o.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var o=this.gridColumns[e];this.moveColumn(o,t,n)},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case je.PINNED_LEFT:return this.leftWidth;case je.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),n=this.getWidthOfColsInList(this.displayedRightColumns);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var o={type:At.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},t.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},t.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},t.prototype.getDisplayedColumns=function(e){switch(e){case je.PINNED_LEFT:return this.getDisplayedLeftColumns();case je.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return Je.missingOrEmpty(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return Je.missingOrEmpty(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){var o=this;void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:At.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var o,r=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),o=!0===t||t===je.PINNED_LE
2FT?je.PINNED_LEFT:t===je.PINNED_RIGHT?je.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),n,(function(){return{type:At.EVENT_COLUMN_PINNED,pinned:o,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,t,n,o){var r=this;if(!Je.missingOrEmpty(e)){var i=[];if(e.forEach((function(e){var n=r.getGridColumn(e);n&&(!1!==t(n)&&i.push(n))})),i.length&&(this.updateDisplayedColumns(n),Je.exists(o)&&o)){var a=o();a.columns=i,a.column=1===i.length?i[0]:null,this.eventService.dispatchEvent(a)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getOriginalColumnGroup().getLevel()+e.getPaddingLevel(),o=e.getDisplayedLeafColumns(),r="After"===t?Je.last(o):o[0],i="getDisplayedCol"+t;;){var a=this[i](r);if(!a)return null;var s=this.getColumnGroupAtLevel(a,n);if(s!==e)return s}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();;){if(n.getOriginalColumnGroup().getLevel()+n.getPaddingLevel()<=t)break;n=n.getParent()}return n},t.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},t.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&Je.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},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:o,width:e.getActualWidth(),pivotIndex:n,pinned:e.getPinned(),rowGroupIndex:t,flex:e.getFlex()}},t.prototype.getColumnState=function(){if(Je.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},t.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,n){return t.indexOf(e.colId)-t.indexOf(n.colId)}))},t.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var n=this.getColumnsFromTree(this.primaryColumnTree),o=[],r=1e3,i=1e3;n&&n.forEach((function(e){var t=e.getColDef().rowGroupIndex,n=e.getColDef().rowGroup,a=e.getColDef().pivotIndex,s=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};Je.missing(t)&&n&&(l.rowGroupIndex=r++),Je.missing(a)&&s&&(l.pivotIndex=i++),o.push(l)})),this.setColumnState(o,e,t)},t.prototype.setColumnState=function(e,t,n){var o=this;if(void 0===t&&(t=!1),void 0===n&&(n="api"),Je.missingOrEmpty(this.primaryColumns))return!1;var r=this.getColumnState();this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var a=!0,s={},l={},u=[];if(e&&(e.forEach((function(e){if(Je.exists(o.getAutoColumn(e.colId)))u.push(e);else{var t=o.getPrimaryColumn(e.colId);t?(o.syncColumnWithStateItem(t,e,s,l,n),Je.removeFromArray(i,t)):(console.warn("ag-grid: column "+e.colId+" not found"),a=!1)}})),this.flexActive&&this.refreshFlexedColumns(void 0,void 0,!0)),i.forEac
2h(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,s)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),u.forEach((function(e){var t=o.getAutoColumn(e.colId);o.syncColumnWithStateItem(t,e,s,l,n)})),e){var c=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return c.indexOf(e.getId())-c.indexOf(t.getId())}))}if(this.putFixedColumnsFirst(),this.updateDisplayedColumns(n),!t){var p={type:At.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(p)}return this.raiseColumnEvents(r,n),a},t.prototype.raiseColumnEvents=function(e,t){var n=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var o=this.getColumnState(),r=function(r,i,a){if(!Q(e.map(i).sort(),o.map(i).sort())){var s={type:r,columns:a,column:1===a.length?a[0]:null,api:n.gridApi,columnApi:n.columnApi,source:t};n.eventService.dispatchEvent(s)}},i=function(t){var o=[],r={};return e.forEach((function(e){r[e.colId]=e})),n.gridColumns.forEach((function(e){var n=r[e.getColId()];n&&!t(n,e)||o.push(e)})),o};r(At.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns);r(At.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns);r(At.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 a=i((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(a,t);this.raiseColumnResizeEvent(i((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n={type:At.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},t.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n={type:At.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},t.prototype.raiseColumnResizeEvent=function(e,t){if(e.length){var n={type:At.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(n)}},t.prototype.raiseColumnMovedEvent=function(e,t){for(var n=[],o=this.getColumnState(),r=function(t){var r=e[t],a=o[t];if(!r||a.hide)return"continue";if(r.colId!==a.colId){var s=Je.find(i.allDisplayedColumns,(function(e){return e.getColId()===a.colId}));n.push(s)}},i=this,a=0;a<o.length;a++)r(a);if(n.length){var s={type:At.EVENT_COLUMN_MOVED,columns:n,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(s)}},t.prototype.sortColumnListUsingIndexes=function(e,t,n){return e[t.getId()]-e[n.getId()]},t.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)},t.prototype.syncColumnWithStateItem=function(e,t,n,o,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)):(Je.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),n[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,r),"number"===typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,r),o[e.getId()]=t.pivotIndex):e.setPivotActive(!1,r)}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var o=t(e);o&&n.push(o)})),n},t.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},t.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},t.prototype.getColumn=function(e,t){if(!e)return null;for(var n=0;n<t.length;n++)if(this.columnsMatch(t[n],e))return t[n];return this.getAutoColumn(e)},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&Je.exists(this.groupAutoColumns)&&!Je.missing(this.groupAutoColumns)?Je.find(this.groupAutoColumns,(function(n){return t.columnsMatch(n,e)})):null},t.prototype.columnsMatch=function(e,t){var n=e===t,o=e.getColDef()===t,r=e.getColId()==t;return n||o||r},t.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var o=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,o):o},t.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,n){var o=t?t.getColGroupDef():null;return o?this.getHeaderName(o,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,o,r){var i=e.headerValueGetter;if(i){var a={colDef:e,column:t,columnGroup:n,originalColumnGroup:o,location:r,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"===typeof i?i(a):"string"===typeof i?this.expressionService.evaluate(i,a):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?Je.camelCaseToHumanText(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,r=null;if(Je.exists(o))r=o?o.getAggFunc():null,n=!0;else{var i=e.isValueActive(),a=this.pivotMode||!this.isRowGroupEmpty();i&&a?(r=e.getAggFunc(),n=!0):n=!1}if(n){var s="string"===typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(s,s)+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof bt)return e;var n=this.getAllDisplayedColumnGroups(),o="number"===typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof bt){var i=n;(o?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},t.prototype.isReady=function(){return this.ready},t.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},t.prototype.extractColumns=function(e,t,n,o,r){var i=this;t||(t=[]);var a=t.filter((function(e){return i.primaryColumns.indexOf(e)<0})),s=t.filter((function(e){return i.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));a.forEach((function(e){return n(e,!1)}));var u=[];return l.forEach((function(e){"number"===typeof o(e.getColDef())&&u.push(e)})),u.sort((function(e,t){var n=o(e.getColDef()),r=o(t.getColDef());return n===r?0:n<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 n(e,!0)})),s.concat(u)},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.pivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof Et){var n={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(n)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof Et){var n=t;e.push({groupId:n.getGroupId(),open:n.isExpanded()})}})),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=n.getOriginalColumnGroup(t);
2i&&i.isExpanded()!==r&&(n.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),o.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),o.forEach((function(e){var t={type:At.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var o;void 0===n&&(n="api"),o=e instanceof Et?e.getId():e,this.setColumnGroupState([{groupId:o,open:t}],n)},t.prototype.getOriginalColumnGroup=function(e){if(e instanceof Et)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(n){if(n instanceof Et){var o=n;o.getId()===e&&(t=o)}})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&Je.includes(e.groupAutoColumns,t),o=e.valueColumns&&Je.includes(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&Je.includes(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){Je.exists(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&Je.exists(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},t.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var n=e&&e.length>0;if(n||this.secondaryColumnsPresent){if(n){this.processSecondaryColumnDefinitions(e);var o=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=o.columnTree,this.secondaryHeaderRowCount=o.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)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){e&&function e(o){o.forEach((function(o){if(Je.exists(o.children)){var r=o;n&&n(r),e(r.children)}else{t&&t(o)}}))}(e)}},t.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:At.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!Je.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(n){e.lastPrimaryOrder.indexOf(n)>=0&&(t=!1)})),!t){var n=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),o=this.gridColumns.filter((function(e){return n.indexOf(e)<0})),r=n.slice();o.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;
2){t.getLeafColumns().forEach((function(e){var t=r.indexOf(e)>=0,o=n.indexOf(e)<0;t&&o&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var o=n.map((function(e){return r.indexOf(e)})),i=Math.max.apply(Math,o);Je.insertIntoArray(r,e,i+1)}else r.push(e)}else r.push(e)})),this.gridColumns=r}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},t.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)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!Je.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)}},t.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=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.refreshFlexedColumns(void 0,void 0,!0),this.updateBodyWidths();var t={type:At.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.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)},t.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)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this,n=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(r){if(o){var i=t.getWidthOfColsInList(r);r.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var a=0;r.forEach((function(t){t.setLeft(a,e),a+=t.getActualWidth()}))}Je.removeAllFromArray(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))},t.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof bt&&e.checkLeft()}))}))},t.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof Ct&&t.push(e)}))},t.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},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;
2switch(e){case je.PINNED_LEFT:n=this.displayedLeftHeaderRows[t];break;case je.PINNED_RIGHT:n=this.displayedRightHeaderRows[t];break;default:n=this.displayedCentreHeaderRows[t]}return Je.missing(n)&&(n=[]),n},t.prototype.updateDisplayedVirtualGroups=function(e){this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={};var t=function t(n,o,r){for(var i=!1,a=0;a<n.length;a++){var s=n[a],l=void 0;if(s instanceof Ct)l=!0===e[s.getId()];else l=t(s.getDisplayedChildren(),o,r+1);l&&(i=!0,o[r]||(o[r]=[]),o[r].push(s))}return i};t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},t.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},t.prototype.filterOutColumnsWithinViewport=function(){return this.displayedCenterColumns.filter(this.isColumnInViewport.bind(this))},t.prototype.refreshFlexedColumns=function(e,t,n){if(void 0===t&&(t="flex"),this.flexActive&&(this.flexViewportWidth=e||this.flexViewportWidth,this.flexViewportWidth)){var o=this.displayedCenterColumns.filter((function(e){return!e.getFlex()})),r=this.displayedCenterColumns.filter((function(e){return e.getFlex()}));if(r.length){var i,a=[];e:for(;;){var s=r.reduce((function(e,t){return e+t.getFlex()}),0);i=this.flexViewportWidth-this.getWidthOfColsInList(o);for(var l=0;l<r.length;l++){var u=r[l],c=i*u.getFlex()/s,p=void 0;if(c<u.getMinWidth()?p=u.getMinWidth():null!=u.getMaxWidth()&&c>u.getMaxWidth()&&(p=u.getMaxWidth()),p){u.setActualWidth(p,t),Je.removeFromArray(r,u),o.push(u);continue e}a[l]=Math.round(c)}break}var d=i;r.forEach((function(e,n){e.setActualWidth(Math.min(a[n],d),t),d-=a[n]})),this.setLeftValues(t),n||(this.updateBodyWidths(),this.fireResizedEventForColumns(r,t))}else this.flexActive=!1}},t.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var r=[],i=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?i.push(e):r.push(e)}));var a=r.slice(0),s=!1,l=function(e){Je.removeFromArray(r,e),i.push(e)};for(r.forEach((function(e){return e.resetActualWidth()}));!s;){s=!0;var u=e-this.getWidthOfColsInList(i);if(u<=0)r.forEach((function(e){e.setMinimum(t)}));else for(var c=u/this.getWidthOfColsInList(r),p=u,d=r.length-1;d>=0;d--){var h=r[d],f=Math.round(h.getActualWidth()*c);if(f<h.getMinWidth())h.setMinimum(t),l(h),s=!1;else if(h.isGreaterThanMax(f))h.setActualWidth(h.getMaxWidth(),t),l(h),s=!1;else{0===d?h.setActualWidth(p,t):h.setActualWidth(f,t)}p-=f}}this.setLeftValues(t),this.updateBodyWidths(),n||this.fireResizedEventForColumns(a,t)}},t.prototype.fireResizedEventForColumns=function(e,t){var n=this;e.forEach((function(e){var o={type:At.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:n.gridApi,columnApi:n.columnApi,source:t};n.eventService.dispatchEvent(o)}))},t.prototype.buildDisplayedTrees=function(e){var t=[],n=[],o=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:o.push(e)}}));var r=new Nt;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,je.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,je.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,null,this.displayedCentreColumnTree)},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof bt&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.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(),n=this.gridOptionsWrapper.isGroupSuppressRow();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e&&!n){var o=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);(!this.autoColsEqual(o,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return Q(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.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}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n<t.length;n++){var o=this[t[n]]();if(o.length)return e?Je.last(o):o[0]}return null},xt([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),xt([lt("expressionService")],t.prototype,"expressionService",void 0),xt([lt("columnFactory")],t.prototype,"columnFactory",void 0),xt([lt("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),xt([lt("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),xt([lt("columnUtils")],t.prototype,"columnUtils",void 0),xt([lt("columnAnimationService")],t.prototype,"columnAnimationService",void 0),xt([lt("autoGroupColService")],t.prototype,"autoGroupColService",void 0),xt([ut("aggFuncService")],t.prototype,"aggFuncService",void 0),xt([ut("valueCache")],t.prototype,"valueCache",void 0),xt([ut("animationFrameService")],t.prototype,"animationFrameService",void 0),xt([lt("columnApi")],t.prototype,"columnApi",void 0),xt([lt("gridApi")],t.prototype,"gridApi",void 0),xt([it],t.prototype,"init",null),xt([Ft(0,pt("loggerFactory"))],t.prototype,"setBeans",null),t=xt([st("columnController")],t)}(Rt),Mt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mt(t,e),t.prototype.calculateColInitialWidth=function(e){var t=this.gridOptionsWrapper,n=null!=e.minWidth?e.minWidth:t.getMinColW
2idth(),o=null!=e.maxWidth?e.maxWidth:t.getMaxColWidth()||Je.getMaxSafeInteger(),r=null!=e.width?e.width:t.getColWidth();return Math.max(Math.min(r,o),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function t(r,i){for(var a=0;a<r.length;a++){if(o)return;var s=r[a];if(s instanceof Et)t(s.getChildren(),i+1),n[i]=s;else s===e&&(o=!0)}}(t,0),o?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var o=this;t&&t.forEach((function(t){t instanceof Et&&o.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof bt&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof bt&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},Lt([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=Lt([st("columnUtils")],t)}(Rt),Wt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wt(t,e),t.prototype.createDisplayedGroups=function(e,t,n,o,r){var i,a,s=this,l=[],u=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=s.getOriginalPathForColumn(t,e),c=[],p=!a,d=0;d<r.length;d++)if(p||r[d]!==a[d]){var h=s.createColumnGroup(r[d],n,u,o);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=i[d];0===c.length?l.push(e):Je.last(c).addChild(e);i=c,a=r})),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,n,o){var r=e.getGroupId(),i=t.getInstanceIdForKey(r),a=n[bt.createUniqueId(r,i)];return a&&a.getOriginalColumnGroup()!==e&&(a=null),Je.exists(a)?a.reset():(a=new bt(e,r,i,o),this.context.createBean(a)),a},t.prototype.mapOldGroupsById=function(e){var t={};return e&&function e(n){n.forEach((function(n){if(n instanceof bt){var o=n;t[n.getUniqueId()]=o,e(o.getChildren())}}))}(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof bt){var o=e;n.setupParentsIntoColumns(o.getChildren(),o)}}))},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function e(r,i){for(var a=0;a<r.length;a++){if(o)return;var s=r[a];if(s instanceof Et)e(s.getChildren(),i+1),n[i]=s;else s===t&&(o=!0)}}(e,0),o?n:(console.warn("could not get path"),null)},Vt([lt("columnUtils")],t.prototype,"columnUtils",void 0),t=Vt([st("displayedGroupCreator")],t)}(Rt),jt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o},Bt=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","cellFlashDelay","cellFadeDelay"],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","traverseNo
2de","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=jt(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}(),Ut=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o},zt=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=Ut(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}(),Yt=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 n=[];return t.forEach((function(t){var o=e.DEFAULT_BY_KEY[t];o?n.push(o):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===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var n=[];return t.forEach((function(t){var o=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(","));o=r}else o=t;n.push(o)})),n},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}(),qt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kt=function(e,t){return function(n,o){t(n,o,e)}},Qt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o};function Xt(e){return!0===e||"true"===e}var $t=function(){function e(){this.propertyEventService=new yt,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.removeEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener)},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var o=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),o),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"};Je.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupDefaultExpanded")),Je.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeFooter")),Je.exists(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&vt.assertRegistered(t.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(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" 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(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener)},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEac
2h((function(t){var n=Object.getOwnPropertyNames(t),o=Qt(zt.ALL_PROPERTIES,zt.FRAMEWORK_PROPERTIES);e.checkProperties(n,o,o,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=Qt(Bt.ALL_PROPERTIES,Bt.FRAMEWORK_PROPERTIES,Je.values(At).map((function(e){return Zt.getCallbackForEvent(e)}))),n=Qt(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,n,o,r){var i=Je.fuzzyCheckStrings(e,t,n);Je.iterateObject(i,(function(e,t){console.warn("ag-grid: invalid "+o+" 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 "+o+" properties please check: "+r)},e.prototype.getDomData=function(e,t){var n=e[this.domDataKey];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var o=e[this.domDataKey];Je.missing(o)&&(o={},e[this.domDataKey]=o),o[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return Xt(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return Xt(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return Xt(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return Xt(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===je.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===je.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===je.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return Je.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===je.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===je.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return Xt(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return Xt(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return Xt(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return Xt(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return Xt(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return Xt(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return Xt(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return Xt(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return Xt(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!Xt(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return Xt(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){var e=Xt(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return Xt(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return Xt(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return Xt(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return Xt(this.gridOptions.groupMultiAutoColumn)||Xt(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return Xt(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return Xt(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return Xt(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return Xt(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return Xt(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return Xt(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return Xt(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return Xt(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return Xt(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isPivotSuppressAutoColumn=function(){return Xt(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return Xt(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return Xt(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return Xt(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return Xt(this.gridOptions.suppressRowDrag)},e.prototype.isSuppressMoveWhenRowDragging=function(){return Xt(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isEnableMultiRowDragging=function(){return Xt(this.gridOptions.enableMultiRowDragging)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||je.DOM_LAYOUT_NORMAL;return-1===[je.DOM_LAYOUT_PRINT,je.DOM_LAYOUT_AUTO_HEIGHT,je.DOM_LAYOUT_NORMAL].indexOf(e)?(Je.doOnce((function(){return console.warn("ag-Grid: "+e+" is not val
2id for DOM Layout, valid values are "+je.DOM_LAYOUT_NORMAL+", "+je.DOM_LAYOUT_AUTO_HEIGHT+" and "+je.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),je.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return Xt(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return Xt(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Xt(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return Xt(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return Xt(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return Xt(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return Xt(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return Xt(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return Xt(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return Xt(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return Xt(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return Xt(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return Xt(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return Xt(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return Xt(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return Xt(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return Xt(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return this.gridOptions.undoRedoCellEditingLimit},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return Xt(this.gridOptions.embedFullWidthRows)||Xt(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isImmutableData=function(){return Xt(this.gridOptions.immutableData)},e.prototype.isImmutableColumns=function(){return Xt(this.gridOptions.immutableColumns)},e.prototype.isEnsureDomOrder=function(){return Xt(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!Xt(this.gridOptions.enableCharts)&&vt.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return Xt(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return Xt(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return Xt(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.isPaginateChildRows=function(){return!!(this.isGroupSuppressRow()||this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren())||Xt(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return Xt(this.gridOptions.purgeClosedRowNodes
2)},e.prototype.isSuppressPaginationPanel=function(){return Xt(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(e){return!e&&Xt(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return Xt(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return Xt(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return Xt(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return Xt(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return Xt(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return Xt(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return Xt(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return Xt(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return Xt(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return Xt(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return Xt(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return Xt(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Xt(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return Xt(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return Xt(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return Xt(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return Xt(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return Xt(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return Xt(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return Xt(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return Xt(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Xt(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getAsyncTransactionWaitMillis=function(){return Je.exists(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:je.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return Xt(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Xt(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return Xt(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return Xt(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return Xt(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return vt.isRegistered(t.ModuleNames.RangeSelectionModule)&&Xt(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return Xt(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return Xt(this.gridOptions.enableFillHandle)},e.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},e.prototype.isSuppressMultiRangeSelection=function(){return Xt(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return Xt(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return Xt(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){return!!Xt(this.gridOptions.masterDetail)&&vt.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return Xt(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){return this.gridOptions.keepDetailRowsCount>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return Xt(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return Xt(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return Xt(this.gridOptions.suppressParentsInRowNodes
2)},e.prototype.isFunctionsReadOnly=function(){return Xt(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return Xt(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return Xt(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return Xt(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return Xt(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return Xt(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Xt(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){return!!Xt(this.gridOptions.treeData)&&vt.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return Xt(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return Xt(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return Xt(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return Xt(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return e=this.gridOptions.viewportRowModelPageSize,t=5,e>0?e:t;var e,t},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return Xt(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return Je.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=!1);var o=this.gridOptions,r=o[e];if(n||r!==t){o[e]=t;var i={type:e,currentValue:t,previousValue:r};this.propertyEventService.dispatchEvent(i)}},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===je.DOM_LAYOUT_AUTO_HEIGHT,n=e===je.DOM_LAYOUT_PRINT,o=e===je.DOM_LAYOUT_NORMAL;
2this.layoutElements.forEach((function(e){Je.addOrRemoveCssClass(e,"ag-layout-auto-height",t),Je.addOrRemoveCssClass(e,"ag-layout-normal",o),Je.addOrRemoveCssClass(e,"ag-layout-print",n)}))},e.prototype.addEventListener=function(e,t){n.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,t)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"===typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"===typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipShowDelay=function(){var e=this.gridOptions.tooltipShowDelay;return Je.exists(e)?(e<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,e)):null},e.prototype.isTooltipMouseTrack=function(){return Xt(this.gridOptions.tooltipMouseTrack)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&Je.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&Je.exists(e)?e:document},e.prototype.getMinColWidth=function(){if(this.gridOptions.minColWidth>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var e=this.getFromTheme(null,"headerCellMinWidth");return Math.max(e,n.MIN_COL_WIDTH)},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"===typeof e?e<0&&(Je.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=je.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollWidth){var e="number"===typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0;this.scrollWidth=e?this.gridOptions.scrollbarWidth:Je.getScrollbarWidth()}return this.scrollWidth},e.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 
2infiniteInitialRowCount"),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 n={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},o={};
2Object.keys(n).forEach((function(t){var r=n[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),o[r]=i}})),Object.keys(o).length>0&&!Je.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=Yt.parse(t.sideBar));var r=this.gridOptions.sideBar;if(Object.keys(o).length>0&&r&&r.toolPanels){var i=r.toolPanels.filter((function(e){return"columns"===e.id}));1===i.length&&Je.mergeDeep(i[0],{componentParams:o})}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 a=function(e,n,o){null!=t[e]&&(console.warn("ag-grid: since version "+o+", '"+e+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==t[n]&&(t[n]=t[e]))};a("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),a("deltaRowDataMode","immutableData","23.1.x"),a("deltaColumnMode","immutableColumns","23.1.x")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&Je.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()&&(Je.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."),Je.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."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this.gridOptions.localeText;return function(t,n){return e&&e[t]?e[t]:n}},e.prototype.globalEventHandler=function(e,t){var n=Zt.getCallbackForEvent(e);"function"===typeof this.gridOptions[n]&&this.gridOptions[n](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||Je.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())},e.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 n={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context},o=this.gridOptions.getRowHeight(n);if(null!=o)return{height:o,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,a=Math.min(r,i);if(this.columnController.isAutoRowHeightActive()){if(t)return{height:i,estimated:!0};var s=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(s,a),estimated:!1}}return{height:i,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"===typeof e},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",qt([lt("gridOptions")],e.prototype,"gridOptions",void 0),qt([lt("columnController")],e.prototype,"columnController",void 0),qt([lt("eventService")],e.prototype,"eventService",void 0),qt([lt("environment")],e.prototype,"environment",void 0),qt([lt("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),qt([Kt(0,pt("gridApi")),Kt(1,pt("columnApi"))],e.prototype,"agWire",null),qt([at],e.prototype,"destroy",null),qt([it],e.prototype,"init",null),e=n=qt([st("gridOptionsWrapper")],e)}(),Jt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o},Zt=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,n,o){void 0===o&&(o=!1),en(n),"object"!==typeof t&&(t={});var r=t,i=function(e){return"undefined"!==typeof n[e]};return Jt(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEac
2h((function(e){return r[e]=n[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toBoolean(n[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return r[t]=e.toNumber(n[t])})),o||e.EVENTS.filter((function(t){return i(t)||i(e.getCallbackForEvent(t))})).forEach((function(e){return $t.checkEventDeprecation(e)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,n,o,r){if(t){en(t);var i=n,a=function(e){return t[e]};Jt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(a).forEach((function(e){return i[e]=t[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(a).forEach((function(n){return i[n]=e.toBoolean(t[n].currentValue)})),e.NUMBER_PROPERTIES.filter(a).forEach((function(n){return i[n]=e.toNumber(t[n].currentValue)})),t.enableCellTextSelection&&o.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&o.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&o.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&o.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&o.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&o.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.autoGroupColumnDef&&o.setAutoGroupColumnDef(t.autoGroupColumnDef.currentValue,"gridOptionsChanged"),t.columnDefs&&o.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&o.setDatasource(t.datasource.currentValue),t.headerHeight&&o.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&o.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&r.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&o.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&o.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.suppressMoveWhenRowDragging&&o.setSuppressMoveWhenRowDragging(e.toBoolean(t.suppressMoveWhenRowDragging.currentValue)),t.suppressRowClickSelection&&o.setSuppressRowClickSelection(e.toBoolean(t.suppressRowClickSelection.currentValue)),t.gridAutoHeight&&o.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&o.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&o.setSideBar(t.sideBar.currentValue);var s={type:At.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};Je.iterateObject(t,(function(e,t){s[e]=t})),o.dispatchEvent(s)}},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=Bt.STRING_PROPERTIES,e.OBJECT_PROPERTIES=Bt.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=Bt.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=Bt.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=Bt.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=Bt.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=Bt.ALL_PROPERTIES,e}();function en(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}Zt.EVENTS=Je.values(At);var tn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),nn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},on=new Ze,rn=function(e){function t(t){var n=e.call(this)||this;return n.annotatedGuiListeners=[],n.displayed=!0,n.visible=!0,n.compId=on.next(),t&&n.setTemplate(t),n}return tn(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e,t){var n=this,o=Je.copyNodeList(e.childNodes);
2Je.forEach(o,(function(o){if(o instanceof HTMLElement){var r=n.createComponentFromElement(o,(function(e){n.copyAttributesFromNode(o,e.getGui())}),t);if(r){if(r.addItems&&o.children.length){n.createChildComponentsFromTags(o);var i=Array.prototype.slice.call(o.children);r.addItems(i)}n.swapComponentForNode(r,e,o)}else o.childNodes&&n.createChildComponentsFromTags(o)}}))},t.prototype.createComponentFromElement=function(e,t,n){var o=e.nodeName,r=n?n[e.getAttribute("ref")]:void 0,i=this.agStackComponentsRegistry.getComponentClass(o);if(i){var a=new i(r);return this.createBean(a,null,t),a}return null},t.prototype.copyAttributesFromNode=function(e,t){Je.iterateNamedNodeMap(e.attributes,(function(e,n){return t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var o=e.getGui();t.replaceChild(o,n),t.insertBefore(document.createComment(n.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var n=this;this.iterateOverQuerySelectors((function(o){n[o.attributeName]===t&&(n[o.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var n=t.__agComponentMetaData,o=t.constructor.name;n&&n[o]&&n[o].querySelectors&&Je.forEach(n[o].querySelectors,(function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=Je.loadTemplate(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedGuiEventListeners(),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(n){var o=e.eGui.querySelector(n.querySelector);o&&(t[n.attributeName]=o.__agComponent||o)}))}},t.prototype.addAnnotatedGuiEventListeners=function(){var e=this;if(this.removeAnnotatedGuiEventListeners(),this.eGui){var t=this.getAgComponentMetaData("guiListenerMethods");t&&(this.annotatedGuiListeners||(this.annotatedGuiListeners=[]),t.forEach((function(t){var n=e.getRefElement(t.ref);if(n){var o=e[t.methodName].bind(e);n.addEventListener(t.eventName,o),e.annotatedGuiListeners.push({eventName:t.eventName,listener:o,element:n})}})))}},t.prototype.addAnnotatedGridEventListeners=function(){var e=this,t=this.getAgComponentMetaData("gridListenerMethods");t&&t.forEach((function(t){var n=e[t.methodName].bind(e);e.addManagedListener(e.eventService,t.eventName,n)}))},t.prototype.getAgComponentMetaData=function(e){for(var t=[],n=Object.getPrototypeOf(this);null!=n;){var o=n.__agComponentMetaData,r=n.constructor.name;if(void 0===r){var i=/function\s([^(]{1,})\(/.exec(n.constructor.toString());i&&i.length>1&&(r=i[1].trim())}o&&o[r]&&o[r][e]&&(t=t.concat(o[r][e])),n=Object.getPrototypeOf(n)}return t},t.prototype.removeAnnotatedGuiEventListeners=function(){this.annotatedGuiListeners&&(Je.forEach(this.annotatedGuiListeners,(function(e){e.element.removeEventListener(e.eventName,e.listener)})),this.annotatedGuiListeners=[])},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),Je.isNodeOrElement(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,n))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,Je.setVisible(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,Je.setDisplayed(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.removeAnnotatedGuiEventListeners(),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){Je.addCssClass(this.eGui,e)},t.prototype.removeCssClass=function(e){Je.removeCssClass(this.eGui,e)},t.prototype.addOrRemoveCssClass=function(e,t){Je.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",nn([lt("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),nn([rt],t.prototype,"createChildComponentsPreConstruct",null),nn([it],t.prototype,"addAnnotatedGridEventListeners",null),t}(Rt),an=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return an(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){Je.addCssClass(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&Je.removeCssClass(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(rn);function ln(e){return un.bind(this,"[ref="+e+"]")}function un(e,t,n,o){null!==e?"number"!==typeof o?dn(t,"querySelectors",{attributeName:n,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function cn(e,t,n){null!=e?dn(t,"gridListenerMethods",{methodName:n,eventName:e}):console.error("ag-Grid: GridListener eventName is missing")}function pn(e,t,n,o){null!=t?dn(n,"guiListenerMethods",{methodName:o,eventName:t,ref:e}):console.error("ag-Grid: GuiListener eventName is missing")}function dn(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,e.constructor.name);o[t]||(o[t]=[]),o[t].push(n)}var hn,fn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return fn(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===je.KEY_BACKSPACE||e.keyPress===je.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==je.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e));Je.exists(t)&&n.setValue(t,!0),this.addManagedListener(n.getGui(),"keydown",(function(e){var t=e.keyCode===je.KEY_PAGE_UP,n=e.keyCode===je.KEY_PAGE_DOWN;(t||n)&&e.preventDefault()}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;Je.isBrowserSafari()||e.getFocusableElement().focus();var t=e.getInputElement();if(this.highlightAllOnFocus)t.select();else{var n=e.getValue(),o=Je.exists(n)&&n.length||0;o&&t.setSelectionRange(o,o)}}}
2,t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.focusOut=function(){var e=this.eInput.getInputElement();Je.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>',gn([ln("eInput")],t.prototype,"eInput",void 0),t}(sn),vn=function(){function e(e,t,n,o){var r=this;this.alive=!0,this.context=e,t.newDateComponent(n).then((function(t){r.alive?(r.dateComp=t,o.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),r.tempValue&&t.setDate(r.tempValue)):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},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}(),mn=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.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){if("string"!==typeof t){ee(["displayKey","displayName","test"],(function(e){return!!t[e]||(console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a '"+e+"'"),!1)}))&&(e.customFilterOptions[t.displayKey]=t)}}))},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}(),Cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bn=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 Cn(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">\n                    '+this.createBodyTemplate()+"\n                </div>\n            </div>";this.setTemplate(e)},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){if(t.checkForDeprecatedParams(e),this.providedFilterParams=e,"keep"===e.newRowsAction)this.newRowsActionKeep=!0;else if("clear"===e.newRowsAction)this.newRowsActionKeep=!1;else{var n=[je.ROW_MODEL_TYPE_SERVER_SIDE,je.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=n.indexOf(this.rowModel.getType())>=0}this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(t&&!(t.length<1)){var n=this.gridOptionsWrapper.getLocaleTextFunc(),o=document.createElement("div");
2P(o,"ag-filter-apply-panel");new Set(t).forEach((function(t){return function(t){var r,i;switch(t){case"apply":r=n("applyFilter","Apply Filter"),i=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":r=n("clearFilter","Clear Filter"),i=function(){return e.onBtClear()};break;case"reset":r=n("resetFilter","Reset Filter"),i=function(){return e.onBtReset()};break;case"cancel":r=n("cancelFilter","Cancel Filter"),i=function(t){e.onBtCancel(t)};break;default:return void console.warn("Unknown button type specified")}var a=L('<button\n                    type="button"\n                    ref="'+t+'FilterButton"\n                    class="ag-standard-button ag-filter-apply-panel-button">'+r+"</button>");o.appendChild(a),e.addManagedListener(a,"click",i)}(t)})),this.getGui().appendChild(o)}},t.checkForDeprecatedParams=function(e){var t=e.buttons||[];if(!(t.length>0)){var n=e.applyButton,o=e.resetButton;e.clearButton&&(console.warn("ag-Grid: as of ag-Grid v23.2, filterParams.clearButton is deprecated. Please use filterParams.buttons instead"),t.push("clear")),o&&(console.warn("ag-Grid: as of ag-Grid v23.2, filterParams.resetButton is deprecated. Please use filterParams.buttons instead"),t.push("reset")),n&&(console.warn("ag-Grid: as of ag-Grid v23.2, filterParams.applyButton is deprecated. Please use filterParams.buttons instead"),t.push("apply")),e.apply&&(console.warn("ag-Grid: as of ag-Grid v21, filterParams.apply is deprecated. Please use filterParams.buttons instead"),t.push("apply")),e.buttons=t}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=Ie(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){var t=this;return(e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this;this.setModelIntoUi(this.getModel()).then((function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)}))},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&!e&&this.applyActive&&this.close(n)},t.prototype.onNewRowsLoaded=function(){var e=this;this.newRowsActionKeep||this.resetUiToDefaults().then((function(){return e.appliedModel=null}))},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,o=n&&n.key;"Enter"!==o&&"Space"!==o||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive){var n=this.isModelValid(this.getModelFromUi());x(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){this.hidePopup=e.hidePopup},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return t.checkForDeprecatedParams(e),e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},wn([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),wn([lt("rowModel")],t.prototype,"rowModel",void 0),wn([it],t.prototype,"postConstruct",null),t}(rn),En=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_n=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(hn||(hn={}));var On,Rn={filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",andCondition:"AND",orCondition:"OR"},Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return En(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(hn.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(hn.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(hn.One),condition2:this.createCondition(hn.Two
2)}:this.createCondition(hn.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 n,o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;if(o){var i=e,a=t;n=this.areSimpleModelsEqual(i,a)}else{var s=e,l=t;n=s.operator===l.operator&&this.areSimpleModelsEqual(s.condition1,l.condition1)&&this.areSimpleModelsEqual(s.condition2,l.condition2)}return n},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,n="OR"===t.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,hn.One),this.setConditionIntoUi(t.condition2,hn.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(!0),this.eJoinOperatorOr.setValue(!1),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,hn.One),this.setConditionIntoUi(null,hn.Two)}return et.resolve()},t.prototype.doesFilterPass=function(e){var t=this.getModel();if(t.operator){var n=t,o=this.individualConditionPasses(e,n.condition1),r=this.individualConditionPasses(e,n.condition2);return"AND"===n.operator?o&&r:o||r}var i=t;return this.individualConditionPasses(e,i)},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new mn,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();ne(t,(function(t){var n,o;if("string"===typeof t)n=t,o=e.translate(n);else{n=t.displayKey;var r=e.optionsFactory.getCustomOption(n);o=r?r.displayName:e.translate(n)}var i=function(){return{value:n,text:o}};e.eType1.addOption(i()),e.eType2.addOption(i())}));var n=t.length<=1;this.eType1.setDisabled(n),this.eType2.setDisabled(n)},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(hn.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>
2\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(hn.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.isConditionUiComplete(hn.One),t=this.allowTwoConditions&&e;I(this.eCondition2Body,t),I(this.eType2.getGui(),t),I(this.eJoinOperatorPanel,t)},t.prototype.resetUiToDefaults=function(e){var t="ag-simple-filter-and-or-"+this.getCompId(),n=this.optionsFactory.getDefaultOption();return this.eType1.setValue(n,e),this.eType2.setValue(n,e),this.eJoinOperatorAnd.setValue(!0,e).setName(t).setLabel(this.translate("andCondition")),this.eJoinOperatorOr.setValue(!1,e).setName(t).setLabel(this.translate("orCondition")),et.resolve()},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,Rn[e])},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",_n([ln("eOptions1")],t.prototype,"eType1",void 0),_n([ln("eOptions2")],t.prototype,"eType2",void 0),_n([ln("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),_n([ln("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),_n([ln("eCondition2Body")],t.prototype,"eCondition2Body",void 0),_n([ln("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),t}(bn),Tn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tn(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,n,o){if(null==o)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()(n,o)},t.prototype.individualConditionPasses=function(e,n){var o=this.scalarFilterParams.valueGetter(e.node),r=this.mapRangeFromModel(n),i=r.from,a=r.to,s=n.type,l=this.optionsFactory.getCustomOption(s);if(l&&(null!=i||l.hideFilterInput))return l.test(i,o);var u=this.nullComparator(s,i,o);switch(s){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 c=this.nullComparator(s,a,o);return this.scalarFilterParams.inRangeInclusive?u>
2=0&&c<=0:u>0&&c<0;default:throw new Error("Unexpected type of filter: "+s)}},t}(Sn),Dn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),An=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dn(t,e),t.prototype.mapRangeFromModel=function(e){return{from:me(e.dateFrom),to:me(e.dateTo)}},t.prototype.setValueFromFloatingFilter=function(e){if(null!=e){var t=me(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 n=e?[me(e.dateFrom),me(e.dateTo)]:[null,null],o=n[0],r=n[1],i=this.getFromToComponents(t),a=i[0],s=i[1];a.setDate(o),s.setDate(r)},t.prototype.resetUiToDefaults=function(t){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){n.dateCondition1FromComp.setDate(null),n.dateCondition1ToComp.setDate(null),n.dateCondition2FromComp.setDate(null),n.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 vn(this.getContext(),this.userComponentFactory,t,this.eCondition1PanelFrom),this.dateCondition1ToComp=new vn(this.getContext(),this.userComponentFactory,t,this.eCondition1PanelTo),this.dateCondition2FromComp=new vn(this.getContext(),this.userComponentFactory,t,this.eCondition2PanelFrom),this.dateCondition2ToComp=new vn(this.getContext(),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===hn.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===hn.One?this.getCondition1Type():this.getCondition2Type();if(t===Sn.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(t))return!0;var n=this.getFromToComponents(e),o=n[0],r=n[1];return null!=o.getDate()&&(t!==Sn.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 n=e===hn.One?this.getCondition1Type():this.getCondition2Type(),o=this.getFromToComponents(e),r=o[0],i=o[1];return{dateFrom:ve(r.getDate()),dateTo:ve(i.getDate()),type:n,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();I(this.eCondition1PanelFrom,this.showValueFrom(t)),I(this.eCondition1PanelTo,this.showValueTo(t));var n=this.getCondition2Type();I(this.eCondition2PanelFrom,this.showValueFrom(n)),I(this.eCondition2PanelTo,this.showValueTo(n))},t.prototype.getFromToComponents=function(e){return e===hn.One?[this.dateCondition1FromComp,this.dateCondition1ToComp]:[this.dateCondition2FromComp,this.dateCondition2ToComp]},t.FILTER_TYPE="date",t.DEFAULT_FILTER_OPTIONS=[Pn.EQUALS,Pn.GREATER_THAN,Pn.LESS_THAN,Pn.NOT_EQUAL,Pn.IN_RANGE],An([ln("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),An([ln("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),An([ln("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),An([ln("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),An([lt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Pn),In=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new yt,this.eElement=e,this.preventMouseClick=t;var o=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",o,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",i,{passive:!1})}
2))}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 n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var o=this.touchStart;window.setTimeout((function(){var r=n.touchStart===o;if(n.touching&&r&&!n.moved){n.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t};n.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!Je.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var n={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),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 n={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(n),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}(),xn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return xn(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=Je.firstExistingValue(e.template,t.TEMPLATE);n=n&&n.trim?n.trim():n,this.setTemplate(n),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=Je.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,n){if(null!=t){var o=Je.createIconNoSpan(e,this.gridOptionsWrapper,n);t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new In(this.getGui(),!0),o=t.isSuppressMenuHide(),r=o&&Je.exists(this.eMenu),i=r?new In(this.eMenu,!0):n;if(this.params.enableMenu){var a=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(i,In[a],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,In.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.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||Je.isIOSUserAgent()&&!t)Je.removeFromParent(this.eMenu);else{this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0");var n=this.eMenu.style;n.transition="opacity 0.2s, border 0.2s",n["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.setActiveParent=function(e){this.gridOptionsWrapper.isSuppressMenuHide()||
2(this.eMenu.style.opacity=e?"1":"0")},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){Je.removeFromParent(this.eSortAsc),Je.removeFromParent(this.eSortDesc),Je.removeFromParent(this.eSortNone),Je.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,Ct.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var o=e.params.column.isMoving(),r=(new Date).getTime()-e.lastMovingChanged<50;if(!(o||r)){var i=t?n.ctrlKey||n.metaKey:n.shiftKey;e.params.progressSort(i)}})),this.addManagedListener(this.params.column,Ct.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,At.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(Je.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),Je.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),Je.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&Je.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&Je.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();Je.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(),n=t.indexOf(e),o=t.length>1,r=e.isSorting()&&o;Je.setDisplayed(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():Je.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,Ct.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();Je.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container">\n            <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n            <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on">\n                <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span>\n                <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n                <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>\n                <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>\n                <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>\n                <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>\n            </div>\n        </div>',Fn([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fn([lt("sortController")],t.prototype,"sortController",void 0),Fn([lt("menuFactory")],t.prototype,"menuFactory",void 0),Fn([ln("eFilter")],t.prototype,"eFilter",void 0),Fn([ln("eSortAsc")],t.prototype,"eSortAsc",void 0),Fn([ln("eSortDesc")],t.prototype,"eSortDesc",void 0),Fn([ln("eSortNone")],t.prototype,"eSortNone",void 0),Fn([ln("eSortOrder")],t.prototype,"eSortOrder",void 0),Fn([ln("eMenu")],t.prototype,"eMenu",void 0),Fn([ln("eLabel")],t.prototype,"eLabel",void 0),Fn([ln("eText")],t.prototype,"eText",void 0),t}(rn),Mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ln=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gn=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Mn(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},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(!Je.isStopPropagationForAgGrid(t)){var n=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Je.stopPropagationForAgGrid(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var o=this.params.columnGroup.getOriginalColumnGroup();this.addManagedListener(o,Et.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(o,Et.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new In(e);this.addManagedListener(n,In.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();Je.setDisplayed(this.eOpenIcon,e),Je.setDisplayed(this.eCloseIcon,!e)}else Je.setDisplayed(this.eOpenIcon,!1),Je.setDisplayed(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Je.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Je.setDisplayed(this.eOpenIcon,!1),void Je.setDisplayed(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(Je.exists(e)){var t=Je.escape(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">
2\n            <span ref="agLabel" class="ag-header-group-text" role="columnheader"></span>\n            <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n            <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n        </div>',Ln([lt("columnController")],t.prototype,"columnController",void 0),Ln([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ln([ln("agOpened")],t.prototype,"eOpenIcon",void 0),Ln([ln("agClosed")],t.prototype,"eCloseIcon",void 0),t}(rn),Wn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vn=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 n=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(n)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,o){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:o}},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 n=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(n)},e.prototype.getRowIndexString=function(){return this.rowPinned===je.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===je.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.createBean(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 n=Je.exists(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,n),this.checkRowSelectable();var r=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(r)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&Je.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(t){var n=this.gridOptionsWrapper.getRowNodeIdFunc();n?this.data?(this.id=n(this.data),this.id&&this.id.startsWith&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("ag-Grid: Row ID's cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for ag-Grid's row grouping feature.")):this.id=void 0:this.id=t},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.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,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 n=Je.assign({},this.createGlobalRowEvent(At.EVENT_ROW_GROUP_OPENED),{expanded:t});this.mainEventService.dispatchEvent(n),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 n=this.columnController.getPrimaryColumn(e),o=this.valueService.getValue(n,this);this.valueService.setValue(this,n,t),this.dispatchCellChangedEvent(n,t,o)},e.prototype.setGroupValue=function(e,t){var n=this.columnController.getGridColumn(e);Je.missing(this.groupData)&&(this.groupData={});var o=n.getColId(),r=this.groupData[o];r!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(n,t,r))},e.prototype.setAggData=function(e){var t=this,n=Je.getAllKeysInObjects([this.aggData,e]),o=this.aggData;
2this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.columnController.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(n,r,i)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyRowGroupNode=function(){return this.group&&Je.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n,o){var r={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n,oldValue:o};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,n=!1,o=!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:n=!0;break;default:o=!0}}e=o?void 0:!(!t||n)||!(!t&&n)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===je.PINNED_TOP||this.rowPinned===je.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),n=!0===e.newValue,o=!0===e.clearSelection,r=!0===e.suppressFinishActions,i=!0===e.rangeSelect,a=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 s=this.selectionController.getLastSelectedNode()!==this,l=this.gridOptionsWrapper.isRowSelectionMulti();if(s&&l)return this.doRowRangeSelection()}var u=0;a&&this.group||this.selectThisNode(n)&&u++;if(t&&this.group&&(u+=this.selectChildNodes(n,a)),!r){if(n&&(o||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var c={type:At.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(c)}n&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=this.gridOptionsWrapper.isGroupSelectsChildren(),t=this.selectionController.getLastSelectedNode(),n=this.rowModel.getNodesInRangeForSelection(this,t),o=0;n.forEach((function(t){t.group&&e||t.selectThisNode(!0)&&o++})),this.selectionController.updateGroupsFromChildrenSelections();var r={type:At.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(r),o},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){var n=!this.selectable&&t,o=this.selected===t;if(n||o)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var r=this.createGlobalRowEvent(At.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(r),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterFilter:this.childrenAfterGroup;if(!Je.missing(n)){for(var o=0,r=0;r<n.length;r++)o+=n[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return o}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new yt),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,n=this,o=!0,r=!1;o&&!r;){var i=n.parent;Je.exists(i)&&n.firstChild?i.rowGroupColumn===e&&(r=!0,t=i):o=!1,n=i}return r?t:null},e.prototype.isFullWidthCell=function(){var e=this.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e(this)},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",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_MASTER_CHANGED="masterChanged",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="firstChildCh
2anged",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",Wn([lt("eventService")],e.prototype,"mainEventService",void 0),Wn([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wn([lt("selectionController")],e.prototype,"selectionController",void 0),Wn([lt("columnController")],e.prototype,"columnController",void 0),Wn([lt("valueService")],e.prototype,"valueService",void 0),Wn([lt("rowModel")],e.prototype,"rowModel",void 0),Wn([lt("context")],e.prototype,"context",void 0),Wn([lt("valueCache")],e.prototype,"valueCache",void 0),Wn([lt("columnApi")],e.prototype,"columnApi",void 0),Wn([lt("gridApi")],e.prototype,"gridApi",void 0),e}(),Hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bn=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 Hn(t,e),t.prototype.postConstruct=function(){Je.addCssClass(this.getGui(),"ag-labeled"),Je.addCssClass(this.eLabel,"ag-label");var e=this.config,t=e.labelSeparator,n=e.label,o=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){this.eLabel.innerText=this.label+this.labelSeparator,Je.addOrRemoveCssClass(this.eLabel,"ag-hidden",""===this.label)},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,null!=this.label&&this.refreshLabel(),this)},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return Je.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),Je.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),Je.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label?this:(Je.setElementWidth(this.eLabel,e),this)},jn([it],t.prototype,"postConstruct",null),t}(rn),Un=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return Un(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),P(this.getGui(),this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return V(this.getGui(),e),this},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e?this:(this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED}),this)},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return x(t,e),A(t,"ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(Bn),Yn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kn=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 Yn(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),P(this.eLabel,this.className+"-label"),P(this.eWrapper,this.className+"-input-wrapper"),P(this.eInput,this.className+"-input"),P(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 n=this.config,o=n.width,r=n.value;null!=o&&this.setWidth(o),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){var n=t.target.value;e.setValue(n)}))},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 W(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 x(this.eInput,t),e.prototype.setDisabled.call(this,t)},t.prototype.setInputAriaLabel=function(e){return this.eInput.setAttribute("aria-label",e),this},qn([ln("eLabel")],t.prototype,"eLabel",void 0),qn([ln("eWrapper")],t.prototype,"eWrapper",void 0),qn([ln("eInput")],t.prototype,"eInput",void 0),t}(zn),Qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$n=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 Qn(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(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){Je.addOrRemoveCssClass(this.eWrapper,"ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return Je.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,n){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,event:n});var o=this.getInputElement(),r={type:At.EVENT_CHECKBOX_CHANGED,id:o.id,name:o.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){Je.addOrRemoveCssClass(this.eWrapper,"ag-checked",!0===e),Je.addOrRemoveCssClass(this.eWrapper,"ag-indeterminate",null==e)},Xn([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Kn),Jn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},eo=function(e){function t(){return e.call(this,'\n            <div class="ag-selection-checkbox">\n                <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n            </div>')||this}return Jn(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 Je.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return Je.stopPropagationForAgGrid(e)})),this.addManagedListener(this.eCheckbox,$n.EVENT_CHANGED,(function(e){e.selected?t.onUncheckedClicked(e.event||{}):t.onCheckedClicked()})),this.addManagedListener(this.rowNode,Vn.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect()),this.eCheckbox.setInputAriaLabel("Toggle Row Selection")},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},Zn([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Zn([ln("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(rn),to={propertyName:"dateComponent",isCellRenderer:function(){return!1}},no={propertyName:"headerComponent",isCellRenderer:function(){return!1}},oo={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},ro={propertyName:"groupRowInnerRenderer",isCellRenderer:function(){return!0}},io={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},ao={propertyName:"pinnedRowCellRenderer",isCellRenderer:function(){return!0}},so={propertyName:"cellEditor",isCellRenderer:function(){return!1}},lo={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},uo={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},co={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},po={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},ho={propertyName:"filter",isCellRenderer:function(){return!1}},fo={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},go={propertyName:"toolPanel",isCellRenderer:function(){return!1}},yo={propertyName:"statusPanel",isCellRenderer:function(){return!1}},vo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mo=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};
2!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(On||(On={}));var Co,wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vo(t,e),t.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,to,"agDateInput")},t.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,no,"agColumnHeader")},t.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,oo,"agColumnGroupHeader")},t.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,ro,null,!0)},t.prototype.newFullWidthCellRenderer=function(e,t,n){return this.createAndInitUserComponent(null,e,{propertyName:t,isCellRenderer:function(){return!0}},n)},t.prototype.newCellRenderer=function(e,t,n){return void 0===n&&(n=!1),this.createAndInitUserComponent(e,t,n?ao:io,null,!0)},t.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,so,"agCellEditor")},t.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,lo,null)},t.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,uo,"agLoadingOverlay")},t.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,co,"agNoRowsOverlay")},t.prototype.newTooltipComponent=function(e){return this.createAndInitUserComponent(e.colDef,e,po,"agTooltipComponent")},t.prototype.newFilterComponent=function(e,t,n,o){return this.createAndInitUserComponent(e,t,ho,n,!1,o)},t.prototype.newSetFilterCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,io,null,!0)},t.prototype.newFloatingFilterComponent=function(e,t,n){return this.createAndInitUserComponent(e,t,fo,n,!0)},t.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,go)},t.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,yo)},t.prototype.createAndInitUserComponent=function(e,t,n,o,r,i){void 0===r&&(r=!1),e||(e=this.gridOptions);var a=this.createComponentInstance(e,n,t,o,r);if(!a)return null;var s=a.componentInstance,l=this.createFinalParams(e,n.propertyName,t,a.paramsFromSelector);this.addReactHacks(l);var u=i?i(l,s):l,c=this.initComponent(s,u);return null==c?et.resolve(s):c.then((function(){return s}))},t.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=ae(t));var n=this.context.getBean("frameworkComponentWrapper");n&&(e.frameworkComponentWrapper=n)},t.prototype.createUserComponentFromConcreteClass=function(e,t){var n=new e;return this.initComponent(n,t),n},t.prototype.lookupComponentClassDef=function(e,t,n,o){void 0===n&&(n=null);var r,i=null,a=null,s=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)?a=u:s=u)),l=e[t+"Framework"],r=e[t+"Selector"]}if(a&&l||i&&l||s&&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||a||s||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:On.HARDCODED,paramsFromSelector:null};if(a)return{componentFromFramework:!1,component:a,source:On.HARDCODED,paramsFromSelector:null};if(s)return this.agComponentUtils.adaptFunction(t,s,!1,On.HARDCODED);var c,p=r?r(n):null;if(!(c=p&&p.component?p.component:i||o))return null;var d=this.lookupFromRegisteredComponents(t,c);return d?{componentFromFramework:d.componentFromFramework,component:d.component,source:d.source,paramsFromSelector:p?p.params:null}:null},t.prototype.lookupFromRegisteredComponents=function(e,t){var n=null!=t?t:e,o=this.userComponentRegistry.retrieve(n);return null==o?null:o.componentFromFramework?{component:o.component,componentFromFramework:!0,source:On.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(o.component)?{component:o.component,componentFromFramework:!1,source:o.source==Co.REGISTERED?On.REGISTERED_BY_NAME:On.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,o.component,o.componentFromFramework,o.source==Co.REGISTERED?On.REGISTERED_BY_NAME:On.DEFAULT)},t.prototype.createFinalParams=function(e,t,n,o){void 0===o&&(o=null);var r={};ce(r,n);var i=e?e[t+"Params"]:null;return null!=i&&("function"===typeof i?ce(r,i(n)):"object"===typeof i&&ce(r,i)),ce(r,o),r},t.prototype.createComponentInstance=function(e,t,n,o,r){var i,a=t.propertyName,s=this.lookupComponentClassDef(e,a,n,o);if(!s||!s.component){var l=e?e[a]:o,u=l||o;return r||console.error("Could not find component "+u+", did you forget to configure this component?"),null}if(s.componentFromFramework){var c=s.component,p=this.componentMetadataProvider.retrieve(a);i=this.frameworkComponentWrapper.wrap(c,p.mandatoryMethodList,p.optionalMethodList,t,o)}else i=new s.component;return{componentInstance:i,paramsFromSelector:s.paramsFromSelector}},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},mo([lt("gridOptions")],t.prototype,"gridOptions",void 0),mo([lt("agComponentUtils")],t.prototype,"agComponentUtils",void 0),mo([lt("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),mo([lt("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),mo([ut("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=mo([st
2("userComponentFactory")],t)}(Rt),bo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Eo=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_o=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return bo(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),n=null==e.value,o=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var r=e.node;if(r.footer)o=(e.colDef&&e.colDef.showRowGroup)!==(r.rowGroupColumn&&r.rowGroupColumn.getColId())}this.cellIsBlank=t||n||o,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===je.PINNED_LEFT,t=this.params.pinned===je.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!n:this.columnController.isPinningLeft()?!e:!n},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){Je.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 n=e*t,o=this.getGui(),r=this.gridOptionsWrapper.isEnableRtl()?"paddingRight":"paddingLeft";o.style[r]=n+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,Vn.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()||Je.get(e.colDef,"cellRendererParams.innerRenderer",null)||Je.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 n=Je.cloneObject(this.params);n.value=this.params.value,"function"===typeof t?e=t(n):"string"===typeof t?e=this.expressionService.evaluate(t,n):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,n=this.params,o=this.displayedGroup.rowGroupColumn,r=o||n.column,i=this.params.value,a=r?this.valueFormatterService.formatValue(r,n.node,n.scope,i):null;n.valueFormatted=a,(e=n.fullWidth?this.useFullWidth(n):this.useInnerRenderer(this.params.colDef.cellRendererParams,r.getColDef(),n))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,n){var o=this,r=null,i=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(i&&null!=i.component&&i.source!=On.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,n);else{var a=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=a&&a.source!=On.DEFAULT?this.userComponentFactory.newCellRenderer(t,n):a&&a.source==On.DEFAULT&&Je.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,n):this.userComponentFactory.newCellRenderer({},n)}return null!=r?r.then((function(e){null!=e?Je.bindCellRendererToHtmlElement(r,o.eValue):o.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value}
2)):this.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value,r},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?Je.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroup,Vn.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(){Je.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,t=this.displayedGroup,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var o=new eo;this.getContext().createBean(o),o.init({rowNode:t,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(o)}))}Je.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!n)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,n=Je.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),o=Je.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(n),this.eContracted.appendChild(o),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,Vn.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addManagedListener(this.displayedGroup,Vn.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onRowNodeIsExpandableChanged.bind(this)),this.addManagedListener(this.displayedGroup,Vn.EVENT_MASTER_CHANGED,this.onRowNodeIsExpandableChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){Je.isKeyPressed(e,je.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 n=t.rowGroupColumn;this.draggedFromHideOpenParents=!!n&&!e.isRowGroupDisplayed(n.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var o=t.parent;!Je.missing(o);){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroup=o;break}o=o.parent}Je.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){Je.isStopPropagationForAgGrid(e)||(Je.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){Je.isStopPropagationForAgGrid(e)||(Je.isElementInEventPath(this.eExpanded,e)||Je.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;Je.setDisplayed(this.eContracted,!t),Je.setDisplayed(this.eExpanded,t)}else Je.setDisplayed(this.eExpanded,!1),Je.setDisplayed(this.eContracted,!1);var n=this.displayedGroup,o=this.columnController.isPivotMode()&&n.leafGroup,r=!n.isExpandable(),i=n.footer||r||o;this.addOrRemoveCssClass("ag-row-group",!i),this.addOrRemoveCssClass("ag-row-group-leaf-indent",i)},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),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>',Eo([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Eo([lt("expressionService")],t.prototype,"expressionService",void 0),Eo([lt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Eo([lt("columnController")],t.prototype,"columnController",void 0),Eo([lt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Eo([ln("eExpanded")],t.prototype,"eExpanded",void 0),Eo([ln("eContracted")],t.prototype,"eContracted",void 0),Eo([ln("eCheckbox")],t.prototype,"eCheckbox",void 0),Eo([ln("eValue")],t.prototype,"eValue",void 0),Eo([ln("eChildCount")],t.prototype,"eChildCount",void 0),t}(rn),Oo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ro=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},So=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Oo(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 n=Math.abs(t),o=e.formatValue(n),r=Je.exists(o)?o:n,i=t>=0;this.eDelta.innerHTML=i?"\u2191"+r:"\u2193"+r,Je.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",i),Je.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(){Je.removeCssClass(this.eV
2alue,"ag-value-change-value-highlight"),Je.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue&&(Je.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:Je.exists(e.value)?this.eValue.innerHTML=t:Je.clearElement(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())){if("number"===typeof t&&"number"===typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&Je.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>',Ro([lt("filterManager")],t.prototype,"filterManager",void 0),t}(rn),To=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Po=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Do=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return To(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=Je.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&&Je.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(Je.missing(t)&&(t=""),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=t,Je.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:Je.exists(e.value)?this.eCurrent.innerHTML=t:Je.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',Po([lt("filterManager")],t.prototype,"filterManager",void 0),t}(rn),Ao=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),No=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Io=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ao(t,e),t.prototype.init=function(e){var t=Je.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=n("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>',No([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),No([ln("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),No([ln("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(rn),xo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fo=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ko=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 xo(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,Je.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEac
2h((function(n){var o={value:n},r=t.valueFormatterService.formatValue(e.column,null,null,n),i=null!==r&&void 0!==r;o.text=i?r:n,t.eSelect.addOption(o)})),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},Fo([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fo([lt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Fo([ln("eSelect")],t.prototype,"eSelect",void 0),t}(sn),Mo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mo(t,e),t.prototype.isPopup=function(){return!0},t}(yn),Go=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Go(t,e),t.prototype.isPopup=function(){return!0},t}(ko),Vo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ho=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jo=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Vo(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),Je.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==je.KEY_LEFT||t==je.KEY_UP||t==je.KEY_RIGHT||t==je.KEY_DOWN||e.shiftKey&&t==je.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>',Ho([ln("eTextArea")],t.prototype,"eTextArea",void 0),t}(sn),Bo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Uo=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bo(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){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){[n.eValueFrom1,n.eValueFrom2,n.eValueTo1,n.eValueTo2].forEach((function(e){return e.setValue(null,t)})),n.resetPlaceholder()}))},t.prototype.setConditionIntoUi=function(e,t){var n=t===hn.One,o=n?this.eValueFrom1:this.eV
2alueFrom2,r=n?this.eValueTo1:this.eValueTo2;o.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.getCondition1Type()===Pn.IN_RANGE,t=this.getCondition2Type()===Pn.IN_RANGE;this.eValueFrom1.setInputPlaceholder(this.translate(e?"inRangeStart":"filterOoo")),this.eValueTo1.setInputPlaceholder(this.translate(e?"inRangeEnd":"filterOoo")),this.eValueFrom2.setInputPlaceholder(this.translate(t?"inRangeStart":"filterOoo")),this.eValueTo2.setInputPlaceholder(this.translate(t?"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===hn.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===hn.One,n=t?this.getCondition1Type():this.getCondition2Type(),o=t?this.eValueFrom1:this.eValueFrom2,r=t?this.eValueTo1:this.eValueTo2,i=this.stringToFloat(o.getValue()),a=this.stringToFloat(r.getValue());return n!==Sn.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||(n===Sn.IN_RANGE?null!=i&&null!=a: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=v(e);return t&&""===t.trim()&&(t=null),null!==t&&void 0!==t?parseFloat(t):null},t.prototype.createCondition=function(e){var n=e===hn.One,o=n?this.getCondition1Type():this.getCondition2Type(),r=n?this.eValueFrom1:this.eValueFrom2,i=this.stringToFloat(r.getValue()),a=n?this.eValueTo1:this.eValueTo2,s=this.stringToFloat(a.getValue()),l={filterType:t.FILTER_TYPE,type:o};return this.doesFilterHaveHiddenInput(o)||(l.filter=i,l.filterTo=s),l},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.showValueFrom(this.getCondition1Type());I(this.eValueFrom1.getGui(),t);var n=this.showValueTo(this.getCondition1Type());I(this.eValueTo1.getGui(),n);var o=this.showValueFrom(this.getCondition2Type());I(this.eValueFrom2.getGui(),o);var r=this.showValueTo(this.getCondition2Type());I(this.eValueTo2.getGui(),r)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[Pn.EQUALS,Pn.NOT_EQUAL,Pn.LESS_THAN,Pn.LESS_THAN_OR_EQUAL,Pn.GREATER_THAN,Pn.GREATER_THAN_OR_EQUAL,Pn.IN_RANGE],Uo([ln("eValueFrom1")],t.prototype,"eValueFrom1",void 0),Uo([ln("eValueFrom2")],t.prototype,"eValueFrom2",void 0),Uo([ln("eValueTo1")],t.prototype,"eValueTo1",void 0),Uo([ln("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(Pn),Yo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qo=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ko=function(e){function t(){return e.call(this)||this}return Yo(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',qo([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(rn),Qo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xo=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$o=function(e){function t(){return e.call(this)||this}return Qo(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",o("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>',Xo([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(rn),Jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zo=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return Jo(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(sn),er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nr=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 er(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this;this.shouldUseBrowserDatePicker(e)&&(p()?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.addManagedListener(this.eDateInput.getInputElement(),"input",(function(e){e.target===document.activeElement&&t.listener()}))},t.prototype.getDate=function(){return me(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(ve(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.f
2ilterParams.browserDatePicker?e.filterParams.browserDatePicker:f()||g()},tr([ln("eDateInput")],t.prototype,"eDateInput",void 0),t}(rn),or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return or(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,n=this.conditionToString(t.condition1),o=this.conditionToString(t.condition2);return n+" "+t.operator+" "+o}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 mn,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!==Sn.IN_RANGE&&e!==Sn.EMPTY},t}(rn),ir=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ar=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sr=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 ir(t,e),t.prototype.getDefaultFilterOptions=function(){return Nn.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type===Sn.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).setInputAriaLabel("Date Filter Input")},t.prototype.setEditable=function(e){I(this.eDateWrapper,e),I(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var o=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(o),o){if(t){var r=t;this.dateComp.setDate(me(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=ve(this.dateComp.getDate());this.params.parentFilterInstance((function(n){n&&n.onFloatingFilterChanged(e.getLastType(),t)}))},t.prototype.createDateComponent=function(){var e=this,t=bn.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:Ie(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new vn(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},ar([lt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ar([ln("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),ar([ln("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(rr),lr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ur=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lr(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)}
2,t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,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===hn.One?this.eValue1:this.eValue2).setValue(e?e.filter:null)},t.prototype.createCondition=function(e){var n=e===hn.One,o=n?this.getCondition1Type():this.getCondition2Type(),r=n?this.eValue1:this.eValue2,i=this.getValue(r),a={filterType:t.FILTER_TYPE,type:o};return this.doesFilterHaveHiddenInput(o)||(a.filter=i),a},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){var n=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){n.forEachInput((function(e){return e.setValue(null,t)})),n.resetPlaceholder()}))},t.prototype.resetPlaceholder=function(){var e=this.translate("filterOoo");this.forEachInput((function(t){return t.setInputPlaceholder(e)}))},t.prototype.forEachInput=function(e){ne([this.eValue1,this.eValue2],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===hn.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());I(this.eValue1.getGui(),t);var n=this.showValueFrom(this.getCondition2Type());I(this.eValue2.getGui(),n)},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===hn.One,n=t?this.getCondition1Type():this.getCondition2Type();return n!==Sn.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||null!=this.getValue(t?this.eValue1:this.eValue2))},t.prototype.individualConditionPasses=function(e,t){var n=t.filter,o=t.type,r=this.textFilterParams.valueGetter(e.node),i=this.formatter(r),a=this.optionsFactory.getCustomOption(o);if(a&&(null!=n||a.hideFilterInput))return a.test(n,i);if(null==r)return o===Sn.NOT_EQUAL||o===Sn.NOT_CONTAINS;var s=this.formatter(n);return this.comparator(o,i,s)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[Sn.CONTAINS,Sn.NOT_CONTAINS,Sn.EQUALS,Sn.NOT_EQUAL,Sn.STARTS_WITH,Sn.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,n,o){switch(e){case t.CONTAINS:return n.indexOf(o)>=0;case t.NOT_CONTAINS:return-1===n.indexOf(o);case t.EQUALS:return n===o;case t.NOT_EQUAL:return n!=o;case t.STARTS_WITH:return 0===n.indexOf(o);case t.ENDS_WITH:var r=n.lastIndexOf(o);return r>=0&&r===n.length-o.length;default:return console.warn("invalid filter type "+e),!1}},ur([ln("eValue1")],t.prototype,"eValue1",void 0),ur([ln("eValue2")],t.prototype,"eValue2",void 0),t}(Sn),pr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pr(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 n=this.getTextFromModel(e);this.eFloatingFilterInput.setValue(n);var o=this.canWeEditAfterModelFromParentFilter(e);this.setEditable(o)}},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=bn.isUseApplyButton(this.params.filterParams);var n=bn.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o=Ie(this.syncUpWithParentFilter.bind(this),n),r=this.eFloatingFilterInput.getGui();this.addManagedListener(r,"input",o),this.addManagedListener(r,"keypress",o),this.addManagedListener(r,"keydown",o);var i=t.column.getDefinition();i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnController.getDisplayNameForColumn(t.column,"header",!0);this.eFloatingFilterInput.setInputAriaLabel(a+" Filter Input")},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=this.eFloatingFilterInput.getValue(),o=Be(e,je.KEY_ENTER);this.applyActive&&!o||this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),n)}))},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},dr([lt("columnController")],t.prototype,"columnController",void 0),dr([ln("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),dr([it],t.prototype,"postConstruct",null),t}(rr),fr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fr(t,e),t.prototype.getDefaultFilterOptions=function(){return zo.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==Sn.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.f
2ilter?""+e.filter:""+e.type},t}(hr),yr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yr(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return cr.DEFAULT_FILTER_OPTIONS},t}(hr),mr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(Co||(Co={}));var wr,br,Er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:nr,agColumnHeader:kn,agColumnGroupHeader:Gn,agTextColumnFloatingFilter:vr,agNumberColumnFloatingFilter:gr,agDateColumnFloatingFilter:sr,agAnimateShowChangeCellRenderer:So,agAnimateSlideCellRenderer:Do,agGroupCellRenderer:_o,agGroupRowRenderer:_o,agLoadingCellRenderer:Io,agCellEditor:yn,agTextCellEditor:yn,agSelectCellEditor:ko,agPopupTextCellEditor:Lo,agPopupSelectCellEditor:Wo,agLargeTextCellEditor:jo,agTextColumnFilter:cr,agNumberColumnFilter:zo,agDateColumnFilter:Nn,agLoadingOverlay:Ko,agNoRowsOverlay:$o,agTooltipComponent:Zo},t.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"}},t.jsComponents={},t.frameworkComponents={},t}return mr(t,e),t.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])}))},t.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},t.prototype.registerComponent=function(e,t){var n=this.translateIfDeprecated(e);this.frameworkComponents[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComponents[n]=t},t.prototype.registerFwComponent=function(e,t){var n=this.translateIfDeprecated(e);this.jsComponents[n]?console.error("Trying to register a component that you have already registered for plain 
2javascript: "+n):this.frameworkComponents[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:Co.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:Co.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:Co.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(Je.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},Cr([lt("gridOptions")],t.prototype,"gridOptions",void 0),Cr([it],t.prototype,"init",null),t=Cr([st("userComponentRegistry")],t)}(Rt),_r=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 n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var o=0;o<e.childrenAfterGroup.length;o++){var r=e.childrenAfterGroup[o];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[o],t,n):n&&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,n=0;!this.mapToItems[t.id];){var o={rowNode:t,children:null};this.mapToItems[t.id]=o,n++,t=t.parent}return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var o=e;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),t.forEach((function(e){return n.nodeIdsToColumns[o.id][e.getId()]=!0})),o=o.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,o=0;o<t;o++){var r=this.mapToItems[n.id],i=this.mapToItems[n.parent.id];i.children||(i.children=[]),i.children.push(r),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);this.linkPathItems(e,n),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 n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return n[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!n[e.getId()]}))},e}(),Or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sr=function(e,t){return function(n,o){t(n,o,e)}},Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Or(t,e),t.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()&&this.addManagedListener(this.eventService,At.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,At.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];
2return Je.iterateObject(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return Je.iterateObject(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;Je.iterateObject(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===je.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new _r(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,n={},o=0;return Je.iterateObject(this.selectedNodes,(function(r,i){if(i&&i.id!==e.id){var a=t.selectedNodes[i.id];o+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}})),Je.iterateObject(n,(function(e,t){t.calculateSelectedFromChildren()})),o},t.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)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){Je.exists(t)&&e.id!==t.id&&(Je.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},t.prototype.syncInNewRowNode=function(e){Je.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===je.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var o=0,r=n.length;o<r;o++){var i=n[o];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")},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return Je.iterateObject(this.selectedNodes,(function(t,n){n&&e++})),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===je.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!n)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}
2else Je.iterateObject(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:At.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==je.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,n=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(n):t.forEachNode(n),this.rowModel.getType()===je.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:At.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},Rr([lt("rowModel")],t.prototype,"rowModel",void 0),Rr([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Rr([lt("columnApi")],t.prototype,"columnApi",void 0),Rr([lt("gridApi")],t.prototype,"gridApi",void 0),Rr([Sr(0,pt("loggerFactory"))],t.prototype,"setBeans",null),Rr([it],t.prototype,"init",null),t=Rr([st("selectionController")],t)}(Rt),Pr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Dr=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof 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 moveC
2olumn(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,n){void 0===n&&(n=!0),this.columnController.setColumnWidths([{key:e,newWidth:t}],!1,n)},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,"a
2pi")},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)},Pr([lt("columnController")],e.prototype,"columnController",void 0),e=Pr([st("columnApi")],e)}();(wr=t.SelectionHandleType||(t.SelectionHandleType={}))[wr.FILL=0]="FILL",wr[wr.RANGE=1]="RANGE",(br=t.CellRangeType||(t.CellRangeType={}))[br.VALUE=0]="VALUE",br[br.DIMENSION=1]="DIMENSION";var Ar,Nr,Ir,xr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(Ar=t.DragSourceType||(t.DragSourceType={}))[Ar.ToolPanel=0]="ToolPanel",Ar[Ar.HeaderCell=1]="HeaderCell",Ar[Ar.RowDrag=2]="RowDrag",Ar[Ar.ChartPanel=3]="ChartPanel",(Nr=t.VerticalDirection||(t.VerticalDirection={}))[Nr.Up=0]="Up",Nr[Nr.Down=1]="Down",(Ir=t.HorizontalDirection||(t.HorizontalDirection={}))[Ir.Left=0]="Left",Ir[Ir.Right=1]="Right";var kr,Mr=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return xr(n,e),o=n,n.prototype.init=function(){this.ePinnedIcon=Je.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Je.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Je.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Je.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Je.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Je.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Je.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Je.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Je.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},n.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={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:n,dragSource:e}),this.dragService.addDragSource(n,t)},n.prototype.removeDragSource=function(e){var t=Je.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),Je.removeFromArray(this.dragSourceAndParamsList,t))},n.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.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()},n.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()},n.prototype.onDragging=function(e,t){var n=this.getHorizontalDirection(e),o=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var r=Je.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(r!==this.lastDropTarget)this.leaveLastTargetIfExists(e,n,o,t),this.enterDragTargetIfExists(r,e,n,o,t),this.lastDropTarget=r;else if(r&&r.onDragging){var i=this.createDropTargetEvent(r,e,n,o,t);r.onDragging(i)}},n.prototype.enterDragTargetIfExists=function(e,t,n,o,r){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,o,r);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},n.prototype.leaveLastTargetIfExists=function(e,t,n,o){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,n,o);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},n.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],n=e.getSecondaryContainers?e.getSecondaryContainers():null;return n&&(t=t.concat(n)),t},n.prototype.isMouseOnDropTarget=function(e,t){var n=!1;return this.getAllContainersFromDropTarget(t).filter((function(e){return e}
2)).forEach((function(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var r=e.clientX>=o.left&&e.clientX<=o.right,i=e.clientY>=o.top&&e.clientY<=o.bottom;r&&i&&(n=!0)}})),n&&t.isInterestedIn(this.dragSource.type)},n.prototype.addDropTarget=function(e){this.dropTargets.push(e)},n.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},n.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},n.prototype.findExternalZone=function(e){var t=this.dropTargets.filter((function(e){return e.external}));return Je.find(t,(function(t){return t.getContainer()===e.getContainer()}))},n.prototype.getHorizontalDirection=function(e){var n=this.eventLastTime.clientX,o=e.clientX;return n===o?null:n>o?t.HorizontalDirection.Left:t.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(e){var n=this.eventLastTime.clientY,o=e.clientY;return n===o?null:n>o?t.VerticalDirection.Up:t.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,o,r){var i=e.getContainer(),a=i.getBoundingClientRect(),s=this.gridApi,l=this.columnApi,u=this.dragItem,c=this.dragSource;return{event:t,x:t.clientX-a.left,y:t.clientY-a.top,vDirection:o,hDirection:n,dragSource:c,fromNudge:r,dragItem:u,api:s,columnApi:l,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost,n=t.getBoundingClientRect().height,o=Je.getBodyWidth()-2,r=Je.getBodyHeight()-2,i=e.pageY-n/2,a=e.pageX-10,s=this.gridOptionsWrapper.getDocument(),l=window.pageYOffset||s.documentElement.scrollTop,u=window.pageXOffset||s.documentElement.scrollLeft;o>0&&a+t.clientWidth>o+u&&(a=o+u-t.clientWidth),a<0&&(a=0),r>0&&i+t.clientHeight>r+l&&(i=r+l-t.clientHeight),i<0&&(i=0),t.style.left=a+"px",t.style.top=i+"px"},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=Je.loadTemplate(o.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&Je.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;Je.isFunction(n)&&(n=n()),t.innerHTML=Je.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")},n.prototype.setGhostIcon=function(e,t){var n;switch(void 0===t&&(t=!1),Je.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}Je.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.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>',Fr([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Fr([lt("dragService")],n.prototype,"dragService",void 0),Fr([lt("environment")],n.prototype,"environment",void 0),Fr([lt("columnApi")],n.prototype,"columnApi",void 0),Fr([lt("gridApi")],n.prototype,"gridApi",void 0),Fr([it],n.prototype,"init",null),Fr([at],n.prototype,"clearDragSourceParamsList",null),n=o=Fr([st("dragAndDropService")],n)}(Rt),Lr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wr=function(e){function n(t,n,o,r){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" role="presentation"></div>')||this;return i.rowNode=t,i.column=n,i.cellValue=o,i.beans=r,i}return Lr(n,e),n.prototype.postConstruct=function(){this.getGui().appendChild(Je.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new jr(this,this.beans,this.rowNode,this.column):new Hr(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)},n.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},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&Je.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(){var e=this,n={rowNode:this.rowNode,columns:[this.column],defaultTextValue:this.cellValue},o=this.column.getColDef().rowDragText,r={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var t=e.getSelectedCount();return o?o(n,t):1===t?e.cellValue:t+" rows"},getDragItem:function(){return n},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(r)}))},Gr([it],n.prototype,"postConstruct",null),n}(rn),Vr=function(e){function t(t,n,o){var r=e.call(this)||this;return r.parent=t,r.column=o,r.rowNode=n,r}return Lr(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);Je.isFunction(this.column.getColDef().rowDrag)?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(Rt),Hr=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return Lr(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Vn.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)},Gr([it],t.prototype,"postConstruct",null),t}(Vr),jr=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return Lr(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,At.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,At.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,At.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(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
2(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)},Gr([it],t.prototype,"postConstruct",null),t}(Vr),Br=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ur=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zr=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.getGuiCalledOnChild=!1,n.cellEditor=t,n}return Br(t,e),t.prototype.onKeyDown=function(e){Je.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(n){var o=this;this.params=n,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){return o.destroyBean(o.cellEditor)})),this.addManagedListener(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",Ur([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(sn),Yr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kr=function(e){function t(t,n,o,r,i){var a=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return a.rowNode=t,a.column=n,a.cellValue=o,a.beans=r,a.eCell=i,a}return Yr(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Je.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,n=this.column.getColDef().dndSourceOnRowDrag,o=Je.isBrowserIE();o||e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e}):function(){try{var n=JSON.stringify(t.rowNode.data);o?e.dataTransfer.setData("text",n):(e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n))}catch(r){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},qr([it],t.prototype,"postConstruct",null),t}(rn),Qr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xr=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(kr||(kr={}));var $r,Jr=function(e){function t(t,n){var o=e.call(this)||this;return o.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=kr.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=t,o.location=n,o}return Qr(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(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=kr.WAITING_TO_SHOW},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===kr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=kr.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===kr.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=kr.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;Je.addCssClass(this.tooltipComp.getGui(),"ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(n)}),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=kr.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},n=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.newTooltipComponent(t).then(n)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==kr.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,Je.containsClass(n,"ag-tooltip")||Je.addCssClass(n,"ag-tooltip-custom"),this.tooltipPopupDestroyFunc=this.popupService.addPopup(!1,n,!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)},Xr([lt("popupService")],t.prototype,"popupService",void 0),Xr([lt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Xr([lt("columnApi")],t.prototype,"columnApi",void 0),Xr([lt("gridApi")],t.prototype,"gridApi",void 0),Xr([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Xr([it],t.prototype,"postConstruct",null),t}(Rt),Zr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ei=function(){return(ei=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ti=function(e){function n(t,n,o,r,i,a,s){var l=e.call(this)||this;if(l.hasChartRange=!1,l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=n,l.column=o,l.rowNode=r,l.rowComp=i,l.autoHeightCell=a,l.printLayout=s,l.createGridCellVo(),l.rangeSelectionEnabled=l.beans.rangeController&&n.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 Zr(n,e),n.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],n=this.column,o=this.getCellWidth(),r=this.modifyLeftForPrintLayout(this.getCellLeft()),i=this.getInitialValueToRender(),a=Je.get(this.column,"colDef.template",null)?i:Je.escape(i);this.tooltip=this.getToolTip();var s=Je.escape(this.tooltip),l=Je.escape(n.getId()),u="",c="",p=this.preProcessStylesFromColDef(),d=this.getInitialCssClasse
2s(),h=this.getStylesForRowSpanning(),f=Je.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+">",c="</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="'+Je.escape(d.join(" "))+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&Je.exists(s)&&t.push('title="'+s+'"'),t.push(' style="width: '+Number(o)+"px; left: "+Number(r)+"px; "+Je.escape(p)+" "+Je.escape(h)+'" >'),t.push(u),Je.exists(a,!0)&&t.push(a),t.push(c),t.push("</div>"),t.join("")},n.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},n.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(),Je.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.createManagedBean(new Jr(this,"cell"),this.beans.context)},n.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);Je.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},n.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Je.last(this.colsSpanning):this.column).getLeft()},n.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},n.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},n.prototype.setupColSpan=function(){Je.missing(this.getComponentHolder().colSpan)||(this.addManagedListener(this.beans.eventService,At.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,At.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},n.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,o=this.column.getPinned(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnController.getDisplayedColAfter(n))&&!Je.missing(n))&&o===n.getPinned();r++);return t},n.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();Je.areEqual(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},n.prototype.getAriaColumnIndex=function(){return(this.beans.columnController.getAllDisplayedColumns().indexOf(this.column)+1).toString()},n.prototype.refreshAriaIndex=function(){var e=this.getAriaColumnIndex();(this.usingWrapper?this.eCellValue:this.getGui()).setAttribute("aria-colindex",e)},n.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"),Je.pushAll(e,this.preProcessClassesFromColDef()),Je.pushAll(e,this.preProcessCellClassRules()),Je.pushAll(e,this.getInitialRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},n.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()},n.prototype.getRenderedRow=function(){return this.rowComp},n.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},n.prototype.getCellRenderer=function(){return this.cellRenderer},n.prototype.getCellEditor=function(){return this.cellEditor},n.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editingCell){var t=this.getComponentHolder(),n=e&&e.newData,o=e&&e.suppressFlash||t.suppressCellFlash,r=e&&e.forceRefresh,i=this.value;this.value=this.getValue();var a=!this.valuesAreEqual(i,this.value);if(r||a){this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value),!n&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var s=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!o&&!s&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}
2this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},n.prototype.flashCell=function(e){var t=e&&e.flashDelay,n=e&&e.fadeDelay;this.animateCell("data-changed",t,n)},n.prototype.animateCell=function(e,t,n){var o="ag-cell-"+e,r="ag-cell-"+e+"-animation",i=this.getGui(),a=this.beans.gridOptionsWrapper;t||(t=a.getCellFlashDelay()),n||(n=a.getCellFadeDelay()),Je.addCssClass(i,o),Je.removeCssClass(i,r),window.setTimeout((function(){Je.removeCssClass(i,o),Je.addCssClass(i,r),i.style.transition="background-color "+n+"ms",window.setTimeout((function(){Je.removeCssClass(i,r),i.style.transition=null}),n)}),t)},n.prototype.replaceContentsAfterRefresh=function(){Je.clearElement(this.eParentOfValue),this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},n.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=ei({},this.rowNode.data),this.angular1Compile())},n.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()}))}}},n.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&Je.addStylesToElement(this.getGui(),e)},n.prototype.preProcessStylesFromColDef=function(){return Je.cssStyleObjectToMarkup(this.processStylesFromColDef())},n.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"===typeof e.cellStyle){var n={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)(n)}else t=e.cellStyle;return t}},n.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return Je.addCssClass(e.getGui(),t)}))},n.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},n.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)},n.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 n=this.getValueToUse();null!=n&&(this.eParentOfValue.innerHTML=Je.escape(n))}},n.prototype.attemptCellRendererRefresh=function(){if(Je.missing(this.cellRenderer)||!this.cellRenderer||Je.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),n=this.cellRenderer.refresh(t);return!0===n||void 0===n},n.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){var t=Je.exists(e);if(!t||this.tooltip!==e.toString()){Je.exists(this.tooltip);this.tooltip=e,this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&(t?this.eParentOfValue.setAttribute("title",this.tooltip):this.eParentOfValue.removeAttribute("title"))}}},n.prototype.valuesAreEqual=function(e,t){var n=this.getComponentHolder(),o=n?n.equals:null;return o?o(e,t):e===t},n.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&Je.exists(t))return Je.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var n=e.tooltipValueGetter||e.tooltip;return n?n({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},n.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?Je.escape(this.tooltip):this.tooltip},n.prototype.processCellClassRules=function(e,t){var n=this.getComponentHolder();this.beans.stylingService.processClassRules(n.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:n,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},n.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){return Je.addCssClass(e.getGui(),t)}),(function(t){return Je.removeCssClass(e.getGui(),t)}))},n.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){return e.push(t)}),(function(e){})),e},n.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,n="function"===typeof e.rowDrag,o="function"===typeof e.dndSource;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=n||!0===e.rowDrag,this.includeDndSourceComponent=o||!0===e.dndSource;var r=this.beans.gridOptionsWrapper.isEnableCellTextSelection();this.usingWrapper=r||this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},n.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var t=this.createCellRendererParams(),o=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",t);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",t)&&this.rowNode.rowPinned?(this.cellRendererType=n.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):o?(this.cellRendererType=n.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},n.prototype.createCellRendererInstance=function(e){var t=this;if(void 0===e&&(e=!1),this.usingCellRenderer){var o=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(o||r||this.autoHeightCell)&&(e=!1);var i=this.createCellRendererParams();this.cellRendererVersion++;var a=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),s=this.cellRendererType===n.CELL_RENDERER_TYPE_NORMAL;this.createCellRendererFunc=function(){t.createCellRendererFunc=null;var e=t.beans.userComponentFactory.newCellRenderer(t.getComponentHolder(),i,!s);e&&e.then(a)},e?this.beans.taskQueue.createTask(this.createCellRendererFunc,this.rowNode.rowIndex,"createTasksP2"):this.createCellRendererFunc()}},n.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),Je.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):this.beans.context.destroyBean(t)},n.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,n){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,n)}}},n.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},n.prototype.getValueToUse=function(){return null!=this.valueFormatted?this.valueFormatted:this.value},n.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},n.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),o=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r
2=t&&n&&!o;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},n.prototype.onMouseEvent=function(e,t){if(!Je.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)}},n.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,At.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},n.prototype.createEvent=function(e,t){var n={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&&(n.$scope=this.scope),n},n.prototype.onMouseOut=function(e){var t=this.createEvent(e,At.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},n.prototype.onMouseOver=function(e){var t=this.createEvent(e,At.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},n.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,At.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},n.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},n.prototype.startEditingIfEnabled=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var o=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(e,t,n);this.createCellEditor(r).then(o),Je.missing(this.cellEditor)&&n&&this.focusCell(!0)}},n.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).then((function(n){if(!(n.isPopup&&n.isPopup()))return n;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 o=new zr(n);return t.beans.context.createBean(o),o.init(e),o}))},n.prototype.afterCellEditorCreated=function(e,t){if(e!==this.cellEditorVersion||!this.editingCell)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),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?"),this.beans.context.destroyBean(t),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 n=this.createEvent(null,At.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(n)}},n.prototype.addInCellEditor=function(){Je.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},n.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null,n=this.beans.gridOptionsWrapper.isStopEditingWhenGridLosesFocus();this.hideEditorPopup=this.beans.popupService.addPopup(n,t,!0,(function(){e.onPopupEditorClosed()}));var o={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(o):this.beans.popupService.positionPopupOverComponent(o),this.angular1Compile()},n.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusController.isCellFocused(this.cellPosition)&&this.focusCell(!0))},n.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;Je.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),Je.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),Je.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),Je.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),Je.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)}},n.prototype.createCellEditorParams=function(e,t,n){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:n,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)}},n.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},n.prototype.parseValue=function(e){var t=this.getComponentHolder(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,
2newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return Je.exists(o)?this.beans.expressionService.evaluate(o,n):e},n.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,e)},n.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},n.prototype.isEditing=function(){return this.editingCell},n.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case je.KEY_ENTER:this.onEnterKeyDown(e);break;case je.KEY_F2:this.onF2KeyDown();break;case je.KEY_ESCAPE:this.onEscapeKeyDown();break;case je.KEY_TAB:this.onTabKeyDown(e);break;case je.KEY_BACKSPACE:case je.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case je.KEY_DOWN:case je.KEY_UP:case je.KEY_RIGHT:case je.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},n.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},n.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())},n.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController){var t=this.beans.rangeController.extendLatestRangeInDirection(e);t&&this.beans.rowRenderer.ensureCellVisible(t)}},n.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},n.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},n.prototype.onEnterKeyDown=function(e){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,je.KEY_DOWN,this.cellPosition,!1):(e.preventDefault(),this.startRowOrCellEdit(je.KEY_ENTER))},n.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,je.KEY_DOWN,this.cellPosition,!1)},n.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(je.KEY_F2)},n.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},n.prototype.onKeyPress=function(e){if(!(Je.getTarget(e)!==this.getGui())&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):Je.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},n.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.editingCell&&t.isRowSelection()){var n=!this.rowNode.isSelected();(n||t.isRowDeselection())&&this.rowNode.setSelected(n)}e.preventDefault()},n.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,o=e.shiftKey,r=e.target,i=this.beans,a=i.eventService,s=i.rangeController;if(!this.isRightClickInExistingRange(e)){if(!o||s&&!s.getCellRanges().length){var l=(Je.isBrowserIE()||Je.isBrowserEdge())&&!this.editingCell;this.focusCell(l)}else e.preventDefault();if(!this.containsWidget(r)){if(s){var u=this.cellPosition;if(o)s.extendLatestRangeToCell(u);else{var c=t||n;s.setRangeToCell(u,c)}}a.dispatchEvent(this.createEvent(e,At.EVENT_CELL_MOUSE_DOWN))}}},n.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeController;if(t&&(t.isCellInAnyRange(this.getCellPosition())&&2===e.button))return!0;return!1},n.prototype.containsWidget=function(e){return Je.isElementChildOfClass(e,"ag-selection-checkbox",3)},n.prototype.isDoubleClickOnIPad=function(){if(!Je.isIOSUserAgent()||Je.isEventSupported("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},n.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,o=t.gridOptionsWrapper,r=this.createEvent(e,At.EVENT_CELL_CLICKED);n.dispatchEvent(r);var i=this.getComponentHolder();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(o.isSingleClickEdit()||i.singleClickEdit)&&!o.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},n.prototype.getCellPosition=function(){return this.cellPosition},n.prototype.getParentRow=function(){return this.eParentRow},n.prototype.setParentRow=function(e){this.eParentRow=e},n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},n.prototype.destroy=function(){this.createCellRendererFunc&&this.beans.taskQueue.cancelTask(this.createCellRendererFunc),this.stopEditing(),this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),this.beans.context.destroyBean(this.selectionHandle),e.prototype.destroy.call(this)},n.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px",this.refreshAriaIndex()},n.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout&&this.column.getPinned()!==je.PINNED_LE
2FT?this.column.getPinned()===je.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},n.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},n.prototype.getRangeBorders=function(){var e,t,n=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,a=!1,s=!1,l=this.cellPosition.column,u=this.beans,c=u.rangeController,p=u.columnController;o?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(n.cellPosition,e)}));e||(s=!0),t||(i=!0);for(var h=0;h<d.length&&!(r&&i&&a&&s);h++){var f=d[h],g=c.getRangeStartRow(f),y=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellPosition)&&(r=!0),!a&&this.beans.rowPositionUtils.sameRow(y,this.cellPosition)&&(a=!0),!s&&f.columns.indexOf(e)<0&&(s=!0),!i&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:a,left:s}},n.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 n=this.getRangeBorders();n.top&&e.push("ag-cell-range-top"),n.right&&e.push("ag-cell-range-right"),n.bottom&&e.push("ag-cell-range-bottom"),n.left&&e.push("ag-cell-range-left")}return this.selectionHandle&&e.push("ag-cell-range-handle"),e},n.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){var e=this.beans.rangeController;if(e){var t=this.cellPosition,n=this.rangeCount,o=e.getCellRangeCount(t),r=this.getGui();n!==o&&(Je.addOrRemoveCssClass(r,"ag-cell-range-selected",0!==o),Je.addOrRemoveCssClass(r,"ag-cell-range-selected-1",1===o),Je.addOrRemoveCssClass(r,"ag-cell-range-selected-2",2===o),Je.addOrRemoveCssClass(r,"ag-cell-range-selected-3",3===o),Je.addOrRemoveCssClass(r,"ag-cell-range-selected-4",o>=4),this.rangeCount=o);var i=this.getHasChartRange();i!==this.hasChartRange&&(this.hasChartRange=i,Je.addOrRemoveCssClass(r,"ag-cell-range-chart",this.hasChartRange)),this.updateRangeBorders(),Je.addOrRemoveCssClass(r,"ag-cell-range-single-cell",this.isSingleCell()),this.refreshHandle()}},n.prototype.getHasChartRange=function(){var e=this.beans.rangeController;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return Je.includes([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},n.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=e.rangeController,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var a=Je.last(r),s=this.getCellPosition(),l=1===i&&(n.isEnableFillHandle()||n.isEnableRangeHandle())&&!this.editingCell;if(this.hasChartRange){var u=r[0].type===t.CellRangeType.DIMENSION&&o.isCellInSpecificRange(s,r[0]);Je.addOrRemoveCssClass(this.getGui(),"ag-cell-range-chart-category",u),l=a.type===t.CellRangeType.VALUE}return l&&null!=a.endRow&&o.isContiguousRange(a)&&o.isBottomRightCell(a,s)},n.prototype.addSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=(e.context,e.rangeController),r=Je.last(o.getCellRanges()).type,i=n.isEnableFillHandle()&&Je.missing(r)?t.SelectionHandleType.FILL:t.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(i)),this.selectionHandle.refresh(this)},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.refreshHandle=function(){if(this.beans.rangeController){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),Je.addOrRemoveCssClass(this.getGui(),"ag-cell-range-handle",!!this.selectionHandle)}},n.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,o=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left,a=this.getGui();Je.addOrRemoveCssClass(a,"ag-cell-range-top",n),Je.addOrRemoveCssClass(a,"ag-cell-range-right",o),Je.addOrRemoveCssClass(a,"ag-cell-range-bottom",r),Je.addOrRemoveCssClass(a,"ag-cell-range-left",i)},n.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,Je.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},n.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,Je.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},n.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()},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.addRowDragging=function(){var e=this.beans.gridOptionsWrapper.isPagination(),t=this.beans.gridOptionsWrapper.isRowDragManaged(),n=this.beans.gridOptionsWrapper.isRowModelDefault();if(t){if(!n)return void Je.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 Je.doOnce((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var o=new Wr(this.rowNode,this.column,this.getValueToUse(),this.beans);this.createManagedBean(o,this.beans.context),this.eCellWrapper.insertBefore(o.getGui(),this.eParentOfValue)},n.prototype.addDndSource=function(){var e=new Kr(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.createManagedBean(e,this.beans.context),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addSelectionCheckbox=function(){var e=this,t=new eo;this.beans.context.createBean(t);var n=this.getComponentHolder().checkboxSelection;n="function"===typeof n?n:null,t.init({rowNode:this.rowNode,column:this.column,visibleFunc:n}),this.addDestroyFunc((function(){return e.beans.context.destroyBean(t)})),this.eCellWrapper.insertBefore(t.getGui(),this.eParentOfValue)},n.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,null)}))},n.prototype.isSingleCell=function(){var e=this.beans.rangeController;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},n.prototype.onCellFocused=function(e){var t=this.beans.focusController.isCellFocused(this.cellPosition);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&Je.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t);if(t&&e&&e.forceBrowserFocus){var n=this.getFocusableElement();n.focus(),document.activeElement&&document.activeElement!==document.body||n.focus()}var o=this.beans.gridOptionsWrapper.isFullRowEdit();t||o||!this.editingCell||this.stopRowOrCellEdit()},n.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,n=this.getValue(),o=!1;if(!e)this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),o=!0);if(this.editingCell=!1,this.cellEditor=this.beans.context.destroyBean(this.cellEditor),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(Je.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(),this.refreshHandle(),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,At.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)}else this.editingCell=!1},n.DOM_DATA_KEY_CELL_COMP="cellComp",n.CELL_RENDERER_TYPE_NORMAL="cellRenderer",n.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",n}(rn),ni=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oi=function(){return(oi=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ri=function(e){function n(t,n,o,r,i,a,s,l,u,c,p){var d=e.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=t,d.beans=s,d.bodyContainerComp=n,d.pinnedLeftContainerComp=o,d.pinnedRightContainerComp=r,d.fullWidthContainerComp=i,d.rowNode=a,d.rowIsEven=d.rowNode.rowIndex%2===0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=u,d.printLayout=c,d.embedFullWidth=p,d.setAnimateFlags(l),d}return ni(n,e),n.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.forEac
2h((function(e){return Je.removeCssClass(e,"ag-opacity-zero")}))}))},n.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var n=[],o=this.rowNode.rowHeight,r=this.getInitialRowClasses(t).join(" "),i=Je.escape(this.rowNode.id),a=this.preProcessStylesFromGridOptions(),s=this.getRowBusinessKey(),l=Je.escape(s),u=this.getInitialRowTopStyle(),c=this.rowNode.getRowIndexString(),p=this.beans.headerNavigationService.getHeaderRowCount();return n.push("<div"),n.push(' role="row"'),n.push(' row-index="'+c+'" aria-rowindex="'+(p+this.rowNode.rowIndex+1)+'"'),n.push(i?' row-id="'+i+'"':""),n.push(s?' row-business-key="'+l+'"':""),n.push(' comp-id="'+this.getCompId()+'"'),n.push(' class="'+r+'"'),n.push(' style="height: '+o+"px; "+u+" "+a+'">'),n.push(e),n.push("</div>"),n.join("")},n.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},n.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},n.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()})},n.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+n+"px; ":"transform: translateY("+n+"px);"},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},n.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},n.prototype.lazyCreateCells=function(e,t){if(this.active){var n=this.createCells(e);t.innerHTML=n.template,this.callAfterRowAttachedOnCells(n.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},n.prototype.createRowContainer=function(e,t,n){var o=this,r=this.useAnimationFrameForCreate,i=r?{cellComps:[],template:""}:this.createCells(t),a=this.createTemplate(i.template);e.appendRowTemplate(a,(function(){var a=e.getRowElement(o.getCompId());o.afterRowAttached(e,a),n(a),r?o.beans.taskQueue.createTask(o.lazyCreateCells.bind(o,t,a),o.rowNode.rowIndex,"createTasksP1"):(o.callAfterRowAttachedOnCells(i.cellComps,a),o.rowContainerReadyCount=3)}))},n.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=oi({},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},n.prototype.setupRowContainers=function(){var e=this.rowNode.isFullWidthCell(),t=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnController.isPivotMode(),r=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowNode.stub?this.createFullWidthRows(n.LOADING_CELL_RENDERER,n.LOADING_CELL_RENDERER_COMP_NAME):t?this.createFullWidthRows(n.DETAIL_CELL_RENDERER,n.DETAIL_CELL_RENDERER_COMP_NAME):e?this.createFullWidthRows(n.FULL_WIDTH_CELL_RENDERER,null):r?this.createFullWidthRows(n.GROUP_ROW_RENDERER,n.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},n.prototype.setupNormalRowContainers=function(){var e,t=this,n=[],o=[];this.printLayout?e=this.beans.columnController.getAllDisplayedColumns():(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return t.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,o,(function(e){return t.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,n,(function(e){return t.ePinnedLeftRow=e}))},n.prototype.createFullWidthRows=function(e,t){var n=this;if(this.fullWidthRow=!0,this.embedFullWidth){if(this.createFullWidthRowContainer(this.bodyContainerComp,null,
2null,e,t,(function(e){n.eFullWidthRowBody=e}),(function(e){n.fullWidthRowComponentBody=e})),this.printLayout)return;this.createFullWidthRowContainer(this.pinnedLeftContainerComp,je.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){n.eFullWidthRowLeft=e}),(function(e){n.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,je.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){n.eFullWidthRowRight=e}),(function(e){n.fullWidthRowComponentRight=e}))}else this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){n.eFullWidthRow=e}),(function(e){n.fullWidthRowComponent=e}))},n.prototype.setAnimateFlags=function(e){if(e){var t=Je.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.fullWidthRow},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n,o){if(!t||!n)return!0;if(!n.refresh)return!1;var r=e.createFullWidthParams(t,o);return n.refresh(r)},n=t(this.eFullWidthRow,this.fullWidthRowComponent,null),o=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),r=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,je.PINNED_LEFT),i=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,je.PINNED_RIGHT);return n&&o&&r&&i},n.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Vn.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Vn.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,At.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,At.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,At.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,At.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(e,At.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,At.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,At.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,At.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Vn.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Vn.EVENT_CELL_CHANGED,(function(t){e.forEachCellComp((function(e){return e.onCellChanged(t)}))}))},n.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.eAllRowContainers.forEach((function(t){Je.removeCssClass(t,"ag-row-highlight-above"),Je.removeCssClass(t,"ag-row-highlight-below"),e&&Je.addCssClass(t,"ag-row-highlight-"+e)}
2))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return Je.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},n.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return Je.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return Je.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},n.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.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,je.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,je.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},n.prototype.getContainerForCell=function(e){switch(e){case je.PINNED_LEFT:return this.ePinnedLeftRow;case je.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},n.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},n.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},n.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,n;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],n=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,n),this.elementOrderChanged=!1;var o=Object.keys(this.cellComps);e.forEach((function(e){return Je.removeFromArray(o,e.getId())})),t.forEach((function(e){return Je.removeFromArray(o,e.getId())})),n.forEach((function(e){return Je.removeFromArray(o,e.getId())}));var r=o.filter(this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(r)}},n.prototype.onColumnMoved=function(){this.elementOrderChanged=!0},n.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var n=t.cellComps[e];Je.missing(n)||(n.detach(),n.destroy(),t.cellComps[e]=null)}))},n.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),n=this.cellComps[e];if(!n||this.isCellInWrongRow(n))return!0;var o=n.isEditing(),r=this.beans.focusController.isCellFocused(n.getCellPosition());if(o||r){var i=n.getColumn();return!(t.indexOf(i)>=0)}return!0},n.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),n=e.getColumn().getPinned(),o=this.getContainerForCell(n),r=e.getParentRow();r!==o&&(r&&r.removeChild(t),o.appendChild(t),e.setParentRow(o),this.elementOrderChanged=!0)}},n.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),n=this.getContainerForCell(t.getPinned());return e.getParentRow()!==n},n.prototype.insertCellsIntoContainer=function(e,t){var n=this;if(e){var o=[],r=[];if(t.forEach((function(t){var i=t.getId(),a=n.cellComps[i];a?n.ensureCellInCorrectContainer(a):n.createNewCell(t,e,o,r)})),o.length>0&&(Je.appendHtml(e,o.join("")),this.callAfterRowAttachedOnCells(r,e)),this.elementOrderChanged&&this.beans.gridOptionsWrapper.isEnsureDomOrder()){var i=t.map((function(e){return n.getCellForCol(e)}));Je.setDomChildOrder(e,i)}}},n.prototype.addDomData=function(e){var t=this.beans.gridOptionsWrapper;t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,null)}))},n.prototype.createNewCell=function(e,t,n,o){var r=new ti(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),i=r.getCreateTemplate();n.push(i),o.push(r),this.cellComps[e.getId()]=r,r.setParentRow(t),this.elementOrderChanged=!0},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"mousedown":this.onRowMouseDown(t)}},n.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}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!Je.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(At.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){this.lastMouseDownOnDragger=Je.isElementChildOfClass(e.target,"ag-row-drag",3)},n.prototype.onRowClick=function(e){if(!(Je.isStopPropagationForAgGrid(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(At.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&
2!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}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var a=!r&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:o})}}}},n.prototype.createFullWidthRowContainer=function(e,n,o,r,i,a,s){var l=this,u=this.createTemplate("",o);e.appendRowTemplate(u,(function(){var o=e.getRowElement(l.getCompId()),u=l.createFullWidthParams(o,n),c=function(e){if(l.isAlive()){var t=e.getGui();o.appendChild(t),s(e)}else l.beans.context.destroyBean(e)},p=l.beans.detailRowCompCache.get(l.rowNode,n);if(p)c(p);else{var d=l.beans.userComponentFactory.newFullWidthCellRenderer(u,r,i);if(!d){var h=vt.isRegistered(t.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(c)}l.afterRowAttached(e,o),a(o),l.angular1Compile(o)}))},n.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},n.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)}},n.prototype.getInitialRowClasses=function(e){var t=[],n=this.beans.gridOptionsWrapper.isTreeData(),o=this.rowNode;return Je.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"),o.isRowPinned()&&t.push("ag-row-pinned"),o.isSelected()&&t.push("ag-row-selected"),o.group?(t.push("ag-row-group"),t.push("ag-row-level-"+o.level),o.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(o.parent?o.parent.level+1:"0")),o.stub&&t.push("ag-row-loading"),this.fullWidthRow&&t.push("ag-full-width-row"),(n?o.allChildrenCount:o.group&&!o.footer)&&t.push(o.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),o.dragging&&t.push("ag-row-dragging"),Je.pushAll(t,this.processClassesFromGridOptions()),Je.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},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return Je.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return Je.addOrRemoveCssClass(e,"ag-row-last",t)})))},n.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},n.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)},n.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(At.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},n.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEac
2h((function(t){return Je.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(At.EVENT_ROW_EDITING_STARTED):this.createRowEvent(At.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),this.editingRow||(this.forEachCellComp((function(o){var r=o===n;r?o.startEditingIfEnabled(e,t,r):o.startEditingIfEnabled(null,null,r)})),this.setEditingRow(!0))},n.prototype.forEachCellComp=function(e){Je.iterateObject(this.cellComps,(function(t,n){n&&e(n)}))},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return Je.addCssClass(e,t)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return Je.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return Je.removeCssClass(e,t)}))}))},n.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)}))},n=this.beans.gridOptionsWrapper.getRowClass();if(n){if("function"===typeof n)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(n)}var o=this.beans.gridOptionsWrapper.getRowClassFunc();o&&t(o({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()}));return e},n.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return Je.cssStyleObjectToMarkup(e)},n.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return Je.addStylesToElement(t,e)}))},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope});return Je.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.createCells=function(e){var t=this,n=[],o=[];return e.forEach((function(e){var r=new ti(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),i=r.getCreateTemplate();n.push(i),o.push(r),t.cellComps[e.getId()]=r})),{template:n.join(""),cellComps:o}},n.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return Je.addOrRemoveCssClass(t,"ag-row-selected",e)}))},n.prototype.callAfterRowAttachedOnCells=function(e,t){var n=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),n.editingRow&&e.startEditingIfEnabled()}))},n.prototype.afterRowAttached=function(e,t){var n=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(Je.exists(n.rowNode.rowTop)){var e=n.roundRowTopToBounds(n.rowNode.rowTop);n.setRowTop(e)}else Je.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)},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Vn.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||Je.addCssClass(e,"ag-row-hover")})),this.addManagedListener(this.rowNode,Vn.EVENT_MOUSE_LEAVE,(function(){Je.removeCssClass(e,"ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),o)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(Je.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";
2this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=At.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+At.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=At.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+At.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroy=function(t){(void 0===t&&(t=!1),this.active=!1,this.destroyFullWidthComponents(),t)?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var n=this.createRowEvent(At.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(n),this.beans.eventService.dispatchEvent(n),e.prototype.destroy.call(this)},n.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},n.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return Je.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return Je.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&Je.exists(e)){var t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=n})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+n+")"}))}},n.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getRenderedCellForColumn=function(e){var t=this,n=this.cellComps[e.getColId()];if(n)return n;var o=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return t&&-1!==t.getColSpanningList().indexOf(e)}));return o.length?o[0]:void 0},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes())},n.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),n=this.rowNode.rowIndex%2===0,o=this.rowIsEven!==n,r=this.beans.headerNavigationService.getHeaderRowCount();o&&(this.rowIsEven=n),this.eAllRowContainers.forEach((function(i){i.setAttribute("row-index",t),i.setAttribute("aria-rowindex",(r+e.rowNode.rowIndex+1).toString()),o&&(Je.addOrRemoveCssClass(i,"ag-row-even",n),Je.addOrRemoveCssClass(i,"ag-row-odd",!n))}))},n.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)}))},n.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},n.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},n.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},n.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},n.DOM_DATA_KEY_RENDERED_ROW="renderedRow",n.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",n.GROUP_ROW_RENDERER="groupRowRenderer",n.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",n.LOADING_CELL_RENDERER="loadingCellRenderer",n.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",n.DETAIL_CELL_RENDERER="detailCellRenderer",n.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",n}(rn),ii=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ai=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},si=function(e,t){return function(n,o){t(n,o,e)}},li=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
2return t.destroyFuncsForColumnListeners=[],t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return ii(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.addManagedListener(this.eventService,At.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,At.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,At.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,At.EVENT_CELL_FOCUSED,(function(t){e.forEachCellComp((function(e){return e.onCellFocused(t)}))})),this.addManagedListener(this.eventService,At.EVENT_FLASH_CELLS,(function(t){e.forEachCellComp((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,At.EVENT_COLUMN_HOVER_CHANGED,(function(){e.forEachCellComp((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.forEachCellComp((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,At.EVENT_RANGE_SELECTION_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,At.EVENT_COLUMN_MOVED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,At.EVENT_COLUMN_PINNED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,At.EVENT_COLUMN_VISIBLE,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,At.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 n=function(n){e.forEachCellComp((function(e){e.getColumn()===t&&n(e)}))},o=function(){n((function(e){return e.onLeftChanged()}))},r=function(){n((function(e){return e.onWidthChanged()}))},i=function(){n((function(e){return e.onFirstRightPinnedChanged()}))},a=function(){n((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(Ct.EVENT_LEFT_CHANGED,o),t.addEventListener(Ct.EVENT_WIDTH_CHANGED,r),t.addEventListener(Ct.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(Ct.EVENT_LAST_LEFT_PINNED_CHANGED,a),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(Ct.EVENT_LEFT_CHANGED,o),t.removeEventListener(Ct.EVENT_WIDTH_CHANGED,r),t.removeEventListener(Ct.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(Ct.EVENT_LAST_LEFT_PINNED_CHANGED,a)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()}
2,t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){Je.missing(e)&&(e={type:At.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 n(n,o){var r=o.getCellForCol(e);r&&t.push(r)}return Je.iterateObject(this.rowCompsByIndex,n),Je.iterateObject(this.floatingBottomRowComps,n),Je.iterateObject(this.floatingTopRowComps,n),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,n,o,r,i){var a=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var s=new ri(a.$scope,r,n,o,i,t,a.beans,!1,!1,a.printLayout,a.embedFullWidthRows);s.init(),e.push(s)})),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 Je.missing(e)?t:(Je.iterateObject(this.rowCompsByIndex,(function(n,o){var r=o.getRowNode();e.indexOf(r)>=0&&t.push(n)})),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(Je.missing(t))return null;var n=document.activeElement,o=this.gridOptionsWrapper.getDomData(n,ti.DOM_DATA_KEY_CELL_COMP);return Je.missing(o)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&e.recycleRows,o=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=this.binRowComps(n);this.redraw(r,o),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&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 n=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(n)}))}},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}
2). 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,n){n.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,n){return n.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){Je.iterateObject(this.rowCompsByIndex,e),Je.iterateObject(this.floatingTopRowComps,e),Je.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,n){var o=this.rowCompsByIndex[t];o&&o.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell({flashDelay:t,fadeDelay:n})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};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 n=e.getCellRenderer();n&&t.push(n)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,n){var o,r,i=this;Je.exists(e)&&(o={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===je.PINNED_TOP?o.top[e.id]=!0:e.rowPinned===je.PINNED_BOTTOM?o.bottom[e.id]=!0:o.normal[e.id]=!0}))),Je.exists(t)&&(r={},t.forEach((function(e){var t=i.columnController.getGridColumn(e);Je.exists(t)&&(r[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode(),i=t.id,a=t.rowPinned;if(Je.exists(o))if(a===je.PINNED_BOTTOM){if(!o.bottom[i])return}else if(a===je.PINNED_TOP){if(!o.top[i])return}else if(!o.normal[i])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();r&&!r[t]||n(e)}))};Je.iterateObject(this.rowCompsByIndex,(function(e,t){a(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(a),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(a)},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,n=this,o={};return e?(t=[],Je.iterateObject(this.rowCompsByIndex,(function(e,r){var i=r.getRowNode();Je.exists(i.id)?(o[i.id]=r,delete n.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),o},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 n=Object.keys(this.rowCompsByIndex).filter((function(e){return!t[e]}));this.removeRowComps(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=Je.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow),o=function(e,o){var r=Number(e);(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(o)&&n.push(r)};return Je.iterateObject(this.rowCompsByIndex,o),Je.iterateObject(e,o),n.sort((function(e,t){return e-t})),n},t.prototype.redraw=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw(e);this.removeRowCompsNotToDraw(r),this.printLayout&&(t=!1);var i=[],a=[];r.forEach((function(r){var s=o.createOrUpdateRowComp(r,e,t,n);Je.exists(s)&&(a.push(s),Je.pushAll(i,s.getAndClearNextVMTurnFunctions()))})),this.flushContainers(a),Je.executeNextVMTurn(i),n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask(this.destroyRowComps.bind(this,e,t)):this.destroyRowComps(e,t),this.checkAngularCompile(),this.gridPanel.updateRowCount()}
2,t.prototype.flushContainers=function(e){Je.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=[];Je.iterateObject(this.rowCompsByIndex,(function(t,n){if(n.isFullWidth()){var o=n.getRowNode().rowIndex;e.push(o.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];Je.iterateObject(this.rowCompsByIndex,(function(t,n){if(n.isFullWidth()&&!n.refreshFullWidth()){var o=n.getRowNode().rowIndex;e.push(o.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,n,o){var r,i=this.rowCompsByIndex[e];if(i||(r=this.paginationProxy.getRow(e),Je.exists(r)&&Je.exists(t)&&t[r.id]&&r.alreadyRendered&&(i=t[r.id],t[r.id]=null)),!i){if(r||(r=this.paginationProxy.getRow(e)),!Je.exists(r))return;i=this.createRowComp(r,n,o)}else i.ensureDomOrder();return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[e]=i,i},t.prototype.destroyRowComps=function(e,t){var n=[];Je.iterateObject(e,(function(e,o){o&&(o.destroy(t),Je.pushAll(n,o.getAndClearDelayedDestroyFunctions()))})),Je.executeInAWhile(n)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.paginationProxy.getPixelOffset(),r=this.maxDivHeightScaler.getOffset(),i=this.gridPanel.getVScrollPosition(),a=i.top,s=i.bottom,l=this.gridOptionsWrapper.getRowBufferInPixels(),u=a+o+r-l,c=s+o+r+l;this.ensureAllRowsInRangeHaveHeightsCalculated(u,c);var p=this.paginationProxy.getRowIndexAtPixel(u),d=this.paginationProxy.getRowIndexAtPixel(c),h=this.paginationProxy.getPageFirstRow(),f=this.paginationProxy.getPageLastRow();p<h&&(p=h),d>f&&(d=f),e=p,t=d}else e=0,t=-1;var g=this.gridOptionsWrapper.getDomLayout()===je.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:At.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var b={type:At.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(b)}),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(),n=this.focusController.isRowNodeFocused(t),o=e.isEditing(),r=t.detail;return!!(n||o||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowComp=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=n&&!o&&!this.printLayout,i=new ri(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,n,o){for(var r=n,i=!1;r&&(r===n||!this.isValidNavigateCell(r));)this.gridOptionsWrapper.isEnableRtl()?t===je.KEY_LEFT&&(r=this.getLastCellOfColSpan(r)):t===je.KEY_RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(t,r),i=Je.missing(r);if(i&&e.keyCode===je.KEY_UP&&(r={rowIndex:-1,rowPinned:null,column:n.column}),o){var a=this.gridOptionsWrapper.getNavigateToNextCellFunc();
2if(Je.exists(a)){var s=a({key:t,previousCellPosition:n,nextCellPosition:r||null,event:e});Je.exists(s)?(s.floating&&(Je.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"),s.rowPinned=s.floating),r={rowPinned:s.rowPinned,rowIndex:s.rowIndex,column:s.column}):r=null}}if(r)if(r.rowIndex<0){var l=this.beans.headerNavigationService.getHeaderRowCount();this.focusController.focusHeaderPosition({headerRowIndex:l+r.rowIndex,column:n.column})}else{this.ensureCellVisible(r);var u=this.getComponentForCell(r);u&&(r=u.getCellPosition(),this.ensureCellVisible(r),this.focusController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(r))}},t.prototype.isValidNavigateCell=function(e){var t=this.rowPositionUtils.getRowNode(e);if(t.detail||t.isFullWidthCell())return!1;if(!t.group)return!0;var n=this.columnController.isPivotMode();return!this.gridOptionsWrapper.isGroupUseEntireRow(n)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:Je.last(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){Je.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,n){var o=this.getComponentForCell(e);o&&o.startRowOrCellEdit(t,n)},t.prototype.getComponentForCell=function(e){var t;switch(e.rowPinned){case je.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case je.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 je.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case je.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.moveToCellAfter(e,n))t.preventDefault();else if(t.shiftKey){0===e.getCellPosition().rowIndex&&(t.preventDefault(),this.focusController.focusHeaderPosition({headerRowIndex:this.beans.headerNavigationService.getHeaderRowCount()-1,column:Je.last(this.columnController.getAllDisplayedColumns())}))}},t.prototype.tabToNextCell=function(e){var t=this.focusController.getFocusedCell();if(Je.missing(t))return!1;var n=this.getComponentForCell(t);return!Je.missing(n)&&this.moveToCellAfter(n,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 n=e.getCellPosition();e.stopEditing();var o=this.findNextCellToFocusOn(n,t,!0),r=Je.exists(o);return r&&(o.startEditingIfEnabled(null,null,!0),o.focusCell(!1)),r},t.prototype.moveToNextEditingRow=function(e,t){var n=e.getCellPosition(),o=this.findNextCellToFocusOn(n,t,!0),r=Je.exists(o);return r&&this.moveEditToNextCellOrRow(e,o),r},t.prototype.moveToNextCellNotEditing=function(e,t){var n=e.getCellPosition(),o=this.findNextCellToFocusOn(n,t,!1),r=Je.exists(o);return r&&o.focusCell(!0),r},t.prototype.moveEditToNextCellOrRow=function(e,t){var n=e.getCellPosition(),o=t.getCellPosition();if(n.rowIndex===o.rowIndex&&n.rowPinned===o.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,n){for(var o=e;;){t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if(Je.exists(r)){var i=r({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});Je.exists(i)?(i.floating&&(Je.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),o={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}):o=null}if(!o)return null;if(n){var a=this.lookupRowNodeForCell(o);if(!o.column.isCellEditable(a))continue}Je.missing(o.rowPinned)&&this.gridPanel.ensureIndexVisible(o.rowIndex),o.column.isPinned()||this.gridPanel.ensureColumnVisible(o.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloating
2Center(),this.animationFrameService.flushAllFrames();var s=this.getComponentForCell(o);if(!Je.missing(s)&&!s.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(o),s}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===je.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===je.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},ai([lt("paginationProxy")],t.prototype,"paginationProxy",void 0),ai([lt("columnController")],t.prototype,"columnController",void 0),ai([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ai([lt("$scope")],t.prototype,"$scope",void 0),ai([lt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ai([lt("rowModel")],t.prototype,"rowModel",void 0),ai([lt("loggerFactory")],t.prototype,"loggerFactory",void 0),ai([lt("focusController")],t.prototype,"focusController",void 0),ai([lt("cellNavigationService")],t.prototype,"cellNavigationService",void 0),ai([lt("columnApi")],t.prototype,"columnApi",void 0),ai([lt("gridApi")],t.prototype,"gridApi",void 0),ai([lt("beans")],t.prototype,"beans",void 0),ai([lt("maxDivHeightScaler")],t.prototype,"maxDivHeightScaler",void 0),ai([lt("animationFrameService")],t.prototype,"animationFrameService",void 0),ai([lt("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ai([ut("rangeController")],t.prototype,"rangeController",void 0),ai([si(0,pt("loggerFactory"))],t.prototype,"agWire",null),t=ai([st("rowRenderer")],t)}(Rt),ui=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,n,o,r){Je.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,n,o,r)},e.addToolPanelClassesFromColDef=function(e,t,n,o,r){Je.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o,r)},e.addColumnClassesFromCollDef=function(e,t,n,o,r,i){if(!Je.missing(e)){var a;if("function"===typeof e)a=e({colDef:t,column:r,columnGroup:i,context:o.getContext(),api:o.getApi()});else a=e;"string"===typeof a?Je.addCssClass(n,a):Array.isArray(a)&&a.forEach((function(e){Je.addCssClass(n,e)}))}},e}(),ci=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},di=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return ci(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},pi([lt("columnHoverService")],t.prototype,"columnHoverService",void 0),pi([it],t.prototype,"postConstruct",null),t}(Rt),hi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gi=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=n,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=r,i.beans=o,i.printLayout=o.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_PRINT,i}return hi(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Je.last(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,Ct.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=Je.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(),n=this.getColumnOrGroup().getOldLeft();this.setLeft(n),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()===je.PINNED_LE
2FT?t:e.getPinned()===je.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){if(Je.exists(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof Ct){var t=this.beans.columnController.getAllDisplayedColumns().indexOf(this.columnOrGroup);this.ariaEl.setAttribute("aria-colindex",(t+1).toString())}else this.ariaEl.removeAttribute("aria-colindex")},fi([it],t.prototype,"postConstruct",null),t}(Rt),yi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mi=function(e){function t(t,n){var o=e.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.cbSelectAll=t,o.column=n;var r=n.getColDef();return o.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,o}return yi(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,At.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,$n.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,n=0,o=function(o){e.gridOptionsWrapper.isGroupSelectsChildren()&&o.group||(o.isSelected()?t++:o.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(o):this.gridApi.forEachNode(o),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===je.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))},vi([lt("gridApi")],t.prototype,"gridApi",void 0),vi([lt("columnApi")],t.prototype,"columnApi",void 0),vi([lt("rowModel")],t.prototype,"rowModel",void 0),vi([lt("selectionController")],t.prototype,"selectionController",void 0),vi([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),vi([it],t.prototype,"postConstruct",null),t}(Rt),Ci=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.skipTabGuardFocus=!1,t}return Ci(t,e),t.prototype.postConstruct=function(){this.getFocusableElement()&&this.wireFocusManagement()},t.prototype.wireFocusManagement=function(){var e=this,n=this.getFocusableElement();Je.addCssClass(n,t.FOCUS_MANAGED_CLASS),this.isFocusableContainer()&&(this.topTabGuard=this.createTabGuard("top"),this.bottomTabGuard=this.createTabGuard("bottom"),this.addTabGuards(),this.activateTabGuards(),this.forEachTabGuard((function(t){e.addManagedListener(t,"focus",e.onFocus.bind(e))}))),(this.onTabKeyDown||this.handleKeyDown)&&this.addKeyDownListeners(n),this.addManagedListener(n,"focu
2sin",this.onFocusIn.bind(this)),this.addManagedListener(n,"focusout",this.onFocusOut.bind(this))},t.prototype.isFocusableContainer=function(){return!1},t.prototype.focusInnerElement=function(e){var t=this.focusController.findFocusableElements(this.getFocusableElement(),'.ag-tab-guard, :not([tabindex="-1"])');t.length&&t[e?t.length-1:0].focus()},t.prototype.onFocusIn=function(e){this.isFocusableContainer()&&this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.isFocusableContainer()&&(this.getFocusableElement().contains(e.relatedTarget)||this.activateTabGuards())},t.prototype.forceFocusOutOfContainer=function(){this.activateTabGuards(),this.skipTabGuardFocus=!0,this.bottomTabGuard.focus()},t.prototype.appendChild=function(t,n){if(this.isFocusableContainer()){Je.isNodeOrElement(t)||(t=t.getGui());var o=this.bottomTabGuard;o?o.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)}else e.prototype.appendChild.call(this,t,n)},t.prototype.createTabGuard=function(e){var t=document.createElement("div");return t.classList.add("ag-tab-guard"),t.classList.add("ag-tab-guard-"+e),t},t.prototype.addTabGuards=function(){var e=this.getFocusableElement();e.insertAdjacentElement("afterbegin",this.topTabGuard),e.insertAdjacentElement("beforeend",this.bottomTabGuard)},t.prototype.forEachTabGuard=function(e){[this.topTabGuard,this.bottomTabGuard].forEach(e)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||(e.keyCode===je.KEY_TAB&&t.onTabKeyDown?t.onTabKeyDown(e):t.handleKeyDown&&t.handleKeyDown(e))}))},t.prototype.onFocus=function(e){this.isFocusableContainer()&&(this.skipTabGuardFocus?this.skipTabGuardFocus=!1:this.focusInnerElement(e.target===this.bottomTabGuard))},t.prototype.activateTabGuards=function(){this.forEachTabGuard((function(e){return e.setAttribute("tabIndex","0")}))},t.prototype.deactivateTabGuards=function(){this.forEachTabGuard((function(e){return e.removeAttribute("tabindex")}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",wi([lt("focusController")],t.prototype,"focusController",void 0),wi([it],t.prototype,"postConstruct",null),t}(rn),Ei=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ei(t,e),t.prototype.getColumn=function(){return this.column},t.prototype.getPinned=function(){return this.pinned},t}(bi),Oi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ri=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Si=function(e){function n(t,o,r){var i=e.call(this,n.TEMPLATE)||this;return i.column=t,i.dragSourceDropTarget=o,i.pinned=r,i}return Oi(n,e),n.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.getComponentHolder(),n=this.columnController.getDisplayNameForColumn(this.column,"header",!0),o=t.sortable,r=this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu;this.appendHeaderComp(n,o,r),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(o),this.addColumnHoverListener(),this.addDisplayMenuListeners(),this.cbSelectAll.setInputAriaLabel("Toggle Selection of All Rows"),this.createManagedBean(new di([this.column],this.getGui())),this.addManagedListener(this.column,Ct.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.createManagedBean(new mi(this.cbSelectAll,this.column));var i=new gi(this.column,this.getGui(),this.beans);this.createManagedBean(i),this.addAttributes(),ui.addHeaderClassesFromColDef(t,this.getGui(),this.gridOptionsWrapper,this.column,null)},n.prototype.addDisplayMenuListeners=function(){var e=this.onMouseOverOut.bind(this);this.addGuiEventListener("mouseenter",e),this.addGuiEventListener("mouseleave",e)},n.prototype.onMouseOverOut=function(e){this.headerComp&&this.headerComp.setActiveParent&&this.headerComp.setActiveParent("mouseenter"
2===e.type)},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.focusController.setFocusedHeader(t.getRowIndex(),this.getColumn())}this.headerComp&&this.headerComp.setActiveParent&&this.headerComp.setActiveParent(!0)},n.prototype.onFocusOut=function(e){this.headerComp&&this.headerComp.setActiveParent&&!this.getGui().contains(e.relatedTarget)&&this.headerComp.setActiveParent(!1)},n.prototype.handleKeyDown=function(e){var t=this.headerComp;if(t){if(e.keyCode===je.KEY_SPACE){var n=this.cbSelectAll;n.isDisplayed()&&!n.getGui().contains(document.activeElement)&&n.setValue(!n.getValue())}if(e.keyCode===je.KEY_ENTER)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var o=e.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}}},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.addColumnHoverListener=function(){this.addManagedListener(this.eventService,At.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);Je.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();Je.addCssClass(t,"ag-header-cell-sortable"),this.sortable=!0}},n.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();Je.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},n.prototype.appendHeaderComp=function(e,t,n){var o=this,r={column:this.column,displayName:e,enableSorting:t,enableMenu:n,showColumnMenu:function(e){o.gridApi.showColumnMenuAfterButtonClick(o.column,e)},progressSort:function(e){o.sortController.progressSort(o.column,!!e,"uiColumnSorted")},setSort:function(e,t){o.sortController.setSortForColumn(o.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)},n.prototype.afterHeaderCompCreated=function(e,t){var n=this;this.getGui().appendChild(t.getGui()),this.addDestroyFunc((function(){n.getContext().destroyBean(t)})),this.setupMove(t.getGui(),e),this.headerComp=t},n.prototype.onColumnMovingChanged=function(){this.column.isMoving()?Je.addCssClass(this.getGui(),"ag-header-cell-moving"):Je.removeCssClass(this.getGui(),"ag-header-cell-moving")},n.prototype.setupMove=function(e,n){var o=this,r=this.column.getColDef(),i=this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||r.lockPosition;if((!i||r.enableRowGroup||r.enablePivot)&&e){var a={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:Mr.ICON_HIDE,getDragItem:function(){return o.createDragItem()},dragItemName:n,dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return!i&&o.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return!i&&o.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(a,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(a)}))}},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var n=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(n);var o=!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize,r=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();if(o){this.addManagedListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")}));var i=new In(this.eResize);this.addManagedListener(i,In.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")})),this.addDestroyFunc(i.destroy.bind(i))}}else Je.removeFromParent(this.eResize)},n.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),o=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnController.setColumnWidths(o,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&Je.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,Je.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.createManagedBean(new Jr(this,"header")))},n.prototype.setupMovingCss=function(){this.addManagedListener(this.column,Ct.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},n.prototype.setupWidth=function(){this.addManagedListener(this.column,Ct.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.setupMenuClass=function(){this.addManagedListener(this.column,Ct.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},n.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==je.PINNED_LE
2FT&&(t*=-1):this.pinned===je.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n            <ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox>\n        </div>',Ri([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Ri([lt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Ri([lt("columnController")],n.prototype,"columnController",void 0),Ri([lt("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Ri([lt("menuFactory")],n.prototype,"menuFactory",void 0),Ri([lt("gridApi")],n.prototype,"gridApi",void 0),Ri([lt("columnApi")],n.prototype,"columnApi",void 0),Ri([lt("sortController")],n.prototype,"sortController",void 0),Ri([lt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Ri([lt("columnHoverService")],n.prototype,"columnHoverService",void 0),Ri([lt("beans")],n.prototype,"beans",void 0),Ri([ln("eResize")],n.prototype,"eResize",void 0),Ri([ln("cbSelectAll")],n.prototype,"cbSelectAll",void 0),n}(_i),Ti=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Di=function(e){function n(t,o,r){var i=e.call(this,n.TEMPLATE)||this;return i.removeChildListenersFuncs=[],i.column=t,i.dragSourceDropTarget=o,i.pinned=r,i}return Ti(n,e),n.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),ui.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.column);var t=this.columnController.getDisplayNameForColumnGroup(this.column,"header");this.appendHeaderGroupComp(t),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.createManagedBean(new di(this.column.getOriginalColumnGroup().getLeafColumns(),this.getGui())),this.createManagedBean(new gi(this.column,this.getGui(),this.beans))},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.beans.focusController.setFocusedHeader(t.getRowIndex(),this.getColumn())}},n.prototype.handleKeyDown=function(e){var t=document.activeElement===this.getGui();switch(e.keyCode){case je.KEY_ENTER:if(t){var n=this.getColumn();if(n.isExpandable()){var o=!n.isExpanded();this.columnController.setColumnGroupOpened(n.getOriginalColumnGroup(),o,"uiColumnExpanded")}}}},n.prototype.setupMovingCss=function(){var e=this;this.column.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addManagedListener(t,Ct.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},n.prototype.getComponentHolder=function(){return this.column.getColGroupDef()},n.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.createManagedBean(new Jr(this,"headerGroup")))},n.prototype.onColumnMovingChanged=function(){Je.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.column.isMoving())},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getUniqueId())},n.prototype.appendHeaderGroupComp=function(e){var t=this,n={displayName:e,columnGroup:this.column,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.column.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var o=this.column,r=o.getLeafColumns();o.getParent()&&o.getParent().getLeafColumns().length===r.length;)o=o.getParent();var i=o.getColGroupDef();i&&(e=i.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[0],"header",!0):"")}var a=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(n).then(a)},n.prototype.afterHeaderCompCreated=function(e,t){var n=this;this.getGui().appendChild(t.getGui()),this.addDestroyFunc((function(){n.getContext().destroyBean(t)})),this.setupMove(t.getGui(),e)},n.prototype.addClasses=function(){var e=this.column.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+e+"-group")},n.prototype.setupMove=function(e,n){var o=this;if(e&&!this.isSuppressMoving()){var r=this.column.getOriginalColumnGroup().getLeafColumns(),i={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:Mr.ICON_HIDE,dragItemName:n,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 o.dragAndDropService.removeDragSource(i)}))}},n.prototype.getDragItemForGroup=function(){var e=this.column.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];
2return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),Je.removeFromArray(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.column.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},n.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.column,bt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},n.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},n.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.column.getLeafColumns().forEach((function(n){n.addEventListener(Ct.EVENT_WIDTH_CHANGED,t),n.addEventListener(Ct.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(Ct.EVENT_WIDTH_CHANGED,t),n.removeEventListener(Ct.EVENT_VISIBLE_CHANGED,t)}))}))},n.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},n.prototype.onWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.column.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 n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.column.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,n,"uiColumnResized")}))}}else Je.removeFromParent(this.eHeaderCellResize)},n.prototype.onResizeStart=function(e){var t=this,n=this.column.getDisplayedLeafColumns();this.resizeCols=n.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 o=null;if(e&&(o=this.columnController.getDisplayedGroupAfter(this.column)),o){var r=o.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;Je.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizing=function(e,t){var n=[],o=this.normaliseDragChange(t);n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+o}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o}),this.columnController.resizeColumnSets(n,e,"uiColumnDragged"),e&&Je.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==je.PINNED_LEFT&&(t*=-1):this.pinned===je.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-group-cell" role="presentation" tabindex="-1">\n            <div ref="agResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',Pi([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Pi([lt("columnController")],n.prototype,"columnController",void 0),Pi([lt("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Pi([lt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Pi([lt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Pi([lt("beans")],n.prototype,"beans",void 0),Pi([lt("gridApi")],n.prototype,"gridApi",void 0),Pi([lt("columnApi")],n.prototype,"columnApi",void 0),n}(_i),Ai=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ni=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ii=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 Ai(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnController.getDisplayNameForColumn(e.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" Filter Input")},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var o=n.getModelAsString(e);t.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")},Ni([ln("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Ni([lt("columnController")],t.prototype,"columnController",void 0),t}(rn),xi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ki=function(e){function n(t,o){var r=e.call(this,n.TEMPLATE)||this;return r.column=t,r.pinned=o,r}return xi(n,e),n.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.createManagedBean(new di([this.column],this.getGui())),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},n.prototype.onTabKeyDown=function(e){var t=document.activeElement,n=this.getGui();if(!(t===n)){e.preventDefault();var o=this.focusController.findNextFocusableElement(n,null,e.shiftKey);o?o.focus():n.focus()}},n.prototype.handleKeyDown=function(e){var t=document.activeElement,n=this.getGui(),o=t===n;switch(e.keyCode){case je.KEY_UP:case je.KEY_DOWN:o||e.preventDefault();case je.KEY_LEFT:case je.KEY_RIGHT:if(o)return;e.stopPropagation();case je.KEY_ENTER:o&&this.focusController.focusFirstFocusableElement(n)&&e.preventDefault();break;case je.KEY_ESCAPE:o||this.getGui().focus()}},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getParentComponent();this.beans.focusController.setFocusedHeader(t.getRowIndex(),this.getColumn())}},n.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()},n.prototype.setupLeftPositioning=function(){var e=new gi(this.column,this.getGui(),this.beans);this.createManagedBean(e)},n.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){var n=e.getFilterComponent().resolveNow(null,(function(e){return e.getModel()}));e.onParentModelChanged(n,t)};this.addManagedListener(this.column,Ct.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},n.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},n.prototype.setupColumnHover=function(){this.addManagedListener(this.eventService,At.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){A(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},n.prototype.setupWidth=function(){this.addManagedListener(this.column,Ct.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupWithFloatingFilter=function(e){var t=this,n=function(){t.getContext().destroyBean(e)};if(this.isAlive()){this.addDestroyFunc(n);var o=e.getGui();A(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),A(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),I(this.eButtonWrapper,!this.suppressFilterButton);var r=Ve("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(r),this.eFloatingFilterBody.appendChild(o),e.afterGuiAttached&&e.afterGuiAttached()}else n()},n.prototype.parentFilterInstance=function(e){this.getFilterComponent().then(e)},n.prototype.getFilterComponent=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI")},n.prototype.getFloatingFilterInstance=function(){var e,o=this.column.getColDef();if("string"===typeof o.filter)e=n.filterToFloatingFilterNames[o.filter];else if(o.filterFramework);else if(!0===o.filter){e=vt.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}var r=this.filterManager.createFilterParams(this.column,this.column.getColDef()),i=this.userComponentFactory.createFinalParams(o,"filter",r),a={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=!!o.floatingFilterComponentParams&&!!o.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.newFloatingFilterComponent(o,a,e);if(!s){var l=this.getFilterComponentPrototype(o);if(l&&l.prototype&&l.prototype.getModelAsString){var u=this.userComponentFactory.createUserComponentFromConcreteClass(Ii,a);s=et.resolve(u)}}return s},n.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},n.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},n.prototype.setupEmpty=function(){I(this.eButtonWrapper,!1)},n.prototype.currentParentModel=function(){return this.getFilterComponent().resolveNow(null,(function(e){return e.getModel()}))},n.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(n){return n.onParentModelChanged(e,t)}))},n.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.")},n.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n.TEMPLATE='<div class="ag-header-cell" role="presentation" tabindex="-1">\n            <div ref="eFloatingFilterBody" role="columnheader"></div>\n            <div class="ag-floating-filter-button" ref="eButtonWrapper" role="presentation">\n                <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n            </div>\n        </div>',Fi([lt("columnHoverService")],n.prototype,"columnHoverService",void 0),Fi([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Fi([lt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Fi([lt("gridApi")],n.prototype,"gridApi",void 0),Fi([lt("columnApi")],n.prototype,"columnApi",void 0),Fi([lt("filterManager")],n.prototype,"filterManager",void 0),Fi([lt("menuFactory")],n.prototype,"menuFactory",void 0),Fi([lt("beans")],n.prototype,"beans",void 0),Fi([ln("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),Fi([ln("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),Fi([ln("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),n}(_i),Mi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Li=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}($r||($r={}));var Gi,Wi=function(e){function t(t,n,o,r){var i=e.call(this,'<div class="ag-header-row" role="row" />')||this;i.headerComps={},i.dept=t,i.type=n,i.pinned=o,i.dropTarget=r;var a=$r[n].toLowerCase().replace(/_/g,"-");return i.addCssClass("ag-header-row-"+a),h()&&(i.getGui().style.transform="translateZ(0)"),i}return Mi(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;
2Object.keys(this.headerComps).forEach((function(n){e(t.headerComps[n])}))},t.prototype.setRowIndex=function(e){this.rowIndex=e,this.getGui().setAttribute("aria-rowindex",(e+1).toString())},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.getType=function(){return this.type},t.prototype.destroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.destroyChildComponents(e)},t.prototype.destroyChildComponents=function(e,t){var n=this;e.forEach((function(e){var o=n.headerComps[e];t&&!o.getColumn().isMoving()&&n.focusController.isHeaderWrapperFocused(o)||(n.getGui().removeChild(o.getGui()),n.destroyBean(o),delete n.headerComps[e])}))},t.prototype.onRowHeightChanged=function(){var e,t,n=this.columnController.getHeaderRowCount(),o=[],r=0;this.columnController.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnController.hasFloatingFilters()&&(n++,r=1),e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+r),a=0;a<i;a++)o.push(e);o.push(t);for(a=0;a<r;a++)o.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var s=0;for(a=0;a<this.dept;a++)s+=o[a];this.getGui().style.top=s+"px",this.getGui().style.height=o[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,At.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()===je.DOM_LAYOUT_PRINT?C(this.pinned)?this.columnController.getContainerWidth(je.PINNED_RIGHT)+this.columnController.getContainerWidth(je.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.destroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDepth=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_PRINT){if(C(this.pinned)){var t=[];return[je.PINNED_LEFT,null,je.PINNED_RIGHT].forEach((function(n){var o=e.columnController.getVirtualHeaderGroupRow(n,e.type==$r.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(o)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==$r.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=Object.keys(this.headerComps),n=[];if(this.getItemsAtDepth().forEach((function(o){if(!o.isEmptyGroup()){var r,i,a=o.getUniqueId(),s=e.getGui();t.indexOf(a)>=0?X(t,a):(r=e.createHeaderComp(o),e.headerComps[a]=r,i=r.getGui(),s.appendChild(i)),n.push(a)}})),this.destroyChildComponents(t,!0),this.gridOptionsWrapper.isEnsureDomOrder()){var o=n.map((function(t){return e.headerComps[t].getGui()}));G(this.getGui(),o)}},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case $r.COLUMN:t=new Si(e,this.dropTarget,this.pinned);break;case $r.COLUMN_GROUP:t=new Di(e,this.dropTarget,this.pinned);break;case $r.FLOATING_FILTER:t=new ki(e,this.pinned)}return this.createBean(t),t.setParentComponent(this),t},t.prototype.getHeaderComps=function(){return this.headerComps},Li([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Li([lt("columnController")],t.prototype,"columnController",void 0),Li([lt("focusController")],t.prototype,"focusController",void 0),Li([at],t.prototype,"destroyAllChildComponents",null),Li([it],t.prototype,"init",null),t}(rn),Vi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hi=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!Je.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?Mr.ICON_PINNED:Mr.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,r=n.filter((function(e){return o[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnController.setColumnsVisible(o,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var o=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnController.setColumnsPinned(o,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),n=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!Je.missing(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var r=this.normaliseDirection(e.hDirection),i=e.dragSource.type,a=e.dragSource.getDragItem().columns;a=a.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(i,a,r,o,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),n=Je.sortNumerically(e.map((function(e){return t.indexOf(e)}))),o=n[0];return Je.last(n)-o!==n.length-1?null:o},e.prototype.attemptMoveColumns=function(e,n,o,r,i){var a=o===t.HorizontalDirection.Left,s=o===t.HorizontalDirection.Right,l=this.calculateValidMoves(n,s,r),u=this.calculateOldIndex(n);if(0!==l.length){var c=l[0],p=null!==u&&!i;if(e==t.DragSourceType.HeaderCell&&(p=null!==u),p){if(a&&c>=u)return;if(s&&c<=u)return}for(var d=0;d<l.length;d++){var h=l[d];if(this.columnController.doesMovePassRules(n,h))return void this.columnController.moveColumns(n,h,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){if(this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable})))return[];var o,r=this.columnController.getDisplayedColumns(this.pinned),i=this.columnController.getAllGridColumns(),a=r.filter((function(t){return Je.includes(e,t)})),s=r.filter((function(t){return!Je.includes(e,t)})),l=i.filter((function(t){return!Je.includes(e,t)})),u=0,c=n;if(t){var p=0;a.forEach((function(e){return p+=e.getActualWidth()})),c-=p}if(c>0){for(var d=0;d<s.length;d++){if((c-=s[d].getActualWidth())<0)break;u++}t&&u++}if(u>0){var h=s[u-1];o=l.indexOf(h)+1}else-1===(o=l.indexOf(s[0]))&&(o=0);var f=[o];if(t)for(var g=o+1,y=i.length-1;g<=y;)f.push(g),g++;else{g=o,y=i.length-1;for(var v=i[g];g<=y&&this.isColumnHidden(r,v);)g++,f.push(g),v=i[g];g=o-1;for(;g>=0;)f.push(g),g--}return f},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.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(Mr.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Mr.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Mr.ICON_MOVE))},e.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 n=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(n.length>0&&(this.dragAndDropService.setGhostIcon(Mr.ICON_PINNED),this.failedMoveAttempts>
27)){var o=this.needToMoveLeft?je.PINNED_LEFT:je.PINNED_RIGHT;this.setColumnsPinned(n,o,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Vi([lt("loggerFactory")],e.prototype,"loggerFactory",void 0),Vi([lt("columnController")],e.prototype,"columnController",void 0),Vi([lt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Vi([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Vi([it],e.prototype,"init",null),e}(),ji=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bi=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?Mr.ICON_PINNED:Mr.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")},ji([lt("columnController")],e.prototype,"columnController",void 0),ji([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),Ui=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(Gi||(Gi={}));var Yi,qi=function(e){function n(t,n){var o=e.call(this)||this;return o.dropListeners={},o.pinned=t,o.eContainer=n,o}return Ui(n,e),n.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case je.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case je.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnController=this.createBean(new Hi(this.pinned,this.eContainer));var e=new Bi(this.pinned);this.createBean(e),this.dropListeners[Gi.ColumnMove]=this.moveColumnController,this.dropListeners[Gi.Pivot]=e,this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel?Gi.Pivot:Gi.ColumnMove},n.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},zi([lt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),zi([lt("columnController")],n.prototype,"columnController",void 0),zi([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),zi([it],n.prototype,"init",null),n}(Rt),Ki=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xi=function(e){function t(t,n,o){var r=e.call(this)||this;return r.headerRowComps=[],r.eContainer=t,r.pinned=o,r.eViewport=n,r}return Ki(t,e),t.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.addManagedListener(this.eventService,At.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},t.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},t.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},t.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},t.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},t.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},t.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===je.PINNED_LE
2FT,t=this.pinned===je.PINNED_RIGHT,n=this.columnController,o=this.gridOptionsWrapper.isEnableRtl();if(e||t){var r=n[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(o&&e||!o&&t)&&(r+=this.scrollWidth),V(this.eContainer,r)}},t.prototype.getRowComps=function(){return this.headerRowComps},t.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},t.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},t.prototype.refresh=function(){this.removeAndCreateAllRowComps()},t.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,n=new qi(this.pinned,t);this.createManagedBean(n),n.registerGridComp(e)},t.prototype.removeHeaderRowComps=function(){var e=this;this.headerRowComps.forEach((function(t){return e.destroyBean(t)})),this.headerRowComps.length=0,k(this.eContainer)},t.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var n=t!==e-1?$r.COLUMN_GROUP:$r.COLUMN,o=new Wi(t,n,this.pinned,this.dropTarget);this.createBean(o),this.headerRowComps.push(o),o.setRowIndex(this.headerRowComps.length-1),this.eContainer.appendChild(o.getGui())}if(!this.columnController.isPivotMode()&&this.columnController.hasFloatingFilters()){o=new Wi(e,$r.FLOATING_FILTER,this.pinned,this.dropTarget);this.createBean(o),this.headerRowComps.push(o),o.setRowIndex(this.headerRowComps.length-1),this.eContainer.appendChild(o.getGui())}},Qi([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Qi([lt("columnController")],t.prototype,"columnController",void 0),Qi([lt("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Qi([it],t.prototype,"init",null),Qi([at],t.prototype,"removeHeaderRowComps",null),t}(Rt),$i=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ji=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(Yi=t.HeaderNavigationDirection||(t.HeaderNavigationDirection={}))[Yi.UP=0]="UP",Yi[Yi.DOWN=1]="DOWN",Yi[Yi.LEFT=2]="LEFT",Yi[Yi.RIGHT=3]="RIGHT";var Zi,ea=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return $i(n,e),n.prototype.registerGridComp=function(e){this.gridPanel=e},n.prototype.registerHeaderRoot=function(e){this.headerRoot=e},n.prototype.getHeaderRowCount=function(){return 0===this.headerRoot.getHeaderContainers().size?0:this.getHeaderContainer().getRowComps().length},n.prototype.getHeaderRowType=function(e){if(this.getHeaderRowCount())return this.getHeaderContainer().getRowComps()[e].getType()},n.prototype.getHeaderContainer=function(e){return void 0===e&&(e="center"),null===e&&(e="center"),this.headerRoot.getHeaderContainers().get(e)},n.prototype.navigateVertically=function(e,n){if(n||(n=this.focusController.getFocusedHeader()),!n)return!1;var o=n.headerRowIndex,r=n.column,i=this.getHeaderRowCount(),a=e===t.HeaderNavigationDirection.UP,s=a?o-1:o+1;if(s<0)return!1;if(s>=i)return this.focusController.focusGridView();var l,u=this.getHeaderRowType(o);if(u===$r.COLUMN_GROUP){var c=r;l=a?r.getParent():c.getDisplayedChildren()[0]}else if(u===$r.FLOATING_FILTER)l=r;else{c=r;l=a?c.getParent():c}return!!l&&(this.focusController.focusHeaderPosition({headerRowIndex:s,column:l}),!0)},n.prototype.navigateHorizontally=function(e,n){var o,r,i=this.focusController.getFocusedHeader();return e===t.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(r="Before",o=this.headerPositionUtils.findHeader(i,r)):(r="After",o=this.headerPositionUtils.findHeader(i,r)),o?(this.focusController.focusHeaderPosition(o,r),!0):!n||this.focusNextHeaderRow(i,r)}
2,n.prototype.focusNextHeaderRow=function(e,t){var n,o,r=e.headerRowIndex;if("Before"===t){if(0===r)return!1;o=r-1,n=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")}else o=r+1,n=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start");return!!n&&(-1===n.headerRowIndex?this.focusController.focusGridView(n.column):this.focusController.focusHeaderPosition(n,t))},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof bt){var o=e.getDisplayedLeafColumns();n="Before"===t?Je.last(o):o[0]}else n=e;this.gridPanel.ensureColumnVisible(n),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},Ji([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Ji([lt("focusController")],n.prototype,"focusController",void 0),Ji([lt("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),Ji([lt("animationFrameService")],n.prototype,"animationFrameService",void 0),n=Ji([st("headerNavigationService")],n)}(Rt),ta=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),na=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oa=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.headerContainers=new Map,t}return ta(n,e),n.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.printLayout=this.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this),this.registerHeaderContainer(new Xi(this.eHeaderContainer,this.eHeaderViewport,null),"center"),this.registerHeaderContainer(new Xi(this.ePinnedLeftHeader,null,je.PINNED_LEFT),"left"),this.registerHeaderContainer(new Xi(this.ePinnedRightHeader,null,je.PINNED_RIGHT),"right"),this.headerContainers.forEach((function(e){return t.createManagedBean(e)})),this.headerNavigationService.registerHeaderRoot(this),this.addManagedListener(this.eventService,At.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},n.prototype.registerGridComp=function(e){this.gridPanel=e,this.headerContainers.forEach((function(t){return t.setupDragAndDrop(e)}))},n.prototype.registerHeaderContainer=function(e,t){this.headerContainers.set(t,e)},n.prototype.onTabKeyDown=function(e){var n=this.gridOptionsWrapper.isEnableRtl(),o=e.shiftKey!==n?t.HeaderNavigationDirection.LEFT:t.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0)||this.focusController.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var n;switch(e.keyCode){case je.KEY_LEFT:n=t.HeaderNavigationDirection.LEFT;case je.KEY_RIGHT:Je.exists(n)||(n=t.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(n);break;case je.KEY_UP:n=t.HeaderNavigationDirection.UP;case je.KEY_DOWN:Je.exists(n)||(n=t.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(n)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=e.relatedTarget,n=this.getGui();!t&&n.contains(document.activeElement)||n.contains(t)||this.focusController.clearFocusedHeader()},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},n.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},n.prototype.forEachHeaderElement=function(e){this.headerContainers.forEac
2h((function(t){return t.forEachHeaderElement(e)}))},n.prototype.refreshHeader=function(){this.headerContainers.forEach((function(e){return e.refresh()}))},n.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();A(this.getGui(),"ag-pivot-on",e),A(this.getGui(),"ag-pivot-off",!e)},n.prototype.setHeight=function(e){var t=e+1+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},n.prototype.addPreventHeaderScroll=function(){var e=this;this.addManagedListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},n.prototype.getHeaderContainers=function(){return this.headerContainers},n.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},n.prototype.setLeftVisible=function(e){I(this.ePinnedLeftHeader,e)},n.prototype.setRightVisible=function(e){I(this.ePinnedRightHeader,e)},n.TEMPLATE='<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>',na([ln("ePinnedLeftHeader")],n.prototype,"ePinnedLeftHeader",void 0),na([ln("ePinnedRightHeader")],n.prototype,"ePinnedRightHeader",void 0),na([ln("eHeaderContainer")],n.prototype,"eHeaderContainer",void 0),na([ln("eHeaderViewport")],n.prototype,"eHeaderViewport",void 0),na([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),na([lt("columnController")],n.prototype,"columnController",void 0),na([lt("gridApi")],n.prototype,"gridApi",void 0),na([lt("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),na([lt("headerNavigationService")],n.prototype,"headerNavigationService",void 0),n}(bi),ra=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ia=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},aa=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.allFilters=new Map,t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var o;return ra(n,e),o=n,n.prototype.init=function(){this.addManagedListener(this.eventService,At.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.addManagedListener(this.eventService,At.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(e){var t=this,n=[];if(e){var o=Ke(Object.keys(e));this.allFilters.forEach((function(r,i){var a=e[i];n.push(t.setModelOnFilterWrapper(r.filterPromise,a)),o.delete(i)})),o.forEach((function(o){var r=t.columnController.getPrimaryColumn(o);if(r){var i=t.getOrCreateFilterWrapper(r,"NO_UI");n.push(t.setModelOnFilterWrapper(i.filterPromise,e[o]))}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+o)}))}else this.allFilters.forEach((function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));et.all(n).then((function(){return t.onFilterChanged()}))},n.prototype.setModelOnFilterWrapper=function(e,t){return new et((function(n){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel"),n());var o=e.setModel(t);null==o?n():o.then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var e={};
2return this.allFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"===typeof o.getModel){var r=o.getModel();m(r)&&(e[n]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},n.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},n.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},n.prototype.updateFilterFlagInColumns=function(e,t){this.allFilters.forEach((function(n){var o=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(o,e,t)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},n.prototype.doesFilterPass=function(e,t){var n=e.data,o=!0;return this.allFilters.forEach((function(r){if(o&&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");o=i.doesFilterPass({node:e,data:n})}}})),o},n.prototype.parseQuickFilter=function(e){return m(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},n.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},n.prototype.onFilterChanged=function(e,t){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged",t),this.checkExternalFilter(),this.allFilters.forEach((function(t){t.filterPromise.then((function(t){t!==e&&t.onAnyFilterChanged&&t.onAnyFilterChanged()}))}));var n={type:At.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};t&&ce(n,t),this.processingFilterChange=!0,this.eventService.dispatchEvent(n),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},n.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},n.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this;return te(this.columnController.getAllColumnsForQuickFilter(),(function(o){var r=n.getQuickFilterTextForColumn(o,e);return m(r)&&r.indexOf(t)>=0}))},n.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},n.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return ee(this.quickFilterParts,(function(o){return n?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},n.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e))&&!(this.advancedFilterPresent&&!this.doesFilterPass(e,t)))},n.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var r={value:n,node:t,data:t.data,column:e,colDef:o,context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(r)}return m(n)?n.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(e){var t=this,n=[];ne(this.columnController.getAllColumnsForQuickFilter(),(function(o){var r=t.getQuickFilterTextForColumn(o,e);m(r)&&n.push(r)})),e.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(e){this.allFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},n.prototype.createValueGetter=function(e){var t=this;return function(n){return t.valueService.getValue(e,n,!0)}},n.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},n.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}
2))},n.prototype.getOrCreateFilterWrapper=function(e,t){var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allFilters.set(e.getColId(),n)),n},n.prototype.cachedFilter=function(e){return this.allFilters.get(e.getColId())},n.prototype.createFilterInstance=function(e,n){var o,r=this,i=vt.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",a=ae(e.getColDef()),s=this.createFilterParams(e,a,n);s.filterModifiedCallback=function(){var t={type:At.EVENT_FILTER_MODIFIED,api:r.gridApi,columnApi:r.columnApi,column:e,filterInstance:o};r.eventService.dispatchEvent(t)};var l=this.userComponentFactory.newFilterComponent(a,s,i,(function(e,t){return pe(e,{doesRowPassOtherFilter:function(e){return r.doesRowPassOtherFilters(t,e)},filterChangedCallback:function(e){return r.onFilterChanged(t,e)}})}));return l&&l.then((function(e){return o=e})),l},n.prototype.createFilterParams=function(e,t,n){void 0===n&&(n=null);var o={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 n&&(o.$scope=n),o},n.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:et.resolve(null)};return n.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,n.filterPromise=this.createFilterInstance(e,n.scope),n.filterPromise&&this.putIntoGui(n,t),n},n.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new et((function(r){e.filterPromise.then((function(i){var a=i.getGui();if(m(a)||console.warn("getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"===typeof a&&(a=L(a)),o.appendChild(a),e.scope){var s=n.$compile(o)(e.scope);e.compiledElement=s,window.setTimeout((function(){return e.scope.$apply()}),0)}r(o),n.eventService.dispatchEvent({type:At.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},n.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;this.allFilters.forEach((function(n){!e.columnController.getPrimaryColumn(n.column)&&(t=!0,e.disposeFilterWrapper(n,"filterDestroyed"))})),t&&this.onFilterChanged()},n.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged())},n.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(o){o.setModel(null),n.getContext().destroyBean(o),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),n.allFilters.delete(e.column.getColId())}))},n.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allFilters.forEach((function(e){return t.disposeFilterWrapper(e,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",ia([lt("$compile")],n.prototype,"$compile",void 0),ia([lt("$scope")],n.prototype,"$scope",void 0),ia([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ia([lt("valueService")],n.prototype,"valueService",void 0),ia([lt("columnController")],n.prototype,"columnController",void 0),ia([lt("rowModel")],n.prototype,"rowModel",void 0),ia([lt("columnApi")],n.prototype,"columnApi",void 0),ia([lt("gridApi")],n.prototype,"gridApi",void 0),ia([lt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ia([it],n.prototype,"init",null),ia([at],n.prototype,"destroy",null),n=o=ia([st("filterManager")],n)}(Rt),sa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),la=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ua=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return sa(t,e),t.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},t.prototype.getValue=function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),this.initialised||this.init(),t){var r,i=e.getColDef(),a=i.field,s=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[s],c=!o&&t.aggData&&void 0!==t.aggData[s];if(n&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&c?r=t.aggData[s]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.execute
2ValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&a&&l?r=Je.getValueUsingField(l,a,e.isFieldContainsDots()):u?r=t.groupData[s]:c?r=t.aggData[s]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,l,e,t):a&&l&&(r=Je.getValueUsingField(l,a,e.isFieldContainsDots())),this.cellExpressions&&"string"===typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}return r}},t.prototype.setValue=function(e,t,n,o){var r=this.columnController.getPrimaryColumn(t);if(e&&r){Je.missing(e.data)&&(e.data={});var i=r.getColDef(),a=i.field,s=i.newValueHandler,l=i.valueSetter;if(Je.missing(a)&&Je.missing(s)&&Je.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,c={node:e,data:e.data,oldValue:this.getValue(r,e),newValue:n,colDef:r.getColDef(),column:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(c.newValue=n,void 0===(u=s&&Je.exists(s)?s(c):Je.exists(l)?this.expressionService.evaluate(l,c):this.setValueUsingField(e.data,a,n,r.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(r,e);var p=r.getColDef().onCellValueChanged;"function"===typeof p&&setTimeout((function(){return p(c)}),0);var d={type:At.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,colDef:c.colDef,columnApi:c.columnApi,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue,source:o};this.eventService.dispatchEvent(d)}}}},t.prototype.setValueUsingField=function(e,t,n,o){if(!t)return!1;if(o)for(var r=t.split("."),i=e;r.length>0&&i;){var a=r.shift();0===r.length?i[a]=n:i=i[a]}else e[t]=n;return!0},t.prototype.executeFilterValueGetter=function(e,t,n,o){var r={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)};return this.expressionService.evaluate(e,r)},t.prototype.executeValueGetter=function(e,t,n,o){var r=n.getId(),i=this.valueCache.getValue(o,r);if(void 0!==i)return i;var a={data:t,node:o,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,o)},s=this.expressionService.evaluate(e,a);return this.valueCache.setValue(o,r,s),s},t.prototype.getValueCallback=function(e,t){var n=this.columnController.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),o=e.getColDef().keyCreator,r=o?o({value:n}):n;return"string"===typeof r||null==r?r:("[object Object]"===(r=String(r))&&Je.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)},la([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),la([lt("expressionService")],t.prototype,"expressionService",void 0),la([lt("columnController")],t.prototype,"columnController",void 0),la([lt("valueCache")],t.prototype,"valueCache",void 0),la([it],t.prototype,"init",null),t=la([st("valueService")],t)}(Rt),ca=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pa=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.hideWhenNoC
2hildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener($t.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("");Je.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=Je.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&&(Je.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(),Je.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},ca([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ca([it],e.prototype,"postConstruct",null),e}(),da=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ha=function(){return(ha=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},fa=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ga=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o},ya=function(e){function n(t,n){var o=e.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=t,o.gridPanel=n,o}return da(n,e),n.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,At.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.onSortChanged(),this.onFilterChanged(),this.onRowGroupChanged()},n.prototype.onSortChanged=function(){var e=this.sortController.getSortModel();this.isGridSorted=!Je.missingOrEmpty(e)},n.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},n.prototype.onRowGroupChanged=function(){var e=this.columnController.getRowGroupColumns();this.isRowGroupActive=!Je.missingOrEmpty(e)},n.prototype.getContainer=function(){return this.eContainer},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},n.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?Mr.ICON_NOT_ALLOWED:Mr.ICON_MOVE},n.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},n.prototype.getRowNodes=function(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes;var t=this.gridOptionsWrapper.isEnableMultiRowDragging(),n=this.selectionController.getSelectedNodes(),o=e.dragItem.rowNode;return t&&-1!==n.indexOf(o)?(this.isMultiRowDrag=!0,ga(n)):(this.isMultiRowDrag=!1,[o])},n.prototype.onDragEnter=function(e){this.dispatchGridEvent(At.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},n.prototype.onDragging=function(e){this.onEnterOrDragging(e)},n.prototype.isFromThisGrid=function(e){return this.gridPanel.getGui().contains(e.dragSource.eElement)},n.prototype.isDropZoneWithinThisGrid=function(e){var t=this.gridPanel.getGui(),n=e.dropZoneTarget;return!t.contains(n)},n.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(At.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)},n.prototype.doManagedDrag=function(e,t){var n,o=this,r=this.isFromThisGrid(e);r?(n=[e.dragItem.rowNode],this.isMultiRowDrag&&(n=ga(this.selectionController.getSelectedNodes()).sort((function(e,t){return o.getRowIndexNumber(e)-o.getRowIndexNumber(t)}))),e.dragItem.rowNodes=n):n=e.dragItem.rowNodes,this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!r?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(n[0],t):this.moveRows(n,t))},n.prototype.getRowIndexNumber=function(e){return parseInt(K(e.getRowIndexString().split("-")),10)},n.prototype.moveRowAndClearHighlight=function(e){var t=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),o=n&&"below"===n.highlighted,r=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes,a=o?1:0;if(this.isFromThisGrid(e))i.forEach((function(e){e.rowTop<r&&(a-=1)})),this.moveRows(i,r,a);else{var s=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(s?s(e):e.id)}
2)),addIndex:l})}this.clearRowHighlight()},n.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},n.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},n.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()},n.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},n.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},n.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)},n.prototype.addRowDropZone=function(e){var n=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("ag-Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(t){e.onDragEnter(n.draggingToRowDragEvent(At.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(o.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(At.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(o.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(At.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(o.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(At.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(ha({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return Mr.ICON_MOVE},external:!0},o))}else Je.doOnce((function(){return console.warn("ag-Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},n.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),o=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),a=this.onDragStop.bind(this);return e?{getContainer:n,onDragEnter:e.onDragEnter?function(n){o(n),e.onDragEnter(t.draggingToRowDragEvent(At.EVENT_ROW_DRAG_ENTER,n))}:o,onDragLeave:e.onDragLeave?function(n){r(n),e.onDragLeave(t.draggingToRowDragEvent(At.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(At.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){a(n),e.onDragStop(t.draggingToRowDragEvent(At.EVENT_ROW_DRAG_END,n))}:a,fromGrid:!0}:{getContainer:n,onDragEnter:o,onDragLeave:r,onDragging:i,onDragStop:a,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(e,n){var o,r=this.mouseEventService.getNormalisedPosition(n).y,i=-1,a=null;switch(r>this.rowModel.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(r),a=this.rowModel.getRow(i)),n.vDirection){case t.VerticalDirection.Down:o="down";break;case t.VerticalDirection.Up:o="up";break;default:o=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:i,overNode:a,y:r,vDirection:o}},n.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},n.prototype.onDragLeave=function(e){this.dispatchGridEvent(At.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},n.prototype.onDragStop=function(e){this.dispatchGridEvent(At.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},n.prototype.stopDragging=function(e){this.ensureIntervalCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},fa([lt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),fa([lt("rowModel")],n.prototype,"rowModel",void 0),fa([lt("columnController")],n.prototype,"columnController",void 0),fa([lt("focusController")],n.prototype,"focusController",void 0),fa([lt("sortController")],n.prototype,"sortController",void 0),fa([lt("filterManager")],n.prototype,"filterManager",void 0),fa([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),fa([lt("selectionController")],n.prototype,"selectionController",void 0),fa([ut("rangeController")],n.prototype,"rangeController",void 0),fa([lt("mou
2seEventService")],n.prototype,"mouseEventService",void 0),fa([it],n.prototype,"postConstruct",null),n}(Rt),va=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ma=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ca=function(e){function n(){var t=e.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">\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">\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 t.scrollLeft=-1,t.scrollTop=-1,t.resetLastHorizontalScrollElementDebounced=Je.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return va(n,e),n.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},n.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},n.prototype.onNewColumnsLoaded=function(){this.beans.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},n.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===je.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.headerNavigationService.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 n=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return n()}))})),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){e.addManagedListener(t,"focusin",(function(){Je.addCssClass(t,"ag-has-focus")})),e.addManagedListener(t,"focusout",(function(e){t.contains(e.relatedTarget)||Je.removeCssClass(t,"ag-has-focus")}))}
2))},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},n.prototype.onCenterViewportResized=function(){Je.isVisible(this.eCenterViewport)?(this.checkViewportAndScrolls(),this.beans.columnController.refreshFlexedColumns(this.getCenterWidth())):this.bodyHeight=0},n.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){return Je.addOrRemoveCssClass(t,"ag-selectable",e)}))},n.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new ya(this.eBodyViewport,this)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=[this.eBodyViewport,this.eBottom,this.eTop],n=function(n){var o=n.relatedTarget;if(null!==Je.getTabIndex(o)){var r=t.some((function(e){return e.contains(o)}));if(!r){var i=e.beans.popupService;r=i.getActivePopups().some((function(e){return e.contains(o)}))||i.isElementWithinCustomPopup(o)}r||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()};t.forEach((function(t){return e.addManagedListener(t,"focusout",n)}))}},n.prototype.addAngularApplyCheck=function(){var e=this,t=!1,n=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.eventService,At.EVENT_VIRTUAL_COLUMNS_CHANGED,n)},n.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.eventService,At.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},n.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!Je.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var n={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(n),e.addDestroyFunc((function(){return e.dragService.removeDragSource(n)}))}))},n.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);
2e.eAllCellContainers.forEach((function(o){return e.addManagedListener(o,t,n)}))}))},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(o){e.addManagedListener(o,t,n)}))}))},n.prototype.addBodyViewportListener=function(){var e=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(t){var n=Je.getTarget(t);n!==e.eBodyViewport&&n!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},n.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},n.prototype.getRowForEvent=function(e){for(var t=Je.getTarget(e);t;){var n=this.gridOptionsWrapper.getDomData(t,ri.DOM_DATA_KEY_RENDERED_ROW);if(n)return n;t=t.parentElement}return null},n.prototype.processKeyboardEvent=function(e,t){var n=Je.getCellCompForEvent(this.gridOptionsWrapper,t);if(n&&!t.defaultPrevented){var o=n.getRenderedRow().getRowNode(),r=n.getColumn(),i=n.isEditing();if(!Je.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,o,r,i))switch(e){case"keydown":!i&&this.navigationService.handlePageScrollingKey(t)||n.onKeyDown(t),this.doGridOperations(t,n);break;case"keypress":n.onKeyPress(t)}if("keydown"===e){var a=n.createEvent(t,At.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(a)}if("keypress"===e){var s=n.createEvent(t,At.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(s)}}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case je.KEY_A:return this.onCtrlAndA(e);case je.KEY_C:return this.onCtrlAndC(e);case je.KEY_V:return this.onCtrlAndV();case je.KEY_D:return this.onCtrlAndD(e);case je.KEY_Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case je.KEY_Y:return this.undoRedoService.redo()}},n.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Je.isStopPropagationForAgGrid(t)){var n=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?(this.preventDefaultOnContextMenu(t),this.handleContextMenuMouseEvent(t,null,n,o)):(o&&o.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;Je.isIOSUserAgent()&&this.eAllCellContainers.forEach((function(t){var n=new In(t);e.addManagedListener(n,In.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,o)})),e.addDestroyFunc((function(){return n.destroy()}))}))},n.prototype.handleContextMenuMouseEvent=function(e,t,n,o){var r=n?n.getRowNode():null,i=o?o.getColumn():null,a=null;if(i){var s=e||t;o.dispatchCellContextMenuEvent(s),a=this.valueService.getValue(i,r)}this.onContextMenu(e,t,r,i,a)},n.prototype.onContextMenu=function(e,t,n,o,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var i=e||t.touches[0];if(this.contextMenuFactory.showMenu(n,o,r,i))(e||t).preventDefault()}},n.prototype.preventDefaultOnContextMenu=function(e){var t=this.gridOptionsWrapper,n=e.which;(t.isPreventDefaultOnContextMenu()||t.isSuppressMiddleClickScrolls()&&2===n)&&e.preventDefault()},n.prototype.onCtrlAndA=function(e){var t=this.beans,n=this.pinnedRowModel,o=this.paginationProxy,r=this.rangeController,i=je.PINNED_BOTTOM,a=je.PINNED_TOP;if(r&&o.isRowsToRender()){var s=[n.isEmpty(a),n.isEmpty(i)],l=s[0]?null:a,u=void 0,c=void 0;s[1]?(u=null,c=this.paginationProxy.getRowCount()-1):(u=i,c=n.getPinnedBottomRowData().length-1);var p=t.columnController.getAllDisplayedColumns();if(Je.missingOrEmpty(p))return;r.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:c,rowEndPinned:u,columnStart:p[0],columnEnd:Je.last(p)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){vt.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){vt.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},n.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var n=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var o,r=this.paginationProxy.getRow(e);do{var i=r.rowTop,a=r.rowHeight,s=this.paginationProxy.getPixelOffset(),l=r.rowTop-s,u=l+r.rowHeight,c=this.getVScrollPosition(),p=this.heightScaler.getOffset(),d=c.top+p,h=c.bottom+p,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()),o=i!==r.rowTop||a!==r.rowHeight}while(o);this.animationFrameService.flushAllFrames()}}},n.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return Je.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||Je.isVerticalScrollShowing(this.eBodyViewport)},n.prototype.isHorizontalScrollShowing=function(){return Je.isHorizontalScrollShowing(this.eCenterViewport)},n.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize(),this.scrollLeft!==this.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},n.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)},n.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),n=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,o=t?0:n,r=Je.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+n+"px)",Je.setFixedHeight(this.eHorizontalScrollBody,o),Je.setFixedHeight(this.eBodyHorizontalScrollViewport,o+(r?1:0)),Je.setFixedHeight(this.eBodyHorizontalScrollC
2ontainer,o)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},n.prototype.updateRowCount=function(){var e=(this.headerNavigationService.getHeaderRowCount()+this.paginationProxy.getRowCount()).toString();this.getGui().setAttribute("aria-rowcount",e)},n.prototype.updateColumnCount=function(){var e=this.columnController.getAllDisplayedColumns();this.getGui().setAttribute("aria-colcount",e.length.toString())},n.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 n,o,r=t.getLeft(),i=r+t.getActualWidth(),a=this.eCenterViewport.clientWidth,s=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(n=l-s-a,o=l-s):(n=s,o=a+s);var u=n>r,c=o<i,p=a<t.getActualWidth(),d=u||p,h=c,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-a-r:l-i:d?r:i-a,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},n.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},n.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},n.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.eBodyViewport.clientWidth;n>0?this.columnController.sizeColumnsToFit(n,"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?")},n.prototype.getCenterContainer=function(){return this.eCenterContainer},n.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},n.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},n.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},n.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new pa({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new pa({eContainer:this.eFullWidthContainer}),pinnedLeft:new pa({eContainer:this.eLeftContainer}),pinnedRight:new pa({eContainer:this.eRightContainer}),floatingTop:new pa({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new pa({eContainer:this.eLeftTop}),floatingTopPinnedRight:new pa({eContainer:this.eRightTop}),floatingTopFullWidth:new pa({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new pa({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new pa({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new pa({eContainer:this.eRightBottom}),floatingBottomFullWidth:new pa({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},Je.iterateObject(this.rowContainerComponents,(function(t,n){n&&e.getContext().createBean(n)}))},n.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();Je.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),Je.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addManagedListener(this.eventService,At.EVENT_HEIGHT_SCALE_CHANGED,t)},n.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addManagedListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addManagedListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},n.prototype.getRowContainers=function(){return this.rowContainerComponents},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},n.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},n.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloating
2Center()},n.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},n.prototype.setCenterWidth=function(){var e=this.headerRootComp,t=this.columnController,n=t.getBodyContainerWidth();this.printLayout&&(n+=t.getPinnedLeftContainerWidth()+t.getPinnedRightContainerWidth());e.setHeaderContainerWidth(n);var o=n+"px";this.eCenterContainer.style.width=o,this.eBottomContainer.style.width=o,this.eTopContainer.style.width=o,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=o)},n.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,n=this.columnController.getPinnedLeftContainerWidth(),o=this.pinningLeft=!this.printLayout&&n>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==o&&this.headerRootComp.setLeftVisible(o),r.forEach((function(t){return Je.setDisplayed(t,e.pinningLeft)})),o&&r.forEach((function(e){return Je.setFixedWidth(e,n)}))},n.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),n=this.pinningRight=!this.printLayout&&t>0,o=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==n&&this.headerRootComp.setRightVisible(n),o.forEach((function(e){return Je.setDisplayed(e,n)})),n&&o.forEach((function(e){return Je.setFixedWidth(e,t)}))},n.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},n.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),Je.setFixedWidth(this.eHorizontalRightSpacer,e),Je.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),Je.setFixedWidth(this.eHorizontalLeftSpacer,t),Je.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},n.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:At.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},n.prototype.setHeaderAndFloatingHeights=function(){var e,t,n,o=this,r=o.columnController,i=o.gridOptionsWrapper,a=o.pinnedRowModel,s=o.eTop,l=o.eBottom,u=0,c=r.getHeaderRowCount();r.isPivotMode()?(t=i.getPivotGroupHeaderHeight(),n=i.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(c++,u=1),t=i.getGroupHeaderHeight(),n=i.getHeaderHeight());var p=c-(1+u);e=u*i.getFloatingFiltersHeight(),e+=p*t,e+=n,this.headerRootComp.setHeight(e);var d=a.getPinnedTopTotalHeight();d&&(d+=1);var h=a.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";s.style.minHeight=f,s.style.height=f,s.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},n.prototype.getBodyHeight=function(){return this.bodyHeight},n.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},n.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},n.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addScrollListener=function(){this.addManagedListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addManagedListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},n.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(e),this.scrollTop=e,this.redrawRowsAfterScroll()},n.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},n.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},n.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,n=t.scrollWidth,o=t.clientWidth,r=Math.floor(Je.getScrollLeft(e,this.enableRtl)),i=n-o;r<0?r=0:r>i&&(r=i),this.doHorizontalScroll(r),this.resetLastHorizontalScrollElementDebounced()},n.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},n.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:At.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloating
2Center(e),this.onHorizontalViewportChanged()},n.prototype.redrawRowsAfterScroll=function(){var e={type:At.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},n.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},n.prototype.getCenterViewportScrollLeft=function(){return Je.getScrollLeft(this.eCenterViewport,this.enableRtl)},n.prototype.setCenterViewportScrollLeft=function(e){Je.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},n.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.eCenterViewport,o=n.clientWidth,r=n.scrollWidth;if(!(Math.abs(t)+o>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;Je.setScrollLeft(i,e,this.enableRtl)}},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},ma([lt("alignedGridsService")],n.prototype,"alignedGridsService",void 0),ma([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ma([lt("rowRenderer")],n.prototype,"rowRenderer",void 0),ma([lt("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),ma([lt("animationFrameService")],n.prototype,"animationFrameService",void 0),ma([lt("navigationService")],n.prototype,"navigationService",void 0),ma([lt("autoHeightCalculator")],n.prototype,"autoHeightCalculator",void 0),ma([lt("columnAnimationService")],n.prototype,"columnAnimationService",void 0),ma([lt("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),ma([lt("paginationAutoPageSizeService")],n.prototype,"paginationAutoPageSizeService",void 0),ma([lt("beans")],n.prototype,"beans",void 0),ma([lt("paginationProxy")],n.prototype,"paginationProxy",void 0),ma([lt("columnApi")],n.prototype,"columnApi",void 0),ma([lt("gridApi")],n.prototype,"gridApi",void 0),ma([lt("dragService")],n.prototype,"dragService",void 0),ma([lt("mouseEventService")],n.prototype,"mouseEventService",void 0),ma([lt("$scope")],n.prototype,"$scope",void 0),ma([lt("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),ma([lt("valueService")],n.prototype,"valueService",void 0),ma([lt("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ma([lt("maxDivHeightScaler")],n.prototype,"heightScaler",void 0),ma([lt("resizeObserverService")],n.prototype,"resizeObserverService",void 0),ma([lt("undoRedoService")],n.prototype,"undoRedoService",void 0),ma([lt("columnController")],n.prototype,"columnController",void 0),ma([lt("headerNavigationService")],n.prototype,"headerNavigationService",void 0),ma([ut("rangeController")],n.prototype,"rangeController",void 0),ma([ut("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),ma([ut("clipboardService")],n.prototype,"clipboardService",void 0),ma([ln("eBodyViewport")],n.prototype,"eBodyViewport",void 0),ma([ln("eCenterContainer")],n.prototype,"eCenterContainer",void 0),ma([ln("eCenterViewport")],n.prototype,"eCenterViewport",void 0),ma([ln("eLeftContainer")],n.prototype,"eLeftContainer",void 0),ma([ln("eRightContainer")],n.prototype,"eRightContainer",void 0),ma([ln("eCenterColsClipper")],n.prototype,"eCenterColsClipper",void 0),ma([ln("eHorizontalScrollBody")],n.prototype,"eHorizontalScrollBody",void 0),ma([ln("eHorizontalLeftSpacer")],n.prototype,"eHorizontalLeftSpacer",void 0),ma([ln("eHorizontalRightSpacer")],n.prototype,"eHorizontalRightSpacer",void 0),ma([ln("eBodyHorizontalScrollViewport")],n.prototype,"eBodyHorizontalScrollViewport",void 0),ma([ln("eBodyHorizontalScrollContainer")],n.prototype,"eBodyHorizontalScrollC
2ontainer",void 0),ma([ln("eFullWidthContainer")],n.prototype,"eFullWidthContainer",void 0),ma([ln("eTop")],n.prototype,"eTop",void 0),ma([ln("eLeftTop")],n.prototype,"eLeftTop",void 0),ma([ln("eRightTop")],n.prototype,"eRightTop",void 0),ma([ln("eTopContainer")],n.prototype,"eTopContainer",void 0),ma([ln("eTopViewport")],n.prototype,"eTopViewport",void 0),ma([ln("eTopFullWidthContainer")],n.prototype,"eTopFullWidthContainer",void 0),ma([ln("eBottom")],n.prototype,"eBottom",void 0),ma([ln("eLeftBottom")],n.prototype,"eLeftBottom",void 0),ma([ln("eRightBottom")],n.prototype,"eRightBottom",void 0),ma([ln("eBottomContainer")],n.prototype,"eBottomContainer",void 0),ma([ln("eBottomViewport")],n.prototype,"eBottomViewport",void 0),ma([ln("eBottomFullWidthContainer")],n.prototype,"eBottomFullWidthContainer",void 0),ma([ln("headerRoot")],n.prototype,"headerRootComp",void 0),ma([ln("overlayWrapper")],n.prototype,"overlayWrapper",void 0),ma([it],n.prototype,"init",null),n}(rn),wa=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ba=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case je.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case je.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case je.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;Je.iterateObject(this.detailGridInfoMap,(function(n,o){Je.exists(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(vt.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){vt.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){if(vt.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){vt.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")&&this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.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 '"+je.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.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 '"+je.ROW_MODEL_TYPE_INFINITE+"'")},e.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 '"+je.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var t=this.immutableService.createTransactionForRowData(e);if(!t)return;var n=t[0],o=t[1];this.clientSideRowModel.updateRowData(n,o),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.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)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,n=0,o=0,r=this;!function i(){var a=(new Date).getTime();r.rowRenderer.redrawAfterModelUpdate();var s=(new Date).getTime();window.setTimeout((function(){var r=(new Date).getTime(),l=s-a,u=r-s;console.log("duration:  processing = "+l+"ms, reflow = "+u+"ms"),t++,n+=l,o+=u,t<e?window.setTimeout(i,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+n/t+"ms"),console.log("average reflow = "+o/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.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})},e.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()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.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()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){Je.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),Je.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:je.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){Je.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");
2var t=je.STEP_EVERYTHING,n={group:je.STEP_EVERYTHING,filter:je.STEP_FILTER,map:je.STEP_MAP,aggregate:je.STEP_AGGREGATE,sort:je.STEP_SORT,pivot:je.STEP_PIVOT};if(Je.exists(e)&&(t=n[e]),Je.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(n).join(", "));else{var o={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(o)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){Je.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){Je.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.getToolPanelInstance=function(e){return this.gridCore.getToolPanelInstance(e)},e.prototype.addVirtualRowListener=function(e,t,n){"string"!==typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"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,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),n&&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)},e.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)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&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})},e.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})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){Je.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:je.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, get
2SelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){Je.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){Je.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){Je.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e,t){var n=this.columnController.getPrimaryColumn(e);if(n){var o=this.filterManager.getFilterComponent(n,"NO_UI"),r=o.resolveNow(null,(function(e){return e}));return t&&(r?setTimeout(t,0,r):o.then(t)),r}},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusController.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty($t.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty($t.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty($t.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridPanel.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridPanel.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty($t.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")}
2,e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty($t.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty($t.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty($t.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty($t.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty($t.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.setSideBarPosition=function(e){this.gridCore.setSideBarPosition(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty($t.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){Je.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty($t.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty($t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnController.getPrimaryColumn(e);return Je.missing(n)&&(n=this.columnController.getGridColumn(e)),Je.missing(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.destroyCalled||(this.destroyCalled=!0,this.context.destroyBean(this.gridCore),this.context.destroy())},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.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},e.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return Je.camelCaseToHumanText(e)},e.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()")},e.prototype.addCellRange=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getChartModels=function(){if(vt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&vt.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.createRangeChart=function(e){if(vt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&vt.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createPivotChart=function(e){if(vt.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&vt.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnController.getGridColumn(e);n||(n=this.columnController.getPrimaryColumn(e)),n?this.menuFactory.showMenuAfterMouseEvent(n,t):console.error("ag-Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty($t.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t};Je.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(n,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyTransaction=function(e){var t=null;if(this.clientSideRowModel){if(e&&null!=e.addIndex){Je.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){Je.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)}
2else console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel.");return this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.updateRowData=function(e){return Je.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)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){Je.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)},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.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})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.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'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},wa([ut("immutableService")],e.prototype,"immutableService",void 0),wa([ut("csvCreator")],e.prototype,"csvCreator",void 0),wa([ut("excelCreator")],e.prototype,"excelCreator",void 0),wa([lt("rowRenderer")],e.prototype,"rowRenderer",void 0),wa([lt("filterManager")],e.prototype,"filterManager",void 0),wa([lt("columnController")],e.prototype,"columnController",void 0),wa([lt("selectionController")],e.prototype,"selectionController",void 0),wa([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),wa([lt("valueService")],e.prototype,"valueService",void 0),wa([lt("alignedGridsService")],e.prototype,"alignedGridsService",void 0),wa([lt("eventService")],e.prototype,"eventService",void 0),wa([lt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),wa([lt("context")],e.prototype,"context",void 0),wa([lt("rowModel")],e.prototype,"rowModel",void 0),wa([lt("sortController")],e.prototype,"sortController",void 0),wa([lt("paginationProxy")],e.prototype,"paginationProxy",void 0),wa([lt("focusController")],e.prototype,"focusController",void 0),wa([lt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),wa([ut("rangeController")],e.prototype,"rangeController",void 0),wa([ut("clipboardService")],e.prototype,"clipboardService",void 0),wa([ut("aggFuncService")],e.prototype,"aggFuncService",void 0),wa([lt("menuFactory")],e.prototype,"menuFactory",void 0),wa([ut("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),wa([lt("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),wa([lt("valueCache")],e.prototype,"valueCache",void 0),wa([lt("animationFrameService")],e.prototype,"animationFrameService",void 0),wa([ut("statusBarService")],e.prototype,"statusBarService",void 0),wa([ut("chartService")],e.prototype,"chartService",void 0),wa([ut("undoRedoService")],e.prototype,"undoRedoService",void 0),wa([it],e.prototype,"init",null),e=wa([st("gridApi")],e)}(),Ea=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_a=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oa=function(e,t){return function(n,o){t(n,o,e)}},Ra=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return Ea(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("function"===typeof e)return e(t);if("string"===typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("ag-Grid: value should be either a string or a function",e)},t.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(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Param
2s =",t),console.log("Exception = "+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},_a([Oa(0,pt("loggerFactory"))],t.prototype,"setBeans",null),t=_a([st("expressionService")],t)}(Rt),Sa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ta=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return Sa(t,e),t.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var o=this.waitingCallbacks[e],r=this;if(!o){o=[],this.waitingCallbacks[e]=o;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&o.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],o=0;o<n.length;o++){(0,n[o])()}if(this.$scope){var r=this;window.setTimeout((function(){r.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)}
2,Ta([lt("$scope")],t.prototype,"$scope",void 0),t=Ta([st("templateService")],t)}(Rt),Da=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Aa=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Na=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}return Da(t,e),t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,At.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){Je.addCssClass(e.element,"ag-keyboard-focus")}))})),this.addManagedListener(this.eventService,At.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){Je.removeCssClass(e.element,"ag-keyboard-focus")}))}))},t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCore.getRootGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),o=this.keepYWithinBounds(e,t.top-n.top),r=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=r+"px";var i,a=n.right-n.left-r;function s(){return t.right-n.left-2}function l(){return t.left-n.left-r}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=s()),i>a&&(i=0)):((i=s())>a&&(i=l()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=o+"px"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),n=t.x,o=t.y,r=e.ePopup,i=e.nudgeX,a=e.nudgeY;this.positionPopup({ePopup:r,x:n,y:o,nudgeX:i,nudgeY:a,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",o=this.getParentRect(),r=t.left-o.left;"right"===n&&(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-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,t,n,o,r,i){var a=this.gridOptionsWrapper.getPostProcessPopupFunc();a&&a({column:r,rowNode:i,ePopup:t,type:e,eventSource:n,mouseEvent:o})},t.prototype.positionPopup=function(e){var t=e.x,n=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(n+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),n=this.keepYWithinBounds(e,n)),e.ePopup.style.left=t+"px",e.ePopup.style.top=n+"px"},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getParentRect=function(){var e=this.getPopupParent(),t=this.gridOptionsWrapper.getDocument();e===t.body&&(e=t.documentElement);var n=getComputedStyle(e),o=e.getBoundingClientRect();return{top:o.top+parseFloat(n.borderTopWidth)||0,left:o.left+parseFloat(n.borderLeftWidth)||0,right:o.right+parseFloat(n.borderRightWidth)||0,bottom:o.bottom+parseFloat(n.borderBottomWidth)||0}},t.prototype.keepYWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),o=n.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),a=n.documentElement.getBoundingClientRect(),s=r===n.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=Je.getAbsoluteHeight(e.ePopup)-l);var c=s?Je.getAbsoluteHeight(o)+o.scrollTop:i.height;s&&(c-=Math.abs(a.top-i.top));var p=c-l-u;return Math.min(Math.max(t,0),Math.abs(p))},t.prototype.keepXWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),o=n.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),a=n.documentElement.getBoundingClientRect(),s=r===n.body,l=e.ePopup,u=Math.min(200,i.width),c=0;e.minWidth&&e.minWidth<u?u=e.minWidth:l.offsetWidth>0&&(u=l.offsetWidth,l.style.minWidth=u+"px",c=Je.getAbsoluteWidth(l)-u);var p=s?Je.getAbsoluteWidth(o)+o.scrollLeft:i.width;s&&(p-=Math.abs(a.left-i.left));var d=p-u-c;return Math.min(Math.max(t,0),Math.abs(d))},t.prototype.addAsModalPopup=function(e,t,n,o){return this.addPopup(!0,e,t,n,o)},t.prototype.addPopup=function(e,t,n,o,r,i){var a=this,s=this.gridOptionsWrapper.getDocument();if(!s)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var l=Je.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 c=document.createElement("div"),p=this.environment.getTheme().theme;p&&Je.addCssClass(c,p),Je.addCssClass(c,"ag-popup"),Je.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),Je.addCssClass(t,"ag-popup-child"),c.appendChild(t),u.appendChild(c),i?this.setAlwaysOnTop(c,!0):this.bringPopupToFront(c);var d=!1,h=function(e){var t=e.which||e.keyCode;if(c.contains(document.activeElement))switch(t){case je.KEY_ESCAPE:y({keyboardEvent:e})}},f=function(e){y({mouseEvent:e})},g=function(e){y({touchEvent:e})},y=function(e){void 0===e&&(e={});var n=e.mouseEvent,i=e.touchEvent,l=e.keyboardEvent;a.isEventFromCurrentPopup({mouseEvent:n,touchEvent:i},t)||a.isEventSameChainAsOriginalEvent({originalMouseEvent:r,mouseEvent:n,touchEvent:i})||d||(d=!0,u.removeChild(c),s.removeEventListener("keydown",h),s.removeEventListener("mousedown",f),s.removeEventListener("touchstart",g),s.removeEventListener("contextmenu",f),a.eventService.removeEventListener(At.EVENT_DRAG_STARTED,f),o&&o(n||i||l),a.popupList=a.popupList.filter((function(e){return e.element!==t})))};return window.setTimeout((function(){n&&s.addEventListener("keydown",h),e&&(s.addEventListener("mousedown",f),a.eventService.addEventListener(At.EVENT_DRAG_STARTED,f),s.addEventListener("touchstart",g),s.addEventListener("contextmenu",f))}),0),this.popupList.push({element:t,hideFunc:y}),y},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,o=e.touchEvent,r=n||o;if(!r)return!1;var i=Je.findIndex(this.popupList,(function(e){return e.element===t}));if(-1===i)return!1;for(var a=i;a<this.popupList.length;a++){var s=this.popupList[a];if(Je.isElementInEventPath(s.element,r))return!0}return this.isElementWithinCustomPopup(r.target)},t.prototype.isElementWithinCustomPopup=function(e){if(!this.popupList.length)return!1;for(;e&&e!==document.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,o=e.touchEvent,r=null;
2if(n?r=n:o&&(r=o.touches[0]),r&&t){var i=n?n.screenX:0,a=n?n.screenY:0,s=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-a)<5;if(s&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!Je.containsClass(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return Je.containsClass(e,"ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(Je.addOrRemoveCssClass(n,"ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),o=n.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=r.length,a=this.getWrapper(e);if(a&&!(o<=1)&&t.contains(e)){var s=n.indexOf(a);if(i)Je.containsClass(a,"ag-always-on-top")?s!==o-1&&Je.last(r).insertAdjacentElement("afterend",a):s!==o-i-1&&r[0].insertAdjacentElement("beforebegin",a);else s!==o-1&&Je.last(n).insertAdjacentElement("afterend",a);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:a};this.eventService.dispatchEvent(l)}},Aa([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Aa([lt("environment")],t.prototype,"environment",void 0),Aa([it],t.prototype,"init",null),t=Aa([st("popupService")],t)}(Rt),Ia=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xa=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fa=function(e,t){return function(n,o){t(n,o,e)}},ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ia(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new Ma(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},xa([Fa(0,pt("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=xa([st("loggerFactory")],t)}(Rt),Ma=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}(),La=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ga=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return La(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var o=document.createElement("span");o.style.position="fixed";var r=this.gridPanel.getCenterContainer();r.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),t||this.cloneItemIntoDummy(n,o);var i=o.offsetWidth;return r.removeChild(o),i+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(n){if(n instanceof Si){var o=n;o.getColumn()===e&&(t=o)}})),t?t.getGui():null},t.prototype.putRowCellsIntoDummyContainer=function(e,t){var n=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return n.cloneItemIntoDummy(e,t)}))},t.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var o=document.createElement("div");Je.containsClass(n,"ag-header-cell")&&(Je.addCssClass(o,"ag-header"),Je.addCssClass(o,"ag-header-row"),o.style.position="static"),o.style.display="table-row",o.appendChild(n),t.appendChild(o)},Ga([lt("rowRenderer")],t.prototype,"rowRenderer",void 0),Ga([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=Ga([st("autoWidthCalculator")],t)}(Rt),Va=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ha=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Va(t,e),t.prototype.addResizeBar=function(e){var t=this,n={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(n,!0);return function(){return t.dragService.removeDragSource(n)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},t.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"},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},Ha([lt("dragService")],t.prototype,"dragService",void 0),Ha([lt("eGridDiv")],t.prototype,"eGridDiv",void 0),t=Ha([st("horizontalResizeService")],t)}(Rt),Ba=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ua=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},za=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Ba(n,e),n.prototype.postConstruct=function(){var n=this;this.logger=this.loggerFactory.create("GridCore");var o=this.createTemplate();if(this.setTemplate(o),[this.gridApi,this.rowRenderer,this.popupService,this.focusController].forEach((function(e){return e.registerGridCore(n)})),vt.isRegistered(t.ModuleNames.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){n.eGridDiv.removeChild(n.getGui())})),this.$scope){var r=this.$scope.$watch(this.quickFilterOnScope,(function(e){return n.filterManager.setQuickFilter(e)}));this.addDestroyFunc(r)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var i=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return i()}));var a=this.getGui();this.addManagedListener(this.eventService,At.EVENT_KEYBOARD_FOCUS,(function(){Je.addCssClass(a,"ag-keyboard-focus")})),this.addManagedListener(this.eventService,At.EVENT_MOUSE_FOCUS,(function(){Je.removeCssClass(a,"ag-keyboard-focus")})),e.prototype.postConstruct.call(this)},n.prototype.getFocusableElement=function(){return this.eRootWrapperBody},n.prototype.createTemplate=function(){var e=vt.isRegistered(t.ModuleNames.SideBarModule),n=vt.isRegistered(t.ModuleNames.StatusBarModule);return'<div ref="eRootWrapper" class="ag-root-wrapper">\n                '+(vt.isRegistered(t.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                    '+(e?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n                </div>\n                "+(n?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n                <ag-pagination></ag-pagination>\n                "+(vt.isRegistered(t.ModuleNames.EnterpriseCoreModule)?"<ag-watermark></ag-watermark>":"")+"\n            </div>"},n.prototype.isFocusableContainer=function(){return!0},n.prototype.getFocusableContainers=function(){var e=[this.gridPanel.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return Je.isVisible(e)}))}
2,n.prototype.focusNextInnerContainer=function(e){var t=this.getFocusableContainers(),n=Je.findIndex(t,(function(e){return e.contains(document.activeElement)}))+(e?-1:1);return!(n<0||n>=t.length)&&(0===n?this.focusGridHeader():this.focusController.focusFirstFocusableElement(t[n]))},n.prototype.focusInnerElement=function(e){var t=this.getFocusableContainers();return e&&t.length>1?this.focusController.focusFirstFocusableElement(Je.last(t)):this.focusGridHeader()},n.prototype.focusGridHeader=function(){var e=this.columnController.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnController.getColumnGroupAtLevel(e,0)),this.focusController.focusHeaderPosition({headerRowIndex:0,column:e}),!0)},n.prototype.onGridSizeChanged=function(){var e={type:At.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";Je.addCssClass(this.getGui(),e)},n.prototype.getRootGui=function(){return this.getGui()},n.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},n.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("ag-Grid: sideBar is not loaded")},n.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("ag-Grid: sideBar is not loaded")},n.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.getSideBar=function(){return this.gridOptions.sideBar},n.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(e);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},n.prototype.setSideBar=function(e){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=Yt.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},n.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},n.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},n.prototype.destroy=function(){this.logger.log("Grid DOM removed"),e.prototype.destroy.call(this)},n.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 n=this.rowModel.getRowCount(),o="function"===typeof e,r=-1,i=0;i<n;i++){var a=this.rowModel.getRow(i);if(o){if(e(a)){r=i;break}}else if(e===a||e===a.data){r=i;break}}r>=0&&this.gridPanel.ensureIndexVisible(r,t)},Ua([lt("gridOptions")],n.prototype,"gridOptions",void 0),Ua([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Ua([lt("rowModel")],n.prototype,"rowModel",void 0),Ua([lt("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Ua([lt("rowRenderer")],n.prototype,"rowRenderer",void 0),Ua([lt("filterManager")],n.prototype,"filterManager",void 0),Ua([lt("eGridDiv")],n.prototype,"eGridDiv",void 0),Ua([lt("$scope")],n.prototype,"$scope",void 0),Ua([lt("quickFilterOnScope")],n.prototype,"quickFilterOnScope",void 0),Ua([lt("popupService")],n.prototype,"popupService",void 0),Ua([lt("columnController")],n.prototype,"columnController",void 0),Ua([lt("loggerFactory")],n.prototype,"loggerFactory",void 0),Ua([lt("columnApi")],n.prototype,"columnApi",void 0),Ua([lt("gridApi")],n.prototype,"gridApi",void 0),Ua([ut("clipboardService")],n.prototype,"clipboardService",void 0),Ua([ln("gridPanel")],n.prototype,"gridPanel",void 0),Ua([ln("sideBar")],n.prototype,"sideBarComp",void 0),Ua([ln("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),n}(bi),Ya=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qa=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ya(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o})}),t.target)},t.prototype.showMenuAfterButtonClick=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:o,keepWithinBounds:!0,column:e})}),t)},t.prototype.showPopup=function(e,t,n){var o,r=this,i=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),a=document.createElement("div");Je.addCssClass(a,"ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",(function(e){return r.trapFocusWithin(e,a)})),i.guiPromise.then((function(e){return a.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&o()};this.eventService.addEventListener("bodyScroll",s);o=this.popupService.addAsModalPopup(a,!0,(function(t){r.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu");var o=t instanceof KeyboardEvent;if(r.tabListener&&(r.tabListener=r.tabListener()),o&&n&&Je.isVisible(n)){var i=r.focusController.findTabbableParent(n);i&&i.focus()}})),t(a),i.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:o};e.afterGuiAttached(t)}}
2)),this.hidePopup=o,e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.keyCode===je.KEY_TAB&&(this.focusController.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),e.shiftKey?this.focusController.focusLastFocusableElement(t):this.focusController.focusFirstFocusableElement(t)))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},qa([lt("filterManager")],t.prototype,"filterManager",void 0),qa([lt("popupService")],t.prototype,"popupService",void 0),qa([lt("focusController")],t.prototype,"focusController",void 0),t=qa([st("menuFactory")],t)}(Rt),Qa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xa=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return Qa(t,e),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=Je.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),Je.removeFromArray(this.dragSources,t))},t.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");Je.exists(t)&&Je.addOrRemoveCssClass(t,"ag-unselectable",e)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",n);var o=null,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(o=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:n,touchStartListener:o,touchEnabled:t})},t.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var o=t.touches[0];this.touchLastTime=o,this.touchStart=o,t.cancelable&&t.preventDefault();var r=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,a=[{target:i,type:"touchmove",listener:function(t){return n.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(a),0===e.dragStartPixels&&this.onCommonMove(o,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var n=this,o=t;if((!e.skipMouseEvent||!e.skipMouseEvent(t))&&!o._alreadyProcessedByDragService&&(o._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,o){return n.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t,o){return n.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)}},t.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.addEventListener(n,o,r)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,n=e.type,o=e.listener,r=e.options;t.removeEventListener(n,o,r)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels,o=Je.exists(n)?n:4;return Je.areEventsNear(e,t,o)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:At.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:At.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}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},Xa([lt("loggerFactory")],t.prototype,"loggerFactory",void 0),Xa([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Xa([lt("columnApi")],t.prototype,"columnApi",void 0),Xa([lt("gridApi")],t.prototype,"gridApi",void 0),Xa([it],t.prototype,"init",null),Xa([at],t.prototype,"removeAllListeners",null),t=Xa([st("dragService")],t)}(Rt),Ja=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Za=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},es=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getSortModel=function(){return t.getColumnsWithSortingOrdered().map((function(e){return{colId:e.getColId(),sort:e.getSort()}}))},t}var n;return Ja(t,e),n=t,t.prototype.progressSort=function(e,t,n){void 0===n&&(n="api");var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,n)},t.prototype.setSortForColumn=function(e,t,n,o){if(void 0===o&&(o="api"),t!==je.SORT_ASC&&t!==je.SORT_DESC&&(t=null),e.setSort(t,o),e.getSort()){var r=Number((new Date).valueOf());e.setSortedAt(r)}else e.setSortedAt(null);n&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,o),this.dispatchSortChangedEvents()},t.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},t.prototype.dispatchSortChangedEvents=function(){var e={type:At.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEac
2h((function(n){n!==e&&n.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var o,r=t.indexOf(e.getSort()),i=r<0,a=r==t.length-1;return o=i||a?t[0]:t[r+1],n.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("ag-grid: invalid sort type "+o),null):o},t.prototype.setSortModel=function(e,t){var n=this;void 0===t&&(t="api");var o=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(r){var i=null,a=-1;if(o&&r.getColDef().sortable)for(var s=0;s<e.length;s++){var l=e[s];"string"===typeof l.colId&&"string"===typeof r.getColId()&&n.compareColIds(l,r)&&(i=l.sort,a=s)}i?(r.setSort(i,t),r.setSortedAt(a)):(r.setSort(null,t),r.setSortedAt(null))})),this.dispatchSortChangedEvents()},t.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},t.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},t.prototype.getSortForRowController=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{inverter:e.getSort()===je.SORT_ASC?1:-1,column:e}}))},t.DEFAULT_SORTING_ORDER=[je.SORT_ASC,je.SORT_DESC,null],Za([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Za([lt("columnController")],t.prototype,"columnController",void 0),Za([lt("columnApi")],t.prototype,"columnApi",void 0),Za([lt("gridApi")],t.prototype,"gridApi",void 0),t=n=Za([st("sortController")],t)}(Rt),ts=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ns=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.keyboardFocusActive=!1,t}var n;return ts(t,e),n=t,t.prototype.init=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,At.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,At.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,At.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.addManagedListener(e,"keydown",this.activateKeyboardMode.bind(this)),this.addManagedListener(e,"mousedown",this.activateMouseMode.bind(this))},t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnController.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardFocus=function(){return this.keyboardFocusActive},t.prototype.activateMouseMode=function(){this.keyboardFocusActive=!1,this.eventService.dispatchEvent({type:At.EVENT_MOUSE_FOCUS})},t.prototype.activateKeyboardMode=function(){this.keyboardFocusActive=!0,this.eventService.dispatchEvent({type:At.EVENT_KEYBOARD_FOCUS})},t.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition?null:this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},t.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var n=this.gridOptionsWrapper.getDomData(t,ti.DOM_DATA_KEY_CELL_COMP);if(n)return n.getCellPosition();t=t.parentNode}return null},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e,t,n,o){void 0===o&&(o=!1);var r=Je.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:Je.makeNull(n),column:r},this.onCellFocused(o)},t.prototype.isCellFocused=function(e){return!Je.missing(this.focusedCellPosition)&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(Je.missing(this.focused
2HeaderPosition))return!1;var t=e.getColumn(),n=e.getParentComponent().getRowIndex(),o=e.getPinned(),r=this.focusedHeaderPosition,i=r.column,a=r.headerRowIndex;return t===i&&n===a&&o==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e,t){this.headerNavigationService.scrollToColumn(e.column,t);var n=this.headerNavigationService.getHeaderContainer(e.column.getPinned()).getRowComps()[e.headerRowIndex].getHeaderComps()[e.column.getUniqueId()];return!!n&&(n.getFocusableElement().focus(),!0)},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){if(Je.missing(this.focusedCellPosition))return!1;var n=Je.makeNull(t);return this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===n},t.prototype.findFocusableElements=function(e,t,o){var r=n.FOCUSABLE_SELECTOR,i=n.FOCUSABLE_EXCLUDE;t&&(i+=", "+t),o&&(i+=', [tabindex="-1"]');var a=Array.prototype.slice.apply(e.querySelectorAll(r)),s=Array.prototype.slice.apply(e.querySelectorAll(i));if(!s.length)return a;var l;return l=s,a.filter((function(e){return-1===l.indexOf(e)}))},t.prototype.focusFirstFocusableElement=function(e,t){var n=this.findFocusableElements(e,null,t)[0];return!!n&&(n.focus(),!0)},t.prototype.focusLastFocusableElement=function(e,t){var n=Je.last(this.findFocusableElements(e,null,t));return!!n&&(n.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,n){var o=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),r=(t?Je.findIndex(o,(function(e){return e.contains(document.activeElement)})):o.indexOf(document.activeElement))+(n?-1:1);if(!(r<0||r>o.length))return o[r]},t.prototype.isFocusUnderManagedComponent=function(e){var t=e.querySelectorAll("."+bi.FOCUS_MANAGED_CLASS);if(!t.length)return!1;for(var n=0;n<t.length;n++)if(t[n].contains(document.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===Je.getTabIndex(e)&&++n<=t;)e=e.parentElement;return null===Je.getTabIndex(e)?null:e},t.prototype.onCellFocused=function(e){var t={type:At.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)},t.prototype.focusGridView=function(e){var t=this.rowPositionUtils.getFirstRow();if(!t)return!1;var n=t.rowIndex,o=t.rowPinned,r=this.getFocusedHeader();if(e||(e=r.column),!Je.exists(n))return!1;if(this.rowRenderer.ensureCellVisible({rowIndex:n,column:e,rowPinned:o}),this.setFocusedCell(n,e,Je.makeNull(o),!0),this.rangeController){var i={rowIndex:n,rowPinned:o,column:e};this.rangeController.setRangeToCell(i)}return!0},t.prototype.focusNextGridCoreContainer=function(e){if(this.gridCore.focusNextInnerContainer(e))return!0;e||this.gridCore.forceFocusOutOfContainer()},t.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",t.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, .ag-disabled, .ag-disabled *",ns([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ns([lt("columnController")],t.prototype,"columnController",void 0),ns([lt("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ns([lt("columnApi")],t.prototype,"columnApi",void 0),ns([lt("gridApi")],t.prototype,"gridApi",void 0),ns([lt("rowRenderer")],t.prototype,"rowRenderer",void 0),ns([lt("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ns([ut("rangeController")],t.prototype,"rangeController",void 0),ns([it],t.prototype,"init",null),t=n=ns([st("focusController")],t)}(Rt),rs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),is=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},as=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return rs(t,e),n=t,t.prototype.init=function(){this.stampDomElementWithGridInstance()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return Je.getCellCompForEvent(this.gridOptionsWrapper,e)},t.prototype.isEventFromThisGrid=function(e){for(var t=Je.getEventPath(e),o=0;o<t.length;o++){var r=t[o][n.GRID_DOM_KEY];if(Je.exists(r))return r===this.gridInstanceId}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t=this.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_NORMAL,n=e.x,o=e.y;if(t){var r=this.gridPanel.getVScrollPosition();return{x:n+this.gridPanel.getHScrollPosition().left,y:o+r.top}}return{x:n,y:o}},t.gridInstanceSequence=new Ze,t.GRID_DOM_KEY="__ag_grid_instance",is([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),is([lt("eGridDiv")],t.prototype,"eGridDiv",void 0),is([it],t.prototype,"init",null),t=n=is([st("mouseEventService")],t)}(Rt),ss=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ls=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ss(t,e),t.prototype.getNextCellToFocus=function(e,t){for(var n=t,o=!1;!o;){switch(e){case je.KEY_UP:n=this.getCellAbove(n);break;case je.KEY_DOWN:n=this.getCellBelow(n);break;case je.KEY_RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case je.KEY_LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("ag-Grid: unknown key for navigation "+e)}o=!n||this.isCellGoodToFocusOn(n)}return n},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case je.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case je.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!n.isSuppressNavigable(t)},t.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},t.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},t.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case je.PINNED_BOTTOM:return null;case je.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(je.PINNED_BOTTOM)?{rowIndex:0,rowPinned:je.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(je.PINNED_BOTTOM)?{rowIndex:0,rowPinned:je.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},t.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},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===je.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===je.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.rowModel.getRowCount()-1<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return 0===t?n===je.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(je.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},t.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},t.prototype.getLastBodyCell=function(){return{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:je.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var i=this.getRowBelow(e);if(Je.missing(i))return null;n=i?i.rowIndex:null,o=i?i.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=Je.last(t);var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(Je.missing(i))return null;n=i?i.rowIndex:null,o=i?i.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},ls([lt("columnController")],t.prototype,"columnController",void 0),ls([lt("rowModel")],t.prototype,"rowModel",void 0),ls([lt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ls([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=ls([st("cellNavigationService")],t)}(Rt),cs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ps=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=Do,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=So,this.cellRendererMap[t.GROUP]=_o},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return Je.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",cs([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),cs([lt("expressionService")],e.prototype,"expressionService",void 0),cs([lt("eventService")],e.prototype,"eventService",void 0),cs([it],e.prototype,"init",null),e=t=cs([st("cellRendererFactory")],e)}(),ds=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ds(t,e),t.prototype.formatValue=function(e,t,n,o,r,i){void 0===i&&(i=!0);var a,s=null,l=e.getColDef();if(r?a=r:i&&(a=t&&t.rowPinned&&l.pinnedRowValueFormatter?l.pinnedRowValueFormatter:l.valueFormatter),a){var u={value:o,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=n,s=this.expressionService.evaluate(a,u)}else if(l.refData)return l.refData[o]||"";return null==s&&Array.isArray(o)&&(s=o.join(", ")),s},hs([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),hs([lt("expressionService")],t.prototype,"expressionService",void 0),t=hs([st("valueFormatterService")],t)}(Rt),gs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ys=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.inputType="radio",t}return gs(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.addManagedListener(this.eventService,At.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}($n),vs=function(){function e(){}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListenerOutsideAngular=function(e,t,n,o){e.addEventListener(t,n,o)},e}(),ms=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ms(t,e),t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:At.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Cs([lt("columnController")],t.prototype,"columnController",void 0),Cs([lt("columnApi")],t.prototype,"columnApi",void 0),Cs([lt("gridApi")],t.prototype,"gridApi",void 0),Cs([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=Cs([st("scrollVisibleService")],t)}(Rt),bs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Es=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if(
2"object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bs(t,e),t.prototype.processAllCellClasses=function(e,t,n,o){this.processClassRules(e.cellClassRules,t,n,o),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,o){if("object"===typeof e&&null!==e)for(var r=Object.keys(e),i=0;i<r.length;i++){var a=r[i],s=e[a],l=void 0;"string"===typeof s?l=this.expressionService.evaluate(s,t):"function"===typeof s&&(l=s(t)),l?n(a):o&&o(a)}},t.prototype.processStaticCellClasses=function(e,t,n){if(e.cellClass){var o=void 0;if("function"===typeof e.cellClass)o=(0,e.cellClass)(t);else o=e.cellClass;"string"===typeof o?n(o):Array.isArray(o)&&o.forEach((function(e){n(e)}))}},Es([lt("expressionService")],t.prototype,"expressionService",void 0),t=Es([st("stylingService")],t)}(Rt),Os=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ss=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Os(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:At.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:At.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},Rs([lt("columnApi")],t.prototype,"columnApi",void 0),Rs([lt("gridApi")],t.prototype,"gridApi",void 0),t=Rs([st("columnHoverService")],t)}(Rt),Ts=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ps=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ds=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return Ts(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.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)}))},t.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))},Ps([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=Ps([st("columnAnimationService")],t)}(Rt),As=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ns=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return As(t,e),n=t,t.prototype.createAutoGroupColumns=function(e){var t=this,n=[],o=this.gridOptionsWrapper.isTreeData(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return o&&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,o){n.push(t.createOneAutoGroupColumn(e,o))})):n.push(this.createOneAutoGroupColumn()),n},t.prototype.createOneAutoGroupColumn=function(e,t){var o,r=this.generateDefaultColDef(e);o=e?je.GROUP_AUTO_COLUMN_ID+"-"+e.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID;var i=this.gridOptionsWrapper.getAutoGroupColumnDef();
2(Je.mergeDeep(r,i),(r=this.columnFactory.mergeColDefs(r)).colId=o,this.gridOptionsWrapper.isTreeData())||Je.missing(r.field)&&Je.missing(r.valueGetter)&&Je.missing(r.filterValueGetter)&&(r.filter=!1);t&&t>0&&(r.headerCheckboxSelection=!1);var a=new Ct(r,null,o,!0);return this.context.createBean(a),a},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework)||(n.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();Je.assign(n,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),o.cellRenderer&&Je.assign(n,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererParams:o.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},t.GROUP_AUTO_COLUMN_BUNDLE_ID=je.GROUP_AUTO_COLUMN_ID,Ns([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ns([lt("columnController")],t.prototype,"columnController",void 0),Ns([lt("columnFactory")],t.prototype,"columnFactory",void 0),t=n=Ns([st("autoGroupColService")],t)}(Rt),xs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ks=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 xs(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,At.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,o){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:At.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:At.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 Je.missing(this.topRowBounds)||Je.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.bottomDis
2playedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.pixelOffset=Je.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),(!Je.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var o=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=o-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),(!Je.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},Fs([lt("rowModel")],t.prototype,"rowModel",void 0),Fs([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fs([lt("selectionController")],t.prototype,"selectionController",void 0),Fs([lt("columnApi")],t.prototype,"columnApi",void 0),Fs([lt("gridApi")],t.prototype,"gridApi",void 0),Fs([it],t.prototype,"postConstruct",null),t=Fs([st("paginationProxy")],t)}(Rt),Ms=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ls=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ms(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addManagedListener(this.eventService,At.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addManagedListener(this.eventService,At.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 n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},Ls([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=Ls([st("paginationAutoPageSizeService")],t)}(Rt),Ws=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return Ws(t,e),t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},Vs([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Vs([it],t.prototype,"init",null),t=Vs([st("valueCache")],t)}(Rt),js=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return js(t,e),t.prototype.init=function(){this.rowModel.getType()===je.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,At.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==je.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if
2(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),o=new _r(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},Bs([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Bs([lt("rowModel")],t.prototype,"rowModel",void 0),Bs([lt("rowRenderer")],t.prototype,"rowRenderer",void 0),Bs([it],t.prototype,"init",null),t=Bs([st("changeDetectionService")],t)}(Rt),zs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ys=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qs=function(e,t){return function(n,o){t(n,o,e)}},Ks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return zs(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.init=function(){this.addManagedListener(this.eventService,At.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,At.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.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},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case At.EVENT_COLUMN_MOVED:case At.EVENT_COLUMN_VISIBLE:case At.EVENT_COLUMN_PINNED:case At.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case At.EVENT_COLUMN_GROUP_OPENED:var o=e;t.processGroupOpenedEvent(o);break;case At.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.")}}))},t.prototype.processGroupOpenedEvent=function(e){var t,n=e.columnGroup;if(n){var o=n.getGroupId();t=this.columnController.getOriginalColumnGroup(o)}n&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+n.isExpanded()),this.columnController.setColumnGroupOpened(t,n.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t,n=this,o=e.column;if(o&&(t=this.columnController.getPrimaryColumn(o.getColId())),!o||t){var r=this.getColumnIds(e),i=this.getMasterColumns(e);switch(e.type){case At.EVENT_COLUMN_MOVED:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+a.toIndex),this.columnController.moveColumns(r,a.toIndex,"alignedGridChanged");break;case At.EVENT_COLUMN_VISIBLE:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+s.visible),this.columnController.setColumnsVisible(r,s.visible,"alignedGridChanged");break;case At.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 At.EVENT_COLUMN_RESIZED:var u=e;
2i.forEach((function(t){n.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth());var o=[{key:t.getColId(),newWidth:t.getActualWidth()}];n.columnController.setColumnWidths(o,!1,u.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(c)}))}},Ys([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ys([lt("columnController")],t.prototype,"columnController",void 0),Ys([qs(0,pt("loggerFactory"))],t.prototype,"setBeans",null),Ys([it],t.prototype,"init",null),t=Ys([st("alignedGridsService")],t)}(Rt),Qs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qs(t,e),t.prototype.adaptFunction=function(e,t,n,o){if(null==t)return{component:null,componentFromFramework:n,source:o,paramsFromSelector:null};var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:n,component:r.functionAdapter(t),source:o,paramsFromSelector:null}:null},t.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),n=typeof t;return"string"===n||"number"===n||"boolean"===n?Je.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},Xs([lt("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=Xs([st("agComponentUtils")],t)}(Rt),Js=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zs=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},el=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Js(t,e),t.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:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},Zs([lt("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Zs([it],t.prototype,"postConstruct",null),t=Zs([st("componentMetadataProvider")],t)}(Rt),tl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nl=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},tl([lt("paginationProxy")],e.prototype,"paginationProxy",void 0),tl([lt("context")],e.prototype,"context",void 0),tl([lt("columnApi")],e.prototype,"columnApi",void 0),tl([lt("gridApi")],e.prototype,"gridApi",void 0),tl([lt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),tl([lt("expressionService")],e.prototype,"expressionService",void 0),tl([lt("rowRenderer")],e.prototype,"rowRenderer",void 0),tl([lt("$compile")
2],e.prototype,"$compile",void 0),tl([lt("templateService")],e.prototype,"templateService",void 0),tl([lt("valueService")],e.prototype,"valueService",void 0),tl([lt("eventService")],e.prototype,"eventService",void 0),tl([lt("columnController")],e.prototype,"columnController",void 0),tl([lt("headerNavigationService")],e.prototype,"headerNavigationService",void 0),tl([lt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),tl([ut("rangeController")],e.prototype,"rangeController",void 0),tl([lt("focusController")],e.prototype,"focusController",void 0),tl([ut("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),tl([lt("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),tl([lt("popupService")],e.prototype,"popupService",void 0),tl([lt("valueFormatterService")],e.prototype,"valueFormatterService",void 0),tl([lt("stylingService")],e.prototype,"stylingService",void 0),tl([lt("columnHoverService")],e.prototype,"columnHoverService",void 0),tl([lt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),tl([lt("animationFrameService")],e.prototype,"taskQueue",void 0),tl([lt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),tl([lt("sortController")],e.prototype,"sortController",void 0),tl([lt("filterManager")],e.prototype,"filterManager",void 0),tl([lt("maxDivHeightScaler")],e.prototype,"maxDivHeightScaler",void 0),tl([lt("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),tl([lt("detailRowCompCache")],e.prototype,"detailRowCompCache",void 0),tl([lt("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),tl([lt("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),tl([lt("selectionController")],e.prototype,"selectionController",void 0),tl([ut("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),tl([it],e.prototype,"postConstruct",null),e=tl([st("beans")],e)}(),ol=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},il={"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}},al={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},sl={},ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ol(t,e),t.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),o=il[n][t],r=0;if(sl[e]||(sl[e]={}),sl[e][t])return sl[e][t];if(al[t]){var i=al[t],a=document.createElement("div");a.style.position="absolute";var s=i.reduce((function(t,n,o){0===o&&Je.addCssClass(t,e);var r=document.createElement("div");return r.style.position="static",Je.addCssClass(r,n),t.appendChild(r),r}),a);if(document.body){document.body.appendChild(a);var l=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(s)[l],10),document.body.removeChild(a)}}return sl[e][t]=r||o,sl[e][t]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;
2return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e,t=/\bag-(material|(?:theme-([\w\-]*)))\b/,n=this.eGridDiv;n&&!(e=t.exec(n.className));)n=n.parentElement;if(!e)return{};var o=e[0];if(void 0===e[2]){var r=o.replace("ag-","ag-theme-");Je.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+o+" with "+r+".")}),"using-old-theme")}return{theme:o,el:n,themeFamily:o.replace(/-dark$/,"")}},rl([lt("eGridDiv")],t.prototype,"eGridDiv",void 0),t=rl([st("environment")],t)}(Rt),ul=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return ul(t,e),t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],o),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,o=this.createTasksP2,r=o.list,i=this.destroyTasks,a=(new Date).getTime(),s=(new Date).getTime()-a,l=e<=0;l||s<e;){var u=void 0;if(n.length)this.sortTaskList(t),u=n.pop().task;else if(r.length)this.sortTaskList(o),u=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}u=i.pop()}this.cancelledTasks.has(u)||u(),s=(new Date).getTime()-a}n.length||r.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1;var e={type:At.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},cl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),cl([it],t.prototype,"init",null),t=cl([st("animationFrameService")],t)}(Rt),dl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeLastPageEventProcessed=0,t}return dl(t,e),t.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,n=e.altKey,o=e.ctrlKey,r=this.mouseEventService.getCellPositionForEvent(e);
2if(!r)return!1;var i=!1;switch(t){case je.KEY_PAGE_HOME:case je.KEY_PAGE_END:o||n||(this.onHomeOrEndKey(t),i=!0);break;case je.KEY_LEFT:case je.KEY_RIGHT:o&&!n&&(this.onCtrlLeftOrRight(t,r),i=!0);break;case je.KEY_UP:case je.KEY_DOWN:o&&!n&&(this.onCtrlUpOrDown(t,r),i=!0);break;case je.KEY_PAGE_DOWN:o||n||(this.onPageDown(r),i=!0);break;case je.KEY_PAGE_UP:o||n||(this.onPageUp(r),i=!0)}return i&&e.preventDefault(),i},t.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},t.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},t.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var o=this.paginationProxy.getPixelOffset(),r=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(r+o),a=this.paginationProxy.getRow(e.rowIndex).rowTop+n-o,s=this.paginationProxy.getRowIndexAtPixel(a+o),l=this.paginationProxy.getPageLastRow();s>l&&(s=l),i>l&&(i=l),this.navigateTo(i,"top",null,s,e.column),this.setTimeLastPageEventProcessed()}},t.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var o=this.paginationProxy.getPixelOffset(),r=t.top,i=this.paginationProxy.getRowIndexAtPixel(r+o),a=this.paginationProxy.getRow(e.rowIndex),s=a.rowTop+a.rowHeight-n-o,l=this.paginationProxy.getRowIndexAtPixel(s+o),u=this.paginationProxy.getPageFirstRow();l<u&&(l=u),i<u&&(i=u),this.navigateTo(i,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},t.prototype.navigateTo=function(e,t,n,o,r){if(Je.exists(n)&&this.gridPanel.ensureColumnVisible(n),Je.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusController.setFocusedCell(o,r,null,!0),this.rangeController){var i={rowIndex:o,rowPinned:null,column:r};this.rangeController.setRangeToCell(i)}},t.prototype.onCtrlUpOrDown=function(e,t){var n=e===je.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(n,null,t.column,n,t.column)},t.prototype.onCtrlLeftOrRight=function(e,t){var n=e===je.KEY_LEFT,o=this.columnController.getAllDisplayedColumns(),r=n?o[0]:Je.last(o);this.navigateTo(t.rowIndex,null,r,t.rowIndex,r)},t.prototype.onHomeOrEndKey=function(e){var t=e===je.KEY_PAGE_HOME,n=this.columnController.getAllDisplayedColumns(),o=t?n[0]:Je.last(n),r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,o,r,o)},hl([lt("mouseEventService")],t.prototype,"mouseEventService",void 0),hl([lt("paginationProxy")],t.prototype,"paginationProxy",void 0),hl([lt("focusController")],t.prototype,"focusController",void 0),hl([lt("animationFrameService")],t.prototype,"animationFrameService",void 0),hl([ut("rangeController")],t.prototype,"rangeController",void 0),hl([lt("columnController")],t.prototype,"columnController",void 0),hl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),hl([it],t.prototype,"init",null),t=hl([st("navigationService")],t)}(Rt),gl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return gl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,At.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.maxDivHeight=Je.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:At.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},yl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),yl([it],t.prototype,"postConstruct",null),t=yl([st("maxDivHeightScaler")],t)}(Rt),ml=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ml(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},t.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))}},t.prototype.recurseDown=function(e,t){var n=this;e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren){var r=Je.find(t(e),"selectable",!0);o=Je.exists(r)}else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);
2e.setRowSelectable(o)}}))},Cl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Cl([it],t.prototype,"init",null),t=Cl([st("selectableService")],t)}(Rt),bl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),El=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bl(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),Je.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var n=this.gridPanel.getCenterContainer();n.appendChild(this.eDummyContainer);var o=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(n){var r=new ti(t.$scope,t.beans,n,e,null,!0,!1);r.setParentRow(t.eDummyContainer),o.push(r)}));var r=o.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=r,o.forEach((function(e){return e.afterAttached()}));for(var i=0,a=0;a<this.eDummyContainer.children.length;a++){var s=this.eDummyContainer.children[a];s.offsetHeight>i&&(i=s.offsetHeight)}return n.removeChild(this.eDummyContainer),o.forEach((function(e){e.detach(),e.destroy()})),Je.clearElement(this.eDummyContainer),i},El([lt("beans")],t.prototype,"beans",void 0),El([lt("$scope")],t.prototype,"$scope",void 0),El([lt("columnController")],t.prototype,"columnController",void 0),t=El([st("autoHeightCalculator")],t)}(Rt),Ol=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sl=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return Ol(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Je.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Je.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Je.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Je.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===je.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,At.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addManagedListener(this.btLast,"click",this.onBtLast.bind(this)),this.addManagedListener(this.btNext,"click",this.onBtNext.bind(this)),this.addManagedListener(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.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):Je.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),o=e("of","of");return'<div class="ag-paging-panel ag-unselectable">
2\n                <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n                    <span ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    '+n+'\n                    <span ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    '+o+'\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                        '+o+'\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.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,Je.addOrRemoveCssClass(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),Je.addOrRemoveCssClass(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,Je.addOrRemoveCssClass(this.btNext,"ag-disabled",this.nextButtonDisabled),this.lastButtonDisabled=!t||o||e===n-1,Je.addOrRemoveCssClass(this.btLast,"ag-disabled",this.lastButtonDisabled)},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=o*n+1)+o-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(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var o=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=o,this.lbRecordCount.innerHTML=o}},Rl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Rl([lt("paginationProxy")],t.prototype,"paginationProxy",void 0),Rl([lt("rowRenderer")],t.prototype,"rowRenderer",void 0),Rl([lt("rowModel")],t.prototype,"rowModel",void 0),Rl([ln("btFirst")],t.prototype,"btFirst",void 0),Rl([ln("btPrevious")],t.prototype,"btPrevious",void 0),Rl([ln("btNext")],t.prototype,"btNext",void 0),Rl([ln("btLast")],t.prototype,"btLast",void 0),Rl([ln("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Rl([ln("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Rl([ln("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Rl([ln("eSummaryPanel")],t.prototype,"eSummaryPanel",void 0),Rl([ln("lbCurrent")],t.prototype,"lbCurrent",void 0),Rl([ln("lbTotal")],t.prototype,"lbTotal",void 0),Rl([it],t.prototype,"postConstruct",null),t}(rn),Tl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Dl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tl(t,e),t.prototype.observeResize=function(e,t,n){void 0===n&&(n=50);var o=this.getFrameworkOverrides(),r=Je.debounce(t,n),i=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!i?function(){var t=new window.ResizeObserver(r);return t.observe(e),function(){return t.disconnect()}}():function(){var r=Je.offsetWidth(e),i=Je.offsetHeight(e),a=!0;return function s(){if(a){var l=Je.offsetWidth(e),u=Je.offsetHeight(e);
2(l!==r||u!==i)&&(r=l,i=u,t()),o.setTimeout(s,n)}}(),function(){return a=!1}}()},Pl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=Pl([st("resizeObserverService")],t)}(Rt),Al=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Zi||(Zi={}));var Il=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n}return Al(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){Je.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===Zi.Loading),Je.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===Zi.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Zi.Loading)},t.prototype.showNoRowsOverlay=function(){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e,Zi.NoRows)},t.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),Je.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>',Nl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Nl([lt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Nl([ln("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),Nl([it],t.prototype,"postConstruct",null),t}(rn),xl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kl=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,t.getTemplate(n))||this;o.suppressEnabledCheckbox=!0,o.suppressOpenCloseIcons=!1;var r=n.title,i=n.enabled,a=n.items,s=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return o.title=r,o.cssIdentifier=n.cssIdentifier||"default",o.enabled=null==i||i,o.items=a||[],o.alignItems=n.alignItems||"center",null!=s&&(o.suppressEnabledCheckbox=s),null!=l&&(o.suppressOpenCloseIcons=l),o}return xl(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">
2\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(Je.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Je.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){t.keyCode===je.KEY_ENTER&&e.toggleGroupExpand()}))},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;Je.setDisplayed(this.eGroupClosedIcon,e&&!this.expanded),Je.setDisplayed(this.eGroupOpenedIcon,e&&this.expanded),Je.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&&Je.removeCssClass(t,"ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var n="ag-group-item-alignment-"+this.alignItems;return Je.addCssClass(t,n),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Je.setDisplayed(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e?this:(this.expanded=e,this.refreshChildDisplay(),Je.setDisplayed(this.eContainer,e),this.expanded?this.dispatchEvent({type:t.EVENT_EXPANDED}):this.dispatchEvent({type:t.EVENT_COLLAPSED}),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,n=e instanceof rn?e.getGui():e;Je.addCssClass(n,"ag-group-item"),Je.addCssClass(n,"ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){var n=this.items[t];Je.addOrRemoveCssClass(n,"ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){Je.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(n){t.setEnabled(n,!0),e(n)})),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(){Je.addOrRemoveCssClass(this.getGui(),"ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(Je.addCssClass(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(Je.removeCssClass(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),Je.addOrRemoveCssClass(this.eContainer,"ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",Fl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fl([ln("eTitleBar")],t.prototype,"eTitleBar",void 0),Fl([ln("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Fl([ln("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Fl([ln("eToolbar")],t.prototype,"eToolbar",void 0),Fl([ln("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Fl([ln("eTitle")],t.prototype,"eTitle",void 0),Fl([ln("eContainer")],t.prototype,"eContainer",void 0),Fl([it],t.prototype,"postConstruct",null),t}(rn),Ml=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ll=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gl=function(e){function t(n){var o=e.call(this,t.getTemplate(n))||this;return o.closable=!0,o.positioned=!1,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0}
2,o.size={width:void 0,height:void 0},o.config=n,o}return Ml(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,n=t.component,o=t.closable,r=t.hideTitleBar,i=t.title,a=t.minWidth,s=t.width,l=t.minHeight,u=t.height,c=t.centered,p=t.x,d=t.y,h=this.getGui();n&&this.setBodyComponent(n),r?Je.addCssClass(this.eTitleBar,"ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){if(h.contains(t.relatedTarget)||h.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var n=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");n&&n.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=a?a:250,this.popupParent=this.popupService.getPopupParent(),s&&this.setWidth(s),u&&this.setHeight(u),this.renderComponent&&this.renderComponent(),s&&u||this.refreshSize(),c?this.center():(p||d)&&this.offsetElement(p,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(),n=e.e,o=e.isLeft,r=e.isTop,i=e.anywhereWithin,a=e.topBuffer,s=n.clientX-this.dragStartPosition.x,l=n.clientY-this.dragStartPosition.y,u=this.getWidth(),c=this.getHeight(),p=t.left>=n.clientX&&this.position.x<=0||t.right<=n.clientX&&t.right<=this.position.x+t.left+u;return p||(p=o?s<0&&n.clientX>this.position.x+t.left||s>0&&n.clientX<this.position.x+t.left:i?s<0&&n.clientX>this.position.x+t.left+u||s>0&&n.clientX<this.position.x+t.left:s<0&&n.clientX>this.position.x+t.left+u||s>0&&n.clientX<this.position.x+t.left+u),{movementX:s=p?0:s,movementY:l=t.top>=n.clientY&&this.position.y<=0||t.bottom<=n.clientY&&t.bottom<=this.position.y+t.top+c||r&&(l<0&&n.clientY>this.position.y+t.top+(a||0)||l>0&&n.clientY<this.position.y+t.top)||!r&&(l<0&&n.clientY>this.position.y+t.top+c||l>0&&n.clientY<this.position.y+t.top+c)?0:l}},t.prototype.refreshSize=function(){var e=this.size,t=e.width,n=e.height;t||this.setWidth(this.getGui().offsetWidth),n||this.setHeight(this.getGui().offsetHeight)},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.getGui();this.popupService.positionPopup({ePopup:n,x:e,y:t,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(n.style.left,10),this.position.y=parseInt(n.style.top,10)},t.prototype.getHeight=function(){return this.size.height},t.prototype.setHeight=function(e){var t=this.getGui(),n=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Je.setFixedHeight(t,e),e=Je.getAbsoluteHeight(t),n=!0;else{e=Math.max(this.minHeight,e);var o=t.offsetParent;o&&o.clientHeight&&e+this.position.y>o.clientHeight&&(e=o.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,n?(t.style.maxHeight="unset",t.style.minHeight="unset"):Je.setFixedHeight(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),n=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Je.setFixedWidth(t,e),e=Je.getAbsoluteWidth(t),n=!0;else{e=Math.max(this.minWidth,e);var o=t.offsetParent;o&&o.clientWidth&&e+this.position.x>o.clientWidth&&(e=o.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,n?(t.style.maxWidth="unset",t.style.minWidth="unset"):Je.
2setFixedWidth(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,n=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,n)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new rn(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n),(o=n.getGui()).appendChild(Je.addCssClass(Je.createIconNoSpan("close",this.gridOptionsWrapper),"ag-panel-title-bar-button-icon")),this.addTitleBarButton(n),n.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var o;(o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,o=n.children,r=o.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r));var i=e.getGui();Je.addCssClass(i,"ag-panel-title-bar-button"),0===t?n.insertAdjacentElement("afterbegin",i):t===r?n.insertAdjacentElement("beforeend",i):o[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return Je.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Je.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=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Ll([lt("popupService")],t.prototype,"popupService",void 0),Ll([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ll([ln("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Ll([ln("eTitleBar")],t.prototype,"eTitleBar",void 0),Ll([ln("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Ll([ln("eTitle")],t.prototype,"eTitle",void 0),Ll([it],t.prototype,"postConstruct",null),t}(rn),Wl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hl=function(e){function t(t){var n=e.call(this,t)||this;return n.RESIZE_TEMPLATE='<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.MAXIMIZE_BTN_TEMPLATE='<div class="ag-dialog-button"></span>',n.resizable={},n.movable=!1,n.isMoving=!1,n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.isResizing=!1,n.lastPosition={x:0,y:0,width:0,height:0},n}return Wl(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,a=o.maximizable;Je.addCssClass(n,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addManagedListener(n,"focu
2sin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),a&&this.setMaximizable(a),this.addResizers(),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,o=t.modal;this.close=this.popupService.addPopup(o,e,!0,this.destroy.bind(this),void 0,n),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 n=!!t.match(/left/i),o=!!t.match(/right/i),r=!!t.match(/top/i),i=!!t.match(/bottom/i),a=n||o,s=r||i,l=this.calculateMouseMovement({e:e,isLeft:n,isTop:r}),u=l.movementX,c=l.movementY,p=0,d=0;if(a&&u){var h=n?-1:1,f=this.getWidth(),g=f+u*h,y=!1;n&&(p=f-g,(this.position.x+p<=0||g<=this.minWidth)&&(y=!0,p=0)),y||this.setWidth(g)}if(s&&c){h=r?-1:1;var v=this.getHeight(),m=v+c*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),(p||d)&&this.offsetElement(this.position.x+p,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,n=t.x,o=t.y,r=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),i=r.movementX,a=r.movementY;this.offsetElement(n+i,o+a),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,n=e.y,o=e.width,r=e.height;this.setWidth(o),this.setHeight(r),this.offsetElement(t,n)}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(){Je.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),Je.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.destroyBean(this.maximizeButtonComp),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(n){var o=n,r=!!e[o],i=t.getResizerElement(o),a=t.resizerMap[o].dragSource||{eElement:i,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,o)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[o]===r&&(t.isAlive()||r)||(r?(t.dragService.addDragSource(a),i.style.pointerEvents="all"):(t.dragService.removeDragSource(a),i.style.pointerEvents="none"),t.resizerMap[o].dragSource=r?a: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.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var o=this.maximizeButtonComp=new rn(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().createBean(o);var r=o.getGui();r.appendChild(this.maximizeIcon=Je.createIconNoSpan("maximize",this.gridOptionsWrapper)),Je.addCssClass(this.maximizeIcon,"ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=Je.createIconNoSpan("minimize",this.gridOptionsWrapper)),Je.addCssClass(this.minimizeIcon,"ag-panel-title-bar-button-icon"),Je.addCssClass(this.minimizeIcon,"ag-hidden"),o.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},Vl([lt("dragService")],t.prototype,"dragService",void 0),t}(Gl),jl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bl=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-field",n.displayTag="input",n.inputType="text",n.setTemplate(n.TE
2MPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return jl(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=Je.exists(t)?t:""),o},t}(Kn),Ul=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zl=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-area",n.displayTag="textarea",n.inputType="",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return Ul(t,e),t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Kn),Yl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ql=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kl=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.labelAlignment="top",n}return Yl(t,e),t.prototype.init=function(){Je.addCssClass(this.eSlider.getGui(),"ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=zn.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),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:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:zn.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>',ql([ln("eLabel")],t.prototype,"eLabel",void 0),ql([ln("eSlider")],t.prototype,"eSlider",void 0),ql([ln("eText")],t.prototype,"eText",void 0),ql([it],t.prototype,"init",null),t}(Bn),Ql=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$l=function(e){function t(n){var o=e.call(this,t.TEMPLATE)||this;return o.H=1,o.S=1,o.B=1,o.A=1,o.isSpectrumDragging=!1,o.isSpectrumHueDragging=!1,o.isSpectrumAlp
2haDragging=!1,o.colorChanged=!1,o.picker=n.picker,o}return Ql(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,o=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),o=Math.max(o,0),o=Math.min(o,t.height),this.setSpectrumValue(n/t.width,1-o/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,o=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,n.style.left=r+o.width/2+"px",this.update()}},t.prototype.update=function(){var e=n.fromHSB(360*this.H,this.S,this.B,this.A),t=n.fromHSB(360*this.H,1,1),o=e.toRgbaString(),r=this.picker;n.fromString(r.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),r.setValue(o),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var o=this.spectrumDragger,r=o.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,o.style.left=e*n.width-r.width/2+"px",o.style.top=(1-t)*n.height-r.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.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("")},t.prototype.setValue=function(e){var t=n.fromString(e),o=t.toHSB(),r=o[0],i=o[1],a=o[2];this.H=(isNaN(r)?0:r)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(i,a)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(Je.exists(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=n.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=t.recentColors;this.colorChanged&&o[0]!==e&&(o=o.filter((function(t){return t!=e})),(o=[e].concat(o)).length>t.maxRecentColors&&(o=o.slice(0,t.maxRecentColors)),t.recentColors=o)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.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>
2\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>',Xl([ln("spectrumColor")],t.prototype,"spectrumColor",void 0),Xl([ln("spectrumVal")],t.prototype,"spectrumVal",void 0),Xl([ln("spectrumDragger")],t.prototype,"spectrumDragger",void 0),Xl([ln("spectrumHue")],t.prototype,"spectrumHue",void 0),Xl([ln("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),Xl([ln("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),Xl([ln("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),Xl([ln("recentColors")],t.prototype,"recentColors",void 0),Xl([it],t.prototype,"postConstruct",null),t}(rn),Jl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zl=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},eu=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 Jl(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},o=this.getGui();this.addManagedListener(o,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&Je.isVisible(t.pickerComponent.getGui())&&o.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(o,"keydown",(function(e){switch(e.keyCode){case je.KEY_UP:case je.KEY_DOWN:case je.KEY_ENTER:case je.KEY_SPACE:n();case je.KEY_ESCAPE:e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",n),this.addManagedListener(this.eLabel,"click",n),this.pickerIcon&&this.eIcon.appendChild(Je.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return Je.setElementWidth(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Zl([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Zl([ln("eLabel")],t.prototype,"eLabel",void 0),Zl([ln("eWrapper")],t.prototype,"eWrapper",void 0),Zl([ln("eDisplayField")],t.prototype,"eDisplayField",void 0),Zl([ln("eIcon")],t.prototype,"eIcon",void 0),t}(zn),tu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),nu=function(e){function t(t){var n=e.call(this)||this;return n.displayTag="div",n.className="ag-color-picker",n.pickerIcon="colorPicker",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&t.color&&(n.value=t.color),n}return tu(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(),n=new Hl({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.createBean(n),Je.addCssClass(n.getGui(),"ag-color-dialog");var o=new $l({picker:this});return this.createBean(o),o.addDestroyFunc((function(){n.isAlive()&&e.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(o),o.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,o.isAlive()&&e.destroyBean(o)),e.isAlive()&&e.getFocusableElement().focus()})),n},t.prototype.setValue=function(e){return this.value===e?this:(this.value=e,this.eDisplayField.style.backgroundColor=e,this.dispatchEvent({type:zn.EVENT_CHANGED}),this)},t.prototype.getValue=function(){return this.value},t}(eu),ou=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ru=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return ou(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)}))},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:(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:(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:(this.step=e,null!=e?this.eInput.setAttribute("step",e.toString()):this.eInput.removeAttribute("step"),this)},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(Bl),iu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),au=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-range-field",n.displayTag="input",n.inputType="range",n.setTemplate(n.TE
2MPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return iu(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,o=t.max,r=t.step;null!=n&&this.setMinValue(n),null!=o&&this.setMaxValue(o),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this,t=Je.isBrowserIE()?"change":"input";this.addManagedListener(this.eInput,t,(function(t){var n=t.target.value;e.setValue(n)}))},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,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t}(Kn),su=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uu=function(e){function t(n){void 0===n&&(n="default");var o=e.call(this,t.getTemplate(n))||this;return o.cssIdentifier=n,o.options=[],o.itemEls=[],o}return su(t,e),t.prototype.init=function(){this.addManagedListener(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 je.KEY_ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case je.KEY_DOWN:case je.KEY_UP:var o=t===je.KEY_DOWN,r=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(o?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[o?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,n=e.text,o=Je.escape(void 0===n?t:n);return this.options.push({value:t,text:o}),this.renderOption(o),this},t.prototype.renderOption=function(e){var t=this,n=document.createElement("div"),o=document.createElement("span");Je.addCssClass(n,"ag-list-item"),Je.addCssClass(n,"ag-"+this.cssIdentifier+"-list-item"),n.tabIndex=-1,o.innerHTML=e,this.itemEls.push(n),this.addManagedListener(n,"mouseover",(function(e){return t.highlightItem(n)})),this.addManagedListener(n,"mouseleave",(function(){return t.clearHighlighted()})),this.addManagedListener(n,"click",(function(){var e=t.itemEls.indexOf(n);t.setValueByIndex(e)})),n.appendChild(o),this.getGui().appendChild(n)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=Je.findIndex(this.options,(function(t){return t.value===e}));if(-1!==n){var o=this.options[n];this.value=o.value,this.displayValue=null!=o.text?o.text:o.value,this.highlightItem(this.itemEls[n]),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=Je.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&&(Je.radioCssClass(e,"ag-active-item"),this.highlightedEl=e,this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(Je.removeCssClass(this.highlightedEl,"ag-active-item"),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:zn.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",lu([it],t.prototype,"init",null),t}(rn),cu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},du=function(e){function t(t){var n=e.call(this)||this;return n.displayTag="div",n.className="ag-select",n.pickerIcon="smallDown",n.setTemplate(n.TE
2MPLATE.replace(/%displayField%/g,n.displayTag)),n}return cu(t,e),t.prototype.init=function(){var e=this;this.listComponent=new uu("select"),this.getContext().createBean(this.listComponent),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,uu.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,zn.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(),n=this.addManagedListener(document.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),o=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()}));return this.hideList=this.popupService.addPopup(!0,t,!0,(function(){e.hideList=null,o(),n(),e.isAlive()&&e.getFocusableElement().focus()})),Je.setElementWidth(t,Je.getAbsoluteWidth(this.eWrapper)),t.style.maxHeight=Je.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,n,o){if(this.value!==t&&(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()!==this.getValue()))return this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.getContext().destroyBean(this.listComponent),e.prototype.destroy.call(this)},pu([lt("popupService")],t.prototype,"popupService",void 0),pu([it],t.prototype,"init",null),t}(eu),hu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gu=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}return hu(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 n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),Je.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,zn.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},n=this.eChildCircle,o=t.width/2,r=t.height/2;n.style.left=o+8*Math.cos(e)+"px",n.style.top=r+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},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,n=t.width/2,o=t.height/2,r=e.clientX-t.left-n,i=e.clientY-t.top-o,a=Math.atan2(i,r);this.setValue(a,!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:(this.radius=e,this.calculateCartesian(),this)},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,zn.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 n;return n=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(n),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:zn.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Je.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>',fu([ln("eLabel")],t.prototype,"eLabel",void 0),fu([ln("eParentCircle")],t.prototype,"eParentCircle",void 0),fu([ln("eChildCircle")],t.prototype,"eChildCircle",void 0),fu([ln("eAngleValue")],t.prototype,"eAngleValue",void 0),fu([lt("dragService")],t.prototype,"dragService",void 0),t}(Bn),yu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t.inputType="checkbox",t}return yu(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),Je.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(ys),mu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheItems=[],t}return mu(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},t.prototype.addOrDestroy=function(e,t,n){if(!this.active||!e.detail)this.destroyFullWidthRow(n);else{var o=this.getCacheItem(e,!0);
2switch(t){case je.PINNED_LEFT:this.destroyFullWidthRow(o.left),o.left=n;break;case je.PINNED_RIGHT:this.destroyFullWidthRow(o.right),o.right=n;break;default:this.destroyFullWidthRow(o.center),o.center=n}this.cacheItems.sort((function(e,t){return t.lastAccessedTime-e.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}},t.prototype.getCacheItem=function(e,t){var n;void 0===t&&(t=!1);for(var o=0;o<this.cacheItems.length;o++){var r=this.cacheItems[o];if(r.rowNode===e){n=r;break}}return!n&&t&&(n={rowNode:e},this.cacheItems.push(n)),n&&this.stampCacheItem(n),n},t.prototype.stampCacheItem=function(e){e.lastAccessedTime=(new Date).getTime()},t.prototype.destroyFullWidthRow=function(e){this.getContext().destroyBean(e)},t.prototype.purgeCache=function(e){for(var t=e;t<this.cacheItems.length;t++){var n=this.cacheItems[t];this.destroyFullWidthRow(n.center),this.destroyFullWidthRow(n.left),this.destroyFullWidthRow(n.right)}this.cacheItems.length>e&&(this.cacheItems.length=e)},t.prototype.get=function(e,t){if(e.detail){var n,o=this.getCacheItem(e);if(o)switch(t){case je.PINNED_LEFT:o.left&&(n=o.left,o.left=void 0);break;case je.PINNED_RIGHT:o.right&&(n=o.right,o.right=void 0);break;default:o.center&&(n=o.center,o.center=void 0)}return n}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.purgeCache(0)},Cu([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Cu([it],t.prototype,"postConstruct",null),Cu([at],t.prototype,"destroy",null),t=Cu([st("detailRowCompCache")],t)}(Rt),bu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Eu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bu(t,e),t.prototype.getFirstRow=function(){var e;return this.pinnedRowModel.getPinnedTopRowCount()?e=je.PINNED_TOP:this.rowModel.getRowCount()?e=null:this.pinnedRowModel.getPinnedBottomRowCount()&&(e=je.PINNED_BOTTOM),void 0===e?null:{rowIndex:0,rowPinned:e}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case je.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case je.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},t.prototype.before=function(e,t){switch(e.rowPinned){case je.PINNED_TOP:if(t.rowPinned!==je.PINNED_TOP)return!0;break;case je.PINNED_BOTTOM:if(t.rowPinned!==je.PINNED_BOTTOM)return!1;break;default:if(Je.exists(t.rowPinned))return t.rowPinned!==je.PINNED_TOP}return e.rowIndex<t.rowIndex},Eu([lt("rowModel")],t.prototype,"rowModel",void 0),Eu([lt("rowRenderer")],t.prototype,"rowRenderer",void 0),Eu([lt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),t=Eu([st("rowPositionUtils")],t)}(Rt),Ou=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ru=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Su=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ou(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,o=e.column;return this.createIdFromValues(t,o,n)},t.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return n&&o&&r},t=Ru([st("cellPositionUtils")],t)}(Rt),Tu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tu(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){var t=e===je.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return Je.missingOrEmpty(t)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=t===je.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(Je.missingOrEmpty(n))return 0;for(var o=0;o<n.length;o++){var r=n[o];if(r.rowTop+r.rowHeight-1>=e)return o}return n.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:At.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:At.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,o=[];if(e){var r=0;e.forEach((function(e,i){var a=new Vn;n.context.createBean(a),a.data=e;var s=t?Vn.ID_PREFIX_TOP_PINNED:Vn.ID_PREFIX_BOTTOM_PINNED;a.id=s+i,a.rowPinned=t?je.PINNED_TOP:je.PINNED_BOTTOM,a.setRowTop(r),a.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(i),r+=a.rowHeight,o.push(a)}))}return o},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){Je.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){Je.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=Je.last(e);return t.rowTop+t.rowHeight}return 0},Pu([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pu([lt("columnApi")],t.prototype,"columnApi",void 0),Pu([lt("gridApi")],t.prototype,"gridApi",void 0),Pu([it],t.prototype,"init",null),t=Pu([st("pinnedRowModel")],t)}(Rt),Au=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nu=function(e){this.cellValueChanges=e},Iu=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return Au(t,e),t}(Nu),xu=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}(),Fu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ku=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mu=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.isCellEditing=!1,t.isRowEditing=!1,t.isPasting=!1,t.isFilling=!1,t.onCellValueChanged=function(e){if(t.isCellEditing||t.isRowEditing||t.isPasting||t.isFilling){var n=e.rowPinned,o=e.rowIndex,r=e.column,i=e.oldValue,a=e.value,s={rowPinned:n,rowIndex:o,columnId:r.getColId(),oldValue:i,newValue:a};t.cellValueChanges.push(s)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Fu(n,e),n.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new xu(e),this.redoStack=new xu(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,At.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,At.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,At.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,At.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,At.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,At.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,At.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,At.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,At.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,At.EVENT_ROW_DRAG_END,this.clearStacks))}},n.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Iu?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},n.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Iu?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},n.prototype.processAction=function(e,t){var n=this;
2e.cellValueChanges.forEach((function(e){var o=e.rowIndex,r=e.rowPinned,i=e.columnId,a={rowIndex:o,rowPinned:r},s=n.getRowNode(a);null!=s.rowTop&&s.setDataValue(i,t(e))}))},n.prototype.processRangeAndCellFocus=function(e,t){if(t){var n=t.startRow,o=t.endRow,r={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:t.startColumn.getColId()};this.setLastFocusedCell(r);var i={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:o.rowIndex,rowEndPinned:o.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var a=e[0],s={rowIndex:a.rowIndex,rowPinned:a.rowPinned},l=this.getRowNode(s),u={rowPinned:a.rowPinned,rowIndex:l.rowIndex,columnId:a.columnId};this.setLastFocusedCell(u)}},n.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,o=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(o),vt.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusController.setFocusedCell(n,o,r,!0)},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,At.EVENT_ROW_EDITING_STARTED,(function(){e.isRowEditing=!0})),this.addManagedListener(this.eventService,At.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Nu(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isRowEditing=!1}))},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,At.EVENT_CELL_EDITING_STARTED,(function(){e.isCellEditing=!0})),this.addManagedListener(this.eventService,At.EVENT_CELL_EDITING_STOPPED,(function(){if(e.isCellEditing=!1,!e.isRowEditing&&!e.isPasting&&!e.isFilling){var t=new Nu(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,At.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,At.EVENT_PASTE_END,(function(){var t=new Nu(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,At.EVENT_FILL_START,(function(){e.isFilling=!0})),this.addManagedListener(this.eventService,At.EVENT_FILL_END,(function(t){var n=new Iu(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))},n.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},n.prototype.getRowNode=function(e){switch(e.rowPinned){case je.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case je.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},ku([lt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ku([lt("focusController")],n.prototype,"focusController",void 0),ku([lt("gridApi")],n.prototype,"gridApi",void 0),ku([lt("rowModel")],n.prototype,"rowModel",void 0),ku([lt("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),ku([it],n.prototype,"init",null),n=ku([st("undoRedoService")],n)}(Rt),Lu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Lu(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=Gu([st("agStackComponentsRegistry")],t)}(Rt),Vu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vu(t,e),t.prototype.findHeader=function(e,t){var n,o,r;if(e.column instanceof bt?(o="getDisplayedGroup"+t,n=this.columnController[o](e.column)):(r="getDisplayedCol"+t,n=this.columnController[r](e.column)),n)return{column:n,headerRowIndex:e.headerRowIndex}},t.prototype.findColAtEdgeForHeaderRow=function(e,t){var n=this.columnController.getAllDisplayedColumns(),o=n["start"===t?0:n.length-1];if(o){var r=this.headerNavigationService.getHeaderContainer(o.getPinned()).getRowComps()[e];return(r&&r.getType())==$r.COLUMN_GROUP?{headerRowIndex:e,column:this.columnController.getColumnGroupAtLevel(o,e)}:{headerRowIndex:r?e:-1,column:o}}},Hu([lt("columnController")],t.prototype,"columnController",void 0),Hu([lt("headerNavigationService")],t.prototype,"headerNavigationService",void 0),t=Hu([st("headerPositionUtils")],t)}(Rt),Bu=function(){function e(e,n,o){if(e)if(n){var r=!!n.debug;this.gridOptions=n;var i=this.getRegisteredModules(o),a=this.createBeansList(i),s=this.createProvidedBeans(e,o);
2if(a){var l={providedBeanInstances:s,beanClasses:a,debug:r};this.logger=new Ma("ag-Grid",(function(){return n.debug}));var u=new Ma("Context",(function(){return l.debug}));this.context=new ot(l,u),this.registerModuleUserComponents(i),this.registerStackComponents(i);var c=new(o&&o.rootComponent||za);this.context.createBean(c),this.setColumnsAndData(),this.dispatchGridReadyEvent(n);var p=vt.isRegistered(t.ModuleNames.EnterpriseCoreModule);this.logger.log("initialised successfully, enterprise = "+p)}}else console.error("ag-Grid: no gridOptions provided to the grid");else console.error("ag-Grid: no div element provided to the grid")}return e.prototype.registerStackComponents=function(e){var t=this.createAgStackComponentsList(e);this.context.getBean("agStackComponentsRegistry").setupComponents(t)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=vt.getRegisteredModules(),o=[],r={};function i(e,t){!function(t){r[t.moduleName]||(r[t.moduleName]=!0,o.push(t),vt.register(t,e))}(t),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!vt.isPackageBased())),o},e.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)}))},e.prototype.createProvidedBeans=function(e,t){var n=t?t.frameworkOverrides:null;Je.missing(n)&&(n=new vs);var o={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:n};return t&&t.providedBeanInstances&&Je.assign(o,t.providedBeanInstances),o},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:$n},{componentName:"AgRadioButton",componentClass:ys},{componentName:"AgToggleButton",componentClass:vu},{componentName:"AgInputTextField",componentClass:Bl},{componentName:"AgInputTextArea",componentClass:zl},{componentName:"AgInputNumberField",componentClass:ru},{componentName:"AgInputRange",componentClass:au},{componentName:"AgSelect",componentClass:du},{componentName:"AgSlider",componentClass:Kl},{componentName:"AgAngleSelect",componentClass:gu},{componentName:"AgColorPicker",componentClass:nu},{componentName:"AgGridComp",componentClass:Ca},{componentName:"AgHeaderRoot",componentClass:oa},{componentName:"AgPagination",componentClass:Sl},{componentName:"AgOverlayWrapper",componentClass:Il},{componentName:"AgGroupComponent",componentClass:kl},{componentName:"AgPanel",componentClass:Gl},{componentName:"AgDialog",componentClass:Hl}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e){var t=this.getRowModelClass(e);if(t){var n=[t,nl,_u,Su,ju,Gs,ba,Er,$s,el,Dl,wo,vl,_l,ps,ja,Du,$a,Ht,yt,$t,Na,Tr,aa,kt,ea,ks,li,Ra,Dt,Pa,Ks,fl,Hs,ua,ka,Gt,Wa,Ka,Mr,Dr,os,as,ll,us,fs,_s,ws,es,Ss,Ds,wl,Is,Us,pl,wu,Mu,Wu],o=this.extractModuleEntity(e,(function(e){return e.beans?e.beans:[]}));n.push.apply(n,o);var r=[];return n.forEach((function(e){r.indexOf(e)<0&&r.push(e)})),r}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),n=e.getColumnDefs();Je.exists(n)&&t.setColumnDefs(n,"gridInitializing"),this.context.getBean("rowModel").start()},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),n={type:At.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(n)},e.prototype.getRowModelClass=function(e){var n=this.gridOptions.rowModelType;"enterprise"===n&&(console.warn("ag-Grid: enterprise rowModel deprecated. Should now be called server side row model instead."),n=je.ROW_MODEL_TYPE_SERVER_SIDE),"normal"===n&&(console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),n=je.ROW_MODEL_TYPE_CLIENT_SIDE),n||(n=je.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};
2e.forEach((function(e){Je.iterateObject(e.rowModels,(function(e,t){o[e]=t}))}));var r=o[n];return Je.exists(r)?r:(n===je.ROW_MODEL_TYPE_INFINITE&&console.error('ag-Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" is registered.';"),console.error("ag-Grid: could not find matching row model for rowModelType "+n),n===je.ROW_MODEL_TYPE_VIEWPORT&&console.error('ag-Grid: Row Model "Viewport" not found. Please ensure the ag-Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" is registered.';"),n===je.ROW_MODEL_TYPE_SERVER_SIDE&&console.error('ag-Grid: Row Model "Server Side" not found. Please ensure the ag-Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" is registered.';"),void(n===je.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error('ag-Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" is registered.';")))},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e}();function Uu(e,t,n,o){var r,i,a=o.agGrid;if(i=a+".quickFilterText",r=t.$eval(a)){var s=e[0],l=new Bu(s,r,{$scope:t,$compile:n,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")}var zu=!1;var Yu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ku=function(e){function t(n){var o=e.call(this,t.getTemplate(n.cssClass))||this;return o.items=[],o.params=n,n.items&&n.items.forEach((function(e){return o.addItem(e)})),o}return Yu(t,e),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.handleKeyDown=function(e){switch(e.keyCode){case je.KEY_RIGHT:case je.KEY_LEFT:if(!this.eHeader.contains(document.activeElement))return;var t=this.items.indexOf(this.activeItem),n=e.keyCode===je.KEY_RIGHT?Math.min(t+1,this.items.length-1):Math.max(t-1,0);if(t===n)return;e.preventDefault();var o=this.items[n];this.showItemWrapper(o),o.eHeaderButton.focus();break;case je.KEY_UP:case je.KEY_DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){var t=this.focusController,n=this.eHeader,o=this.eBody,r=this.activeItem,i=document.activeElement,a=n.contains(i);if(e.preventDefault(),a)e.shiftKey?t.focusLastFocusableElement(o):t.focusFirstFocusableElement(o);else if(t.isFocusUnderManagedComponent(o))r.eHeaderButton.focus();else{var s=t.findNextFocusableElement(o,!1,e.shiftKey);s?s.focus():r.eHeaderButton.focus()}},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 n=0,o=0;return this.items.forEach((function(r){Je.clearElement(t);var i=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=i&&(t.appendChild(i),n<e.offsetWidth&&(n=e.offsetWidth),o<e.offsetHeight&&(o=e.offsetHeight))})),this.getGui().removeChild(e),{height:o,width:n}},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),Je.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t),t.setAttribute("aria-label",e.titleLabel);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=Je.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?(Je.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e);var n=!t.focusController.isKeyboardFocus();t.focusController.focusFirstFocusableElement(t.eBody,n)})),this.activeItem&&Je.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),Je.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):Je.callIfPresent(this.params.onActiveItem
2Clicked)},qu([ln("eHeader")],t.prototype,"eHeader",void 0),qu([ln("eBody")],t.prototype,"eBody",void 0),t}(bi);var Qu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$u=function(e){function t(n,o){var r=e.call(this)||this;return r.version=0,r.state=t.STATE_DIRTY,r.rowNodeCacheParams=o,r.blockNumber=n,r.startRow=n*o.blockSize,r.endRow=r.startRow+o.blockSize,r}return Qu(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 n=this.startRow;n<this.endRow;n++){if(n<t)e(this.getRowUsingLocalIndex(n),n)}},t.prototype.forEachNode=function(e,t,n,o){this.forEachNodeCallback((function(n){e(n,t.next()),o&&n.childrenCache&&n.childrenCache.forEachNodeDeep(e,t)}),n)},t.prototype.forEachNodeDeep=function(e,t,n){this.forEachNode(e,t,n,!0)},t.prototype.forEachNodeShallow=function(e,t,n){this.forEachNode(e,t,n,!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 n=e-this.startRow;return this.rowNodes[n]},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 n=e-this.startRow;this.rowNodes[n]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,n=this.createBlankRowNode(e);return this.rowNodes[t]=n,n},t.prototype.setNewData=function(e,t){var n=this.setBlankRowNode(e);return this.setDataAndId(n,t,this.startRow+e),n},t.prototype.createBlankRowNode=function(e){var t=new Vn;return this.beans.context.createBean(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,n=this.createBlankRowNode(t);this.rowNodes.push(n)}},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,n=[];this.rowNodes.forEach((function(o,r){var i=e[r];o.stub&&n.push(o),t.setDataAndId(o,i,t.startRow+r)})),n.length>0&&this.beans.rowRenderer.redrawRows(n)},t.prototype.destroyRowNodes=function(){var e=this;this.rowNodes.forEach((function(t){t.childrenCache&&(e.destroyBean(t.childrenCache),t.childrenCache=null),t.clearRowTop()}))},t.prototype.pageLoaded=function(e,n,o){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(n)),o=Je.cleanNumber(o);var r={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:o};this.dispatchEvent(r)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",Xu([at],t.prototype,"destroyRowNodes",null),t}(Rt),Ju=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zu=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ec=function(e,t){return function(n,o){t(n,o,e)}},tc=function(e){function t(t,n){var o=e.call(this)||this;return o.activeBlockLoadsCount=0,o.blocks=[],o.active=!0,o.maxConcurrentRequests=t,n&&n>0&&(o.checkBlockToLoadDebounce=Je.debounce(o.performCheckBlocksToLoad.bind(o),n)),o}return Ju(t,e),t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.addBlock=function(e){this.blocks.push(e)},t.prototype.removeBlock=function(e){Je.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.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()===$u.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")}},t.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getNodeIdPrefix(),o={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};Je.exists(n)?e[n+t.getBlockNumber()]=o:e[t.getBlockNumber()]=o})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},Zu([ec(0,pt("loggerFactory"))],t.prototype,"setBeans",null),t}(Rt),nc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rc=function(e){function t(t){var n=e.call(this)||this;return n.maxRowFound=!1,n.blocks={}
2,n.blockCount=0,n.virtualRowCount=t.initialRowCount,n.cacheParams=t,n}return nc(t,e),t.prototype.destroyAllBlocks=function(){var e=this;this.forEachBlockInOrder((function(t){return e.destroyBlock(t)}))},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 n=this,o=[];this.forEachBlockInOrder((function(t){t!==e&&o.push(t)})),o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,i=r?this.cacheParams.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===$u.STATE_DIRTY&&t>=a||!!r&&t>=i){if(e.isAnyNodeOpen(n.virtualRowCount))return;if(n.isBlockCurrentlyDisplayed(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=this.rowRenderer.getFirstVirtualRenderedRow(),n=this.rowRenderer.getLastVirtualRenderedRow(),o=e.getDisplayIndexStart(),r=e.getDisplayIndexEnd()-1;return null!=o&&null!=r&&(!(o>n)&&!(r<t))},t.prototype.postCreateBlock=function(e){e.addEventListener($u.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 n=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<n?(this.virtualRowCount=n,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,Je.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize===0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var n=this;void 0===t&&(t=new Ze),this.forEachBlockInOrder((function(o){o.forEachNodeDeep(e,t,n.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 n=this;e.forEach((function(e){var o=n.blocks[e];t(o,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()],this.destroyBean(e),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(n,o){o*e.cacheParams.blockSize>=e.virtualRowCount&&t.push(n)})),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 n=this,o=[],r=-1,i=!1,a=new Ze;Je.missing(e)&&(i=!0);var s=!1;return this.forEachBlockInOrder((function(l,u){s||(i&&r+1!==u?s=!0:(r=u,l.forEachNodeShallow((function(n){var r=n===e||n===t;(i||r)&&o.push(n),r&&(i=!i)}),a,n.virtualRowCount)))})),s||i?[]:o},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,oc([lt("rowRenderer")],t.prototype,"rowRenderer",void 0),oc([at],t.prototype,"destroyAllBlocks",null),oc([it],t.prototype,"init",null),t}(Rt),ic=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ac=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sc=function(e){function t(n){void 0===n&&(n="default");var o=e.call(this,t.getTemplate(n))||this;return o.cssIdentifier=n,o.renderedRows=new Map,o.rowHeight=20,o}return ic(t,e),t.prototype.postConstruct=function(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),e.prototype.postConstruct.call(this)},t.prototype.isFocusableContainer=function(){return!0}
2,t.prototype.focusInnerElement=function(e){var t=this.model.getRowCount();this.focusRow(e?t-1:0)},t.prototype.onFocusIn=function(t){e.prototype.onFocusIn.call(this,t);var n=t.target;Je.containsClass(n,"ag-virtual-list-item")&&(this.lastFocusedRow=parseInt(n.getAttribute("aria-rowindex"),10)-1)},t.prototype.onFocusOut=function(t){e.prototype.onFocusOut.call(this,t),this.getFocusableElement().contains(t.relatedTarget)||(this.lastFocusedRow=null)},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case je.KEY_UP:case je.KEY_DOWN:case je.KEY_TAB:this.navigate(e.keyCode===je.KEY_UP||e.keyCode===je.KEY_TAB&&e.shiftKey)&&e.preventDefault()}},t.prototype.navigate=function(e){if(!Je.exists(this.lastFocusedRow))return!1;var t=this.lastFocusedRow+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRow},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){var n=t.renderedRows.get(e);n&&n.eDiv.focus()}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},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" ref="eContainer"></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 n=e*this.rowHeight,o=n+this.rowHeight,r=this.getGui(),i=r.scrollTop,a=r.offsetHeight,s=i+a<o;if(i>n)r.scrollTop=n;else if(s){var l=o-a;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(){var e=this;if(null!=this.model){var t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",this.eContainer.setAttribute("aria-rowcount",t.toString()),setTimeout((function(){e.clearVirtualRows(),e.drawVirtualRows()}),0)}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,n){return e.removeRow(n)}))},t.prototype.drawVirtualRows=function(){var e=this.getGui(),t=e.scrollTop,n=t+e.offsetHeight,o=Math.floor(t/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(o,r)},t.prototype.ensureRowsRendered=function(e,t){var n=this;this.renderedRows.forEach((function(o,r){(r<e||r>t)&&r!==n.lastFocusedRow&&n.removeRow(r)}));for(var o=e;o<=t;o++)if(!this.renderedRows.has(o)&&o<this.model.getRowCount()){var r=this.model.getRow(o);this.insertRow(r,o)}},t.prototype.insertRow=function(e,t){var n=document.createElement("div");Je.addCssClass(n,"ag-virtual-list-item"),Je.addCssClass(n,"ag-"+this.cssIdentifier+"-virtual-list-item"),n.setAttribute("aria-rowindex",(t+1).toString()),n.setAttribute("tabindex","-1"),n.style.height=this.rowHeight+"px",n.style.top=this.rowHeight*t+"px";var o=this.componentCreator(e);n.appendChild(o.getGui()),this.eContainer.appendChild(n),this.renderedRows.set(t,{rowComponent:o,eDiv:n})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},ac([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ac([ln("eContainer")],t.prototype,"eContainer",void 0),t}(bi);var lc,uc,cc=function(){function e(){}return e.prototype.wrap=function(e,t,n,o,r){var i=this;void 0===n&&(n=[]);var a=this.createWrapper(e,o,r);return t.forEach((function(e){i.createMethod(a,e,!0)})),n.forEach((function(e){i.createMethod(a,e,!1)})),a},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();(lc=t.ChartType||(t.ChartType={})).GroupedColumn="groupedColumn",lc.StackedColumn="stackedColumn",lc.NormalizedColumn="normalizedColumn",lc.GroupedBar="groupedBar",lc.StackedBar="stackedBar",lc.NormalizedBar="normalizedBar",lc.Line="line",lc.Scatter="scatter",lc.Bubble="bubble",lc.Pie="pie",lc.Doughnut="doughnut",lc.Area="area",lc.StackedArea="stackedArea",lc.NormalizedArea="normalizedArea",lc.Histogram="histogram",(uc=t.LegendPosition||(t.LegendPosition={})).Top="top",uc.Right="right",uc.Bottom="bottom",uc.Left="left";var pc="undefined"===typeof e?{}:e;pc.HTMLElement="undefined"===typeof HTMLElement?{}:HTMLElement,pc.HTMLButtonElement="undefined"===typeof HTMLButtonElement?{}:HTMLButtonElement,pc.HTMLSelectElement="undefined"===typeof HTMLSelectElement?{}:HTMLSelectElement,pc.HTMLInputElement="undefined"===typeof HTMLInputElement?{}:HTMLInputElement,pc.Node="undefined"===typeof Node?{}:Node,pc.MouseEvent="undefined"===typeof MouseEvent?{}:MouseEvent;var dc,hc=function(){function e(t,n,o,r,i,a,s,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.context=o,this.eventService=r,this.columnController=i,this.gridApi=a,this.columnApi=s,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.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingLegacyTreeData=!this.doingTreeData&&Je.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 Je.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 n=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=n,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=n},e.prototype.updateRowData=function(e,t){if(this.isLegacyTreeData())return null;var n={remove:[],update:[],add:[]},o=[];return this.executeAdd(e,n),this.executeRemove(e,n,o),this.executeUpdate(e,n,o),this.updateSelection(o),t&&Je.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e){var t=e.length>0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionController.updateGroupsFromChildrenSelections(),t){var n={type:At.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.executeAdd=function(e,t){var n=this,o=e.add,r=e.addIndex;o&&("number"===typeof r&&r>
2=0?o.reverse().forEach((function(e){var o=n.addRowNode(e,r);t.add.push(o)})):o.forEach((function(e){var o=n.addRowNode(e);t.add.push(o)})))},e.prototype.executeRemove=function(e,t,n){var o=this,r=e.remove;if(r){var i={};r.forEach((function(e){var r=o.lookupRowNode(e);r&&(r.isSelected()&&n.push(r),r.clearRowTop(),i[r.id]=!0,delete o.allNodesMap[r.id],t.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!i[e.id]}))}},e.prototype.executeUpdate=function(t,n,o){var r=this,i=t.update;i&&i.forEach((function(t){var i=r.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&o.push(i),r.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))},e.prototype.addRowNode=function(t,n){var o=this.createNode(t,this.rootNode,e.TOP_LEVEL);return Je.exists(n)?Je.insertIntoArray(this.rootNode.allLeafChildren,o,n):this.rootNode.allLeafChildren.push(o),o},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowNodeIdFunc();if(Je.exists(n)){var o=n(e);if(!(t=this.allNodesMap[o]))return console.error("ag-Grid: could not find row id="+o+", data item was not found for this id"),null}else if(!(t=Je.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,n){var o=this;if("string"!==typeof e){var r=[];return e.forEach((function(e){var i=o.createNode(e,t,n);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,n){var o=new Vn;this.context.createBean(o);var r=this.doingLegacyTreeData?this.getNodeChildDetails(e):null;return r&&r.group?(o.group=!0,o.childrenAfterGroup=this.recursiveFunction(r.children,o,n+1),o.expanded=!0===r.expanded,o.field=r.field,o.key=r.key,this.setLeafChildren(o)):(o.group=!1,this.setMasterForRow(o,e,n,!0)),o.canFlower=o.master,t&&!this.suppressParentsInRowNodes&&(o.parent=t),o.level=n,o.setDataAndId(e,this.nextId.toString()),this.allNodesMap[o.id]&&console.warn("ag-grid: duplicate node id '"+o.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},e.prototype.setMasterForRow=function(e,t,n,o){if(this.doingTreeData)e.setMaster(!1),o&&(e.expanded=!1);else if(this.doesDataFlower?e.setMaster(this.doesDataFlower(t)):this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),o){var r=this.columnController.getRowGroupColumns(),i=n+(r?r.length:0);e.expanded=!!e.master&&this.isExpanded(i)}},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!!Je.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}(),fc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.P
2ivotNodes=3]="PivotNodes"}(dc||(dc={}));var yc,vc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fc(t,e),t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:je.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:je.STEP_EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0});this.addManagedListener(this.eventService,At.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.addManagedListener(this.eventService,At.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,At.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:je.STEP_PIVOT})),this.addManagedListener(this.eventService,At.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.addManagedListener(this.eventService,At.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var n=this.refreshModel.bind(this,{step:je.STEP_MAP,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.gridOptionsWrapper,$t.PROP_GROUP_REMOVE_SINGLE_CHILDREN,n),this.addManagedListener(this.gridOptionsWrapper,$t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,n),this.rootNode=new Vn,this.nodeManager=new hc(this.rootNode,this.gridOptionsWrapper,this.getContext(),this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.createBean(this.rootNode)},t.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,t,n,o){var r,i=!1;do{r=!1;for(var a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(a,n),u=Math.min(s,o),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(p);p.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTops()}while(r);return i},t.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var n=this.gridOptionsWrapper.getDomLayout()===je.DOM_LAYOUT_NORMAL,o=this.rowsToDisplay[t];if(Je.missing(o.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(o,n);o.setRowHeight(r.height,r.estimated)}o.setRowTop(e),o.setRowIndex(t),e+=o.rowHeight}},t.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup)if(!(t.isActive()&&!e.expanded))for(var n=0;n<e.childrenAfterGroup.length;n++)this.resetRowTops(e.childrenAfterGroup[n],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},t.prototype.ensureRowsAtPixel=function(e,t,n){var o=this;void 0===n&&(n=0);var r=this.getRowIndexAtPixel(t);return this.getRow(r)!==e[0]&&(e.forEach((function(e){Je.removeFromArray(o.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){Je.insertIntoArray(o.rootNode.allLeafChildren,e,r+n+t)})),this.refreshModel({step:je.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},t.prototype.highlightRowAtPixel=function(e,t){var n=null!=t?this.getRowIndexAtPixel(t):null,o=null!=n?this.getRow(n):null;if(o&&e&&o!==e&&null!=t){var r=this.getHighlightPosition(t,o);this.lastHighlightedRow&&this.lastHighlightedRow!==o&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),o.setHighlighted(r),this.lastHighlightedRow=o}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},t.prototype.getHighlightPosition=function(e,t){if(!t){var n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return"below"}return e-t.rowTop<t.rowHeight/2?"above":"below"},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowFound=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){return this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},t.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},t.prototype.getRowBounds=function(e){if(Je.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:je.STEP_MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:je.STEP_FILTER,keepRenderedRows:!0,animate:t})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:je.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return je.ROW_MODEL_TYPE_CLIENT_SIDE}
2,t.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:je.STEP_PIVOT}):this.refreshModel({step:je.STEP_AGGREGATE})},t.prototype.createChangePath=function(e){var t=Je.missingOrEmpty(e),n=new _r(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},t.prototype.refreshModel=function(e){var t=this,n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case je.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,e.afterColumnsChanged);case je.STEP_FILTER:this.doFilter(n);case je.STEP_PIVOT:this.doPivot(n);case je.STEP_AGGREGATE:this.doAggregate(n);case je.STEP_SORT:this.doSort(e.rowNodeTransactions,n);case je.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,n),this.setRowTops();var o={type:At.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(o),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},t.prototype.isEmpty=function(){var e;return e=Je.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?Je.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:Je.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,Je.missing(this.rootNode)||e||!this.columnController.isReady()},t.prototype.isRowsToRender=function(){return Je.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,t){var n,o=!t,r=!1,i=[],a=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(s){var l=o&&!r;if(o||s!==t&&s!==e||(o=!0),!(s.group&&a)){var u=o&&!r,c=s.isParentOfNode(n);(u||c)&&i.push(s)}l&&(s!==t&&s!==e||(r=!0,n=s===t?t:e))})),i},t.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Je.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var o=Math.floor((t+n)/2),r=this.rowsToDisplay[o];if(this.isRowInPixel(r,e))return o;r.rowTop<e?t=o+1:r.rowTop>e&&(n=o-1)}},t.prototype.isRowInPixel=function(e,t){var n=e.rowTop,o=e.rowTop+e.rowHeight;return n<=t&&o>t},t.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=Je.last(this.rowsToDisplay);return e.rowTop+e.rowHeight}return 0},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},t.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,dc.Normal,0)},t.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,dc.AfterFilter,0)},t.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,dc.AfterFilterAndSort,0)},t.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,dc.PivotNodes,0)},t.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,o){if(!e)return o;for(var r=0;r<e.length;r++){var i=e[r];if(t(i,o++),i.hasChildren()){var a=null;switch(n){case dc.Normal:a=i.childrenAfterGroup;break;case dc.AfterFilter:a=i.childrenAfterFilter;break;case dc.AfterFilterAndSort:a=i.childrenAfterSort;break;case dc.PivotNodes:a=i.leafGroup?null:i.childrenAfterSort}a&&(o=this.recursivelyWalkNodesAndCallback(a,t,n,o))}}return o},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function n(o){if(!o)return;o.forEach((function(o){(t?Je.exists(o.childrenAfterGroup):o.group)&&(o.expanded=e,n(o.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:je.STEP_MAP});var n=e?"expandAll":"collapseAll",o={api:this.gridApi,columnApi:this.columnApi,type:At.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(o)},t.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},t.prototype.doRowGrouping=function(e,t,n,o,r){Je.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())||(this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:o}):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:o,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(o)):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren)}
2,t.prototype.restoreGroupState=function(e){e&&Je.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"===typeof e[n]&&(t.expanded=e[n])}))},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return Je.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var n={type:At.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n),this.refreshModel({step:je.STEP_EVERYTHING,groupState:t,newData:!0})},t.prototype.batchUpdateRowData=function(e,t){var n=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var o=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();window.setTimeout((function(){n.executeBatchUpdateRowData(),n.rowDataTransactionBatch=null}),o)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(o){var r=e.nodeManager.updateRowData(o.rowDataTransaction,null);n.push(r),o.callback&&t.push(o.callback.bind(null,r))})),this.commonUpdateRowData(n),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},t.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([n],t),n},t.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:je.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var n={type:At.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:je.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},t.prototype.resetRowHeights=function(){this.forEachNode((function(e){e.setRowHeight(null),e.detailNode&&e.detailNode.setRowHeight(null)})),this.onRowHeightChanged()},gc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),gc([lt("columnController")],t.prototype,"columnController",void 0),gc([lt("filterManager")],t.prototype,"filterManager",void 0),gc([lt("$scope")],t.prototype,"$scope",void 0),gc([lt("selectionController")],t.prototype,"selectionController",void 0),gc([lt("valueService")],t.prototype,"valueService",void 0),gc([lt("valueCache")],t.prototype,"valueCache",void 0),gc([lt("columnApi")],t.prototype,"columnApi",void 0),gc([lt("gridApi")],t.prototype,"gridApi",void 0),gc([lt("filterStage")],t.prototype,"filterStage",void 0),gc([lt("sortStage")],t.prototype,"sortStage",void 0),gc([lt("flattenStage")],t.prototype,"flattenStage",void 0),gc([ut("groupStage")],t.prototype,"groupStage",void 0),gc([ut("aggregationStage")],t.prototype,"aggregationStage",void 0),gc([ut("pivotStage")],t.prototype,"pivotStage",void 0),gc([it],t.prototype,"init",null),t=gc([st("rowModel")],t)}(Rt),mc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mc(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=e.changedPath;this.filterService.filter(n),this.selectableService.updateSelectableAfterFiltering(t)},Cc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Cc([lt("selectableService")],t.prototype,"selectableService",void 0),Cc([lt("filterService")],t.prototype,"filterService",void 0),t=Cc([st("filterStage")],t)}(Rt),bc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ec=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bc(t,e),t.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),n=Je.exists(t)&&t.length>0,o=n&&Je.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=o?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=this.columnController.getValueColumns(),a=Je.missingOrEmpty(i);this.sortService.sort(t,n,o,r,e.changedPath,a)},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},Ec([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ec([lt("sortService")],t.prototype,"sortService",void 0),Ec([lt("sortController")],t.prototype,"sortController",void 0),Ec([lt("columnController")],t.prototype,"columnController",void 0),t=Ec([st("sortStage")],t)}(Rt),Oc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oc(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],o={value:0},r=this.columnController.isPivotMode(),i=r&&t.leafGroup,a=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(a,n,o,r,0),!i&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,o,0)),n},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,o,r){if(!Je.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupSuppressRow(),a=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),u=0;u<e.length;u++){var c=e[u],p=c.hasChildren(),d=i&&p,h=o&&!p,f=s&&p&&1===c.childrenAfterGroup.length,g=l&&p&&c.leafGroup&&1===c.childrenAfterGroup.length,y=o&&c.leafGroup,v=a&&c.expanded&&!y;
2if(!h&&!d&&!v&&!f&&!g&&this.addRowNodeToRowsToDisplay(c,t,n,r),!o||!c.leafGroup)if(p){var m=f||g;if(c.expanded||m){var C=m?r:r+1;this.recursivelyAddToRowsToDisplay(c.childrenAfterSort,t,n,o,C),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(c),this.addRowNodeToRowsToDisplay(c.sibling,t,n,r))}}else if(c.master&&c.expanded){var w=this.createDetailNode(c);this.addRowNodeToRowsToDisplay(w,t,n,r)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,o){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:o)},t.prototype.ensureFooterNodeExists=function(e){if(!Je.exists(e.sibling)){var t=new Vn;this.context.createBean(t),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,Je.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},t.prototype.createDetailNode=function(e){if(Je.exists(e.detailNode))return e.detailNode;var t=new Vn;return this.context.createBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,Je.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},Rc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Rc([lt("selectionController")],t.prototype,"selectionController",void 0),Rc([lt("columnController")],t.prototype,"columnController",void 0),t=Rc([st("flattenStage")],t)}(Rt),Tc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Dc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tc(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,n,o,r,i){var a=this;r.forEachChangedNodeDepthFirst((function(s){if(a.pullDownGroupDataForHideOpenParents(s.childrenAfterFilter,!0),t){var l=n?a.doDeltaSort(s,e,o,r,i):a.doFullSort(s,e);s.childrenAfterSort=l.map((function(e){return e.rowNode}))}else s.childrenAfterSort=s.childrenAfterFilter.slice(0);a.updateChildIndexes(s),a.postSortFunc&&a.postSortFunc(s.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},t.prototype.doFullSort=function(e,t){var n=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return n.sort(this.compareRowNodes.bind(this,t)),n},t.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},t.prototype.doDeltaSort=function(e,t,n,o,r){var i=e.childrenAfterSort.filter((function(e){var t=!n[e.id],i=r||o.canSkip(e);return t&&i})).map(this.mapNodeToSortedNode.bind(this)),a={};i.forEach((function(e){return a[e.rowNode.id]=e.rowNode}));var s=e.childrenAfterFilter.filter((function(e){return!a[e.id]})).map(this.mapNodeToSortedNode.bind(this));return s.sort(this.compareRowNodes.bind(this,t)),0===s.length?i:0===i.length?s:this.mergeSortedArrays(t,i,s)},t.prototype.mergeSortedArrays=function(e,t,n){for(var o=[],r=0,i=0;r<t.length&&i<n.length;){this.compareRowNodes(e,t[r],n[i])<0?o.push(t[r++]):o.push(n[i++])}for(;r<t.length;)o.push(t[r++]);for(;i<n.length;)o.push(n[i++]);return o},t.prototype.compareRowNodes=function(e,t,n){for(var o=t.rowNode,r=n.rowNode,i=0,a=e.length;i<a;i++){var s=e[i],l=-1===s.inverter,u=this.getValue(o,s.column),c=this.getValue(r,
2s.column),p=void 0;if(0!==(p=s.column.getColDef().comparator?s.column.getColDef().comparator(u,c,o,r,l):Je.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort())))return p*s.inverter}return t.currentPos-n.currentPos},t.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},t.prototype.updateChildIndexes=function(e){if(!Je.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var o=t[n],r=0===n,i=n===e.childrenAfterSort.length-1;o.setFirstChild(r),o.setLastChild(i),o.setChildIndex(n)}},t.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){e.executeFromRootNode((function(e){return function e(n){t.pullDownGroupDataForHideOpenParents(n.childrenAfterSort,!1),n.childrenAfterSort.forEach((function(t){t.hasChildren()&&e(t)}))}(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;Je.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){n.columnController.getGroupDisplayColumns().forEach((function(o){var r=o.getColDef().showRowGroup;if("string"===typeof r){var i=r,a=n.columnController.getPrimaryColumn(i);if(!(a===e.rowGroupColumn))if(t)e.setGroupValue(o.getId(),null);else{var s=e.getFirstChildOfFirstChild(a);s&&e.setGroupValue(o.getId(),s.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Pc([lt("sortController")],t.prototype,"sortController",void 0),Pc([lt("columnController")],t.prototype,"columnController",void 0),Pc([lt("valueService")],t.prototype,"valueService",void 0),Pc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pc([it],t.prototype,"init",null),t=Pc([st("sortService")],t)}(Rt),Ac=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ic=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ac(t,e),t.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},t.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,o=function(t,o){t.hasChildren()?(t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&n.filterManager.doesRowPassFilter(e);return t||o})):t.childrenAfterGroup,n.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){t.executeFromRootNode((function(e){return function e(t,r){if(t.childrenAfterGroup)for(var i=0;i<t.childrenAfterGroup.length;i++){var a=t.childrenAfterGroup[i],s=r||n.filterManager.doesRowPassFilter(a);a.childrenAfterGroup?e(t.childrenAfterGroup[i],s):o(a,s)}o(t,r)}(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return o(e,!1)}),!0)}},t.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},t.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},t.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Nc([lt("filterManager")],t.prototype,"filterManager",void 0),Nc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Nc([it],t.prototype,"postConstruct",null),t=Nc([st("filterService")],t)}(Rt),xc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xc(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===je.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.createTransactionForRowData=function(e){if(Je.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!Je.missing(t)){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return Je.exists(e)&&e.forEach((function(e,i){var a=t(e),s=o[a];(r&&(r[a]=i),s)?(s.data!==e&&n.update.push(e),o[a]=void 0):n.add.push(e)}
2)),Je.iterateObject(o,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},Fc([lt("rowModel")],t.prototype,"rowModel",void 0),Fc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fc([it],t.prototype,"postConstruct",null),t=Fc([st("immutableService")],t)}(Rt),Mc={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[wc,_c,Sc,Dc,Ic,kc],rowModels:{clientSide:vc}},Lc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wc=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.cacheParams=n,o}return Lc(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 n=e.prototype.createBlankRowNode.call(this,t);return n.uiLevel=0,this.setIndexAndTopOnRowNode(n,t),n},t.prototype.setDataAndId=function(e,t,n){Je.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,n){e.prototype.setRowNode.call(this,t,n),this.setIndexAndTopOnRowNode(n,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()};Je.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0)},Gc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Gc([lt("rowRenderer")],t.prototype,"rowRenderer",void 0),Gc([it],t.prototype,"init",null),t}($u),Vc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jc=function(e,t){return function(n,o){t(n,o,e)}},Bc=function(e){function t(t){return e.call(this,t)||this}return Vc(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.moveItemsDown=function(e,t,n){for(var o=e.getStartRow(),r=t+n,i=e.getEndRow()-1;i>=o;i--)if(!(i<r)){var a=i-n,s=this.getRow(a,!0);s?e.setRowNode(i,s):(e.setBlankRowNode(i),e.setDirty())}},t.prototype.insertItems=function(e,t,n){for(var o=e.getStartRow(),r=e.getEndRow(),i=[],a=0;a<n.length;a++){var s=t+a;if(s>=o&&s<r){var l=n[a],u=e.setNewData(s,l);i.push(u)}}return i},t.prototype.insertItemsAtIndex=function(e,t){var n=this,o=[];this.forEachBlockInReverseOrder((function(r){r.getEndRow()<=e||(n.moveItemsDown(r,e,t.length),n.insertItems(r,e,t).forEach((function(e){return o.push(e)})))}
2)),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var r={type:At.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 n=Math.floor(e/this.cacheParams.blockSize),o=this.getBlock(n);if(!o){if(t)return null;o=this.createBlock(n)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=new Wc(e,this.cacheParams);return this.getContext().createBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},Hc([lt("columnApi")],t.prototype,"columnApi",void 0),Hc([lt("gridApi")],t.prototype,"gridApi",void 0),Hc([jc(0,pt("loggerFactory"))],t.prototype,"setBeans",null),t}(rc),Uc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Uc(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,o){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.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,At.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,At.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,At.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!Je.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return je.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;Je.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),Je.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),Je.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),Je.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 Je.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return Je.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!Je.missing(this.datasource)){Je.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:At.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 tc(e,t),this.getContext().createBean(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 Ze},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 Bc(this.cacheParams),this.getContext().createBean(this.infiniteCache),this.infiniteCache.addEventListener(rc.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache)),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader=this.destroyBean(this.rowNodeBlockLoader))},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(n){n.id===e&&(t=n)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new Ze)},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),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){Je.exists(e.remove)||Je.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):Je.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},zc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),zc([lt("filterManager")],t.prototype,"filterManager",void 0),zc([lt("sortController")],t.prototype,"sortController",void 0),zc([lt("selectionController")],t.prototype,"selectionController",void 0),zc([lt("gridApi")],t.prototype,"gridApi",void 0),zc([lt("columnApi")],t.prototype,"columnApi",void 0),zc([lt("rowRenderer")],t.prototype,"rowRenderer",void 0),zc([it],t.prototype,"init",null),zc([at],t.prototype,"destroyDatasource",null),t=zc([st("rowModel")],t)}(Rt),qc={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Yc}},Kc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xc=function(){function e(e){var t=e.columnController,n=e.valueService,o=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,a=e.processGroupHeaderCallback,s=e.processRowGroupCallback;this.columnController=t,this.valueService=n,this.gridOptionsWrapper=o,this.processCellCallback=r,this.processHeaderCallback=i,this.processGroupHeaderCallback=a,this.processRowGroupCallback=s}return e.prototype.prepare=function(e){this.firstGroupColumn=Je.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,n,o){var r;r=o&&o.group&&(e===this.firstGroupColumn||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(o):this.valueService.getValue(e,o);var i=this.processCell(o,e,r,this.processCellCallback,n);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,n,o,r){return o?o({column:t,node:e,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):n},e}(),$c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kc(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=t.shouldRowBeSkipped||function(){return!1},o=this.gridOptionsWrapper.getApi(),r=this.gridOptionsWrapper.getColumnApi(),i=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),s=this.gridOptionsWrapper.getContext(),l=this.columnController.isPivotMode(),u=this.rowModel.getType()===je.ROW_MODEL_TYPE_CLIENT_SIDE,c=!u&&t.onlySelected,p=[];if(p=Je.existsAndNotEmpty(t.columnKeys)?this.columnController.getGridColumns(t.columnKeys):t.allColumns&&!l?(p=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([je.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),t.customHeader&&e.addCustomContent(t.customHeader),e.prepare(p),t.columnGroups){var d=new Nt,h=this.displayedGroupCreator.createDisplayedGroups(p,this.columnController.getGridBalancedTree(),d,null);this.recursivelyAddHeaderGroups(h,e,t.processGroupHeaderCallback)}if(!t.skipHeader){var f=e.onNewHeaderRow();p.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||c?this.selectionController.getSelectedNodes().forEac
2h((function(e){g(e)})):u?this.rowModel.forEachNodeAfterFilterAndSort(g):this.rowModel.forEachNode(g);function g(l){var u=a&&l.leafGroup,c=1===l.allChildrenCount&&(i||u);if((!l.group||!t.skipGroups&&!c)&&((!t.skipFooters||!l.footer)&&(!t.onlySelected||l.isSelected())&&(!t.skipPinnedTop||"top"!==l.rowPinned)&&(!t.skipPinnedBottom||"bottom"!==l.rowPinned)&&(!(-1===l.level)||l.leafGroup)&&!n({node:l,api:o,context:s}))){var d=e.onNewBodyRow();if(p.forEach((function(e,t){d.onColumn(e,t,l)})),t.getCustomContentBelowRow){var h=t.getCustomContentBelowRow({node:l,api:o,columnApi:r,context:s});h&&e.addCustomContent(h)}}}return this.pinnedRowModel.forEachPinnedBottomRow(g),t.customFooter&&e.addCustomContent(t.customFooter),e.parse()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof bt&&this.doAddHeaderHeader(t,e,n),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,n)},t.prototype.doAddHeaderHeader=function(e,t,n){var o=this,r=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,a=e;t=n?n({columnGroup:a,api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()}):o.columnController.getDisplayNameForColumnGroup(a,"header"),r.onColumn(t||"",i++,a.getLeafColumns().length-1)}))},Qc([lt("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Qc([lt("columnController")],t.prototype,"columnController",void 0),Qc([lt("rowModel")],t.prototype,"rowModel",void 0),Qc([lt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Qc([lt("selectionController")],t.prototype,"selectionController",void 0),Qc([lt("columnFactory")],t.prototype,"columnFactory",void 0),Qc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=Qc([st("gridSerializer")],t)}(Rt);!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(yc||(yc={}));var Jc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zc=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ep=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var o=t.suppressQuotes,r=t.columnSeparator;return n.suppressQuotes=o,n.columnSeparator=r,n}return Jc(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,n){0!==n&&(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,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},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,n){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,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,je.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null===e||void 0===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}(Xc),tp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jc(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})}
2,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.columnController,n=this.valueService,o=this.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,a=e.processGroupHeaderCallback,s=e.processRowGroupCallback,l=e.suppressQuotes,u=e.columnSeparator;return new ep({columnController:t,valueService:n,gridOptionsWrapper:o,processCellCallback:r||void 0,processHeaderCallback:i||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:s||void 0,suppressQuotes:l||!1,columnSeparator:u||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},Zc([lt("columnController")],t.prototype,"columnController",void 0),Zc([lt("valueService")],t.prototype,"valueService",void 0),Zc([lt("downloader")],t.prototype,"downloader",void 0),Zc([lt("gridSerializer")],t.prototype,"gridSerializer",void 0),Zc([lt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Zc([it],t.prototype,"postConstruct",null),t=Zc([st("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),n=t.mergedParams,o=t.data,r=n&&n.fileName&&0!==n.fileName.length?n.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,this.packageFile(o)),o},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(),n={};return Je.assign(n,t),Je.assign(n,e),n},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}()),np=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},op=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var n=document.createElement("a"),o=window.URL.createObjectURL(t);n.setAttribute("href",o),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(n),window.setTimeout((function(){window.URL.revokeObjectURL(o)}),0)}},e=np([st("downloader")],e)}(),rp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ip=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ap=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rp(t,e),t.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(" ")+" ?>"},t.prototype.createXml=function(e,t){var n=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEac
2h((function(e){Object.keys(e.map).forEach((function(r){o+=n.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){o+=n.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">\r\n":(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">\r\n"):r+"/>\r\n"},t.prototype.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"===typeof t&&n&&(o=n(t))," "+e+'="'+o+'"'},t=ip([st("xmlFactory")],t)}(Rt),sp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lp=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},up=[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],cp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.folders=[],t.files=[],t.addFolder=function(e){t.folders.push({path:e,created:new Date})},t}return sp(t,e),t.prototype.addFolders=function(e){e.forEach(this.addFolder)},t.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},t.prototype.clearStream=function(){this.folders=[],this.files=[]},t.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},t.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),n=t.length,o="",r=0,i=0,a=0,s=t;a<s.length;a++){var l=s[a],u=this.getHeader(l,r),c=u.fileHeader,p=u.folderHeader,d=u.content;r+=c.length+d.length,i+=p.length,e+=c+d,o+=p}return e+o+this.buildFolderEnd(n,i,r)},t.prototype.getHeader=function(e,t){var n=e.content,o=e.path,r=e.created,i=Je.utf8_encode,a=Je.decToHex,s=i(o),l=s!==o,u=this.convertTime(r),c=this.convertDate(r),p="";if(l){var d=a(1,1)+a(this.getFromCrc32Table(s),4)+s;p="up"+a(d.length,2)+d}var h="\n\0"+(l?"\0\b":"\0\0")+"\0\0"+a(u,2)+a(c,2)+a(n?this.getFromCrc32Table(n):0,4)+a(n?n.length:0,4)+a(n?n.length:0,4)+a(s.length,2)+a(p.length,2);return{fileHeader:"PK\x03\x04"+h+s+p,folderHeader:"PK\x01\x02\x14\0"+h+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\x10\0\0\0")+a(t,4)+s+p,content:n||""}},t.prototype.buildFolderEnd=function(e,t,n){var o=Je.decToHex;return"PK\x05\x06\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(n,4)+"\0\0"},t.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},t.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var n=0,o=0;o<e.length;o++)n=e.charCodeAt(o),t=t>>>8^up[255&(t^n)];return-1^t},t.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},t.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},t=lp([st("zipContainer")],t)}(Rt),pp={moduleName:t.ModuleNames.CsvExportModule,beans:[tp,op,ap,$c,cp]};vt.register(Mc,!1),vt.register(qc,!1),vt.register(pp,!1),t.AgAbstractField=zn,t.AgAngleSelect=gu,t.AgCheckbox=$n,t.AgColorPicker=nu,t.AgDialog=Hl,t.AgGroupComponent=kl,t.AgInputNumberField=ru,t.AgInputRange=au,t.AgInputTextArea=zl,t.AgInputTextField=Bl,t.AgPanel=Gl,t.AgRadioButton=ys,t.AgSelect=du,t.AgSlider=Kl,t.AgToggleButton=vu,t.AlignedGridsService=Ks,t.AnimateShowChangeCellRenderer=So,t.AnimateSlideCellRenderer=Do,t.AutoWidthCalculator=Wa,t.Autowired=lt,t.BaseComponentWrapper=cc,t.Bean=st,t.BeanStub=Rt,t.BodyDropPivotTarget=Bi,t.BodyDropTarget=qi,t.CellComp=ti,t.CellNavigationService=us,t.CellPositionUtils=Su,t.CellRendererFactory=ps,t.ChangedPath=_r,t.CheckboxSelectionComponent=eo,t.ColDefUtil=zt,t.Color=n,t.Column=Ct,t.ColumnApi=Dr,t.ColumnController=kt,t.ColumnFactory=Dt,t.ColumnGroup=bt,t.ColumnKeyCreator=nt,t.ColumnUtils=Gt,t.Component=rn,t.ComponentUtil=Zt,t.Constants=je,t.Context=ot,t.CssClassApplier=ui,t.DateFilter=Nn,t.DisplayedGroupCreator=Ht,t.DragAndDropService=Mr,t.DragService=$a,t.Environment=ll,t.EventService=yt,t.Events=At,t.ExpressionService=Ra,t.FilterManager=aa,t.FocusController=os,t.Grid=Bu,t.GridApi=ba,t.GridCore=za,t.GridListener=function(e){return cn.bind(this,e)},t.GridOptionsWrapper=$t,t.GridPanel=Ca,t.GroupCellRenderer=_o,t.GroupInstanceIdCreator=Nt,t.GuiListener=function(e,t){return pn.bind(this,e,t)},t.HeaderContainer=Xi,t.HeaderNavigationService=ea,t.HeaderPositionUtils=ju,t.HeaderRootComp=oa,t.HeaderRowComp=Wi,t.HorizontalResizeService=ja,t.LargeTextCellEditor=jo,t.Logger=Ma,t.LoggerFactory=ka,t.ManagedFocusComponent=bi,t.ModuleRegistry=vt,t.MouseEventService=as,t.MoveColumnController=Hi,t.NumberFilter=zo,t.NumberSequence=Ze,t.Optional=ut,t.OriginalColumnGroup=Et,t.PaginationProxy=ks,t.PinnedRowModel=
2Du,t.PopupComponent=sn,t.PopupEditorWrapper=zr,t.PopupSelectCellEditor=Wo,t.PopupService=Na,t.PopupTextCellEditor=Lo,t.PostConstruct=it,t.PreConstruct=rt,t.PreDestroy=at,t.Promise=et,t.PropertyKeys=Bt,t.ProvidedFilter=bn,t.Qualifier=pt,t.QuerySelector=function(e){return un.bind(this,e)},t.RefSelector=ln,t.ResizeObserverService=Dl,t.RowComp=ri,t.RowNode=Vn,t.RowNodeBlock=$u,t.RowNodeBlockLoader=tc,t.RowNodeCache=rc,t.RowPositionUtils=_u,t.RowRenderer=li,t.ScalarFilter=Pn,t.ScrollVisibleService=ws,t.SelectCellEditor=ko,t.SelectableService=wl,t.SelectionController=Tr,t.SetLeftFeature=gi,t.SimpleFilter=Sn,t.SortController=es,t.StandardMenuFactory=Ka,t.StylingService=_s,t.TabbedLayout=Ku,t.TemplateService=Pa,t.TextCellEditor=yn,t.TextFilter=cr,t.Timer=tt,t.TooltipFeature=Jr,t.TouchListener=In,t.UserComponentFactory=wo,t.UserComponentRegistry=Er,t.ValueCache=Hs,t.ValueFormatterService=fs,t.ValueService=ua,t.VanillaFrameworkOverrides=vs,t.VirtualList=sc,t._=Je,t.defaultGroupComparator=function(e,t,n,o,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=Je.exists(n)&&n.group,a=Je.exists(o)&&o.group,s=!i&&!a;return i&&a?Je.defaultComparator(n.key,o.key,r):s?Je.defaultComparator(e,t,r):i?1:-1},t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",Uu],scope:!0}}))},t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!zu){zu=!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);Zt.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 n={};n[e]={currentValue:t},this.onChange(n)},t.onChange=function(e){this._initialised&&Zt.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=Zt.copyAttributesToGridOptions(e,this);var n={globalEventListener:t};this._agGrid=new Bu(this,this._gridOptions,n),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,n="string"===typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,o=e.nodeValue;Zt.ALL_PROPERTIES.indexOf(n)>=0&&(this[n]=o)},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 n=e.toLowerCase(),o=new Event(n);o.agGridDetails=t,this.dispatchEvent(o);var r="on"+n;"function"===typeof this[r]&&this[r](o)},document.registerElement("ag-grid",{prototype:e})}},t.simpleHttpRequest=function(e){return new et((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}}))},t.stringToArray=o}).call(this,n(31))},function(e,t,n){"use strict";var o=n(167);e.exports=Function.prototype.bind||o},function(e,t,n){"use strict";var o=n(85),r="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(n){return!1}}(),u=function(e,t,n,o){var r;t in e&&("function"!==typeof(r=o)||"[object Function]"!==i.call(r)||!o())||(l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},i=o(t);r&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)u(e,i[s],t[i[s]],n[i[s]])};c.supportsDescriptors=!!l,e.exports=c},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t),a=n.getFullYear()-i.getFullYear(),s=n.getMonth()-i.getMonth();return 12*a+s}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e);return t.setHours(23,59,59,999),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(69),r=n(8),i=n(2);function a(e){if(Object(i.a)(1,arguments),!Object(o.default)(e)&&"number"!==typeof e)return!1;var t=Object(r.default)(e);return!isNaN(Number(t))}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(19),r=n(2);function i(e){return Object(r.a)(1,arguments),e instanceof Date||"object"===Object(o.a)(e)&&"[object Date]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(41),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(t);return Object(r.a)(e,6e4*n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(41),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(t);return Object(r.a)(e,36e5*n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(46),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(t),a=7*n;return Object(r.default)(e,a)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(47),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(t);return Object(r.default)(e,12*n)}},function(e,t,n){"use strict";var o=function(){};e.exports=o},function(e,t,n){"use strict";n.r(t);var o=n(11),r=n(8),i=n(2);function a(e){Object(i.a)(1,arguments);var t=Object(r.default)(e),n=t.getFullYear(),o=t.getMonth(),a=new Date(0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function s(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e),s=Object(o.a)(t),l=n.getFullYear(),u=n.getDate(),c=new Date(0);c.setFullYear(l,s,15),c.setHours(0,0,0,0);var p=a(c);return n.setMonth(s,Math.min(u,p)),n}n.d(t,"default",(function(){return s}))},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});t.createChangeEmitter=function(){var e=[],t=e;function n(){t===e&&(t=e.slice())}return{listen:function(e){if("function"!==typeof e)throw new Error("Expected listener to be a function.");var o=!0;return n(),t.push(e),function(){if(o){o=!1,n();var r=t.indexOf(e);t.splice(r,1)}}},emit:function(){for(var n=e=t,o=0;o<n.length;o++)n[o].apply(n,arguments)}}}},function(e,t,n){var o=n(110);e.exports=f,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=h;var r=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,o=[],i=0,s=0,l="",u=t&&t.delimiter||"/";null!=(n=r.exec(e));){var p=n[0],d=n[1],h=n.index;if(l+=e.slice(s,h),s=h+p.length,d)l+=d[1];else{var f=e[s],g=n[2],y=n[3],v=n[4],m=n[5],C=n[6],w=n[7];l&&(o.push(l),l="");var b=null!=g&&null!=f&&f!==g,E="+"===C||"*"===C,_="?"===C||"*"===C,O=g||u,R=v||m,S=g||("string"===typeof o[o.length-1]?o[o.length-1]:"");o.push({name:y||i++,prefix:g||"",delimiter:O,optional:_,repeat:E,partial:b,asterisk:!!w,pattern:R?c(R):w?".*":a(O,S)})}}return s<e.length&&(l+=e.substr(s)),l&&o.push(l),o}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+u(e)+"]+?":u(t)+"|(?:(?!"+u(t)+")[^"+u(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",d(t)));return function(t,r){for(var i="",a=t||{},l=(r||{}).pretty?s:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!==typeof c){var p,d=a[c.name];if(null==d){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(o(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(p=l(d[h]),!n[u].test(p))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===h?c.prefix:c.delimiter)+p}}else{if(p=c.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(d),!n[u].test(p))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+p+'"');i+=c.prefix+p}}else i+=c}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function p(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function h(e,t,n){o(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=u(l);else{var c=u(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+c+h+")*"),a+=h=l.optional?l.partial?c+"("+h+")?":"(?:"+c+"("+h+"))?":c+"("+h+")"}}var f=u(n.delimiter||"/"),g=a.slice(-f.length)===f;return r||(a=(g?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=i?"$":r&&g?"":"(?="+f+"|$)",p(new RegExp("^"+a,d(n)),t)}function f(e,t,n){return o(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var o=0;o<n.length;o++)t.push({name:o,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return p(e,t)}(e,t):o(e)?function(e,t,n){for(var o=[],r=0;r<e.length;r++)o.push(f(e[r],t,n).source);return p(new RegExp("(?:"+o.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return h(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}
vendor: 4,387 bytes, line 2
2function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:l(s(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?c:10===e?p:c||p}function h(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function g(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||o.contains(r))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||h(e.firstElementChild)===e)}(a)?a:h(a);var s=f(e);return s.host?g(s.host,t):g(e,f(t).host)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=y(t,"top"),r=y(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}function m(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function C(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,o=d(10)&&getComputedStyle(n);return{height:C("Height",t,n,o),width:C("Width",t,n,o)}}var b=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),_=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function R(e){return O({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=y(e,"top"),o=y(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(h){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?w(e.ownerDocument):{},s=i.width||e.clientWidth||r.width,l=i.height||e.clientHeight||r.height,u=e.offsetWidth-s,c=e.offsetHeight-l;if(u||c){var p=a(e);u-=m(p,"x"),c-=m(p,"y"),r.width-=u,r.height-=c}return R(r)}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=d(10),r="HTML"===t.nodeName,i=S(e),s=S(t),u=l(e),c=a(t),p=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=R({top:i.top-s.top-p,left:i.left-s.left-h,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!o&&r){var g=parseFloat(c.marginTop),y=parseFloat(c.marginLeft);f.top-=p-g,f.bottom-=p-g,f.left-=h-y,f.right-=h-y,f.marginTop=g,f.marginLeft=y}return(o&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(f=v(f,t)),f}function P(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=T(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left"),l={top:a-o.top+o.marginTop,left
vendor: 5,082 bytes, line 2
2:s-o.left+o.marginLeft,width:r,height:i};return R(l)}function D(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&D(n)}function A(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function N(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?A(e):g(e,u(t));if("viewport"===o)i=P(a,r);else{var c=void 0;"scrollParent"===o?"BODY"===(c=l(s(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===o?e.ownerDocument.documentElement:o;var p=T(c,a,r);if("HTML"!==c.nodeName||D(a))i=p;else{var d=w(e.ownerDocument),h=d.height,f=d.width;i.top+=p.top-p.marginTop,i.bottom=h+p.top,i.left+=p.left-p.marginLeft,i.right=f+p.left}}var y="number"===typeof(n=n||0);return i.left+=y?n:n.left||0,i.top+=y?n:n.top||0,i.right-=y?n:n.right||0,i.bottom-=y?n:n.bottom||0,i}function I(e){return e.width*e.height}function x(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=N(n,o,i,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return O({key:e},s[e],{area:I(s[e])})})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,p=e.split("-")[1];return c+(p?"-"+p:"")}function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=o?A(t):g(t,u(n));return T(n,r,o)}function k(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function M(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var o=k(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",u=i?"width":"height";return r[a]=t[a]+t[l]/2-o[l]/2,r[s]=n===s?t[s]-o[u]:t[M(s)],r}function G(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function W(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=G(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=R(t.offsets.popper),t.offsets.reference=R(t.offsets.reference),t=n(t,e))})),t}function V(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=x(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=W(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function j(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if("undefined"!==typeof document.body.style[i])return i}return null}function B(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e){var t=e.ownerDocument;return t?t.defaultView:window}function z(e,t,n,o){n.updateBound=o,U(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),i||e(l(a.parentNode),n,o,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Y(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,U(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 4,788 bytes, line 2
2h((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Q(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var X=n&&/Firefox/i.test(navigator.userAgent);function $(e,t,n){var o=G(e,(function(e){return e.name===t})),r=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!r){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=J.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(e),o=Z.slice(n+1).concat(Z.slice(0,n));return t?o.reverse():o}var te="flip",ne="clockwise",oe="counterclockwise";function re(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(G(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.map((function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return R(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){K(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:_({},l,i[l]),end:_({},l,i[l]+i[u]-a[u])};e.offsets.popper=O({},a,c[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,a=r.reference,s=o.split("-")[0],l=void 0;return l=K(+n)?[+n,0]:re(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var o=j("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var l=N(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,p={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),_({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),_({},n,o)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=O({},c,p[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<i(o[l])&&(e.offsets.popper[l]=i(o[l])-n[u]),n[l]>i(o[s])&&(e.offsets.popper[l]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!$(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"===typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,u=-1!==["left","right"].indexOf(r),c=u?"height":"width",p=u?"Top":"Left",d=p.toLowerCase(),h=u?"left"
vendor: 4,245 bytes, line 2
2:"top",f=u?"bottom":"right",g=k(o)[c];l[f]-g<s[d]&&(e.offsets.popper[d]-=s[d]-(l[f]-g)),l[d]+g>s[f]&&(e.offsets.popper[d]+=l[d]+g-s[f]),e.offsets.popper=R(e.offsets.popper);var y=l[d]+l[c]/2-g/2,v=a(e.instance.popper),m=parseFloat(v["margin"+p]),C=parseFloat(v["border"+p+"Width"]),w=y-e.offsets.popper[d]-m-C;return w=Math.max(Math.min(s[c]-g,w),0),e.arrowElement=o,e.offsets.arrow=(_(n={},d,Math.round(w)),_(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=N(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=M(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[o,r];break;case ne:a=ee(o);break;case oe:a=ee(o,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(o!==s||a.length===l+1)return e;o=e.placement.split("-")[0],r=M(o);var u=e.offsets.popper,c=e.offsets.reference,p=Math.floor,d="left"===o&&p(u.right)>p(c.left)||"right"===o&&p(u.left)<p(c.right)||"top"===o&&p(u.bottom)>p(c.top)||"bottom"===o&&p(u.top)<p(c.bottom),h=p(u.left)<p(n.left),f=p(u.right)>p(n.right),g=p(u.top)<p(n.top),y=p(u.bottom)>p(n.bottom),v="left"===o&&h||"right"===o&&f||"top"===o&&g||"bottom"===o&&y,m=-1!==["top","bottom"].indexOf(o),C=!!t.flipVariations&&(m&&"start"===i&&h||m&&"end"===i&&f||!m&&"start"===i&&g||!m&&"end"===i&&y),w=!!t.flipVariationsByContent&&(m&&"start"===i&&f||m&&"end"===i&&h||!m&&"start"===i&&y||!m&&"end"===i&&g),b=C||w;(d||v||b)&&(e.flipped=!0,(d||v)&&(o=a[l+1]),b&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=O({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=W(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(s?r[a?"width":"height"]:0),e.placement=M(t),e.offsets.popper=R(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!$(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=G(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=G(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=h(e.instance.popper),l=S(s),u={position:r.position},c=function(e,t){var n=e.offsets,o=n.popper,r=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(r.width),u=i(o.width),c=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),d=t?c||p||l%2===u%2?i:a:s,h=t?i:s;return{left:d(l%2===1&&u%2===1&&!p&&t?o.left-1:o.left),top:h(o.top),bottom:h(o.bottom),right:d(o.right)}}(e,window.devicePixelRatio<2||!X),p="bottom"===n?"top":"bottom",d="right"===o?"left":"right",f=j("transform"),g=void 0,y=void 0;if(y="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,g="right"===d?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&f)u[f]="translate3d("+g+"px, "+y+"px, 0)",u[p]=0,u[d]=0,u.willChange="transform";else{var v="bottom"===p?-1:1,m="right"===d?-1:1;u[p]=y*v,u[d]=g*m,u.willChange=p+", "+d}var C={"x-placement":e.placement};return e.attributes=O({},C,e.attributes),e.styles=O({},u,e.styles),e.arrowStyles=O({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Q(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEac
2h((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Q(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=F(r,t,e,n.positionFixed),a=x(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Q(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};b(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=r(this.update.bind(this)),this.options=O({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(O({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=O({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return O({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return E(e,[{key:"update",value:function(){return V.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),e}();ae.Utils=("undefined"!==typeof window?window:e).PopperUtils,ae.placements=J,ae.Defaults=ie,t.a=ae}).call(this,n(31))},function(e,t,n){"use strict";t.__esModule=!0;var o=i(n(0)),r=i(n(175));function i(e){return e&&e.__esModule?e:{default:e}}t.default=o.default.createContext||r.default,e.exports=t.default},,function(e,t,n){"use strict";function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}var r;n.r(t),n.d(t,"LogLevel",(function(){return i})),n.d(t,"Logger",(function(){return p})),n.d(t,"setLogLevel",(function(){return d})),n.d(t,"setUserLogHandler",(function(){return h}));var i,a=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));var s={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},l=i.INFO,u=((r={})[i.DEBUG]="log",r[i.VERBOSE]="log",r[i.INFO]="info",r[i.WARN]="warn",r[i.ERROR]="error",r),c=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var i=(new Date).toISOString(),a=u[t];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[a].apply(console,o(["["+i+"]  "+e.name+":"],n))}},p=function(){function e(e){this.name=e,this._logLevel=l,this._logHandler=c,this._userLogHandler=null,a.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in i))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"===typeof e?s[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,o([this,i.DEBUG],e)),this._logHandler.apply(this,o([this,i.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,o([this,i.VERBOSE],e)),this._logHandler.apply(this,o([this,i.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,o([this,i.INFO],e)),this._logHandler.apply(this,o([this,i.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,o([this,i.WARN],e)),this._logHandler.apply(this,o([this,i.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,o([this,i.ERROR],e)),this._logHandler.apply(this,o([this,i.ERROR],e))},e}();function d(e){a.forEach((function(t){t.setLogLevel(e)}
2))}function h(e,t){for(var n=function(n){var o=null;t&&t.level&&(o=s[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s=r.map((function(e){if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((function(e){return e})).join(" ");n>=(null!==o&&void 0!==o?o:t.logLevel)&&e({level:i[n].toLowerCase(),message:s,args:r,type:t.name})}},o=0,r=a;o<r.length;o++){n(r[o])}}},function(e,t,n){"use strict";e.exports=n(111)},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(37),s=n(62),l=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.props=t,o.state=n,o}return o(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return r.Children.map(e.children,(function(e){return t.toColDef(e.props)}))},t.toColDef=function(e){var n=t.createColDefFromGridColumn(e);return t.hasChildColumns(e)&&(n.children=t.getChildColDefs(e.children)),n},t.hasChildColumns=function(e){return r.Children.count(e.children)>0},t.getChildColDefs=function(e){return r.Children.map(e,(function(e){return t.createColDefFromGridColumn(e.props)}))},t.createColDefFromGridColumn=function(e){var n={};return t.assign(n,e),delete n.children,n},t.assign=function(e,t){return[t].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),e)},t}(i.Component);function u(e,t){e.forEach((function(e){l[e]=t}))}t.AgGridColumn=l,u(s.ColDefUtil.BOOLEAN_PROPERTIES,a.bool),u(s.ColDefUtil.STRING_PROPERTIES,a.string),u(s.ColDefUtil.OBJECT_PROPERTIES,a.object),u(s.ColDefUtil.ARRAY_PROPERTIES,a.array),u(s.ColDefUtil.NUMBER_PROPERTIES,a.number),u(s.ColDefUtil.FUNCTION_PROPERTIES,a.func)},function(e,t,n){"use strict";var o=Array.prototype.slice,r=n(86),i=Object.keys,a=i?function(e){return i(e)}:n(162),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return r(e)?s(o.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},function(e,t,n){"use strict";var o=Object.prototype.toString;e.exports=function(e){var t=o.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===o.call(e.callee)),n}},function(e,t,n){"use strict";
2var o=Object,r=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new r("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},function(e,t,n){"use strict";var o=n(87),r=n(64).supportsDescriptors,i=Object.getOwnPropertyDescriptor,a=TypeError;e.exports=function(){if(!r)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof/a/.dotAll)return e.get}return o}},,,function(e,t,n){"use strict";var o={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,c=u&&u(Object);e.exports=function e(t,n,p){if("string"!==typeof n){if(c){var d=u(n);d&&d!==c&&e(t,d,p)}var h=a(n);s&&(h=h.concat(s(n)));for(var f=0;f<h.length;++f){var g=h[f];if(!o[g]&&!r[g]&&(!p||!p[g])){var y=l(n,g);try{i(t,g,y)}catch(v){}}}return t}return t}},function(e,t,n){"use strict";function o(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var o=n(83),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,o){if("string"!==typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,o)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=l(t),g=l(n),y=0;y<a.length;++y){var v=a[y];if(!i[v]&&(!o||!o[v])&&(!g||!g[v])&&(!s||!s[v])){var m=d(n,v);try{u(t,v,m)}catch(C){}}}}return t}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t,n){var o=n(85),r=n(163),i=n(164),a=n(165),s=n(168),l=n(174),u=Date.prototype.getTime;function c(e,t,n){var h=n||{};return!(h.strict?!i(e,t):e!==t)||(!e||!t||"object"!==typeof e&&"object"!==typeof t?h.strict?i(e,t):e==t:function(e,t,n){var i,h;if(typeof e!==typeof t)return!1;if(p(e)||p(t))return!1;if(e.prototype!==t.prototype)return!1;if(r(e)!==r(t))return!1;var f=a(e),g=a(t);if(f!==g)return!1;if(f||g)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return u.call(e)===u.call(t);var y=d(e),v=d(t);if(y!==v)return!1;if(y||v){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!==typeof t)return!1;try{var m=o(e),C=o(t)}catch(w){return!1}if(m.length!==C.length)return!1;for(m.sort(),C.sort(),i=m.length-1;i>=0;i--)if(m[i]!=C[i])return!1;for(i=m.length-1;i>=0;i--)if(h=m[i],!c(e[h],t[h],n))return!1;return!0}(e,t,h))}function p(e){return null===e||void 0===e}function d(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=c},,function(e,t,n){"use strict";var o=n(60),r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function w(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||m}function b(){}function E(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||m}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=w.prototype;var _=E.prototype=new b;_.constructor=E,o(_,w.prototype),_.isPureReactComponent=!0;var O={current:null},R=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var o,r={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)R.call(t,o)&&!S.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===r[o]&&(r[o]=l[o]);return{$$typeof:i,type:e,key:a,ref:s,props:r,_owner:O.current}}function P(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var D=/\/+/g,A=[];function N(e,t,n,o){if(A.length){var r=A.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function x(e,t,n){return null==e?0:function e(t,n,o,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return o(r,t,""===n?"."+F(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+F(s=t[u],u);
2l+=e(s,c,o,r)}else if(null===t||"object"!==typeof t?c=null:c="function"===typeof(c=y&&t[y]||t["@@iterator"])?c:null,"function"===typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=e(s=s.value,c=n+F(s,u++),o,r);else if("object"===s)throw o=""+t,Error(v(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,""));return l}(e,"",t,n)}function F(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 k(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,o,n,(function(e){return e})):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:i,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(D,"$&/")+"/")+n)),o.push(e))}function L(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(D,"$&/")+"/"),x(e,M,t=N(t,i,o,r)),I(t)}var G={current:null};function W(){var e=G.current;if(null===e)throw Error(v(321));return e}var V={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:function(e,t,n){if(null==e)return e;var o=[];return L(e,o,null,t,n),o}
vendor: 26,868 bytes, line 2
2,forEach:function(e,t,n){if(null==e)return e;x(e,k,t=N(null,null,t,n)),I(t)},count:function(e){return x(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!P(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=u,t.PureComponent=E,t.StrictMode=l,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(v(267,e));var r=o({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=O.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)R.call(t,c)&&!S.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];r.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:r,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return W().useCallback(e,t)},t.useContext=function(e,t){return W().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return W().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return W().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return W().useLayoutEffect(e,t)},t.useMemo=function(e,t){return W().useMemo(e,t)},t.useReducer=function(e,t,n){return W().useReducer(e,t,n)},t.useRef=function(e){return W().useRef(e)},t.useState=function(e){return W().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";var o=n(0),r=n(60),i=n(99);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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(!o)throw Error(a(227));function s(e,t,n,o,r,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var l=!1,u=null,c=!1,p=null,d={onError:function(e){l=!0,u=e}};function h(e,t,n,o,r,i,a,c,p){l=!1,u=null,s.apply(d,arguments)}var f=null,g=null,y=null;function v(e,t,n){var o=e.type||"unknown-event";e.currentTarget=y(n),function(e,t,n,o,r,i,s,d,f){if(h.apply(this,arguments),l){if(!l)throw Error(a(198));var g=u;l=!1,u=null,c||(c=!0,p=g)}}(o,t,void 0,e),e.currentTarget=null}var m=null,C={};function w(){if(m)for(var e in C){var t=C[e],n=m.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!E[n]){if(!t.extractEvents)throw Error(a(97,e));for(var o in E[n]=t,n=t.eventTypes){var r=void 0,i=n[o],s=t,l=o;if(_.hasOwnProperty(l))throw Error(a(99,l));_[l]=i;var u=i.phasedRegistrationNames;if(u){for(r in u)u.hasOwnProperty(r)&&b(u[r],s,l);r=!0}else i.registrationName?(b(i.registrationName,s,l),r=!0):r=!1;if(!r)throw Error(a(98,o,e))}}}}function b(e,t,n){if(O[e])throw Error(a(100,e));O[e]=t,R[e]=t.eventTypes[n].dependencies}var E=[],_={},O={},R={};function S(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];if(!C.hasOwnProperty(t)||C[t]!==o){if(C[t])throw Error(a(102,t));C[t]=o,n=!0}}n&&w()}var T=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),P=null,D=null,A=null;function N(e){if(e=g(e)){if("function"!==typeof P)throw Error(a(280));var t=e.stateNode;t&&(t=f(t),P(e.stateNode,e.type,t))}}function I(e){D?A?A.push(e):A=[e]:D=e}function x(){if(D){var e=D,t=A;if(A=D=null,N(e),t)for(e=0;e<t.length;e++)N(t[e])}}function F(e,t){return e(t)}function k(e,t,n,o,r){return e(t,n,o,r)}function M(){}var L=F,G=!1,W=!1;function V(){null===D&&null===A||(M(),x())}function H(e,t,n){if(W)return e(t,n);W=!0;try{return L(e,t,n)}finally{W=!1,V()}}var j=/^[: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]*$/,B=Object.prototype.hasOwnProperty,U={},z={};function Y(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new Y(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new Y(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new Y(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new Y(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){q[e]=new Y(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new Y(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new Y(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new Y(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new Y(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Q(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(K,Q);q[t]=new Y(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(K,Q);q[t]=new Y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Q);q[t]=new Y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new Y(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new Y(e,1,!1,e.toLowerCase(),null,!0)}));var X=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(e,t,n,o){var r=q.hasOwnProperty(t)?q[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null===t||"undefined"===typeof t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.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,n,r,o)&&(n=null),o||null===r?function(e){return!!B.call(z,e)||!B.call(U,e)&&(j.test(e)?z[e]=!0:(U[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,oe=Z?Symbol.for("react.strict_mode"):60108,re=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ue=Z?Symbol.for("react.suspense"):60113,ce=Z?Symbol.for("react.suspense_list"):60120,pe=Z?Symbol.for("react.memo"):60115,de=Z?Symbol.for("react.lazy"):60116,he=Z?Symbol.for("react.block"):60121,fe="function"===typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function ye(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 ne:return"Fragment";case te:return"Portal";case re:return"Profiler";case oe:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return ye(e.type);case he:return ye(e.render);case de:if(e=1===e._status?e._result:null)return ye(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var o=e._debugOwner,r=e._debugSource,i=ye(e.type);n=null,o&&(n=ye(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace(J,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}function me(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=Ce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ce(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function _e(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=me(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Oe(e,t){null!=(t=t.checked)&&$(e,"checked",t,!1)}function Re(e,t){Oe(e,t);var n=me(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,me(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Pe(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function De(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+me(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ne(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:me(n)}}function Ie(e,t){var n=me(t.value),o=me(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function xe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Fe="http://www.w3.org/1999/xhtml",ke="http://www.w3.org/2000/svg";function Me(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 Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Me(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ge,We=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==ke||"innerHTML"in e)e.innerHTML=t;else{for((Ge=Ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function He(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var je={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},Be={},Ue={};function ze(e){if(Be[e])return Be[e];if(!je[e])return e;var t,n=je[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ue)return Be[e]=n[t];return e}T&&(Ue=document.createElement("div").style,"AnimationEvent"in window||(delete je.animationend.animation,delete je.animationiteration.animation,delete je.animationstart.animation),"TransitionEvent"in window||delete je.transitionend.transition);var Ye=ze("animationend"),qe=ze("animationiteration"),Ke=ze("animationstart"),Qe=ze("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$e=new("function"===typeof WeakMap?WeakMap:Map);function Je(e){var t=$e.get(e);return void 0===t&&(t=new Map,$e.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(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 tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(o=r.return)){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return tt(r),e;if(i===o)return tt(r),t;i=i.sibling}throw Error(a(188))}if(n.return!==o.return)n=r,o=i;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,o=i;break}if(l===o){s=!0,o=r,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,o=r;break}if(l===o){s=!0,o=i,n=r;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==o)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?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 ot(e,t){if(null==t)throw Error(a(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 rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)v(e,t[o],n[o]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(it=ot(it,e)),e=it,it=null,e){if(rt(e,at),it)throw Error(a(95));if(c)throw e=p,c=!1,p=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!T)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 ct=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,n,o){if(ct.length){var r=ct.pop();return r.topLevelType=e,r.eventSystemFlags=o,r.nativeEvent=t,r.targetInst=n,r}return{topLevelType:e,eventSystemFlags:o,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o=n;if(3===o.tag)o=o.stateNode.containerInfo;else{for(;o.return;)o=o.return;o=3!==o.tag?null:o.stateNode.containerInfo}if(!o)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=lt(e.nativeEvent);o=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<E.length;l++){var u=E[l];u&&(u=u.extractEvents(o,t,i,r,a))&&(s=ot(s,u))}st(s)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&qt(e,t)}n.set(e,null)}}var gt,yt,vt,mt=!1,Ct=[],wt=null,bt=null,Et=null,_t=new Map,Ot=new Map,Rt=[],St="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(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,n,o,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r,container:o}}function Dt(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function At(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e=Pt(t,n,o,r,i),null!==t&&(null!==(t=Pn(t))&&yt(t)),e):(e.eventSystemFlags|=o,e)}function Nt(e){var t=Tn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Pn(t);return null!==n&&yt(n),e.blockedOn=t,!1}return!0}function xt(e,t,n){It(e)&&n.delete(t)}function Ft(){for(mt=!1;0<Ct.length;){var e=Ct[0];if(null!==e.blockedOn){null!==(e=Pn(e.blockedOn))&&gt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:Ct.shift()}null!==wt&&It(wt)&&(wt=null),null!==bt&&It(bt)&&(bt=null),null!==Et&&It(Et)&&(Et=null),_t.forEach(xt),Ot.forEach(xt)}function kt(e,t){e.blockedOn===t&&(e.blockedOn=null,mt||(mt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Mt(e){function t(t){return kt(t,e)}if(0<Ct.length){kt(Ct[0],e);for(var n=1;n<Ct.length;n++){var o=Ct[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==wt&&kt(wt,e),null!==bt&&kt(bt,e),null!==Et&&kt(Et,e),_t.forEach(t),Ot.forEach(t),n=0;n<Rt.length;n++)(o=Rt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Rt.shift()}var Lt={},Gt=new Map,Wt=new Map,Vt=["abort","abort",Ye,"animationEnd",qe,"animationIteration",Ke,"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",Qe,"transitionEnd","waiting","waiting"];function Ht(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],r=e[n+1],i="on"+(r[0].toUpperCase()+r.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[o],eventPriority:t},Wt.set(o,t),Gt.set(o,i),Lt[r]=i}}Ht("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),Ht("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),Ht(Vt,2);for(var jt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Bt=0;Bt<jt.length;Bt++)Wt.set(jt[Bt],0);var Ut=i.unstable_UserBlockingPriority,zt=i.unstable_runWithPriority,Yt=!0;function qt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var o=Wt.get(t);switch(void 0===o?2:o){case 0:o=Qt.bind(null,t,1,e);break;case 1:o=Xt.bind(null,t,1,e);break;default:o=$t.bind(null,t,1,e)}n?e.addEventListener(t,o,!0):e.addEventListener(t,o,!1)}function Qt(e,t,n,o){G||M();var r=$t,i=G;G=!0;try{k(r,e,t,n,o)}finally{(G=i)||V()}}function Xt(e,t,n,o){zt(Ut,$t.bind(null,e,t,n,o))}function $t(e,t,n,o){if(Yt)if(0<Ct.length&&-1<St.indexOf(e))e=Pt(null,e,t,n,o),Ct.push(e);else{var r=Jt(e,t,n,o);if(null===r)Dt(e,o);else if(-1<St.indexOf(e))e=Pt(r,e,t,n,o),Ct.push(e);else if(!function(e,t,n,o,r){switch(t){case"focus":return wt=At(wt,e,t,n,o,r),!0;case"dragenter":return bt=At(bt,e,t,n,o,r),!0;case"mouseover":return Et=At(Et,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return _t.set(i,At(_t.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Ot.set(i,At(Ot.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o)){Dt(e,o),e=dt(e,o,null,t);try{H(ht,e)}finally{pt(e)}}}}function Jt(e,t,n,o){if(null!==(n=Tn(n=lt(o)))){var r=Ze(n);if(null===r)n=null;else{var i=r.tag;if(13===i){if(null!==(n=et(r)))return n;n=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}e=dt(e,o,n,t);try{H(ht,e)}finally{pt(e)}return null}var Zt={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},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=tn(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}
2Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var on=r({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 rn(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if(!("object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function an(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 sn=Fe;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=R[t];for(var o=0;o<t.length;o++)ft(t[o],e,n)}function un(){}function cn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,o=pn(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=pn(o)}}function hn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(o){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function fn(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 gn=null,yn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function mn(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 Cn="function"===typeof setTimeout?setTimeout:void 0,wn="function"===typeof clearTimeout?clearTimeout:void 0;function bn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var _n=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+_n,Rn="__reactEventHandlers$"+_n,Sn="__reactContainere$"+_n;function Tn(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[On]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[On])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function Pn(e){return!(e=e[On]||e[Sn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Dn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function An(e){return e[Rn]||null}function Nn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function In(e,t){var n=e.stateNode;if(!n)return null;var o=f(n);if(!o)return null;n=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}
vendor: 3,018 bytes, line 2
2function xn(e,t,n){(t=In(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Fn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Nn(t);for(t=n.length;0<t--;)xn(n[t],"captured",e);for(t=0;t<n.length;t++)xn(n[t],"bubbled",e)}}function kn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=In(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Mn(e){e&&e.dispatchConfig.registrationName&&kn(e._targetInst,null,e)}function Ln(e){rt(e,Fn)}var Gn=null,Wn=null,Vn=null;function Hn(){if(Vn)return Vn;var e,t,n=Wn,o=n.length,r="value"in Gn?Gn.value:Gn.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var a=o-e;for(t=1;t<=a&&n[o-t]===r[i-t];t++);return Vn=r.slice(e,1<t?1-t:void 0)}function jn(){return!0}function Bn(){return!1}function Un(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?jn:Bn,this.isPropagationStopped=Bn,this}function zn(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function Yn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function qn(e){e.eventPool=[],e.getPooled=zn,e.release=Yn}r(Un.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){this.isPersistent=jn},isPersistent:Bn,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=Bn,this._dispatchInstances=this._dispatchListeners=null}}),Un.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},Un.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,qn(n),n},qn(Un);var Kn=Un.extend({data:null}),Qn=Un.extend({data:null}),Xn=[9,13,27,32],$n=T&&"CompositionEvent"in window,Jn=null;T&&"documentMode"in document&&(Jn=document.documentMode);var Zn=T&&"TextEvent"in window&&!Jn,eo=T&&(!$n||Jn&&8<Jn&&11>
vendor: 4,318 bytes, line 2
2=Jn),to=String.fromCharCode(32),no={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(" ")}},oo=!1;function ro(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function io(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ao=!1;var so={eventTypes:no,extractEvents:function(e,t,n,o){var r;if($n)e:{switch(e){case"compositionstart":var i=no.compositionStart;break e;case"compositionend":i=no.compositionEnd;break e;case"compositionupdate":i=no.compositionUpdate;break e}i=void 0}else ao?ro(e,n)&&(i=no.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=no.compositionStart);return i?(eo&&"ko"!==n.locale&&(ao||i!==no.compositionStart?i===no.compositionEnd&&ao&&(r=Hn()):(Wn="value"in(Gn=o)?Gn.value:Gn.textContent,ao=!0)),i=Kn.getPooled(i,t,n,o),r?i.data=r:null!==(r=io(n))&&(i.data=r),Ln(i),r=i):r=null,(e=Zn?function(e,t){switch(e){case"compositionend":return io(t);case"keypress":return 32!==t.which?null:(oo=!0,to);case"textInput":return(e=t.data)===to&&oo?null:e;default:return null}}(e,n):function(e,t){if(ao)return"compositionend"===e||!$n&&ro(e,t)?(e=Hn(),Vn=Wn=Gn=null,ao=!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 eo&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Qn.getPooled(no.beforeInput,t,n,o)).data=e,Ln(t)):t=null,null===r?t:null===t?r:[r,t]}},lo={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 uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lo[e.type]:"textarea"===t}var co={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function po(e,t,n){return(e=Un.getPooled(co.change,e,t,n)).type="change",I(n),Ln(e),e}var ho=null,fo=null;function go(e){st(e)}function yo(e){if(be(Dn(e)))return e}function vo(e,t){if("change"===e)return t}var mo=!1;function Co(){ho&&(ho.detachEvent("onpropertychange",wo),fo=ho=null)}function wo(e){if("value"===e.propertyName&&yo(fo))if(e=po(fo,e,lt(e)),G)st(e);else{G=!0;try{F(go,e)}finally{G=!1,V()}}}function bo(e,t,n){"focus"===e?(Co(),fo=n,(ho=t).attachEvent("onpropertychange",wo)):"blur"===e&&Co()}function Eo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return yo(fo)}function _o(e,t){if("click"===e)return yo(t)}function Oo(e,t){if("input"===e||"change"===e)return yo(t)}T&&(mo=ut("input")&&(!document.documentMode||9<document.documentMode));var Ro={eventTypes:co,_isInputEventSupported:mo,extractEvents:function(e,t,n,o){var r=t?Dn(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var a=vo;else if(uo(r))if(mo)a=Oo;else{a=Eo;var s=bo}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(a=_o);if(a&&(a=a(e,t)))return po(a,n,o);s&&s(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Te(r,"number",r.value)}},So=Un.extend({view:null,detail:null}),To={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Po(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=To[e])&&!!t[e]}function Do(){return Po}var Ao=0,No=0,Io=!1,xo=!1,Fo=So.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,
2shiftKey:null,altKey:null,metaKey:null,getModifierState:Do,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=Ao;return Ao=e.screenX,Io?"mousemove"===e.type?e.screenX-t:0:(Io=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=No;return No=e.screenY,xo?"mousemove"===e.type?e.screenY-t:0:(xo=!0,0)}}),ko=Fo.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Mo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lo={eventTypes:Mo,extractEvents:function(e,t,n,o,r){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0===(32&r)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=o.window===o?o:(i=o.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Fo,l=Mo.mouseLeave,u=Mo.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=ko,l=Mo.pointerLeave,u=Mo.pointerEnter,c="pointer");if(e=null==a?i:Dn(a),i=null==t?i:Dn(t),(l=s.getPooled(l,a,n,o)).type=c+"leave",l.target=e,l.relatedTarget=i,(n=s.getPooled(u,t,n,o)).type=c+"enter",n.target=i,n.relatedTarget=e,c=t,(o=a)&&c)e:{for(u=c,a=0,e=s=o;e;e=Nn(e))a++;for(e=0,t=u;t;t=Nn(t))e++;for(;0<a-e;)s=Nn(s),a--;for(;0<e-a;)u=Nn(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=Nn(s),u=Nn(u)}s=null}else s=null;for(u=s,s=[];o&&o!==u&&(null===(a=o.alternate)||a!==u);)s.push(o),o=Nn(o);for(o=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)o.push(c),c=Nn(c);for(c=0;c<s.length;c++)kn(s[c],"bubbled",l);for(c=o.length;0<c--;)kn(o[c],"captured",n);return 0===(64&r)?[l]:[l,n]}};var Go="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Wo=Object.prototype.hasOwnProperty;function Vo(e,t){if(Go(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Wo.call(t,n[o])||!Go(e[n[o]],t[n[o]]))return!1;return!0}var Ho=T&&"documentMode"in document&&11>=document.documentMode,jo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}}
vendor: 7,305 bytes, line 2
2,Bo=null,Uo=null,zo=null,Yo=!1;function qo(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yo||null==Bo||Bo!==cn(n)?null:("selectionStart"in(n=Bo)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},zo&&Vo(zo,n)?null:(zo=n,(e=Un.getPooled(jo.select,Uo,e,t)).type="select",e.target=Bo,Ln(e),e))}var Ko={eventTypes:jo,extractEvents:function(e,t,n,o,r,i){if(!(i=!(r=i||(o.window===o?o.document:9===o.nodeType?o:o.ownerDocument)))){e:{r=Je(r),i=R.onSelect;for(var a=0;a<i.length;a++)if(!r.has(i[a])){r=!1;break e}r=!0}i=!r}if(i)return null;switch(r=t?Dn(t):window,e){case"focus":(uo(r)||"true"===r.contentEditable)&&(Bo=r,Uo=t,zo=null);break;case"blur":zo=Uo=Bo=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yo=!1,qo(n,o);case"selectionchange":if(Ho)break;case"keydown":case"keyup":return qo(n,o)}return null}},Qo=Un.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xo=Un.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$o=So.extend({relatedTarget:null});function Jo(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 Zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},er={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"},tr=So.extend({key:function(e){if(e.key){var t=Zo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?er[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Do,charCode:function(e){return"keypress"===e.type?Jo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),nr=Fo.extend({dataTransfer:null}),or=So.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Do}),rr=Un.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ir=Fo.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}),ar={eventTypes:Lt,extractEvents:function(e,t,n,o){var r=Gt.get(e);if(!r)return null;switch(e){case"keypress":if(0===Jo(n))return null;case"keydown":case"keyup":e=tr;break;case"blur":case"focus":e=$o;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=nr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=or;break;case Ye:case qe:case Ke:e=Qo;break;case Qe:e=rr;break;case"scroll":e=So;break;case"wheel":e=ir;break;case"copy":case"cut":case"paste":e=Xo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=ko;break;default:e=Un}return Ln(t=e.getPooled(r,t,n,o)),t}};if(m)throw Error(a(101));m=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),f=An,g=Pn,y=Dn,S({SimpleEventPlugin:ar,EnterLeaveEventPlugin:Lo,ChangeEventPlugin:Ro,SelectEventPlugin:Ko,BeforeInputEventPlugin:so});var sr=[],lr=-1;function ur(e){0>lr||(e.current=sr[lr],sr[lr]=null,lr--)}function cr(e,t){lr++,sr[lr]=e.current,e.current=t}var pr={},dr={current:pr},hr={current:!1},fr=pr;function gr(e,t){var n=e.type.contextTypes;if(!n)return pr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yr(e){return null!==(e=e.childContextTypes)&&void 0!==e}function vr(){ur(hr),ur(dr)}function mr(e,t,n){if(dr.current!==pr)throw Error(a(168));cr(dr,t),cr(hr,n)}function Cr(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!==typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw Error(a(108,ye(t)||"Unknown",i));return r({},n,{},o)}function wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pr,fr=dr.current,cr(dr,e),cr(hr,hr.current),!0}function br(e,t,n){var o=e.stateNode;if(!o)throw Error(a(169));n?(e=Cr(e,t,fr),o.__reactInternalMemoizedMergedChildContext=e,ur(hr),ur(dr),cr(dr,e)):ur(hr),cr(hr,n)}var Er=i.unstable_runWithPriority,_r=i.unstable_scheduleCallback,Or=i.unstable_cancelCallback,Rr=i.unstable_requestPaint,Sr=i.unstable_now,Tr=i.unstable_getCurrentPriorityLevel,Pr=i.unstable_ImmediatePriority,Dr=i.unstable_UserBlockingPriority,Ar=i.unstable_NormalPriority,Nr=i.unstable_LowPriority,Ir=i.unstable_IdlePriority,xr={},Fr=i.unstable_shouldYield,kr=void 0!==Rr?Rr:function(){},Mr=null,Lr=null,Gr=!1,Wr=Sr(),Vr=1e4>Wr?Sr:function(){return Sr()-Wr};function Hr(){switch(Tr()){case Pr:return 99;case Dr:return 98;case Ar:return 97;case Nr:return 96;case Ir:return 95;default:throw Error(a(332))}}function jr(e){switch(e){case 99:return Pr;case 98:return Dr;case 97:return Ar;case 96:return Nr;case 95:return Ir;default:throw Error(a(332))}}function Br(e,t){return e=jr(e),Er(e,t)}function Ur(e,t,n){return e=jr(e),_r(e,t,n)}function zr(e){return null===Mr?(Mr=[e],Lr=_r(Pr,qr)):Mr.push(e),xr}function Yr(){if(null!==Lr){var e=Lr;Lr=null,Or(e)}qr()}function qr(){if(!Gr&&null!==Mr){Gr=!0;var e=0;try{var t=Mr;Br(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mr=null}catch(n){throw null!==Mr&&(Mr=Mr.slice(e+1)),_r(Pr,Yr),n}finally{Gr=!1}}}function Kr(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Qr(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Xr={current:null},$r=null,Jr=null,Zr=null;function ei(){Zr=Jr=$r=null}function ti(e){var t=Xr.current;ur(Xr),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}
2function oi(e,t){$r=e,Zr=Jr=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Aa=!0),e.firstContext=null)}function ri(e,t){if(Zr!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Zr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jr){if(null===$r)throw Error(a(308));Jr=t,$r.dependencies={expirationTime:0,firstContext:t,responders:null}}else Jr=Jr.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function li(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ui(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function pi(e,t,n,o){var i=e.updateQueue;ii=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var u=i.baseState,c=0,p=null,d=null,h=null;if(null!==l)for(var f=l;;){if((s=f.expirationTime)<o){var g={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===h?(d=h=g,p=u):h=h.next=g,s>c&&(c=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),il(s,f.suspenseConfig);e:{var y=e,v=f;switch(s=t,g=n,v.tag){case 1:if("function"===typeof(y=v.payload)){u=y.call(g,u,s);break e}u=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null===(s="function"===typeof(y=v.payload)?y.call(g,u,s):y)||void 0===s)break e;u=r({},u,s);break e;case 2:ii=!0}}null!==f.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[f]:s.push(f))}if(null===(f=f.next)||f===l){if(null===(s=i.shared.pending))break;f=a.next=s.next,s.next=l,i.baseQueue=a=s,i.shared.pending=null}}null===h?p=u:h.next=d,i.baseState=p,i.baseQueue=h,al(c),e.expirationTime=c,e.memoizedState=u}}function di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=r,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var hi=X.ReactCurrentBatchConfig,fi=(new o.Component).refs;function gi(e,t,n,o){n=null===(n=n(o,t=e.memoizedState))||void 0===n?t:r({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=Ys(),r=hi.suspense;(r=li(o=qs(o,e,r),r)).payload=t,void 0!==n&&null!==n&&(r.callback=n),ui(e,r),Ks(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=Ys(),r=hi.suspense;(r=li(o=qs(o,e,r),r)).tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),ui(e,r),Ks(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ys(),o=hi.suspense;(o=li(n=qs(n,e,o),o)).tag=2,void 0!==t&&null!==t&&(o.callback=t),ui(e,o),Ks(e,n)}};function vi(e,t,n,o,r,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Vo(n,o)||!Vo(r,i))}function mi(e,t,n){var o=!1,r=pr,i=t.contextType;return"object"===typeof i&&null!==i?i=ri(i):(r=yr(t)?fr:dr.current,i=(o=null!==(o=t.contextTypes)&&void 0!==o)?gr(e,r):pr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ci(e,t,n,o){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function wi(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=fi,ai(e);var i=t.contextType;"object"===typeof i&&null!==i?r.context=ri(i):(i=yr(t)?fr:dr.current,r.context=gr(e,i
2)),pi(e,n,r,o),r.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),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&&yi.enqueueReplaceState(r,r.state,null),pi(e,n,r,o),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.effectTag|=4)}var bi=Array.isArray;function Ei(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var o=n.stateNode}if(!o)throw Error(a(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=o.refs;t===fi&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _i(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oi(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(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=Sl(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.effectTag=2,n):o:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Dl(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=Ei(e,t,n),o.return=e,o):((o=Tl(n.type,n.key,n.props,null,e.mode,o)).ref=Ei(e,t,n),o.return=e,o)}function c(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Al(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function p(e,t,n,o,i){return null===t||7!==t.tag?((t=Pl(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Dl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Tl(t.type,t.key,t.props,null,e.mode,n)).ref=Ei(e,null,t),n.return=e,n;case te:return(t=Al(t,e.mode,n)).return=e,t}if(bi(t)||ge(t))return(t=Pl(t,e.mode,n,null)).return=e,t;_i(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==r?null:l(e,t,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===r?n.type===ne?p(e,t,n.props.children,o,r):u(e,t,n,o):null;case te:return n.key===r?c(e,t,n,o):null}if(bi(n)||ge(n))return null!==r?null:p(e,t,n,o,null);_i(e,n)}return null}function f(e,t,n,o,r){if("string"===typeof o||"number"===typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"===typeof o&&null!==o){switch(o.$$typeof){case ee:return e=e.get(null===o.key?n:o.key)||null,o.type===ne?p(t,e,o.props.children,r,o.key):u(t,e,o,r);case te:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(bi(o)||ge(o))return p(t,e=e.get(n)||null,o,r,null);_i(t,o)}return null}function g(r,a,s,l){for(var u=null,c=null,p=a,g=a=0,y=null;null!==p&&g<s.length;g++){p.index>g?(y=p,p=null):y=p.sibling;var v=h(r,p,s[g],l);if(null===v){null===p&&(p=y);break}e&&p&&null===v.alternate&&t(r,p),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,p=y}if(g===s.length)return n(r,p),u;if(null===p){for(;g<s.length;g++)null!==(p=d(r,s[g],l))&&(a=i(p,a,g),null===c?u=p:c.sibling=p,c=p);return u}for(p=o(r,p);g<s.length;g++)null!==(y=f(p,r,g,s[g],l))&&(e&&null!==y.alternate&&p.delete(null===y.key?g:y.key),a=i(y,a,g),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(r,e)})),u}function y(r,s,l,u){var c=ge(l);if("function"!==typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var p=c=null,g=s,y=s=0,v=null,m=l.next();null!==g&&!m.done;y++,m=l.next()){g.index>
vendor: 10,921 bytes, line 2
2y?(v=g,g=null):v=g.sibling;var C=h(r,g,m.value,u);if(null===C){null===g&&(g=v);break}e&&g&&null===C.alternate&&t(r,g),s=i(C,s,y),null===p?c=C:p.sibling=C,p=C,g=v}if(m.done)return n(r,g),c;if(null===g){for(;!m.done;y++,m=l.next())null!==(m=d(r,m.value,u))&&(s=i(m,s,y),null===p?c=m:p.sibling=m,p=m);return c}for(g=o(r,g);!m.done;y++,m=l.next())null!==(m=f(g,r,y,m.value,u))&&(e&&null!==m.alternate&&g.delete(null===m.key?y:m.key),s=i(m,s,y),null===p?c=m:p.sibling=m,p=m);return e&&g.forEach((function(e){return t(r,e)})),c}return function(e,o,i,l){var u="object"===typeof i&&null!==i&&i.type===ne&&null===i.key;u&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case ee:e:{for(c=i.key,u=o;null!==u;){if(u.key===c){switch(u.tag){case 7:if(i.type===ne){n(e,u.sibling),(o=r(u,i.props.children)).return=e,e=o;break e}break;default:if(u.elementType===i.type){n(e,u.sibling),(o=r(u,i.props)).ref=Ei(e,u,i),o.return=e,e=o;break e}}n(e,u);break}t(e,u),u=u.sibling}i.type===ne?((o=Pl(i.props.children,e.mode,l,i.key)).return=e,e=o):((l=Tl(i.type,i.key,i.props,null,e.mode,l)).ref=Ei(e,o,i),l.return=e,e=l)}return s(e);case te:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Al(i,e.mode,l)).return=e,e=o}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=Dl(i,e.mode,l)).return=e,e=o),s(e);if(bi(i))return g(e,o,i,l);if(ge(i))return y(e,o,i,l);if(c&&_i(e,i),"undefined"===typeof i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,o)}}var Ri=Oi(!0),Si=Oi(!1),Ti={},Pi={current:Ti},Di={current:Ti},Ai={current:Ti};function Ni(e){if(e===Ti)throw Error(a(174));return e}function Ii(e,t){switch(cr(Ai,t),cr(Di,e),cr(Pi,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ur(Pi),cr(Pi,t)}function xi(){ur(Pi),ur(Di),ur(Ai)}function Fi(e){Ni(Ai.current);var t=Ni(Pi.current),n=Le(t,e.type);t!==n&&(cr(Di,e),cr(Pi,n))}function ki(e){Di.current===e&&(ur(Pi),ur(Di))}var Mi={current:0};function Li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.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 Gi(e,t){return{responder:e,props:t}}var Wi=X.ReactCurrentDispatcher,Vi=X.ReactCurrentBatchConfig,Hi=0,ji=null,Bi=null,Ui=null,zi=!1;function Yi(){throw Error(a(321))}function qi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Go(e[n],t[n]))return!1;return!0}function Ki(e,t,n,o,r,i){if(Hi=i,ji=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Wi.current=null===e||null===e.memoizedState?va:ma,e=n(o,r),t.expirationTime===Hi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Ui=Bi=null,t.updateQueue=null,Wi.current=Ca,e=n(o,r)}while(t.expirationTime===Hi)}if(Wi.current=ya,t=null!==Bi&&null!==Bi.next,Hi=0,Ui=Bi=ji=null,zi=!1,t)throw Error(a(300));return e}function Qi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ui?ji.memoizedState=Ui=e:Ui=Ui.next=e,Ui}function Xi(){if(null===Bi){var e=ji.alternate;e=null!==e?e.memoizedState:null}else e=Bi.next;var t=null===Ui?ji.memoizedState:Ui.next;if(null!==t)Ui=t,Bi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Bi=e).memoizedState,baseState:Bi.baseState,baseQueue:Bi.baseQueue,queue:Bi.queue,next:null},null===Ui?ji.memoizedState=Ui=e:Ui=Ui.next=e}return Ui}function $i(e,t){return"function"===typeof t?t(e):t}function Ji(e){var t=Xi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var o=Bi,r=o.baseQueue,i=n.pending;if(null!==i){if(null!==r){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(null!==r){r=r.next,o=o.baseState;var l=s=i=null,u=r;do{var c=u.expirationTime;if(c<Hi){var p={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=p,i=o):l=l.next=p,c>ji.expirationTime&&(ji.expirationTime=c,al(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),il(c,u.suspenseConfig),o=u.eagerReducer===e?u.eagerState:e(o,u.action);u=u.next}while(null!==u&&u!==r);null===l?i=o:l.next=s,Go(o,t.memoizedState)||(Aa=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=l,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Zi(e){var t=Xi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{i=e(i,s.action),s=s.next}while(s!==r);Go(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function ea(e){var t=Qi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:$i,lastRenderedState:e}).dispatch=ga.bind(null,ji,e),[t.memoizedState,e]}function ta(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=ji.updateQueue)?(t={lastEffect:null},ji.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function na(){return Xi().memoizedState}function oa(e,t,n,o){var r=Qi();ji.effectTag|=e,r.memoizedState=ta(1|t,n,void 0,void 0===o?null:o)}function ra(e,t,n,o){var r=Xi();o=void 0===o?null:o;var i=void 0;if(null!==Bi){var a=Bi.memoizedState;if(i=a.destroy,null!==o&&qi(o,a.deps))return void ta(t,n,i,o)}ji.effectTag|=e,r.memoizedState=ta(1|t,n,i,o)}function ia(e,t){return oa(516,4,e,t)}function aa(e,t){return ra(516,4,e,t)}function sa(e,t){return ra(4,2,e,t)}function la(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ua(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ra(4,2,la.bind(null,t,e),n)}function ca(){}function pa(e,t){return Qi().memoizedState=[e,void 0===t?null:t],e}function da(e,t){var n=Xi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&qi(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function ha(e,t){var n=Xi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&qi(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function fa(e,t,n){var o=Hr();Br(98>o?98:o,(function(){e(!0)})),Br(97<o?97:o,(function(){var o=Vi.suspense;Vi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Vi.suspense=o}}))}function ga(e,t,n){var o=Ys(),r=hi.suspense;r={expirationTime:o=qs(o,e,r),suspenseConfig:r,action:n,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===ji||null!==i&&i===ji)zi=!0,r.expirationTime=Hi,ji.expirationTime=Hi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(r.eagerReducer=i,r.eagerState=s,Go(s,a))return}catch(l){}Ks(e,o)}}var ya={readContext:ri,useCallback:Yi,useContext:Yi,useEffect:Yi,useImperativeHandle:Yi,useLayoutEffect:Yi,useMemo:Yi,useReducer:Yi,useRef:Yi,useState:Yi,useDebugValue:Yi,useResponder:Yi,useDeferredValue:Yi,useTransition:Yi},va={readContext:ri,useCallback:pa,useContext:ri,useEffect:ia,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,oa(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=Qi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Qi();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ga.bind(null,ji,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Qi().memoizedState=e},useState:ea,useDebugValue:ca,useResponder:Gi,useDeferredValue:function(e,t){var n=ea(e),o=n[0],r=n[1];return ia((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{r(e)}finally{Vi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[pa(fa.bind(null,t,e),[t,e]),n]}},ma={readContext:ri,useCallback:da,useContext:ri,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:ha,useReducer:Ji,useRef:na,useState:function(){return Ji($i)},useDebugValue:ca,useResponder:Gi,useDeferredValue:function(e,t){var n=Ji($i),o=n[0],r=n[1];return aa((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{r(e)}finally{Vi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Ji($i),n=t[0];return t=t[1],[da(fa.bind(null,t,e),[t,e]),n]}},Ca={readContext:ri,useCallback:da,useContext:ri,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:ha,useReducer:Zi,useRef:na,useState:function(){return Zi($i)},useDebugValue:ca,useResponder:Gi,useDeferredValue:function(e,t){var n=Zi($i),o=n[0],r=n[1];return aa((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{r(e)}finally{Vi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Zi($i),n=t[0];return t=t[1],[da(fa.bind(null,t,e),[t,e]),n]}},wa=null,ba=null,Ea=!1;function _a(e,t){var n=Ol(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.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 Ra(e){if(Ea){var t=ba;if(t){var n=t;if(!Oa(e,t)){if(!(t=bn(n.nextSibling))||!Oa(e,t))return e.effectTag=-1025&e.effectTag|2,Ea=!1,void(wa=e);_a(wa,n)}wa=e,ba=bn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ea=!1,wa=e}}function Sa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Ta(e){if(e!==wa)return!1;if(!Ea)return Sa(e),Ea=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!mn(t,e.memoizedProps))for(t=ba;t;)_a(e,t),t=bn(t.nextSibling);if(Sa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ba=bn(e.nextSibling);break e}t--}
2else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ba=null}}else ba=wa?bn(e.stateNode.nextSibling):null;return!0}function Pa(){ba=wa=null,Ea=!1}var Da=X.ReactCurrentOwner,Aa=!1;function Na(e,t,n,o){t.child=null===e?Si(t,null,n,o):Ri(t,e.child,n,o)}function Ia(e,t,n,o,r){n=n.render;var i=t.ref;return oi(t,r),o=Ki(e,t,n,o,i,r),null===e||Aa?(t.effectTag|=1,Na(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ka(e,t,r))}function xa(e,t,n,o,r,i){if(null===e){var a=n.type;return"function"!==typeof a||Rl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tl(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,o,r,i))}return a=e.child,r<i&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:Vo)(r,o)&&e.ref===t.ref)?Ka(e,t,i):(t.effectTag|=1,(e=Sl(a,o)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,o,r,i){return null!==e&&Vo(e.memoizedProps,o)&&e.ref===t.ref&&(Aa=!1,r<i)?(t.expirationTime=e.expirationTime,Ka(e,t,i)):Ma(e,t,n,o,i)}function ka(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ma(e,t,n,o,r){var i=yr(n)?fr:dr.current;return i=gr(t,i),oi(t,r),n=Ki(e,t,n,o,i,r),null===e||Aa?(t.effectTag|=1,Na(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ka(e,t,r))}function La(e,t,n,o,r){if(yr(n)){var i=!0;wr(t)}else i=!1;if(oi(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),mi(t,n,o),wi(t,n,o,r),o=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=ri(u):u=gr(t,u=yr(n)?fr:dr.current);var c=n.getDerivedStateFromProps,p="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;p||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==o||l!==u)&&Ci(t,a,o,u),ii=!1;var d=t.memoizedState;a.state=d,pi(t,o,a,r),l=t.memoizedState,s!==o||d!==l||hr.current||ii?("function"===typeof c&&(gi(t,n,c,o),l=t.memoizedState),(s=ii||vi(t,n,s,o,d,l,u))?(p||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=l),a.props=o,a.state=l,a.context=u,o=s):("function"===typeof a.componentDidMount&&(t.effectTag|=4),o=!1)}else a=t.stateNode,si(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Qr(t.type,s),l=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=ri(u):u=gr(t,u=yr(n)?fr:dr.current),(p="function"===typeof(c=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==o||l!==u)&&Ci(t,a,o,u),ii=!1,l=t.memoizedState,a.state=l,pi(t,o,a,r),d=t.memoizedState,s!==o||l!==d||hr.current||ii?("function"===typeof c&&(gi(t,n,c,o),d=t.memoizedState),(c=ii||vi(t,n,s,o,l,d,u))?(p||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(o,d,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,d,u)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=d),a.props=o,a.state=d,a.context=u,o=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),o=!1);return Ga(e,t,n,o,i,r)}function Ga(e,t,n,o,r,i){ka(e,t);var a=0!==(64&t.effectTag);if(!o&&!a)return r&&br(t,n,!1),Ka(e,t,i);o=t.stateNode,Da.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&a?(t.child=Ri(t,e.child,null,i),t.child=Ri(t,null,s,i)):Na(e,t,s,i),t.memoizedState=o.state,r&&br(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?mr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mr(0,t.context,!1),Ii(e,t.containerInfo)}var Va,Ha,ja,Ba={dehydrated:null,retryTime:0};function Ua(e,t,n){var o,r=t.mode,i=t.pendingProps,a=Mi.current,s=!1;if((o=0!==(64&t.effectTag))||(o=0!==(2&a)&&(null===e||null!==e.memoizedState)),o?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),cr(Mi,1&a),null===e){if(void 0!==i.fallback&&Ra(t),s){if
vendor: 16,867 bytes, line 2
2(s=i.fallback,(i=Pl(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(n=Pl(s,r,n,null)).return=t,i.sibling=n,t.memoizedState=Ba,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=Si(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,s){if(i=i.fallback,(n=Sl(e,e.pendingProps)).return=t,0===(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(r=Sl(r,i)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=Ba,t.child=n,r}return n=Ri(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=Pl(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(n=Pl(s,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ba,t.child=i,n}return t.memoizedState=null,t.child=Ri(t,e,i.children,n)}function za(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ni(e.return,t)}function Ya(e,t,n,o,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailExpiration:0,tailMode:r,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=o,a.tail=n,a.tailExpiration=0,a.tailMode=r,a.lastEffect=i)}function qa(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(Na(e,t,o.children,n),0!==(2&(o=Mi.current)))o=1&o|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&&za(e,n);else if(19===e.tag)za(e,n);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}o&=1}if(cr(Mi,o),0===(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ya(t,!1,r,n,i,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Li(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ya(t,!0,n,null,i,t.lastEffect);break;case"together":Ya(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){null!==e&&(t.dependencies=e.dependencies);var o=t.expirationTime;if(0!==o&&al(o),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Sl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Sl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qa(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Xa(e,t,n){var o=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 yr(t.type)&&vr(),null;case 3:return xi(),ur(hr),ur(dr),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ta(t)||(t.effectTag|=4),null;case 5:ki(t),n=Ni(Ai.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ha(e,t,i,o,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!o){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ni(Pi.current),Ta(t)){o=t.stateNode,i=t.type;var s=t.memoizedProps;switch(o[On]=t,o[Rn]=s,i){case"iframe":case"object":case"embed":qt("load",o);break;case"video":case"audio":for(e=0;e<Xe.length;e++)qt(Xe[e],o);break;case"source":qt("error",o);break;case"img":case"image":case"link":qt("error",o),qt("load",o);break;case"form":qt("reset",o),qt("submit",o);break;case"details":qt("toggle",o);break;case"input":_e(o,s),qt("invalid",o),ln(n,"onChange");break;case"select":o._wrapperState={wasMultiple:!!s.multiple},qt("invalid",o),ln(n,"onChange");break;case"textarea":Ne(o,s),qt("invalid",o),ln(n,"onChange")}for(var l in rn(i,s),e=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"===typeof u?o.textContent!==u&&(e=["children",u]):"number"===typeof u&&o.textContent!==""+u&&(e=["children",""+u]):O.hasOwnProperty(l)&&null!=u&&ln(n,l)}switch(i){case"input":we(o),Se(o,s,!0);break;case"textarea":we(o),xe(o);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(o.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Me(i)),e===sn?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof o.is?e=l.createElement(i,{is:o.is}):(e=l.createElement(i),"select"===i&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,i),e[On]=t,e[Rn]=o,Va(e,t),t.stateNode=e,l=an(i,o),i){case"iframe":case"object":case"embed":qt("load",e),u=o;break;case"video":case"audio":for(u=0;u<Xe.length;u++)qt(Xe[u],e);u=o;break;case"source":qt("error",e),u=o;break;case"img":case"image":case"link":qt("error",e),qt("load",e),u=o;break;case"form":qt("reset",e),qt("submit",e),u=o;break;case"details":qt("toggle",e),u=o;break;case"input":_e(e,o),u=Ee(e,o),qt("invalid",e),ln(n,"onChange");break;case"option":u=Pe(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},u=r({},o,{value:void 0}),qt("invalid",e),ln(n,"onChange");break;case"textarea":Ne(e,o),u=Ae(e,o),qt("invalid",e),ln(n,"onChange");break;default:u=o}rn(i,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var p=c[s];"style"===s?nn(e,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&We(e,p):"children"===s?"string"===typeof p?("textarea"!==i||""!==p)&&Ve(e,p):"number"===typeof p&&Ve(e,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(O.hasOwnProperty(s)?null!=p&&ln(n,s):null!=p&&$(e,s,p,l))}switch(i){case"input":we(e),Se(e,o,!1);break;case"textarea":we(e),xe(e);break;case"option":null!=o.value&&e.setAttribute("value",""+me(o.value));break;case"select":e.multiple=!!o.multiple,null!=(n=o.value)?De(e,!!o.multiple,n,!1):null!=o.defaultValue&&De(e,!!o.multiple,o.defaultValue,!0);break;default:"function"===typeof u.onClick&&(e.onclick=un)}vn(i,o)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)ja(0,t,e.memoizedProps,o);else{if("string"!==typeof o&&null===t.stateNode)throw Error(a(166));n=Ni(Ai.current),Ni(Pi.current),Ta(t)?(n=t.stateNode,o=t.memoizedProps,n[On]=t,n.nodeValue!==o&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[On]=t,t.stateNode=n)}return null;case 13:return ur(Mi),o=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==o,o=!1,null===e?void 0!==t.memoizedProps.fallback&&Ta(t):(o=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!o&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Mi.current)?Ts===ws&&(Ts=bs):(Ts!==ws&&Ts!==bs||(Ts=Es),0!==Is&&null!==Os&&(xl(Os,Ss),Fl(Os,Is)))),(n||o)&&(t.effectTag|=4),null);case 4:return xi(),null;case 10:return ti(t),null;case 17:return yr(t.type)&&vr(),null;case 19:if(ur(Mi),null===(o=t.memoizedState))return null;if(i=0!==(64&t.effectTag),null===(s=o.rendering)){if(i)Qa(o,!1);else if(Ts!==ws||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Li(s))){for(t.effectTag|=64,Qa(o,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=t.child;null!==o;)s=n,(i=o).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),o=o.sibling;return cr(Mi,1&Mi.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=Li(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Qa(o,!0),null===o.tail&&"hidden"===o.tailMode&&!s.alternate)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*Vr()-o.renderingStartTime>o.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Qa(o,!1),t.expirationTime=t.childExpirationTime=n-1);o.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=o.last)?n.sibling=s:t.child=s,o.last=s)}return null!==o.tail?(0===o.tailExpiration&&(o.tailExpiration=Vr()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=Vr(),n.sibling=null,t=Mi.current,cr(Mi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function $a(e){switch(e.tag){case 1:yr(e.type)&&vr();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(xi(),ur(hr),ur(dr),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return ki(e),null;case 13:return ur(Mi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ur(Mi),null;case 4:return xi(),null;case 10:return ti(e),null;default:return null}}function Ja(e,t){return{value:e,source:t,stack:ve(t)}}Va=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,o,i){var a=e.memoizedProps;if(a!==o){var s,l,u=t.stateNode;switch(Ni(Pi.current),e=null,n){case"input":a=Ee(u,a),o=Ee(u,o),e=[];break;case"option":a=Pe(u,a),o=Pe(u,o),e=[];break;case"select":a=r({},a,{value:void 0}),o=r({},o,{value:void 0}),e=[];break;case"textarea":a=Ae(u,a),o=Ae(u,o),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof o.onClick&&(u.onclick=un)}for(s in rn(n,o),n=null,a)if(!o.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(O.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in o){var c=o[s];if(u=null!=a?a[s]:void 0,o.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(s,c)):"children"===s?u===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(O.hasOwnProperty(s)?(null!=c&&ln(i,s),e||u===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},ja=function(e,t,n,o){n!==o&&(t.effectTag|=4)};var Za="function"===typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=ve(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type);try{console.error(t)}catch(r){setTimeout((function(){throw r}))}}function ts(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){ml(e,n)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qr(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,void 0!==o&&o()}n=n.next}while(n!==t)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function is(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void rs(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var o=n.elementType===n.type?t.memoizedProps:Qr(n.type,t.memoizedProps);e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Mt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"===typeof El&&El(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var o=e.next;Br(97<n?97:n,(function(){var e=o;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(i){ml(r,i)}}e=e.next}while(e!==o)}))}break;case 1:ts(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){ml(e,n)}}(t,n);break;case 5:ts(t);break;case 4:cs(e,t,n)}}function ss(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&&ss(t)}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:{for(var t=e.return;null!==t;){if(ls(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ve(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}o?function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===o.nodeType?o.parentNode.insertBefore(t,n):o.insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null!==(o=o._reactRootContainer)&&void 0!==o||null!==n.onclick||(n.onclick=un));else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t):function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t)}function cs(e,t,n){for(var o,r,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(o=s.stateNode,s.tag){case 5:r=!1;break e;case 3:case 4:o=o.containerInfo,r=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var l=e,u=i,c=n,p=u;;)if(as(l,p,c),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===u)break e;for(;null===p.sibling;){if(null===p.return||p.return===u)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r?(l=o,u=i.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):o.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){o=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(as(e,i,n),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 ps(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void os(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps,r=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Rn]=o,"input"===e&&"radio"===o.type&&null!=o.name&&Oe(n,o),an(e,r),t=an(e,o),r=0;r<i.length;r+=2){var s=i[r],l=i[r+1];
vendor: 11,550 bytes, line 2
2"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?We(n,l):"children"===s?Ve(n,l):$(n,s,l,t)}switch(e){case"input":Re(n,o);break;case"textarea":Ie(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(e=o.value)?De(n,!!o.multiple,e,!1):t!==!!o.multiple&&(null!=o.defaultValue?De(n,!!o.multiple,o.defaultValue,!0):De(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Mt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?o=!1:(o=!0,n=t.child,Fs=Vr()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,o?"function"===typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=void 0!==(r=e.memoizedProps.style)&&null!==r&&r.hasOwnProperty("display")?r.display:null,i.style.display=tn("display",r));else if(6===e.tag)e.stateNode.nodeValue=o?"":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===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ds(t);case 19:return void ds(t);case 17:return}throw Error(a(163))}function ds(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var o=wl.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=li(n,null)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ms||(Ms=!0,Ls=o),es(e,t)},n}function gs(e,t,n){(n=li(n,null)).tag=3;var o=e.type.getDerivedStateFromError;if("function"===typeof o){var r=t.value;n.payload=function(){return es(e,t),o(r)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof o&&(null===Gs?Gs=new Set([this]):Gs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var ys,vs=Math.ceil,ms=X.ReactCurrentDispatcher,Cs=X.ReactCurrentOwner,ws=0,bs=3,Es=4,_s=0,Os=null,Rs=null,Ss=0,Ts=ws,Ps=null,Ds=1073741823,As=1073741823,Ns=null,Is=0,xs=!1,Fs=0,ks=null,Ms=!1,Ls=null,Gs=null,Ws=!1,Vs=null,Hs=90,js=null,Bs=0,Us=null,zs=0;function Ys(){return 0!==(48&_s)?1073741821-(Vr()/10|0):0!==zs?zs:zs=1073741821-(Vr()/10|0)}function qs(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var o=Hr();if(0===(4&t))return 99===o?1073741823:1073741822;if(0!==(16&_s))return Ss;if(null!==n)e=Kr(e,0|n.timeoutMs||5e3,250);else switch(o){case 99:e=1073741823;break;case 98:e=Kr(e,150,100);break;case 97:case 96:e=Kr(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Os&&e===Ss&&--e,e}function Ks(e,t){if(50<Bs)throw Bs=0,Us=null,Error(a(185));if(null!==(e=Qs(e,t))){var n=Hr();1073741823===t?0!==(8&_s)&&0===(48&_s)?Zs(e):($s(e),0===_s&&Yr()):$s(e),0===(4&_s)||98!==n&&99!==n||(null===js?js=new Map([[e,t]]):(void 0===(n=js.get(e))||n>t)&&js.set(e,t))}}function Qs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var o=e.return,r=null;if(null===o&&3===e.tag)r=e.stateNode;else for(;null!==o;){if(n=o.alternate,o.childExpirationTime<t&&(o.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===o.return&&3===o.tag){r=o.stateNode;break}o=o.return}return null!==r&&(Os===r&&(al(t),Ts===Es&&xl(r,Ss)),Fl(r,t)),r}function Xs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Il(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function $s(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=zr(Zs.bind(null,e));else{var t=Xs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var o=Ys();if(1073741823===t?o=99:1===t||2===t?o=95:o=0>=(o=10*(1073741821-t)-10*(1073741821-o))?99:250>=o?98:5250>=o?97:95,null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=o)return;n!==xr&&Or(n)}e.callbackExpirationTime=t,e.callbackPriority=o,t=1073741823===t?zr(Zs.bind(null,e)):Ur(o,Js.bind(null,e),{timeout:10*(1073741821-t)-Vr()}),e.callbackNode=t}}}function Js(e,t){if(zs=0,t)return kl(e,t=Ys()),$s(e),null;var n=Xs(e);if(0!==n){if(t=e.callbackNode,0!==(48&_s))throw Error(a(327));if(gl(),e===Os&&n===Ss||nl(e,n),null!==Rs){var o=_s;_s|=16;for(var r=rl();;)try{ll();break}catch(l){ol(e,l)}if(ei(),_s=o,ms.current=r,1===Ts)throw t=Ps,nl(e,n),xl(e,n),$s(e),t;if(null===Rs)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=Ts,Os=null,o){case ws:case 1:throw Error(a(345));case 2:kl(e,2<n?2:n);break;case bs:if(xl(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(r)),1073741823===Ds&&10<(r=Fs+500-Vr())){if(xs){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(i=Xs(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=Cn(dl.bind(null,e),r);break}dl(e);break;case Es:if(xl(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(r)),xs&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(r=Xs(e))&&r!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==As?o=10*(1073741821-As)-Vr():1073741823===Ds?o=0:(o=10*(1073741821-Ds)-5e3,0>(o=(r=Vr())-o)&&(o=0),(n=10*(1073741821-n)-r)<(o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*vs(o/1960))-o)&&(o=n)),10<o){e.timeoutHandle=Cn(dl.bind(null,e),o);break}dl(e);break;case 5:if(1073741823!==Ds&&null!==Ns){i=Ds;var s=Ns;if(0>=(o=0|s.busyMinDurationMs)?o=0:(r=0|s.busyDelayMs,o=(i=Vr()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=r?0:r+o-i),10<o){xl(e,n),e.timeoutHandle=Cn(dl.bind(null,e),o);break}}dl(e);break;default:throw Error(a(329))}if($s(e),e.callbackNode===t)return Js.bind(null,e)}}return null}function Zs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&_s))throw Error(a(327));if(gl(),e===Os&&t===Ss||nl(e,t),null!==Rs){var n=_s;_s|=16;for(var o=rl();;)try{sl();break}catch(r){ol(e,r)}if(ei(),_s=n,ms.current=o,1===Ts)throw n=Ps,nl(e,t),xl(e,t),$s(e),n;if(null!==Rs)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Os=null,dl(e),$s(e)}return null}function el(e,t){var n=_s;_s|=1;try{return e(t)}finally{0===(_s=n)&&Yr()}}function tl(e,t){var n=_s;_s&=-2,_s|=8;try{return e(t)}finally{0===(_s=n)&&Yr()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Rs)for(n=Rs.return;null!==n;){var o=n;switch(o.tag){case 1:null!==(o=o.type.childContextTypes)&&void 0!==o&&vr();break;case 3:xi(),ur(hr),ur(dr);break;case 5:ki(o);break;case 4:xi();break;case 13:case 19:ur(Mi);break;case 10:ti(o)}n=n.return}Os=e,Rs=Sl(e.current,null),Ss=t,Ts=ws,Ps=null,As=Ds=1073741823,Ns=null,Is=0,xs=!1}function ol(e,t){for(;;){try{if(ei(),Wi.current=ya,zi)for(var n=ji.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}if(Hi=0,Ui=Bi=ji=null,zi=!1,null===Rs||null===Rs.return)return Ts=1,Ps=t,Rs=null;e:{var r=e,i=Rs.return,a=Rs,s=t;if(t=Ss,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var l=s;if(0===(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!==(1&Mi.current),p=i;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var f=p.memoizedProps;d=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!c)}}if(d){var g=p.updateQueue;if(null===g){var y=new Set;y.add(l),p.updateQueue=y}else g.add(l);if(0===(2&p.mode)){if(p.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=li(1073741823,null);v.tag=2,ui(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var m=r.pingCache;if(null===m?(m=r.pingCache=new hs,s=new Set,m.set(l,s)):void 0===(s=m.get(l))&&(s=new Set,m.set(l,s)),!s.has(a)){s.add(a);var C=Cl.bind(null,r,l,a);l.then(C,C)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);s=Error((ye(a.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."+ve(a))}5!==Ts&&(Ts=2),s=Ja(s,a),p=i;do{switch(p.tag){case 3:l=s,p.effectTag|=4096,p.expirationTime=t,ci(p,fs(p,l,t));break e;case 1:l=s;var w=p.type,b=p.stateNode;if(0===(64&p.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Gs||!Gs.has(b)))){p.effectTag|=4096,p.expirationTime=t,ci(p,gs(p,l,t));break e}}p=p.return}while(null!==p)}Rs=cl(Rs)}catch(E){t=E;continue}break}}function rl(){var e=ms.current;return ms.current=ya,null===e?ya:e}function il(e,t){e<Ds&&2<e&&(Ds=e),null!==t&&e<As&&2<e&&(As=e,Ns=t)}function al(e){e>Is&&(Is=e)}function sl(){for(;null!==Rs;)Rs=ul(Rs)}function ll(){for(;null!==Rs&&!Fr();)Rs=ul(Rs)}function ul(e){var t=ys(e.alternate,e,Ss);return e.memoizedProps=e.pendingProps,null===t&&(t=cl(e)),Cs.current=null,t}function cl(e){Rs=e;do{var t=Rs.alternate;if(e=Rs.return,0===(2048&Rs.effectTag)){if(t=Xa(t,Rs,Ss),1===Ss||1!==Rs.childExpirationTime){for(var n=0,o=Rs.child;null!==o;){var r=o.expirationTime,i=o.childExpirationTime;r>n&&(n=r),i>n&&(n=i),o=o.sibling}Rs.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Rs.firstEffect),null!==Rs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Rs.firstEffect),e.lastEffect=Rs.lastEffect),1<Rs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Rs:e.firstEffect=Rs,e.lastEffect=Rs))}else{if(null!==(t=$a(Rs)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Rs.sibling))return t;Rs=e}while(null!==Rs);return Ts===ws&&(Ts=5),null}function pl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dl(e){var t=Hr();return Br(99,hl.bind(null,e,t)),null}function hl(e,t){do{gl()}while(null!==Vs);if(0!==(48&_s))throw Error(a(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=pl(n);if(e.firstPendingTime=r,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Os&&(Rs=Os=null,Ss=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var i=_s;_s|=32,Cs.current=null,gn=Yt;var s=hn();if(fn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch(S){l=null;break e}var d=0,h=-1,f=-1,g=0,y=0,v=s,m=null;t:for(;;){for(var C;
vendor: 14,287 bytes, line 2
2v!==l||0!==c&&3!==v.nodeType||(h=d+c),v!==p||0!==u&&3!==v.nodeType||(f=d+u),3===v.nodeType&&(d+=v.nodeValue.length),null!==(C=v.firstChild);)m=v,v=C;for(;;){if(v===s)break t;if(m===l&&++g===c&&(h=d),m===p&&++y===u&&(f=d),null!==(C=v.nextSibling))break;m=(v=m).parentNode}v=C}l=-1===h||-1===f?null:{start:h,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;yn={activeElementDetached:null,focusedElem:s,selectionRange:l},Yt=!1,ks=r;do{try{fl()}catch(S){if(null===ks)throw Error(a(330));ml(ks,S),ks=ks.nextEffect}}while(null!==ks);ks=r;do{try{for(s=e,l=t;null!==ks;){var w=ks.effectTag;if(16&w&&Ve(ks.stateNode,""),128&w){var b=ks.alternate;if(null!==b){var E=b.ref;null!==E&&("function"===typeof E?E(null):E.current=null)}}switch(1038&w){case 2:us(ks),ks.effectTag&=-3;break;case 6:us(ks),ks.effectTag&=-3,ps(ks.alternate,ks);break;case 1024:ks.effectTag&=-1025;break;case 1028:ks.effectTag&=-1025,ps(ks.alternate,ks);break;case 4:ps(ks.alternate,ks);break;case 8:cs(s,c=ks,l),ss(c)}ks=ks.nextEffect}}catch(S){if(null===ks)throw Error(a(330));ml(ks,S),ks=ks.nextEffect}}while(null!==ks);if(E=yn,b=hn(),w=E.focusedElem,l=E.selectionRange,b!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==l&&fn(w)&&(b=l.start,void 0===(E=l.end)&&(E=b),"selectionStart"in w?(w.selectionStart=b,w.selectionEnd=Math.min(E,w.value.length)):(E=(b=w.ownerDocument||document)&&b.defaultView||window).getSelection&&(E=E.getSelection(),c=w.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!E.extend&&s>l&&(c=l,l=s,s=c),c=dn(w,s),p=dn(w,l),c&&p&&(1!==E.rangeCount||E.anchorNode!==c.node||E.anchorOffset!==c.offset||E.focusNode!==p.node||E.focusOffset!==p.offset)&&((b=b.createRange()).setStart(c.node,c.offset),E.removeAllRanges(),s>l?(E.addRange(b),E.extend(p.node,p.offset)):(b.setEnd(p.node,p.offset),E.addRange(b))))),b=[];for(E=w;E=E.parentNode;)1===E.nodeType&&b.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<b.length;w++)(E=b[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Yt=!!gn,yn=gn=null,e.current=n,ks=r;do{try{for(w=e;null!==ks;){var _=ks.effectTag;if(36&_&&is(w,ks.alternate,ks),128&_){b=void 0;var O=ks.ref;if(null!==O){var R=ks.stateNode;switch(ks.tag){case 5:b=R;break;default:b=R}"function"===typeof O?O(b):O.current=b}}ks=ks.nextEffect}}catch(S){if(null===ks)throw Error(a(330));ml(ks,S),ks=ks.nextEffect}}while(null!==ks);ks=null,kr(),_s=i}else e.current=n;if(Ws)Ws=!1,Vs=e,Hs=t;else for(ks=r;null!==ks;)t=ks.nextEffect,ks.nextEffect=null,ks=t;if(0===(t=e.firstPendingTime)&&(Gs=null),1073741823===t?e===Us?Bs++:(Bs=0,Us=e):Bs=0,"function"===typeof bl&&bl(n.stateNode,o),$s(e),Ms)throw Ms=!1,e=Ls,Ls=null,e;return 0!==(8&_s)?null:(Yr(),null)}function fl(){for(;null!==ks;){var e=ks.effectTag;0!==(256&e)&&ns(ks.alternate,ks),0===(512&e)||Ws||(Ws=!0,Ur(97,(function(){return gl(),null}))),ks=ks.nextEffect}}function gl(){if(90!==Hs){var e=97<Hs?97:Hs;return Hs=90,Br(e,yl)}}function yl(){if(null===Vs)return!1;var e=Vs;if(Vs=null,0!==(48&_s))throw Error(a(331));var t=_s;for(_s|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:os(5,n),rs(5,n)}}catch(o){if(null===e)throw Error(a(330));ml(e,o)}n=e.nextEffect,e.nextEffect=null,e=n}return _s=t,Yr(),!0}function vl(e,t,n){ui(e,t=fs(e,t=Ja(n,t),1073741823)),null!==(e=Qs(e,1073741823))&&$s(e)}function ml(e,t){if(3===e.tag)vl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vl(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof o.componentDidCatch&&(null===Gs||!Gs.has(o))){ui(n,e=gs(n,e=Ja(t,e),1073741823)),null!==(n=Qs(n,1073741823))&&$s(n);break}}n=n.return}}function Cl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),Os===e&&Ss===n?Ts===Es||Ts===bs&&1073741823===Ds&&Vr()-Fs<500?nl(e,Ss):xs=!0:Il(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,$s(e)))}function wl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=qs(t=Ys(),e,null)),null!==(e=Qs(e,t))&&$s(e)}ys=function(e,t,n){var o=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||hr.current)Aa=!0;else{if(o<n){switch(Aa=!1,t.tag){case 3:Wa(t),Pa();break;case 5:if(Fi(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:yr(t.type)&&wr(t);break;case 4:Ii(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value,r=t.type._context,cr(Xr,r._currentValue),r._currentValue=o;break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Ua(e,t,n):(cr(Mi,1&Mi.current),null!==(t=Ka(e,t,n))?t.sibling:null);cr(Mi,1&Mi.current);break;case 19:if(o=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(o)return qa(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),cr(Mi,Mi.current),!o)return null}return Ka(e,t,n)}Aa=!1}}else Aa=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=gr(t,dr.current),oi(t,n),r=Ki(null,t,o,e,r,n),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,yr(o)){var i=!0;wr(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,ai(t);var s=o.getDerivedStateFromProps;"function"===typeof s&&gi(t,o,s,e),r.updater=yi,t.stateNode=r,r._reactInternalFiber=t,wi(t,o,e,n),t=Ga(null,t,o,!0,i,n)}else t.tag=0,Na(null,t,r,n),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 Rl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===le)return 11;if(e===pe)return 14}return 2}(r),e=Qr(r,e),i){case 0:t=Ma(null,t,r,e,n);break e;case 1:t=La(null,t,r,e,n);break e;case 11:t=Ia(null,t,r,e,n);break e;case 14:t=xa(null,t,r,Qr(r.type,e),o,n);break e}throw Error(a(306,r,""))}return t;case 0:return o=t.type,r=t.pendingProps,Ma(e,t,o,r=t.elementType===o?r:Qr(o,r),n);case 1:return o=t.type,r=t.pendingProps,La(e,t,o,r=t.elementType===o?r:Qr(o,r),n);case 3:if(Wa(t),o=t.updateQueue,null===e||null===o)throw Error(a(282));if(o=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,si(e,t),pi(t,o,null,n),(o=t.memoizedState.element)===r)Pa(),t=Ka(e,t,n);else{if((r=t.stateNode.hydrate)&&(ba=bn(t.stateNode.containerInfo.firstChild),wa=t,r=Ea=!0),r)for(n=Si(t,null,o,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Na(e,t,o,n),Pa();t=t.child}return t;case 5:return Fi(t),null===e&&Ra(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,s=r.children,mn(o,r)?s=null:null!==i&&mn(o,i)&&(t.effectTag|=16),ka(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Na(e,t,s,n),t=t.child),t;case 6:return null===e&&Ra(t),null;case 13:return Ua(e,t,n);case 4:return Ii(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ri(t,null,o,n):Na(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,Ia(e,t,o,r=t.elementType===o?r:Qr(o,r),n);case 7:return Na(e,t,t.pendingProps,n),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,r=t.pendingProps,s=t.memoizedProps,i=r.value;var l=t.type._context;if(cr(Xr,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=Go(l,i)?0:0|("function"===typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(s.children===r.children&&!hr.current){t=Ka(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===o&&0!==(c.observedBits&i)){1===l.tag&&((c=li(n,null)).tag=2,ui(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),ni(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Na(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,oi(t,n),o=o(r=ri(r,i.unstable_observedBits)),t.effectTag|=1,Na(e,t,o,n),t.child;case 14:return i=Qr(r=t.type,t.pendingProps),xa(e,t,r,i=Qr(r.type,i),o,n);case 15:return Fa(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Qr(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,yr(o)?(e=!0,wr(t)):e=!1,oi(t,n),mi(t,o,r),wi(t,o,r,n),Ga(null,t,o,!0,e,n);case 19:return qa(e,t,n)}throw Error(a(156,t.tag))};var bl=null,El=null;function _l(e,t,n,o){this.tag=e,this.key=n,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=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ol(e,t,n,o){return new _l(e,t,n,o)}function Rl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Sl(e,t){var n=e.alternate;return null===n?((n=Ol(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tl(e,t,n,o,r,i){var s=2;if(o=e,"function"===typeof e)Rl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case ne:return Pl(n.children,r,i,t);case se:s=8,r|=7;break;case oe:s=8,r|=1;break;case re:return(e=Ol(12,n,t,8|r)).elementType=re,e.type=re,e.expirationTime=i,e;case ue:return(e=Ol(13,n,t,r)).type=ue,e.elementType=ue,e.expirationTime=i,e;case ce:return(e=Ol(19,n,t,r)).elementType=ce,e.expirationTime=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case pe:s=14;break e;case de:s=16,o=null;break e;case he:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ol(s,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function Pl(e,t,n,o){return(e=Ol(7,e,o,t)).expirationTime=n,e}function Dl(e,t,n){return(e=Ol(6,e,null,t)).expirationTime=n,e}function Al(e,t,n){return(t=Ol(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nl(e,t,n){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=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Il(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function xl(e,t){var n=e.firstSuspendedTime,o=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(o>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Fl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function kl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ml(e,t,n,o){var r=t.current,i=Ys(),s=hi.suspense;i=qs(i,r,s);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(yr(u)){n=Cr(n,u,l);break e}}n=l}else n=pr;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),ui(r,t),Ks(r,i),i}function Ll(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Gl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Wl(e,t){Gl(e,t),(e=e.alternate)&&Gl(e,t)}function Vl(e,t,n){var o=new Nl(e,t,n=null!=n&&!0===n.hydrate),r=Ol(3,null,null,2===t?7:1===t?3:0);o.current=r,r.stateNode=o,ai(r),e[Sn]=o.current,n&&0!==t&&function(e,t){var n=Je(t);St.forEach((function(e){ft(e,t,n)})),Tt.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=o}function Hl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function jl(e,t,n,o,r){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof r){var s=r;r=function(){var e=Ll(a);s.call(e)}}Ml(t,a,e,r)}else{if(i=n._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 n;n=e.lastChild;)e.removeChild(n);return new Vl(e,0,t?{hydrate:!0}:void 0)}(n,o),a=i._internalRoot,"function"===typeof r){var l=r;r=function(){var e=Ll(a);l.call(e)}}tl((function(){Ml(t,a,e,r)}
2))}return Ll(a)}function Bl(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function Ul(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Hl(t))throw Error(a(200));return Bl(e,t,null,n)}Vl.prototype.render=function(e){Ml(e,this._internalRoot,null,null)},Vl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ml(null,e,null,(function(){t[Sn]=null}))},gt=function(e){if(13===e.tag){var t=Kr(Ys(),150,100);Ks(e,t),Wl(e,t)}},yt=function(e){13===e.tag&&(Ks(e,3),Wl(e,3))},vt=function(e){if(13===e.tag){var t=Ys();Ks(e,t=qs(t,e,null)),Wl(e,t)}},P=function(e,t,n){switch(t){case"input":if(Re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=An(o);if(!r)throw Error(a(90));be(o),Re(o,r)}}}break;case"textarea":Ie(e,n);break;case"select":null!=(t=n.value)&&De(e,!!n.multiple,t,!1)}},F=el,k=function(e,t,n,o,r){var i=_s;_s|=4;try{return Br(98,e.bind(null,t,n,o,r))}finally{0===(_s=i)&&Yr()}},M=function(){0===(49&_s)&&(function(){if(null!==js){var e=js;js=null,e.forEach((function(e,t){kl(t,e),$s(t)})),Yr()}}(),gl())},L=function(e,t){var n=_s;_s|=2;try{return e(t)}finally{0===(_s=n)&&Yr()}};var zl={Events:[Pn,Dn,An,S,_,Ln,function(e){rt(e,Mn)},I,x,$t,st,gl,{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 n=t.inject(e);bl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(o){}},El=function(e){try{t.onCommitFiberUnmount(n,e)}catch(o){}}}catch(o){}})(r({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Tn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zl,t.createPortal=Ul,t.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(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&_s))throw Error(a(187));var n=_s;_s|=1;try{return Br(99,e.bind(null,t))}finally{_s=n,Yr()}},t.hydrate=function(e,t,n){if(!Hl(t))throw Error(a(200));return jl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Hl(t))throw Error(a(200));return jl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Hl(e))throw Error(a(40));return!!e._reactRootContainer&&(tl((function(){jl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Sn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return Ul(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Hl(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return jl(e,t,n,!1,o)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(100)},function(e,t,n){"use strict";var o,r,i,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,u=null,c=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(o){throw setTimeout(e,0),o}},p=Date.now();t.unstable_now=function(){return Date.now()-p},o=function(e){null!==l?setTimeout(o,0,e):(l=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,f=window.setTimeout,g=window.clearTimeout;if("undefined"!==typeof console){var y=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 y&&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 d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var v=h.now();t.unstable_now=function(){return h.now()-v}}var m=!1,C=null,w=-1,b=5,E=0;a=function(){return t.unstable_now()>=E},s=function(){},t.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"):b=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,O=_.port2;_.port1.onmessage=function(){if(null!==C){var e=t.unstable_now();E=e+b;try{C(!0,e)?O.postMessage(null):(m=!1,C=null)}catch(n){throw O.postMessage(null),n}}else m=!1},o=function(e){C=e,m||(m=!0,O.postMessage(null))},r=function(e,n){w=f((function(){e(t.unstable_now())}),n)},i=function(){g(w),w=-1}}function R(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,r=e[o];if(!(void 0!==r&&0<P(r,t)))break e;e[o]=t,e[n]=r,n=o}}function S(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length;o<r;){var i=2*(o+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>P(a,n))void 0!==l&&0>P(l,a)?(e[o]=l,e[s]=n,o=s):(e[o]=a,e[i]=n,o=i);else{if(!(void 0!==l&&0>P(l,n)))break e;e[o]=l,e[s]=n,o=s}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var D=[],A=[],N=1,I=null,x=3,F=!1,k=!1,M=!1;function L(e){for(var t=S(A);null!==t;){if(null===t.callback)T(A);else{if(!(t.startTime<=e))break;T(A),t.sortIndex=t.expirationTime,R(D,t)}t=S(A)}}function G(e){if(M=!1,L(e),!k)if(null!==S(D))k=!0,o(W);else{var t=S(A);null!==t&&r(G,t.startTime-e)}}function W(e,n){k=!1,M&&(M=!1,i()),F=!0;var o=x;try{for(L(n),I=S(D);null!==I&&(!(I.expirationTime>n)||e&&!a());){var s=I.callback;if(null!==s){I.callback=null,x=I.priorityLevel;var l=s(I.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?I.callback=l:I===S(D)&&T(D),L(n)}else T(D);I=S(D)}if(null!==I)var u=!0;else{var c=S(A);null!==c&&r(G,c.startTime-n),u=!1}return u}finally{I=null,x=o,F=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){k||F||(k=!0,o(W))},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return S(D)},t.unstable_next=function(e){switch(x){case 1:case 2:case 3:var t=3;break;default:t=x}var n=x;x=t;try{return e()}finally{x=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=x;x=e;try{return t()}finally{x=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"===typeof a&&null!==a){var l=a.delay;l="number"===typeof l&&0<l?s+l:s,a="number"===typeof a.timeout?a.timeout:V(e)}else a=V(e),l=s;return e={id:N++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,R(A,e),null===S(D)&&e===S(A)&&(M?i():M=!0,r(G,l-s))):(e.sortIndex=a,R(D,e),k||F||(k=!0,o(W))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=S(D);return n!==I&&null!==I&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<I.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=x;return function(){var n=x;x=t;try{return e.apply(this,arguments)}finally{x=n}}}},,function(e,t,n){"use strict";n(103)},function(e,t,n){(function(e){(function(){var t,o=n(38).default,r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};var i=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof e&&e,t];for(var n=0;n<t.length;++n){var o=t[n];if(o&&o.Math==Math)return o}return globalThis}(this);function a(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function s(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:a(e)}}!function(e,t){if(t){var n=i;e=e.split(".");for(var o=0;o<e.length-1;o++){var a=e[o];a in n||(n[a]={}),n=n[a]}(t=t(o=n[e=e[e.length-1]]))!=o&&null!=t&&r(n,e,{configurable:!0,writable:!0,value:t})}}("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(n){t.reject(n)}}function n(){this.a=null}function o(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var r=i.setTimeout;n.prototype.c=function(e){r(e,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(o){this.f(o)}}}this.a=null},n.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(o){n||(n=!0,e.call(t,o))}}var t=this,n=!1;return{resolve:e(this.v),reject:e(this.g)}}
2,t.prototype.v=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.o(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.m(e):this.h(e)}},t.prototype.m=function(e){var t=void 0;try{t=e.then}catch(n){return void this.g(n)}"function"==typeof t?this.u(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)a.b(this.a[e]);this.a=null}};var a=new n;return t.prototype.o=function(e){var t=this.f();e.Pa(t.resolve,t.reject)},t.prototype.u=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(o){n.reject(o)}},t.prototype.then=function(e,n){function o(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(n){i(n)}}:t}var r,i,a=new t((function(e,t){r=e,i=t}));return this.Pa(o(e,r),o(n,i)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Pa=function(e,t){function n(){switch(o.b){case 1:e(o.c);break;case 2:t(o.c);break;default:throw Error("Unexpected state: "+o.b)}}var o=this;null==this.a?a.b(n):this.a.push(n)},t.resolve=o,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var r=s(e),i=r.next();!i.done;i=r.next())o(i.value).Pa(t,n)}))},t.all=function(e){var n=s(e),r=n.next();return r.done?o([]):new t((function(e,t){function i(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,o(r.value).Pa(i(a.length-1),t),r=n.next()}while(!r.done)}))},t}));var l=l||{},u=this||self,c=/^[\w+/_-]+[=]{0,2}$/,p=null;function d(){}function h(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&"undefined"!=typeof e.splice&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof e.call&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&"undefined"==typeof e.call)return"object";return t}function f(e){var t=h(e);return"array"==t||"object"==t&&"number"==typeof e.length}function g(e){return"function"==h(e)}function y(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function v(e){return Object.prototype.hasOwnProperty.call(e,m)&&e[m]||(e[m]=++C)}var m="closure_uid_"+(1e9*Math.random()>>>0),C=0;function w(e,t,n){return e.call.apply(e.bind,arguments)}function b(e,t,n){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,o),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function E(e,t,n){return(E=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w:b).apply(null,arguments)}function _(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var O=Date.now||function(){return+new Date};function R(e,t){function n(){}n.prototype=t.prototype,e.$a=t.prototype,e.prototype=new n,e.prototype.constructor=e}function S(e,t,n){this.code=D+e,this.message=t||A[e]||"",this.a=n||null}function T(e){var t=e&&e.code;return t?new S(t.substring(D.length),e.message,e.serverResponse):null}R(S,Error),S.prototype.w=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},S.prototype.toJSON=function(){return this.w()};var P,D="auth/",A={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
2ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
2d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},N={kd:{Sa:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},rd:{Sa:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://securetoken.googleapis.com/v1/token",Va:"https://identitytoolkit.googleapis.com/v2/",id:"p"},td:{Sa:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},ud:{Sa:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ya:"https://test-securetoken.sandbox.googleapis.com/v1/token",Va:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function I(e){for(var t in N)if(N[t].id===e)return{firebaseEndpoint:(e=N[t]).Sa,secureTokenEndpoint:e.Ya,identityPlatformEndpoint:e.Va};return null}function x(e){if(!e)return!1;
2try{return!!e.$goog_Thenable}catch(t){return!1}}function F(e){if(Error.captureStackTrace)Error.captureStackTrace(this,F);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function k(e,t){for(var n="",o=(e=e.split("%s")).length-1,r=0;r<o;r++)n+=e[r]+(r<t.length?t[r]:"%s");F.call(this,n+e[o])}function M(e,t){throw new k("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function L(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function G(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function W(){this.b=this.a=null}P=I("__EID__")?"__EID__":void 0,R(F,Error),F.prototype.name="CustomError",R(k,F),k.prototype.name="AssertionError",L.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var V=new L((function(){return new j}),(function(e){e.reset()}));function H(){var e=mt,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function j(){this.next=this.b=this.a=null}W.prototype.add=function(e,t){var n=V.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},j.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},j.prototype.reset=function(){this.next=this.b=this.a=null};var B=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},U=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var o=e.length,r="string"===typeof e?e.split(""):e,i=0;i<o;i++)i in r&&t.call(n,r[i],i,e)};var z=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,o=[],r=0,i="string"===typeof e?e.split(""):e,a=0;a<n;a++)if(a in i){var s=i[a];t.call(void 0,s,a,e)&&(o[r++]=s)}return o},Y=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,o=Array(n),r="string"===typeof e?e.split(""):e,i=0;i<n;i++)i in r&&(o[i]=t.call(void 0,r[i],i,e));return o},q=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,o="string"===typeof e?e.split(""):e,r=0;r<n;r++)if(r in o&&t.call(void 0,o[r],r,e))return!0;return!1};function K(e,t){return 0<=B(e,t)}function Q(e,t){var n;return(n=0<=(t=B(e,t)))&&Array.prototype.splice.call(e,t,1),n}function X(e,t){!function(e,t){for(var n="string"===typeof e?e.split(""):e,o=e.length-1;0<=o;--o)o in n&&t.call(void 0,n[o],o,e)}(e,(function(n,o){t.call(void 0,n,o,e)&&1==Array.prototype.splice.call(e,o,1).length&&0}))}function $(e){return Array.prototype.concat.apply([],arguments)}function J(e){var t=e.length;if(0<t){for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}return[]}var Z,ee=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},te=/&/g,ne=/</g,oe=/>/g,re=/"/g,ie=/'/g,ae=/\x00/g,se=/[\x00&<>"']/;function le(e,t){return-1!=e.indexOf(t)}function ue(e,t){return e<t?-1:e>t?1:0}e:{var ce=u.navigator;if(ce){var pe=ce.userAgent;if(pe){Z=pe;break e}}Z=""}function de(e){return le(Z,e)}function he(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function fe(e){for(var t in e)return!1;return!0}function ge(e){var t,n={};for(t in e)n[t]=e[t];return n}var ye="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ve(e,t){for(var n,o,r=1;r<arguments.length;r++){for(n in o=arguments[r])e[n]=o[n];for(var i=0;i<ye.length;i++)n=ye[i],Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}}function me(e,t){e:{try{var n=e&&e.ownerDocument,o=n&&(n.defaultView||n.parentWindow);if((o=o||u).Element&&o.Location){var r=o;break e}}catch(a){}r=null}if(r&&"undefined"!=typeof r[t]&&(!e||!(e instanceof r[t])&&(e instanceof r.Location||e instanceof r.Element))){if(y(e))try{var i=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(a){i="<object could not be stringified>"}else i=void 0===e?"undefined":null===e?"null":typeof e;M("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,i)}}function Ce(e,t){this.a=e===Ee&&t||"",this.b=be}function we(e){return e instanceof Ce&&e.constructor===Ce&&e.b===be?e.a:(M("expected object of type Const, got '"+e+"'"),"type_error:Const")}Ce.prototype.sa=!0,Ce.prototype.ra=function(){return this.a},Ce.prototype.toString=function(){return"Const{"+this.a+"}"};var be={},Ee={},_e=new Ce(Ee,"");function Oe(e,t){this.a=e===Ae&&t||"",this.b=De}function Re(e){return e instanceof Oe&&e.constructor===Oe&&e.b===De?e.a:(M("expected object of type TrustedResourceUrl, got '"+e+"' of type "+h(e)),"type_error:TrustedResourceUrl")}function Se(e,t){var n=we(e);if(!Pe.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(Te,(function(e,o){if(!Object.prototype.hasOwnProperty.call(t,o))throw Error('Found marker, "'+o+'", in format str
2ing, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[o])instanceof Ce?we(e):encodeURIComponent(String(e))})),new Oe(Ae,e)}Oe.prototype.sa=!0,Oe.prototype.ra=function(){return this.a.toString()},Oe.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Te=/%{(\w+)}/g,Pe=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,De={},Ae={};function Ne(e,t){this.a=e===Me&&t||"",this.b=ke}function Ie(e){return e instanceof Ne&&e.constructor===Ne&&e.b===ke?e.a:(M("expected object of type SafeUrl, got '"+e+"' of type "+h(e)),"type_error:SafeUrl")}Ne.prototype.sa=!0,Ne.prototype.ra=function(){return this.a.toString()},Ne.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var xe=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Fe(e){return e instanceof Ne?e:(e="object"==typeof e&&e.sa?e.ra():String(e),xe.test(e)||(e="about:invalid#zClosurez"),new Ne(Me,e))}var ke={},Me={};function Le(){this.a="",this.b=We}function Ge(e){return e instanceof Le&&e.constructor===Le&&e.b===We?e.a:(M("expected object of type SafeHtml, got '"+e+"' of type "+h(e)),"type_error:SafeHtml")}Le.prototype.sa=!0,Le.prototype.ra=function(){return this.a.toString()},Le.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var We={};function Ve(e){var t=new Le;return t.a=e,t}Ve("<!DOCTYPE html>");var He=Ve("");function je(e,t){for(var n=e.split("%s"),o="",r=Array.prototype.slice.call(arguments,1);r.length&&1<n.length;)o+=n.shift()+r.shift();return o+n.join("%s")}function Be(e){return se.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(te,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(ne,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(oe,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(re,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(ie,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(ae,"&#0;"))),e}function Ue(e){return Ue[" "](e),e}Ve("<br>"),Ue[" "]=d;var ze,Ye=de("Opera"),qe=de("Trident")||de("MSIE"),Ke=de("Edge"),Qe=Ke||qe,Xe=de("Gecko")&&!(le(Z.toLowerCase(),"webkit")&&!de("Edge"))&&!(de("Trident")||de("MSIE"))&&!de("Edge"),$e=le(Z.toLowerCase(),"webkit")&&!de("Edge");function Je(){var e=u.document;return e?e.documentMode:void 0}e:{var Ze="",et=function(){var e=Z;return Xe?/rv:([^\);]+)(\)|;)/.exec(e):Ke?/Edge\/([\d\.]+)/.exec(e):qe?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):$e?/WebKit\/(\S+)/.exec(e):Ye?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(et&&(Ze=et?et[1]:""),qe){var tt=Je();if(null!=tt&&tt>parseFloat(Ze)){ze=String(tt);break e}}ze=Ze}var nt,ot={};function rt(e){return function(e,t){var n=ot;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=ee(String(ze)).split("."),o=ee(String(e)).split("."),r=Math.max(n.length,o.length),i=0;0==t&&i<r;i++){var a=n[i]||"",s=o[i]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=ue(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ue(0==a[2].length,0==s[2].length)||ue(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t}))}nt=u.document&&qe?Je():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(sa){}var it=!qe||9<=Number(nt);function at(e){var t=document;return"string"===typeof e?t.getElementById(e):e}function st(e,t){he(t,(function(t,n){t&&"object"==typeof t&&t.sa&&(t=t.ra()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:ct.hasOwnProperty(n)?e.setAttribute(ct[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var lt,ut,ct={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function pt(e,t,n){function o(n){n&&t.appendChild("string"===typeof n?e.createTextNode(n):n)}for(var r=2;r<n.length;r++){var i=n[r];!f(i)||y(i)&&0<i.nodeType?o(i):U(ht(i)?J(i):i,o)}}function dt(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function ht(e){if(e&&"number"==typeof e.length){if(y(e))return"function"==typeof e.item||"string"==typeof e.item;if(g(e))return"function"==typeof e.item}return!1}function ft(e){u.setTimeout((function(){throw e}
2),0)}function gt(){var e=u.MessageChannel;if("undefined"===typeof e&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!de("Presto")&&(e=function(){var e=dt(document,"IFRAME");e.style.display="none",function(e){var t=new Oe(Ae,we(_e));me(e,"HTMLIFrameElement"),e.src=Re(t).toString()}(e),document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(Ge(He)),e.close();var n="callImmediate"+Math.random(),o="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=E((function(e){"*"!=o&&e.origin!=o||e.data!=n||this.port1.onmessage()}),this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,o)}}}),"undefined"!==typeof e&&!de("Trident")&&!de("MSIE")){var t=new e,n={},o=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).Fb;n.Fb=null,e()}},function(e){o.next={Fb:e},o=o.next,t.port2.postMessage(0)}}return function(e){u.setTimeout(e,0)}}function yt(e,t){ut||function(){if(u.Promise&&u.Promise.resolve){var e=u.Promise.resolve(void 0);ut=function(){e.then(Ct)}}else ut=function(){var e=Ct;!g(u.setImmediate)||u.Window&&u.Window.prototype&&!de("Edge")&&u.Window.prototype.setImmediate==u.setImmediate?(lt||(lt=gt()),lt(e)):u.setImmediate(e)}}(),vt||(ut(),vt=!0),mt.add(e,t)}var vt=!1,mt=new W;function Ct(){for(var e;e=H();){try{e.a.call(e.b)}catch(t){ft(t)}G(V,e)}vt=!1}function wt(e,t){if(this.a=bt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=d)try{var n=this;e.call(t,(function(e){xt(n,Et,e)}),(function(e){if(!(e instanceof Vt))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(t){}xt(n,_t,e)}))}catch(o){xt(this,_t,o)}}var bt=0,Et=2,_t=3;function Ot(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Ot.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Rt=new L((function(){return new Ot}),(function(e){e.reset()}));function St(e,t,n){var o=Rt.get();return o.g=e,o.b=t,o.f=n,o}function Tt(e){if(e instanceof wt)return e;var t=new wt(d);return xt(t,Et,e),t}function Pt(e){return new wt((function(t,n){n(e)}))}function Dt(e,t,n){Ft(e,t,n,null)||yt(_(t,e))}function At(e){return new wt((function(t){var n=e.length,o=[];if(n)for(var r=function(e,r,i){n--,o[e]=r?{Ob:!0,value:i}:{Ob:!1,reason:i},0==n&&t(o)},i=0;i<e.length;i++)Dt(e[i],_(r,i,!0),_(r,i,!1));else t(o)}))}function Nt(e,t){e.b||e.a!=Et&&e.a!=_t||kt(e),e.f?e.f.next=t:e.b=t,e.f=t}function It(e,t,n,o){var r=St(null,null,null);return r.a=new wt((function(e,i){r.g=t?function(n){try{var r=t.call(o,n);e(r)}catch(a){i(a)}}:e,r.b=n?function(t){try{var r=n.call(o,t);void 0===r&&t instanceof Vt?i(t):e(r)}catch(a){i(a)}}:i})),r.a.c=e,Nt(e,r),r.a}function xt(e,t,n){e.a==bt&&(e===n&&(t=_t,n=new TypeError("Promise cannot resolve to itself")),e.a=1,Ft(n,e.Zc,e.$c,e)||(e.i=n,e.a=t,e.c=null,kt(e),t!=_t||n instanceof Vt||function(e,t){e.g=!0,yt((function(){e.g&&Wt.call(null,t)}))}(e,n)))}function Ft(e,t,n,o){if(e instanceof wt)return Nt(e,St(t||d,n||null,o)),!0;if(x(e))return e.then(t,n,o),!0;if(y(e))try{var r=e.then;if(g(r))return function(e,t,n,o,r){function i(e){a||(a=!0,o.call(r,e))}var a=!1;try{t.call(e,(function(e){a||(a=!0,n.call(r,e))}),i)}catch(s){i(s)}}(e,r,t,n,o),!0}catch(i){return n.call(o,i),!0}return!1}function kt(e){e.h||(e.h=!0,yt(e.fc,e))}function Mt(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Lt(e,t,n,o){if(n==_t&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Gt(t,n,o);else try{t.c?t.g.call(t.f):Gt(t,n,o)}catch(r){Wt.call(null,r)}G(Rt,t)}function Gt(e,t,n){t==Et?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}wt.prototype.then=function(e,t,n){return It(this,g(e)?e:null,g(t)?t:null,n)},wt.prototype.$goog_Thenable=!0,(t=wt.prototype).na=function(e,t){return(e=St(e,e,t)).c=!0,Nt(this,e),this},t.s=function(e,t){return It(this,null,e,t)},t.cancel=function(e){if(this.a==bt){var t=new Vt(e);yt((function(){!function e(t,n){if(t.a==bt)if(t.c){var o=t.c;if(o.b){for(var r=0,i=null,a=null,s=o.b;s&&(s.c||(r++,s.a==t&&(i=s),!(i&&1<r)));s=s.next)i||(a=s);i&&(o.a==bt&&1==r?e(o,n):(a?((r=a).next==o.f&&(o.f=r),r.next=r.next.next):Mt(o),Lt(o,i,_t,n)))}t.c=null}else xt(t,_t,n)}(this,t)}),this)}},t.Zc=function(e){this.a=bt,xt(this,Et,e)},t.$c=function(e){this.a=bt,xt(this,_t,e)}
2,t.fc=function(){for(var e;e=Mt(this);)Lt(this,e,this.a,this.i);this.h=!1};var Wt=ft;function Vt(e){F.call(this,e)}function Ht(){0!=jt&&(Bt[v(this)]=this),this.xa=this.xa,this.oa=this.oa}R(Vt,F),Vt.prototype.name="cancel";var jt=0,Bt={};function Ut(e){if(!e.xa&&(e.xa=!0,e.Da(),0!=jt)){var t=v(e);if(0!=jt&&e.oa&&0<e.oa.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Bt[t]}}Ht.prototype.xa=!1,Ht.prototype.Da=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()};var zt=Object.freeze||function(e){return e},Yt=!qe||9<=Number(nt),qt=qe&&!rt("9"),Kt=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{u.addEventListener("test",d,t),u.removeEventListener("test",d,t)}catch(n){}return e}();function Qt(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function Xt(e,t){if(Qt.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,o=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Xe){e:{try{Ue(t.nodeName);var r=!0;break e}catch(i){}r=!1}r||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,o?(this.clientX=void 0!==o.clientX?o.clientX:o.pageX,this.clientY=void 0!==o.clientY?o.clientY:o.pageY,this.screenX=o.screenX||0,this.screenY=o.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:$t[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Qt.prototype.preventDefault=function(){this.defaultPrevented=!0},R(Xt,Qt);var $t=zt({2:"touch",3:"pen",4:"mouse"});Xt.prototype.preventDefault=function(){Xt.$a.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,qt)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(t){}},Xt.prototype.g=function(){return this.a};var Jt="closure_listenable_"+(1e6*Math.random()|0),Zt=0;function en(e,t,n,o,r){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!o,this.Ua=r,this.key=++Zt,this.va=this.Oa=!1}function tn(e){e.va=!0,e.listener=null,e.proxy=null,e.src=null,e.Ua=null}function nn(e){this.src=e,this.a={},this.b=0}function on(e,t){var n=t.type;n in e.a&&Q(e.a[n],t)&&(tn(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function rn(e,t,n,o){for(var r=0;r<e.length;++r){var i=e[r];if(!i.va&&i.listener==t&&i.capture==!!n&&i.Ua==o)return r}return-1}nn.prototype.add=function(e,t,n,o,r){var i=e.toString();(e=this.a[i])||(e=this.a[i]=[],this.b++);var a=rn(e,t,o,r);return-1<a?(t=e[a],n||(t.Oa=!1)):((t=new en(t,this.src,i,!!o,r)).Oa=n,e.push(t)),t};var an="closure_lm_"+(1e6*Math.random()|0),sn={};function ln(e,t,n,o,r){if(o&&o.once)cn(e,t,n,o,r);else if(Array.isArray(t))for(var i=0;i<t.length;i++)ln(e,t[i],n,o,r);else n=Cn(n),e&&e[Jt]?bn(e,t,n,y(o)?!!o.capture:!!o,r):un(e,t,n,!1,o,r)}function un(e,t,n,o,r,i){if(!t)throw Error("Invalid event type");var a=y(r)?!!r.capture:!!r,s=vn(e);if(s||(e[an]=s=new nn(e)),!(n=s.add(t,n,o,a,i)).proxy){if(o=function(){var e=yn,t=Yt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=o,o.src=e,o.listener=n,e.addEventListener)Kt||(r=a),void 0===r&&(r=!1),e.addEventListener(t.toString(),o,r);else if(e.attachEvent)e.attachEvent(hn(t.toString()),o);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(o)}0}}function cn(e,t,n,o,r){if(Array.isArray(t))for(var i=0;i<t.length;i++)cn(e,t[i],n,o,r);else n=Cn(n),e&&e[Jt]?En(e,t,n,y(o)?!!o.capture:!!o,r):un(e,t,n,!0,o,r)}function pn(e,t,n,o,r){if(Array.isArray(t))for(var i=0;i<t.length;i++)pn(e,t[i],n,o,r);else o=y(o)?!!o.capture:!!o,n=Cn(n),e&&e[Jt]?(e=e.v,(t=String(t).toString())in e.a&&(-1<(n=rn(i=e.a[t],n,o,r))&&(tn(i[n]),Array.prototype.splice.call(i,n,1),0==i.length&&(delete e.a[t],e.b--)))):e&&(e=vn(e))&&(t=e.a[t.toString()],e=-1,t&&(e=rn(t,n,o,r)),(n=-1<e?t[e]:null)&&dn(n))}function dn(e){if("number"!==typeof e&&e&&!e.va){var t=e.src;if(t&&t[Jt])on(t.v,e);else{var n=e.type,o=e.proxy;t.removeEventListener?t.removeEventListener(n,o,e.capture):t.detachEvent?t.detachEvent(hn(n),o):t.addListener&&t.removeListener&&t.removeListener(o),(n=vn(t))?(on(n,e),0==n.b&&(n.src=null,t[an]=null)):tn(e)}}}function hn(e){return e in sn?sn[e]:sn[e]="on"+e}function fn(e,t,n,o){var r=!0;if((e=vn(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var i=t[e];i&&i.capture==n&&!i.va&&(i=gn(i,o),r=r&&!1!==i)}return r}function gn(e,t){var n=e.listener,o=e.Ua||e.src;return e.Oa&&dn(e),n.call(o,t)}function yn(e,t){if(e.va)return!0;
2if(!Yt){if(!t)e:{t=["window","event"];for(var n=u,o=0;o<t.length;o++)if(null==(n=n[t[o]])){t=null;break e}t=n}if(t=new Xt(o=t,this),n=!0,!(0>o.keyCode||void 0!=o.returnValue)){e:{var r=!1;if(0==o.keyCode)try{o.keyCode=-1;break e}catch(a){r=!0}(r||void 0==o.returnValue)&&(o.returnValue=!0)}for(o=[],r=t.b;r;r=r.parentNode)o.push(r);for(e=e.type,r=o.length-1;0<=r;r--){t.b=o[r];var i=fn(o[r],e,!0,t);n=n&&i}for(r=0;r<o.length;r++)t.b=o[r],i=fn(o[r],e,!1,t),n=n&&i}return n}return gn(e,new Xt(t,this))}function vn(e){return(e=e[an])instanceof nn?e:null}var mn="__closure_events_fn_"+(1e9*Math.random()>>>0);function Cn(e){return g(e)?e:(e[mn]||(e[mn]=function(t){return e.handleEvent(t)}),e[mn])}function wn(){Ht.call(this),this.v=new nn(this),this.$b=this,this.fb=null}function bn(e,t,n,o,r){e.v.add(String(t),n,!1,o,r)}function En(e,t,n,o,r){e.v.add(String(t),n,!0,o,r)}function _n(e,t,n,o){if(!(t=e.v.a[String(t)]))return!0;t=t.concat();for(var r=!0,i=0;i<t.length;++i){var a=t[i];if(a&&!a.va&&a.capture==n){var s=a.listener,l=a.Ua||a.src;a.Oa&&on(e.v,a),r=!1!==s.call(l,o)&&r}}return r&&!o.defaultPrevented}function On(e,t,n){if(g(e))n&&(e=E(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=E(e.handleEvent,e)}return 2147483647<Number(t)?-1:u.setTimeout(e,t||0)}function Rn(e){var t=null;return new wt((function(n,o){-1==(t=On((function(){n(void 0)}),e))&&o(Error("Failed to schedule timer."))})).s((function(e){throw u.clearTimeout(t),e}))}function Sn(e){if(e.V&&"function"==typeof e.V)return e.V();if("string"===typeof e)return e.split("");if(f(e)){for(var t=[],n=e.length,o=0;o<n;o++)t.push(e[o]);return t}for(o in t=[],n=0,e)t[n++]=e[o];return t}function Tn(e){if(e.Y&&"function"==typeof e.Y)return e.Y();if(!e.V||"function"!=typeof e.V){if(f(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var o in t=[],n=0,e)t[n++]=o;return t}}function Pn(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var o=0;o<n;o+=2)this.set(arguments[o],arguments[o+1])}else if(e)if(e instanceof Pn)for(n=e.Y(),o=0;o<n.length;
2o++)this.set(n[o],e.get(n[o]));else for(o in e)this.set(o,e[o])}function Dn(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var o=e.a[t];An(e.b,o)&&(e.a[n++]=o),t++}e.a.length=n}if(e.c!=e.a.length){var r={};for(n=t=0;t<e.a.length;)An(r,o=e.a[t])||(e.a[n++]=o,r[o]=1),t++;e.a.length=n}}function An(e,t){return Object.prototype.hasOwnProperty.call(e,t)}R(wn,Ht),wn.prototype[Jt]=!0,wn.prototype.addEventListener=function(e,t,n,o){ln(this,e,t,n,o)},wn.prototype.removeEventListener=function(e,t,n,o){pn(this,e,t,n,o)},wn.prototype.dispatchEvent=function(e){var t,n=this.fb;if(n)for(t=[];n;n=n.fb)t.push(n);n=this.$b;var o=e.type||e;if("string"===typeof e)e=new Qt(e,n);else if(e instanceof Qt)e.target=e.target||n;else{var r=e;ve(e=new Qt(o,n),r)}if(r=!0,t)for(var i=t.length-1;0<=i;i--){var a=e.b=t[i];r=_n(a,o,!0,e)&&r}if(r=_n(a=e.b=n,o,!0,e)&&r,r=_n(a,o,!1,e)&&r,t)for(i=0;i<t.length;i++)r=_n(a=e.b=t[i],o,!1,e)&&r;return r},wn.prototype.Da=function(){if(wn.$a.Da.call(this),this.v){var e,t=this.v;for(e in t.a){for(var n=t.a[e],o=0;o<n.length;o++)tn(n[o]);delete t.a[e],t.b--}}this.fb=null},(t=Pn.prototype).V=function(){Dn(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},t.Y=function(){return Dn(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(e,t){return An(this.b,e)?this.b[e]:t},t.set=function(e,t){An(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},t.forEach=function(e,t){for(var n=this.Y(),o=0;o<n.length;o++){var r=n[o],i=this.get(r);e.call(t,i,r,this)}};var Nn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function In(e,t){var n;this.a=this.l=this.f="",this.g=null,this.h=this.c="",this.i=!1,e instanceof In?(this.i=void 0!==t?t:e.i,xn(this,e.f),this.l=e.l,this.a=e.a,Fn(this,e.g),this.c=e.c,kn(this,eo(e.b)),this.h=e.h):e&&(n=String(e).match(Nn))?(this.i=!!t,xn(this,n[1]||"",!0),this.l=Vn(n[2]||""),this.a=Vn(n[3]||"",!0),Fn(this,n[4]),this.c=Vn(n[5]||"",!0),kn(this,n[6]||"",!0),this.h=Vn(n[7]||"")):(this.i=!!t,this.b=new Kn(null,this.i))}function xn(e,t,n){e.f=n?Vn(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function Fn(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.g=t}else e.g=null}function kn(e,t,n){t instanceof Kn?(e.b=t,function(e,t){t&&!e.f&&(Qn(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&($n(this,t),Zn(this,n,e))}),e)),e.f=t}(e.b,e.i)):(n||(t=Hn(t,Yn)),e.b=new Kn(t,e.i))}function Mn(e,t,n){e.b.set(t,n)}function Ln(e,t){return e.b.get(t)}function Gn(e){return e instanceof In?new In(e):new In(e,void 0)}function Wn(e,t,n,o){var r=new In(null,void 0);return e&&xn(r,e),t&&(r.a=t),n&&Fn(r,n),o&&(r.c=o),r}function Vn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Hn(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,jn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function jn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}In.prototype.toString=function(){var e=[],t=this.f;t&&e.push(Hn(t,Bn,!0),":");var n=this.a;return(n||"file"==t)&&(e.push("//"),(t=this.l)&&e.push(Hn(t,Bn,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&e.push(":",String(n))),(n=this.c)&&(this.a&&"/"!=n.charAt(0)&&e.push("/"),e.push(Hn(n,"/"==n.charAt(0)?zn:Un,!0))),(n=this.b.toString())&&e.push("?",n),(n=this.h)&&e.push("#",Hn(n,qn)),e.join("")},In.prototype.resolve=function(e){var t=new In(this),n=!!e.f;n?xn(t,e.f):n=!!e.l,n?t.l=e.l:n=!!e.a,n?t.a=e.a:n=null!=e.g;var o=e.c;if(n)Fn(t,e.g);else if(n=!!e.c){if("/"!=o.charAt(0))if(this.a&&!this.c)o="/"+o;else{var r=t.c.lastIndexOf("/");-1!=r&&(o=t.c.substr(0,r+1)+o)}if(".."==(r=o)||"."==r)o="";else if(le(r,"./")||le(r,"/.")){o=0==r.lastIndexOf("/",0),r=r.split("/");for(var i=[],a=0;a<r.length;){var s=r[a++];"."==s?o&&a==r.length&&i.push(""):".."==s?((1<i.length||1==i.length&&""!=i[0])&&i.pop(),o&&a==r.length&&i.push("")):(i.push(s),o=!0)}o=i.join("/")}else o=r}return n?t.c=o:n=""!==e.b.toString(),n?kn(t,eo(e.b)):n=!!e.h,n&&(t.h=e.h),t};var Bn=/[#\/\?@]/g,Un=/[#\?:]/g,zn=/[#\?]/g,Yn=/[#\?@]/g,qn=/#/g;function Kn(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Qn(e){e.a||(e.a=new Pn,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var o=e[n].indexOf("="),r=null;if(0<=o){var i=e[n].substring(0,o);r=e[n].substring(o+1)}else i=e[n];t(i,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Xn(e){var t=Tn(e);
2if("undefined"==typeof t)throw Error("Keys are undefined");var n=new Kn(null,void 0);e=Sn(e);for(var o=0;o<t.length;o++){var r=t[o],i=e[o];Array.isArray(i)?Zn(n,r,i):n.add(r,i)}return n}function $n(e,t){Qn(e),t=to(e,t),An(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,An((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Dn(e)))}function Jn(e,t){return Qn(e),t=to(e,t),An(e.a.b,t)}function Zn(e,t,n){$n(e,t),0<n.length&&(e.c=null,e.a.set(to(e,t),J(n)),e.b+=n.length)}function eo(e){var t=new Kn;return t.c=e.c,e.a&&(t.a=new Pn(e.a),t.b=e.b),t}function to(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function no(e){var t=[];return function e(t,n,o){if(null==n)o.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var r=n;n=r.length,o.push("[");for(var i="",a=0;a<n;a++)o.push(i),e(t,r[a],o),i=",";return void o.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(r in o.push("{"),i="",n)Object.prototype.hasOwnProperty.call(n,r)&&("function"!=typeof(a=n[r])&&(o.push(i),ao(r,o),o.push(":"),e(t,a,o),i=","));return void o.push("}")}n=n.valueOf()}switch(typeof n){case"string":ao(n,o);break;case"number":o.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":o.push(String(n));break;case"function":o.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new oo,e,t),t.join("")}function oo(){}(t=Kn.prototype).add=function(e,t){Qn(this),this.c=null,e=to(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(e,t){Qn(this),this.a.forEach((function(n,o){U(n,(function(n){e.call(t,n,o,this)}),this)}),this)},t.Y=function(){Qn(this);for(var e=this.a.V(),t=this.a.Y(),n=[],o=0;o<t.length;o++)for(var r=e[o],i=0;i<r.length;i++)n.push(t[o]);return n},t.V=function(e){Qn(this);var t=[];if("string"===typeof e)Jn(this,e)&&(t=$(t,this.a.get(to(this,e))));else{e=this.a.V();for(var n=0;n<e.length;n++)t=$(t,e[n])}return t},t.set=function(e,t){return Qn(this),this.c=null,Jn(this,e=to(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},t.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.Y(),n=0;n<t.length;n++){var o=t[n],r=encodeURIComponent(String(o));o=this.V(o);for(var i=0;i<o.length;i++){var a=r;""!==o[i]&&(a+="="+encodeURIComponent(String(o[i]))),e.push(a)}}return this.c=e.join("&")};var ro={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},io=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ao(e,t){t.push('"',e.replace(io,(function(e){var t=ro[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),ro[e]=t),t})),'"')}function so(){var e=To();return qe&&!!nt&&11==nt||/Edge\/\d+/.test(e)}function lo(){return u.window&&u.window.location.href||self&&self.location&&self.location.href||""}function uo(e,t){t=t||u.window;var n="about:blank";e&&(n=Ie(Fe(e))),t.location.href=n}function co(e){return!!((e=(e||To()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function po(e){e=e||u.window;try{e.close()}catch(t){}}function ho(e,t,n){var o=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var r=(window.screen.availHeight-n)/2,i=(window.screen.availWidth-t)/2;for(a in t={width:t,height:n,top:0<r?r:0,left:0<i?i:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=To().toLowerCase(),o&&(t.target=o,le(n,"crios/")&&(t.target="_blank")),Oo(To())==Eo&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),o=window,t=n instanceof Ne?n:Fe("undefined"!=typeof n.href?n.href:String(n)),n=e.target||n.target,r=[],e)switch(a){case"width":case"height":case"top":case"left":r.push(a+"="+e[a]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(a+"="+(e[a]?1:0))}var a=r.join(",");if((de("iPhone")&&!de("iPod")&&!de("iPad")||de("iPad")||de("iPod"))&&o.navigator&&o.navigator.standalone&&n&&"_self"!=n?(me(a=dt(document,"A"),"HTMLAnchorElement"),t instanceof Ne||t instanceof Ne||(t="object"==typeof t&&t.sa?t.ra():String(t),xe.test(t)||(t="about:invalid#zClosurez"),t=new Ne(Me,t)),a.href=Ie(t),a.setAttribute("target",n),e.noreferrer&&a.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,o,1),a.dispatchEvent(e),a={}):e.noreferrer?(a=o.open("",n,a),e=Ie(t),a&&(Qe&&le(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),a.opener=null,e=Ve('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Be(e)+'">'),o=a.document)&&(o.write(Ge(e)),o.close())):(a=o.open(Ie(t),n,a))&&e.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var fo=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,go=/^[^@]+@[^@]+$/;function yo(){var e=null;return new wt((function(t){"complete"==u.document.readyState?t():(e=function(){t()},cn(window,"load",e))})).s((function(t){throw pn(window,"load",e),t}))}function vo(e){return e=e||To(),!("file:"!==Io()&&"ionic:"!==Io()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function mo(){var e=u.window;try{return!(!e||e==e.top)}catch(t){return!1}}function Co(){return"undefined"!==typeof u.WorkerGlobalScope&&"function"===typeof u.importScripts}function wo(){return o.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":o.INTERNAL.hasOwnProperty("node")?"Node":Co()?"Worker":"Browser"}function bo(){var e=wo();return"ReactNative"===e||"Node"===e}var Eo="Firefox",_o="Chrome";function Oo(e){var t=e.toLowerCase();return le(t,"opera/")||le(t,"opr/")||le(t,"opios/")?"Opera":le(t,"iemobile")?"IEMobile":le(t,"msie")||le(t,"trident/")?"IE":le(t,"edge/")?"Edge":le(t,"firefox/")?Eo:le(t,"silk/")?"Silk":le(t,"blackberry")?"Blackberry":le(t,"webos")?"Webos":!le(t,"safari/")||le(t,"chrome/")||le(t,"crios/")||le(t,"android")?!le(t,"chrome/")&&!le(t,"crios/")||le(t,"edge/")?le(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":_o:"Safari"}var Ro={ld:"FirebaseCore-web",nd:"FirebaseUI-web"};
2function So(e,t){t=t||[];var n,o=[],r={};for(n in Ro)r[Ro[n]]=!0;for(n=0;n<t.length;n++)"undefined"!==typeof r[t[n]]&&(delete r[t[n]],o.push(t[n]));return o.sort(),(t=o).length||(t=["FirebaseCore-web"]),"Browser"===(o=wo())?o=Oo(r=To()):"Worker"===o&&(o=Oo(r=To())+"-"+o),o+"/JsCore/"+e+"/"+t.join(",")}function To(){return u.navigator&&u.navigator.userAgent||""}function Po(e,t){e=e.split("."),t=t||u;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function Do(){try{var e=u.localStorage,t=Lo();if(e)return e.setItem(t,"1"),e.removeItem(t),!so()||!!u.indexedDB}catch(n){return Co()&&!!u.indexedDB}return!1}function Ao(){return(No()||"chrome-extension:"===Io()||vo())&&!bo()&&Do()&&!Co()}function No(){return"http:"===Io()||"https:"===Io()}function Io(){return u.location&&u.location.protocol||null}function xo(e){return!co(e=e||To())&&Oo(e)!=Eo}function Fo(e){return"undefined"===typeof e?null:no(e)}function ko(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function Mo(e){if(null!==e)return JSON.parse(e)}function Lo(e){return e||Math.floor(1e9*Math.random()).toString()}function Go(e){return"Safari"!=Oo(e=e||To())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function Wo(){var e=u.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function Vo(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=To(),t=wo(),this.b=co(e)||"ReactNative"===t}function Ho(){var e=u.document;return!e||"undefined"===typeof e.visibilityState||"visible"==e.visibilityState}function jo(e){"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(e)}function Bo(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(n){}return null}function Uo(){return!(!Po("fireauth.oauthhelper",u)&&!Po("fireauth.iframe",u))}Vo.prototype.get=function(){var e=u.navigator;return!e||"boolean"!==typeof e.onLine||!No()&&"chrome-extension:"!==Io()&&"undefined"===typeof e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var zo,Yo={};function qo(e){Yo[e]||(Yo[e]=!0,jo(e))}try{var Ko={};Object.defineProperty(Ko,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Ko,"abcd",{configurable:!0,enumerable:!0,value:2}),zo=2==Ko.abcd}catch(sa){zo=!1}function Qo(e,t,n){zo?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function Xo(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Qo(e,n,t[n])}function $o(e){var t={};return Xo(t,e),t}function Jo(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Qo(t,n,Jo(e[n]));return t}function Zo(e){var t=e&&(e[rr]?"phone":null);if(!(t&&e&&e[or]))throw new S("internal-error","Internal assert: invalid MultiFactorInfo object");Qo(this,"uid",e[or]),Qo(this,"displayName",e[tr]||null);var n=null;e[nr]&&(n=new Date(e[nr]).toUTCString()),Qo(this,"enrollmentTime",n),Qo(this,"factorId",t)}function er(e){try{var t=new ir(e)}catch(n){t=null}return t}Zo.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var tr="displayName",nr="enrolledAt",or="mfaEnrollmentId",rr="phoneInfo";function ir(e){Zo.call(this,e),Qo(this,"phoneNumber",e[rr])}function ar(e){var t={},n=e[cr],o=e[dr],r=e[hr];if(e=er(e[pr]),!r||r!=lr&&r!=ur&&!n||r==ur&&!o||r==sr&&!e)throw Error("Invalid checkActionCode response!");r==ur?(t[gr]=n||null,t[vr]=n||null,t[fr]=o):(t[gr]=o||null,t[vr]=o||null,t[fr]=n||null),t[yr]=e||null,Qo(this,Cr,r),Qo(this,mr,Jo(t))}R(ir,Zo),ir.prototype.w=function(){var e=ir.$a.w.call(this);return e.phoneNumber=this.phoneNumber,e};var sr="REVERT_SECOND_FACTOR_ADDITION",lr="EMAIL_SIGNIN",ur="VERIFY_AND_CHANGE_EMAIL",cr="email",pr="mfaInfo",dr="newEmail",hr="requestType",fr="email",gr="fromEmail",yr="multiFactorInfo",vr="previousEmail",mr="data",Cr="operation";function wr(e){var t=Ln(e=Gn(e),br)||null,n=Ln(e,Er)||null,o=Ln(e,Rr)||null;if(o=o&&Tr[o]||null,!t||!n||!o)throw new S("argument-error",br+", "+Er+"and "+Rr+" are required in a valid action code URL.");Xo(this,{apiKey:t,operation:o,code:n,continueUrl:Ln(e,_r)||null,languageCode:Ln(e,Or)||null,tenantId:Ln(e,Sr)||null})}var br="apiKey",Er="oobCode",_r="continueUrl",Or="languageCode",Rr="mode",Sr="tenantId",Tr={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:sr,signIn:lr,verifyAndChangeEmail:ur,verifyEmail:"VERIFY_EMAIL"};function Pr(e){try{return new wr(e)}catch(t){return null}}function Dr(e){var t=e[Fr];if("undefined"===typeof t)throw new S("missing-continue-uri");if("string"!==typeof t||"string"===typeof t&&!t.length)throw new S("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[Ar];if(n&&"object"===typeof n){t=n[Lr];var o=n[kr];if(n=n[Mr],"string"===typeof t&&t.length){if(this.a=t,"undefined"!==typeof o&&"boolean"!==typeof o)throw new S("argument-error",kr+" property must be a boolean when specified.");if(this.g=!!o,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new S("argument-error",Mr+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof t)throw new S("argument-error",Lr+" property must be a non empty string when specified.");if("undefined"!==typeof o||"undefined"!==typeof n)throw new S("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new S("argument-error",Ar+" property must be a non null object when specified.");if(this.f=null,(t=e[xr])&&"object"===typeof t){if("string"===typeof(t=t[Gr])&&t.length)this.f=t;else if("undefined"!==typeof t)throw new S("argument-error",Gr+" property must be a non empty string when specified.")}else if("undefined"!==typeof t)throw new S("argument-error",xr+" property must be a non null object when specified.");if("undefined"!==typeof(t=e[Ir])&&"boolean"!==typeof t)throw new S("argument-error",Ir+" property must be a boolean when specified.");if(this.c=!!t,"undefined"!==typeof(e=e[Nr])&&("string"!==typeof e||"string"===typeof e&&!e.length))throw new S("argument-error",Nr+" property must be a non empty string when specified.");this.i=e||null}var Ar="android",Nr="dynamicLinkDomain",Ir="handleCodeInApp",xr="iOS",Fr="url",kr="installApp",Mr="minimumVersion",Lr="packageName",Gr="bundleId";function Wr(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var Vr=null;function Hr(e){var t="";return function(e,t){function n(t){for(;o<e.length;){var n=e.charAt(o++),r=Vr[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!Vr){Vr={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var o=e.concat(t[n].split("")),r=0;r<o.length;r++){var i=o[r];void 0===Vr[i]&&(Vr[i]=r)}}}();for(var o=0;;){var r=n(-1),i=n(0),a=n(64),s=n(64);if(64===s&&-1===r)break;t(r<<2|i>>4),64!=a&&(t(i<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(e,(function(e){t+=String.fromCharCode(e)})),t}function jr(e){var t=Ur(e);
2if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.g=e,this.c=t.exp,this.h=t.sub,O(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function Br(e){try{return new jr(e)}catch(t){return null}}function Ur(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(Hr(e))}catch(o){}return null}jr.prototype.S=function(){return this.f},jr.prototype.i=function(){return this.b},jr.prototype.toString=function(){return this.g};var zr="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Yr=["client_id","response_type","scope","redirect_uri","state"],qr={md:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Wa:Yr},od:{Ja:null,ua:500,ta:750,fa:"github.com",Wa:Yr},pd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Wa:Yr},vd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Wa:zr},jd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Wa:[]}};function Kr(e){for(var t in qr)if(qr[t].fa==e)return qr[t];return null}function Qr(e){var t={};t["facebook.com"]=ei,t["google.com"]=ni,t["github.com"]=ti,t["twitter.com"]=oi;var n=e&&e[$r];try{if(n)return t[n]?new t[n](e):new Zr(e);if("undefined"!==typeof e[Xr])return new Jr(e)}catch(o){}return null}var Xr="idToken",$r="providerId";function Jr(e){var t=e[$r];if(!t&&e[Xr]){var n=Br(e[Xr]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,"undefined"!==typeof e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Qo(this,"providerId",t),Qo(this,"isNewUser",n)}function Zr(e){Jr.call(this,e),Qo(this,"profile",Jo((e=Mo(e.rawUserInfo||"{}"))||{}))}function ei(e){if(Zr.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function ti(e){if(Zr.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Qo(this,"username",this.profile&&this.profile.login||null)}function ni(e){if(Zr.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function oi(e){if(Zr.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Qo(this,"username",e.screenName||null)}function ri(e){var t=Gn(e),n=Ln(t,"link"),o=Ln(Gn(n),"link");return t=Ln(t,"deep_link_id"),Ln(Gn(t),"link")||t||o||n||e}function ii(e,t){if(!e&&!t)throw new S("internal-error","Internal assert: no raw session string available");if(e&&t)throw new S("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=t||null,this.type=this.a?ai:si}R(Zr,Jr),R(ei,Zr),R(ti,Zr),R(ni,Zr),R(oi,Zr);var ai="enroll",si="signin";function li(){}function ui(e,t){return e.then((function(e){if(e[$a]){var n=Br(e[$a]);if(!n||t!=n.h)throw new S("user-mismatch");return e}throw new S("user-mismatch")})).s((function(e){throw e&&e.code&&e.code==D+"user-not-found"?new S("user-mismatch"):e}))}function ci(e,t){if(!t)throw new S("internal-error","failed to construct a credential");this.a=t,Qo(this,"providerId",e),Qo(this,"signInMethod",e)}function pi(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function di(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new ci(e.providerId,e.pendingToken)}catch(t){}return null}function hi(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&Qo(this,"idToken",t.idToken),t.accessToken&&Qo(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&Qo(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new S("internal-error","failed to construct a credential");Qo(this,"accessToken",t.oauthToken),Qo(this,"secret",t.oauthTokenSecret)}Qo(this,"providerId",e),Qo(this,"signInMethod",n)}function fi(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:Xn(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function gi(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new hi(e.providerId,t,e.signInMethod)}catch(n){}}return null}function yi(e,t){this.Pc=t||[],Xo(this,{providerId:e,isOAuthProvider:!0}),this.Hb={}
2,this.ob=(Kr(e)||{}).Ja||null,this.nb=null}function vi(e){if("string"!==typeof e||0!=e.indexOf("saml."))throw new S("argument-error",'SAML provider IDs must be prefixed with "saml."');yi.call(this,e,[])}function mi(e){yi.call(this,e,Yr),this.a=[]}function Ci(){mi.call(this,"facebook.com")}function wi(e){if(!e)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return y(e)&&(t=e.accessToken),(new Ci).credential({accessToken:t})}function bi(){mi.call(this,"github.com")}function Ei(e){if(!e)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return y(e)&&(t=e.accessToken),(new bi).credential({accessToken:t})}function _i(){mi.call(this,"google.com"),this.Ca("profile")}function Oi(e,t){var n=e;return y(e)&&(n=e.idToken,t=e.accessToken),(new _i).credential({idToken:n,accessToken:t})}function Ri(){yi.call(this,"twitter.com",zr)}function Si(e,t){var n=e;if(y(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new S("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new hi("twitter.com",n,"twitter.com")}function Ti(e,t,n){this.a=e,this.f=t,Qo(this,"providerId","password"),Qo(this,"signInMethod",n===Di.EMAIL_LINK_SIGN_IN_METHOD?Di.EMAIL_LINK_SIGN_IN_METHOD:Di.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Pi(e){return e&&e.email&&e.password?new Ti(e.email,e.password,e.signInMethod):null}function Di(){Xo(this,{providerId:"password",isOAuthProvider:!1})}function Ai(e,t){if(!(t=Ni(t)))throw new S("argument-error","Invalid email link!");return new Ti(e,t.code,Di.EMAIL_LINK_SIGN_IN_METHOD)}function Ni(e){return(e=Pr(e=ri(e)))&&e.operation===lr?e:null}function Ii(e){if(!(e.cb&&e.bb||e.La&&e.ea))throw new S("internal-error");this.a=e,Qo(this,"providerId","phone"),this.fa="phone",Qo(this,"signInMethod","phone")}function xi(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return U(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){e[n]&&(t[n]=e[n])})),new Ii(t)}return null}function Fi(e){return e.a.La&&e.a.ea?{temporaryProof:e.a.La,phoneNumber:e.a.ea}:{sessionInfo:e.a.cb,code:e.a.bb}}function ki(e){try{this.a=e||o.auth()}catch(t){throw new S("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Xo(this,{providerId:"phone",isOAuthProvider:!1})}function Mi(e,t){if(!e)throw new S("missing-verification-id");if(!t)throw new S("missing-verification-code");return new Ii({cb:e,bb:t})}function Li(e){if(e.temporaryProof&&e.phoneNumber)return new Ii({La:e.temporaryProof,ea:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,o=e&&e.oauthTokenSecret,r=e&&e.nonce,i=e&&e.oauthIdToken,a=e&&e.pendingToken;try{switch(t){case"google.com":return Oi(i,n);case"facebook.com":return wi(n);case"github.com":return Ei(n);case"twitter.com":return Si(n,o);default:return n||o||i||a?a?0==t.indexOf("saml.")?new ci(t,a):new hi(t,{pendingToken:a,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new mi(t).credential({idToken:i,accessToken:n,rawNonce:r}):null}}catch(s){return null}}function Gi(e){if(!e.isOAuthProvider)throw new S("invalid-oauth-provider")}function Wi(e,t,n,o,r,i,a){if(this.c=e,this.b=t||null,this.g=n||null,this.f=o||null,this.i=i||null,this.h=a||null,this.a=r||null,!this.g&&!this.a)throw new S("invalid-auth-event");if(this.g&&this.a)throw new S("invalid-auth-event");if(this.g&&!this.f)throw new S("invalid-auth-event")}function Vi(e){return(e=e||{}).type?new Wi(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&T(e.error),e.postBody,e.tenantId):null}function Hi(){this.b=null,this.a=[]}ii.prototype.Ha=function(){return this.a?Tt(this.a):Tt(this.b)},ii.prototype.w=function(){return this.type==ai?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},li.prototype.ja=function(){},li.prototype.b=function(){},li.prototype.c=function(){},li.prototype.w=function(){},ci.prototype.ja=function(e){return Cs(e,pi(this))},ci.prototype.b=function(e,t){var n=pi(this);return n.idToken=t,ws(e,n)},ci.prototype.c=function(e,t){return ui(bs(e,pi(this)),t)},ci.prototype.w=function(){return{providerId:this.providerId,sign
2InMethod:this.signInMethod,pendingToken:this.a}},hi.prototype.ja=function(e){return Cs(e,fi(this))},hi.prototype.b=function(e,t){var n=fi(this);return n.idToken=t,ws(e,n)},hi.prototype.c=function(e,t){return ui(bs(e,fi(this)),t)},hi.prototype.w=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},yi.prototype.Ka=function(e){return this.Hb=ge(e),this},R(vi,yi),R(mi,yi),mi.prototype.Ca=function(e){return K(this.a,e)||this.a.push(e),this},mi.prototype.Pb=function(){return J(this.a)},mi.prototype.credential=function(e,t){var n;if(!(n=y(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new S("argument-error","credential failed: must provide the ID token and/or the access token.");return new hi(this.providerId,n,this.providerId)},R(Ci,mi),Qo(Ci,"PROVIDER_ID","facebook.com"),Qo(Ci,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),R(bi,mi),Qo(bi,"PROVIDER_ID","github.com"),Qo(bi,"GITHUB_SIGN_IN_METHOD","github.com"),R(_i,mi),Qo(_i,"PROVIDER_ID","google.com"),Qo(_i,"GOOGLE_SIGN_IN_METHOD","google.com"),R(Ri,yi),Qo(Ri,"PROVIDER_ID","twitter.com"),Qo(Ri,"TWITTER_SIGN_IN_METHOD","twitter.com"),Ti.prototype.ja=function(e){return this.signInMethod==Di.EMAIL_LINK_SIGN_IN_METHOD?nl(e,Ds,{email:this.a,oobCode:this.f}):nl(e,$s,{email:this.a,password:this.f})},Ti.prototype.b=function(e,t){return this.signInMethod==Di.EMAIL_LINK_SIGN_IN_METHOD?nl(e,As,{idToken:t,email:this.a,oobCode:this.f}):nl(e,Bs,{idToken:t,email:this.a,password:this.f})},Ti.prototype.c=function(e,t){return ui(this.ja(e),t)},Ti.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Xo(Di,{PROVIDER_ID:"password"}),Xo(Di,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Xo(Di,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Ii.prototype.ja=function(e){return e.eb(Fi(this))},Ii.prototype.b=function(e,t){var n=Fi(this);return n.idToken=t,nl(e,Zs,n)},Ii.prototype.c=function(e,t){var n=Fi(this);return n.operation="REAUTH",ui(e=nl(e,el,n),t)},Ii.prototype.w=function(){var e={providerId:"phone"};return this.a.cb&&(e.verificationId=this.a.cb),this.a.bb&&(e.verificationCode=this.a.bb),this.a.La&&(e.temporaryProof=this.a.La),this.a.ea&&(e.phoneNumber=this.a.ea),e},ki.prototype.eb=function(e,t){var n=this.a.a;return Tt(t.verify()).then((function(o){if("string"!==typeof o)throw new S("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(t.type){case"recaptcha":var r=y(e)?e.session:null,i=y(e)?e.phoneNumber:e;return(r&&r.type==ai?r.Ha().then((function(e){return function(e,t){return nl(e,zs,t).then((function(e){return e.phoneSessionInfo.sessionInfo}))}(n,{idToken:e,phoneEnrollmentInfo:{phoneNumber:i,recaptchaToken:o}})})):r&&r.type==si?r.Ha().then((function(t){return function(e,t){return nl(e,Ys,t).then((function(e){return e.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:t,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:o}})})):function(e,t){return nl(e,Hs,t)}(n,{phoneNumber:i,recaptchaToken:o})).then((function(e){return"function"===typeof t.reset&&t.reset(),e}),(function(e){throw"function"===typeof t.reset&&t.reset(),e}));default:throw new S("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Xo(ki,{PROVIDER_ID:"phone"}),Xo(ki,{PHONE_SIGN_IN_METHOD:"phone"}),Wi.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},Wi.prototype.S=function(){return this.h},Wi.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var ji,Bi=null;function Ui(e){var t="unauthorized-domain",n=void 0,o=Gn(e);e=o.a,"chrome-extension"==(o=o.f)?n=je("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==o||"https"==o?n=je("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",S.call(this,t,n)}function zi(e,t,n){S.call(this,e,n),(e=t||{}).Ib&&Qo(this,"email",e.Ib),e.ea&&Qo(this,"phoneNumber",e.ea),e.credential&&Qo(this,"credential",e.credential),e.Yb&&Qo(this,"tenantId",e.Yb)}function Yi(e){if(e.code){var t=e.code||"";0==t.indexOf(D)&&(t=t.substring(D.length));var n={credential:Li(e),Yb:e.tenantId};if(e.email)n.Ib=e.email;
2else if(e.phoneNumber)n.ea=e.phoneNumber;else if(!n.credential)return new S(t,e.message||void 0);return new zi(t,n,e.message)}return null}function qi(){}function Ki(e){return e.c||(e.c=e.b())}function Qi(){}function Xi(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var o=t[n];try{return new ActiveXObject(o),e.f=o}catch(r){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function $i(){}function Ji(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=E(this.pc,this),this.a.onerror=E(this.Rb,this),this.a.onprogress=E(this.qc,this),this.a.ontimeout=E(this.uc,this)}function Zi(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function ea(e,t,n){this.reset(e,t,n,void 0,void 0)}R(Ui,S),R(zi,S),zi.prototype.w=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.w();return t&&ve(e,t),e},zi.prototype.toJSON=function(){return this.w()},qi.prototype.c=null,R(Qi,qi),Qi.prototype.a=function(){var e=Xi(this);return e?new ActiveXObject(e):new XMLHttpRequest},Qi.prototype.b=function(){var e={};return Xi(this)&&(e[0]=!0,e[1]=!0),e},ji=new Qi,R($i,qi),$i.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Ji;throw Error("Unsupported browser")},$i.prototype.b=function(){return{}},(t=Ji.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},t.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},t.pc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Zi(this,4)},t.Rb=function(){this.status=500,this.response=this.responseText="",Zi(this,4)},t.uc=function(){this.Rb()},t.qc=function(){this.status=200,Zi(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},ea.prototype.a=null;function ta(e){this.f=e,this.b=this.c=this.a=null}function na(e,t){this.name=e,this.value=t}ea.prototype.reset=function(e,t,n,o,r){"number"==typeof r||0,o||O(),delete this.a},na.prototype.toString=function(){return this.name};var oa=new na("SEVERE",1e3),ra=new na("WARNING",900),ia=new na("CONFIG",700),aa=new na("FINE",500);ta.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(M("Root logger has no level set."),null)}(this).value)for(g(t)&&(t=t()),e=new ea(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var sa,la={},ua=null;function ca(e){var t;if(ua||(ua=new ta(""),la[""]=ua,ua.c=ia),!(t=la[e])){t=new ta(e);var n=e.lastIndexOf("."),o=e.substr(n+1);(n=ca(e.substr(0,n))).b||(n.b={}),n.b[o]=t,t.a=n,la[e]=t}return t}function pa(e,t){e&&e.log(aa,t,void 0)}function da(e){this.f=e}function ha(e){wn.call(this),this.o=e,this.readyState=fa,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=ca("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}R(da,qi),da.prototype.a=function(){return new ha(this.f)},da.prototype.b=(sa={},function(){return sa}),R(ha,wn);var fa=0;function ga(e){e.c.read().then(e.oc.bind(e)).catch(e.Ta.bind(e))}function ya(e,t){t&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,va(e)}function va(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function ma(e){wn.call(this),this.headers=new Pn,this.O=e||null,this.c=!1,this.A=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.G=!1,this.g=0,this.o=null,this.m=Ca,this.u=this.R=!1}(t=ha.prototype).open=function(e,t){if(this.readyState!=fa)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=t,this.readyState=1,va(this)},t.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.i,method:this.m,credentials:void 0,cache:void 0};
2e&&(t.body=e),this.o.fetch(new Request(this.g,t)).then(this.tc.bind(this),this.Ta.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,ya(this,!1)),this.readyState=fa},t.tc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,va(this)),this.a&&(this.readyState=3,va(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.rc.bind(this),this.Ta.bind(this)):"undefined"!==typeof u.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,ga(this)):e.text().then(this.sc.bind(this),this.Ta.bind(this)))))},t.oc=function(e){if(this.a){var t=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?ya(this,!0):va(this),3==this.readyState&&ga(this)}},t.sc=function(e){this.a&&(this.response=this.responseText=e,ya(this,!0))},t.rc=function(e){this.a&&(this.response=e,ya(this,!0))},t.Ta=function(e){var t=this.h;t&&t.log(ra,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&ya(this,!0)},t.setRequestHeader=function(e,t){this.i.append(e,t)},t.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(ra,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(ra,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},R(ma,wn);var Ca="";ma.prototype.b=ca("goog.net.XhrIo");var wa=/^https?$/i,ba=["POST","PUT"];function Ea(e,t,n,o,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.P=n,e.G=!1,e.c=!0,e.a=e.O?e.O.a():ji.a(),e.A=e.O?Ki(e.O):Ki(ji),e.a.onreadystatechange=E(e.Ub,e);try{pa(e.b,Na(e,"Opening Xhr")),e.N=!0,e.a.open(n,String(t),!0),e.N=!1}catch(a){return pa(e.b,Na(e,"Error opening Xhr: "+a.message)),void Oa(e,a)}t=o||"";var i=new Pn(e.headers);r&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(f(e)||"string"===typeof e)U(e,t,void 0);else for(var n=Tn(e),o=Sn(e),r=o.length,i=0;i<r;i++)t.call(void 0,o[i],n&&n[i],e)}(r,(function(e,t){i.set(t,e)})),r=function(e){e:{for(var t=_a,n=e.length,o="string"===typeof e?e.split(""):e,r=0;r<n;r++)if(r in o&&t.call(void 0,o[r],r,e)){t=r;break e}t=-1}return 0>t?null:"string"===typeof e?e.charAt(t):e[t]}(i.Y()),o=u.FormData&&t instanceof u.FormData,!K(ba,n)||r||o||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.R&&(e.a.withCredentials=e.R);try{Pa(e),0<e.g&&(e.u=function(e){return qe&&rt(9)&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(e.a),pa(e.b,Na(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.u)),e.u?(e.a.timeout=e.g,e.a.ontimeout=E(e.Ma,e)):e.o=On(e.Ma,e.g,e)),pa(e.b,Na(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(a){pa(e.b,Na(e,"Send error: "+a.message)),Oa(e,a)}}function _a(e){return"content-type"==e.toLowerCase()}function Oa(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Ra(e),Ta(e)}function Ra(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function Sa(e){if(e.c&&"undefined"!=typeof l)if(e.A[1]&&4==Da(e)&&2==Aa(e))pa(e.b,Na(e,"Local request error detected and ignored"));else if(e.i&&4==Da(e))On(e.Ub,0,e);else if(e.dispatchEvent("readystatechange"),4==Da(e)){pa(e.b,Na(e,"Request complete")),e.c=!1;try{var t,n=Aa(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var o=!0;break e;default:o=!1}if(!(t=o)){var r;if(r=0===n){var i=String(e.l).match(Nn)[1]||null;if(!i&&u.self&&u.self.location){var a=u.self.location.protocol;i=a.substr(0,a.length-1)}r=!wa.test(i?i.toLowerCase():"")}t=r}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var s=2<Da(e)?e.a.statusText:""}catch(c){pa(e.b,"Can not get status: "+c.message),s=""}e.h=s+" ["+Aa(e)+"]",Ra(e)}}finally{Ta(e)}}}function Ta(e,t){if(e.a){Pa(e);var n=e.a,o=e.A[0]?d:null;e.a=null,e.A=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=o}catch(r){(e=e.b)&&e.log(oa,"Problem encountered resetting onreadystatechange: "+r.message,void 0)}}}function Pa(e){e.a&&e.u&&(e.a.ontimeout=null),e.o&&(u.clearTimeout(e.o),e.o=null)}function Da(e){return e.a?e.a.readyState:0}function Aa(e){try{return 2<Da(e)?e.a.status:-1}catch(t){return-1}}function Na(e,t){return t+" ["+e.P+" "+e.l+" "+Aa(e)+"]"}function Ia(e){var t=Ba;this.g=[],this.u=t,this.o=e||null,this.f=this.a=!1,this.c=void 0,this.m=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}
2function xa(e,t,n){e.a=!0,e.c=n,e.f=!t,La(e)}function Fa(e){if(e.a){if(!e.m)throw new Ga(e);e.m=!1}}function ka(e,t,n,o){e.g.push([t,n,o]),e.a&&La(e)}function Ma(e){return q(e.g,(function(e){return g(e[1])}))}function La(e){if(e.h&&e.a&&Ma(e)){var t=e.h,n=Ha[t];n&&(u.clearTimeout(n.a),delete Ha[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var o=n=!1;e.g.length&&!e.i;){var r=e.g.shift(),i=r[0],a=r[1];if(r=r[2],i=e.f?a:i)try{var s=i.call(r||e.o,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(x(t)||"function"===typeof u.Promise&&t instanceof u.Promise)&&(o=!0,e.i=!0)}catch(l){t=l,e.f=!0,Ma(e)||(n=!0)}}e.c=t,o&&(s=E(e.v,e,!0),o=E(e.v,e,!1),t instanceof Ia?(ka(t,s,o),t.A=!0):t.then(s,o)),n&&(t=new Va(t),Ha[t.a]=t,e.h=t.a)}function Ga(){F.call(this)}function Wa(){F.call(this)}function Va(e){this.a=u.setTimeout(E(this.c,this),0),this.b=e}(t=ma.prototype).Ma=function(){"undefined"!=typeof l&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",pa(this.b,Na(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(pa(this.b,Na(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ta(this))},t.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Ta(this,!0)),ma.$a.Da.call(this)},t.Ub=function(){this.xa||(this.N||this.i||this.f?Sa(this):this.Ic())},t.Ic=function(){Sa(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case Ca:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(oa,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(t){return pa(this.b,"Can not get response: "+t.message),null}},Ia.prototype.cancel=function(e){if(this.a)this.c instanceof Ia&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.u?this.u.call(this.o,this):this.m=!0,this.a||(e=new Wa(this),Fa(this),xa(this,!1,e))}},Ia.prototype.v=function(e,t){this.i=!1,xa(this,e,t)},Ia.prototype.then=function(e,t,n){var o,r,i=new wt((function(e,t){o=e,r=t}));return ka(this,o,(function(e){e instanceof Wa?i.cancel():r(e)})),i.then(e,t,n)},Ia.prototype.$goog_Thenable=!0,R(Ga,F),Ga.prototype.message="Deferred has already fired",Ga.prototype.name="AlreadyCalledError",R(Wa,F),Wa.prototype.message="Deferred was canceled",Wa.prototype.name="CanceledError",Va.prototype.c=function(){throw delete Ha[this.a],this.b};var Ha={};function ja(e){var t={},n=t.document||document,o=Re(e).toString(),r=dt(document,"SCRIPT"),i={Vb:r,Ma:void 0},a=new Ia(i),s=null,l=null!=t.timeout?t.timeout:5e3;return 0<l&&(s=window.setTimeout((function(){Ua(r,!0);var e=new qa(Ya,"Timeout reached for loading script "+o);Fa(a),xa(a,!1,e)}),l),i.Ma=s),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(Ua(r,t.wd||!1,s),Fa(a),xa(a,!0,null))},r.onerror=function(){Ua(r,!0,s);var e=new qa(za,"Error while loading script "+o);Fa(a),xa(a,!1,e)},ve(i=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),st(r,i),function(e,t){me(e,"HTMLScriptElement"),e.src=Re(t),null===p&&(p=(t=(t=u.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)?t:""),(t=p)&&e.setAttribute("nonce",t)}(r,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(r),a}function Ba(){if(this&&this.Vb){var e=this.Vb;e&&"SCRIPT"==e.tagName&&Ua(e,!0,this.Ma)}}function Ua(e,t,n){null!=n&&u.clearTimeout(n),e.onload=d,e.onerror=d,e.onreadystatechange=d,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var za=0,Ya=1;function qa(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),F.call(this,n),this.code=e}function Ka(e){this.f=e}function Qa(e,t,n){if(this.c=e,e=t||{},this.l=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.v=e.secureTokenTimeout||Ja,this.g=ge(e.secureTokenHeaders||Za),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.m=e.firebaseTimeout||es,this.a=ge(e.firebaseHeaders||ts),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==wo(),!(n=u.XMLHttpRequest||n&&o.INT
2ERNAL.node&&o.INTERNAL.node.XMLHttpRequest)&&!Co())throw new S("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,Co()?this.f=new da(self):bo()?this.f=new Ka(n):this.f=new $i,this.b=null}R(qa,F),R(Ka,qi),Ka.prototype.a=function(){return new this.f},Ka.prototype.b=function(){return{}};var Xa,$a="idToken",Ja=new Vo(3e4,6e4),Za={"Content-Type":"application/x-www-form-urlencoded"},es=new Vo(3e4,6e4),ts={"Content-Type":"application/json"};function ns(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function os(e,t){t&&(e.l=rs("https://securetoken.googleapis.com/v1/token",t),e.h=rs("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",t),e.i=rs("https://identitytoolkit.googleapis.com/v2/",t))}function rs(e,t){return e=Gn(e),t=Gn(t.url),e.c=e.a+e.c,xn(e,t.f),e.a=t.a,Fn(e,t.g),e.toString()}function is(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function as(e,t,n,o,r,i,a){(function(){var e=To();return!((e=Oo(e)!=_o?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!qe||!nt||9<nt)})()||Co()?e=E(e.u,e):(Xa||(Xa=new wt((function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{u[ls]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){ka(e,null,t,void 0)}(ja(Se(ss,{onload:ls})),(function(){t(Error("CORS_UNSUPPORTED"))}))}}(e,t)}))),e=E(e.o,e)),e(t,n,o,r,i,a)}Qa.prototype.S=function(){return this.b},Qa.prototype.u=function(e,t,n,o,r,i){if(Co()&&("undefined"===typeof u.fetch||"undefined"===typeof u.Headers||"undefined"===typeof u.Request))throw new S("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new ma(this.f);if(i){a.g=Math.max(0,i);var s=setTimeout((function(){a.dispatchEvent("timeout")}),i)}bn(a,"complete",(function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return pa(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(n){e=null}t&&t(e)})),En(a,"ready",(function(){s&&clearTimeout(s),Ut(this)})),En(a,"timeout",(function(){s&&clearTimeout(s),Ut(this),t&&t(null)})),Ea(a,e,n,o,r)};var ss=new Ce(Ee,"https://apis.google.com/js/client.js?onload=%{onload}"),ls="__fcb"+Math.floor(1e6*Math.random()).toString();function us(e,t,n,o,r,i,a){var s=Gn(t+n);Mn(s,"key",e.c),a&&Mn(s,"cb",O().toString());var l="GET"==o;if(l)for(var u in r)r.hasOwnProperty(u)&&Mn(s,u,r[u]);return new wt((function(t,n){as(e,s.toString(),(function(e){e?e.error?n(rl(e,i||{})):t(e):n(new S("network-request-failed"))}),o,l?void 0:no(ko(r)),e.a,e.m.get())}))}function cs(e){if("string"!==typeof(e=e.email)||!go.test(e))throw new S("invalid-email")}function ps(e){"email"in e&&cs(e)}function ds(e){if(!e[$a]){if(e.mfaPendingCredential)throw new S("multi-factor-auth-required",null,ge(e));throw new S("internal-error")}}function hs(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new S("internal-error")}else{if(!e.sessionInfo)throw new S("missing-verification-id");if(!e.code)throw new S("missing-verification-code")}}Qa.prototype.o=function(e,t,n,o,r){var i=this;Xa.then((function(){window.gapi.client.setApiKey(i.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:o,headers:r,authType:"none",callback:function(e){window.gapi.auth.setToken(a),t&&t(e)}})})).s((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},Qa.prototype.yb=function(){return nl(this,Us,{})},Qa.prototype.Ab=function(e,t){return nl(this,js,{idToken:e,email:t})},Qa.prototype.Bb=function(e,t){return nl(this,Bs,{idToken:e,password:t})};var fs={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function gs(e){if(!e.phoneVerificationInfo)throw new S("internal-error");if(!e.phoneVerificationInfo.sessionInfo)throw new S("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new S("missing-verification-code")}function ys(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new S("internal-error")}function vs(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&
2(e.sessionId?t.nonce=e.sessionId:e.postBody&&(Jn(e=new Kn(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function ms(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=Yi(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=Yi(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=Yi(e)):e.errorMessage&&(t=ol(e.errorMessage)),t)throw t;ds(e)}function Cs(e,t){return t.returnIdpCredential=!0,nl(e,qs,t)}function ws(e,t){return t.returnIdpCredential=!0,nl(e,Qs,t)}function bs(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,nl(e,Ks,t)}function Es(e){if(!e.oobCode)throw new S("invalid-action-code")}(t=Qa.prototype).Cb=function(e,t){var n={idToken:e},o=[];return he(fs,(function(e,r){var i=t[r];null===i?o.push(e):r in t&&(n[r]=i)})),o.length&&(n.deleteAttribute=o),nl(this,js,n)},t.ub=function(e,t){return ve(e={requestType:"PASSWORD_RESET",email:e},t),nl(this,Ls,e)},t.vb=function(e,t){return ve(e={requestType:"EMAIL_SIGNIN",email:e},t),nl(this,Fs,e)},t.tb=function(e,t){return ve(e={requestType:"VERIFY_EMAIL",idToken:e},t),nl(this,ks,e)},t.Db=function(e,t,n){return ve(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),nl(this,Ms,e)},t.eb=function(e){return nl(this,Js,e)},t.mb=function(e,t){return nl(this,Vs,{oobCode:e,newPassword:t})},t.Qa=function(e){return nl(this,Os,{oobCode:e})},t.ib=function(e){return nl(this,_s,{oobCode:e})};var _s={endpoint:"setAccountInfo",B:Es,Z:"email",C:!0},Os={endpoint:"resetPassword",B:Es,F:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new S("internal-error")},C:!0},Rs={endpoint:"signupNewUser",B:function(e){if(cs(e),!e.password)throw new S("weak-password")},F:ds,U:!0,C:!0},Ss={endpoint:"createAuthUri",C:!0},Ts={endpoint:"deleteAccount",M:["idToken"]},Ps={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],B:function(e){if("array"!=h(e.deleteProvider))throw new S("internal-error")}},Ds={endpoint:"emailLinkSignin",M:["email","oobCode"],B:cs,F:ds,U:!0,C:!0},As={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],B:cs,F:ds,U:!0},Ns={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],B:gs,F:ds,C:!0,Na:!0},Is={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],B:gs,F:ds,C:!0,Na:!0},xs={endpoint:"getAccountInfo"},Fs={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new S("internal-error");cs(e)},Z:"email",C:!0},ks={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],B:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new S("internal-error")},Z:"email",C:!0},Ms={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],B:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new S("internal-error")},Z:"email",C:!0},Ls={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(e){if("PASSWORD_RESET"!=e.requestType)throw new S("internal-error");cs(e)},Z:"email",C:!0},Gs={kb:!0,endpoint:"getProjectConfig",Tb:"GET"},Ws={kb:!0,endpoint:"getRecaptchaParam",Tb:"GET",F:function(e){if(!e.recaptchaSiteKey)throw new S("internal-error")}},Vs={endpoint:"resetPassword",B:Es,Z:"email",C:!0},Hs={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Z:"sessionInfo",C:!0},js={endpoint:"setAccountInfo",M:["idToken"],B:ps,U:!0},Bs={endpoint:"setAccountInfo",M:["idToken"],B:function(e){if(ps(e),!e.password)throw new S("weak-password")},F:ds,U:!0},Us={endpoint:"signupNewUser",F:ds,U:!0,C:!0},zs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],B:function(e){if(!e.phoneEnrollmentInfo)throw new S("internal-error");if(!e.phoneEnrollmentInfo.phoneNumber)throw new S("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new S("missing-app-credential")},F:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new S("internal-error")},C:!0,Na:!0},Ys={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],B:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new S("missing-app-credential")},F:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new S("internal-error")},C:!0,Na:!0},qs={endpoint:"verifyAssertion",B:ys,Xa:vs,F:ms,U:!0,C:!0},Ks={endpoint:"verifyAssertion",B:ys,Xa:vs,F:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new S("user-not-found");if(e.errorMessage)throw ol(e.errorMessage);ds(e)},U:!0,C:!0},Qs={endpoint:"verifyAssertion",B:function(e){if(ys(e),!e.idToken)throw new S("internal-error")},Xa:vs,F:ms,U:!0},Xs={endpoint:"verifyCustomToken",B:function(e){if(!e.token)throw new S("invalid-custom-token")},F:ds,U:!0,C:!0},$s={endpoint:"verifyPassword",B:function(e){if(cs(e),!e.password)throw new S("wrong-password")},F:ds,U:!0,C:!0},Js={endpoint:"verifyPhoneNumber",B:hs,F:ds,C:!0},Zs={endpoint:"verifyPhoneNumber",B:function(e){if(!e.idToken)throw new S("internal-error");hs(e)},F:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",Yi(e);ds(e)}},el={Gb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:hs,F:ds,C:!0},tl={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],F:function(e){if(!!e[$a]^!!e.refreshToken)throw new S("internal-error")},C:!0,Na:!0};function nl(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;
2if(!e)return!1;for(var n=0;n<t.length;n++){var o=e[t[n]];if(void 0===o||null===o||""===o)return!1}return!0}(n,t.M))return Pt(new S("internal-error"));var o,r=!!t.Na,i=t.Tb||"POST";return Tt(n).then(t.B).then((function(){return t.U&&(n.returnSecureToken=!0),t.C&&e.b&&"undefined"===typeof n.tenantId&&(n.tenantId=e.b),us(e,r?e.i:e.h,t.endpoint,i,n,t.Gb,t.kb||!1)})).then((function(e){return o=e,t.Xa?t.Xa(n,o):o})).then(t.F).then((function(){if(!t.Z)return o;if(!(t.Z in o))throw new S("internal-error");return o[t.Z]}))}function ol(e){return rl({error:{errors:[{message:e}],code:400,message:e}})}function rl(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",o={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=o[n]?new S(o[n]):null)return n;for(var r in n=e.error&&e.error.message||"",ve(o={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
2NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,o)if(0===n.indexOf(r))return new S(o[r],t);return!t&&e&&(t=Fo(e)),new S("internal-error",t)}function il(e){this.b=e,this.a=null,this.qb=function(e){return(ul||(ul=new wt((function(e,t){function n(){Wo(),Po("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){Wo(),t(Error("Network Error"))},timeout:sl.get()})}if(Po("gapi.iframes.Iframe"))e();else if(Po("gapi.load"))n();else{var o="__iframefcb"+Math.floor(1e6*Math.random()).toString();u[o]=function(){Po("gapi.load")?n():t(Error("Network Error"))},Tt(ja(o=Se(al,{onload:o}))).s((function(){t(Error("Network Error"))}))}})).s((function(e){throw ul=null,e})))).then((function(){return new wt((function(t,n){Po("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:Po("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(o){function r(){clearTimeout(i),t()}e.a=o,e.a.restyle({setHideOnLeave:!1});var i=setTimeout((function(){n(Error("Network Error"))}),ll.get());o.ping(r).then(r,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var al=new Ce(Ee,"https://apis.google.com/js/api.js?onload=%{onload}"),sl=new Vo(3e4,6e4),ll=new Vo(5e3,15e3),ul=null;function cl(e,t,n,o){this.l=e,this.h=t,this.i=n,this.g=o,this.f=null,this.g?e=Wn((e=Gn(this.g.url)).f,e.a,e.g,"/emulator/auth/iframe"):e=Wn("https",this.l,null,"/__/auth/iframe"),this.a=e,Mn(this.a,"apiKey",this.h),Mn(this.a,"appName",this.i),this.b=null,this.c=[]}function pl(e,t,n,o,r,i){this.u=e,this.o=t,this.c=n,this.v=o,this.m=i,this.i=this.g=this.l=null,this.a=r,this.h=this.f=null}function dl(e){try{return o.app(e).auth().Ga()}catch(t){return[]}}function hl(e,t,n,o,r,i){this.o=e,this.g=t,this.b=n,this.f=i,this.c=o||null,this.i=r||null,this.l=this.u=this.A=null,this.h=[],this.v=this.a=null}function fl(e){var t=lo();return function(e){return nl(e,Gs,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=Gn(t),o=n.f;n=n.a;for(var r=0;r<e.length;r++){var i=e[r],a=n,s=o;if(0==i.indexOf("chrome-extension://")?a=Gn(i).a==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:fo.test(i)?a=a==i:(i=i.split(".").join("\\."),a=new RegExp("^(.+\\."+i+"|"+i+")$","i").test(a)),a){e=!0;break e}}e=!1}if(!e)throw new Ui(lo())}))}function gl(e){return e.v?e.v:(e.v=yo().then((function(){if(!e.u){var t=e.c,n=e.i,o=dl(e.b),r=new cl(e.o,e.g,e.b,e.f);r.f=t,r.b=n,r.c=J(o||[]),e.u=r.toString()}e.m=new il(e.u),function(e){if(!e.m)throw Error("IfcHandler must be initialized!");!function(e,t){e.qb.then((function(){e.a.register("authEvent",t,Po("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.m,(function(t){var n={};if(t&&t.authEvent){var o=!1;for(t=Vi(t.authEvent),n=0;n<e.h.length;n++)o=e.h[n](t)||o;return(n={}).status=o?"ACK":"ERROR",Tt(n)}return n.status="ERROR",Tt(n)}))}(e)})),e.v)}function yl(e){return e.l||(e.A=e.c?So(e.c,dl(e.b)):null,e.l=new Qa(e.g,I(e.i),e.A),e.f&&os(e.l,e.f)),e.l}function vl(e,t,n,o,r,i,a,s,l,u,c,p){return(e=new pl(e,t,n,o,r,p)).l=i,e.g=a,e.i=s,e.b=ge(l||null),e.f=u,e.xb(c).toString()}function ml(e){if(this.a=e||o.INTERNAL.reactNative&&o.INTERNAL.reactNative.AsyncStorage,!this.a)throw new S("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function Cl(e){this.b=e,this.a={},this.f=E(this.c,this)}cl.prototype.toString=function(){return this.f?Mn(this.a,"v",this.f):$n(this.a.b,"v"),this.b?Mn(this.a,"eid",this.b):$n(this.a.b,"eid"),this.c.length?Mn(this.a,"fw",this.c.join(",")):$n(this.a.b,"fw"),this.a.toString()},pl.prototype.xb=function(e){return this.h=e,this},pl.prototype.toString=function(){if(this.m){var e=Gn(this.m.url);e=Wn(e.f,e.a,e.g,"/emulator/auth/handler")}else e=Wn("https",this.u,null,"/__/auth/handler");if(Mn(e,"apiKey",this.o),Mn(e,"appName",this.c),Mn(e,"authType",this.v),this.a.isOAuthProvider){var t=this.a;try{var n=o.app(this.c).auth().ka()}catch(l){n=null}for(var r in t.nb=n,Mn(e,"providerId",this.a.providerId),t=ko((n=this.a).Hb))t[r]=t[r].toString();r=n.Pc,t=ge(t);for(var i=0;i<r.length;i++){var a=r[i];a in t&&delete t[a]}n.ob&&n.nb&&!t[n.ob]&&(t[n.ob]=n.nb),fe(t)||Mn(e,"customParameters",Fo(t))}if("function"===typeof this.a.Pb&&((n=this.a.Pb()).length&&Mn(e,"scopes",n.join(","))),this.l?Mn(e,"redirectUrl",this.l):$n(e.b,"redirectUrl"),this.g?Mn(e,"eventId",this.g):$n(e.b,"eventId"),this.i?Mn(e,"v",this.i):$n(e.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Ln(e,s)&&Mn(e,s,this.b[s]);return this.h?Mn(e,"tid",this.h):$n(e.b,"tid"),this.f?Mn(e,"eid",this.f):$n(e.b,"eid"),(s=dl(this.c)).length&&Mn(e,"fw",s.join(",")),e.toString()},(t=hl.prototype).Nb=function(e,t,n){var o=new S("popup-closed-by-user"),r=new S("web-storage-unsupported"),i=this,a=!1;return this.la().then((function(){(function(e){var t={type:"webStorageSupport"};return gl(e).then((function(){return function(e,t){return e.qb.then((function(){return new wt((function(n){e.a.send(t.type,t,n,Po("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.m,t)})).then((function(e){if(e&&e.length&&"undefined"!==typeof e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()}))})(i).then((function(n){n||(e&&po(e),t(r),a=!0)}))})).s((function(){})).then((function(){if(!a)return function(e){return new wt((function(t){return function n(){Rn(2e3).then((function(){if(e&&!e.closed)return n();t()}))}()}))}(e)})).then((function(){if(!a)return Rn(n).then((function(){t(o)}))}))},t.Wb=function(){var e=To();return!xo(e)&&!Go(e)},t.Sb=function(){return!1}
2,t.Lb=function(e,t,n,o,r,i,a,s){if(!e)return Pt(new S("popup-blocked"));if(a&&!xo())return this.la().s((function(t){po(e),r(t)})),o(),Tt();this.a||(this.a=fl(yl(this)));var l=this;return this.a.then((function(){var t=l.la().s((function(t){throw po(e),r(t),t}));return o(),t})).then((function(){(Gi(n),a)||uo(vl(l.o,l.g,l.b,t,n,null,i,l.c,void 0,l.i,s,l.f),e)})).s((function(e){throw"auth/network-request-failed"==e.code&&(l.a=null),e}))},t.Mb=function(e,t,n,o){this.a||(this.a=fl(yl(this)));var r=this;return this.a.then((function(){Gi(t),uo(vl(r.o,r.g,r.b,e,t,lo(),n,r.c,void 0,r.i,o,r.f))})).s((function(e){throw"auth/network-request-failed"==e.code&&(r.a=null),e}))},t.la=function(){var e=this;return gl(this).then((function(){return e.m.qb})).s((function(){throw e.a=null,new S("network-request-failed")}))},t.Zb=function(){return!0},t.Ea=function(e){this.h.push(e)},t.Ra=function(e){X(this.h,(function(t){return t==e}))},(t=ml.prototype).get=function(e){return Tt(this.a.getItem(e)).then((function(e){return e&&Mo(e)}))},t.set=function(e,t){return Tt(this.a.setItem(e,Fo(t)))},t.T=function(e){return Tt(this.a.removeItem(e))},t.ca=function(){},t.ia=function(){};var wl,bl=[];function El(e,t,n){fe(e.a)&&e.b.addEventListener("message",e.f),"undefined"===typeof e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function _l(e){this.a=e}function Ol(e){this.c=e,this.b=!1,this.a=[]}function Rl(e,t,n,o){var r,i,a,s,l=n||{},u=null;if(e.b)return Pt(Error("connection_unavailable"));var c=o?800:50,p="undefined"!==typeof MessageChannel?new MessageChannel:null;return new wt((function(n,o){p?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),p.port1.start(),a=setTimeout((function(){o(Error("unsupported_event"))}),c),u={messageChannel:p,onMessage:i=function(e){e.data.eventId===r&&("ack"===e.data.status?(clearTimeout(a),s=setTimeout((function(){o(Error("timeout"))}),3e3)):"done"===e.data.status?(clearTimeout(s),"undefined"!==typeof e.data.response?n(e.data.response):o(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),o(Error("invalid_response"))))}},e.a.push(u),p.port1.addEventListener("message",i),e.c.postMessage({eventType:t,eventId:r,data:l},[p.port2])):o(Error("connection_unavailable"))})).then((function(t){return Sl(e,u),t})).s((function(t){throw Sl(e,u),t}))}function Sl(e,t){if(t){var n=t.messageChannel,o=t.onMessage;n&&(n.port1.removeEventListener("message",o),n.port1.close()),X(e.a,(function(e){return e==t}))}}function Tl(){if(!Al())throw new S("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=u.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var e=this;Co()&&self?(this.l=function(){var e=Co()?self:null;if(U(bl,(function(n){n.b==e&&(t=n)})),!t){var t=new Cl(e);bl.push(t)}return t}(),El(this.l,"keyChanged",(function(t,n){return kl(e).then((function(t){return 0<t.length&&U(e.a,(function(e){e(t)})),{keyProcessed:K(t,n.key)}}))})),El(this.l,"ping",(function(){return Tt(["keyChanged"])}))):function(){var e=u.navigator;return e&&e.serviceWorker?Tt().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).s((function(){return null})):Tt(null)}().then((function(t){(e.h=t)&&(e.g=new Ol(new _l(t)),Rl(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&K(t[0].value,"keyChanged")&&(e.o=!0)})).s((function(){})))}))}function Pl(e){return new wt((function(t,n){var o=e.m.open("firebaseLocalStorageDb",1);o.onerror=function(e){try{e.preventDefault()}catch(t){}n(Error(e.target.error))},o.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(t){n(t)}},o.onsuccess=function(o){(o=o.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(o):function(e){return new wt((function(t,n){var o=e.m.deleteDatabase("firebaseLocalStorageDb");o.onsuccess=function(){t()},o.onerror=function(e){n(Error(e.target.error))}}))}(e).then((function(){return Pl(e)})).then((function(e){t(e)})).s((function(e){n(e)}))}}))}function Dl(e){return e.v||(e.v=Pl(e)),e.v}function Al(){try{return!!u.indexedDB}catch(sa){return!1}}function Nl(e){return e.objectStore("firebaseLocalStorage")}function Il(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function xl(e){return new wt((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function Fl(e,t){return e.g&&e.h&&function(){var e=u.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?Rl(e.g,"keyChanged",{key:t},e.o).then((function(){})).s((function(){})):Tt()}function kl(e){return Dl(e).then((function(e){var t=Nl(Il(e,!1));return t.getAll?xl(t.getAll()):new wt((function(e,n){var o=[],r=t.openCursor();r.onsuccess=function(t){(t=t.target.result)?(o.push(t.value),t.continue()):e(o)},r.onerror=function(e){n(e.target.error)}}))})).then((function(t){var n={},o=[];if(0==e.b){for(o=0;o<t.length;o++)n[t[o].fbase_key]=t[o].value;o=function e(t,n){var o,r=[];for(o in t)o in n?typeof t[o]!=typeof n[o]?r.push(o):"object"==typeof t[o]&&null!=t[o
2]&&null!=n[o]?0<e(t[o],n[o]).length&&r.push(o):t[o]!==n[o]&&r.push(o):r.push(o);for(o in n)o in t||r.push(o);return r}(e.c,n),e.c=n}return o}))}function Ml(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Ll(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=Tt().then((function(){if(Al()){var e=Lo(),o="__sak"+e;return wl||(wl=new Tl),(n=wl).set(o,e).then((function(){return n.get(o)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.T(o)})).then((function(){return n})).s((function(){return t.c}))}return t.c})).then((function(e){return t.type=e.type,e.ca((function(e){U(t.a,(function(t){t(e)}))})),e}))}function Gl(){this.a={},this.type="inMemory"}function Wl(){if(!function(){var e="Node"==wo();if(!(e=Vl()||e&&o.INTERNAL.node&&o.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(t){return!1}}()){if("Node"==wo())throw new S("internal-error","The LocalStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=Vl()||o.INTERNAL.node.localStorage,this.type="localStorage"}function Vl(){try{var e=u.localStorage,t=Lo();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function Hl(){this.type="nullStorage"}function jl(){if(!function(){var e="Node"==wo();if(!(e=Bl()||e&&o.INTERNAL.node&&o.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(t){return!1}}()){if("Node"==wo())throw new S("internal-error","The SessionStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=Bl()||o.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Bl(){try{var e=u.sessionStorage,t=Lo();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function Ul(){var e={};e.Browser=ql,e.Node=Kl,e.ReactNative=Ql,e.Worker=Xl,this.a=e[wo()]}Cl.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,o=this.a[t];if(o&&0<o.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var r=[];U(o,(function(t){r.push(Tt().then((function(){return t(e.origin,e.data.data)})))})),At(r).then((function(o){var r=[];U(o,(function(e){r.push({fulfilled:e.Ob,value:e.value,reason:e.reason?e.reason.message:void 0})})),U(r,(function(e){for(var t in e)"undefined"===typeof e[t]&&delete e[t]})),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:r})}))}},_l.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},Ol.prototype.close=function(){for(;0<this.a.length;)Sl(this,this.a[0]);this.b=!0},(t=Tl.prototype).set=function(e,t){var n,o=!1,r=this;return Dl(this).then((function(t){return xl((t=Nl(Il(n=t,!0))).get(e))})).then((function(i){var a=Nl(Il(n,!0));return i?(i.value=t,xl(a.put(i))):(r.b++,o=!0,(i={}).fbase_key=e,i.value=t,xl(a.add(i)))})).then((function(){return r.c[e]=t,Fl(r,e)})).na((function(){o&&r.b--}))},t.get=function(e){return Dl(this).then((function(t){return xl(Nl(Il(t,!1)).get(e))})).then((function(e){return e&&e.value}))},t.T=function(e){var t=!1,n=this;return Dl(this).then((function(o){return t=!0,n.b++,xl(Nl(Il(o,!0)).delete(e))})).then((function(){return delete n.c[e],Fl(n,e)})).na((function(){t&&n.b--}))},t.ca=function(e){0==this.a.length&&function(e){Ml(e),function t(){e.f=setTimeout((function(){e.i=kl(e).then((function(t){0<t.length&&U(e.a,(function(e){e(t)}))})).then((function(){t()})).s((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}()}(this),this.a.push(e)},t.ia=function(e){X(this.a,(function(t){return t==e})),0==this.a.length&&Ml(this)},(t=Ll.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},t.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},t.T=function(e){return this.b.then((function(t){return t.T(e)}))},t.ca=function(e){this.a.push(e)},t.ia=function(e){X(this.a,(function(t){return t==e}))},(t=Gl.prototype).get=function(e){return Tt(this.a[e])},t.set=function(e,t){return this.a[e]=t,Tt()},t.T=function(e){return delete this.a[e],Tt()},t.ca=function(){},t.ia=function(){},(t=Wl.prototype).get=function(e){var t=this;return Tt().then((function(){return Mo(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return Tt().then((function(){var o=Fo(t);null===o?n.T(e):n.a.setItem(e,o)}))},t.T=function(e){var t=this;return Tt().then((function(){t.a.removeItem(e)}))},t.ca=function(e){u.window&&ln(u.window,"storage",e)},t.ia=function(e){u.window&&pn(u.window,"storage",e)},(t=Hl.prototype).get=function(){return Tt(null)},t.set=function(){return Tt()},t.T=function(){return Tt()},t.ca=function(){},t.ia=function(){},(t=jl.prototype).get=function(e){var t=this;return Tt().then((function(){return Mo(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return Tt().then((function(){var o=Fo(t);null===o?n.T(e):n.a.setItem(e,o)}))},t.T=function(e){var t=this;return Tt().then((function(){t.a.removeItem(e)}))},t.ca=function(){},t.ia=function(){};var zl,Yl,ql={D:Wl,ab:jl},Kl={D:Wl,ab:jl},Ql={D:ml,ab:Hl},Xl={D:Wl,ab:Hl},$l={qd:"local",NONE:"none",sd:"session"};function Jl(){var e=!(Go(To())||!mo()),t=xo(),n=Do();this.v=e,this.h=t,this.l=n,this.a={},zl||(zl=new Ul),e=zl;try{this.g=!so()&&Uo()||!u.indexedDB?new e.a.D:new Ll(Co()?new Gl:new e.a.D)}catch(o){this.g=new Gl,this.h=!0}try{this.i=new e.a.ab}catch(o){this.i=new Gl}this.m=new Gl,this.f=E(this.Xb,this),this.b={}}
2function Zl(){return Yl||(Yl=new Jl),Yl}function eu(e,t){switch(t){case"session":return e.i;case"none":return e.m;default:return e.g}}function tu(e,t){return"firebase:"+e.name+(t?":"+t:"")}function nu(e,t,n){return n=tu(t,n),"local"==t.D&&(e.b[n]=null),eu(e,t.D).T(n)}function ou(e){e.c&&(clearInterval(e.c),e.c=null)}function ru(e){this.a=e,this.b=Zl()}(t=Jl.prototype).get=function(e,t){return eu(this,e.D).get(tu(e,t))},t.set=function(e,t,n){var o=tu(e,n),r=this,i=eu(this,e.D);return i.set(o,t).then((function(){return i.get(o)})).then((function(t){"local"==e.D&&(r.b[o]=t)}))},t.addListener=function(e,t,n){e=tu(e,t),this.l&&(this.b[e]=u.localStorage.getItem(e)),fe(this.a)&&(eu(this,"local").ca(this.f),this.h||(so()||!Uo())&&u.indexedDB||!this.l||function(e){ou(e),e.c=setInterval((function(){for(var t in e.a){var n=u.localStorage.getItem(t),o=e.b[t];n!=o&&(e.b[t]=n,n=new Xt({type:"storage",key:t,target:window,oldValue:o,newValue:n,a:!0}),e.Xb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},t.removeListener=function(e,t,n){e=tu(e,t),this.a[e]&&(X(this.a[e],(function(e){return e==n})),0==this.a[e].length&&delete this.a[e]),fe(this.a)&&(eu(this,"local").ia(this.f),ou(this))},t.Xb=function(e){if(e&&e.g){var t=e.a.key;if(null==t)for(var n in this.a){var o=this.b[n];"undefined"===typeof o&&(o=null);var r=u.localStorage.getItem(n);r!==o&&(this.b[n]=r,this.lb(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if("undefined"!==typeof e.a.a?eu(this,"local").ia(this.f):ou(this),this.v)if(n=u.localStorage.getItem(t),(o=e.a.newValue)!==n)null!==o?u.localStorage.setItem(t,o):u.localStorage.removeItem(t);else if(this.b[t]===o&&"undefined"===typeof e.a.a)return;var i=this;n=function(){"undefined"===typeof e.a.a&&i.b[t]===u.localStorage.getItem(t)||(i.b[t]=u.localStorage.getItem(t),i.lb(t))},qe&&nt&&10==nt&&u.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else U(e,E(this.lb,this))},t.lb=function(e){this.a[e]&&U(this.a[e],(function(e){e()}))};var iu,au={name:"authEvent",D:"local"};function su(){this.a=Zl()}function lu(e,t){this.b=uu,this.f=u.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=u.Int32Array?new Int32Array(64):Array(64),void 0===iu&&(iu=u.Int32Array?new Int32Array(yu):yu),this.reset()}R(lu,(function(){this.b=-1}));for(var uu=64,cu=uu-1,pu=[],du=0;du<cu;du++)pu[du]=0;var hu=$(128,pu);function fu(e){for(var t=e.f,n=e.l,o=0,r=0;r<t.length;)n[o++]=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3],r=4*o;for(t=16;64>t;t++){r=0|n[t-15],o=0|n[t-2];var i=(0|n[t-16])+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|n[t-7])+((o>>>17|o<<15)^(o>>>19|o<<13)^o>>>10)|0;n[t]=i+a|0}o=0|e.a[0],r=0|e.a[1];var s=0|e.a[2],l=0|e.a[3],u=0|e.a[4],c=0|e.a[5],p=0|e.a[6];for(i=0|e.a[7],t=0;64>t;t++){var d=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&r^o&s^r&s)|0;a=(i=i+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))|0)+((a=(a=u&c^~u&p)+(0|iu[t])|0)+(0|n[t])|0)|0,i=p,p=c,c=u,u=l+a|0,l=s,s=r,r=o,o=a+d|0}e.a[0]=e.a[0]+o|0,e.a[1]=e.a[1]+r|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+l|0,e.a[4]=e.a[4]+u|0,e.a[5]=e.a[5]+c|0,e.a[6]=e.a[6]+p|0,e.a[7]=e.a[7]+i|0}function gu(e,t,n){void 0===n&&(n=t.length);var o=0,r=e.c;if("string"===typeof t)for(;o<n;)e.f[r++]=t.charCodeAt(o++),r==e.b&&(fu(e),r=0);else{if(!f(t))throw Error("message must be string or array");for(;o<n;){var i=t[o++];if(!("number"==typeof i&&0<=i&&255>=i&&i==(0|i)))throw Error("message must be a byte array");e.f[r++]=i,r==e.b&&(fu(e),r=0)}}e.c=r,e.g+=n}lu.prototype.reset=function(){this.g=this.c=0,this.a=u.Int32Array?new Int32Array(this.h):J(this.h)};var yu=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
2734187,3204031479,3329325298];function vu(){lu.call(this,8,mu)}R(vu,lu);var mu=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Cu(e,t,n,o,r,i){this.m=e,this.i=t,this.l=n,this.v=o||null,this.u=r||null,this.o=i,this.h=t+":"+n,this.A=new su,this.g=new ru(this.h),this.f=null,this.b=[],this.a=this.c=null}function wu(e){return new S("invalid-cordova-configuration",e)}function bu(e){var t=new vu;gu(t,e),e=[];var n=8*t.g;56>t.c?gu(t,hu,56-t.c):gu(t,hu,t.b-(t.c-56));for(var o=63;56<=o;o--)t.f[o]=255&n,n/=256;for(fu(t),o=n=0;o<t.i;o++)for(var r=24;0<=r;r-=8)e[n++]=t.a[o]>>r&255;return function(e){return Y(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join("")}(e)}function Eu(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(o){}}function _u(e){return e.f||(e.f=e.la().then((function(){return new wt((function(t){e.Ea((function n(o){return t(o),e.Ra(n),!1})),function(e){function t(t){o=!0,r&&r.cancel(),Ou(e).then((function(o){var r=n;if(o&&t&&t.url){var i=null;-1!=(r=ri(t.url)).indexOf("/__/auth/callback")&&(i=(i="object"===typeof(i=Mo(Ln(i=Gn(r),"firebaseError")||null))?T(i):null)?new Wi(o.c,o.b,null,null,i,null,o.S()):new Wi(o.c,o.b,r,o.f,null,null,o.S())),r=i||n}Eu(e,r)}))}var n=new Wi("unknown",null,null,null,new S("no-auth-event")),o=!1,r=Rn(500).then((function(){return Ou(e).then((function(){o||Eu(e,n)}))})),i=u.handleOpenURL;u.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(Po("BuildInfo.packageName",u).toLowerCase()+"://")&&t({url:e}),"function"===typeof i)try{i(e)}catch(n){console.error(n)}},Bi||(Bi=new Hi),function(e){var t=Bi;t.a.push(e),t.b||(t.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"===typeof(e=Po("universalLinks.subscribe",u))&&e(null,t.b))}(t)}(e)}))}))),e.f}function Ou(e){var t=null;return function(e){return e.b.get(au,e.a).then((function(e){return Vi(e)}))}(e.g).then((function(n){return t=n,nu((n=e.g).b,au,n.a)})).then((function(){return t}))}function Ru(e){this.a=e,this.b=Zl()}(t=Cu.prototype).la=function(){return this.Ia?this.Ia:this.Ia=(vo(void 0)?yo().then((function(){return new wt((function(e,t){var n=u.document,o=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(o),e()}),!1)}))})):Pt(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!==typeof Po("universalLinks.subscribe",u))throw wu("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof Po("BuildInfo.packageName",u))throw wu("cordova-plugin-buildinfo is not installed");if("function"!==typeof Po("cordova.plugins.browsertab.openUrl",u))throw wu("cordova-plugin-browsertab is not installed");if("function"!==typeof Po("cordova.InAppBrowser.open",u))throw wu("cordova-plugin-inappbrowser is not installed")}),(function(){throw new S("cordova-not-ready")}))},t.Nb=function(e,t){return t(new S("operation-not-supported-in-this-environment")),Tt()},t.Lb=function(){return Pt(new S("operation-not-supported-in-this-environment"))},t.Zb=function(){return!1},t.Wb=function(){return!0},t.Sb=function(){return!0},t.Mb=function(e,t,n,o){if(this.c)return Pt(new S("redirect-operation-pending"));var r=this,i=u.document,a=null,s=null,l=null,c=null;return this.c=Tt().then((function(){return Gi(t),_u(r)})).then((function(){return function(e,t,n,o,r){var i=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),a=new Wi(t,o,null,i,new S("no-auth-event"),null,r),s=Po("BuildInfo.packageName",u);if("string"!==typeof s)throw new S("invalid-cordova-configuration");var l=Po("BuildInfo.displayName",u),c={};if(To().toLowerCase().match(/iphone|ipad|ipod/))c.ibi=s;else{if(!To().toLowerCase().match(/android/))return Pt(new S("operation-not-supported-in-this-environment"));c.apn=s}l&&(c.appDisplayName=l),i=bu(i),c.sessionId=i;var p=vl(e.m,e.i,e.l,t,n,null,o,e.v,c,e.u,r,e.o);return e.la().then((function(){var t=e.h;return e.A.a.set(au,a.w(),t)})).then((function(){var t=Po("cordova.plugins.browsertab.isAvailable",u);if("function"!==typeof t)throw new S("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!==typeof(n=Po("cordova.plugins.browsertab.openUrl",u)))throw new S("invalid-cordova-configuration");n(p)}else{if("function"!==typeof(n=Po("cordova.InAppBrowser.open",u)))throw new S("invalid-cordova-configuration");t=To(),e.a=n(p,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(r,e,t,n,o)})).then((function(){return new wt((function(e,t){s=function(){var t=Po("cordova.plugins.browsertab.close",u);return e(),"function"===typeof t&&t(),r.a&&"function"===typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ea(s),l=function(){a||(a=Rn(2e3).then((function(){t(new S("redirect-cancelled-by-user"))})))},c=function(){Ho()&&l()},i.addEventListener("resume",l,!1),To().toLowerCase().match(/android/)||i.addEventListener("visibilitychange",c,!1)})).s((function(e){return Ou(r).then((function(){throw e}))}))})).na((function(){l&&i.removeEventListener("resume",l,!1),c&&i.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),s&&r.Ra(s),r.c=null}))},t.Ea=function(e){this.b.push(e),_u(this).s((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new Wi("unknown",null,null,null,new S("no-auth-event")),e(t))}))},t.Ra=function(e){X(this.b,(function(t){return t==e}))};var Su={name:"pendingRedirect",D:"session"};function Tu(e){return nu(e.b,Su,e.a)}function Pu(e,t,n,o){this.i={},this.u=0,this.O=e,this.m=t,this.v=n,this.G=o,this.h=[],this.f=!1,this.l=E(this.o,this),this.b=new Bu,this.A=new Ku,this.g=new Ru(Hu(this.m,this.v)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.A,this.c.linkViaPopup=this.A,this.c.reauthViaPopup=this.A,this.a=Du(this.O,this.m,this.v,P,this.G)}function Du(e,t,n,r,i){var a=o.SDK_VERSION||null;return vo()?new Cu(e,t,n,a,r,i):new hl(e,t,n,a,r,i)}function Au(e){e.f||(e.f=!0,e.a.Ea(e.l));var t=e.a;return e.a.la().s((function(n){throw e.a==t&&e.reset(),n}))}function Nu(e){e.a.Wb()&&Au(e).s((function(t){var n=new Wi("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Lu(t)&&e.o(n)})),e.a.Sb()||Uu(e.b)}function Iu(e,t){K(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(Su,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?Tu(e.g).then((function(){Au(e).s((function(t){var n=new Wi("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Lu(t)&&e.o(n)}))})):Nu(e)})).s((function(){Nu(e)}))}function xu(e,t){X(e.h,(function(e){return e==t}))}Pu.prototype.reset=function(){this.f=!1,this.a.Ra(this.l),this.a=Du(this.O,this.m,this.v,null,this.G),this.i={}},Pu.prototype.o=function(e){if(!e)throw new S("invalid-auth-event");
2if(6e5<=O()-this.u&&(this.i={},this.u=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var o=this.h[n];if(o.Eb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,o),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.u=O())),t=!0;break}}return Uu(this.b),t};var Fu=new Vo(2e3,1e4),ku=new Vo(3e4,6e4);function Mu(e,t,n,o,r,i,a){return e.a.Lb(t,n,o,(function(){e.f||(e.f=!0,e.a.Ea(e.l))}),(function(){e.reset()}),r,i,a)}function Lu(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function Gu(e,t,n,o,r){var i;return function(e){return e.b.set(Su,"pending",e.a)}(e.g).then((function(){return e.a.Mb(t,n,o,r).s((function(t){if(Lu(t))throw new S("operation-not-supported-in-this-environment");return i=t,Tu(e.g).then((function(){throw i}))})).then((function(){return e.a.Zb()?new wt((function(){})):Tu(e.g).then((function(){return e.qa()})).then((function(){})).s((function(){}))}))}))}function Wu(e,t,n,o,r){return e.a.Nb(o,(function(e){t.ma(n,null,e,r)}),Fu.get())}Pu.prototype.qa=function(){return this.b.qa()};var Vu={};function Hu(e,t,n){return e=e+":"+t,n&&(e=e+":"+n.url),e}function ju(e,t,n,o){var r=Hu(t,n,o);return Vu[r]||(Vu[r]=new Pu(e,t,n,o)),Vu[r]}function Bu(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Uu(e){e.g||(e.g=!0,qu(e,!1,null,null))}function zu(e){e.g&&!e.i&&qu(e,!1,null,null)}function Yu(e,t){if(e.b=function(){return Tt(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function qu(e,t,n,o){t?o?function(e,t){if(e.b=function(){return Pt(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,o):Yu(e,n):Yu(e,{user:null}),e.f=[],e.c=[]}function Ku(){}function Qu(){this.hb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.hb},set:function(e){this.hb=e},enumerable:!1})}function Xu(e,t){this.a=t,Qo(this,"verificationId",e)}function $u(e,t,n,o){return new ki(e).eb(t,n).then((function(e){return new Xu(e,o)}))}function Ju(e){var t=Ur(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new S("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Xo(this,{token:e,expirationTime:Bo(1e3*t.exp),authTime:Bo(1e3*t.auth_time),issuedAtTime:Bo(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,signInSecondFactor:t.firebase&&t.firebase.sign_in_second_factor?t.firebase.sign_in_second_factor:null,claims:t})}function Zu(e,t,n){var o=t&&t[tc];if(!o)throw new S("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=ge(t),this.g=n,this.c=new ii(null,o),this.b=[];var r=this;U(t[ec]||[],(function(e){(e=er(e))&&r.b.push(e)})),Qo(this,"auth",this.a),Qo(this,"session",this.c),Qo(this,"hints",this.b)}Bu.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Bu.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,o=e.b,r=e.a&&"auth/web-storage-unsupported"==e.a.code,i=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!r&&!i),"unknown"!=n||r||i?e.a?(qu(this,!0,null,e.a),Tt()):t.Fa(n,o)?function(e,t,n){n=n.Fa(t.c,t.b);var o=t.g,r=t.f,i=t.i,a=t.S(),s=!!t.c.match(/Redirect$/);n(o,r,a,i).then((function(t){qu(e,s,t,null)})).s((function(t){qu(e,s,null,t)}))}(this,e,t):Pt(new S("invalid-auth-event")):(qu(this,!1,null,null),Tt())}else Pt(new S("invalid-auth-event"))},Bu.prototype.qa=function(){var e=this;return new wt((function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new S("timeout");e.a&&e.a.cancel(),e.a=Rn(ku.get()).then((function(){e.b||(e.g=!0,qu(e,!0,null,t))}))}(e))}))},Ku.prototype.h=function(e,t){if(e){var n=e.c,o=e.b;e.a?(t.ma(e.c,null,e.a,e.b),Tt()):t.Fa(n,o)?function(e,t){var n=e.b,o=e.c;t.Fa(o,n)(e.g,e.f,e.S(),e.i).then((function(e){t.ma(o,e,null,n)})).s((function(e){t.ma(o,null,e,n)}))}
2(e,t):Pt(new S("invalid-auth-event"))}else Pt(new S("invalid-auth-event"))},Xu.prototype.confirm=function(e){return e=Mi(this.verificationId,e),this.a(e)};var ec="mfaInfo",tc="mfaPendingCredential";function nc(e,t,n,o){S.call(this,"multi-factor-auth-required",o,t),this.b=new Zu(e,t,n),Qo(this,"resolver",this.b)}function oc(e,t,n){if(e&&y(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new nc(t,e.serverResponse,n,e.message)}catch(o){}return null}function rc(){}function ic(e){Qo(this,"factorId",e.fa),this.a=e}function ac(e){if(ic.call(this,e),this.a.fa!=ki.PROVIDER_ID)throw new S("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function sc(e,t){for(var n in Qt.call(this,e),t)this[n]=t[n]}function lc(e,t){this.a=e,this.b=[],this.c=E(this.xc,this),ln(this.a,"userReloaded",this.c);var n=[];t&&t.multiFactor&&t.multiFactor.enrolledFactors&&U(t.multiFactor.enrolledFactors,(function(e){var t=null,o={};if(e){e.uid&&(o[or]=e.uid),e.displayName&&(o[tr]=e.displayName),e.enrollmentTime&&(o[nr]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(o[rr]=e.phoneNumber);try{t=new ir(o)}catch(r){}e=t}else e=null;e&&n.push(e)})),uc(this,n)}function uc(e,t){e.b=t,Qo(e,"enrolledFactors",t)}function cc(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function pc(e){this.c=e,this.b=this.a=null}function dc(e){return e.b&&1e3*e.b.c||0}function hc(e,t){var n=t.refreshToken;e.b=Br(t[$a]||""),e.a=n}function fc(e,t){return function(e,t){return new wt((function(n,o){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?as(e,e.l+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?o(rl(e)):e.access_token&&e.refresh_token?n(e):o(new S("internal-error")):o(new S("network-request-failed"))}),"POST",Xn(t).toString(),e.g,e.v.get()):o(new S("internal-error"))}))}(e.c,t).then((function(t){return e.b=Br(t.access_token),e.a=t.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}})).s((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}function gc(e,t){this.a=e||null,this.b=t||null,Xo(this,{lastSignInTime:Bo(t||null),creationTime:Bo(e||null)})}function yc(e,t,n,o,r,i){Xo(this,{uid:e,displayName:o||null,photoURL:r||null,email:n||null,phoneNumber:i||null,providerId:t})}function vc(e,t,n){this.G=[],this.l=e.apiKey,this.m=e.appName,this.o=e.authDomain||null;var r=o.SDK_VERSION?So(o.SDK_VERSION):null;this.a=new Qa(this.l,I(P),r),e.emulatorConfig&&os(this.a,e.emulatorConfig),this.b=new pc(this.a),Rc(this,t[$a]),hc(this.b,t),Qo(this,"refreshToken",this.b.a),Pc(this,n||{}),wn.call(this),this.P=!1,this.o&&Ao()&&(this.i=ju(this.o,this.l,this.m)),this.R=[],this.f=null,this.u=function(e){return new cc((function(){return e.I(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=dc(e.b)-O()-3e5;return 0<t?t:0}))}(this),this.$=E(this.gb,this);var i=this;this.pa=null,this.Ba=function(e){i.wa(e.h)},this.ba=null,this.za=function(e){os(i.a,e.c)},this.W=null,this.X=[],this.Aa=function(e){wc(i,e.f)},this.aa=null,this.N=new lc(this,n),Qo(this,"multiFactor",this.N)}function mc(e,t){e.ba&&pn(e.ba,"languageCodeChanged",e.Ba),(e.ba=t)&&ln(t,"languageCodeChanged",e.Ba)}function Cc(e,t){e.W&&pn(e.W,"emulatorConfigChanged",e.za),(e.W=t)&&ln(t,"emulatorConfigChanged",e.za)}function wc(e,t){e.X=t,is(e.a,o.SDK_VERSION?So(o.SDK_VERSION,e.X):null)}function bc(e,t){e.aa&&pn(e.aa,"frameworkChanged",e.Aa),(e.aa=t)&&ln(t,"frameworkChanged",e.Aa)}function Ec(e){try{return o.app(e.m).auth()}catch(t){throw new S("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function _c(e){e.A||e.u.b||(e.u.start(),pn(e,"tokenChanged",e.$),ln(e,"tokenChanged",e.$))}function Oc(e){pn(e,"tokenChanged",e.$),e.u.stop()}function Rc(e,t){e.ya=t,Qo(e,"_lat",t)}function Sc(e){for(var t=[],n=0;n<e.R.length;n++)t.push(e.R[n](e));return At(t).then((function(){return e}))}function Tc(e){e.i&&!e.P&&(e.P=!0,Iu(e.i,e))}function Pc(e,t){Xo(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new gc(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Dc(){}function Ac(e){return Tt().then((function(){if(e.A)throw new S("app-deleted")}))}function Nc(e){return Y(e.providerData,(function(e){return e.providerId}))}function Ic(e,t){t&&(xc(e,t.providerId),e.providerData.push(t))}function xc(e,t){X(e.providerData,(function(e){return e.providerId==t}))}
2function Fc(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Qo(e,t,n)}function kc(e,t){e!=t&&(Xo(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),t.metadata?Qo(e,"metadata",function(e){return new gc(e.a,e.b)}(t.metadata)):Qo(e,"metadata",new gc),U(t.providerData,(function(t){Ic(e,t)})),function(e,t){e.b=t.b,e.a=t.a}(e.b,t.b),Qo(e,"refreshToken",e.b.a),uc(e.N,t.N.b))}function Mc(e){return e.I().then((function(t){var n=e.isAnonymous;return function(e,t){return nl(e.a,xs,{idToken:t}).then(E(e.Jc,e))}(e,t).then((function(){return n||Fc(e,"isAnonymous",!1),t}))}))}function Lc(e,t){t[$a]&&e.ya!=t[$a]&&(hc(e.b,t),e.dispatchEvent(new sc("tokenChanged")),Rc(e,t[$a]),Fc(e,"refreshToken",e.b.a))}function Gc(e,t){return Mc(e).then((function(){if(K(Nc(e),t))return Sc(e).then((function(){throw new S("provider-already-linked")}))}))}function Wc(e,t,n){return $o({user:e,credential:Li(t),additionalUserInfo:t=Qr(t),operationType:n})}function Vc(e,t){return Lc(e,t),e.reload().then((function(){return e}))}function Hc(e,t,n,r,i){if(!Ao())return Pt(new S("operation-not-supported-in-this-environment"));if(e.f&&!i)return Pt(e.f);var a=Kr(n.providerId),s=Lo(e.uid+":::"),l=null;(!xo()||mo())&&e.o&&n.isOAuthProvider&&(l=vl(e.o,e.l,e.m,t,n,null,s,o.SDK_VERSION||null,null,null,e.tenantId));var u=ho(l,a&&a.ua,a&&a.ta);return r=r().then((function(){if(Bc(e),!i)return e.I().then((function(){}))})).then((function(){return Mu(e.i,u,t,n,s,!!l,e.tenantId)})).then((function(){return new wt((function(n,o){e.ma(t,null,new S("cancelled-popup-request"),e.h||null),e.g=n,e.O=o,e.h=s,e.c=Wu(e.i,e,t,u,s)}))})).then((function(e){return u&&po(u),e?$o(e):null})).s((function(e){throw u&&po(u),e})),Uc(e,r,i)}function jc(e,t,n,o,r){if(!Ao())return Pt(new S("operation-not-supported-in-this-environment"));if(e.f&&!r)return Pt(e.f);var i=null,a=Lo(e.uid+":::");return o=o().then((function(){if(Bc(e),!r)return e.I().then((function(){}))})).then((function(){return e.ga=a,Sc(e)})).then((function(t){return e.ha&&(t=(t=e.ha).b.set(qc,e.w(),t.a)),t})).then((function(){return Gu(e.i,t,n,a,e.tenantId)})).s((function(t){if(i=t,e.ha)return Kc(e.ha);throw i})).then((function(){if(i)throw i})),Uc(e,o,r)}function Bc(e){if(!e.i||!e.P){if(e.i&&!e.P)throw new S("internal-error");throw new S("auth-domain-config-required")}}function Uc(e,t,n){var o=function(e,t,n){return e.f&&!n?(t.cancel(),Pt(e.f)):t.s((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.f||e.dispatchEvent(new sc("userInvalidated")),e.f=t),t}))}(e,t,n);return e.G.push(o),o.na((function(){Q(e.G,o)})),o.s((function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=oc(t.w(),Ec(e),E(e.ic,e))),n||t}))}function zc(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName,emulatorConfig:e.emulatorConfig},n={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;n[$a]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var o=new vc(t,n,e);return e.providerData&&U(e.providerData,(function(e){e&&Ic(o,$o(e))})),e.redirectEventId&&(o.ga=e.redirectEventId),o}function Yc(e){this.a=e,this.b=Zl()}Zu.prototype.Qc=function(e){var t=this;return e.rb(this.a.a,this.c).then((function(e){var n=ge(t.f);return delete n[ec],delete n[tc],ve(n,e),t.g(n)}))},R(nc,S),rc.prototype.rb=function(e,t,n){return t.type==ai?function(e,t,n,o){return n.Ha().then((function(n){return n={idToken:n},"undefined"!==typeof o&&(n.displayName=o),ve(n,{phoneVerificationInfo:Fi(e.a)}),nl(t,Ns,n)}))}(this,e,t,n):function(e,t,n){return n.Ha().then((function(n){return ve(n={mfaPendingCredential:n},{phoneVerificationInfo:Fi(e.a)}),nl(t,Is,n)}))}(this,e,t)},R(ic,rc),R(ac,ic),R(sc,Qt),(t=lc.prototype).xc=function(e){uc(this,function(e){var t=[];return U(e.mfaInfo||[],(function(e){(e=er(e))&&t.push(e)})),t}(e.gd))},t.Qb=function(){return this.a.I().then((function(e){return new ii(e,null)}))},t.ec=function(e,t){var n=this,o=this.a.a;return this.Qb().then((function(n){return e.rb(o,n,t)})).then((function(e){return Lc(n.a,e),n.a.reload()}))},t.ad=function(e){var t=this,n="string"===typeof e?e:e.uid,o=this.a.a;return this.a.I().then((function(e){return nl(o,tl,{idToken:e,mfaEnrollmentId:n})})).then((function(e){var o=z(t.b,(function(e){return e.uid!=n}));return uc(t,o),Lc(t.a,e),t.a.reload().s((function(e){if("auth/user-token-expired"!=e.code)throw e}))}))},t.w=function(){return{multiFactor:{enrolledFactors:Y(this.b,(function(e){return e.w()}))}}},cc.prototype.start=function(){this.a=this.c,function e(t,n){t.stop(),t.b=Rn(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(t,n)).then((function(){return function(){var e=u.document,t=null;return Ho()||!e?Tt():new wt((function(n){t=function(){Ho()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).s((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return t.h()})).then((function(){e(t,!0)})).s((function(n){t.i(n)&&e(t,!1)}))}(this,!0)},cc.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},pc.prototype.w=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:dc(this)}},pc.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?Pt(new S("user-token-expired")):e||!this.b||O()>dc(this)-3e4?this.a?fc(this,{grant_type:"refresh_token",refresh_token:this.a}):Tt(null):Tt({accessToken:this.b.toString(),refreshToken:this.a})},gc.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},R(vc,wn),vc.prototype.wa=function(e){this.pa=e,ns(this.a,e)},vc.prototype.ka=function(){return this.pa},vc.prototype.Ga=function(){return J(this.X)},vc.prototype.gb=function(){this.u.b&&(this.u.stop(),this.u.start())},Qo(vc.prototype,"providerId","firebase"),(t=vc.prototype).reload=function(){var e=this;return Uc(this,Ac(this).then((function(){return Mc(e).then((function(){return Sc(e)})).then(Dc)})))},t.nc=function(e){return this.I(e).then((function(e){return new Ju(e)}
2))},t.I=function(e){var t=this;return Uc(this,Ac(this).then((function(){return t.b.getToken(e)})).then((function(e){if(!e)throw new S("internal-error");return e.accessToken!=t.ya&&(Rc(t,e.accessToken),t.dispatchEvent(new sc("tokenChanged"))),Fc(t,"refreshToken",e.refreshToken),e.accessToken})))},t.Jc=function(e){if(!(e=e.users)||!e.length)throw new S("internal-error");Pc(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?Y(e,(function(e){return new yc(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Ic(this,t[n]);Fc(this,"isAnonymous",!(this.email&&e.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new sc("userReloaded",{gd:e}))},t.Kc=function(e){return qo("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.sb(e)},t.sb=function(e){var t=this,n=null;return Uc(this,e.c(this.a,this.uid).then((function(e){return Lc(t,e),n=Wc(t,e,"reauthenticate"),t.f=null,t.reload()})).then((function(){return n})),!0)},t.Bc=function(e){return qo("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.pb(e)},t.pb=function(e){var t=this,n=null;return Uc(this,Gc(this,e.providerId).then((function(){return t.I()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=Wc(t,e,"link"),Vc(t,e)})).then((function(){return n})))},t.Cc=function(e,t){var n=this;return Uc(this,Gc(this,"phone").then((function(){return $u(Ec(n),e,t,E(n.pb,n))})))},t.Lc=function(e,t){var n=this;return Uc(this,Tt().then((function(){return $u(Ec(n),e,t,E(n.sb,n))})),!0)},t.Ab=function(e){var t=this;return Uc(this,this.I().then((function(n){return t.a.Ab(n,e)})).then((function(e){return Lc(t,e),t.reload()})))},t.dd=function(e){var t=this;return Uc(this,this.I().then((function(n){return e.b(t.a,n)})).then((function(e){return Lc(t,e),t.reload()})))},t.Bb=function(e){var t=this;return Uc(this,this.I().then((function(n){return t.a.Bb(n,e)})).then((function(e){return Lc(t,e),t.reload()})))},t.Cb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Ac(this);var t=this;return Uc(this,this.I().then((function(n){return t.a.Cb(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Lc(t,e),Fc(t,"displayName",e.displayName||null),Fc(t,"photoURL",e.photoUrl||null),U(t.providerData,(function(e){"password"===e.providerId&&(Qo(e,"displayName",t.displayName),Qo(e,"photoURL",t.photoURL))})),Sc(t)})).then(Dc))},t.bd=function(e){var t=this;return Uc(this,Mc(this).then((function(n){return K(Nc(t),e)?function(e,t,n){return nl(e,Ps,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return U(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),U(Nc(t),(function(e){n[e]||xc(t,e)})),n[ki.PROVIDER_ID]||Qo(t,"phoneNumber",null),Sc(t)})):Sc(t).then((function(){throw new S("no-such-provider")}))})))},t.delete=function(){var e=this;return Uc(this,this.I().then((function(t){return nl(e.a,Ts,{idToken:t})})).then((function(){e.dispatchEvent(new sc("userDeleted"))}))).then((function(){for(var t=0;t<e.G.length;t++)e.G[t].cancel("app-deleted");mc(e,null),Cc(e,null),bc(e,null),e.G=[],e.A=!0,Oc(e),Qo(e,"refreshToken",null),e.i&&xu(e.i,e)}))},t.Eb=function(e,t){return!!("linkViaPopup"==e&&(this.h||null)==t&&this.g||"reauthViaPopup"==e&&(this.h||null)==t&&this.g||"linkViaRedirect"==e&&(this.ga||null)==t||"reauthViaRedirect"==e&&(this.ga||null)==t)},t.ma=function(e,t,n,o){"linkViaPopup"!=e&&"reauthViaPopup"!=e||o!=(this.h||null)||(n&&this.O?this.O(n):t&&!n&&this.g&&this.g(t),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},t.Fa=function(e,t){return"linkViaPopup"==e&&t==(this.h||null)?E(this.Jb,this):"reauthViaPopup"==e&&t==(this.h||null)?E(this.Kb,this):"linkViaRedirect"==e&&(this.ga||null)==t?E(this.Jb,this):"reauthViaRedirect"==e&&(this.ga||null)==t?E(this.Kb,this):null},t.Dc=function(e){var t=this;return Hc(this,"linkViaPopup",e,(function(){return Gc(t,e.providerId).then((function(){return Sc(t)}))}),!1)},t.Mc=function(e){return Hc(this,"reauthViaPopup",e,(function(){return Tt()}),!0)},t.Ec=function(e){var t=this;return jc(this,"linkViaRedirect",e,(function(){return Gc(t,e.providerId)}),!1)},t.Nc=function(e){return jc(this,"reauthViaRedirect",e,(function(){return Tt()}),!0)},t.Jb=function(e,t,n,o){var r=this;this.c&&(this.c.cancel(),this.c=null);var i=null;return Uc(this,this.I().then((function(n){return ws(r.a,{requestUri:e,postBody:o,sessionId:t,idToken:n})})).then((function(e){return i=Wc(r,e,"link"),Vc(r,e)})).then((function(){return i})))},t.Kb=function(e,t,n,o){var r=this;this.c&&(this.c.cancel(),this.c=null);var i=null;return Uc(this,Tt().then((function(){return ui(bs(r.a,{requestUri:e,sessionId:t,postBody:o,tenantId:n}),r.uid)})).then((function(e){return i=Wc(r,e,"reauthenticate"),Lc(r,e),r.f=null,r.reload()})).then((function(){return i})),!0)},t.tb=function(e){var t=this,n=null;return Uc(this,this.I().then((function(t){return n=t,"undefined"===typeof e||fe(e)?{}:Wr(new Dr(e))})).then((function(e){return t.a.tb(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},t.Db=function(e,t){var n=this,o=null;return Uc(this,this.I().then((function(e){return o=e,"undefined"===typeof t||fe(t)?{}:Wr(new Dr(t))})).then((function(t){return n.a.Db(o,e,t)})).then((function(e){if(n.email!=e)return n.reload()})).then((function(){})))},t.ic=function(e){var t=null,n=this;return Uc(this,e=ui(Tt(e),n.uid).then((function(e){return t=Wc(n,e,"reauthenticate"),Lc(n,e),n.f=null,n.reload()})).then((function(){return t})),!0)},t.toJSON=function(){return this.w()},t.w=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&ve(e,this.metadata.w()),U(this.providerData,(function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))})),ve(e,this.N.w()),e};var qc={name:"redirectUser",D:"session"};function Kc(e){return nu(e.b,qc,e.a)}function Qc(e){this.a=e,this.b=Zl(),this.c=null,this.f=function(e){var t=Jc("local"),n=Jc("session"),o=Jc("none");return function(e,t,n){var o=tu(t,n),r=eu(e,t.D);return e.get(t,n).then((function(i){var a=null;try{a=Mo(u.localStorage.getItem(o))}catch(s){}if(a&&!i)return u.localStorage.removeItem(o),e.set(t,a,n);a&&i&&"localStorage"!=r.type&&u.localStorage.removeItem(o)}))}(e.b,t,e.a).then((function(){return e.b.get(n,e.a)})).then((function(r){return r?n:e.b.get(o,e.a).then((function(n){return n?o:e.b.get(t,e.a).then((function(n){return n?t:e.b.get($c,e.a).then((function(e){return e?Jc(e):t}))}))}))})).then((function(t){return e.c=t,Xc(e,t.D)})).s((function(){e.c||(e.c=t)}))}(this),this.b.addListener(Jc("local"),this.a,E(this.g,this))}function Xc(e,t){var n,o=[];for(n in $l)$l[n]!==t&&o.push(nu(e.b,Jc($l[n]),e.a));return o.push(nu(e.b,$c,e.a)),function(e){return new wt((function(t,n){var o=e.length,r=[];if(o)for(var i=function(e,n){o--,r[e]=n,0==o&&t(r)},a=function(e){n(e)},s=0;s<e.length;
2s++)Dt(e[s],_(i,s),a);else t(r)}))}(o)}Qc.prototype.g=function(){var e=this,t=Jc("local");np(this,(function(){return Tt().then((function(){return e.c&&"local"!=e.c.D?e.b.get(t,e.a):null})).then((function(n){if(n)return Xc(e,"local").then((function(){e.c=t}))}))}))};var $c={name:"persistence",D:"session"};function Jc(e){return{name:"authUser",D:e}}function Zc(e,t){return np(e,(function(){return e.b.set(e.c,t.w(),e.a)}))}function ep(e){return np(e,(function(){return nu(e.b,e.c,e.a)}))}function tp(e,t,n){return np(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),e&&n&&(e.emulatorConfig=n),zc(e||{})}))}))}function np(e,t){return e.f=e.f.then(t,t),e.f}function op(e){if(this.m=!1,Qo(this,"settings",new Qu),Qo(this,"app",e),!dp(this).options||!dp(this).options.apiKey)throw new S("invalid-api-key");e=o.SDK_VERSION?So(o.SDK_VERSION):null,this.a=new Qa(dp(this).options&&dp(this).options.apiKey,I(P),e),this.R=[],this.u=[],this.P=[],this.ac=o.INTERNAL.createSubscribe(E(this.yc,this)),this.X=void 0,this.bc=o.INTERNAL.createSubscribe(E(this.zc,this)),cp(this,null),this.l=new Qc(dp(this).options.apiKey+":"+dp(this).name),this.G=new Yc(dp(this).options.apiKey+":"+dp(this).name),this.$=yp(this,function(e){var t=dp(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(qc,e.a).then((function(e){return e&&t&&(e.authDomain=t),zc(e||{})}))}(e.G,dp(e).options.authDomain).then((function(t){return(e.o=t)&&(t.ha=e.G),Kc(e.G)}));return yp(e,t)}(e).then((function(){return tp(e.l,t,e.f)})).then((function(t){return t?(t.ha=e.G,e.o&&(e.o.ga||null)==(t.ga||null)?t:t.reload().then((function(){return Zc(e.l,t).then((function(){return t}))})).s((function(n){return"auth/network-request-failed"==n.code?t:ep(e.l)}))):null})).then((function(t){cp(e,t||null)}));return yp(e,n)}(this)),this.i=yp(this,function(e){return e.$.then((function(){return lp(e)})).s((function(){})).then((function(){if(!e.m)return e.pa()})).s((function(){})).then((function(){if(!e.m){e.ba=!0;var t=e.l;t.b.addListener(Jc("local"),t.a,e.pa)}}))}(this)),this.ba=!1,this.pa=E(this.Yc,this),this.Ba=E(this.da,this),this.ya=E(this.kc,this),this.za=E(this.vc,this),this.Aa=E(this.wc,this),this.b=null,function(e){var t=dp(e).options.authDomain,n=dp(e).options.apiKey;t&&Ao()&&(e.gb=e.$.then((function(){if(!e.m){if(e.b=ju(t,n,dp(e).name,e.f),Iu(e.b,e),hp(e)&&Tc(hp(e)),e.o){Tc(e.o);var o=e.o;o.wa(e.ka()),mc(o,e),wc(o=e.o,e.N),bc(o,e),os((o=e.o).a,e.f),Cc(o,e),e.o=null}return e.b}})))}(this),this.INTERNAL={},this.INTERNAL.delete=E(this.delete,this),this.INTERNAL.logFramework=E(this.Fc,this),this.A=0,wn.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ka()},set:function(e){this.wa(e)},enumerable:!1}),e.aa=null,Object.defineProperty(e,"ti",{get:function(){return this.S()},set:function(e){this.xb(e)},enumerable:!1}),e.W=null}(this),this.N=[],this.f=null}function rp(e){Qt.call(this,"languageCodeChanged"),this.h=e}function ip(e){Qt.call(this,"emulatorConfigChanged"),this.c=e}function ap(e){Qt.call(this,"frameworkChanged"),this.f=e}function sp(e){return e.gb||Pt(new S("auth-domain-config-required"))}function lp(e){if(!Ao())return Pt(new S("operation-not-supported-in-this-environment"));var t=sp(e).then((function(){return e.b.qa()})).then((function(e){return e?$o(e):null}));return yp(e,t)}function up(e,t){var n={};return n.apiKey=dp(e).options.apiKey,n.authDomain=dp(e).options.authDomain,n.appName=dp(e).name,e.f&&(n.emulatorConfig=e.f),e.$.then((function(){return function(e,t,n,o){var r=new vc(e,t);return n&&(r.ha=n),o&&wc(r,o),r.reload().then((function(){return r}))}(n,t,e.G,e.Ga())})).then((function(t){return hp(e)&&t.uid==hp(e).uid?(kc(hp(e),t),e.da(t)):(cp(e,t),Tc(t),e.da(t))})).then((function(){gp(e)}))}function cp(e,t){hp(e)&&(function(e,t){X(e.R,(function(e){return e==t}))}(hp(e),e.Ba),pn(hp(e),"tokenChanged",e.ya),pn(hp(e),"userDeleted",e.za),pn(hp(e),"userInvalidated",e.Aa),Oc(hp(e))),t&&(t.R.push(e.Ba),ln(t,"tokenChanged",e.ya),ln(t,"userDeleted",e.za),ln(t,"userInvalidated",e.Aa),0<e.A&&_c(t)),Qo(e,"currentUser",t),t&&(t.wa(e.ka()),mc(t,e),wc(t,e.N),bc(t,e),os(t.a,e.f),Cc(t,e))}function pp(e,t){var n=null,o=null;return yp(e,t.then((function(t){return n=Li(t),o=Qr(t),up(e,t)}),(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=oc(t.w(),e,E(e.jc,e))),n||t})).then((function(){return $o({user:hp(e),credential:n,additionalUserInfo:o,operationType:"signIn"})})))}function dp(e){return e.app}function hp(e){return e.currentUser}function fp(e){return hp(e)&&hp(e)._lat||null}function gp(e){if(e.ba){for(var t=0;t<e.u.length;t++)e.u[t]&&e.u[t](fp(e));if(e.X!==e.getUid()&&e.P.length)for(e.X=e.getUid(),t=0;t<e.P.length;t++)e.P[t]&&e.P[t](fp(e))}}function yp(e,t){return e.R.push(t),t.na((function(){Q(e.R,t)})),t}function vp(){}function mp(){this.a={},this.b=1e12}Qc.prototype.wb=function(e){var t=null,n=this;return function(e){var t=new S("invalid-persistence-type"),n=new S("unsupported-persistence-type");e:{for(o in $l)if($l[o]==e){var o=!0;break e}o=!1}if(!o||"string"!==typeof e)throw t;switch(wo()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;case"Worker":if("session"===e||!Al()&&"none"!==e)throw n;break;default:if(!Do()&&"none"!==e)throw n}}
2(e),np(this,(function(){return e!=n.c.D?n.b.get(n.c,n.a).then((function(o){return t=o,Xc(n,e)})).then((function(){if(n.c=Jc(e),t)return n.b.set(n.c,t,n.a)})):Tt()}))},R(op,wn),R(rp,Qt),R(ip,Qt),R(ap,Qt),(t=op.prototype).wb=function(e){return yp(this,e=this.l.wb(e))},t.wa=function(e){this.aa===e||this.m||(this.aa=e,ns(this.a,this.aa),this.dispatchEvent(new rp(this.ka())))},t.ka=function(){return this.aa},t.ed=function(){var e=u.navigator;this.wa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},t.fd=function(e){if(!this.f){if(!/^https?:\/\//.test(e))throw new S("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");jo("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),u.document&&yo().then((function(){var e=u.document.createElement("div");e.innerText="Running in emulator mode. Do not use with production credentials.",e.style.position="fixed",e.style.width="100%",e.style.backgroundColor="#ffffff",e.style.border=".1em solid #000000",e.style.color="#ff0000",e.style.bottom="0px",e.style.left="0px",e.style.margin="0px",e.style.zIndex=1e4,e.style.textAlign="center",e.classList.add("firebase-emulator-warning"),u.document.body.appendChild(e)})),this.f={url:e},this.settings.hb=!0,os(this.a,this.f),this.dispatchEvent(new ip(this.f))}},t.Fc=function(e){this.N.push(e),is(this.a,o.SDK_VERSION?So(o.SDK_VERSION,this.N):null),this.dispatchEvent(new ap(this.N))},t.Ga=function(){return J(this.N)},t.xb=function(e){this.W===e||this.m||(this.W=e,this.a.b=this.W)},t.S=function(){return this.W},t.toJSON=function(){return{apiKey:dp(this).options.apiKey,authDomain:dp(this).options.authDomain,appName:dp(this).name,currentUser:hp(this)&&hp(this).w()}},t.Eb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.h==t&&!!this.g;default:return!1}},t.ma=function(e,t,n,o){"signInViaPopup"==e&&this.h==o&&(n&&this.O?this.O(n):t&&!n&&this.g&&this.g(t),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},t.Fa=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.h==t&&this.g?E(this.hc,this):null},t.hc=function(e,t,n,o){var r=this,i={requestUri:e,postBody:o,sessionId:t,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),r.$.then((function(){return pp(r,Cs(r.a,i))}))},t.Wc=function(e){if(!Ao())return Pt(new S("operation-not-supported-in-this-environment"));var t=this,n=Kr(e.providerId),r=Lo(),i=null;(!xo()||mo())&&dp(this).options.authDomain&&e.isOAuthProvider&&(i=vl(dp(this).options.authDomain,dp(this).options.apiKey,dp(this).name,"signInViaPopup",e,null,r,o.SDK_VERSION||null,null,null,this.S(),this.f));var a=ho(i,n&&n.ua,n&&n.ta);return yp(this,n=sp(this).then((function(n){return Mu(n,a,"signInViaPopup",e,r,!!i,t.S())})).then((function(){return new wt((function(e,n){t.ma("signInViaPopup",null,new S("cancelled-popup-request"),t.h),t.g=e,t.O=n,t.h=r,t.c=Wu(t.b,t,"signInViaPopup",a,r)}))})).then((function(e){return a&&po(a),e?$o(e):null})).s((function(e){throw a&&po(a),e})))},t.Xc=function(e){if(!Ao())return Pt(new S("operation-not-supported-in-this-environment"));var t=this;return yp(this,sp(this).then((function(){return function(e){return np(e,(function(){return e.b.set($c,e.c.D,e.a)}))}(t.l)})).then((function(){return Gu(t.b,"signInViaRedirect",e,void 0,t.S())})))},t.qa=function(){var e=this;return lp(this).then((function(t){return e.b&&zu(e.b.b),t})).s((function(t){throw e.b&&zu(e.b.b),t}))},t.cd=function(e){if(!e)return Pt(new S("null-user"));if(this.W!=e.tenantId)return Pt(new S("tenant-id-mismatch"));var t=this,n={};n.apiKey=dp(this).options.apiKey,n.authDomain=dp(this).options.authDomain,n.appName=dp(this).name;var o=function(e,t,n,o){var r=e.b,i={};return i[$a]=r.b&&r.b.toString(),i.refreshToken=r.a,t=new vc(t||{apiKey:e.l,authDomain:e.o,appName:e.m},i),n&&(t.ha=n),o&&wc(t,o),kc(t,e),t}(e,n,t.G,t.Ga());return yp(this,this.i.then((function(){if(dp(t).options.apiKey!=e.l)return o.reload()})).then((function(){return hp(t)&&e.uid==hp(t).uid?(kc(hp(t),e),t.da(e)):(cp(t,o),Tc(o),t.da(o))})).then((function(){gp(t)})))},t.zb=function(){var e=this;return yp(this,this.i.then((function(){return e.b&&zu(e.b.b),hp(e)?(cp(e,null),ep(e.l).then((function(){gp(e)}))):Tt()})))},t.Yc=function(){var e=this;return tp(this.l,dp(this).options.authDomain).then((function(t){if(!e.m){var n;if(n=hp(e)&&t){n=hp(e).uid;var o=t.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==o&&null!==o&&""!==o&&n==o}if(n)return kc(hp(e),t),hp(e).I();(hp(e)||t)&&(cp(e,t),t&&(Tc(t),t.ha=e.G),e.b&&Iu(e.b,e),gp(e))}}))},t.da=function(e){return Zc(this.l,e)},t.kc=function(){gp(this),this.da(hp(this))},t.vc=function(){this.zb()},t.wc=function(){this.zb()},t.jc=function(e){var t=this;return this.i.then((function(){return pp(t,Tt(e))}))},t.yc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(hp(t))}))},t.zc=function(e){var t=this;!function(e,t){e.P.push(t),yp(e,e.i.then((function(){!e.m&&K(e.P,t)&&e.X!==e.getUid()&&(e.X=e.getUid(),t(fp(e)))})))}(this,(function(){e.next(hp(t))}))},t.Hc=function(e,t,n){var o=this;return this.ba&&Promise.resolve().then((function(){"function"===typeof e?e(hp(o)):"function"===typeof e.next&&e.next(hp(o))})),this.ac(e,t,n)},t.Gc=function(e,t,n){var o=this;return this.ba&&Promise.resolve().then((function(){o.X=o.getUid(),"function"===typeof e?e(hp(o)):"function"===typeof e.next&&e.next(hp(o))}
2)),this.bc(e,t,n)},t.mc=function(e){var t=this;return yp(this,this.i.then((function(){return hp(t)?hp(t).I(e).then((function(e){return{accessToken:e}})):null})))},t.Sc=function(e){var t=this;return this.i.then((function(){return pp(t,nl(t.a,Xs,{token:e}))})).then((function(e){var n=e.user;return Fc(n,"isAnonymous",!1),t.da(n),e}))},t.Tc=function(e,t){var n=this;return this.i.then((function(){return pp(n,nl(n.a,$s,{email:e,password:t}))}))},t.dc=function(e,t){var n=this;return this.i.then((function(){return pp(n,nl(n.a,Rs,{email:e,password:t}))}))},t.Za=function(e){var t=this;return this.i.then((function(){return pp(t,e.ja(t.a))}))},t.Rc=function(e){return qo("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Za(e)},t.yb=function(){var e=this;return this.i.then((function(){var t=hp(e);if(t&&t.isAnonymous){var n=$o({providerId:null,isNewUser:!1});return $o({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return pp(e,e.a.yb()).then((function(t){var n=t.user;return Fc(n,"isAnonymous",!0),e.da(n),t}))}))},t.getUid=function(){return hp(this)&&hp(this).uid||null},t.cc=function(e){this.addAuthTokenListener(e),this.A++,0<this.A&&hp(this)&&_c(hp(this))},t.Oc=function(e){var t=this;U(this.u,(function(n){n==e&&t.A--})),0>this.A&&(this.A=0),0==this.A&&hp(this)&&Oc(hp(this)),this.removeAuthTokenListener(e)},t.addAuthTokenListener=function(e){var t=this;this.u.push(e),yp(this,this.i.then((function(){t.m||K(t.u,e)&&e(fp(t))})))},t.removeAuthTokenListener=function(e){X(this.u,(function(t){return t==e}))},t.delete=function(){this.m=!0;for(var e=0;e<this.R.length;e++)this.R[e].cancel("app-deleted");return this.R=[],this.l&&(e=this.l).b.removeListener(Jc("local"),e.a,this.pa),this.b&&(xu(this.b,this),zu(this.b.b)),Promise.resolve()},t.gc=function(e){return yp(this,function(e,t){return nl(e,Ss,{identifier:t,continueUri:No()?lo():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.a,e))},t.Ac=function(e){return!!Ni(e)},t.vb=function(e,t){var n=this;return yp(this,Tt().then((function(){var e=new Dr(t);if(!e.c)throw new S("argument-error",Ir+" must be true when sending sign in link to email");return Wr(e)})).then((function(t){return n.a.vb(e,t)})).then((function(){})))},t.hd=function(e){return this.Qa(e).then((function(e){return e.data.email}))},t.mb=function(e,t){return yp(this,this.a.mb(e,t).then((function(){})))},t.Qa=function(e){return yp(this,this.a.Qa(e).then((function(e){return new ar(e)})))},t.ib=function(e){return yp(this,this.a.ib(e).then((function(){})))},t.ub=function(e,t){var n=this;return yp(this,Tt().then((function(){return"undefined"===typeof t||fe(t)?{}:Wr(new Dr(t))})).then((function(t){return n.a.ub(e,t)})).then((function(){})))},t.Vc=function(e,t){return yp(this,$u(this,e,t,E(this.Za,this)))},t.Uc=function(e,t){var n=this;return yp(this,Tt().then((function(){var o=t||lo(),r=Ai(e,o);if(!(o=Ni(o)))throw new S("argument-error","Invalid email link!");if(o.tenantId!==n.S())throw new S("tenant-id-mismatch");return n.Za(r)})))},vp.prototype.render=function(){},vp.prototype.reset=function(){},vp.prototype.getResponse=function(){},vp.prototype.execute=function(){};var Cp=null;function wp(e,t){return(t=bp(t))&&e.a[t]||null}function bp(e){return(e="undefined"===typeof e?1e12:e)?e.toString():null}function Ep(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=at(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():ln(this.f,"click",this.i)}function _p(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function Op(){}function Rp(){}mp.prototype.render=function(e,t){return this.a[this.b.toString()]=new Ep(e,t),this.b++},mp.prototype.reset=function(e){var t=wp(this,e);e=bp(e),t&&e&&(t.delete(),delete this.a[e])},mp.prototype.getResponse=function(e){return(e=wp(this,e))?e.getResponse():null},mp.prototype.execute=function(e){(e=wp(this,e))&&e.execute()},Ep.prototype.getResponse=function(){return _p(this),this.b},Ep.prototype.execute=function(){_p(this);var e=this;this.a||(this.a=setTimeout((function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(o){}e.a=setTimeout((function(){if(e.a=null,e.b=null,n)try{n()}catch(o){}e.h&&e.execute()}),6e4)}),500))},Ep.prototype.delete=function(){_p(this),this.g=!0,clearTimeout(this.a),this.a=null,pn(this.f,"click",this.i)},Qo(Op,"FACTOR_ID","phone"),Rp.prototype.g=function(){return Cp||(Cp=new mp),Tt(Cp)},Rp.prototype.c=function(){};var Sp=null;function Tp(){this.b=u.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Pp=new Ce(Ee,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Dp=new Vo(3e4,6e4);Tp.prototype.g=function(e){var t=this;return new wt((function(n,o){var r=setTimeout((function(){o(new S("network-request-failed"))}),Dp.get());!u.grecaptcha||e!==t.f&&!t.b?(u[t.a]=function(){if(u.grecaptcha){t.f=e;var i=u.grecaptcha.render;u.grecaptcha.render=function(e,n){return e=i(e,n),t.b++,e},clearTimeout(r),n(u.grecaptcha)}else clearTimeout(r),o(new S("internal-error"));delete u[t.a]},Tt(ja(Se(Pp,{onload:t.a,hl:e||""}))).s((function(){clearTimeout(r),o(new S("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(r),n(u.grecaptcha))}))},Tp.prototype.c=function(){this.b--};var Ap=null;function Np(e,t,n,o,r,i,a){if(Qo(this,"type","recaptcha"),this.c=this.f=null,this.A=!1,this.m=t,this.g=null,a?(Sp||(Sp=new Rp),a=Sp):(Ap||(Ap=new Tp),a=Ap),this.v=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Fp])throw new S("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[kp],!u.document)throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!at(t)||!this.i&&at(t).hasChildNodes())throw new S("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new Qa(e,i||null,r||null),this.u=o||function(){return null};var s=this;this.l=[];var l=this.a[Ip];this.a[Ip]=function(e){if(Mp(s,e),"function"===typeof l)l(e);else if("string"===typeof l){var t=Po(l,u);"function"===typeof t&&t(e)}};var c=this.a[xp];this.a[xp]=function(){if(Mp(s,null),"function"===typeof c)c();else if("string"===typeof c){var e=Po(c,u);"function"===typeof e&&e()}}}var Ip="callback",xp="expired-callback",Fp="sitekey",kp="size";function Mp(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(o){}}function Lp(e,t){return e.h.push(t),t.na((function(){Q(e.h,t)})),t}function Gp(e){if(e.A)throw new S("internal-error","RecaptchaVerifier instance has been destroyed.")}function Wp(e,t,n){var r=!1;try{this.b=n||o.app()}catch(s){throw new S("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new S("invalid-api-key");n=this.b.options.apiKey;var i=this,a=null;try{a=this.b.auth().Ga()}catch(s){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=o.SDK_VERSION?So(o.SDK_VERSION,a):null,Np.call(this,n,e,t,(function(){try{var e=i.b.auth().ka()}catch(t){e=null}return e}),a,I(P),r)}function Vp(e,t,n,o){e:{n=Array.prototype.slice.call(n);for(var r=0,i=!1,a=0;a<t.length;a++)if(t[a].optional)i=!0;else{if(i)throw new S("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(i=t.length,n.length<r||i<n.length)o="Expected "+(r==i?1==r?"1 argument":r+" arguments":r
2+"-"+i+" arguments")+" but got "+n.length+".";else{for(r=0;r<n.length;r++)if(i=t[r].optional&&void 0===n[r],!t[r].K(n[r])&&!i){if(t=t[r],0>r||r>=Hp.length)throw new S("internal-error","Argument validator received an unsupported number of arguments.");n=Hp[r],o=(o?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.J+".";break e}o=null}}if(o)throw new S("argument-error",e+" failed: "+o)}(t=Np.prototype).Ia=function(){var e=this;return this.f?this.f:this.f=Lp(this,Tt().then((function(){if(No()&&!Co())return yo();throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.v.g(e.u())})).then((function(t){return e.g=t,nl(e.o,Ws,{})})).then((function(t){e.a[Fp]=t.recaptchaSiteKey})).s((function(t){throw e.f=null,t})))},t.render=function(){Gp(this);var e=this;return Lp(this,this.Ia().then((function(){if(null===e.c){var t=e.m;if(!e.i){var n=at(t);t=function(e,t,n){var o=arguments,r=document,i=String(o[0]),a=o[1];if(!it&&a&&(a.name||a.type)){if(i=["<",i],a.name&&i.push(' name="',Be(a.name),'"'),a.type){i.push(' type="',Be(a.type),'"');var s={};ve(s,a),delete s.type,a=s}i.push(">"),i=i.join("")}return i=dt(r,i),a&&("string"===typeof a?i.className=a:Array.isArray(a)?i.className=a.join(" "):st(i,a)),2<o.length&&pt(r,i,o),i}("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},t.verify=function(){Gp(this);var e=this;return Lp(this,this.render().then((function(t){return new wt((function(n){var o=e.g.getResponse(t);if(o)n(o);else{e.l.push((function t(o){o&&(function(e,t){X(e.l,(function(e){return e==t}))}(e,t),n(o))})),e.i&&e.g.execute(e.c)}}))})))},t.reset=function(){Gp(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Gp(this),this.A=!0,this.v.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=at(this.m);for(var t;t=e.firstChild;)e.removeChild(t)}},R(Wp,Np);var Hp="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function jp(e,t){return{name:e||"",J:"a valid string",optional:!!t,K:function(e){return"string"===typeof e}}}function Bp(e,t){return{name:e||"",J:"a boolean",optional:!!t,K:function(e){return"boolean"===typeof e}}}function Up(e,t){return{name:e||"",J:"a valid object",optional:!!t,K:y}}function zp(e,t){return{name:e||"",J:"a function",optional:!!t,K:function(e){return"function"===typeof e}}}function Yp(e,t){return{name:e||"",J:"null",optional:!!t,K:function(e){return null===e}}}function qp(e){return{name:e?e+"Credential":"credential",J:e?"a valid "+e+" credential":"a valid credential",optional:!1,K:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ja||!n)}}}function Kp(e,t){return y(e)&&"string"===typeof e.type&&e.type===t&&"function"===typeof e.Ha}function Qp(e){return y(e)&&"string"===typeof e.uid}function Xp(e,t,n,o){return{name:n||"",J:e.J+" or "+t.J,optional:!!o,K:function(n){return e.K(n)||t.K(n)}}}function $p(e,t){for(var n in t){var o=t[n].name;e[o]=ed(o,e[n],t[n].j)}}function Jp(e,t){for(var n in t){var o=t[n].name;o!==n&&Object.defineProperty(e,o,{get:_((function(e){return this[e]}),n),set:_((function(e,t,n,o){Vp(e,[n],[o],!0),this[t]=o}),o,n,t[n].jb),enumerable:!0})}}function Zp(e,t,n,o){e[t]=ed(t,n,o)}function ed(e,t,n){function o(){var e=Array.prototype.slice.call(arguments);return Vp(i,n,e),t.apply(this,e)}if(!n)return t;var r,i=function(e){return(e=e.split("."))[e.length-1]}(e);for(r in t)o[r]=t[r];for(r in t.prototype)o.prototype[r]=t.prototype[r];return o}$p(op.prototype,{ib:{name:"applyActionCode",j:[jp("code")]},Qa:{name:"checkActionCode",j:[jp("code")]},mb:{name:"confirmPasswordReset",j:[jp("code"),jp("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[jp("email"),jp("password")]},gc:{name:"fetchSignInMethodsForEmail",j:[jp("email")]},qa:{name:"getRedirectResult",j:[]},Ac:{name:"isSignInWithEmailLink",j:[jp("emailLink")]},Gc:{name:"onAuthStateChanged",j:[Xp(Up(),zp(),"nextOrObserver"),zp("opt_error",!0),zp("opt_completed",!0)]},Hc:{name:"onIdTokenChanged",j:[Xp(Up(),zp(),"nextOrObserver"),zp("opt_error",!0),zp("opt_completed",!0)]},ub:{name:"sendPasswordResetEmail",j:[jp("email"),Xp(Up("opt_actionCodeSettings",!0),Yp(null,!0),"opt_actionCodeSettings",!0)]},vb:{name:"sendSignInLinkToEmail",j:[jp("email"),Up("actionCodeSettings")]},wb:{name:"setPersistence",j:[jp("persistence")]},Rc:{name:"signInAndRetrieveDataWithCredential",j:[qp()]},yb:{name:"signInAnonymously",j:[]},Za:{name:"signInWithCredential",j:[qp()]},Sc:{name:"signInWithCustomToken",j:[jp("token")]},Tc:{name:"signInWithEmailAndPassword",j:[jp("email"),jp("password")]},Uc:{name:"signInWithEmailLink",j:[jp("email"),jp("emailLink",!0)]},Vc:{name:"signInWithPhoneNumber",j:[jp("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]}
2,Wc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Xc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},cd:{name:"updateCurrentUser",j:[Xp({name:"user",J:"an instance of Firebase User",optional:!1,K:function(e){return!!(e&&e instanceof vc)}},Yp(),"user")]},zb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[jp(null,!0)]},ed:{name:"useDeviceLanguage",j:[]},fd:{name:"useEmulator",j:[jp("url")]},hd:{name:"verifyPasswordResetCode",j:[jp("code")]}}),Jp(op.prototype,{lc:{name:"languageCode",jb:Xp(jp(),Yp(),"languageCode")},ti:{name:"tenantId",jb:Xp(jp(),Yp(),"tenantId")}}),op.Persistence=$l,op.Persistence.LOCAL="local",op.Persistence.SESSION="session",op.Persistence.NONE="none",$p(vc.prototype,{delete:{name:"delete",j:[]},nc:{name:"getIdTokenResult",j:[Bp("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Bp("opt_forceRefresh",!0)]},Bc:{name:"linkAndRetrieveDataWithCredential",j:[qp()]},pb:{name:"linkWithCredential",j:[qp()]},Cc:{name:"linkWithPhoneNumber",j:[jp("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Dc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Ec:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Kc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[qp()]},sb:{name:"reauthenticateWithCredential",j:[qp()]},Lc:{name:"reauthenticateWithPhoneNumber",j:[jp("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Mc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Nc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},tb:{name:"sendEmailVerification",j:[Xp(Up("opt_actionCodeSettings",!0),Yp(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[jp(null,!0)]},bd:{name:"unlink",j:[jp("provider")]},Ab:{name:"updateEmail",j:[jp("email")]},Bb:{name:"updatePassword",j:[jp("password")]},dd:{name:"updatePhoneNumber",j:[qp("phone")]},Cb:{name:"updateProfile",j:[Up("profile")]},Db:{name:"verifyBeforeUpdateEmail",j:[jp("email"),Xp(Up("opt_actionCodeSettings",!0),Yp(null,!0),"opt_actionCodeSettings",!0)]}}),$p(mp.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),$p(vp.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),$p(wt.prototype,{na:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),Jp(Qu.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",jb:Bp("appVerificationDisabledForTesting")}}),$p(Xu.prototype,{confirm:{name:"confirm",j:[jp("verificationCode")]}}),Zp(li,"fromJSON",(function(e){e="string"===typeof e?JSON.parse(e):e;for(var t,n=[gi,Pi,xi,di],o=0;o<n.length;o++)if(t=n[o](e))return t;return null}),[Xp(jp(),Up(),"json")]),Zp(Di,"credential",(function(e,t){return new Ti(e,t)}),[jp("email"),jp("password")]),$p(Ti.prototype,{w:{name:"toJSON",j:[jp(null,!0)]}}),$p(Ci.prototype,{Ca:{name:"addScope",j:[jp("scope")]},Ka:{name:"setCustomParameters",j:[Up("customOAuthParameters")]}}),Zp(Ci,"credential",wi,[Xp(jp(),Up(),"token")]),Zp(Di,"credentialWithLink",Ai,[jp("email"),jp("emailLink")]),$p(bi.prototype,{Ca:{name:"addScope",j:[jp("scope")]},Ka:{name:"setCustomParameters",j:[Up("customOAuthParameters")]}}),Zp(bi,"credential",Ei,[Xp(jp(),Up(),"token")]),$p(_i.prototype,{Ca:{name:"addScope",j:[jp("scope")]},Ka:{name:"setCustomParameters",j:[Up("customOAuthParameters")]}}),Zp(_i,"credential",Oi,[Xp(jp(),Xp(Up(),Yp()),"idToken"),Xp(jp(),Yp(),"accessToken",!0)]),$p(Ri.prototype,{Ka:{name:"setCustomParameters",j:[Up("customOAuthParameters")]}}),Zp(Ri,"credential",Si,[Xp(jp(),Up(),"token"),jp("secret",!0)]),$p(mi.prototype,{Ca:{name:"addScope",j:[jp("scope")]},credential:{name:"credential",j:[Xp(jp(),Xp(Up(),Yp()),"optionsOrIdToken"),Xp(jp(),Yp(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Up("customOAuthParameters")]}}),$p(hi.prototype,{w:{name:"toJSON",j:[jp(null,!0)]}}),$p(ci.prototype,{w:{name:"toJSON",j:[jp(null,!0)]}}),Zp(ki,"credential",Mi,[jp("verificationId"),jp("verificationCode")]),$p(ki.prototype,{eb:{name:"verifyPhoneNumber",j:[Xp(jp(),{name:"phoneInfoOptions",J:"valid phone info o
2ptions",optional:!1,K:function(e){return!!e&&(e.session&&e.phoneNumber?Kp(e.session,ai)&&"string"===typeof e.phoneNumber:e.session&&e.multiFactorHint?Kp(e.session,si)&&Qp(e.multiFactorHint):e.session&&e.multiFactorUid?Kp(e.session,si)&&"string"===typeof e.multiFactorUid:!!e.phoneNumber&&"string"===typeof e.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]}}),$p(Ii.prototype,{w:{name:"toJSON",j:[jp(null,!0)]}}),$p(S.prototype,{toJSON:{name:"toJSON",j:[jp(null,!0)]}}),$p(zi.prototype,{toJSON:{name:"toJSON",j:[jp(null,!0)]}}),$p(Ui.prototype,{toJSON:{name:"toJSON",j:[jp(null,!0)]}}),$p(nc.prototype,{toJSON:{name:"toJSON",j:[jp(null,!0)]}}),$p(Zu.prototype,{Qc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.rb}}]}}),$p(lc.prototype,{Qb:{name:"getSession",j:[]},ec:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.rb}},jp("displayName",!0)]},ad:{name:"unenroll",j:[Xp({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Qp},jp(),"multiFactorInfoIdentifier")]}}),$p(Wp.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Zp(wr,"parseLink",Pr,[jp("link")]),Zp(Op,"assertion",(function(e){return new ac(e)}),[qp("phone")]),function(){if("undefined"===typeof o||!o.INTERNAL||!o.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:lr,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:sr,VERIFY_AND_CHANGE_EMAIL:ur,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:op,AuthCredential:li,Error:S};Zp(e,"EmailAuthProvider",Di,[]),Zp(e,"FacebookAuthProvider",Ci,[]),Zp(e,"GithubAuthProvider",bi,[]),Zp(e,"GoogleAuthProvider",_i,[]),Zp(e,"TwitterAuthProvider",Ri,[]),Zp(e,"OAuthProvider",mi,[jp("providerId")]),Zp(e,"SAMLAuthProvider",vi,[jp("providerId")]),Zp(e,"PhoneAuthProvider",ki,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(e){return!!(e&&e instanceof op)}}]),Zp(e,"RecaptchaVerifier",Wp,[Xp(jp(),{name:"",J:"an HTML element",optional:!1,K:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Up("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(e){return!!(e&&e instanceof o.app.App)}}]),Zp(e,"ActionCodeURL",wr,[]),Zp(e,"PhoneMultiFactorGenerator",Op,[]),o.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new op(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),o.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:E((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:E(e.mc,e),addAuthTokenListener:E(e.cc,e),removeAuthTokenListener:E(e.Oc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),o.registerVersion("@firebase/auth","0.15.0"),o.INTERNAL.extendNamespace({User:vc})}()}).apply("undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}).call(this,n(31))},function(e,t,n){"use strict";n(105)},function(e,t,n){"use strict";(function(o){Object.defineProperty(t,"__esModule",{value:!0});var r=n(38),i=n(26),a=n(61),s=n(82),l=n(52);function u(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var c=u(r),p=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),a.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:a.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),d=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return a.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),h=function(e){try{if("undefined"!==typeof window&&"undefined"!==typeof window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new p(t)}}catch(n){}return new d},f=h("localStorage"),g=h("sessionStorage"),y=new s.Logger("@firebase/database"),v=function(){var e=1;return function(){return e++}}
2(),m=function(e){var t=a.stringToByteArray(e),n=new a.Sha1;n.update(t);var o=n.digest();return a.base64.encodeByteArray(o)},C=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o="",r=0;r<t.length;r++){var i=t[r];Array.isArray(i)||i&&"object"===typeof i&&"number"===typeof i.length?o+=e.apply(null,i):o+="object"===typeof i?a.stringify(i):i,o+=" "}return o},w=null,b=!0,E=function(e,t){a.assert(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(y.logLevel=s.LogLevel.VERBOSE,w=y.log.bind(y),t&&g.set("logging_enabled",!0)):"function"===typeof e?w=e:(w=null,g.remove("logging_enabled"))},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===b&&(b=!1,null===w&&!0===g.get("logging_enabled")&&E(!0)),w){var n=C.apply(null,e);w(n)}},O=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];_.apply(void 0,i.__spread([e],t))}},R=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+C.apply(void 0,i.__spread(e));y.error(n)},S=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+C.apply(void 0,i.__spread(e));throw y.error(n),new Error(n)},T=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+C.apply(void 0,i.__spread(e));y.warn(n)},P=function(e){return"number"===typeof e&&(e!==e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},D="[MIN_NAME]",A="[MAX_NAME]",N=function(e,t){if(e===t)return 0;if(e===D||t===A)return-1;if(t===D||e===A)return 1;var n=W(e),o=W(t);return null!==n?null!==o?n-o===0?e.length-t.length:n-o:-1:null!==o?1:e<t?-1:1},I=function(e,t){return e===t?0:e<t?-1:1},x=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+a.stringify(t))},F=function e(t){if("object"!==typeof t||null===t)return a.stringify(t);var n=[];for(var o in t)n.push(o);n.sort();for(var r="{",i=0;i<n.length;i++)0!==i&&(r+=","),r+=a.stringify(n[i]),r+=":",r+=e(t[n[i]]);return r+="}"},k=function(e,t){var n=e.length;if(n<=t)return[e];for(var o=[],r=0;r<n;r+=t)r+t>n?o.push(e.substring(r,n)):o.push(e.substring(r,r+t));return o};function M(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var L=function(e){a.assert(!P(e),"Invalid JSON number");var t,n,o,r,i;0===e?(n=0,o=0,t=1/e===-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(r=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,o=Math.round(e*Math.pow(2,52-r)-Math.pow(2,52))):(n=0,o=Math.round(e/Math.pow(2,-1074))));var s=[];for(i=52;i;i-=1)s.push(o%2?1:0),o=Math.floor(o/2);for(i=11;i;i-=1)s.push(n%2?1:0),n=Math.floor(n/2);s.push(t?1:0),s.reverse();var l=s.join(""),u="";for(i=0;i<64;i+=8){var c=parseInt(l.substr(i,8),2).toString(16);1===c.length&&(c="0"+c),u+=c}return u.toLowerCase()},G=new RegExp("^-?(0*)\\d{1,10}$"),W=function(e){if(G.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},V=function(e){try{e()}catch(t){setTimeout((function(){var e=t.stack||"";throw T("Exception was thrown by user callback.",e),t}),Math.floor(0))}},H=function(e,t){var n=setTimeout(e,t);return"object"===typeof n&&n.unref&&n.unref(),n},j=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,o=0;o<this.pieces_.length;o++)this.pieces_[o].length>0&&(this.pieces_[n]=this.pieces_[o],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!1,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],o=this.pieceNum_;o<this.pieces_.length;o++)n.push(this.pieces_[o]);if(t instanceof e)for(o=t.pieceNum_;o<t.pieces_.length;o++)n.push(t.pieces_[o]);else{var r=t.split("/");for(o=0;o<r.length;o++)r[o].length>0&&n.push(r[o])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var o=t.getFront(),r=n.getFront();if(null===o)return n;if(o===r)return e.relativePath(t.popFront(),n.popFront());
2throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),o=t.slice(),r=0;r<n.length&&r<o.length;r++){var i=N(n[r],o[r]);if(0!==i)return i}return n.length===o.length?0:n.length<o.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}(),B=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=a.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!1,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!1,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=a.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=a.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),U=function(){function e(e,t,n,o,r,i,a){void 0===r&&(r=!1),void 0===i&&(i=""),void 0===a&&(a=!1),this.secure=t,this.namespace=n,this.webSocketOnly=o,this.nodeAdmin=r,this.persistenceKey=i,this.includeNamespaceInQueryParams=a,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=f.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&f.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if(a.assert("string"===typeof e,"typeof type must == string"),a.assert("object"===typeof t,"typeof params must == object"),"websocket"===e)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if("long_polling"!==e)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var o=[];return M(t,(function(e,t){o.push(e+"="+t)})),n+o.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();var z,Y,q=function(e,t){var n=K(e),o=n.namespace;"firebase.com"===n.domain&&S(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),o&&"undefined"!==o||"localhost"===n.domain||S("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&T("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var r="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new U(n.host,n.secure,o,t,r,"",o!==n.subdomain),path:new j(n.pathString)}},K=function(e){var t="",n="",o="",r="",a="",s=!0,l="https",u=443;if("string"===typeof e){var c=e.indexOf("//");c>=0&&(l=e.substring(0,c-1),e=e.substring(c+2));var p=e.indexOf("/");-1===p&&(p=e.length);var d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(p,d)),p<d&&(r=function(e){for(var t="",n=e.split("/"),o=0;o<n.length;o++)if(n[o].length>0){var r=n[o];try{r=decodeURIComponent(r.replace(/\+/g," "))}catch(i){}t+="/"+r}return t}(e.substring(p,d)));var h=function(e){var t,n,o={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var r=i.__values(e.split("&")),a=r.next();!a.done;a=r.next()){var s=a.value;if(0!==s.length){var l=s.split("=");2===l.length?o[decodeURIComponent(l[0])]=decodeURIComponent(l[1]):T("Invalid query segment '"+s+"' in query '"+e+"'")}}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return o}(e.substring(Math.min(e.length,d)));(c=t.indexOf(":"))>=0?(s="https"===l||"wss"===l,u=parseInt(t.substring(c+1),10)):c=t.length;var f=t.slice(0,c);if("localhost"===f.toLowerCase())n="localhost";else if(f.split(".").length<=2)n=f;else{var g=t.indexOf(".");o=t.substring(0,g).toLowerCase(),n=t.substring(g+1),a=o}"ns"in h&&(a=h.ns)}return{host:t,port:u,domain:n,subdomain:o,secure:s,scheme:l,pathString:r,namespace:a}},Q=/[\[\].#$\/\u0000-\u001F\u007F]/,X=/[\[\].#$\u0000-\u001F\u007F]/,$=function(e){return"string"===typeof e&&0!==e.length&&!Q.test(e)},J=function(e){return"string"===typeof e&&0!==e.length&&!X.test(e)},Z=function(e){return null===e||"string"===typeof e||"number"===typeof e&&!P(e)||e&&"object"===typeof e&&a.contains(e,".sv")},ee=function(e,t,n,o,r){r&&void 0===n||te(a.errorPrefix(e,t,r),n,o)},te=function e(t,n,o){var r=o instanceof j?new B(o,t):o;if(void 0===n)throw new Error(t+"contains undefined "+r.toErrorString());if("function"===typeof n)throw new Error(t+"contains a function "+r.toErrorString()+" with contents = "+n.toString());if(P(n))throw new Error(t+"contains "+n.toString()+" "+r.toErrorString());if("string"===typeof n&&n.length>10485760/3&&a.stringLength(n)>10485760)throw new Error(t+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+n.substring(0,50)+"...')");if(n&&"object"===typeof n){var i=!1,s=!1;if(M(n,(function(n,o){if(".value"===n)i=!0;else if(".priority"!==n&&".sv"!==n&&(s=!0,!$(n)))throw new Error(t+" contains an invali
2d key ("+n+") "+r.toErrorString()+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(n),e(t,o,r),r.pop()})),i&&s)throw new Error(t+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},ne=function(e,t,n,o,r){if(!r||void 0!==n){var i=a.errorPrefix(e,t,r);if(!n||"object"!==typeof n||Array.isArray(n))throw new Error(i+" must be an object containing the children to replace.");var s=[];M(n,(function(e,t){var n=new j(e);if(te(i,t,o.child(n)),".priority"===n.getBack()&&!Z(t))throw new Error(i+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");s.push(n)})),function(e,t){var n,o;for(n=0;n<t.length;n++)for(var r=(o=t[n]).slice(),i=0;i<r.length;i++)if(".priority"===r[i]&&i===r.length-1);else if(!$(r[i]))throw new Error(e+"contains an invalid key ("+r[i]+") in path "+o.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');t.sort(j.comparePaths);var a=null;for(n=0;n<t.length;n++){if(o=t[n],null!==a&&a.contains(o))throw new Error(e+"contains a path "+a.toString()+" that is ancestor of another path "+o.toString());a=o}}(i,s)}},oe=function(e,t,n,o){if(!o||void 0!==n){if(P(n))throw new Error(a.errorPrefix(e,t,o)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!Z(n))throw new Error(a.errorPrefix(e,t,o)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},re=function(e,t,n,o){if(!o||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(a.errorPrefix(e,t,o)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},ie=function(e,t,n,o){if((!o||void 0!==n)&&!$(n))throw new Error(a.errorPrefix(e,t,o)+'was an invalid key = "'+n+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},ae=function(e,t,n,o){if((!o||void 0!==n)&&!J(n))throw new Error(a.errorPrefix(e,t,o)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},se=function(e,t,n,o){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ae(e,t,n,o)},le=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},ue=function(e,t,n){var o=n.path.toString();if("string"!==typeof n.repoInfo.host||0===n.repoInfo.host.length||!$(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==o.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),J(e)}(o))throw new Error(a.errorPrefix(e,t,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},ce=function(e,t,n,o){if((!o||void 0!==n)&&"boolean"!==typeof n)throw new Error(a.errorPrefix(e,t,o)+"must be a boolean.")},pe=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){a.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),a.validateCallback("OnDisconnect.cancel",1,e,!0);var t=new a.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){a.validateArgCount("OnDisconnect.remove",0,1,arguments.length),le("OnDisconnect.remove",this.path_),a.validateCallback("OnDisconnect.remove",1,e,!0);var t=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){a.validateArgCount("OnDisconnect.set",1,2,arguments.length),le("OnDisconnect.set",this.path_),ee("OnDisconnect.set",1,e,this.path_,!1),a.validateCallback("OnDisconnect.set",2,t,!0);var n=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){a.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),le("OnDisconnect.setWithPriority",this.path_),ee("OnDisconnect.setWithPriority",1,e,this.path_,!1),oe("OnDisconnect.setWithPriority",2,t,!1),a.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var o=new a.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,o.wrapCallback(n)),o.promise},e.prototype.update=function(e,t){if(a.validateArgCount("OnDisconnect.update",1,2,arguments.length),le("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},o=0;o<e.length;++o)n[""+o]=e[o];e=n,T("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ne("OnDisconnect.update",1,e,this.path_,!1),a.validateCallback("OnDisconnect.update",2,t,!0);var r=new a.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,r.wrapCallback(t)),r.promise},e}(),de=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return a.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),he=function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,n=[];return function(o){var r,i=o===t;t=o;var s=new Array(8);for(r=7;r>=0;r--)s[r]=e.charAt(o%64),o=Math.floor(o/64);a.assert(0===o,"Cannot push at time == 0");var l=s.join("");if(i){for(r=11;r>=0&&63===n[r];r--)n[r]=0;n[r]++}else for(r=0;r<12;r++)n[r]=Math.floor(64*Math.random());for(r=0;r<12;r++)l+=e.charAt(n[r]);return a.assert(20===l.length,"nextPushId: Length should be 20."),l}}(),fe=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),ge=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new fe(D,e),o=new fe(D,t);return 0!==this.compare(n,o)},e.prototype.minPost=function(){return fe.MIN},e}(),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return z},set:function(e){z=e}
2,enumerable:!1,configurable:!0}),t.prototype.compare=function(e,t){return N(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw a.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return fe.MIN},t.prototype.maxPost=function(){return new fe(A,z)},t.prototype.makePost=function(e,t){return a.assert("string"===typeof e,"KeyIndex indexValue must always be a string."),new fe(e,z)},t.prototype.toString=function(){return".key"},t}(ge),ve=new ye;var me,Ce,we,be=function(e){return"number"===typeof e?"number:"+L(e):"string:"+e},Ee=function(e){if(e.isLeafNode()){var t=e.val();a.assert("string"===typeof t||"number"===typeof t||"object"===typeof t&&a.contains(t,".sv"),"Priority must be a string or number.")}else a.assert(e===Y||e.isEmpty(),"priority of unexpected type.");a.assert(e===Y||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},_e=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,a.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Ee(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return me},set:function(e){me=e},enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var o=t.getFront();return null===o?n:n.isEmpty()&&".priority"!==o?this:(a.assert(".priority"!==o||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(o,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+be(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?L(this.value_):this.value_,this.lazyHash_=m(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(a.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,o=typeof this.value_,r=e.VALUE_TYPE_ORDER.indexOf(n),i=e.VALUE_TYPE_ORDER.indexOf(o);return a.assert(r>=0,"Unknown leaf type: "+n),a.assert(i>=0,"Unknown leaf type: "+o),r===i?"object"===o?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:i-r},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}();var Oe,Re,Se=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),o=t.node.getPriority(),r=n.compareTo(o);return 0===r?N(e.name,t.name):r},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return fe.MIN},t.prototype.maxPost=function(){return new fe(A,new _e("[PRIORITY-POST]",we))},t.prototype.makePost=function(e,t){var n=Ce(e);return new fe(t,new _e("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(ge)),Te=function(){function e(e,t,n,o,r){void 0===r&&(r=null),this.isReverse_=o,this.resultGenerator_=r,this.nodeStack_=[];for(var i=1;!e.isEmpty();)if(e=e,i=t?n(e.key,t):1,o&&(i*=-1),i<0)e=this.isReverse_?e.left:e.right;else{if(0===i){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),Pe=function(){function e(t,n,o,r,i){this.key=t,this.value=n,this.color=null!=o?o:e.RED,this.left=null!=r?r:Ae.EMPTY_NODE,this.right=null!=i?i:Ae.EMPTY_NODE}return e.prototype.copy=function(t,n,o,r,i){return new e(null!=t?t:this.key,null!=n?n:this.value,
2null!=o?o:this.color,null!=r?r:this.left,null!=i?i:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var o=this,r=n(e,o.key);return(o=r<0?o.copy(null,null,null,o.left.insert(e,t,n),null):0===r?o.copy(null,t,null,null,null):o.copy(null,null,null,null,o.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return Ae.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,o;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Ae.EMPTY_NODE;o=n.right.min_(),n=n.copy(o.key,o.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
2if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),De=function(){function e(){}return e.prototype.copy=function(e,t,n,o,r){return this},e.prototype.insert=function(e,t,n){return new Pe(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),Ae=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Pe.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Pe.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,o=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return o?o.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(o=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Te(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Te(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Te(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Te(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new De,e}(),Ne=Math.log(2),Ie=function(){function e(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/Ne,10)),this.current_=this.count-1;var n,o=(n=this.count,parseInt(Array(n+1).join("1"),2));this.bits_=e+1&o}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),xe=function(e,t,n,o){e.sort(t);var r=function(t){for(var o=null,r=null,i=e.length,a=function(t,o){var r=i-t,a=i;i-=t;var l=function t(o,r){var i,a,s=r-o;if(0===s)return null;if(1===s)return i=e[o],a=n?n(i):i,new Pe(a,i.node,Pe.BLACK,null,null);var l=parseInt(s/2,10)+o,u=t(o,l),c=t(l+1,r);return i=e[l],a=n?n(i):i,new Pe(a,i.node,Pe.BLACK,u,c)}(r+1,a),u=e[r],c=n?n(u):u;s(new Pe(c,u.node,o,null,l))},s=function(e){o?(o.left=e,o=e):(r=e,o=e)},l=0;l<t.count;++l){var u=t.nextBitIsOne(),c=Math.pow(2,t.count-(l+1));u?a(c,Pe.BLACK):(a(c,Pe.BLACK),a(c,Pe.RED))}return r}(new Ie(e.length));return new Ae(o||t,r)},Fe={},ke=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return a.assert(Fe&&Se,"ChildrenNode.ts has not been loaded"),Oe=Oe||new e({".priority":Fe},{".priority":Se})},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t=a.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Ae?t:null},e.prototype.hasIndex=function(e){return a.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){a.assert(t!==ve,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var o,r=[],s=!1,l=n.getIterator(fe.Wrap),u=l.getNext();u;)s=s||t.isDefinedOn(u.node),r.push(u),u=l.getNext();o=s?xe(r,t.getCompare()):Fe;var c=t.toString(),p=i.__assign({},this.indexSet_);p[c]=t;var d=i.__assign({},this.indexes_);return d[c]=o,new e(d,p)},e.prototype.addToIndexes=function(t,n){var o=this;return new e(a.map(this.indexes_,(function(e,r){var i=a.safeGet(o.indexSet_,r);
2if(a.assert(i,"Missing index implementation for "+r),e===Fe){if(i.isDefinedOn(t.node)){for(var s=[],l=n.getIterator(fe.Wrap),u=l.getNext();u;)u.name!==t.name&&s.push(u),u=l.getNext();return s.push(t),xe(s,i.getCompare())}return Fe}var c=n.get(t.name),p=e;return c&&(p=p.remove(new fe(t.name,c))),p.insert(t,t.node)})),this.indexSet_)},e.prototype.removeFromIndexes=function(t,n){return new e(a.map(this.indexes_,(function(e){if(e===Fe)return e;var o=n.get(t.name);return o?e.remove(new fe(t.name,o)):e})),this.indexSet_)},e}();function Me(e,t){return N(e.name,t.name)}function Le(e,t){return N(e,t)}var Ge=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Ee(this.priorityNode_),this.children_.isEmpty()&&a.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return Re||(Re=new e(new Ae(Le),null,ke.Default))},enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||Re},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?Re:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(a.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var o=new fe(t,n),r=void 0,i=void 0;n.isEmpty()?(r=this.children_.remove(t),i=this.indexMap_.removeFromIndexes(o,this.children_)):(r=this.children_.insert(t,n),i=this.indexMap_.addToIndexes(o,this.children_));var s=r.isEmpty()?Re:this.priorityNode_;return new e(r,s,i)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;a.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var o=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,o)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},o=0,r=0,i=!0;if(this.forEachChild(Se,(function(a,s){n[a]=s.val(t),o++,i&&e.INTEGER_REGEXP_.test(a)?r=Math.max(r,Number(a)):i=!1})),!t&&i&&r<2*o){var a=[];for(var s in n)a[s]=n[s];return a}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+be(this.getPriority().val())+":"),this.forEachChild(Se,(function(t,n){var o=n.hash();""!==o&&(e+=":"+t+":"+o)})),this.lazyHash_=""===e?"":m(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var o=this.resolveIndex_(n);if(o){var r=o.getPredecessorKey(new fe(e,t));return r?r.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new fe(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new fe(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal((function(e){return t(e.name,e.node)})):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(function(e){return e}));for(var o=this.children_.getIteratorFrom(e.name,fe.Wrap),r=o.peek();null!=r&&t.compare(r,e)<0;)o.getNext(),r=o.peek();return o},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)}
2,e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(function(e){return e}));for(var o=this.children_.getReverseIteratorFrom(e.name,fe.Wrap),r=o.peek();null!=r&&t.compare(r,e)>0;)o.getNext(),r=o.peek();return o},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===We?-1:0},e.prototype.withIndex=function(t){if(t===ve||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===ve||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(Se),o=t.getIterator(Se),r=n.getNext(),i=o.getNext();r&&i;){if(r.name!==i.name||!r.node.equals(i.node))return!1;r=n.getNext(),i=o.getNext()}return null===r&&null===i}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===ve?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),We=new(function(e){function t(){return e.call(this,new Ae(Le),Ge.EMPTY_NODE,ke.Default)||this}return i.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return Ge.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(Ge));Object.defineProperties(fe,{MIN:{value:new fe(D,Ge.EMPTY_NODE)},MAX:{value:new fe(A,We)}}),ye.__EMPTY_NODE=Ge.EMPTY_NODE,_e.__childrenNodeConstructor=Ge,Y=We,function(e){we=e}(We);function Ve(e,t){if(void 0===t&&(t=null),null===e)return Ge.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),a.assert(null===t||"string"===typeof t||"number"===typeof t||"object"===typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"===typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==typeof e||".sv"in e)return new _e(e,Ve(t));if(e instanceof Array){var n=Ge.EMPTY_NODE;return M(e,(function(t,o){if(a.contains(e,t)&&"."!==t.substring(0,1)){var r=Ve(o);!r.isLeafNode()&&r.isEmpty()||(n=n.updateImmediateChild(t,r))}})),n.updatePriority(Ve(t))}var o=[],r=!1;if(M(e,(function(e,t){if("."!==e.substring(0,1)){var n=Ve(t);n.isEmpty()||(r=r||!n.getPriority().isEmpty(),o.push(new fe(e,n)))}})),0===o.length)return Ge.EMPTY_NODE;var i=xe(o,Me,(function(e){return e.name}),Le);if(r){var s=xe(o,Se.getCompare());return new Ge(i,Ve(t),new ke({".priority":s},{".priority":Se}))}return new Ge(i,Ve(t),ke.Default)}!function(e){Ce=e}(Ve);var He,je=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?N(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return fe.MIN},t.prototype.maxPost=function(){return fe.MAX},t.prototype.makePost=function(e,t){var n=Ve(e);return new fe(t,n)},t.prototype.toString=function(){return".value"},t}(ge)),Be=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,a.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return i.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),o=this.extractChild(t.node),r=n.compareTo(o);return 0===r?N(e.name,t.name):r},t.prototype.makePost=function(e,t){var n=Ve(e),o=Ge.EMPTY_NODE.updateChild(this.indexPath_,n);return new fe(t,o)},t.prototype.maxPost=function(){var e=Ge.EMPTY_NODE.updateChild(this.indexPath_,We);return new fe(A,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(ge),Ue=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return a.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()}
2,e.prototype.exportVal=function(){return a.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return a.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return a.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){a.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),ae("DataSnapshot.child",1,t,!1);var n=new j(t),o=this.ref_.child(n);return new e(this.node_.getChild(n),o,Se)},e.prototype.hasChild=function(e){a.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),ae("DataSnapshot.hasChild",1,e,!1);var t=new j(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return a.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;if(a.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),a.validateCallback("DataSnapshot.forEach",1,t,!1),this.node_.isLeafNode())return!1;var o=this.node_;return!!o.forEachChild(this.index_,(function(o,r){return t(new e(r,n.ref_.child(o),Se))}))},e.prototype.hasChildren=function(){return a.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!1,configurable:!0}),e.prototype.numChildren=function(){return a.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return a.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),e}(),ze=function(){function e(e,t,n,o){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=o}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+a.stringify(this.snapshot.exportVal())},e}(),Ye=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),qe=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new ze("value",this,new Ue(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var o=this.callback_;return function(){o.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Ye(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),Ke=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,a.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Ye(this,e,t):null},e.prototype.createEvent=function(e,t){a.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),o=t.getQueryParams().getIndex();return new ze(e.type,this,new Ue(e.snapshotNode,n,o),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var o=this.callbacks_[e.eventType];return function(){o.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){var n=this;if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;
2if(this.context_===t.context_){var o=Object.keys(t.callbacks_),r=Object.keys(this.callbacks_),i=o.length;if(i===r.length){if(1===i){var a=o[0],s=r[0];return s===a&&(!t.callbacks_[a]||!this.callbacks_[s]||t.callbacks_[a]===this.callbacks_[s])}return r.every((function(e){return t.callbacks_[e]===n.callbacks_[e]}))}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),Qe=function(){function e(e,t,n,o){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=o}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return a.assert(He,"Reference.ts has not been loaded"),He},set:function(e){He=e},enumerable:!1,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===ve){var o="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",r="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==D)throw new Error(o);if("string"!==typeof t)throw new Error(r)}if(e.hasEnd()){if(e.getIndexEndName()!==A)throw new Error(o);if("string"!==typeof n)throw new Error(r)}}else if(e.getIndex()===Se){if(null!=t&&!Z(t)||null!=n&&!Z(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(a.assert(e.getIndex()instanceof Be||e.getIndex()===je,"unknown index type."),null!=t&&"object"===typeof t||null!=n&&"object"===typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return a.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,o,r){a.validateArgCount("Query.on",2,4,arguments.length),re("Query.on",1,t,!1),a.validateCallback("Query.on",2,n,!1);var i=e.getCancelAndContextArgs_("Query.on",o,r);if("value"===t)this.onValueEvent(n,i.cancel,i.context);else{var s={};s[t]=n,this.onChildEvent(s,i.cancel,i.context)}return n},e.prototype.onValueEvent=function(e,t,n){var o=new qe(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,o)},e.prototype.onChildEvent=function(e,t,n){var o=new Ke(e,t,n);this.repo.addEventCallbackForQuery(this,o)},e.prototype.off=function(e,t,n){a.validateArgCount("Query.off",0,3,arguments.length),re("Query.off",1,e,!0),a.validateCallback("Query.off",2,t,!0),a.validateContextObject("Query.off",3,n,!0);var o=null,r=null;if("value"===e){var i=t||null;o=new qe(i,null,n||null)}else e&&(t&&((r={})[e]=t),o=new Ke(r,null,n||null));this.repo.removeEventCallbackForQuery(this,o)},e.prototype.once=function(t,n,o,r){var i=this;a.validateArgCount("Query.once",1,4,arguments.length),re("Query.once",1,t,!1),a.validateCallback("Query.once",2,n,!0);var s=e.getCancelAndContextArgs_("Query.once",o,r),l=!0,u=new a.Deferred;u.promise.catch((function(){}));var c=function e(o){l&&(l=!1,i.off(t,e),n&&n.bind(s.context)(o),u.resolve(o))};return this.on(t,c,(function(e){i.off(t,c),s.cancel&&s.cancel.bind(s.context)(e),u.reject(e)})),u.promise},e.prototype.limitToFirst=function(t){if(a.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(a.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set 
2(by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(a.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid.  Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid.  Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid.  Use Query.orderByValue() instead.');ae("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new j(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path.  Use Query.orderByValue() instead.");var o=new Be(n),r=this.queryParams_.orderBy(o);return e.validateQueryEndpoints_(r),new e(this.repo,this.path,r,!0)},e.prototype.orderByKey=function(){a.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(ve);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){a.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy(Se);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){a.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(je);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),a.validateArgCount("Query.startAt",0,2,arguments.length),ee("Query.startAt",1,t,this.path,!0),ie("Query.startAt",2,n,!0);var o=this.queryParams_.startAt(t,n);if(e.validateLimit_(o),e.validateQueryEndpoints_(o),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,o,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),a.validateArgCount("Query.endAt",0,2,arguments.length),ee("Query.endAt",1,t,this.path,!0),ie("Query.endAt",2,n,!0);var o=this.queryParams_.endAt(t,n);if(e.validateLimit_(o),e.validateQueryEndpoints_(o),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,o,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(a.validateArgCount("Query.equalTo",1,2,arguments.length),ee("Query.equalTo",1,e,this.path,!1),ie("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return a.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return a.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=F(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(a.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}var o=this.repo===t.repo,r=this.path.equals(t.path),i=this.queryIdentifier()===t.queryIdentifier();return o&&r&&i},e.getCancelAndContextArgs_=function(e,t,n){var o={cancel:null,context:null};if(t&&n)o.cancel=t,a.validateCallback(e,3,o.cancel,!0),o.context=n,a.validateContextObject(e,4,o.context,!0);else if(t)if("object"===typeof t&&null!==t)o.context=t;else{if("function"!==typeof t)throw new Error(a.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");o.cancel=t}return o},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()}
2,enumerable:!1,configurable:!0}),e}(),Xe=function(){function e(e){this.node_=e}return e.prototype.getImmediateChild=function(t){return new e(this.node_.getImmediateChild(t))},e.prototype.node=function(){return this.node_},e}(),$e=function(){function e(e,t){this.syncTree_=e,this.path_=t}return e.prototype.getImmediateChild=function(t){var n=this.path_.child(t);return new e(this.syncTree_,n)},e.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},e}(),Je=function(e,t,n){return e&&"object"===typeof e?(a.assert(".sv"in e,"Unexpected leaf node or priority contents"),"string"===typeof e[".sv"]?Ze(e[".sv"],t,n):"object"===typeof e[".sv"]?et(e[".sv"],t):void a.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},Ze=function(e,t,n){switch(e){case"timestamp":return n.timestamp;default:a.assert(!1,"Unexpected server value: "+e)}},et=function(e,t,n){e.hasOwnProperty("increment")||a.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var o=e.increment;"number"!==typeof o&&a.assert(!1,"Unexpected increment value: "+o);var r=t.node();if(a.assert(null!==r&&"undefined"!==typeof r,"Expected ChildrenNode.EMPTY_NODE for nulls"),!r.isLeafNode())return o;var i=r.getValue();return"number"!==typeof i?o:i+o},tt=function(e,t,n,o){return ot(t,new $e(n,e),o)},nt=function(e,t,n){return ot(e,new Xe(t),n)};function ot(e,t,n){var o,r=e.getPriority().val(),i=Je(r,t.getImmediateChild(".priority"),n);if(e.isLeafNode()){var a=e,s=Je(a.getValue(),t,n);return s!==a.getValue()||i!==a.getPriority().val()?new _e(s,Ve(i)):e}var l=e;return o=l,i!==l.getPriority().val()&&(o=o.updatePriority(new _e(i))),l.forEachChild(Se,(function(e,r){var i=ot(r,t.getImmediateChild(e),n);i!==r&&(o=o.updateImmediateChild(e,i))})),o}var rt,it=function(){function e(){this.value=null,this.children=new Map}return e.prototype.find=function(e){if(null!=this.value)return this.value.getChild(e);if(!e.isEmpty()&&this.children.size>0){var t=e.getFront();return e=e.popFront(),this.children.has(t)?this.children.get(t).find(e):null}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(t,n);else{var o=t.getFront();this.children.has(o)||this.children.set(o,new e);var r=this.children.get(o);t=t.popFront(),r.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var t=this.value;this.value=null;var n=this;return t.forEachChild(Se,(function(e,t){n.remember(new j(e),t)})),this.forget(e)}if(this.children.size>0){var o=e.getFront();if(e=e.popFront(),this.children.has(o))this.children.get(o).forget(e)&&this.children.delete(o);return 0===this.children.size}return!0},e.prototype.forEachTree=function(e,t){null!==this.value?t(e,this.value):this.forEachChild((function(n,o){var r=new j(e.toString()+"/"+n);o.forEachTree(r,t)}))},e.prototype.forEachChild=function(e){this.children.forEach((function(t,n){e(n,t)}))},e}();!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(rt||(rt={}));var at,st,lt=function(){function e(e,t,n,o){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=o,a.assert(!o||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),ut=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=rt.ACK_USER_WRITE,this.source=lt.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return a.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new j(t));return new e(j.Empty,n,this.revert)}return a.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),ct=function(){function e(e,t){void 0===t&&(at||(at=new Ae(I)),t=at),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return M(t,(function(e,t){n=n.set(new j(e),t)})),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:j.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),o=this.children.get(n);if(null!==o){var r=o.findRootMostMatchingPathAndValue(e.popFront(),t);return null!=r?{path:new j(n).child(r.path),value:r.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,(function(){return!0}))},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),o=this.children.get(n);return null!==o?o.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var o=t.getFront(),r=(this.children.get(o)||e.Empty).set(t.popFront(),n),i=this.children.insert(o,r);return new e(this.value,i)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),o=this.children.get(n);if(o){var r=o.remove(t.popFront()),i=void 0;return i=r.isEmpty()?this.children.remove(n):this.children.insert(n,r),null===this.value&&i.isEmpty()?e.Empty:new e(this.value,i)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var o=t.getFront(),r=(this.children.get(o)||e.Empty).setTree(t.popFront(),n),i=void 0;return i=r.isEmpty()?this.children.remove(o):this.children.insert(o,r),new e(this.value,i)},e.prototype.fold=function(e){return this.fold_(j.Empty,e)}
2,e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal((function(o,r){n[o]=r.fold_(e.child(o),t)})),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,j.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var o=!!this.value&&n(t,this.value);if(o)return o;if(e.isEmpty())return null;var r=e.getFront(),i=this.children.get(r);return i?i.findOnPath_(e.popFront(),t.child(r),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,j.Empty,t)},e.prototype.foreachOnPath_=function(t,n,o){if(t.isEmpty())return this;this.value&&o(n,this.value);var r=t.getFront(),i=this.children.get(r);return i?i.foreachOnPath_(t.popFront(),n.child(r),o):e.Empty},e.prototype.foreach=function(e){this.foreach_(j.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal((function(n,o){o.foreach_(e.child(n),t)})),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal((function(t,n){n.value&&e(t,n.value)}))},e.Empty=new e(null),e}(),pt=function(){function e(e,t){this.source=e,this.path=t,this.type=rt.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,j.Empty):new e(this.source,this.path.popFront())},e}(),dt=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=rt.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,j.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),ht=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=rt.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new j(t));return n.isEmpty()?null:n.value?new dt(this.source,j.Empty,n.value):new e(this.source,j.Empty,n)}return a.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),ft=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),gt=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,o){return new e(new ft(t,n,o),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,o){return new e(this.eventCache_,new ft(t,n,o))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new ft(Ge.EMPTY_NODE,!1,!1),new ft(Ge.EMPTY_NODE,!1,!1)),e}(),yt=function(){function e(e,t,n,o,r){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=o,this.prevName=r}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,o){return new e(e.CHILD_CHANGED,n,t,o)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),vt=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,o,r,i){a.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var s=e.getImmediateChild(t);return s.getChild(o).equals(n.getChild(o))&&s.isEmpty()===n.isEmpty()?e:(null!=i&&(n.isEmpty()?e.hasChild(t)?i.trackChildChange(yt.childRemovedChange(t,s)):a.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?i.trackChildChange(yt.childAddedChange(t,n)):i.trackChildChange(yt.childChangedChange(t,n,s))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Se,(function(e,o){t.hasChild(e)||n.trackChildChange(yt.childRemovedChange(e,o))})),t.isLeafNode()||t.forEachChild(Se,(function(t,o){if(e.hasChild(t)){var r=e.getImmediateChild(t);r.equals(o)||n.trackChildChange(yt.childChangedChange(t,o,r))}else n.trackChildChange(yt.childAddedChange(t,o))}))),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?Ge.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),mt=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;a.assert(t===yt.CHILD_ADDED||t===yt.CHILD_CHANGED||t===yt.CHILD_REMOVED,"Only child changes supported for tracking"),a.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var o=this.changeMap.get(n);if(o){var r=o.type;if(t===yt.CHILD_ADDED&&r===yt.CHILD_REMOVED)this.changeMap.set(n,yt.childChangedChange(n,e.snapshotNode,o.snapshotNode));else if(t===yt.CHILD_REMOVED&&r===yt.CHILD_ADDED)this.changeMap.delete(n);else if(t===yt.CHILD_REMOVED&&r===yt.CHILD_CHANGED)this.changeMap.set(n,yt.childRemovedChange(n,o.oldSnap));else if(t===yt.CHILD_CHANGED&&r===yt.CHILD_ADDED)this.changeMap.set(n,yt.childAddedChange(n,e.snapshotNode));else{if(t!==yt.CHILD_CHANGED||r!==yt.CHILD_CHANGED)throw a.assertionError("Illegal combination of changes: "+e+" occurred after "+o);this.changeMap.set(n,yt.childChangedChange(n,e.snapshotNode,o.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),Ct=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),wt=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new ft(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var o=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),r=this.writes_.calcIndexedSlice(o,t,1,n,e);return 0===r.length?null:r[0]},e}(),bt=function(e,t){this.viewCache=e,this.changes=t},Et=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){a.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),a.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,o,r){var i,s,l=new mt;if(n.type===rt.OVERWRITE){var u=n;u.source.fromUser?i=this.applyUserOverwrite_(t,u.path,u.snap,o,r,l):(a.assert(u.source.fromServer,"Unknown source."),s=u.source.tagged||t.getServerCache().isFiltered()&&!u.path.isEmpty(),i=this.applyServerOverwrite_(t,u.path,u.snap,o,r,s,l))}else if(n.type===rt.MERGE){var c=n;c.source.fromUser?i=this.applyUserMerge_(t,c.path,c.children,o,r,l):(a.assert(c.source.fromServer,"Unknown source."),s=c.source.tagged||t.getServerCache().isFiltered(),i=this.applyServerMerge_(t,c.path,c.children,o,r,s,l))}else if(n.type===rt.ACK_USER_WRITE){var p=n;i=p.revert?this.revertUserWrite_(t,p.path,o,r,l):this.ackUserWrite_(t,p.path,p.affectedTree,o,r,l)}else{if(n.type!==rt.LISTEN_COMPLETE)throw a.assertionError("Unknown operation type: "+n.type);i=this.listenComplete_(t,n.path,o,l)}var d=l.getChanges();return e.maybeAddValueEvent_(t,i,d),new bt(i,d)},e.maybeAddValueEvent_=function(e,t,n){var o=t.getEventCache();if(o.isFullyInitialized()){var r=o.getNode().isLeafNode()||o.getNode().isEmpty(),i=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||r&&!o.getNode().equals(i)||!o.getNode().getPriority().equals(i.getPri
2ority()))&&n.push(yt.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,o,r){var i=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var s=void 0,l=void 0;if(t.isEmpty())if(a.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var u=e.getCompleteServerSnap(),c=u instanceof Ge?u:Ge.EMPTY_NODE,p=n.calcCompleteEventChildren(c);s=this.filter_.updateFullNode(e.getEventCache().getNode(),p,r)}else{var d=n.calcCompleteEventCache(e.getCompleteServerSnap());s=this.filter_.updateFullNode(e.getEventCache().getNode(),d,r)}else{var h=t.getFront();if(".priority"===h){a.assert(1===t.getLength(),"Can't have a priority with additional path components");var f=i.getNode();l=e.getServerCache().getNode();var g=n.calcEventCacheAfterServerOverwrite(t,f,l);s=null!=g?this.filter_.updatePriority(f,g):i.getNode()}else{var y=t.popFront(),v=void 0;if(i.isCompleteForChild(h)){l=e.getServerCache().getNode();var m=n.calcEventCacheAfterServerOverwrite(t,i.getNode(),l);v=null!=m?i.getNode().getImmediateChild(h).updateChild(y,m):i.getNode().getImmediateChild(h)}else v=n.calcCompleteChild(h,e.getServerCache());s=null!=v?this.filter_.updateChild(i.getNode(),h,v,y,o,r):i.getNode()}}return e.updateEventSnap(s,i.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,o,r,i,a){var s,l=e.getServerCache(),u=i?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=u.updateFullNode(l.getNode(),n,null);else if(u.filtersNodes()&&!l.isFiltered()){var c=l.getNode().updateChild(t,n);s=u.updateFullNode(l.getNode(),c,null)}else{var p=t.getFront();if(!l.isCompleteForPath(t)&&t.getLength()>1)return e;var d=t.popFront(),h=l.getNode().getImmediateChild(p).updateChild(d,n);s=".priority"===p?u.updatePriority(l.getNode(),h):u.updateChild(l.getNode(),p,h,d,Ct,null)}var f=e.updateServerSnap(s,l.isFullyInitialized()||t.isEmpty(),u.filtersNodes()),g=new wt(o,f,r);return this.generateEventCacheAfterServerEvent_(f,t,o,g,a)},e.prototype.applyUserOverwrite_=function(e,t,n,o,r,i){var a,s,l=e.getEventCache(),u=new wt(o,e,r);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,i),a=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var c=t.getFront();if(".priority"===c)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),a=e.updateEventSnap(s,l.isFullyInitialized(),l.isFiltered());else{var p=t.popFront(),d=l.getNode().getImmediateChild(c),h=void 0;if(p.isEmpty())h=n;else{var f=u.getCompleteChild(c);h=null!=f?".priority"===p.getBack()&&f.getChild(p.parent()).isEmpty()?f:f.updateChild(p,n):Ge.EMPTY_NODE}if(d.equals(h))a=e;else{var g=this.filter_.updateChild(l.getNode(),c,h,p,u,i);a=e.updateEventSnap(g,l.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,o,r,i,a){var s=this,l=t;return o.foreach((function(o,u){var c=n.child(o);e.cacheHasChild_(t,c.getFront())&&(l=s.applyUserOverwrite_(l,c,u,r,i,a))})),o.foreach((function(o,u){var c=n.child(o);e.cacheHasChild_(t,c.getFront())||(l=s.applyUserOverwrite_(l,c,u,r,i,a))})),l},e.prototype.applyMerge_=function(e,t){return t.foreach((function(t,n){e=e.updateChild(t,n)})),e},e.prototype.applyServerMerge_=function(e,t,n,o,r,i,a){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var l,u=e;l=t.isEmpty()?n:ct.Empty.setTree(t,n);var c=e.getServerCache().getNode();return l.children.inorderTraversal((function(t,n){if(c.hasChild(t)){var l=e.getServerCache().getNode().getImmediateChild(t),p=s.applyMerge_(l,n);u=s.applyServerOverwrite_(u,new j(t),p,o,r,i,a)}})),l.children.inorderTraversal((function(t,n){var l=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!c.hasChild(t)&&!l){var p=e.getServerCache().getNode().getImmediateChild(t),d=s.applyMerge_(p,n);u=s.applyServerOverwrite_(u,new j(t),d,o,r,i,a)}})),u},e.prototype.ackUserWrite_=function(e,t,n,o,r,i){if(null!=o.shadowingWrite(t))return e;var a=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),o,r,a,i);if(t.isEmpty()){var l=ct.Empty;
2return s.getNode().forEachChild(ve,(function(e,t){l=l.set(new j(e),t)})),this.applyServerMerge_(e,t,l,o,r,a,i)}return e}var u=ct.Empty;return n.foreach((function(e,n){var o=t.child(e);s.isCompleteForPath(o)&&(u=u.set(e,s.getNode().getChild(o)))})),this.applyServerMerge_(e,t,u,o,r,a,i)},e.prototype.listenComplete_=function(e,t,n,o){var r=e.getServerCache(),i=e.updateServerSnap(r.getNode(),r.isFullyInitialized()||t.isEmpty(),r.isFiltered());return this.generateEventCacheAfterServerEvent_(i,t,n,Ct,o)},e.prototype.revertUserWrite_=function(e,t,n,o,r){var i;if(null!=n.shadowingWrite(t))return e;var s=new wt(n,e,o),l=e.getEventCache().getNode(),u=void 0;if(t.isEmpty()||".priority"===t.getFront()){var c=void 0;if(e.getServerCache().isFullyInitialized())c=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var p=e.getServerCache().getNode();a.assert(p instanceof Ge,"serverChildren would be complete if leaf node"),c=n.calcCompleteEventChildren(p)}c=c,u=this.filter_.updateFullNode(l,c,r)}else{var d=t.getFront(),h=n.calcCompleteChild(d,e.getServerCache());null==h&&e.getServerCache().isCompleteForChild(d)&&(h=l.getImmediateChild(d)),(u=null!=h?this.filter_.updateChild(l,d,h,t.popFront(),s,r):e.getEventCache().getNode().hasChild(d)?this.filter_.updateChild(l,d,Ge.EMPTY_NODE,t.popFront(),s,r):l).isEmpty()&&e.getServerCache().isFullyInitialized()&&(i=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(u=this.filter_.updateFullNode(u,i,r))}return i=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(j.Empty),e.updateEventSnap(u,i,this.filter_.filtersNodes())},e}(),_t=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var o=this,r=[],i=[];return e.forEach((function(e){e.type===yt.CHILD_CHANGED&&o.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&i.push(yt.childMovedChange(e.childName,e.snapshotNode))})),this.generateEventsForType_(r,yt.CHILD_REMOVED,e,n,t),this.generateEventsForType_(r,yt.CHILD_ADDED,e,n,t),this.generateEventsForType_(r,yt.CHILD_MOVED,i,n,t),this.generateEventsForType_(r,yt.CHILD_CHANGED,e,n,t),this.generateEventsForType_(r,yt.VALUE,e,n,t),r},e.prototype.generateEventsForType_=function(e,t,n,o,r){var i=this,a=n.filter((function(e){return e.type===t}));a.sort(this.compareChanges_.bind(this)),a.forEach((function(t){var n=i.materializeSingleChange_(t,r);o.forEach((function(o){o.respondsTo(t.type)&&e.push(o.createEvent(n,i.query_))}))}))},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type?e:(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_),e)},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw a.assertionError("Should only compare child_ events.");var n=new fe(e.childName,e.snapshotNode),o=new fe(t.childName,t.snapshotNode);return this.index_.compare(n,o)},e}(),Ot=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),o=new vt(n.getIndex()),r=n.getNodeFilter();this.processor_=new Et(r);var i=t.getServerCache(),a=t.getEventCache(),s=o.updateFullNode(Ge.EMPTY_NODE,i.getNode(),null),l=r.updateFullNode(Ge.EMPTY_NODE,a.getNode(),null),u=new ft(s,i.isFullyInitialized(),o.filtersNodes()),c=new ft(l,a.isFullyInitialized(),r.filtersNodes());this.viewCache_=new gt(c,u),this.eventGenerator_=new _t(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){a.assert(null==e,"A cancel should cancel all event registrations.");var o=this.query_.path;this.eventRegistrations_.forEach((function(e){t=t;var r=e.createCancelEvent(t,o);r&&n.push(r)}))}if(e){for(var r=[],i=0;i<this.eventRegistrations_.length;++i){var s=this.eventRegistrations_[i];if(s.matches(e)){if(e.hasAnyCallback()){r=r.concat(this.eventRegistrations_.slice(i+1));break}}else r.push(s)}this.eventRegistrations_=r}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===rt.MERGE&&null!==e.source.queryId&&(a.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full c
2ache before handling merges"),a.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var o=this.viewCache_,r=this.processor_.applyOperation(o,e,t,n);return this.processor_.assertIndexed(r.viewCache),a.assert(r.viewCache.getServerCache().isFullyInitialized()||!o.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=r.viewCache,this.generateEventsForChanges_(r.changes,r.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];t.getNode().isLeafNode()||t.getNode().forEachChild(Se,(function(e,t){n.push(yt.childAddedChange(e,t))}));return t.isFullyInitialized()&&n.push(yt.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var o=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,o)},e}(),Rt=function(){function e(){this.views=new Map}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return a.assert(st,"Reference.ts has not been loaded"),st},set:function(e){a.assert(!st,"__referenceConstructor has already been defined"),st=e},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return 0===this.views.size},e.prototype.applyOperation=function(e,t,n){var o,r,s=e.source.queryId;if(null!==s){var l=this.views.get(s);return a.assert(null!=l,"SyncTree gave us an op for an invalid query."),l.applyOperation(e,t,n)}var u=[];try{for(var c=i.__values(this.views.values()),p=c.next();!p.done;p=c.next()){l=p.value;u=u.concat(l.applyOperation(e,t,n))}}catch(d){o={error:d}}finally{try{p&&!p.done&&(r=c.return)&&r.call(c)}finally{if(o)throw o.error}}return u},e.prototype.addEventRegistration=function(e,t,n,o,r){var i=e.queryIdentifier(),a=this.views.get(i);if(!a){var s=n.calcCompleteEventCache(r?o:null),l=!1;s?l=!0:o instanceof Ge?(s=n.calcCompleteEventChildren(o),l=!1):(s=Ge.EMPTY_NODE,l=!1);var u=new gt(new ft(s,l,!1),new ft(o,r,!1));a=new Ot(e,u),this.views.set(i,a)}return a.addEventRegistration(t),a.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,o){var r,a,s=t.queryIdentifier(),l=[],u=[],c=this.hasCompleteView();if("default"===s)try{for(var p=i.__values(this.views.entries()),d=p.next();!d.done;d=p.next()){var h=i.__read(d.value,2),f=h[0],g=h[1];u=u.concat(g.removeEventRegistration(n,o)),g.isEmpty()&&(this.views.delete(f),g.getQuery().getQueryParams().loadsAllData()||l.push(g.getQuery()))}}catch(y){r={error:y}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}else(g=this.views.get(s))&&(u=u.concat(g.removeEventRegistration(n,o)),g.isEmpty()&&(this.views.delete(s),g.getQuery().getQueryParams().loadsAllData()||l.push(g.getQuery())));return c&&!this.hasCompleteView()&&l.push(new e.__referenceConstructor(t.repo,t.path)),{removed:l,events:u}},e.prototype.getQueryViews=function(){var e,t,n=[];try{for(var o=i.__values(this.views.values()),r=o.next();!r.done;r=o.next()){var a=r.value;a.getQuery().getQueryParams().loadsAllData()||n.push(a)}}catch(s){e={error:s}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},e.prototype.getCompleteServerCache=function(e){var t,n,o=null;try{for(var r=i.__values(this.views.values()),a=r.next();!a.done;a=r.next()){var s=a.value;o=o||s.getCompleteServerCache(e)}}
2catch(l){t={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return o},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return this.views.get(t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){var e,t;try{for(var n=i.__values(this.views.values()),o=n.next();!o.done;o=n.next()){var r=o.value;if(r.getQuery().getQueryParams().loadsAllData())return r}}catch(a){e={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},e}(),St=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new ct(n));var o=this.writeTree_.findRootMostValueAndPath(t);if(null!=o){var r=o.path,i=o.value,a=j.relativePath(r,t);return i=i.updateChild(a,n),new e(this.writeTree_.set(r,i))}var s=new ct(n);return new e(this.writeTree_.setTree(t,s))},e.prototype.addWrites=function(e,t){var n=this;return M(t,(function(t,o){n=n.addWrite(e.child(t),o)})),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,ct.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(j.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild(Se,(function(t,n){e.push(new fe(t,n))})):this.writeTree_.children.inorderTraversal((function(t,n){null!=n.value&&e.push(new fe(t,n.value))})),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new ct(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(e){return function e(t,n,o){if(null!=n.value)return o.updateChild(t,n.value);var r=null;return n.children.inorderTraversal((function(n,i){".priority"===n?(a.assert(null!==i.value,"Priority writes must always be leaf nodes"),r=i.value):o=e(t.child(n),i,o)})),o.getChild(t).isEmpty()||null===r||(o=o.updateChild(t.child(".priority"),r)),o}(j.Empty,this.writeTree_,e)},e.Empty=new e(new ct(null)),e}();var Tt=function(){function e(){this.visibleWrites_=St.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new Pt(e,this)},e.prototype.addOverwrite=function(e,t,n,o){a.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===o&&(o=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:o}),o&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){a.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex((function(t){return t.writeId===e}));a.assert(n>=0,"removeWrite called with nonexistent writeId.");var o=this.allWrites_[n];this.allWrites_.splice(n,1);for(var r=o.visible,i=!1,s=this.allWrites_.length-1;r&&s>=0;){var l=this.allWrites_[s];l.visible&&(s>=n&&this.recordContainsPath_(l,o.path)?r=!1:o.path.contains(l.path)&&(i=!0)),s--}if(r){if(i)return this.resetTree_(),!0;o.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(o.path):M(o.children,(function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(o.path.child(e))}));return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,o,r){if(o||r){var i=this.visibleWrites_.childCompoundWrite(t);if(!r&&i.isEmpty())return n;if(r||null!=n||i.hasCompleteWrite(j.Empty)){var a=e.layerTree_(this.allWrites_,(function(e){return(e.visible||r)&&(!o||!~o.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))}),t);u=n||Ge.EMPTY_NODE;return a.apply(u)}return null}var s=this.visibleWrites_.getCompleteNode(t);if(null!=s)return s;var l=this.visibleWrites_.childCompoundWrite(t);if(l.isEmpty())return n;if(null!=n||l.hasCompleteWrite(j.Empty)){var u=n||Ge.EMPTY_NODE;return l.apply(u)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=Ge.EMPTY_NODE,o=this.visibleWrites_.getCompleteNode(e);if(o)return o.isLeafNode()||o.forEachChild(Se,(function(e,t){n=n.updateImmediateChild(e,t)})),n;if(t){var r=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild(Se,(function(e,t){var o=r.childCompoundWrite(new j(e)).apply(t);n=n.updateImmediateChild(e,o)}
2)),r.getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,o){a.assert(n||o,"Either existingEventSnap or existingServerSnap must exist");var r=e.child(t);if(this.visibleWrites_.hasCompleteWrite(r))return null;var i=this.visibleWrites_.childCompoundWrite(r);return i.isEmpty()?o.getChild(t):i.apply(o.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var o=e.child(t),r=this.visibleWrites_.getCompleteNode(o);return null!=r?r:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(o).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,o,r,i){var a,s=this.visibleWrites_.childCompoundWrite(e),l=s.getCompleteNode(j.Empty);if(null!=l)a=l;else{if(null==t)return[];a=s.apply(t)}if((a=a.withIndex(i)).isEmpty()||a.isLeafNode())return[];for(var u=[],c=i.getCompare(),p=r?a.getReverseIteratorFrom(n,i):a.getIteratorFrom(n,i),d=p.getNext();d&&u.length<o;)0!==c(d,n)&&u.push(d),d=p.getNext();return u},e.prototype.recordContainsPath_=function(e,t){if(e.snap)return e.path.contains(t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&e.path.child(n).contains(t))return!0;return!1},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,j.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var o=St.Empty,r=0;r<e.length;++r){var i=e[r];if(t(i)){var s=i.path,l=void 0;if(i.snap)n.contains(s)?(l=j.relativePath(n,s),o=o.addWrite(l,i.snap)):s.contains(n)&&(l=j.relativePath(s,n),o=o.addWrite(j.Empty,i.snap.getChild(l)));else{if(!i.children)throw a.assertionError("WriteRecord should have .snap or .children");if(n.contains(s))l=j.relativePath(n,s),o=o.addWrites(l,i.children);else if(s.contains(n))if((l=j.relativePath(s,n)).isEmpty())o=o.addWrites(j.Empty,i.children);else{var u=a.safeGet(i.children,l.getFront());if(u){var c=u.getChild(l.popFront());o=o.addWrite(j.Empty,c)}}}}}return o},e}(),Pt=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,o,r){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,o,r)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}(),Dt=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=ct.Empty,this.pendingWriteTree_=new Tt,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return e.prototype.applyUserOverwrite=function(e,t,n,o){return this.pendingWriteTree_.addOverwrite(e,t,n,o),o?this.applyOperationToSyncPoints_(new dt(lt.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var o=ct.fromObject(t);return this.applyOperationToSyncPoints_(new ht(lt.User,e,o))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var o=ct.Empty;return null!=n.snap?o=o.set(j.Empty,!0):M(n.children,(function(e,t){o=o.set(new j(e),t)})),this.applyOperationToSyncPoints_(new ut(n.path,o,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new dt(lt.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=ct.fromObject(t);return this.applyOperationToSyncPoints_(new ht(lt.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new pt(lt.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,o){var r=this.queryKeyForTag_(o);if(null!=r){var i=e.parseQueryKey_(r),a=i.path,s=i.queryId,l=j.relativePath(a,t),u=new dt(lt.forServerTaggedQuery(s),l,n);return this.applyTaggedOperation_(a,u)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,o){var r=this.queryKeyForTag_(o);if(r){var i=e.parseQueryKey_(r),a=i.path,s=i.queryId,l=j.relativePath(a,t),u=ct.fromObject(n),c=new ht(lt.forServerTaggedQuery(s),l,u);return this.applyTaggedOperation_(a,c)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var o=this.queryKeyForTag_(n);if(o){var r=e.parseQueryKey_(o),i=r.path,a=r.queryId,s=j.relativePath(i,t),l=new pt(lt.forServerTaggedQuery(a),s);return this.applyTaggedOperation_(i,l)}return[]},e.prototype.addEventRegistration=function(t,n){var o=t.path,r=null,i=!1;this.syncPointTree_.foreachOnPath(o,(function(e,t){var n=j.relativePath(e,o);r=r||t.getCompleteServerCache(n),i=i||t.hasCompleteView()}));var s,l=this.syncPointTree_.get(o);(l?(i=i||l.hasCompleteView(),r=r||l.getCompleteServerCache(j.Empty)):(l=new Rt,this.syncPointTree_=this.syncPointTree_.set(o,l)),null!=r)?s=!0:(s=!1,r=Ge.EMPTY_NODE,this.syncPointTree_.subtree(o).foreachChild((function(e,t){var n=t.getCompleteServerCache(j.Empty);n&&(r=r.updateImmediateChild(e,n))})));var u=l.viewExistsForQuery(t);if(!u&&!t.getQueryParams().loadsAllData()){var c=e.makeQueryKey_(t);a.assert(!this.queryToTagMap.has(c),"View does not exist, but we have a tag");var p=e.getNextQueryTag_();this.queryToTagMap.set(c,p),this.tagToQueryMap.set(p,c)}var d=this.pendingWriteTree_.childWrites(o),h=l.addEventRegistration(t,n,d,r,s);if(!u&&!i){var f=l.viewForQuery(t);h=h.concat(this.setupListener_(t,f))}return h},e.prototype.removeEventRegistration=function(t,n,o){var r=this,i=t.path,a=this.syncPointTree_.get(i),s=[];
2if(a&&("default"===t.queryIdentifier()||a.viewExistsForQuery(t))){var l=a.removeEventRegistration(t,n,o);a.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(i));var u=l.removed;s=l.events;var c=-1!==u.findIndex((function(e){return e.getQueryParams().loadsAllData()})),p=this.syncPointTree_.findOnPath(i,(function(e,t){return t.hasCompleteView()}));if(c&&!p){var d=this.syncPointTree_.subtree(i);if(!d.isEmpty())for(var h=this.collectDistinctViewsForSubTree_(d),f=0;f<h.length;++f){var g=h[f],y=g.getQuery(),v=this.createListenerForView_(g);this.listenProvider_.startListening(e.queryForListening_(y),this.tagForQuery_(y),v.hashFn,v.onComplete)}}if(!p&&u.length>0&&!o)if(c){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else u.forEach((function(t){var n=r.queryToTagMap.get(e.makeQueryKey_(t));r.listenProvider_.stopListening(e.queryForListening_(t),n)}));this.removeTags_(u)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,o=this.syncPointTree_.findOnPath(e,(function(t,n){var o=j.relativePath(t,e),r=n.getCompleteServerCache(o);if(r)return r}));return n.calcCompleteEventCache(e,o,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold((function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var o=[];return t&&(o=t.getQueryViews()),M(n,(function(e,t){o=o.concat(t)})),o}))},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var o=t[n];if(!o.getQueryParams().loadsAllData()){var r=e.makeQueryKey_(o),i=this.queryToTagMap.get(r);this.queryToTagMap.delete(r),this.tagToQueryMap.delete(i)}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&
2!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var o=t.path,r=this.tagForQuery_(t),i=this.createListenerForView_(n),s=this.listenProvider_.startListening(e.queryForListening_(t),r,i.hashFn,i.onComplete),l=this.syncPointTree_.subtree(o);if(r)a.assert(!l.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var u=l.fold((function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var o=[];return t&&(o=o.concat(t.getQueryViews().map((function(e){return e.getQuery()})))),M(n,(function(e,t){o=o.concat(t)})),o})),c=0;c<u.length;++c){var p=u[c];this.listenProvider_.stopListening(e.queryForListening_(p),this.tagForQuery_(p))}return s},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),o=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||Ge.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return o?t.applyTaggedListenComplete(n.path,o):t.applyListenComplete(n.path);var r=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");var o=new Error(e+" at "+t.path.toString()+": "+n);return o.code=e.toUpperCase(),o}(e,n);return t.removeEventRegistration(n,null,r)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return a.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new j(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap.get(e)},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return this.queryToTagMap.get(n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);a.assert(n,"Missing sync point for query tag that we're tracking");var o=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,o,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(j.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,o){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,o);var r=t.get(j.Empty);null==n&&null!=r&&(n=r.getCompleteServerCache(j.Empty));var i=[],a=e.path.getFront(),s=e.operationForChild(a),l=t.children.get(a);if(l&&s){var u=n?n.getImmediateChild(a):null,c=o.child(a);i=i.concat(this.applyOperationHelper_(s,l,u,c))}return r&&(i=i.concat(r.applyOperation(e,o,n))),i},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,o){var r=this,i=t.get(j.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(j.Empty));var a=[];return t.children.inorderTraversal((function(t,i){var s=n?n.getImmediateChild(t):null,l=o.child(t),u=e.operationForChild(t);u&&(a=a.concat(r.applyOperationDescendantsHelper_(u,i,s,l)))})),i&&(a=a.concat(i.applyOperation(e,o,n))),a},e.nextQueryTag_=1,e}(),At=function(){function e(){this.rootNode_=Ge.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}(),Nt=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),a.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return a.deepCopy(this.counters_)},e}(),It=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new Nt),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}(),xt=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=i.__assign({},e);return this.last_&&M(this.last_,(function(e,n){t[e]=t[e]-n})),this.last_=e,t},e}(),Ft=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new xt(e);var n=1e4+2e4*Math.random();H(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},o=!1;M(t,(function(t,r){r>0&&a.contains(e.statsToReport_,t)&&(n[t]=r,o=!0)})),o&&this.server_.reportStats(n),H(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),kt=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var o=e[n],r=o.getPath();null===t||r.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new Mt(r)),t.add(o)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.equals(e)}))},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.contains(e)||e.contains(t)}))},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var o=this.eventLists_[n];if(o)e(o.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}t&&(this.eventLists_=[]),this.recursionDepth_--},e}(),Mt=function(){function e(e){this.path_=e,this.events_=[]}
2return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();w&&_("event: "+t.toString()),V(n)}}},e.prototype.getPath=function(){return this.path_},e}(),Lt=function(){function e(e){this.allowedEvents_=e,this.listeners_={},a.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var o=i.__spread(this.listeners_[e]),r=0;r<o.length;r++)o[r].callback.apply(o[r].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var o=this.getInitialEvent(e);o&&t.apply(n,o)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var o=this.listeners_[e]||[],r=0;r<o.length;r++)if(o[r].callback===t&&(!n||n===o[r].context))return void o.splice(r,1)},e.prototype.validateEventType_=function(e){a.assert(this.allowedEvents_.find((function(t){return t===e})),"Unknown event: "+e)},e}(),Gt=function(e){function t(){var t,n,o=e.call(this,["visible"])||this;return"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document.hidden?(n="visibilitychange",t="hidden"):"undefined"!==typeof document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):"undefined"!==typeof document.msHidden?(n="msvisibilitychange",t="msHidden"):"undefined"!==typeof document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),o.visible_=!0,n&&document.addEventListener(n,(function(){var e=!document[t];e!==o.visible_&&(o.visible_=e,o.trigger("visible",e))}),!1),o}return i.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return a.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(Lt),Wt=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||a.isMobileCordova()||(window.addEventListener("online",(function(){t.online_||(t.online_=!0,t.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){t.online_&&(t.online_=!1,t.trigger("online",!1))}),!1)),t}return i.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return a.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(Lt),Vt=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var o=function(){var e=r.pendingResponses[r.currentResponseNum];delete r.pendingResponses[r.currentResponseNum];for(var t=function(t){e[t]&&V((function(){n.onMessage_(e[t])}))},o=0;o<e.length;++o)t(o);if(r.currentResponseNum===r.closeAfterResponse)return r.onClose&&(r.onClose(),r.onClose=null),"break";r.currentResponseNum++},r=this;this.pendingResponses[this.currentResponseNum];){if("break"===o())break}},e}(),Ht=function(){function e(e,t,n,o,r){this.connId=e,this.repoInfo=t,this.applicationId=n,this.transportSessionId=o,this.lastSessionId=r,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=O(e),this.stats_=It.getCollection(t),this.urlFn=function(e){return t.connectionURL("long_polling",e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new Vt(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(a.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function n(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((function(){if(!n.isClosed_){n.scriptTagHolder=new jt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=i.__read(e,5),r=o[0],a=o[1],s=o[2];o[3],o[4];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"===r)n.id=a,n.password=s;else{if("close"!==r)throw new Error("Unrecognized command received: "+r);a?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(a,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=i.__read(e,2),r=o[0],a=o[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(r,a)}),(function(){n.onClosed_()}),n.urlFn);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),n.applicationId&&(e.p=n.applicationId),"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,(function(){}))}}))},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return!a.isNodeSdk()&&(!!e.forceAllow_||!e.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!("object"===typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"===typeof Windows&&"object"===typeof Windows.UI))},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}
2,e.prototype.send=function(e){var t=a.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=a.base64Encode(t),o=k(n,1840),r=0;r<o.length;r++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,o.length,o[r]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!a.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=a.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),jt=function(){function e(t,n,o,r){if(this.onDisconnect=o,this.urlFn=r,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,a.isNodeSdk())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=v(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();var i="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length))i='<script>document.domain="'+document.domain+'";<\/script>';var s="<html><body>"+i+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(l){_("frame writing exception"),l.stack&&_(l.stack),_(l)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||_("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)}),Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",o=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var r=this.pendingSegs.shift();n=n+"&seg"+o+"="+r.seg+"&ts"+o+"="+r.ts+"&d"+o+"="+r.d,o++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t);var o=function(){n.outstandingRequests.delete(t),n.newRequest_()},r=setTimeout(o,Math.floor(25e3));this.addTag(e,(function(){clearTimeout(r),o()}))},e.prototype.addTag=function(e,t){var n=this;a.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout((function(){try{if(!n.sendNewPolls)return;var o=n.myIFrame.doc.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.onload=o.onreadystatechange=function(){var e=o.readyState;e&&"loaded"!==e&&"complete"!==e||(o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),t())},o.onerror=function(){_("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(o)}catch(r){}}),Math.floor(1))},e}(),Bt="";var Ut=null;"undefined"!==typeof MozWebSocket?Ut=MozWebSocket:"undefined"!==typeof WebSocket&&(Ut=WebSocket);var zt=function(){function e(t,n,o,r,i){this.connId=t,this.applicationId=o,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=O(this.connId),this.stats_=It.getCollection(n),this.connURL=e.connectionURL_(n,r,i),this.nodeAdmin=n.nodeAdmin}return e.connectionURL_=function(e,t,n){var o={v:"5"};return!a.isNodeSdk()&&"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(o.r="f"),t&&(o.s=t),n&&(o.ls=n),e.connectionURL("websocket",o)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,f.set("previous_websocket_failure",!0);try{if(a.isNodeSdk()){var r=this.nodeAdmin?"AdminNode":"Node",i={headers:{"User-Agent":"Firebase/5/"+Bt+"/"+o.platform+"/"+r,"X-Firebase-GMPID":this.applicationId||""}},s=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_PROD_API_KEY:"AIzaSyC4yT8iL19qMYx3Z5tj8KC51Cf3K0WakGg",REACT_APP_PROD_AUTH_DOMAIN:"sqoot-productie.firebaseapp.com",REACT_APP_PROD_DATABASE_URL:"https://sqoot-productie.firebaseio.com",REACT_APP_PROD_PROJECT_ID:"sqoot-productie",REACT_APP_PROD_STORAGE_BUCKET:"sqoot-productie.appspot.com",REACT_APP_PROD_MESSAGING_SENDER_ID:"743299901289",REACT_APP_PROD_CONFIRMATION_EMAIL_REDIRECT:"https://portal.sqoot.nl/",REACT_APP_EMAILJS_USER_ID:"user_hxvxyKl4UEjwKu063L7iK"}),l=0===this.connURL.indexOf("wss://")?s.HTTPS_PROXY||s.https_proxy:s.HTTP_PROXY||s.http_proxy;l&&(i.proxy={origin:l}),this.mySock=new Ut(this.connURL,[],i)}else{i={headers:{"X-Firebase-GMPID":this.applicationId||""}};this.mySock=new Ut(this.connURL,[],i)}}catch(c){this.log_("Error instantiating WebSocket.");var u=c.message||c.data;return u&&this.log_(u),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0}
2,this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error.  Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!==typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Ut&&!e.forceDisallow_},e.previouslyFailed=function(){return f.isInMemoryStorage||!0===f.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){f.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=a.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(a.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=a.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=k(t,16384);n.length>1&&this.sendString_(String(n.length));for(var o=0;o<n.length;o++)this.sendString_(n[o])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()}),Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(t){this.log_("Exception thrown from WebSocket.send():",t.message||t.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),Yt=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[Ht,zt]},enumerable:!1,configurable:!0}),e.prototype.initTransports_=function(t){var n,o,r=zt&&zt.isAvailable(),a=r&&!zt.previouslyFailed();if(t.webSocketOnly&&(r||T("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),a=!0),a)this.transports_=[zt];else{var s=this.transports_=[];try{for(var l=i.__values(e.ALL_TRANSPORTS),u=l.next();!u.done;u=l.next()){var c=u.value;c&&c.isAvailable()&&s.push(c)}}catch(p){n={error:p}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),qt=function(){function e(e,t,n,o,r,i,a,s){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.onMessage_=o,this.onReady_=r,this.onDisconnect_=i,this.onKill_=a,this.lastSessionId=s,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=O("c:"+this.id+":"),this.transportManager_=new Yt(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),o=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){e.conn_&&e.conn_.open(n,o)}),Math.floor(0));var r=t.healthyTimeout||0;r>0&&(this.healthyTimeout_=H((function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>
2102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes.  Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes.  Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))}),Math.floor(r)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!==t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=x("t",e),n=x("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=x("t",e),n=x("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=x("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var o=0;o<this.pendingDataMessages.length;++o)this.onDataMessage_(this.pendingDataMessages[o]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?R("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):R("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,o=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(o),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&T("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),o=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,o),H((function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())}),Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):H((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(f.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),Kt=function(){function e(){}return e.prototype.put=function(e,t,n,o){},e.prototype.merge=function(e,t,n,o){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),Qt=function(e){function t(n,o,r,i,s,l,u){var c=e.call(this)||this;if(c.repoInfo_=n,c.applicationId_=o,c.onDataUpdate_=r,c.onConnectStatus_=i,c.onServerInfoUpdate_=s,c.authTokenProvider_=l,c.authOverride_=u,c.id=t.nextPersistentConnectionId_++,c.log_=O("p:"+c.id+":"),c.interruptReasons_={},c.listens=new Map,c.outstandingPuts_=[],c.outstandingPutCount_=0,c.onDisconnectRequestQueue_=[],c.connected_=!1,c.reconnectDelay_=1e3,c.maxReconnectDelay_=3e5,c.securityDebugCallback_=null,c.lastSessionId=null,c.establishConnectionTimer_=null,c.visible_=!1,
2c.requestCBHash_={},c.requestNumber_=0,c.realtime_=null,c.authToken_=null,c.forceTokenRefresh_=!1,c.invalidAuthTokenCount_=0,c.firstConnection_=!0,c.lastConnectionAttemptTime_=null,c.lastConnectionEstablishedTime_=null,u&&!a.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return c.scheduleConnect_(0),Gt.getInstance().on("visible",c.onVisible_,c),-1===n.host.indexOf("fblocal")&&Wt.getInstance().on("online",c.onOnline_,c),c}return i.__extends(t,e),t.prototype.sendRequest=function(e,t,n){var o=++this.requestNumber_,r={r:o,a:e,b:t};this.log_(a.stringify(r)),a.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(r),n&&(this.requestCBHash_[o]=n)},t.prototype.listen=function(e,t,n,o){var r=e.queryIdentifier(),i=e.path.toString();this.log_("Listen called for "+i+" "+r),this.listens.has(i)||this.listens.set(i,new Map),a.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),a.assert(!this.listens.get(i).has(r),"listen() called twice for same path/queryId.");var s={onComplete:o,hashFn:t,query:e,tag:n};this.listens.get(i).set(r,s),this.connected_&&this.sendListen_(s)},t.prototype.sendListen_=function(e){var n=this,o=e.query,r=o.path.toString(),i=o.queryIdentifier();this.log_("Listen on "+r+" for "+i);var a={p:r};e.tag&&(a.q=o.queryObject(),a.t=e.tag),a.h=e.hashFn(),this.sendRequest("q",a,(function(a){var s=a.d,l=a.s;t.warnOnListenWarnings_(s,o),(n.listens.get(r)&&n.listens.get(r).get(i))===e&&(n.log_("listen response",a),"ok"!==l&&n.removeListen_(r,i),e.onComplete&&e.onComplete(l,s))}))},t.warnOnListenWarnings_=function(e,t){if(e&&"object"===typeof e&&a.contains(e,"w")){var n=a.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var o='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',r=t.path.toString();T("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+o+" at "+r+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||a.isAdmin(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=a.isValidFormat(t)?"auth":"gauth",o={cred:t};null===this.authOverride_?o.noauth=!0:"object"===typeof this.authOverride_&&(o.authvar=this.authOverride_),this.sendRequest(n,o,(function(n){var o=n.s,r=n.d||"error";e.authToken_===t&&("ok"===o?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(o,r))}))}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),o=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+o),a.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,o)&&this.connected_&&this.sendUnlisten_(n,o,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,o){this.log_("Unlisten on "+e+" for "+t);var r={p:e};o&&(r.q=n,r.t=o),this.sendRequest("n",r)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,o){var r={p:t,d:n};this.log_("onDisconnect "+e,r),this.sendRequest(e,r,(function(e){o&&setTimeout((function(){o(e.s,e.d)}),Math.floor(0))}))},t.prototype.put=function(e,t,n,o){this.putInternal("p",e,t,n,o)},t.prototype.merge=function(e,t,n,o){this.putInternal("m",e,t,n,o)},t.prototype.putInternal=function(e,t,n,o,r){var i={p:t,d:n};void 0!==r&&(i.h=r),this.outstandingPuts_.push({action:e,request:i,onComplete:o}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,o=this.outstandingPuts_[e].request,r=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,o,(function(o){t.log_(n+" response",o),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),r&&r(o.s,o.d)}))},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,(function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}}))}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+a.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):R("Unrecognized action received from server: "+a.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;a.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){t.establishConnectionTimer_=null,t.establishConnection_()}),Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=1e3),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);
2t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){var e=this;if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var n=this.onDataMessage_.bind(this),o=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+t.nextConnectionId_++,s=this,l=this.lastSessionId,u=!1,c=null,p=function(){c?c.close():(u=!0,r())};this.realtime_={close:p,sendRequest:function(e){a.assert(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(e)}};var d=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(d).then((function(e){u?_("getToken() completed but was canceled"):(_("getToken() completed. Creating connection."),s.authToken_=e&&e.accessToken,c=new qt(i,s.repoInfo_,s.applicationId_,n,o,r,(function(e){T(e+" ("+s.repoInfo_.toString()+")"),s.interrupt("server_kill")}),l))})).then(null,(function(t){s.log_("Failed to get token: "+t),u||(e.repoInfo_.nodeAdmin&&T(t),p())}))}},t.prototype.interrupt=function(e){_("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){_("Resuming connection for reason: "+e),delete this.interruptReasons_[e],a.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map((function(e){return F(e)})).join("$"):"default";var o=this.removeListen_(e,n);o&&o.onComplete&&o.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,o=new j(e).toString();if(this.listens.has(o)){var r=this.listens.get(o);n=r.get(t),r.delete(t),0===r.size&&this.listens.delete(o)}else n=void 0;return n},t.prototype.onAuthRevoked_=function(e,t){_("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e,t,n,o;this.tryAuth();try{for(var r=i.__values(this.listens.values()),a=r.next();!a.done;a=r.next()){var s=a.value;try{for(var l=(n=void 0,i.__values(s.values())),u=l.next();!u.done;u=l.next()){var c=u.value;this.sendListen_(c)}}catch(h){n={error:h}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}}catch(f){e={error:f}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}for(var p=0;p<this.outstandingPuts_.length;p++)this.outstandingPuts_[p]&&this.sendPut_(p);for(;this.onDisconnectRequestQueue_.length;){var d=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(d.action,d.pathString,d.data,d.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";a.isNodeSdk()&&(t=this.repoInfo_.nodeAdmin?"admin_node":"node"),e["sdk."+t+"."+Bt.replace(/\./g,"-")]=1,a.isMobileCordova()?e["framework.cordova"]=1:a.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=Wt.getInstance().currentlyOnline();return a.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(Kt),Xt=function(e){function t(t,n,o){var r=e.call(this)||this;return r.repoInfo_=t,r.onDataUpdate_=n,r.authTokenProvider_=o,r.log_=O("p:rest:"),r.listens_={},r}return i.__extends(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(a.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,o,r){var i=this,s=e.path.toString();this.log_("Listen called for "+s+" "+e.queryIdentifier());var l=t.getListenId_(e,o),u={};this.listens_[l]=u;var c=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(s+".json",c,(function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&i.onDataUpdate_(s,n,!1,o),a.safeGet(i.listens_,l)===u)&&r(e?401===e?"permission_denied":"rest_error:"+e:"ok",null)}))},t.prototype.unlisten=function(e,n){var o=t.getListenId_(e,n);delete this.listens_[o]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var o=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then((function(r){var i=r&&r.accessToken;i&&(t.auth=i);var s=(o.repoInfo_.secure?"https://":"http://")+o.repoInfo_.host+e+"?ns="+o.repoInfo_.namespace+a.querystring(t);o.log_("Sending REST request for "+s);var l=new XMLHttpRequest;l.onreadystatechange=function(){if(n&&4===l.readyState){o.log_("REST Response for "+s+" received. status:",l.status,"response:",l.responseText);var e=null;if(l.status>=200&&l.status<300){try{e=a.jsonEval(l.responseText)}catch(t){T("Failed to parse JSON response for "+s+": "+l.responseText)}n(null,e)}else 401!==l.status&&404!==l.status&&T("Got unsuccessful REST response for "+s+" Status: "+l.status),n(l.status);n=null}},l.open("GET",s,!0),l.send()}))},t}(Kt),$t=function(){function e(e,t,n,o){var r=this;if(this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new kt,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new it,this.persistentConnection_=null,this.stats_=It.getCollection(e),t||("object"===typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new Xt(this.repoInfo_,this.onDataUpdate_.bind(this),o),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var i=n.options.databaseAuthVariableOverride;if("undefined"!==typeof i&&null!==i){if("object"!==typeof i)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{a.stringify(i)}catch(s){throw new Error("Invalid authOverride provided: "+s)}}this.persistentConnection_=new Qt(this.repoInfo_,n.options.appId,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),o,i),this.server_=this.persistentConnection_}o.addTokenChangeListener((function(e){r.server_.refreshAuthToken(e)})),this.statsReporter_=It.getOrCreateReporter(e,(function(){return new Ft(r.stats_,r.server_)})),this.transactionsInit_(),this.infoData_=new At,this.infoSyncTree_=new Dt({startListening:function(e,t,n,o){var i=[],a=r.infoData_.getNode(e.path);return a.isEmpty()||(i=r.infoSyncTree_.applyServerOverwrite(e.path,a),setTimeout((function(){o("ok")}),0)),i},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new Dt({startListening:function(e,t,n,o){return r.server_.listen(e,n,t,(function(t,n){var i=o(t,n);r.eventQueue_.raiseEventsForChangedPath(e.path,i)})),[]},stopListening:function(e,t){r.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new j(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e}
2,e.prototype.generateServerValues=function(){return(e=(e={timestamp:this.serverTime()})||{}).timestamp=e.timestamp||(new Date).getTime(),e;var e},e.prototype.onDataUpdate_=function(e,t,n,o){this.dataUpdateCount++;var r=new j(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var i=[];if(o)if(n){var s=a.map(t,(function(e){return Ve(e)}));i=this.serverSyncTree_.applyTaggedQueryMerge(r,s,o)}else{var l=Ve(t);i=this.serverSyncTree_.applyTaggedQueryOverwrite(r,l,o)}else if(n){var u=a.map(t,(function(e){return Ve(e)}));i=this.serverSyncTree_.applyServerMerge(r,u)}else{var c=Ve(t);i=this.serverSyncTree_.applyServerOverwrite(r,c)}var p=r;i.length>0&&(p=this.rerunTransactions_(r)),this.eventQueue_.raiseEventsForChangedPath(p,i)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;M(e,(function(e,n){t.updateInfo_(e,n)}))},e.prototype.updateInfo_=function(e,t){var n=new j("/.info/"+e),o=Ve(t);this.infoData_.updateSnapshot(n,o);var r=this.infoSyncTree_.applyServerOverwrite(n,o);this.eventQueue_.raiseEventsForChangedPath(n,r)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,o){var r=this;this.log_("set",{path:e.toString(),value:t,priority:n});var i=this.generateServerValues(),a=Ve(t,n),s=this.serverSyncTree_.calcCompleteEventCache(e),l=nt(a,s,i),u=this.getNextWriteId_(),c=this.serverSyncTree_.applyUserOverwrite(e,l,u,!0);this.eventQueue_.queueEvents(c),this.server_.put(e.toString(),a.val(!0),(function(t,n){var i="ok"===t;i||T("set at "+e+" failed: "+t);var a=r.serverSyncTree_.ackUserWrite(u,!i);r.eventQueue_.raiseEventsForChangedPath(e,a),r.callOnCompleteCallback(o,t,n)}));var p=this.abortTransactions_(e);this.rerunTransactions_(p),this.eventQueue_.raiseEventsForChangedPath(p,[])},e.prototype.update=function(e,t,n){var o=this;this.log_("update",{path:e.toString(),value:t});var r=!0,i=this.generateServerValues(),a={};if(M(t,(function(t,n){r=!1,a[t]=tt(e.child(t),Ve(n),o.serverSyncTree_,i)})),r)_("update() called with empty data.  Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserMerge(e,a,s);this.eventQueue_.queueEvents(l),this.server_.merge(e.toString(),t,(function(t,r){var i="ok"===t;i||T("update at "+e+" failed: "+t);var a=o.serverSyncTree_.ackUserWrite(s,!i),l=a.length>0?o.rerunTransactions_(e):e;o.eventQueue_.raiseEventsForChangedPath(l,a),o.callOnCompleteCallback(n,t,r)})),M(t,(function(t){var n=o.abortTransactions_(e.child(t));o.rerunTransactions_(n)})),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=new it;this.onDisconnect_.forEachTree(j.Empty,(function(o,r){var i=tt(o,r,e.serverSyncTree_,t);n.remember(o,i)}));var o=[];n.forEachTree(j.Empty,(function(t,n){o=o.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var r=e.abortTransactions_(t);e.rerunTransactions_(r)})),this.onDisconnect_=new it,this.eventQueue_.raiseEventsForChangedPath(j.Empty,o)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),(function(o,r){"ok"===o&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,o,r)}))},e.prototype.onDisconnectSet=function(e,t,n){var o=this,r=Ve(t);this.server_.onDisconnectPut(e.toString(),r.val(!0),(function(t,i){"ok"===t&&o.onDisconnect_.remember(e,r),o.callOnCompleteCallback(n,t,i)}))},e.prototype.onDisconnectSetWithPriority=function(e,t,n,o){var r=this,i=Ve(t,n);this.server_.onDisconnectPut(e.toString(),i.val(!0),(function(t,n){"ok"===t&&r.onDisconnect_.remember(e,i),r.callOnCompleteCallback(o,t,n)}))},e.prototype.onDisconnectUpdate=function(e,t,n){var o=this;if(a.isEmpty(t))return _("onDisconnect().update() called with empty data.  Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,(function(r,i){"ok"===r&&M(t,(function(t,n){var r=Ve(n);o.onDisconnect_.remember(e.child(t),r)})),o.callOnCompleteCallback(n,r,i)}))},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!==typeof console){var t;e?(this.statsListener_||(this.statsListener_=new xt(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce((function(e,t){return Math.max(t.length,e)}),0);M(t,(function(e,t){for(var o=e,r=e.length;r<n+2;r++)o+=" ";console.log(o+t)}))}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),_.apply(void 0,i.__spread([n],e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&V((function(){if("ok"===t)e(null);else{var o=(t||"error").toUpperCase(),r=o;n&&(r+=": "+n);var i=new Error(r);i.code=o,e(i)}}))},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new cn(this))}
2,enumerable:!1,configurable:!0}),e}(),Jt=function(){function e(t){this.indexedFilter_=new vt(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,o,r,i){return this.matches(new fe(t,n))||(n=Ge.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,o,r,i)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=Ge.EMPTY_NODE);var o=t.withIndex(this.index_);o=o.updatePriority(Ge.EMPTY_NODE);var r=this;return t.forEachChild(Se,(function(e,t){r.matches(new fe(e,t))||(o=o.updateImmediateChild(e,Ge.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,o,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}(),Zt=function(){function e(e){this.rangedFilter_=new Jt(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,o,r,i){return this.rangedFilter_.matches(new fe(t,n))||(n=Ge.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,o,r,i):this.fullLimitUpdateChild_(e,t,n,r,i)},e.prototype.updateFullNode=function(e,t,n){var o;if(t.isLeafNode()||t.isEmpty())o=Ge.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){o=Ge.EMPTY_NODE.withIndex(this.index_);var r=void 0;r=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var i=0;r.hasNext()&&i<this.limit_;){var a=r.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;o=o.updateImmediateChild(a.name,a.node),i++}}else{o=(o=t.withIndex(this.index_)).updatePriority(Ge.EMPTY_NODE);var s=void 0,l=void 0,u=void 0;r=void 0;if(this.reverse_){r=o.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var c=this.index_.getCompare();u=function(e,t){return c(t,e)}}else r=o.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),u=this.index_.getCompare();i=0;for(var p=!1;r.hasNext();){a=r.getNext();!p&&u(s,a)<=0&&(p=!0),p&&i<this.limit_&&u(a,l)<=0?i++:o=o.updateImmediateChild(a.name,Ge.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,o,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,o,r){var i;if(this.reverse_){var s=this.index_.getCompare();i=function(e,t){return s(t,e)}}else i=this.index_.getCompare();var l=e;a.assert(l.numChildren()===this.limit_,"");var u=new fe(t,n),c=this.reverse_?l.getFirstChild(this.index_):l.getLastChild(this.index_),p=this.rangedFilter_.matches(u);if(l.hasChild(t)){for(var d=l.getImmediateChild(t),h=o.getChildAfterChild(this.index_,c,this.reverse_);null!=h&&(h.name===t||l.hasChild(h.name));)h=o.getChildAfterChild(this.index_,h,this.reverse_);var f=null==h?1:i(h,u);if(p&&!n.isEmpty()&&f>=0)return null!=r&&r.trackChildChange(yt.childChangedChange(t,n,d)),l.updateImmediateChild(t,n);null!=r&&r.trackChildChange(yt.childRemovedChange(t,d));var g=l.updateImmediateChild(t,Ge.EMPTY_NODE);return null!=h&&this.rangedFilter_.matches(h)?(null!=r&&r.trackChildChange(yt.childAddedChange(h.name,h.node)),g.updateImmediateChild(h.name,h.node)):g}return n.isEmpty()?e:p&&i(c,u)>=0?(null!=r&&(r.trackChildChange(yt.childRemovedChange(c.name,c.node)),r.trackChildChange(yt.childAddedChange(t,n))),l.updateImmediateChild(t,n).updateImmediateChild(c.name,Ge.EMPTY_NODE)):e},e}(),en=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Se}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:D},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:A},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return a.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_
2=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var o=this.viewFrom_;""===o&&(o=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=o}return this.index_!==Se&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===Se},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new vt(this.getIndex()):this.hasLimit()?new Zt(this):new Jt(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,o={};return this.isDefault()?o:(this.index_===Se?t=n.PRIORITY_INDEX:this.index_===je?t=n.VALUE_INDEX:this.index_===ve?t=n.KEY_INDEX:(a.assert(this.index_ instanceof Be,"Unrecognized index type!"),t=this.index_.toString()),o[n.ORDER_BY]=a.stringify(t),this.startSet_&&(o[n.START_AT]=a.stringify(this.indexStartValue_),this.startNameSet_&&(o[n.START_AT]+=","+a.stringify(this.indexStartName_))),this.endSet_&&(o[n.END_AT]=a.stringify(this.indexEndValue_),this.endNameSet_&&(o[n.END_AT]+=","+a.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?o[n.LIMIT_TO_FIRST]=this.limit_:o[n.LIMIT_TO_LAST]=this.limit_),o)},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),tn=function(e){function t(t,n){if(!(t instanceof $t))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,en.DEFAULT,!1)||this}return i.__extends(t,e),t.prototype.getKey=function(){return a.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return a.validateArgCount("Reference.child",1,1,arguments.length),"number"===typeof e?e=String(e):e instanceof j||(null===this.path.getFront()?se("Reference.child",1,e,!1):ae("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){a.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){a.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){a.validateArgCount("Reference.set",1,2,arguments.length),le("Reference.set",this.path),ee("Reference.set",1,e,this.path,!1),a.validateCallback("Reference.set",2,t,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(a.validateArgCount("Reference.update",1,2,arguments.length),le("Reference.update",this.path),Array.isArray(e)){for(var n={},o=0;o<e.length;++o)n[""+o]=e[o];
2e=n,T("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ne("Reference.update",1,e,this.path,!1),a.validateCallback("Reference.update",2,t,!0);var r=new a.Deferred;return this.repo.update(this.path,e,r.wrapCallback(t)),r.promise},t.prototype.setWithPriority=function(e,t,n){if(a.validateArgCount("Reference.setWithPriority",2,3,arguments.length),le("Reference.setWithPriority",this.path),ee("Reference.setWithPriority",1,e,this.path,!1),oe("Reference.setWithPriority",2,t,!1),a.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var o=new a.Deferred;return this.repo.setWithPriority(this.path,e,t,o.wrapCallback(n)),o.promise},t.prototype.remove=function(e){return a.validateArgCount("Reference.remove",0,1,arguments.length),le("Reference.remove",this.path),a.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(a.validateArgCount("Reference.transaction",1,3,arguments.length),le("Reference.transaction",this.path),a.validateCallback("Reference.transaction",1,e,!1),a.validateCallback("Reference.transaction",2,t,!0),ce("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var o=new a.Deferred;"function"===typeof t&&o.promise.catch((function(){}));var r=function(e,n,r){e?o.reject(e):o.resolve(new de(n,r)),"function"===typeof t&&t(e,n,r)};return this.repo.startTransaction(this.path,e,r,n),o.promise},t.prototype.setPriority=function(e,t){a.validateArgCount("Reference.setPriority",1,2,arguments.length),le("Reference.setPriority",this.path),oe("Reference.setPriority",1,e,!1),a.validateCallback("Reference.setPriority",2,t,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){a.validateArgCount("Reference.push",0,2,arguments.length),le("Reference.push",this.path),ee("Reference.push",1,e,this.path,!0),a.validateCallback("Reference.push",2,t,!0);var n,o=this.repo.serverTime(),r=he(o),i=this.child(r),s=this.child(r);return n=null!=e?i.set(e,t).then((function(){return s})):Promise.resolve(s),i.then=n.then.bind(n),i.catch=n.then.bind(n,void 0),"function"===typeof t&&n.catch((function(){})),i},t.prototype.onDisconnect=function(){return le("Reference.onDisconnect",this.path),new pe(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!1,configurable:!0}),t}(Qe);Qe.__referenceConstructor=tn,Rt.__referenceConstructor=tn;var nn,on=function(){this.children={},this.childCount=0,this.value=null},rn=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new on),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n=t instanceof j?t:new j(t),o=this,r=n.getFront();null!==r;){o=new e(r,o,a.safeGet(o.node_.children,r)||new on),r=(n=n.popFront()).getFront()}return o},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){a.assert("undefined"!==typeof e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;M(this.node_.children,(function(o,r){t(new e(o,n,r))}))},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild((function(t){t.forEachDescendant(e,!0,n)})),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild((function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)}))},e.prototype.path=function(){return new j(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),o=a.contains(this.node_.children,e);n&&o?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||o||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(nn||(nn={})),$t.MAX_TRANSACTION_RETRIES_=25,$t.prototype.transactionsInit_=function(){this.transactionQueueTree_=new rn},$t.prototype.startTransaction=function(e,t,n,o){this.log_("transaction on "+e);var r=function(){},i=new tn(this,e);i.on("value",r);var s={path:e,update:t,onComplete:n,status:null,order:v(),applyLocally:o,retryCount:0,unwatcher:function(){i.off("value",r)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},l=this.getLatestState_(e);s.currentInputSnapshot=l;var u=s.update(l.val());if(void 0===u){if(s.unwatcher(),s.currentOutputSnapshotRaw=null,s.currentOutputSnapshotResolved=null,s.onComplete){var c=new Ue(s.currentInputSnapshot,new tn(this,s.path),Se);s.onComplete(null,!1,c)}}else{te("transaction failed: Data returned ",u,s.path),s.status=nn.RUN;var p=this.transactionQueueTree_.subTree(e),d=p.getValue()||[];d.push(s),p.setValue(d);var h=void 0;if("object"===typeof u&&null!==u&&a.contains(u,".priority"))h=a.safeGet(u,".priority"),a.assert(Z(h),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else h=(this.serverSyncTree_.calcCompleteEventCache(e)||Ge.EMPTY_NODE).getPriority().val();h=h;var f=this.generateServerValues(),g=Ve(u,h),y=nt(g,l,f);s.currentOutputSnapshotRaw=g,s.currentOutputSnapshotResolved=y,s.currentWriteId=this.getNextWriteId_();var m=this.serverSyncTree_.applyUserOverwrite(e,y,s.currentWriteId,s.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,m),this.sendReadyTransactions_()}},$t.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||Ge.EMPTY_NODE},$t.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);a.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(e){return e.status===nn.RUN}
2))&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild((function(e){t.sendReadyTransactions_(e)}))},$t.prototype.sendTransactionQueue_=function(e,t){for(var n=this,o=t.map((function(e){return e.currentWriteId})),r=this.getLatestState_(e,o),i=r,s=r.hash(),l=0;l<t.length;l++){var u=t[l];a.assert(u.status===nn.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),u.status=nn.SENT,u.retryCount++;var c=j.relativePath(e,u.path);i=i.updateChild(c,u.currentOutputSnapshotRaw)}var p=i.val(!0),d=e;this.server_.put(d.toString(),p,(function(o){n.log_("transaction put response",{path:d.toString(),status:o});var r=[];if("ok"===o){for(var i=[],a=0;a<t.length;a++){if(t[a].status=nn.COMPLETED,r=r.concat(n.serverSyncTree_.ackUserWrite(t[a].currentWriteId)),t[a].onComplete){var s=t[a].currentOutputSnapshotResolved,l=new tn(n,t[a].path),u=new Ue(s,l,Se);i.push(t[a].onComplete.bind(null,null,!0,u))}t[a].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,r);for(a=0;a<i.length;a++)V(i[a])}else{if("datastale"===o)for(a=0;a<t.length;a++)t[a].status===nn.SENT_NEEDS_ABORT?t[a].status=nn.NEEDS_ABORT:t[a].status=nn.RUN;else{T("transaction at "+d.toString()+" failed: "+o);for(a=0;a<t.length;a++)t[a].status=nn.NEEDS_ABORT,t[a].abortReason=o}n.rerunTransactions_(e)}}),s)},$t.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),o=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(o,n),n},$t.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n,o=[],r=[],i=e.filter((function(e){return e.status===nn.RUN})).map((function(e){return e.currentWriteId})),s=0;s<e.length;s++){var l=e[s],u=j.relativePath(t,l.path),c=!1,p=void 0;if(a.assert(null!==u,"rerunTransactionsUnderNode_: relativePath should not be null."),l.status===nn.NEEDS_ABORT)c=!0,p=l.abortReason,r=r.concat(this.serverSyncTree_.ackUserWrite(l.currentWriteId,!0));else if(l.status===nn.RUN)if(l.retryCount>=$t.MAX_TRANSACTION_RETRIES_)c=!0,p="maxretry",r=r.concat(this.serverSyncTree_.ackUserWrite(l.currentWriteId,!0));else{var d=this.getLatestState_(l.path,i);l.currentInputSnapshot=d;var h=e[s].update(d.val());if(void 0!==h){te("transaction failed: Data returned ",h,l.path);var f=Ve(h);"object"===typeof h&&null!=h&&a.contains(h,".priority")||(f=f.updatePriority(d.getPriority()));var g=l.currentWriteId,y=this.generateServerValues(),v=nt(f,d,y);l.currentOutputSnapshotRaw=f,l.currentOutputSnapshotResolved=v,l.currentWriteId=this.getNextWriteId_(),i.splice(i.indexOf(g),1),r=(r=r.concat(this.serverSyncTree_.applyUserOverwrite(l.path,v,l.currentWriteId,l.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(g,!0))}else c=!0,p="nodata",r=r.concat(this.serverSyncTree_.ackUserWrite(l.currentWriteId,!0))}
2if(this.eventQueue_.raiseEventsForChangedPath(t,r),r=[],c&&(e[s].status=nn.COMPLETED,n=e[s].unwatcher,setTimeout(n,Math.floor(0)),e[s].onComplete))if("nodata"===p){var m=new tn(this,e[s].path),C=e[s].currentInputSnapshot,w=new Ue(C,m,Se);o.push(e[s].onComplete.bind(null,null,!1,w))}else o.push(e[s].onComplete.bind(null,new Error(p),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(s=0;s<o.length;s++)V(o[s]);this.sendReadyTransactions_()}},$t.prototype.getAncestorTransactionNode_=function(e){var t,n=this.transactionQueueTree_;for(t=e.getFront();null!==t&&null===n.getValue();)n=n.subTree(t),t=(e=e.popFront()).getFront();return n},$t.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort((function(e,t){return e.order-t.order})),t},$t.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,o=e.getValue();if(null!==o)for(var r=0;r<o.length;r++)t.push(o[r]);e.forEachChild((function(e){n.aggregateTransactionQueuesForNode_(e,t)}))},$t.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var o=0,r=0;r<n.length;r++)n[r].status!==nn.COMPLETED&&(n[o]=n[r],o++);n.length=o,e.setValue(n.length>0?n:null)}e.forEachChild((function(e){t.pruneCompletedTransactionsBelowNode_(e)}))},$t.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),o=this.transactionQueueTree_.subTree(e);return o.forEachAncestor((function(e){t.abortTransactionsOnNode_(e)})),this.abortTransactionsOnNode_(o),o.forEachDescendant((function(e){t.abortTransactionsOnNode_(e)})),n},$t.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],o=[],r=-1,i=0;i<t.length;i++)if(t[i].status===nn.SENT_NEEDS_ABORT);else if(t[i].status===nn.SENT)a.assert(r===i-1,"All SENT items should be at beginning of queue."),r=i,t[i].status=nn.SENT_NEEDS_ABORT,t[i].abortReason="set";else if(a.assert(t[i].status===nn.RUN,"Unexpected transaction status in abort"),t[i].unwatcher(),o=o.concat(this.serverSyncTree_.ackUserWrite(t[i].currentWriteId,!0)),t[i].onComplete){n.push(t[i].onComplete.bind(null,new Error("set"),!1,null))}-1===r?e.setValue(null):t.length=r+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),o);for(i=0;i<n.length;i++)V(n[i])}};var an,sn=function(){function e(e,t){var n=this;this.app_=e,this.authProvider_=t,this.auth_=null,this.auth_=t.getImmediate({optional:!0}),this.auth_||t.get().then((function(e){return n.auth_=e}))}return e.prototype.getToken=function(e){return this.auth_?this.auth_.getToken(e).catch((function(e){return e&&"auth/token-not-initialized"===e.code?(_("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)})):Promise.resolve(null)},e.prototype.addTokenChangeListener=function(e){this.auth_?this.auth_.addAuthTokenListener(e):(setTimeout((function(){return e(null)}),0),this.authProvider_.get().then((function(t){return t.addAuthTokenListener(e)})))},e.prototype.removeTokenChangeListener=function(e){this.authProvider_.get().then((function(t){return t.removeAuthTokenListener(e)}))},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',T(e)},e}(),ln=function(){function e(){}return e.prototype.getToken=function(t){return Promise.resolve({accessToken:e.EMULATOR_AUTH_TOKEN})},e.prototype.addTokenChangeListener=function(t){t(e.EMULATOR_AUTH_TOKEN)},e.prototype.removeTokenChangeListener=function(e){},e.prototype.notifyForInvalidToken=function(){},e.EMULATOR_AUTH_TOKEN="owner",e}(),un=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return an||(an=new e),an},e.prototype.interrupt=function(){var e,t,n,o;try{for(var r=i.__values(Object.keys(this.repos_)),a=r.next();!a.done;a=r.next()){var s=a.value;try{for(var l=(n=void 0,i.__values(Object.keys(this.repos_[s]))),u=l.next();!u.done;u=l.next()){var c=u.value;this.repos_[s][c].interrupt()}}catch(p){n={error:p}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}}catch(d){e={error:d}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.resume=function(){var e,t,n,o;try{for(var r=i.__values(Object.keys(this.repos_)),a=r.next();!a.done;a=r.next()){var s=a.value;try{for(var l=(n=void 0,i.__values(Object.keys(this.repos_[s]))),u=l.next();!u.done;u=l.next()){var c=u.value;this.repos_[s][c].resume()}}catch(p){n={error:p}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}}catch(d){e={error:d}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.databaseFromApp=function(e,t,n,r){var i=n||e.options.databaseURL;void 0===i&&(e.options.projectId||S("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),_("Using default host for project ",e.options.projectId),i=e.options.projectId+"-default-rtdb.firebaseio.com");var a,s=q(i,r),l=s.repoInfo,u=void 0;"undefined"!==typeof o&&(u=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_PROD_API_KEY:"AIzaSyC4yT8iL19qMYx3Z5tj8KC51Cf3K0WakGg",REACT_APP_PROD_AUTH_DOMAIN:"sqoot-productie.firebaseapp.com",REACT_APP_PROD_DATABASE_URL:"https://sqoot-productie.firebaseio.com",REACT_APP_PROD_PROJECT_ID:"sqoot-productie",REACT_APP_PROD_STORAGE_BUCKET:"sqoot-productie.appspot.com",REACT_APP_PROD_MESSAGING_SENDER_ID:"743299901289",REACT_APP_PROD_CONFIRMATION_EMAIL_REDIRECT:"https://portal.sqoot.nl/",REACT_APP_EMAILJS_USER_ID:"user_hxvxyKl4UEjwKu063L7iK"}).FIREBASE_DATABASE_EMULATOR_HOST),u?(a=!0,i="http://"+u+"?ns="+l.namespace,l=(s=q(i,r)).repoInfo):a=!s.repoInfo.secure;var c=r&&a?new ln:new sn(e,t);return ue("Invalid Firebase Database URL",1,s),s.path.isEmpty()||S("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(l,e,c).database},e.prototype.deleteRepo=function(e){var t=a.safeGet(this.repos_,e.app.name);t&&a.safeGet(t,e.repoInfo_.toURLString())===e||S("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t,n){var o=a.safeGet(this.repos_,t.name);o||(o={},this.repos_[t.name]=o);var r=a.safeGet(o,e.toURLString());return r&&S("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),r=new $t(e,this.useRestClient_,t,n),o[e.toURLString()]=r,r},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}(),cn=function(){function e(e){this.repo_=e,e instanceof $t||S("Don't call new Database() directly - please use firebase.database()."),this.root_=new tn(e,j.Empty),this.INTERNAL=new pn(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app}
2,enumerable:!1,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),a.validateArgCount("database.ref",0,1,arguments.length),e instanceof tn?this.refFromURL(e.toString()):void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),a.validateArgCount(t,1,1,arguments.length);var n=q(e,this.repo_.repoInfo_.nodeAdmin);ue(t,1,n);var o=n.repoInfo;return o.host!==this.repo_.repoInfo_.host&&S(t+": Host name does not match the current database: (found "+o.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&S("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){a.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){a.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(e){return{".sv":{increment:e}}}},e}(),pn=function(){function e(e){this.database=e}return e.prototype.delete=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.database.checkDeleted_("delete"),un.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]}))}))},e}(),dn=Object.freeze({__proto__:null,forceLongPolling:function(){zt.forceDisallow(),Ht.forceAllow()},forceWebSockets:function(){Ht.forceDisallow()},isWebSocketsAvailable:function(){return zt.isAvailable()},setSecurityDebugCallback:function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){e.repo.stats(t)},statsIncrementCounter:function(e,t){e.repo.statsIncrementCounter(t)},dataUpdateCount:function(e){return e.repo.dataUpdateCount},interceptServerData:function(e,t){return e.repo.interceptServerData_(t)}}),hn=Qt;Qt.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},Qt.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var fn=qt,gn=U,yn=Object.freeze({__proto__:null,DataConnection:hn,RealTimeConnection:fn,hijackHash:function(e){var t=Qt.prototype.put;return Qt.prototype.put=function(n,o,r,i){void 0!==i&&(i=e()),t.call(this,n,o,r,i)},function(){Qt.prototype.put=t}},ConnectionTarget:gn,queryIdentifier:function(e){return e.queryIdentifier()},forceRestClient:function(e){un.getInstance().forceRestClient(e)}}),vn=cn.ServerValue;function mn(t){!function(e){Bt=e}(t.SDK_VERSION);var n=t.INTERNAL.registerComponent(new l.Component("database",(function(e,t){var n=e.getProvider("app").getImmediate(),o=e.getProvider("auth-internal");return un.getInstance().databaseFromApp(n,o,t)}),"PUBLIC").setServiceProps({Reference:tn,Query:Qe,Database:cn,DataSnapshot:Ue,enableLogging:E,INTERNAL:dn,ServerValue:vn,TEST_ACCESS:yn}).setMultipleInstances(!0));t.registerVersion("@firebase/database","0.6.13"),a.isNodeSdk()&&(e.exports=n)}mn(c.default),t.DataSnapshot=Ue,t.Database=cn,t.OnDisconnect=pe,t.Query=Qe,t.Reference=tn,t.ServerValue=vn,t.enableLogging=E,t.registerDatabase=mn}).call(this,n(106))},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"===typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var l,u=[],c=!1,p=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):p=-1,u.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++p<t;)l&&l[p].run();p=-1,t=u.length}l=null,c=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var o=n(109);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){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;
2var n={array: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:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"===typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,m=o?Symbol.for("react.fundamental"):60117,C=o?Symbol.for("react.responder"):60118,w=o?Symbol.for("react.scope"):60119;function b(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case p:case d:case a:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case v:case y:case u:return e;default:return t}}case i:return t}}}function E(e){return b(e)===d}t.typeOf=b,t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===l||e===s||e===f||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h||e.$$typeof===m||e.$$typeof===C||e.$$typeof===w)},t.isAsyncMode=function(e){return E(e)||b(e)===p},t.isConcurrentMode=E,t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return b(e)===h},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===v},t.isMemo=function(e){return b(e)===y},t.isPortal=function(e){return b(e)===i},t.isProfiler=function(e){return b(e)===l},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===f}},,,,function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(0),s=n(37),l=n(62),u=n(84),c=n(116),p=n(122),d=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.props=t,o.state=n,o.changeDetectionService=new p.ChangeDetectionService,o.api=null,o.portals=[],o.hasPendingPortalUpdate=!1,o.destroyed=!1,o}return o(t,e),t.prototype.render=function(){var e=this;return i.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(n){e[n]=t[n]})),e},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new f(this)},modules:e},n=this.props.gridOptions||{};u.AgGridColumn.hasChildColumns(this.props)&&(n.columnDefs=u.AgGridColumn.mapChildColumnDefs(this.props)),this.gridOptions=l.ComponentUtil.copyAttributesToGridOptions(n,this.props),new l.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi},t.prototype.waitForInstance=function(e,n,o){var r=this;if(void 0===o&&(o=0),this.destroyed)n(null);else if(e.rendered())n(null);else{if(o>=t.MAX_COMPONENT_CREATION_TIME)return void console.error("ag-Grid: React Component '"+e.getReactComponentName()+"' not created within "+t.MAX_COMPONENT_CREATION_TIME+"ms");
2window.setTimeout((function(){return r.waitForInstance(e,n,o+5)}),5)}},t.prototype.mountReactPortal=function(e,t,n){this.portals=r(this.portals,[e]),this.batchUpdate(this.waitForInstance(t,n))},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 p.ChangeDetectionStrategyType.IdentityCheck}return p.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 n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),Object.keys(n).length>0&&l.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)},t.prototype.extractDeclarativeColDefChanges=function(e,t){var n=!!e.debug;if(u.AgGridColumn.hasChildColumns(e)){var o=this.changeDetectionService.getStrategy(p.ChangeDetectionStrategyType.DeepValueCheck),r=this.gridOptions.columnDefs,i=u.AgGridColumn.mapChildColumnDefs(e);o.areEqual(r,i)||(n&&console.log("agGridReact: colDefs definitions changed"),t.columnDefs={previousValue:this.gridOptions.columnDefs,currentValue:u.AgGridColumn.mapChildColumnDefs(e)})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){-1!==l.ComponentUtil.ALL_PROPERTIES.indexOf(i)&&(o.changeDetectionService.getStrategy(o.getStrategyTypeForProp(i)).areEqual(e[i],t[i])||(r&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:e[i],currentValue:t[i]}))})),l.ComponentUtil.getEventCallbacks().forEach((function(i){o.props[i]!==t[i]&&(r&&console.log("agGridReact: ["+i+"] event callback changed"),n[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}(a.Component);function h(e,t){e.forEach((function(e){d[e]=t}))}t.AgGridReact=d,d.propTypes={gridOptions:s.object},h(l.ComponentUtil.getEventCallbacks(),s.func),h(l.ComponentUtil.BOOLEAN_PROPERTIES,s.bool),h(l.ComponentUtil.STRING_PROPERTIES,s.string),h(l.ComponentUtil.OBJECT_PROPERTIES,s.object),h(l.ComponentUtil.ARRAY_PROPERTIES,s.array),h(l.ComponentUtil.NUMBER_PROPERTIES,s.number),h(l.ComponentUtil.FUNCTION_PROPERTIES,s.func);var f=function(e){function t(t){var n=e.call(this)||this;return n.agGridReact=t,n}return o(t,e),t.prototype.createWrapper=function(e,t){return new c.ReactComponent(e,this.agGridReact,t)},t}(l.BaseComponentWrapper)},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(45),a=n(62),s=n(117),l=n(118),u=n(119),c=n(120),p=function(e){function t(n,o,r){var i=e.call(this)||this;return i.portal=null,i.componentWrappingElement="div",i.staticMarkup=null,i.staticRenderTime=0,i.reactComponent=n,i.componentType=r,i.parentComponent=o,i.statelessComponent=t.isStateless(i.reactComponent),i}return o(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 a.Promise((function(n){return t.createReactComponent(e,n)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.parentComponent.destroyPortal(this.portal)},t.prototype.createReactComponent=function(e,t){var n=this;this.statelessComponent||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var o=r.createElement(this.reactComponent,e),a=i.createPortal(o,this.eParentElement,u.default());this.portal=a,this.parentComponent.mountReactPortal(a,this,(function(e){t(e),n.statelessComponent&&(n.staticRenderTime>=2?n.eParentElement.addEventListener("DOMNodeInserted",(function(){n.removeStaticMarkup()}),!1):setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&l.assignProperties(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEac
2h((function(t){return a._.addCssClass(e.eParentElement,t)})))},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return a._.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&&!this.componentType.isCellRenderer())){var t=console.error,n=r.createElement(this.reactComponent,e);try{var o=console.error;console.error=function(){};var i=Date.now(),a=c.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-i,console.error=o,""===a?this.staticMarkup=a:a&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=a,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}(s.BaseReactComponent);t.ReactComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=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 n=this,o=this.getFrameworkComponentInstance();if(null!=o){var r=this.getFrameworkComponentInstance()[e];if(null==r)return;return r.apply(o,t)}window.setTimeout((function(){return n.callMethod(e,t)}),100)},e.prototype.addMethod=function(e,t){this[e]=t},e}();t.BaseReactComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignProperties=function(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))},t.assign=function(e,n,o){if("string"===typeof n&&(n=n.split(".")),n.length>1){var r=n.shift();t.assign(e[r]="[object Object]"===Object.prototype.toString.call(e[r])?e[r]:{},n,o)}else e[n[0]]=o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=0;t.default=function(){return"agPortalKey_"+ ++o}},function(e,t,n){"use strict";e.exports=n(121)},function(e,t,n){"use strict";var o=n(60),r=n(0);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,p=a?Symbol.for("react.provider"):60109,d=a?Symbol.for("react.context"):60110,h=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,g=a?Symbol.for("react.suspense"):60113,y=a?Symbol.for("react.suspense_list"):60120,v=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,C=a?Symbol.for("react.block"):60121,w=a?Symbol.for("react.fundamental"):60117,b=a?Symbol.for("react.scope"):60119;function E(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 l:return"Fragment";case s:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case y:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case d:return"Context.Consumer";case p:return"Context.Provider";case f:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case v:return E(e.type);case C:return E(e.render);case m:if(e=1===e._status?e._result:null)return E(e)}return null}
2var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;_.hasOwnProperty("ReactCurrentDispatcher")||(_.ReactCurrentDispatcher={current:null}),_.hasOwnProperty("ReactCurrentBatchConfig")||(_.ReactCurrentBatchConfig={suspense:null});var O={};function R(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var S=new Uint16Array(16),T=0;15>T;T++)S[T]=T+1;S[15]=0;var P=/^[: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]*$/,D=Object.prototype.hasOwnProperty,A={},N={};function I(e){return!!D.call(N,e)||!D.call(A,e)&&(P.test(e)?N[e]=!0:(A[e]=!0,!1))}function x(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){F[e]=new x(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];F[t]=new x(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){F[e]=new x(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){F[e]=new x(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){F[e]=new x(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){F[e]=new x(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){F[e]=new x(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){F[e]=new x(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){F[e]=new x(e,5,!1,e.toLowerCase(),null,!1)}));var k=/[\-:]([a-z])/g;function M(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(k,M);F[t]=new x(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(k,M);F[t]=new x(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(k,M);F[t]=new x(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){F[e]=new x(e,1,!1,e.toLowerCase(),null,!1)})),F.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){F[e]=new x(e,1,!1,e.toLowerCase(),null,!0)}));var L=/["'&<>]/;function G(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=L.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}function W(e,t){var n,o=F.hasOwnProperty(e)?F[e]:null;return(n="style"!==e)&&(n=null!==o?0===o.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,o){if(null===t||"undefined"===typeof t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;
2if(o)return!1;if(null!==n)switch(n.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,o,!1)?"":null!==o?(e=o.attributeName,3===(n=o.type)||4===n&&!0===t?e+'=""':(o.sanitizeURL&&(t=""+t),e+'="'+G(t)+'"')):I(e)?e+'="'+G(t)+'"':""}var V="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},H=null,j=null,B=null,U=!1,z=!1,Y=null,q=0;function K(){if(null===H)throw Error(i(321));return H}function Q(){if(0<q)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function X(){return null===B?null===j?(U=!1,j=B=Q()):(U=!0,B=j):null===B.next?(U=!1,B=B.next=Q()):(U=!0,B=B.next),B}function $(e,t,n,o){for(;z;)z=!1,q+=1,B=null,n=e(t,o);return j=H=null,q=0,B=Y=null,n}function J(e,t){return"function"===typeof t?t(e):t}function Z(e,t,n){if(H=K(),B=X(),U){var o=B.queue;if(t=o.dispatch,null!==Y&&void 0!==(n=Y.get(o))){Y.delete(o),o=B.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return B.memoizedState=o,[o,t]}return[B.memoizedState,t]}return e=e===J?"function"===typeof t?t():t:void 0!==n?n(t):t,B.memoizedState=e,e=(e=B.queue={last:null,dispatch:null}).dispatch=ee.bind(null,H,e),[B.memoizedState,e]}function ee(e,t,n){if(!(25>q))throw Error(i(301));if(e===H)if(z=!0,e={action:n,next:null},null===Y&&(Y=new Map),void 0===(n=Y.get(t)))Y.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,oe={readContext:function(e){var t=ne;return R(e,t),e[t]},useContext:function(e){K();var t=ne;return R(e,t),e[t]},useMemo:function(e,t){if(H=K(),t=void 0===t?null:t,null!==(B=X())){var n=B.memoizedState;if(null!==n&&null!==t){e:{var o=n[1];if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!V(t[r],o[r])){o=!1;break e}o=!0}}if(o)return n[0]}}return e=e(),B.memoizedState=[e,t],e},useReducer:Z,useRef:function(e){H=K();var t=(B=X()).memoizedState;return null===t?(e={current:e},B.memoizedState=e):t},useState:function(e){return Z(J,e)},useLayoutEffect:function(){},useCallback:function(e){return e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t){return{props:t,responder:e}},useDeferredValue:function(e){return K(),e},useTransition:function(){return K(),[function(e){e()},!1]}},re="http://www.w3.org/1999/xhtml";function ie(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"}}var ae={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},se=o({menuitem:!0},ae),le={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},ue=["Webkit","ms","Moz","O"];Object.keys(le).forEach((function(e){ue.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),le[t]=le[e]}))}));var ce=/([A-Z])/g,pe=/^ms-/,de=r.Children.toArray,he=_.ReactCurrentDispatcher,fe={listing:!0,pre:!0,textarea:!0},ge=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ye={},ve={};var me=Object.prototype.hasOwnProperty,Ce={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function we(e,t){if(void 0===e)throw Error(i(152,E(t)||"Component"))}function be(e,t,n){function a(r,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,o){if(o&&("object"===typeof(o=e.contextType)&&null!==o))return R(o,n),o[n];if(e=e.contextTypes){for(var r in n={},e)n[r]=t[r];t=n}else t=O;return t}(a,t,n,s),u=[],c=!1,p={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(e,t){c=!0,u=[t]},enqueueSetState:function(e,t){if(null===u)return null;u.push(t)}};if(s){if(s=new a(r.props,l,p),"function"===typeof a.getDerivedStateFromProps){var d=a.getDerivedStateFromProps.call(null,r.props,s.state);null!=d&&(s.state=o({},s.state,d))}}else if(H={},s=a(r.props,l,p),null==(s=$(a,r.props,s,l))||null==s.render)return void we(e=s,a);if(s.props=r.props,s.context=l,s.updater=p,void 0===(p=s.state)&&(s.state=p=null),"function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),u.length){p=u;var h=c;if(u=null,c=!1,h&&1===p.length)s.state=p[0];else{d=h?p[0]:s.state;var f=!0;for(h=h?1:0;h<p.length;h++){var g=p[h];null!=(g="function"===typeof g?g.call(s,d,r.props,l):g)&&(f?(f=!1,d=o({},d,g)):o(d,g))}s.state=d}}else u=null;if(we(e=s.render(),a),"function"===typeof s.getChildContext&&"object"===typeof(r=a.childContextTypes)){var y=s.getChildContext();for(var v in y)if(!(v in r))throw Error(i(108,E(a)||"Unknown",v))}y&&(t=o({},t,y))}for(;r.isValidElement(e);){var s=e,l=s.type;if("function"!==typeof l)break;a(s,l)}return{child:e,context:t}}var Ee=function(){function e(e,t){r.isValidElement(e)?e.type!==l?e=[e]:(e=e.props.children,e=r.isValidElement(e)?[e]:de(e)):e=de(e),e={type:null,domNamespace:re,children:e,childIndex:0,context:O,footer
2:""};var n=S[0];if(0===n){var o=S,a=2*(n=o.length);if(!(65536>=a))throw Error(i(304));var s=new Uint16Array(a);for(s.set(o),(S=s)[0]=n+1,o=n;o<a-1;o++)S[o]=o+1;S[a-1]=0}else S[0]=S[n];this.threadID=n,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;S[e]=S[0],S[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,o=this.threadID;R(n,o);var r=n[o];this.contextStack[t]=n,this.contextValueStack[t]=r,n[o]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},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=ne;ne=this.threadID;var n=he.current;he.current=oe;try{for(var o=[""],r=!1;o[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;S[a]=S[0],S[0]=a;break}var s=this.stack[this.stack.length-1];if(r||s.childIndex>=s.children.length){var l=s.footer;if(""!==l&&(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===p)this.popProvider(s.type);else if(s.type===g){this.suspenseDepth--;var u=o.pop();if(r){r=!1;var c=s.fallbackFrame;if(!c)throw Error(i(303));this.stack.push(c),o[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}o[this.suspenseDepth]+=u}o[this.suspenseDepth]+=l}else{var d=s.children[s.childIndex++],h="";try{h+=this.render(d,s.context,s.domNamespace)}catch(f){if(null!=f&&"function"===typeof f.then)throw Error(i(294));throw f}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=h}}return o[0]}finally{he.current=n,ne=t}},t.render=function(e,t,n){if("string"===typeof e||"number"===typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?G(n):this.previousWasTextNode?"\x3c!-- --\x3e"+G(n):(this.previousWasTextNode=!0,G(n));if(e=(t=be(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!r.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===s)throw Error(i(257));throw Error(i(258,n.toString()))}return e=de(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"===typeof a)return this.renderDOM(e,t,n);switch(a){case u:case h:case c:case y:case l:return e=de(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case g:throw Error(i(294))}if("object"===typeof a&&null!==a)switch(a.$$typeof){case f:H={};var C=a.render(e.props,e.ref);return C=$(a.render,e.props,C,e.ref),C=de(C),this.stack.push({type:null,domNamespace:n,children:C,childIndex:0,context:t,footer:""}),"";case v:return e=[r.createElement(a.type,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:return n={type:e,domNamespace:n,children:a=de(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:a=e.type,C=e.props;var E=this.threadID;return R(a,E),a=de(C.children(a[E])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case w:throw Error(i(338));case m: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)}))}}(a=e.type),a._status){case 1:return e=[r.createElement(a._result,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw a._result;default:throw Error(i(295))}case b:throw Error(i(343))}throw Error(i(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===re&&ie(a),!ye.hasOwnProperty(a)){if(!ge.test(a))throw Error(i(65,a));ye[a]=!0}var s=e.props;if("input"===a)s=o({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var u=s.children;if(null!=u){if(null!=l)throw Error(i(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(i(93));u=u[0]}l=""+u}null==l&&(l="")}s=o({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=o({},s,{value:void 0});else if("option"===a){u=this.currentSelectValue;var c=function(e){if(void 0===e||null===e)return e;var t="";
2return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=u){var p=null!=s.value?s.value+"":c;if(l=!1,Array.isArray(u)){for(var d=0;d<u.length;d++)if(""+u[d]===p){l=!0;break}}else l=""+u===p;s=o({selected:void 0,children:void 0},s,{selected:l,children:c})}}if(l=s){if(se[a]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(i(60));if(!("object"===typeof l.dangerouslySetInnerHTML&&"__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=l.style&&"object"!==typeof l.style)throw Error(i(62,""))}for(w in l=s,u=this.makeStaticMarkup,c=1===this.stack.length,p="<"+e.type,l)if(me.call(l,w)){var h=l[w];if(null!=h){if("style"===w){d=void 0;var f="",g="";for(d in h)if(h.hasOwnProperty(d)){var y=0===d.indexOf("--"),v=h[d];if(null!=v){if(y)var m=d;else if(m=d,ve.hasOwnProperty(m))m=ve[m];else{var C=m.replace(ce,"-$1").toLowerCase().replace(pe,"-ms-");m=ve[m]=C}f+=g+m+":",g=d,f+=y=null==v||"boolean"===typeof v||""===v?"":y||"number"!==typeof v||0===v||le.hasOwnProperty(g)&&le[g]?(""+v).trim():v+"px",g=";"}}h=f||null}d=null;e:if(y=a,v=l,-1===y.indexOf("-"))y="string"===typeof v.is;else switch(y){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":y=!1;break e;default:y=!0}y?Ce.hasOwnProperty(w)||(d=I(d=w)&&null!=h?d+'="'+G(h)+'"':""):d=W(w,h),d&&(p+=" "+d)}}u||c&&(p+=' data-reactroot=""');var w=p;l="",ae.hasOwnProperty(a)?w+="/>":(w+=">",l="</"+e.type+">");e:{if(null!=(u=s.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"===typeof(u=s.children)||"number"===typeof u){u=G(u);break e}u=null}return null!=u?(s=[],fe.hasOwnProperty(a)&&"\n"===u.charAt(0)&&(w+="\n"),w+=u):s=de(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,w},e}(),_e={renderToString:function(e){e=new Ee(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new Ee(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=_e.default||_e},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(o=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var r=function(){function e(){var e;this.strategyMap=((e={})[o.DeepValueCheck]=new a,e[o.IdentityCheck]=new i((function(e,t){return e===t})),e[o.NoCheck]=new i((function(e,t){return!0})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=r;var i=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),a=function(){function e(){}return e.prototype.areEqual=function(t,n){return e.areEquivalent(e.copy(t),e.copy(n))},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=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!==typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"===typeof e&&isNaN(e)},e.areEquivalent=function(t,n){if(t=e.unwrapStringOrNumber(t),n=e.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!==typeof n)return!1;if(e.isNaN(t)&&e.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"===typeof t)return t.toString()===n.toString();if("object"!==typeof t)return t==n;var o=void 0===t.areEquivPropertyTracking,r=void 0===n.areEquivPropertyTracking;try{var i=void 0;if(o)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===n})))return!0;
2if(r)n.areEquivPropertyTracking=[];else if(n.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(n),n.areEquivPropertyTracking.push(t);var a={};for(i in t)"areEquivPropertyTracking"!=i&&(a[i]=null);for(i in n)"areEquivPropertyTracking"!=i&&(a[i]=null);for(i in a)if(!this.areEquivalent(t[i],n[i]))return!1;return!0}finally{o&&delete t.areEquivPropertyTracking,r&&delete n.areEquivPropertyTracking}},e}()},function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(70),r=n(2),i=n(11);function a(e,t){Object(r.a)(2,arguments);var n=Object(i.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(71),r=n(2),i=n(11);function a(e,t){Object(r.a)(2,arguments);var n=Object(i.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(46),r=n(2),i=n(11);function a(e,t){Object(r.a)(2,arguments);var n=Object(i.a)(t);return Object(o.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(72),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(47),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(73),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(t);return Object(r.default)(e,-n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getSeconds();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getMinutes();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getHours();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getDay();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getDate();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getMonth();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){return Object(r.a)(1,arguments),Object(o.default)(e).getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=t.getTime();return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(8),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e),a=Object(o.a)(t);return n.setSeconds(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(8),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e),a=Object(o.a)(t);return n.setMinutes(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(8),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e),a=Object(o.a)(t);return n.setHours(a),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var o=n(11),r=n(8),i=n(75),a=n(2);function s(e,t){Object(a.a)(2,arguments);var n=Object(r.default)(e),s=Object(o.a)(t),l=Math.floor(n.getMonth()/3)+1,u=s-l;return Object(i.default)(n,n.getMonth()+3*u)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(11),r=n(8),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e),a=Object(o.a)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(19),r=n(8),i=n(2);function a(e){var t,n;if(Object(i.a)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==Object(o.a)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Object(r.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(19),r=n(8),i=n(2);function a(e){var t,n;if(Object(i.a)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==Object(o.a)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Object(r.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(29),r=n(39),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(r.default)(e),a=Object(r.default)(t),s=n.getTime()-Object(o.a)(n),l=a.getTime()-Object(o.a)(a);return Math.round((s-l)/864e5)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(28),r=n(29),i=n(2);function a(e,t,n){Object(i.a)(2,arguments);var a=Object(o.default)(e,n),s=Object(o.default)(t,n),l=a.getTime()-Object(r.a)(a),u=s.getTime()-Object(r.a)(s);return Math.round((l-u)/6048e5)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t);return n.getFullYear()-i.getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e){Object(r.a)(1,arguments);var t=Object(o.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var o=n(17),r=n(8),i=n(11),a=n(2);function s(e,t){var n,s,l,u,c,p,d,h;Object(a.a)(1,arguments);var f=Object(o.a)(),g=Object(i.a)(null!==(n=null!==(s=null!==(l=null!==(u=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==u?u:null===t||void 0===t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(p=c.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(d=f.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Object(r.default)(e),v=y.getDay(),m=6+(v<g?-7:0)-(v-g);return y.setDate(y.getDate()+m),y.setHours(23,59,59,999),y}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(39),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t);return n.getFullYear()===i.getFullYear()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(55),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t);return n.getTime()===i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t);return n.getTime()>i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e),i=Object(o.default)(t);return n.getTime()<i.getTime()}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o=n(8),r=n(2);function i(e,t){Object(r.a)(2,arguments);var n=Object(o.default)(e).getTime(),i=Object(o.default)(t.start).getTime(),a=Object(o.default)(t.end).getTime();if(!(i<=a))throw new RangeError("Invalid interval");return n>=i&&n<=a}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var o=n(32),r=n(2),i=n(11);function a(e,t){var n;Object(r.a)(1,arguments);var o=Object(i.a)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==o&&1!==o&&0!==o)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,s=p(e);if(s.date){var l=d(s.date,o);a=h(l.restDateString,l.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var u,c=a.getTime(),f=0;if(s.time&&(f=g(s.time),isNaN(f)))return new Date(NaN);if(!s.timezone){var y=new Date(c+f),m=new Date(0);return m.setFullYear(y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate()),m.setHours(y.getUTCHours(),y.getUTCMinutes(),y.getUTCSeconds(),y.getUTCMilliseconds()),m}return u=v(s.timezone),isNaN(u)?new Date(NaN):new Date(c+f+u)}
2var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function p(e){var t,n={},o=e.split(s.dateTimeDelimiter);if(o.length>2)return n;if(/:/.test(o[0])?t=o[0]:(n.date=o[0],t=o[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var r=s.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}function d(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),o=e.match(n);if(!o)return{year:NaN,restDateString:""};var r=o[1]?parseInt(o[1]):null,i=o[2]?parseInt(o[2]):null;return{year:null===i?r:100*i,restDateString:e.slice((o[1]||o[2]).length)}}function h(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var o=!!n[4],r=f(n[1]),i=f(n[2])-1,a=f(n[3]),s=f(n[4]),u=f(n[5])-1;if(o)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var o=new Date(0);o.setUTCFullYear(e,0,4);var r=o.getUTCDay()||7,i=7*(t-1)+n+1-r;return o.setUTCDate(o.getUTCDate()+i),o}(t,s,u):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(m[t]||(C(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(C(e)?366:365)}(t,r)?(c.setUTCFullYear(t,i,Math.max(r,a)),c):new Date(NaN)}function f(e){return e?parseInt(e):1}function g(e){var t=e.match(u);if(!t)return NaN;var n=y(t[1]),r=y(t[2]),i=y(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*o.a+r*o.b+1e3*i:NaN}function y(e){return e&&parseFloat(e.replace(",","."))||0}function v(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*o.a+i*o.b):NaN}var m=[31,null,31,30,31,30,31,31,30,31,30,31];function C(e){return e%400===0||e%4===0&&e%100!==0}},function(e,t,n){"use strict";n.r(t),n.d(t,"IGNORE_CLASS_NAME",(function(){return d}));var o=n(0),r=n(45);function i(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var a,s,l=(void 0===a&&(a=0),function(){return++a}),u={},c={},p=["touchstart","touchmove"],d="ignore-react-onclickoutside";function h(e,t){var n=null;return-1!==p.indexOf(t)&&s&&(n={passive:!e.props.preventDefault}),n}t.default=function(e,t){var n,a,p=e.displayName||e.name||"Component";return a=n=function(n){var a,d;function f(e){var o;return(o=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!==typeof o.__clickOutsideHandlerProp){var t=o.getInstance();if("function"!==typeof t.props.handleClickOutside){if("function"!==typeof t.handleClickOutside)throw new Error("WrappedComponent: "+p+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else o.__clickOutsideHandlerProp(e)},o.__getComponentNode=function(){var e=o.getInstance();return t&&"function"===typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"===typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(r.findDOMNode)(e)},o.enableOnClickOutside=function(){if("undefined"!==typeof document&&!c[o._uid]){"undefined"===typeof s&&(s=function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),c[o._uid]=!0;var e=o.props.eventTypes;e.forEach||(e=[e]),u[o._uid]=function(e){var t;null!==o.componentNode&&(o.props.preventDefault&&e.preventDefault(),o.props.stopPropagation&&e.stopPropagation(),o.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(i(e,t,n))return!0;e=e.parentNode}return e}(e.target,o.componentNode,o.props.outsideClickIgnoreClass)===document&&o.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,u[o._uid],h(o,e))}))}},o.disableOnClickOutside=function(){delete c[o._uid];var e=u[o._uid];if(e&&"undefined"!==typeof document){var t=o.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,h(o,t))})),delete u[o._uid]}},o.getRef=function(e){return o.instanceRef=e},o._uid=l(),o}d=n,(a=f).prototype=Object.create(d.prototype),a.prototype.constructor=a,a.__proto__=d;var g=f.prototype;return g.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},g.componentDidMount=function(){if("undefined"!==typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"===typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!==typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+p+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},g.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},g.componentWillUnmount=function(){this.disableOnClickOutside()},g.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["excludeScrollbar"]));
2return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(o.createElement)(e,n)},f}(o.Component),n.displayName="OnClickOutside("+p+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:d,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},a}},function(e,t,n){"use strict";var o;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(86),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{p(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();o=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===i.call(e),o=a(e),s=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var f=u&&n;if(s&&e.length>0&&!r.call(e,0))for(var g=0;g<e.length;++g)d.push(String(g));if(o&&e.length>0)for(var y=0;y<e.length;++y)d.push(String(y));else for(var v in e)f&&"prototype"===v||!r.call(e,v)||d.push(String(v));if(l)for(var m=function(e){if("undefined"===typeof window||!h)return p(e);try{return p(e)}catch(t){return!1}}(e),C=0;C<c.length;++C)m&&"constructor"===c[C]||!r.call(e,c[C])||d.push(c[C]);return d}}e.exports=o},function(e,t,n){"use strict";var o="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,r=Object.prototype.toString,i=function(e){return!(o&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===r.call(e)},a=function(e){return!!i(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},function(e,t,n){"use strict";var o=function(e){return e!==e};e.exports=function(e,t){return 0===e&&0===t?1/e===1/t:e===t||!(!o(e)||!o(t))}},function(e,t,n){"use strict";var o=n(166),r=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,a=Object.prototype.toString,s="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!s)return"[object RegExp]"===a.call(e);var t=i(e,"lastIndex");return!(!t||!o(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,r.call(e),!0}catch(n){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var o=n(63);e.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var o="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==i.call(t))throw new TypeError(o+t);for(var n,a=r.call(arguments,1),s=function(){if(this instanceof n){var o=t.apply(this,a.concat(r.call(arguments)));return Object(o)===o?o:this}return t.apply(e,a.concat(r.call(arguments)))},l=Math.max(0,t.length-a.length),u=[],c=0;c<l;c++)u.push("$"+c);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var p=function(){};p.prototype=t.prototype,n.prototype=new p,p.prototype=null}return n}},function(e,t,n){"use strict";var o=n(64),r=n(169),i=n(87),a=n(88),s=n(173),l=r(i);o(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},function(e,t,n){"use strict";var o=n(63),r=n(170)("%Function%"),i=r.apply,a=r.call;e.exports=function(){return o.apply(a,arguments)},e.exports.apply=function(){return o.apply(i,arguments)}},function(e,t,n){"use strict";var o=TypeError,r=Object.getOwnPropertyDescriptor;if(r)try{r({},"")}catch(v){r=null}var i=function(){throw new o},a=r?function(){try{return arguments.callee,i}catch(e){try{return r(arguments,"callee").get}catch(t){return i}}}():i,s=n(171)(),l=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,c="undefined"===typeof Uint8Array?void 0:l(Uint8Array),p={"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"===typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"===typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"===typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"===typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"===typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"===typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":s?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%JSONParse%":"object"===typeof JSON?JSON.parse:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&s?l((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"===typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"===typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"===typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"===typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"===typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"===typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&s?l((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"===typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":c,"%TypedArrayPrototype%":c?c.prototype:void 0,"%TypeError%":o,"%TypeErrorPrototype%":o.prototype,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"===typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"===typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"===typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"===typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"===typeof WeakSet?void 0:WeakSet.prototype},d=n(63).call(Function.call,String.prototype.replace),h=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f=/\\(\\)?/g,g=function(e){var t=[];return d(e,h,(function(e,n,o,r){t[t.length]=o?d(r,f,"$1"):n||e})),t},y=function(e,t){if(!(e in p))throw new SyntaxError("intrinsic "+e+" does not exist!");if("undefined"===typeof p[e]&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return p[e]};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=g(e),i=y("%"+(n.length>0?n[0]:"")+"%",t),a=1;a<n.length;a+=1)if(null!=i)if(r&&a+1>=n.length){var s=r(i,n[a]);if(!t&&!(n[a]in i))throw new o("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[n[a]]}else i=i[n[a]];return i}},function(e,t,n){"use strict";(function(t){var o=t.Symbol,r=n(172);e.exports=function(){return"function"===typeof o&&("function"===typeof Symbol&&("symbol"===typeof o("foo")&&("symbol"===typeof Symbol("bar")&&r())))}}).call(this,n(31))},function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},function(e,t,n){"use strict";var o=n(64).supportsDescriptors,r=n(88),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,l=Object.getPrototypeOf,u=/a/;e.exports=function(){if(!o||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=r(),t=l(u),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},function(e,t,n){"use strict";var o=Date.prototype.getDay,r=Object.prototype.toString,i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){return"object"===typeof e&&null!==e&&(i?function(e){try{return o.call(e),!0}catch(t){return!1}}(e):"[object Date]"===r.call(e))}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(0),r=(a(o),a(n(37))),i=a(n(176));a(n(74));
2function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,o){e=n,t.forEach((function(t){return t(e,o)}))}}}t.default=function(e,t){var n,a,p="__create-react-context-"+(0,i.default)()+"__",d=function(e){function n(){var t,o;s(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=o=l(this,e.call.apply(e,[this].concat(i))),o.emitter=c(o.props.value),l(o,t)}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,o=e.value,r=void 0;((i=n)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?r=0:(r="function"===typeof t?t(n,o):1073741823,0!==(r|=0)&&this.emitter.set(e.value,r))}var i,a},n.prototype.render=function(){return this.props.children},n}(o.Component);d.childContextTypes=((n={})[p]=r.default.object.isRequired,n);var h=function(t){function n(){var e,o;s(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=o=l(this,t.call.apply(t,[this].concat(i))),o.state={value:o.getValue()},o.onUpdate=function(e,t){0!==((0|o.observedBits)&t)&&o.setState({value:o.getValue()})},l(o,e)}return u(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},n.prototype.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},n.prototype.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[p]?this.context[p].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return h.contextTypes=((a={})[p]=r.default.object,a),{Provider:d,Consumer:h}},e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(31))},,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var o=n(19);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}var a=n(56),s=n(53),l=n(8);function u(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var c=n(49),p=n(29),d=n(30),h=n(11),f=n(2);function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function w(e,t){if(t&&("object"==Object(o.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function b(e){var t=C();return function(){var n,o=m(e);if(t){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return w(this,n)}}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e){var t=function(e,t){if("object"!=Object(o.a)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Object(o.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(o.a)(t)?t:t+""}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function R(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(){function e(){E(this,e),S(this,"priority",void 0),S(this,"subPriority",0)}return R(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),P=function(e){v(n,e);var t=b(n);function n(e,o,r,i,a){var s;return E(this,n),(s=t.call(this)).value=e,s.validateValue=o,s.setValue=r,s.priority=i,a&&(s.subPriority=a),s}return R(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(T),D=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",10),S(g(e),"subPriority",-1),e}return R(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(T),A=function(){function e(){E(this,e),S(this,"incompatibleTokens",void 0),S(this,"priority",void 0),S(this,"subPriority",void 0)}return R(e,[{key:"run",value:function(e,t,n,o){var r=this.parse(e,t,n,o);return r?{setter:new P(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),N=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",140),S(g(e),"incompatibleTokens",["R","u","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(A),I=n(32),x=/^(1[0-2]|0?\d)/,F=/^(3[0-1]|[0-2]?\d)/,k=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,M=/^(5[0-3]|[0-4]?\d)/,L=/^(2[0-3]|[0-1]?\d)/,G=/^(2[0-4]|[0-1]?\d)/,W=/^(1[0-1]|0?\d)/,V=/^(1[0-2]|0?\d)/,H=/^[0-5]?\d/,j=/^[0-5]?\d/,B=/^\d/,U=/^\d{1,2}/,z=/^\d{1,3}/,Y=/^\d{1,4}/,q=/^-?\d+/,K=/^-?\d/,Q=/^-?\d{1,2}/,X=/^-?\d{1,3}/,$=/^-?\d{1,4}/,J=/^([+-])(\d{2})(\d{2}
2)?|Z/,Z=/^([+-])(\d{2})(\d{2})|Z/,ee=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,te=/^([+-])(\d{2}):(\d{2})|Z/,ne=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function oe(e,t){return e?{value:t(e.value),rest:e.rest}:e}function re(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ie(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var o="+"===n[1]?1:-1,r=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:o*(r*I.a+i*I.b+a*I.c),rest:t.slice(n[0].length)}}function ae(e){return re(q,e)}function se(e,t){switch(e){case 1:return re(B,t);case 2:return re(U,t);case 3:return re(z,t);case 4:return re(Y,t);default:return re(new RegExp("^\\d{1,"+e+"}"),t)}}function le(e,t){switch(e){case 1:return re(K,t);case 2:return re(Q,t);case 3:return re(X,t);case 4:return re($,t);default:return re(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ue(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ce(e,t){var n,o=t>0,r=o?t:1-t;if(r<=50)n=e||100;else{var i=r+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return o?n:1-n}function pe(e){return e%400===0||e%4===0&&e%100!==0}var de=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",130),S(g(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return oe(se(4,e),o);case"yo":return oe(n.ordinalNumber(e,{unit:"year"}),o);default:return oe(se(t.length,e),o)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var r=ce(n.year,o);return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(A),he=n(42),fe=n(25),ge=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",130),S(g(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return oe(se(4,e),o);case"Yo":return oe(n.ordinalNumber(e,{unit:"year"}),o);default:return oe(se(t.length,e),o)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,o){var r=Object(he.a)(e,o);if(n.isTwoDigitYear){var i=ce(n.year,r);return e.setUTCFullYear(i,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(fe.a)(e,o)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(fe.a)(e,o)}}]),n}(A),ye=n(27),ve=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",130),S(g(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t){return le("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),Object(ye.a)(o)}}]),n}(A),me=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",130),S(g(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t){return le("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(A),Ce=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",120),S(g(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return se(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(A),we=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",120),S(g(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return se(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(A),be=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),S(g(e),"priority",110),e}return R(n,[{key:"parse",value:function(e,t,n){var o=function(e){return e-1};switch(t){case"M":return oe(re(x,e),o);case"MM":return oe(se(2,e),o);case"Mo":return oe(n.ordinalNumber(e,{unit:"month"}),o);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(A),Ee=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",110),S(g(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){var o=function(e){return e-1};switch(t){case"L":return oe(re(x,e),o);case"LL":return oe(se(2,e),o);case"Lo":return oe(n.ordinalNumber(e,{unit:"month"}),o);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(A),_e=n(57);var Oe=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",100),S(g(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return re(M,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,o){return Object(fe.a)(function(e,t,n){Object(f.a)(2,arguments);var o=Object(l.default)(e),r=Object(h.a)(t),i=Object(_e.a)(o,n)-r;return o.setUTCDate(o.getUTCDate()-7*i),o}(e,n,o),o)}}]),n}(A),Re=n(58);var Se=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",100),S(g(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return re(M,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return Object(ye.a)(function(e,t){Object(f.a)(2,arguments);var n=Object(l.default)(e),o=Object(h.a)(t),r=Object(Re.a)(n)-o;return n.setUTCDate(n.getUTCDate()-7*r),n}(e,n))}}]),n}(A),Te=[31,28,31,30,31,30,31,31,30,31,30,31],Pe=[31,29,31,30,31,30,31,31,30,31,30,31],De=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",90),S(g(e),"subPriority",1),S(g(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return re(F,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){var n=pe(e.getUTCFullYear()),o=e.getUTCMonth();return n?t>=1&&t<=Pe[o]:t>=1&&t<=Te[o]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(A),Ae=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",90),S(g(e),"subpriority",1),S(g(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return re(k,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return pe(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}
2(A),Ne=n(17);function Ie(e,t,n){var o,r,i,a,s,u,c,p;Object(f.a)(2,arguments);var d=Object(Ne.a)(),g=Object(h.a)(null!==(o=null!==(r=null!==(i=null!==(a=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==a?a:null===n||void 0===n?void 0:null===(s=n.locale)||void 0===s?void 0:null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:d.weekStartsOn)&&void 0!==r?r:null===(c=d.locale)||void 0===c?void 0:null===(p=c.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==o?o:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Object(l.default)(e),v=Object(h.a)(t),m=y.getUTCDay(),C=v%7,w=(C+7)%7,b=(w<g?7:0)+v-m;return y.setUTCDate(y.getUTCDate()+b),y}var xe=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",90),S(g(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=Ie(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(A),Fe=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",90),S(g(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return oe(se(t.length,e),r);case"eo":return oe(n.ordinalNumber(e,{unit:"day"}),r);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=Ie(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(A),ke=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",90),S(g(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n,o){var r=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return oe(se(t.length,e),r);case"co":return oe(n.ordinalNumber(e,{unit:"day"}),r);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=Ie(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(A);var Me=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",90),S(g(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return se(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return oe(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return oe(n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return oe(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case"iiii":default:return oe(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){Object(f.a)(2,arguments);var n=Object(h.a)(t);n%7===0&&(n-=7);var o=1,r=Object(l.default)(e),i=r.getUTCDay(),a=n%7,s=(a+7)%7,u=(s<o?7:0)+n-i;return r.setUTCDate(r.getUTCDate()+u),r}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(A),Le=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",80),S(g(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ue(n),0,0,0),e}}]),n}(A),Ge=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",80),S(g(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb"
vendor: 7,209 bytes, line 2
2:case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ue(n),0,0,0),e}}]),n}(A),We=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",80),S(g(e),"incompatibleTokens",["a","b","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ue(n),0,0,0),e}}]),n}(A),Ve=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",70),S(g(e),"incompatibleTokens",["H","K","k","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return re(V,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(A),He=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",70),S(g(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return re(L,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(A),je=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",70),S(g(e),"incompatibleTokens",["h","H","k","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return re(W,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(A),Be=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",70),S(g(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return re(G,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e}}]),n}(A),Ue=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",60),S(g(e),"incompatibleTokens",["t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return re(H,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(A),ze=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",50),S(g(e),"incompatibleTokens",["t","T"]),e}return R(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return re(j,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return se(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(A),Ye=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",30),S(g(e),"incompatibleTokens",["t","T"]),e}return R(n,[{key:"parse",value:function(e,t){return oe(se(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(A),qe=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",10),S(g(e),"incompatibleTokens",["t","T","x"]),e}return R(n,[{key:"parse",value:function(e,t){switch(t){case"X":return ie(J,e);case"XX":return ie(Z,e);case"XXXX":return ie(ee,e);case"XXXXX":return ie(ne,e);case"XXX":default:return ie(te,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(A),Ke=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",10),S(g(e),"incompatibleTokens",["t","T","X"]),e}return R(n,[{key:"parse",value:function(e,t){switch(t){case"x":return ie(J,e);case"xx":return ie(Z,e);case"xxxx":return ie(ee,e);case"xxxxx":return ie(ne,e);case"xxx":default:return ie(te,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(A),Qe=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",40),S(g(e),"incompatibleTokens","*"),e}return R(n,[{key:"parse",value:function(e){return ae(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(A),Xe=function(e){v(n,e);var t=b(n);function n(){var e;E(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return S(g(e=t.call.apply(t,[this].concat(r))),"priority",20),S(g(e),"incompatibleTokens","*"),e}return R(n,[{key:"parse",value:function(e){return ae(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(A),$e={G:new N,y:new de,Y:new ge,R:new ve,u:new me,Q:new Ce,q:new we,M:new be,L:new Ee,w:new Oe,I:new Se,d:new De,D:new Ae,E:new xe,e:new Fe,c:new ke,i:new Me,a:new Le,b:new Ge,B:new We,h:new Ve,H:new He,K:new je,k:new Be,m:new Ue,s:new ze,S:new Ye,X:new qe,x:new Ke,t:new Qe,T:ne
2w Xe};n.d(t,"default",(function(){return rt}));var Je=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,et=/^'([^]*?)'?$/,tt=/''/g,nt=/\S/,ot=/[a-zA-Z]/;function rt(e,t,n,r){var g,y,v,m,C,w,b,E,_,O,R,S,T,P,A,N,I,x;Object(f.a)(3,arguments);var F=String(e),k=String(t),M=Object(Ne.a)(),L=null!==(g=null!==(y=null===r||void 0===r?void 0:r.locale)&&void 0!==y?y:M.locale)&&void 0!==g?g:a.a;if(!L.match)throw new RangeError("locale must contain match property");var G=Object(h.a)(null!==(v=null!==(m=null!==(C=null!==(w=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==w?w:null===r||void 0===r?void 0:null===(b=r.locale)||void 0===b?void 0:null===(E=b.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==C?C:M.firstWeekContainsDate)&&void 0!==m?m:null===(_=M.locale)||void 0===_?void 0:null===(O=_.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==v?v:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Object(h.a)(null!==(R=null!==(S=null!==(T=null!==(P=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==P?P:null===r||void 0===r?void 0:null===(A=r.locale)||void 0===A?void 0:null===(N=A.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==T?T:M.weekStartsOn)&&void 0!==S?S:null===(I=M.locale)||void 0===I?void 0:null===(x=I.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==R?R:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===F?Object(l.default)(n):new Date(NaN);var V,H={firstWeekContainsDate:G,weekStartsOn:W,locale:L},j=[new D],B=k.match(Ze).map((function(e){var t=e[0];return t in c.a?(0,c.a[t])(e,L.formatLong):e})).join("").match(Je),U=[],z=i(B);try{var Y=function(){var t=V.value;null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!Object(d.b)(t)||Object(d.c)(t,k,e),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!Object(d.a)(t)||Object(d.c)(t,k,e);var n=t[0],o=$e[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=U.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&U.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));U.push({token:n,fullToken:t});var s=o.run(F,t,L.match,H);if(!s)return{v:new Date(NaN)};j.push(s.setter),F=s.rest}else{if(n.match(ot))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=it(t)),0!==F.indexOf(t))return{v:new Date(NaN)};F=F.slice(t.length)}};for(z.s();!(V=z.n()).done;){var q=Y();if("object"===Object(o.a)(q))return q.v}}catch(ne){z.e(ne)}finally{z.f()}if(F.length>0&&nt.test(F))return new Date(NaN);var K=j.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return j.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Q=Object(l.default)(n);if(isNaN(Q.getTime()))return new Date(NaN);var X,$=Object(s.a)(Q,Object(p.a)(Q)),J={},Z=i(K);try{for(Z.s();!(X=Z.n()).done;){var ee=X.value;if(!ee.validate($,H))return new Date(NaN);var te=ee.set($,J,H);Array.isArray(te)?($=te[0],u(J,te[1])):$=te}}catch(ne){Z.e(ne)}finally{Z.f()}return $}function it(e){return e.match(et)[1].replace(tt,"'")}},function(e,t,n){"use strict";n.r(t);var o=n(68),r=n(53),i=n(8),a=n(2);var s=n(58),l=n(54),u=n(57),c=n(42);function p(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}var d={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return p("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):p(n+1,2)},d:function(e,t){return p(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];
2case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return p(e.getUTCHours()%12||12,t.length)},H:function(e,t){return p(e.getUTCHours(),t.length)},m:function(e,t){return p(e.getUTCMinutes(),t.length)},s:function(e,t){return p(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return p(Math.floor(o*Math.pow(10,n-3)),t.length)}},h="midnight",f="noon",g="morning",y="afternoon",v="evening",m="night";function C(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+p(i,2)}function w(e,t){return e%60===0?(e>0?"-":"+")+p(Math.abs(e)/60,2):b(e,t)}function b(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+p(Math.floor(r/60),2)+n+p(r%60,2)}var E={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return d.y(e,t)},Y:function(e,t,n,o){var r=Object(c.a)(e,o),i=r>0?r:1-r;return"YY"===t?p(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):p(i,t.length)},R:function(e,t){return p(Object(l.a)(e),t.length)},u:function(e,t){return p(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return p(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return p(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return d.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return p(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=Object(u.a)(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):p(r,t.length)},I:function(e,t,n){var o=Object(s.a)(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):p(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):d.d(e,t)},D:function(e,t,n){var o=function(e){Object(a.a)(1,arguments);var t=Object(i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),r=n-o;return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):p(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return p(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return p(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return p(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?f:0===r?h:r/12>
2=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?v:r>=12?y:r>=4?g:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return d.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):d.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):p(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):p(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):d.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):d.s(e,t)},S:function(e,t){return d.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return w(r);case"XXXX":case"XX":return b(r);case"XXXXX":case"XXX":default:return b(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return w(r);case"xxxx":case"xx":return b(r);case"xxxxx":case"xxx":default:return b(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+C(r,":");case"OOOO":default:return"GMT"+b(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+C(r,":");case"zzzz":default:return"GMT"+b(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return p(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return p((o._originalDate||e).getTime(),t.length)}},_=n(49),O=n(29),R=n(30),S=n(11),T=n(17),P=n(56);n.d(t,"default",(function(){return F}));var D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,I=/''/g,x=/[a-zA-Z]/;function F(e,t,n){var s,l,u,c,p,d,h,f,g,y,v,m,C,w,b,N,I,F;Object(a.a)(2,arguments);var M=String(t),L=Object(T.a)(),G=null!==(s=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:L.locale)&&void 0!==s?s:P.a,W=Object(S.a)(null!==(u=null!==(c=null!==(p=null!==(d=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:null===n||void 0===n?void 0:null===(h=n.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==p?p:L.firstWeekContainsDate)&&void 0!==c?c:null===(g=L.locale)||void 0===g?void 0:null===(y=g.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==u?u:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=Object(S.a)(null!==(v=null!==(m=null!==(C=null!==(w=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==w?w:null===n||void 0===n?void 0:null===(b=n.locale)||void 0===b?void 0:null===(N=b.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==C?C:L.weekStartsOn)&&void 0!==m?m:null===(I=L.locale)||void 0===I?void 0:null===(F=I.options)||void 0===F?void 0:F.weekStartsOn)&&void 0!==v?v:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!G.localize)throw new RangeError("locale must contain localize property");if(!G.formatLong)throw new RangeError("locale must contain formatLong property");var H=Object(i.default)(e);if(!Object(o.default)(H))throw new RangeError("Invalid time value");var j=Object(O.a)(H),B=Object(r.a)(H,j),U={firstWeekContainsDate:W,weekStartsOn:V,locale:G,_originalDate:H},z=M.match(A).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,_.a[t])(e,G.formatLong):e}
2)).join("").match(D).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return k(o);var i=E[r];if(i)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!Object(R.b)(o)||Object(R.c)(o,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!Object(R.a)(o)||Object(R.c)(o,t,String(e)),i(B,o,G.localize,U);if(r.match(x))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return z}function k(e){var t=e.match(N);return t?t[1].replace(I,"'"):e}},function(e,t,n){"use strict";n.r(t);var o=n(94),r=n.n(o),i=n(40),a=n.n(i),s=n(13),l=n.n(s),u=n(43),c=n.n(u),p=n(14),d=n.n(p),h=n(95),f=n.n(h),g=n(0),y=n(79),v=n(80),m=n.n(v),C=m()(),w=m()(),b=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t=e.call.apply(e,[this].concat(o))||this,d()(l()(t),"referenceNode",void 0),d()(l()(t),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}c()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return g.createElement(C.Provider,{value:this.referenceNode},g.createElement(w.Provider,{value:this.setReferenceNode},this.props.children))},t}(g.Component),E=function(e){return Array.isArray(e)?e[0]:e},_=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e.apply(void 0,n)}},O=function(e,t){if("function"===typeof e)return _(e,t);null!=e&&(e.current=t)},R={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},S={},T=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t=e.call.apply(e,[this].concat(o))||this,d()(l()(t),"state",{data:void 0,placement:void 0}),d()(l()(t),"popperInstance",void 0),d()(l()(t),"popperNode",null),d()(l()(t),"arrowNode",null),d()(l()(t),"setPopperNode",(function(e){e&&t.popperNode!==e&&(O(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),d()(l()(t),"setArrowNode",(function(e){t.arrowNode=e})),d()(l()(t),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),d()(l()(t),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:a()({},t.props.modifiers,{arrow:a()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),d()(l()(t),"getPopperStyle",(function(){return t.popperNode&&t.state.data?a()({position:t.state.data.offsets.popper.position},t.state.data.styles):R})),d()(l()(t),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),d()(l()(t),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:S})),d()(l()(t),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),d()(l()(t),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),d()(l()(t),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=l()(t).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new y.a(n,e,t.getOptions()))})),d()(l()(t),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}c()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&f()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){O(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return E(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(g.Component);d()(T,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});var P=y.a.placements;function D(e){var t=e.referenceElement,n=r()(e,["referenceElement"]);return g.createElement(C.Consumer,null,(function(e){return g.createElement(T,a()({referenceElement:void 0!==t?t:e},n))}))}var A=n(74),N=n.n(A),I=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t=e.call.apply(e,[this].concat(o))||this,d()(l()(t),"refHandler",(function(e){O(t.props.innerRef,e),_(t.props.setReferenceNode,e)})),t}c()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){O(this.props.innerRef,null)}
2,n.render=function(){return N()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),E(this.props.children)({ref:this.refHandler})},t}(g.Component);function x(e){return g.createElement(w.Consumer,null,(function(t){return g.createElement(I,a()({setReferenceNode:t},e))}))}n.d(t,"Popper",(function(){return D})),n.d(t,"placements",(function(){return P})),n.d(t,"Manager",(function(){return b})),n.d(t,"Reference",(function(){return x}))},function(e,t,n){"use strict";n.r(t);var o=n(28),r=n(8),i=n(11),a=n(2),s=n(17);function l(e,t){var n,l,u,c,p,d,h,f;Object(a.a)(1,arguments);var g=Object(r.default)(e),y=g.getFullYear(),v=Object(s.a)(),m=Object(i.a)(null!==(n=null!==(l=null!==(u=null!==(c=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null===t||void 0===t?void 0:null===(p=t.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==u?u:v.firstWeekContainsDate)&&void 0!==l?l:null===(h=v.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=new Date(0);C.setFullYear(y+1,0,m),C.setHours(0,0,0,0);var w=Object(o.default)(C,t),b=new Date(0);b.setFullYear(y,0,m),b.setHours(0,0,0,0);var E=Object(o.default)(b,t);return g.getTime()>=w.getTime()?y+1:g.getTime()>=E.getTime()?y:y-1}function u(e,t){var n,r,u,c,p,d,h,f;Object(a.a)(1,arguments);var g=Object(s.a)(),y=Object(i.a)(null!==(n=null!==(r=null!==(u=null!==(c=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null===t||void 0===t?void 0:null===(p=t.locale)||void 0===p?void 0:null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==u?u:g.firstWeekContainsDate)&&void 0!==r?r:null===(h=g.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),v=l(e,t),m=new Date(0);m.setFullYear(v,0,y),m.setHours(0,0,0,0);var C=Object(o.default)(m,t);return C}n.d(t,"default",(function(){return c}));function c(e,t){Object(a.a)(1,arguments);var n=Object(r.default)(e),i=Object(o.default)(n,t).getTime()-u(n,t).getTime();return Math.round(i/6048e5)+1}},function(e,t,n){"use strict";var o=n(38),r=n.n(o),i=n(26),a=n(52),s=function(){function e(e,t){this.code_=S(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return S(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.serverResponse_?this.message_+"\n"+this.serverResponse_:this.message_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!1,configurable:!0}),e}(),l="unknown",u="object-not-found",c="quota-exceeded",p="unauthenticated",d="unauthorized",h="retry-limit-exceeded",f="canceled",g="invalid-url",y="invalid-default-bucket",v="cannot-slice-blob",m="server-file-wrong-size",C="no-download-url",w="invalid-argument",b="invalid-argument-count",E="app-deleted",_="invalid-root-operation",O="invalid-format",R="internal-error";function S(e){return"storage/"+e}function T(){return new s(l,"An unknown error occurred, please check the error payload for server response.")}function P(){return new s(f,"User canceled the upload/download.")}function D(){return new s(v,"Cannot slice blob for upload. Please retry the upload.")}function A(){return new s(C,"The given file does not have any download URLs.")}function N(e,t,n){return new s(w,"Invalid argument in `"+t+"` at index "+e+": "+n)}function I(){return new s(E,"The Firebase app was deleted.")}function x(e,t){return new s(O,"String does not match format '"+e+"': "+t)}function F(e){throw new s(R,"Internal error: "+e)}var k={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function M(e){switch(e){case k.RAW:case k.BASE64:case k.BASE64URL:case k.DATA_URL:return;default:throw"Expected one of the event types: ["+k.RAW+", "+k.BASE64+", "+k.BASE64URL+", "+k.DATA_URL+"]."}}var L=function(e,t){this.data=e,this.contentType=t||null};function G(e,t){switch(e){case k.RAW:return new L(W(t));case k.BASE64:case k.BASE64URL:return new L(V(e,t));case k.DATA_URL:return new L(function(e){var t=new H(e);return t.base64?V(k.BASE64,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(n){throw x(k.DATA_URL,"Malformed data URL.")}return W(t)}(t.rest)}(t),new H(t).contentType)}throw T()}function W(e){for(var t=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(o<=127)t.push(o);else if(o<=2047)t.push(192|o>>6,128|63&o);else if(55296===(64512&o))if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1)))o=65536|(1023&o)<<10|1023&e.charCodeAt(++n),t.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|63&o);else t.push(239,191,189);else 56320===(64512&o)?t.push(239,191,189):t.push(224|o>>12,128|o>>6&63,128|63&o)}return new Uint8Array(t)}function V(e,t){switch(e){case k.BASE64:var n=-1!==t.indexOf("-"),o=-1!==t.indexOf("_");if(n||o)throw x(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case k.BASE64URL:var r=-1!==t.indexOf("+"),i=-1!==t.indexOf("/");if(r||i)throw x(e,"Invalid character '"+(r?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(t)}catch(u){throw x(e,"Invalid character found")}for(var s=new Uint8Array(a.length),l=0;l<a.length;
2l++)s[l]=a.charCodeAt(l);return s}var H=function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw x(k.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=t[1]||null;null!=n&&(this.base64=(o=n,r=";base64",o.length>=r.length&&o.substring(o.length-r.length)===r),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1);var o,r};var j,B={STATE_CHANGED:"state_changed"},U="running",z="pausing",Y="paused",q="success",K="canceling",Q="canceled",X="error",$={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function J(e){switch(e){case U:case z:case K:return $.RUNNING;case Y:return $.PAUSED;case q:return $.SUCCESS;case Q:return $.CANCELED;case X:default:return $.ERROR}}function Z(e){return null!=e}function ee(e){return void 0!==e}function te(e){return"function"===typeof e}function ne(e){return"object"===typeof e}function oe(e){return ne(e)&&null!==e}function re(e){return"string"===typeof e||e instanceof String}function ie(e){return ae(e)&&Number.isInteger(e)}function ae(e){return"number"===typeof e||e instanceof Number}function se(e){return le()&&e instanceof Blob}function le(){return"undefined"!==typeof Blob}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(j||(j={}));var ue=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=j.NO_ERROR,this.sendPromise_=new Promise((function(t){e.xhr_.addEventListener("abort",(function(){e.errorCode_=j.ABORT,t(e)})),e.xhr_.addEventListener("error",(function(){e.errorCode_=j.NETWORK_ERROR,t(e)})),e.xhr_.addEventListener("load",(function(){t(e)}))}))}return e.prototype.send=function(e,t,n,o){if(this.sent_)throw F("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),Z(o))for(var r in o)o.hasOwnProperty(r)&&this.xhr_.setRequestHeader(r,o[r].toString());return Z(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw F("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw F("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw F("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){Z(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){Z(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),ce=function(){function e(){}return e.prototype.createXhrIo=function(){return new ue},e}();function pe(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=pe();if(void 0!==n){for(var o=new n,r=0;r<e.length;r++)o.append(e[r]);return o.getBlob()}if(le())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}var he=function(){function e(e,t){var n=0,o="";se(e)?(this.data_=e,n=e.size,o=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=o}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(se(this.data_)){var o=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===o?null:new e(o)}return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(le()){var o=t.map((function(t){return t instanceof e?t.data_:t}));return new e(de.apply(null,o))}var r=t.map((function(e){return re(e)?G(k.RAW,e).data:e.data_})),i=0;r.forEach((function(e){i+=e.byteLength}));var a=new Uint8Array(i),s=0;return r.forEach((function(e){for(var t=0;t<e.length;t++)a[s++]=e[t]})),new e(a,!0)},e.prototype.uploadData=function(){return this.data_},e}(),fe=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n;try{n=e.makeFromUrl(t)}catch(o){return new e(t,"")}if(""===n.path)return n;throw new s(y,"Invalid default bucket '"+t+"'.")},e.makeFromUrl=function(t){var n=null;var o=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function r(e){e.path_=decodeURIComponent(e.path)}for(var i="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),a=[{regex:o,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+i+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:r},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/([A-Za-z0-9.\\-_]+)/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:r}],l=0;l<a.length;l++){var u=a[l],c=u.regex.exec(t);if(c){var p=c[u.indices.bucket],d=c[u.indices.path];d||(d=""),n=new e(p,d),u.postModify(n);break}}if(null==n)throw function(e){return new s(g,"Invalid URL '"+e+"'.")}(t);return n},e}();function ge(e){var t,n;try{t=JSON.parse(e)}catch(o){return null}return ne(n=t)&&!Array.isArray(n)?t:null}function ye(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}function ve(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function me(e){return"https://firebasestorage.googleapis.com/v0"+e}function Ce(e){var t=encodeURIComponent,n="?";for(var o in e){if(e.hasOwnProperty(o))n=n+(t(o)+"="+t(e[o]))+"&"}return n=n.slice(0,-1)}function we(e,t){return t}var be=function(e,t,n,o){this.server=e,this.local=t||e,this.writable=!!n,this.xform=o||we},Ee=null;function _e(){if(Ee)return Ee;var e=[];e.push(new be("bucket")),e.push(new be("generation")),e.push(new be("metageneration")),e.push(new be("name","fullPath",!0));var t=new be("name");t.xform=function(e,t){return function(e){return!re(e)||e.length<2?e:ve(e)}(t)},e.push(t);var n=new be("size");return n.xform=function(e,t){return Z(t)?Number(t):t},e.push(n),e.push(new be("timeCreated")),e.push(new be("updated")),e.push(new be("md5Hash",null,!0)),e.push(new be("cacheControl",null,!0)),e.push(new be("contentDisposition",null,!0)),e.push(new be("contentEncoding",null,!0)),e.push(new be("contentLanguage",null,!0)),e.push(new be("contentType",null,!0)),e.push(new be("metadata","customMetadata",!0)),Ee=e}function Oe(e,t,n){for(var o={type:"file"},r=n.length,i=0;i<r;i++){var a=n[i];o[a.local]=a.xform(o,t[a.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,o=e.fullPath,r=new fe(n,o);return t.makeStorageReference(r)}})}(o,e),o}function Re(e,t,n){var o=ge(t);return null===o?null:Oe(e,o,n)}function Se(e,t){for(var n={},o=t.length,r=0;r<o;r++){var i=t[r];i.writable&&(n[i.server]=e[i.local])}return JSON.stringify(n)}function Te(e){if(!ne(e)||!e)throw"Expected Metadata object.";for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("customMetadata"===t){if(!ne(n))throw"Expected object for 'customMetadata' mapping."}else if(oe(n))throw"Mapping for '"+t+"' cannot be an object."}}function Pe(e,t,n){var o=ge(n);return null===o?null:function(e,t,n){var o={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var r=0,i=n.prefixes;r<i.length;r++){var a=i[r].replace(/\/$/,""),s=e.makeStorageReference(new fe(t,a));o.prefixes.push(s)}if(n.items)for(var l=0,u=n.items;l<u.length;l++){var c=u[l];s=e.makeStorageReference(new fe(t,c.name));o.items.push(s)}return o}(e,t,o)}function De(e){if(!ne(e)||!e)throw"Expected ListOptions object.";for(var t in e)if("maxResults"===t){if(!ie(e.maxResults)||e.maxResults<=0)throw"Expected maxResults to be a positive number.";if(e.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==t)throw"Unknown option: "+t;if(e.pageToken&&!re(e.pageToken))throw"Expected pageToken to be string."}}var Ae=function(e,t,n,o){this.url=e,this.method=t,this.handler=n,this.timeout=o,this.urlParam
2s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Ne(e){if(!e)throw T()}function Ie(e,t){return function(n,o){var r=Re(e,o,t);return Ne(null!==r),r}}function xe(e,t){return function(n,o){var r=Re(e,o,t);return Ne(null!==r),function(e,t){var n=ge(t);if(null===n)return null;if(!re(n.downloadTokens))return null;var o=n.downloadTokens;if(0===o.length)return null;var r=encodeURIComponent;return o.split(",").map((function(t){var n=e.bucket,o=e.fullPath;return me("/b/"+r(n)+"/o/"+r(o))+Ce({alt:"media",token:t})}))[0]}(r,o)}}function Fe(e){return function(t,n){var o,r,i;return 401===t.getStatus()?o=new s(p,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(i=e.bucket,o=new s(c,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(r=e.path,o=new s(d,"User does not have permission to access '"+r+"'.")):o=n,o.setServerResponseProp(n.serverResponseProp()),o}}function ke(e){var t=Fe(e);return function(n,o){var r,i=t(n,o);return 404===n.getStatus()&&(r=e.path,i=new s(u,"Object '"+r+"' does not exist.")),i.setServerResponseProp(o.serverResponseProp()),i}}function Me(e,t,n){var o=me(t.fullServerUrl()),r=e.maxOperationRetryTime,i=new Ae(o,"GET",Ie(e,n),r);return i.errorHandler=ke(t),i}function Le(e,t,n,o,r){var i={};t.isRoot?i.prefix="":i.prefix=t.path+"/",n&&n.length>0&&(i.delimiter=n),o&&(i.pageToken=o),r&&(i.maxResults=r);var a=me(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime,l=ne
2w Ae(a,"GET",function(e,t){return function(n,o){var r=Pe(e,t,o);return Ne(null!==r),r}}(e,t.bucket),s);return l.urlParams=i,l.errorHandler=Fe(t),l}function Ge(e,t,n){var o=me(t.fullServerUrl()),r=e.maxOperationRetryTime,i=new Ae(o,"GET",xe(e,n),r);return i.errorHandler=ke(t),i}function We(e,t,n,o){var r=me(t.fullServerUrl()),i=Se(n,o),a=e.maxOperationRetryTime,s=new Ae(r,"PATCH",Ie(e,o),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=i,s.errorHandler=ke(t),s}function Ve(e,t){var n=me(t.fullServerUrl()),o=e.maxOperationRetryTime;var r=new Ae(n,"DELETE",(function(e,t){}),o);return r.successCodes=[200,204],r.errorHandler=ke(t),r}function He(e,t,n){var o=Object.assign({},n);return o.fullPath=e.path,o.size=t.size(),o.contentType||(o.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),o}var je=function(e,t,n,o){this.current=e,this.total=t,this.finalized=!!n,this.metadata=o||null};function Be(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(o){Ne(!1)}return Ne(!!n&&-1!==(t||["active"]).indexOf(n)),n}function Ue(e,t,n,o,r,i,a,l){var u=new je(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=o.size()),o.size()!==u.total)throw new s(m,"Server recorded incorrect upload file size, please retry the upload.");var c=u.total-u.current,p=c;r>0&&(p=Math.min(p,r));var d=u.current,h=d+p,f={"X-Goog-Upload-Command":p===c?"upload, finalize":"upload","X-Goog-Upload-Offset":u.current},g=o.slice(d,h);if(null===g)throw D();var y=t.maxUploadRetryTime,v=new Ae(n,"POST",(function(e,n){var r,a=Be(e,["active","final"]),s=u.current+p,l=o.size();return r="final"===a?Ie(t,i)(e,n):null,new je(s,l,"final"===a,r)}),y);return v.headers=f,v.body=g.uploadData(),v.progressCallback=l||null,v.errorHandler=Fe(e),v}var ze=function(e,t,n){if(te(e)||Z(t)||Z(n))this.next=e,this.error=t||null,this.complete=n||null;else{var o=e;this.next=o.next||null,this.error=o.error||null,this.complete=o.complete||null}},Ye=function(e,t,n,o,r,i){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=o,this.task=r,this.ref=i};function qe(e,t,n){for(var o=t.length,r=t.length,i=0;i<t.length;i++)if(t[i].optional){o=i;break}if(!(o<=n.length&&n.length<=r))throw function(e,t,n,o){var r,i;return e===t?(r=e,i=1===e?"argument":"arguments"):(r="between "+e+" and "+t,i="arguments"),new s(b,"Invalid argument count in `"+n+"`: Expected "+r+" "+i+", received "+o+".")}(o,r,e,n.length);for(i=0;i<n.length;i++)try{t[i].validator(n[i])}catch(a){throw a instanceof Error?N(i,e,a.message):N(i,e,a)}}var Ke=function(e,t){var n=this;this.validator=function(t){n.optional&&!ee(t)||e(t)},this.optional=!!t};function Qe(e,t){function n(e){if(!re(e))throw"Expected string."}var o,r,i;return e?(r=n,i=e,o=function(e){r(e),i(e)}):o=n,new Ke(o,t)}function Xe(){return new Ke((function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||le()&&e instanceof Blob))throw"Expected Blob or File."}))}function $e(e){return new Ke(Te,e)}function Je(e){return new Ke(De,e)}function Ze(){return new Ke((function(e){if(!(ae(e)&&e>=0))throw"Expected a number 0 or greater."}))}function et(e,t){return new Ke((function(t){if(!(null===t||Z(t)&&t instanceof Object))throw"Expected an Object.";void 0!==e&&null!==e&&e(t)}),t)}function tt(e){return new Ke((function(e){if(!(null===e||te(e)))throw"Expected a Function."}),e)}function nt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];Promise.resolve().then((function(){return e.apply(void 0,t)}))}}var ot=function(){function e(e,t,n,o,r,i){var a=this;void 0===i&&(i=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.service_=t,this.location_=n,this.blob_=r,this.metadata_=i,this.mappings_=o,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=U,this.errorHandler_=function(e){a.request_=null,a.chunkMultiplier_=1,e.codeEquals(f)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=e,a.transition_(X))},this.metadataErrorHandler_=function(e){a.request_=null,e.codeEquals(f)?a.completeTransitions_():(a.error_=e,a.transition_(X))},this.promise_=new Promise((function(e,t){a.resolve_=e,a.reject_=t,a.start_()}
2)),this.promise_.then(null,(function(){}))}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n){return e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===U&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.service_.getAuthToken().then((function(n){switch(t.state_){case U:e(n);break;case K:t.transition_(Q);break;case z:t.transition_(Y)}}))},e.prototype.createResumable_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,o,r){var i=t.bucketOnlyServerUrl(),a=He(t,o,r),s={name:a.fullPath},l=me(i),u={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":o.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},c=Se(a,n),p=e.maxUploadRetryTime,d=new Ae(l,"POST",(function(e){var t;Be(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(n){Ne(!1)}return Ne(re(t)),t}),p);return d.urlParams=s,d.headers=u,d.body=c,d.errorHandler=Fe(t),d}(e.service_,e.location_,e.mappings_,e.blob_,e.metadata_),o=e.service_.makeRequest(n,t);e.request_=o,o.getPromise().then((function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_((function(n){var o=function(e,t,n,o){var r=e.maxUploadRetryTime,i=new Ae(n,"POST",(function(e){var t=Be(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(i){Ne(!1)}n||Ne(!1);var r=Number(n);return Ne(!isNaN(r)),new je(r,o.size(),"final"===t)}),r);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=Fe(t),i}(e.service_,e.location_,t,e.blob_),r=e.service_.makeRequest(o,n);e.request_=r,r.getPromise().then((function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.continueUpload_=function(){var e=this,t=262144*this.chunkMultiplier_,n=new je(this.transferred_,this.blob_.size()),o=this.uploadUrl_;this.resolveToken_((function(r){var i;try{i=Ue(e.location_,e.service_,o,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(s){return e.error_=s,void e.transition_(X)}var a=e.service_.makeRequest(i,r);e.request_=a,a.getPromise().then((function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(q)):e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_((function(t){var n=Me(e.service_,e.location_,e.mappings_),o=e.service_.makeRequest(n,t);e.request_=o,o.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.transition_(q)}),e.metadataErrorHandler_)}))},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,o,r){var i=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var l=He(t,o,r),u="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Se(l,n)+"\r\n--"+s+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",c="\r\n--"+s+"--",p=he.getBlob(u,o,c);if(null===p)throw D();var d={name:l.fullPath},h=me(i),f=e.maxUploadRetryTime,g=new Ae(h,"POST",Ie(e,n),f);return g.urlParams=d,g.headers=a,g.body=p.uploadData(),g.errorHandler=Fe(t),g}(e.service_,e.location_,e.mappings_,e.blob_,e.metadata_),o=e.service_.makeRequest(n,t);e.request_=o,o.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(q)}),e.errorHandler_)}))},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case K:case z:this.state_=e,null!==this.request_&&this.request_.cancel();break;case U:var t=this.state_===Y;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case Y:this.state_=e,this.notifyObservers_();break;case Q:this.error_=P(),this.state_=e,this.notifyObservers_();break;case X:case q:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case z:this.transition_(Y);break;case K:this.transition_(Q);break;case U:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=J(this.state_);return new Ye(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)}
2,enumerable:!1,configurable:!0}),e.prototype.on=function(e,t,n,o){function r(){if(e!==B.STATE_CHANGED)throw"Expected one of the event types: ["+B.STATE_CHANGED+"]."}var i="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=tt(!0).validator,s=et(null,!0).validator;function l(e){try{return void a(e)}catch(t){}try{if(s(e),!(ee(e.next)||ee(e.error)||ee(e.complete)))throw"";return}catch(t){throw i}}var u=[Qe(r),et(l,!0),tt(!0),tt(!0)];qe("on",u,arguments);var c=this;function p(e){return function(t,n,r){null!==e&&qe("on",e,arguments);var i=new ze(t,n,o);return c.addObserver_(i),function(){c.removeObserver_(i)}}}function d(e){if(null===e)throw i;l(e)}var h=[et(d),tt(!0),tt(!0)],f=!(ee(t)||ee(n)||ee(o));return f?p(h):p(null)(t,n,o)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t=this.observers_.indexOf(e);-1!==t&&this.observers_.splice(t,1)},e.prototype.notifyObservers_=function(){var e=this;this.finishPromise_(),this.observers_.slice().forEach((function(t){e.notifyObserver_(t)}))},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(J(this.state_)){case $.SUCCESS:nt(this.resolve_.bind(null,this.snapshot))();break;case $.CANCELED:case $.ERROR:nt(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(J(this.state_)){case $.RUNNING:case $.PAUSED:e.next&&nt(e.next.bind(e,this.snapshot))();break;case $.SUCCESS:e.complete&&nt(e.complete.bind(e))();break;case $.CANCELED:case $.ERROR:e.error&&nt(e.error.bind(e,this.error_))();break;default:e.error&&nt(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){qe("resume",[],arguments);var e=this.state_===Y||this.state_===z;return e&&this.transition_(U),e},e.prototype.pause=function(){qe("pause",[],arguments);var e=this.state_===U;return e&&this.transition_(z),e},e.prototype.cancel=function(){qe("cancel",[],arguments);var e=this.state_===U||this.state_===z;return e&&this.transition_(K),e},e}(),rt=function(){function e(e,t){this.service=e,this.location=t instanceof fe?t:fe.makeFromUrl(t)}return e.prototype.toString=function(){return qe("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return _e()},e.prototype.child=function(e){qe("child",[Qe()],arguments);var t=ye(this.location.path,e),n=new fe(this.location.bucket,t);return this.newRef(this.service,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new fe(this.location.bucket,e);return this.newRef(this.service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new fe(this.location.bucket,"");return this.newRef(this.service,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return ve(this.location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.service},enumerable:!1,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),qe("put",[Xe(),$e(!0)],arguments),this.throwIfRoot_("put"),new ot(this,this.service,this.location,this.mappings(),new he(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=k.RAW),qe("putString",[Qe(),Qe(M,!0),$e(!0)],arguments),this.throwIfRoot_("putString");var o=G(t,e),r=Object.assign({},n);return!Z(r.contentType)&&Z(o.contentType)&&(r.contentType=o.contentType),new ot(this,this.service,this.location,this.mappings(),new he(o.data,!0),r)},e.prototype.delete=function(){var e=this;return qe("delete",[],arguments),this.throwIfRoot_("delete"),this.service.getAuthToken().then((function(t){var n=Ve(e.service,e.location);
2return e.service.makeRequest(n,t).getPromise()}))},e.prototype.listAll=function(){qe("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then((function(){return e}))},e.prototype.listAllHelper=function(e,t){return Object(i.__awaiter)(this,void 0,void 0,(function(){var n,o,r,a;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return n={pageToken:t},[4,this.list(n)];case 1:return o=i.sent(),(r=e.prefixes).push.apply(r,o.prefixes),(a=e.items).push.apply(a,o.items),null==o.nextPageToken?[3,3]:[4,this.listAllHelper(e,o.nextPageToken)];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))},e.prototype.list=function(e){qe("list",[Je(!0)],arguments);var t=this;return this.service.getAuthToken().then((function(n){var o=e||{},r=Le(t.service,t.location,"/",o.pageToken,o.maxResults);return t.service.makeRequest(r,n).getPromise()}))},e.prototype.getMetadata=function(){var e=this;return qe("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then((function(t){var n=Me(e.service,e.location,e.mappings());return e.service.makeRequest(n,t).getPromise()}))},e.prototype.updateMetadata=function(e){var t=this;return qe("updateMetadata",[$e()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then((function(n){var o=We(t.service,t.location,e,t.mappings());return t.service.makeRequest(o,n).getPromise()}))},e.prototype.getDownloadURL=function(){var e=this;return qe("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then((function(t){var n=Ge(e.service,e.location,e.mappings());return e.service.makeRequest(n,t).getPromise().then((function(e){if(null===e)throw A();return e}))}))},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new s(_,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),it=function(){function e(e){this.promise_=Promise.reject(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){},e}();var at=function(){function e(e,t,n,o,r,i,a,s,l,u,c){var p=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=o,this.successCodes_=r.slice(),this.additionalRetryCodes_=i.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=u,this.timeout_=l,this.pool_=c,this.promise_=new Promise((function(e,t){p.resolve_=e,p.reject_=t,p.start_()}))}return e.prototype.start_=function(){var e=this;function t(t,n){var o,r=e.resolve_,i=e.reject_,a=n.xhr;if(n.wasSuccessCode)try{var l=e.callback_(a,a.getResponseText());ee(l)?r(l):r()}catch(u){i(u)}else null!==a?((o=T()).setServerResponseProp(a.getResponseText()),e.errorCallback_?i(e.errorCallback_(a,o)):i(o)):n.canceled?i(o=e.appDelete_?I():P()):i(o=new s(h,"Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new st(!1,null,!0)):this.backoffId_=function(e,t,n){var o=1,r=null,a=!1,s=0;function l(){return 2===s}var u=!1;function c(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];u||(u=!0,t.apply(null,e))}function p(t){r=setTimeout((function(){r=null,e(d,l())}),t)}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!u)if(e)c.call.apply(c,Object(i.__spreadArrays)([null,e],t));else{var r,d=l()||a;if(d)c.call.apply(c,Object(i.__spreadArrays)([null,e],t));else o<64&&(o*=2),1===s?(s=2,r=0):r=1e3*(o+Math.random()),p(r)}}var h=!1;function f(e){h||(h=!0,u||(null!==r?(e||(s=2),clearTimeout(r),p(0)):e||(s=1)))}return p(0),setTimeout((function(){a=!0,f(!0)}),n),f}((function(t,n){if(n)t(!1,new st(!1,null,!0));else{var o=e.pool_.createXhrIo();e.pendingXhr_=o,null!==e.progressCallback_&&o.addUploadProgressListener(r),o.send(e.url_,e.method_,e.body_,e.headers_).then((function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(r),e.pendingXhr_=null;var o=(n=n).getErrorCode()===j.NO_ERROR,i=n.getStatus();if(o&&!e.isRetryStatusCode_(i)){var a=-1!==e.successCodes_.indexOf(i);t(!0,new st(a,n))}else{var s=n.getErrorCode()===j.ABORT;t(!1,new st(!1,null,s))}}))}function r(t){var n=t.loaded,o=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,o)}}),t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=-1!==[408,429].indexOf(e),o=-1!==this.additionalRetryCodes_.indexOf(e);return t||n||o},e}(),st=function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n};
2function lt(e,t,n,o){var i=Ce(e.urlParams),a=e.url+i,s=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(s,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(s,n),function(e){var t="undefined"!==typeof r.a?r.a.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}(s),new at(a,e.method,s,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,o)}var ut=function(){function e(t,n,o,r){var i;this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=t,this.authProvider_=n,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requests_=new Set,this.pool_=o,this.bucket_=null!=r?fe.makeFromBucketSpec(r):e.extractBucket_(null===(i=this.app_)||void 0===i?void 0:i.options),this.internals_=new ct(this)}return e.extractBucket_=function(e){var t=null===e||void 0===e?void 0:e.storageBucket;return null==t?null:fe.makeFromBucketSpec(t)},e.prototype.getAuthToken=function(){return Object(i.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(i.__generator)(this,(function(n){switch(n.label){case 0:return(e=this.authProvider_.getImmediate({optional:!0}))?[4,e.getToken()]:[3,2];case 1:if(null!==(t=n.sent()))return[2,t.accessToken];n.label=2;case 2:return[2,null]}}))}))},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requests_.forEach((function(e){return e.cancel()})),this.requests_.clear()},e.prototype.makeStorageReference=function(e){return new rt(this,e)},e.prototype.makeRequest=function(e,t){var n=this;if(this.deleted_)return new it(I());var o=lt(e,this.appId_,t,this.pool_);return this.requests_.add(o),o.getPromise().then((function(){return n.requests_.delete(o)}),(function(){return n.requests_.delete(o)})),o},e.prototype.ref=function(e){function t(e){if("string"!==typeof e)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."}if(qe("ref",[Qe(t,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new rt(this,this.bucket_);return null!=e?n.child(e):n},e.prototype.refFromURL=function(e){function t(e){if("string"!==typeof e)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{fe.makeFromUrl(e)}catch(t){throw"Expected valid full URL but got an invalid one."}}return qe("refFromURL",[Qe(t,!1)],arguments),new rt(this,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.maxUploadRetryTime_},enumerable:!1,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){qe("setMaxUploadRetryTime",[Ze()],arguments),this.maxUploadRetryTime_=e},Object.defineProperty(e.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),e.prototype.setMaxOperationRetryTime=function(e){qe("setMaxOperationRetryTime",[Ze()],arguments),this.maxOperationRetryTime_=e},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!1,configurable:!0}),e}(),ct=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.deleteApp(),Promise.resolve()},e}();function pt(e,t){var n=e.getProvider("app").getImmediate(),o=e.getProvider("auth-internal");return new ut(n,o,new ce,t)}!function(e){var t={TaskState:$,TaskEvent:B,StringFormat:k,Storage:ut,Reference:rt};e.INTERNAL.registerComponent(new a.Component("storage",pt,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage","0.3.43")}(r.a)},function(e,t,n){"use strict";var o=n(8),r=n(65),i=n(2);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.default)(e),r=Object(o.default)(t),a=n.getTime()-r.getTime();return a<0?-1:a>0?1:a}var s=n(66),l=n(67);function u(e){Object(i.a)(1,arguments);var t=Object(o.default)(e);return Object(s.default)(t).getTime()===Object(l.default)(t).getTime()}function c(e,t){Object(i.a)(2,arguments);var n,s=Object(o.default)(e),l=Object(o.default)(t),c=a(s,l),p=Math.abs(Object(r.default)(s,l));if(p<1)n=0;else{1===s.getMonth()&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-c*p);var d=a(s,l)===-c;u(Object(o.default)(e))&&1===p&&1===a(e,l)&&(d=!1),n=c*(p-Number(d))}return 0===n?0:n}n.d(t,"a",(function(){return c}))}]]);
3//# sourceMappingURL=2.99d63403.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.