@hpcc-js/dgrid2 2.1.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,o){"use strict";var n=function(e,o){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])},n(e,o)};function t(e,o,n,t){var r,l=arguments.length,i=l<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,n,t);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(l<3?r(i):l>3?r(o,n,i):r(o,n))||i);return l>3&&i&&Object.defineProperty(o,n,i),i}function r(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function l(e,o,n){if(n||2===arguments.length)for(var t,r=0,l=o.length;r<l;r++)!t&&r in o||(t||(t=Array.prototype.slice.call(o,0,r)),t[r]=o[r]);return e.concat(t||Array.prototype.slice.call(o))}var i,c,a,u,s,d,f,_={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(e,o){for(var n in o)e[n]=o[n];return e}function g(e){var o=e.parentNode;o&&o.removeChild(e)}function w(e,o,n){var t,r,l,c={};for(l in o)"key"==l?t=o[l]:"ref"==l?r=o[l]:c[l]=o[l];if(arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===c[l]&&(c[l]=e.defaultProps[l]);return y(e,c,t,r,null)}function y(e,o,n,t,r){var l={type:e,props:o,key:n,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++a:r};return null==r&&null!=c.vnode&&c.vnode(l),l}function m(e){return e.children}function x(e,o){this.props=e,this.context=o}function b(e,o){if(null==o)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;o<e.__k.length;o++)if(null!=(n=e.__k[o])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function C(e){var o,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,o=0;o<e.__k.length;o++)if(null!=(n=e.__k[o])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return C(e)}}function k(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!R.__r++||d!==c.debounceRendering)&&((d=c.debounceRendering)||s)(R)}function R(){for(var e;R.__r=u.length;)e=u.sort((function(e,o){return e.__v.__b-o.__v.__b})),u=[],e.some((function(e){var o,n,t,r,l,i;e.__d&&(l=(r=(o=e).__v).__e,(i=o.__P)&&(n=[],(t=v({},r)).__v=r.__v+1,D(i,r,t,o.__n,void 0!==i.ownerSVGElement,null!=r.__h?[l]:null,n,null==l?b(r):l,r.__h),A(n,r),r.__e!=l&&C(r)))}))}function I(e,o,n,t,r,l,i,c,a,u){var s,d,f,h,v,g,w,x=t&&t.__k||p,C=x.length;for(n.__k=[],s=0;s<o.length;s++)if(null!=(h=n.__k[s]=null==(h=o[s])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?y(null,h,null,null,h):Array.isArray(h)?y(m,{children:h},null,null,null):h.__b>0?y(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=x[s])||f&&h.key==f.key&&h.type===f.type)x[s]=void 0;else for(d=0;d<C;d++){if((f=x[d])&&h.key==f.key&&h.type===f.type){x[d]=void 0;break}f=null}D(e,h,f=f||_,r,l,i,c,a,u),v=h.__e,(d=h.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,h),w.push(d,h.__c||v,h)),null!=v?(null==g&&(g=v),"function"==typeof h.type&&h.__k===f.__k?h.__d=a=S(h,a,e):a=z(e,h,f,x,v,a),"function"==typeof n.type&&(n.__d=a)):a&&f.__e==a&&a.parentNode!=e&&(a=b(f))}for(n.__e=g,s=C;s--;)null!=x[s]&&("function"==typeof n.type&&null!=x[s].__e&&x[s].__e==n.__d&&(n.__d=b(t,s+1)),L(x[s],x[s]));if(w)for(s=0;s<w.length;s++)F(w[s],w[++s],w[++s])}function S(e,o,n){for(var t,r=e.__k,l=0;r&&l<r.length;l++)(t=r[l])&&(t.__=e,o="function"==typeof t.type?S(t,o,n):z(n,t,t,r,t.__e,o));return o}function E(e,o){return o=o||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){E(e,o)})):o.push(e)),o}function z(e,o,n,t,r,l){var i,c,a;if(void 0!==o.__d)i=o.__d,o.__d=void 0;else if(null==n||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),i=null;else{for(c=l,a=0;(c=c.nextSibling)&&a<t.length;a+=2)if(c==r)break e;e.insertBefore(r,l),i=l}return void 0!==i?i:r.nextSibling}function T(e,o,n){"-"===o[0]?e.setProperty(o,n):e[o]=null==n?"":"number"!=typeof n||h.test(o)?n:n+"px"}function O(e,o,n,t,r){var l;e:if("style"===o)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof t&&(e.style.cssText=t=""),t)for(o in t)n&&o in n||T(e.style,o,"");if(n)for(o in n)t&&n[o]===t[o]||T(e.style,o,n[o])}else if("o"===o[0]&&"n"===o[1])l=o!==(o=o.replace(/Capture$/,"")),o=o.toLowerCase()in e?o.toLowerCase().slice(2):o.slice(2),e.l||(e.l={}),e.l[o+l]=n,n?t||e.addEventListener(o,l?N:P,l):e.removeEventListener(o,l?N:P,l);else if("dangerouslySetInnerHTML"!==o){if(r)o=o.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==o&&"list"!==o&&"form"!==o&&"tabIndex"!==o&&"download"!==o&&o in e)try{e[o]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===o[0]&&"r"===o[1])?e.setAttribute(o,n):e.removeAttribute(o))}}function P(e){this.l[e.type+!1](c.event?c.event(e):e)}function N(e){this.l[e.type+!0](c.event?c.event(e):e)}function D(e,o,n,t,r,l,i,a,u){var s,d,f,_,p,h,g,w,y,b,C,k=o.type;if(void 0!==o.constructor)return null;null!=n.__h&&(u=n.__h,a=o.__e=n.__e,o.__h=null,l=[a]),(s=c.__b)&&s(o);try{e:if("function"==typeof k){if(w=o.props,y=(s=k.contextType)&&t[s.__c],b=s?y?y.props.value:s.__:t,n.__c?g=(d=o.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?o.__c=d=new k(w,b):(o.__c=d=new x(w,b),d.constructor=k,d.render=M),y&&y.sub(d),d.props=w,d.state||(d.state={}),d.context=b,d.__n=t,f=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=v({},d.__s)),v(d.__s,k.getDerivedStateFromProps(w,d.__s))),_=d.props,p=d.state,f)null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==k.getDerivedStateFromProps&&w!==_&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(w,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(w,d.__s,b)||o.__v===n.__v){d.props=w,d.state=d.__s,o.__v!==n.__v&&(d.__d=!1),d.__v=o,o.__e=n.__e,o.__k=n.__k,o.__k.forEach((function(e){e&&(e.__=o)})),d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(w,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(_,p,h)}))}d.context=b,d.props=w,d.state=d.__s,(s=c.__r)&&s(o),d.__d=!1,d.__v=o,d.__P=e,s=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(t=v(v({},t),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(h=d.getSnapshotBeforeUpdate(_,p)),C=null!=s&&s.type===m&&null==s.key?s.props.children:s,I(e,Array.isArray(C)?C:[C],o,n,t,r,l,i,a,u),d.base=o.__e,o.__h=null,d.__h.length&&i.push(d),g&&(d.__E=d.__=null),d.__e=!1}else null==l&&o.__v===n.__v?(o.__k=n.__k,o.__e=n.__e):o.__e=H(n.__e,o,n,t,r,l,i,u);(s=c.diffed)&&s(o)}catch(e){o.__v=null,(u||null!=l)&&(o.__e=a,o.__h=!!u,l[l.indexOf(a)]=null),c.__e(e,o,n)}}function A(e,o){c.__c&&c.__c(o,e),e.some((function(o){try{e=o.__h,o.__h=[],e.some((function(e){e.call(o)}))}catch(e){c.__e(e,o.__v)}}))}function H(e,o,n,t,r,l,c,a){var u,s,d,f=n.props,p=o.props,h=o.type,v=0;if("svg"===h&&(r=!0),null!=l)for(;v<l.length;v++)if((u=l[v])&&"setAttribute"in u==!!h&&(h?u.localName===h:3===u.nodeType)){e=u,l[v]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),l=null,a=!1}if(null===h)f===p||a&&e.data===p||(e.data=p);else{if(l=l&&i.call(e.childNodes),s=(f=n.props||_).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!a){if(null!=l)for(f={},v=0;v<e.attributes.length;v++)f[e.attributes[v].name]=e.attributes[v].value;(d||s)&&(d&&(s&&d.__html==s.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,o,n,t,r){var l;for(l in n)"children"===l||"key"===l||l in o||O(e,l,null,n[l],t);for(l in o)r&&"function"!=typeof o[l]||"children"===l||"key"===l||"value"===l||"checked"===l||n[l]===o[l]||O(e,l,o[l],n[l],t)}(e,p,f,r,a),d)o.__k=[];else if(v=o.props.children,I(e,Array.isArray(v)?v:[v],o,n,t,r&&"foreignObject"!==h,l,c,l?l[0]:n.__k&&b(n,0),a),null!=l)for(v=l.length;v--;)null!=l[v]&&g(l[v]);a||("value"in p&&void 0!==(v=p.value)&&(v!==e.value||"progress"===h&&!v||"option"===h&&v!==f.value)&&O(e,"value",v,f.value,!1),"checked"in p&&void 0!==(v=p.checked)&&v!==e.checked&&O(e,"checked",v,f.checked,!1))}return e}function F(e,o,n){try{"function"==typeof e?e(o):e.current=o}catch(e){c.__e(e,n)}}function L(e,o,n){var t,r;if(c.unmount&&c.unmount(e),(t=e.ref)&&(t.current&&t.current!==e.__e||F(t,null,o)),null!=(t=e.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(e){c.__e(e,o)}t.base=t.__P=null}if(t=e.__k)for(r=0;r<t.length;r++)t[r]&&L(t[r],o,"function"!=typeof e.type);n||null==e.__e||g(e.__e),e.__e=e.__d=void 0}function M(e,o,n){return this.constructor(e,n)}function G(e,o,n){var t,r,l;c.__&&c.__(e,o),r=(t="function"==typeof n)?null:n&&n.__k||o.__k,l=[],D(o,e=(!t&&n||o).__k=w(m,null,[e]),r||_,_,void 0!==o.ownerSVGElement,!t&&n?[n]:r?null:o.firstChild?i.call(o.childNodes):null,l,!t&&n?n:r?r.__e:o.firstChild,t),A(l,e)}function W(e,o){var n={__c:o="__cC"+f++,__:e,Consumer:function(e,o){return e.children(o)},Provider:function(e){var n,t;return this.getChildContext||(n=[],(t={})[o]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(k)},this.sub=function(e){n.push(e);var o=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),o&&o.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=p.slice,c={__e:function(e,o,n,t){for(var r,l,i;o=o.__;)if((r=o.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,t||{}),i=r.__d),i)return r.__E=r}catch(o){e=o}throw e}},a=0,x.prototype.setState=function(e,o){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(o&&this.__h.push(o),k(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},x.prototype.render=m,u=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R.__r=0,f=0;var K,U,j,B=0,$=[],V=c.__b,q=c.__r,J=c.diffed,X=c.__c,Y=c.unmount;function Z(e,o){c.__h&&c.__h(U,e,B||o),B=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Q(e){return B=1,function(e,o,n){var t=Z(K++,2);return t.t=e,t.__c||(t.__=[n?n(o):de(void 0,o),function(e){var o=t.t(t.__[0],e);t.__[0]!==o&&(t.__=[o,t.__[1]],t.__c.setState({}))}],t.__c=U),t.__}(de,e)}function ee(e,o){var n=Z(K++,3);!c.__s&&se(n.__H,o)&&(n.__=e,n.__H=o,U.__H.__h.push(n))}function oe(e,o){var n=Z(K++,4);!c.__s&&se(n.__H,o)&&(n.__=e,n.__H=o,U.__h.push(n))}function ne(e){return B=5,te((function(){return{current:e}}),[])}function te(e,o){var n=Z(K++,7);return se(n.__H,o)&&(n.__=e(),n.__H=o,n.__h=e),n.__}function re(e,o){return B=8,te((function(){return e}),o)}function le(e){var o=U.context[e.__c],n=Z(K++,9);return n.c=e,o?(null==n.__&&(n.__=!0,o.sub(U)),o.props.value):e.__}function ie(){for(var e;e=$.shift();)if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(o){e.__H.__h=[],c.__e(o,e.__v)}}c.__b=function(e){U=null,V&&V(e)},c.__r=function(e){q&&q(e),K=0;var o=(U=e.__c).__H;o&&(o.__h.forEach(ae),o.__h.forEach(ue),o.__h=[])},c.diffed=function(e){J&&J(e);var o=e.__c;o&&o.__H&&o.__H.__h.length&&(1!==$.push(o)&&j===c.requestAnimationFrame||((j=c.requestAnimationFrame)||function(e){var o,n=function(){clearTimeout(t),ce&&cancelAnimationFrame(o),setTimeout(e)},t=setTimeout(n,100);ce&&(o=requestAnimationFrame(n))})(ie)),U=null},c.__c=function(e,o){o.some((function(e){try{e.__h.forEach(ae),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(n){o.some((function(e){e.__h&&(e.__h=[])})),o=[],c.__e(n,e.__v)}})),X&&X(e,o)},c.unmount=function(e){Y&&Y(e);var o,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ae(e)}catch(e){o=e}})),o&&c.__e(o,n.__v))};var ce="function"==typeof requestAnimationFrame;function ae(e){var o=U,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),U=o}function ue(e){var o=U;e.__c=e.__(),U=o}function se(e,o){return!e||e.length!==o.length||o.some((function(o,n){return o!==e[n]}))}function de(e,o){return"function"==typeof o?o(e):o}function fe(e,o){for(var n in o)e[n]=o[n];return e}function _e(e,o){for(var n in e)if("__source"!==n&&!(n in o))return!0;for(var t in o)if("__source"!==t&&e[t]!==o[t])return!0;return!1}function pe(e){this.props=e}function he(e,o){function n(e){var n=this.props.ref,t=n==e.ref;return!t&&n&&(n.call?n(null):n.current=null),o?!o(this.props,e)||!t:_e(this.props,e)}function t(o){return this.shouldComponentUpdate=n,w(e,o)}return t.displayName="Memo("+(e.displayName||e.name)+")",t.prototype.isReactComponent=!0,t.__f=!0,t}(pe.prototype=new x).isPureReactComponent=!0,pe.prototype.shouldComponentUpdate=function(e,o){return _e(this.props,e)||_e(this.state,o)};var ve=c.__b;c.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)};var ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function we(e){function o(o){var n=fe({},o);return delete n.ref,e(n,o.ref||null)}return o.$$typeof=ge,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName="ForwardRef("+(e.displayName||e.name)+")",o}var ye=c.__e;c.__e=function(e,o,n,t){if(e.then)for(var r,l=o;l=l.__;)if((r=l.__c)&&r.__c)return null==o.__e&&(o.__e=n.__e,o.__k=n.__k),r.__c(e,o);ye(e,o,n,t)};var me=c.unmount;function xe(){this.__u=0,this.t=null,this.__b=null}function be(e){var o=e.__.__c;return o&&o.__e&&o.__e(e)}function Ce(){this.u=null,this.o=null}c.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&!0===e.__h&&(e.type=null),me&&me(e)},(xe.prototype=new x).__c=function(e,o){var n=o.__c,t=this;null==t.t&&(t.t=[]),t.t.push(n);var r=be(t.__v),l=!1,i=function(){l||(l=!0,n.__R=null,r?r(c):c())};n.__R=i;var c=function(){if(!--t.__u){if(t.state.__e){var e=t.state.__e;t.__v.__k[0]=function e(o,n,t){return o&&(o.__v=null,o.__k=o.__k&&o.__k.map((function(o){return e(o,n,t)})),o.__c&&o.__c.__P===n&&(o.__e&&t.insertBefore(o.__e,o.__d),o.__c.__e=!0,o.__c.__P=t)),o}(e,e.__c.__P,e.__c.__O)}var o;for(t.setState({__e:t.__b=null});o=t.t.pop();)o.forceUpdate()}},a=!0===o.__h;t.__u++||a||t.setState({__e:t.__b=t.__v.__k[0]}),e.then(i,i)},xe.prototype.componentWillUnmount=function(){this.t=[]},xe.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),t=this.__v.__k[0].__c;this.__v.__k[0]=function e(o,n,t){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),o.__c.__H=null),null!=(o=fe({},o)).__c&&(o.__c.__P===t&&(o.__c.__P=n),o.__c=null),o.__k=o.__k&&o.__k.map((function(o){return e(o,n,t)}))),o}(this.__b,n,t.__O=t.__P)}this.__b=null}var r=o.__e&&w(m,null,e.fallback);return r&&(r.__h=null),[w(m,null,o.__e?null:e.children),r]};var ke=function(e,o,n){if(++n[1]===n[0]&&e.o.delete(o),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Re(e){return this.getChildContext=function(){return e.context},e.children}function Ie(e){var o=this,n=e.i;o.componentWillUnmount=function(){G(null,o.l),o.l=null,o.i=null},o.i&&o.i!==n&&o.componentWillUnmount(),e.__v?(o.l||(o.i=n,o.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),o.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),o.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),o.i.removeChild(e)}}),G(w(Re,{context:o.context},e.__v),o.l)):o.l&&o.componentWillUnmount()}function Se(e,o){return w(Ie,{__v:e,i:o})}(Ce.prototype=new x).__e=function(e){var o=this,n=be(o.__v),t=o.o.get(e);return t[0]++,function(r){var l=function(){o.props.revealOrder?(t.push(r),ke(o,e,t)):r()};n?n(l):l()}},Ce.prototype.render=function(e){this.u=null,this.o=new Map;var o=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&o.reverse();for(var n=o.length;n--;)this.o.set(o[n],this.u=[1,0,this.u]);return e.children},Ce.prototype.componentDidUpdate=Ce.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(o,n){ke(e,n,o)}))};var Ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Te="undefined"!=typeof document,Oe=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}));var Pe=c.event;function Ne(){}function De(){return this.cancelBubble}function Ae(){return this.defaultPrevented}c.event=function(e){return Pe&&(e=Pe(e)),e.persist=Ne,e.isPropagationStopped=De,e.isDefaultPrevented=Ae,e.nativeEvent=e};var He={configurable:!0,get:function(){return this.class}},Fe=c.vnode;c.vnode=function(e){var o=e.type,n=e.props,t=n;if("string"==typeof o){var r=-1===o.indexOf("-");for(var l in t={},n){var i=n[l];Te&&"children"===l&&"noscript"===o||"value"===l&&"defaultValue"in n&&null==i||("defaultValue"===l&&"value"in n&&null==n.value?l="value":"download"===l&&!0===i?i="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+o)&&!Oe(n.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&ze.test(l)?l=l.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),t[l]=i)}"select"==o&&t.multiple&&Array.isArray(t.value)&&(t.value=E(n.children).forEach((function(e){e.props.selected=-1!=t.value.indexOf(e.props.value)}))),"select"==o&&null!=t.defaultValue&&(t.value=E(n.children).forEach((function(e){e.props.selected=t.multiple?-1!=t.defaultValue.indexOf(e.props.value):t.defaultValue==e.props.value}))),e.props=t,n.class!=n.className&&(He.enumerable="className"in n,null!=n.className&&(t.class=n.className),Object.defineProperty(t,"className",He))}e.$$typeof=Ee,Fe&&Fe(e)};var Le=c.__r;function Me(e){var o,n,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(n=Me(e[o]))&&(t&&(t+=" "),t+=n);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function Ge(){for(var e,o,n=0,t="";n<arguments.length;)(e=arguments[n++])&&(o=Me(e))&&(t&&(t+=" "),t+=o);return t}c.__r=function(e){Le&&Le(e)};var We=0;function Ke(e,o,n,t,r){var l,i,a={};for(i in o)"ref"==i?l=o[i]:a[i]=o[i];var u={type:e,props:a,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--We,__source:r,__self:t};if("function"==typeof e&&(l=e.defaultProps))for(i in l)void 0===a[i]&&(a[i]=l[i]);return c.vnode&&c.vnode(u),u}function Ue(e,o){void 0===o&&(o={});var n=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}Ue(".c1wupbe700-canary49{contain:strict;contain:size layout style paint;padding:0 8px;border-right:1px solid var(--border-color);border-bottom:1px solid var(--border-color);background-color:inherit;white-space:nowrap;overflow:hidden;overflow:clip;text-overflow:ellipsis}.c1wupbe700-canary49[aria-selected=true]{box-shadow:inset 0 0 0 2px var(--selection-color)}.cd0kgiy700-canary49{position:sticky;z-index:1}.c1730fa4700-canary49{box-shadow:2px 0 5px -2px hsla(0,0%,53.3%,.3)}");Ue(".r104f42s700-canary49{--color:#000;--border-color:#ddd;--summary-border-color:#aaa;--background-color:hsl(0deg 0% 100%);--header-background-color:hsl(0deg 0% 97.5%);--row-hover-background-color:hsl(0deg 0% 96%);--row-selected-background-color:hsl(207deg 76% 92%);--row-selected-hover-background-color:hsl(207deg 76% 88%);--checkbox-color:hsl(207deg 100% 29%);--checkbox-focus-color:hsl(207deg 100% 69%);--checkbox-disabled-border-color:#ccc;--checkbox-disabled-background-color:#ddd;--selection-color:#66afe9;--font-size:14px;contain:strict;contain:size layout style paint;content-visibility:auto;height:350px;border:1px solid var(--border-color);box-sizing:border-box;overflow:auto;user-select:none;background-color:var(--background-color);color:var(--color);font-size:var(--font-size)}@supports not (contain:strict){.r104f42s700-canary49{position:relative;z-index:0}}.r104f42s700-canary49 *,.r104f42s700-canary49 :after,.r104f42s700-canary49 :before{box-sizing:inherit}.r104f42s700-canary49.rdg-dark{--color:#ddd;--border-color:#444;--summary-border-color:#555;--background-color:hsl(0deg 0% 13%);--header-background-color:hsl(0deg 0% 10.5%);--row-hover-background-color:hsl(0deg 0% 9%);--row-selected-background-color:hsl(207deg 76% 42%);--row-selected-hover-background-color:hsl(207deg 76% 38%);--checkbox-color:hsl(207deg 100% 79%);--checkbox-focus-color:hsl(207deg 100% 89%);--checkbox-disabled-border-color:#000;--checkbox-disabled-background-color:#333}@media (prefers-color-scheme:dark){.r104f42s700-canary49:not(.rdg-light){--color:#ddd;--border-color:#444;--summary-border-color:#555;--background-color:hsl(0deg 0% 13%);--header-background-color:hsl(0deg 0% 10.5%);--row-hover-background-color:hsl(0deg 0% 9%);--row-selected-background-color:hsl(207deg 76% 42%);--row-selected-hover-background-color:hsl(207deg 76% 38%);--checkbox-color:hsl(207deg 100% 79%);--checkbox-focus-color:hsl(207deg 100% 89%);--checkbox-disabled-border-color:#000;--checkbox-disabled-background-color:#333}}.f7ly7s700-canary49{position:sticky;top:0;left:0;height:0;width:0;outline:0}.vc4f4zb700-canary49.r1otpg64700-canary49{cursor:move}");Ue('.g1cvx5us700-canary49:not([aria-selected=true]){background-color:var(--header-background-color)}.g1cvx5us700-canary49>.c1wupbe700-canary49:not(:last-child):not(.c1730fa4700-canary49){border-right:none}.g1j2w62i700-canary49:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 0 2px var(--selection-color);pointer-events:none;z-index:2}.g1j2w62i700-canary49>.c1wupbe700-canary49:first-child{box-shadow:inset 2px 0 0 0 var(--selection-color)}');const je="rdg-group-row-selected g1j2w62i700-canary49";Ue(".h1fquj5h700-canary49{contain:strict;contain:size layout style paint;display:grid;grid-template-columns:var(--template-columns);grid-template-rows:var(--header-row-height);height:var(--header-row-height);line-height:var(--header-row-height);width:var(--row-width);position:sticky;top:0;background-color:var(--header-background-color);font-weight:700;z-index:3;touch-action:none}");Ue(".r1otpg64700-canary49{contain:strict;contain:size layout style paint;display:grid;grid-template-rows:var(--row-height);grid-template-columns:var(--template-columns);position:absolute;left:0;width:var(--row-width);height:var(--row-height);line-height:var(--row-height);background-color:var(--background-color)}.r1otpg64700-canary49:hover{background-color:var(--row-hover-background-color)}.r1otpg64700-canary49[aria-selected=true]{background-color:var(--row-selected-background-color)}.r1otpg64700-canary49[aria-selected=true]:hover{background-color:var(--row-selected-hover-background-color)}.sel5gk2700-canary49{position:sticky;z-index:3;grid-template-rows:var(--summary-row-height);height:var(--summary-row-height);line-height:var(--summary-row-height)}.sel5gk2700-canary49>.c1wupbe700-canary49{border-top:2px solid var(--summary-border-color)}");const Be="rdg-row r1otpg64700-canary49";function $e(e){const o=ne(null);return oe((()=>{var n;e&&(null==(n=o.current)||n.focus({preventScroll:!0}))}),[e]),o}Ue('.c1w6d5eo700-canary49{cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;margin-right:1px}.c1h7iz8d700-canary49{all:unset;width:0;margin:0}.cc79ydj700-canary49{content:"";width:20px;height:20px;border:2px solid var(--border-color);background-color:var(--background-color)}.c1h7iz8d700-canary49:checked+.cc79ydj700-canary49{background-color:var(--checkbox-color);box-shadow:inset 0 0 0 4px var(--background-color)}.c1h7iz8d700-canary49:focus+.cc79ydj700-canary49{border-color:var(--checkbox-focus-color)}.c1e5jt0b700-canary49{cursor:default}.c1e5jt0b700-canary49 .cc79ydj700-canary49{border-color:var(--checkbox-disabled-border-color);background-color:var(--checkbox-disabled-background-color)}');function Ve({value:e,tabIndex:o,isCellSelected:n,disabled:t,onClick:r,onChange:l,"aria-label":i,"aria-labelledby":c}){const a=$e(n);return Ke("label",{className:Ge("rdg-checkbox-label c1w6d5eo700-canary49",t&&"rdg-checkbox-label-disabled c1e5jt0b700-canary49"),children:[Ke("input",{"aria-label":i,"aria-labelledby":c,tabIndex:o,ref:a,type:"checkbox",className:"rdg-checkbox-input c1h7iz8d700-canary49",disabled:t,checked:e,onChange:function(e){l(e.target.checked,e.nativeEvent.shiftKey)},onClick:r}),Ke("div",{className:"rdg-checkbox cc79ydj700-canary49"})]})}function qe(e){try{return Ke(m,{children:e.row[e.column.key]})}catch{return null}}Ue(".gch972y700-canary49{outline:none}.cz2qf0d700-canary49{margin-left:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cz2qf0d700-canary49>path{transition:d .1s}");function Je({groupKey:e,isExpanded:o,isCellSelected:n,toggleGroup:t}){return Ke("span",{ref:$e(n),className:"rdg-group-cell-content gch972y700-canary49",tabIndex:-1,onKeyDown:function({key:e}){"Enter"===e&&t()},children:[e,Ke("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:"rdg-caret cz2qf0d700-canary49",children:Ke("path",{d:o?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}function Xe(e,o,n){const t="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(t)&&t>1&&(!e.frozen||e.idx+t-1<=o))return t}function Ye(e){e.stopPropagation()}const Ze=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function Qe(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function eo({key:e,target:o}){return"Tab"===e&&(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)&&o.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child")}function oo({selectedPosition:e,columns:o,rows:n,isGroupRow:t}){const r=o[e.idx],l=n[e.rowIdx];return!t(l)&&no(r,l)}function no(e,o){return null!=e.editor&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(o):e.editable)}const{min:to,max:ro,floor:lo,ceil:io,sign:co}=Math;function ao(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function uo(e,o){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==o?`span ${o}`:void 0,left:e.frozen?`var(--frozen-left-${e.key})`:void 0}}function so(e,...o){return Ge("rdg-cell c1wupbe700-canary49",...o,e.frozen&&"rdg-cell-frozen cd0kgiy700-canary49",e.isLastFrozenColumn&&"rdg-cell-frozen-last c1730fa4700-canary49")}const fo="select-row";const _o={key:fo,name:"",width:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>Ke(Ve,{"aria-label":"Select All",isCellSelected:!1,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:function(e){const[o,n]=xo();return Ke(Ve,{"aria-label":"Select",tabIndex:-1,isCellSelected:e.isCellSelected,value:o,onClick:Ye,onChange:(o,t)=>{n({rowIdx:e.rowIdx,checked:o,isShiftClick:t})}})},groupFormatter:function(e){const[o,n]=xo();return Ke(Ve,{"aria-label":"Select Group",tabIndex:-1,isCellSelected:e.isCellSelected,value:o,onChange:o=>{n({checked:o,isShiftClick:!1,rowIdx:e.rowIdx})},onClick:Ye})}};function po({key:e,width:o},n,t){return n.has(e)?n.get(e):"number"==typeof o?o:"string"==typeof o&&/^\d+%$/.test(o)?lo(t*parseInt(o,10)/100):void 0}function ho(e,{minWidth:o,maxWidth:n},t){return e=ro(e,null!=o?o:t),"number"==typeof n?to(e,n):e}function vo(e){const o=ne(e);return ee((()=>{o.current=e})),re(((...e)=>{o.current(...e)}),[])}const go=W(void 0),wo=go.Provider,yo=W(void 0),mo=yo.Provider;function xo(){const e=le(go),o=le(yo);if(void 0===e||void 0===o)throw new Error("useRowSelection must be used within DataGrid cells");return[e,o]}function bo({rawRows:e,rowHeight:o,clientHeight:n,scrollTop:t,groupBy:r,rowGrouper:l,expandedGroupIds:i,enableVirtualization:c}){const[a,u]=te((()=>{if(0===r.length||null==l)return[void 0,e.length];const o=(e,[n,...t],r)=>{let i=0;const c={};for(const[a,u]of Object.entries(l(e,n))){const[e,n]=0===t.length?[u,u.length]:o(u,t,r+i+1);c[a]={childRows:u,childGroups:e,startRowIndex:r+i},i+=n+1}return[c,i]};return o(e,r,0)}),[r,l,e]),[s,d]=te((()=>{const o=new Set;if(!a)return[e,r];const n=[],t=(e,r,l)=>{var c;(c=e,Array.isArray(c))?n.push(...e):Object.keys(e).forEach(((c,a,u)=>{var s;const d=void 0!==r?`${r}__${c}`:c,f=null!=(s=null==i?void 0:i.has(d))&&s,{childRows:_,childGroups:p,startRowIndex:h}=e[c],v={id:d,parentId:r,groupKey:c,isExpanded:f,childRows:_,level:l,posInSet:a,startRowIndex:h,setSize:u.length};n.push(v),o.add(v),f&&t(p,d,l+1)}))};return t(a,void 0,0),[n,r];function r(e){return o.has(e)}}),[i,a,e]),{totalRowHeight:f,getRowTop:_,getRowHeight:p,findRowIdx:h}=te((()=>{if("number"==typeof o)return{totalRowHeight:o*s.length,getRowTop:e=>e*o,getRowHeight:()=>o,findRowIdx:e=>lo(e/o)};let e=0;const n=s.map((n=>{const t=d(n)?o({type:"GROUP",row:n}):o({type:"ROW",row:n}),r={top:e,height:t};return e+=t,r})),t=e=>ro(0,to(s.length-1,e));return{totalRowHeight:e,getRowTop:e=>n[t(e)].top,getRowHeight:e=>n[t(e)].height,findRowIdx(e){let o=0,t=n.length-1;for(;o<=t;){const r=o+lo((t-o)/2),l=n[r].top;if(l===e)return r;if(l<e?o=r+1:l>e&&(t=r-1),o>t)return t}return 0}}}),[d,o,s]);if(!c)return{rowOverscanStartIdx:0,rowOverscanEndIdx:s.length-1,rows:s,rowsCount:u,totalRowHeight:f,isGroupRow:d,getRowTop:_,getRowHeight:p,findRowIdx:h};const v=h(t),g=to(s.length-1,h(t+n));return{rowOverscanStartIdx:ro(0,8*lo((v-4)/8)),rowOverscanEndIdx:to(s.length-1,8*io((g+4)/8)),rows:s,rowsCount:u,totalRowHeight:f,isGroupRow:d,getRowTop:_,getRowHeight:p,findRowIdx:h}}Ue(".h13yq3r8700-canary49{cursor:pointer;display:flex}.ht6rdyl700-canary49{flex-grow:1;overflow:hidden;overflow:clip;text-overflow:ellipsis}");function Co({onSort:e,sortDirection:o,priority:n,children:t}){let r="";return"ASC"===o?r="▲":"DESC"===o&&(r="▼"),Ke("span",{className:"rdg-header-sort-cell h13yq3r8700-canary49",onClick:o=>e(o.ctrlKey),children:[Ke("span",{className:"rdg-header-sort-name ht6rdyl700-canary49",children:t}),Ke("span",{children:[r,n]})]})}Ue('.celq7o9700-canary49:after{content:"";cursor:col-resize;position:absolute;top:0;right:0;bottom:0;width:10px}');function ko({column:e,colSpan:o,onResize:n,allRowsSelected:t,onAllRowsSelectionChange:r,sortColumns:l,onSortColumnsChange:i}){const c=null==l?void 0:l.findIndex((o=>o.columnKey===e.key)),a=void 0!==c&&c>-1?l[c]:void 0,u=null==a?void 0:a.direction,s=void 0!==a&&l.length>1?c+1:void 0,d=u&&!s?"ASC"===u?"ascending":"descending":void 0,f=o=>{if(null==i)return;const{sortDescendingFirst:n}=e;if(void 0===a){const t={columnKey:e.key,direction:n?"DESC":"ASC"};i(l&&o?[...l,t]:[t])}else{let t;if((n&&"DESC"===u||!n&&"ASC"===u)&&(t={columnKey:e.key,direction:"ASC"===u?"DESC":"ASC"}),o){const e=[...l];t?e[c]=t:e.splice(c,1),i(e)}else i(t?[t]:[])}};const _=so(e,e.headerCellClass,e.resizable&&"rdg-cell-resizable celq7o9700-canary49");return Ke("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-sort":d,"aria-colspan":o,className:_,style:uo(e,o),onPointerDown:e.resizable?function(o){if("mouse"===o.pointerType&&1!==o.buttons)return;const{currentTarget:t,pointerId:r}=o,{right:l}=t.getBoundingClientRect(),i=l-o.clientX;function c(o){if(o.pointerId!==r)return;if("mouse"===o.pointerType&&1!==o.buttons)return void a(o);const l=o.clientX+i-t.getBoundingClientRect().left;l>0&&n(e,l)}function a(e){e.pointerId===r&&(window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",a))}i>11||(o.preventDefault(),window.addEventListener("pointermove",c),window.addEventListener("pointerup",a))}:void 0,children:e.headerRenderer?Ke(e.headerRenderer,{column:e,sortDirection:u,priority:s,onSort:f,allRowsSelected:t,onAllRowsSelectionChange:r}):e.sortable?Ke(Co,{onSort:f,sortDirection:u,priority:s,children:e.name}):e.name})}function Ro({columns:e,rows:o,rowKeyGetter:n,onSelectedRowsChange:t,allRowsSelected:r,onColumnResize:l,sortColumns:i,onSortColumnsChange:c,lastFrozenColumnIndex:a}){const u=re((e=>{if(!t)return;ao(n);const r=new Set(e?o.map(n):void 0);t(r)}),[t,o,n]),s=[];for(let o=0;o<e.length;o++){const n=e[o],t=Xe(n,a,{type:"HEADER"});void 0!==t&&(o+=t-1),s.push(Ke(ko,{column:n,colSpan:t,onResize:l,allRowsSelected:r,onAllRowsSelectionChange:u,onSortColumnsChange:c,sortColumns:i},n.key))}return Ke("div",{role:"row","aria-rowindex":1,className:"rdg-header-row h1fquj5h700-canary49",children:s})}const Io=he(Ro);Ue(".c1bmg16t700-canary49,.ccpfvsn700-canary49{background-color:#ccf}.c1bmg16t700-canary49.ccpfvsn700-canary49{background-color:#99f}.c12t67zz700-canary49{cursor:move;position:absolute;right:0;bottom:0;width:8px;height:8px;background-color:var(--selection-color)}.c12t67zz700-canary49:hover{width:16px;height:16px;border:2px solid var(--selection-color);background-color:var(--background-color)}");function So({className:e,column:o,colSpan:n,isCellSelected:t,isCopied:r,isDraggedOver:l,row:i,rowIdx:c,dragHandleProps:a,onRowClick:u,onClick:s,onDoubleClick:d,onContextMenu:f,onRowChange:_,selectCell:p,...h},v){const{cellClass:g}=o;function w(e){p({idx:o.idx,rowIdx:c},e)}return e=so(o,"function"==typeof g?g(i):g,e,r&&"rdg-cell-copied ccpfvsn700-canary49",l&&"rdg-cell-dragged-over c1bmg16t700-canary49"),Ke("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":t,"aria-colspan":n,"aria-readonly":!no(o,i)||void 0,ref:v,className:e,style:uo(o,n),onClick:function(e){var n;w(null==(n=o.editorOptions)?void 0:n.editOnClick),null==u||u(c,i,o),null==s||s(e)},onDoubleClick:function(e){w(!0),null==d||d(e)},onContextMenu:function(e){w(),null==f||f(e)},...h,children:!o.rowGroup&&Ke(m,{children:[Ke(o.formatter,{column:o,rowIdx:c,row:i,isCellSelected:t,onRowChange:function(e){_(c,e)}}),a&&Ke("div",{className:"rdg-cell-drag-handle c12t67zz700-canary49",...a})]})})}const Eo=he(we(So));Ue(".c1tngyp1700-canary49{padding:0}");function zo({column:e,colSpan:o,row:n,rowIdx:t,onRowChange:r,onClose:l,onKeyDown:i,editorPortalTarget:c}){const a=ne(),u=vo((()=>{r(n,!0)}));function s(){cancelAnimationFrame(a.current)}ee((()=>{function e(){a.current=requestAnimationFrame(u)}return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),s()}}),[u]);const{cellClass:d}=e,f=so(e,"rdg-editor-container c1tngyp1700-canary49","function"==typeof d?d(n):d);let _;var p;null!=e.editor&&(_=Ke(e.editor,{column:e,row:n,rowIdx:t,onRowChange:r,onClose:l,editorPortalTarget:c}),null!=(p=e.editorOptions)&&p.createPortal&&(_=Se(_,c)));return Ke("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":!0,className:f,style:uo(e,o),onKeyDown:i,onMouseDownCapture:s,children:_})}function To({cellRenderer:e,className:o,rowIdx:n,isRowSelected:t,copiedCellIdx:r,draggedOverCellIdx:l,lastFrozenColumnIndex:i,row:c,viewportColumns:a,selectedCellProps:u,onRowClick:s,rowClass:d,setDraggedOverRowIdx:f,onMouseEnter:_,top:p,height:h,onRowChange:v,selectCell:g,...w},y){o=Ge(Be,"rdg-row-"+(n%2==0?"even":"odd"),null==d?void 0:d(c),o,-1===(null==u?void 0:u.idx)&&je);const m=null!=e?e:Eo,x=[];for(let e=0;e<a.length;e++){const o=a[e],t=Xe(o,i,{type:"ROW",row:c});void 0!==t&&(e+=t-1);const d=(null==u?void 0:u.idx)===o.idx;"EDIT"===(null==u?void 0:u.mode)&&d?x.push(Ke(zo,{rowIdx:n,column:o,colSpan:t,onKeyDown:u.onKeyDown,...u.editorProps},o.key)):x.push(Ke(m,{rowIdx:n,column:o,colSpan:t,row:c,isCopied:r===o.idx,isDraggedOver:l===o.idx,isCellSelected:d,dragHandleProps:d?u.dragHandleProps:void 0,onFocus:d?u.onFocus:void 0,onKeyDown:d?u.onKeyDown:void 0,onRowClick:s,onRowChange:v,selectCell:g},o.key))}return Ke(wo,{value:t,children:Ke("div",{role:"row",ref:y,className:o,onMouseEnter:function(e){null==f||f(n),null==_||_(e)},style:{top:p,"--row-height":`${h}px`},...w,children:x})})}const Oo=he(we(To));function Po({id:e,rowIdx:o,groupKey:n,childRows:t,isExpanded:r,isCellSelected:l,column:i,groupColumnIndex:c,toggleGroup:a}){function u(){a(e)}const s=i.rowGroup&&c===i.idx;return Ke("div",{role:"gridcell","aria-colindex":i.idx+1,className:so(i),style:{...uo(i),cursor:s?"pointer":"default"},onClick:s?u:void 0,children:(!i.rowGroup||c===i.idx)&&i.groupFormatter&&Ke(i.groupFormatter,{rowIdx:o,groupKey:n,childRows:t,column:i,isExpanded:r,isCellSelected:l,toggleGroup:u})},i.key)}const No=he(Po);function Do({id:e,groupKey:o,viewportColumns:n,childRows:t,rowIdx:r,top:l,height:i,level:c,isExpanded:a,selectedCellIdx:u,isRowSelected:s,selectCell:d,toggleGroup:f,..._}){const p=n[0].key===fo?c+1:c;return Ke(wo,{value:s,children:Ke("div",{role:"row","aria-level":c,"aria-expanded":a,className:Ge(Be,"rdg-group-row g1cvx5us700-canary49","rdg-row-"+(r%2==0?"even":"odd"),-1===u&&je),onClick:function(){d({rowIdx:r,idx:-1})},style:{top:l,"--row-height":`${i}px`},..._,children:n.map((n=>Ke(No,{id:e,rowIdx:r,groupKey:o,childRows:t,isExpanded:a,isCellSelected:u===n.idx,column:n,groupColumnIndex:p,toggleGroup:f},n.key)))})})}const Ao=he(Do);function Ho({column:e,colSpan:o,row:n}){const{summaryFormatter:t,summaryCellClass:r}=e,l=so(e,"function"==typeof r?r(n):r);return Ke("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,className:l,style:uo(e,o),children:t&&Ke(t,{column:e,row:n})})}const Fo=he(Ho);function Lo({rowIdx:e,row:o,viewportColumns:n,bottom:t,lastFrozenColumnIndex:r,"aria-rowindex":l}){const i=[];for(let e=0;e<n.length;e++){const t=n[e],l=Xe(t,r,{type:"SUMMARY",row:o});void 0!==l&&(e+=l-1),i.push(Ke(Fo,{column:t,colSpan:l,row:o},t.key))}return Ke("div",{role:"row","aria-rowindex":l,className:`${Be} rdg-row-${e%2==0?"even":"odd"} rdg-summary-row sel5gk2700-canary49`,style:{bottom:t},children:i})}const Mo=he(Lo);var Go;const Wo=null==(Go=globalThis.document)?void 0:Go.body,Ko={idx:-1,rowIdx:-1,mode:"SELECT"};function Uo({columns:e,rows:o,summaryRows:n,rowKeyGetter:t,onRowsChange:r,rowHeight:l,headerRowHeight:i,summaryRowHeight:c,selectedRows:a,onSelectedRowsChange:u,sortColumns:s,onSortColumnsChange:d,defaultColumnOptions:f,groupBy:_,rowGrouper:p,expandedGroupIds:h,onExpandedGroupIdsChange:v,rowRenderer:g,emptyRowsRenderer:w,onRowClick:y,onScroll:x,onColumnResize:b,onSelectedCellChange:C,onFill:k,onPaste:R,cellNavigationMode:I,enableVirtualization:S,editorPortalTarget:E,className:z,style:T,rowClass:O,"aria-label":P,"aria-labelledby":N,"aria-describedby":D},A){var H;null!=l||(l=35);const F=null!=i?i:"number"==typeof l?l:35,L=null!=c?c:"number"==typeof l?l:35,M=null!=g?g:Oo,G=null!=I?I:"NONE";null!=S||(S=!0);const W=null!=E?E:Wo,[K,U]=Q(0),[j,$]=Q(0),[V,q]=Q((()=>new Map)),[J,X]=Q(Ko),[Y,Z]=Q(null),[ee,le]=Q(!1),[ie,ce]=Q(void 0),ae=ne(null),ue=ne(J),se=ne(ie),de=ne(-1),fe=ne(!1),_e=vo((function({rowIdx:e,checked:o,isShiftClick:n}){if(!u)return;ao(t);const r=new Set(a),l=He[e];if(Me(l)){for(const e of l.childRows){const n=t(e);o?r.add(n):r.delete(n)}return void u(r)}const i=t(l);if(o){r.add(i);const o=de.current;if(de.current=e,n&&-1!==o&&o!==e){const n=co(e-o);for(let l=o+n;l!==e;l+=n){const e=He[l];Me(e)||r.add(t(e))}}}else r.delete(i),de.current=-1;u(r)})),pe=vo(Eo),he=vo(io),ve=vo(go),[ge,we,ye]=function(){const e=ne(null),[o,n]=Q(1),[t,r]=Q(1);return oe((()=>{const{ResizeObserver:o}=window;if(null==o)return;const t=new o((()=>{const{clientWidth:o,clientHeight:t}=e.current;n(o-(devicePixelRatio%.5==0?0:1)),r(t)}));return t.observe(e.current),()=>{t.disconnect()}}),[]),[e,o,t]}(),me=null!=(H=null==n?void 0:n.length)?H:0,xe=ye-F-me*L,be=null!=a&&null!=u,Ce=te((()=>{const{length:e}=o;return 0!==e&&null!=a&&null!=t&&a.size>=e&&o.every((e=>a.has(t(e))))}),[o,a,t]),{columns:ke,colSpanColumns:Re,colOverscanStartIdx:Ie,colOverscanEndIdx:Se,layoutCssVars:Ee,columnMetrics:ze,totalColumnWidth:Te,lastFrozenColumnIndex:Oe,totalFrozenColumnWidth:Pe,groupBy:Ne}=function({rawColumns:e,columnWidths:o,viewportWidth:n,scrollLeft:t,defaultColumnOptions:r,rawGroupBy:l,enableVirtualization:i}){var c,a,u,s;const d=null!=(c=null==r?void 0:r.minWidth)?c:80,f=null!=(a=null==r?void 0:r.formatter)?a:qe,_=null!=(u=null==r?void 0:r.sortable)&&u,p=null!=(s=null==r?void 0:r.resizable)&&s,{columns:h,colSpanColumns:v,lastFrozenColumnIndex:g,groupBy:w}=te((()=>{const o=[];let n=-1;const t=e.map((e=>{var o,t,r,i;const c=null!=(o=null==l?void 0:l.includes(e.key))&&o,a=c||e.frozen||!1,u={...e,idx:0,frozen:a,isLastFrozenColumn:!1,rowGroup:c,sortable:null!=(t=e.sortable)?t:_,resizable:null!=(r=e.resizable)?r:p,formatter:null!=(i=e.formatter)?i:f};return c&&(null!=u.groupFormatter||(u.groupFormatter=Je)),a&&n++,u}));t.sort((({key:e,frozen:o},{key:n,frozen:t})=>e===fo?-1:n===fo?1:null!=l&&l.includes(e)?l.includes(n)?l.indexOf(e)-l.indexOf(n):-1:null!=l&&l.includes(n)?1:o?t?0:-1:t?1:0));const r=[];return t.forEach(((e,n)=>{e.idx=n,e.rowGroup&&o.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==n&&(t[n].isLastFrozenColumn=!0),{columns:t,colSpanColumns:r,lastFrozenColumnIndex:n,groupBy:o}}),[e,f,p,_,l]),{layoutCssVars:y,totalColumnWidth:m,totalFrozenColumnWidth:x,columnMetrics:b}=te((()=>{const e=new Map;let t=0,r=0,l=0,i="",c=0,a=0;for(const t of h){let r=po(t,o,n);void 0===r?a++:(r=ho(r,t,d),c+=r,e.set(t,{width:r,left:0}))}const u=(n-c)/a;for(const o of h){let n;if(e.has(o)){const r=e.get(o);r.left=t,({width:n}=r)}else n=ho(u,o,d),e.set(o,{width:n,left:t});r+=n,t+=n,i+=`${n}px `}if(-1!==g){const o=e.get(h[g]);l=o.left+o.width}const s={"--template-columns":i};for(let o=0;o<=g;o++){const n=h[o];s[`--frozen-left-${n.key}`]=`${e.get(n).left}px`}return{layoutCssVars:s,totalColumnWidth:r,totalFrozenColumnWidth:l,columnMetrics:e}}),[o,h,n,d,g]),[C,k]=te((()=>{if(!i)return[0,h.length-1];const e=t+x,o=t+n,r=h.length-1,l=to(g+1,r);if(e>=o)return[l,l];let c=l;for(;c<r;){const{left:o,width:n}=b.get(h[c]);if(o+n>e)break;c++}let a=c;for(;a<r;){const{left:e,width:n}=b.get(h[a]);if(e+n>=o)break;a++}return[ro(l,c-1),to(r,a+1)]}),[b,h,g,t,x,n,i]);return{columns:h,colSpanColumns:v,colOverscanStartIdx:C,colOverscanEndIdx:k,layoutCssVars:y,columnMetrics:b,totalColumnWidth:m,lastFrozenColumnIndex:g,totalFrozenColumnWidth:x,groupBy:w}}({rawColumns:e,columnWidths:V,scrollLeft:j,viewportWidth:we,defaultColumnOptions:f,rawGroupBy:p?_:void 0,enableVirtualization:S}),{rowOverscanStartIdx:De,rowOverscanEndIdx:Ae,rows:He,rowsCount:Fe,totalRowHeight:Le,isGroupRow:Me,getRowTop:We,getRowHeight:Ue,findRowIdx:je}=bo({rawRows:o,groupBy:Ne,rowGrouper:p,rowHeight:l,clientHeight:xe,scrollTop:K,expandedGroupIds:h,enableVirtualization:S}),Be=function({columns:e,colSpanColumns:o,rows:n,summaryRows:t,colOverscanStartIdx:r,colOverscanEndIdx:l,lastFrozenColumnIndex:i,rowOverscanStartIdx:c,rowOverscanEndIdx:a,isGroupRow:u}){const s=te((()=>{if(0===r)return 0;let e=r;const l=(o,n)=>void 0!==n&&o+n>r&&(e=o,!0);for(const r of o){const o=r.idx;if(o>=e)break;if(l(o,Xe(r,i,{type:"HEADER"})))break;for(let e=c;e<=a;e++){const t=n[e];if(!u(t)&&l(o,Xe(r,i,{type:"ROW",row:t})))break}if(null!=t)for(const e of t)if(l(o,Xe(r,i,{type:"SUMMARY",row:e})))break}return e}),[c,a,n,t,r,i,o,u]);return te((()=>{const o=[];for(let n=0;n<=l;n++){const t=e[n];n<s&&!t.frozen||o.push(t)}return o}),[s,l,e])}({columns:ke,colSpanColumns:Re,colOverscanStartIdx:Ie,colOverscanEndIdx:Se,lastFrozenColumnIndex:Oe,rowOverscanStartIdx:De,rowOverscanEndIdx:Ae,rows:He,summaryRows:n,isGroupRow:Me}),$e=Ne.length>0&&"function"==typeof p,Ve=$e?-1:0,Ye=!$e&&null!=k;oe((()=>{J!==ue.current&&"EDIT"!==J.mode&&Ro(J)&&(ue.current=J,To(J),fe.current?fe.current=!1:ae.current.focus({preventScroll:!0}))})),function(e,o,n){B=6,oe((function(){return"function"==typeof e?(e(o()),function(){return e(null)}):e?(e.current=o(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}(A,(()=>({element:ge.current,scrollToColumn(e){To({idx:e})},scrollToRow(e){const{current:o}=ge;o&&o.scrollTo({top:We(e),behavior:"smooth"})},selectCell:Eo})));const no=re(((e,o)=>{q((n=>{const t=new Map(n);return t.set(e.key,o),t})),null==b||b(e.idx,o)}),[b]),lo=re((e=>{ce(e),se.current=e}),[]);function io(e){if(!v)return;const o=new Set(h);o.has(e)?o.delete(e):o.add(e),v(o)}function uo(e){const{key:n,keyCode:t}=e,l=He[J.rowIdx];if(R&&Qe(e)&&Ro(J)&&!Me(l)&&-1!==J.idx&&"SELECT"===J.mode){const e=86;if(t===67)return void function(){const{idx:e,rowIdx:n}=J;Z({row:o[_o(n)],columnKey:ke[e].key})}();if(t===e)return void function(){const{idx:e,rowIdx:n}=J,t=o[_o(n)];if(!R||!r||null===Y||!So(J))return;const l=R({sourceRow:Y.row,sourceColumnKey:Y.columnKey,targetRow:t,targetColumnKey:ke[e].key});go(n,l)}()}if(Ro(J)&&Me(l)&&-1===J.idx&&("ArrowLeft"===n&&l.isExpanded||"ArrowRight"===n&&!l.isExpanded))return e.preventDefault(),void io(l.id);switch(e.key){case"Escape":return Z(null),void zo();case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){if("EDIT"===J.mode){var o,n;if(!(null!=(o=null==(n=ke[J.idx].editorOptions)?void 0:n.onNavigation)?o:eo)(e))return}const{key:t,shiftKey:r}=e;let l=G;if("Tab"===t){if(function({cellNavigationMode:e,columns:o,rowsCount:n,selectedPosition:{rowIdx:t,idx:r},shiftKey:l}){if("NONE"===e||"CHANGE_ROW"===e){const e=r===o.length-1,i=0===r,c=t===n-1,a=0===t;return l?i&&a:e&&c}return!1}({shiftKey:r,cellNavigationMode:G,columns:ke,rowsCount:He.length,selectedPosition:J}))return void wo();l="NONE"===G?"CHANGE_ROW":G}e.preventDefault();const i=Qe(e);Eo(function({cellNavigationMode:e,columns:o,colSpanColumns:n,rows:t,currentPosition:r,nextPosition:l,lastFrozenColumnIndex:i,isCellWithinBounds:c,isGroupRow:a}){const u=t.length;let s=l;const d=e=>{const o=t[s.rowIdx];if(!a(o)){const t=s.idx;for(const r of n){const n=r.idx;if(n>t)break;const l=Xe(r,i,{type:"ROW",row:o});if(l&&t>n&&t<l+n){s.idx=n+(e?l:0);break}}}};if(c(s)&&d(s.idx-r.idx>0),"NONE"!==e){const{idx:n,rowIdx:t}=l,r=o.length,i=-1===n;n===r?("CHANGE_ROW"===e?t===u-1||(s={idx:0,rowIdx:t+1}):s={rowIdx:t,idx:0},d(!0)):i&&("CHANGE_ROW"===e?0===t||(s={rowIdx:t-1,idx:r-1}):s={rowIdx:t,idx:r-1}),d(!1)}return s}({columns:ke,colSpanColumns:Re,rows:He,lastFrozenColumnIndex:Oe,cellNavigationMode:l,currentPosition:J,nextPosition:Po(t,i,r),isCellWithinBounds:Ro,isGroupRow:Me}))}(e);break;default:!function(e){var o;if(!Ro(J))return;const n=He[J.rowIdx];if(Me(n))return;const{key:t}=e,r=ke[J.idx];if("EDIT"===J.mode)return void("Enter"===t&&(wo(),zo()));if(null==(o=r.editorOptions)||null==o.onCellKeyDown||o.onCellKeyDown(e),e.isDefaultPrevented())return;So(J)&&function(e){return!Ze.has(e.key)}(e)&&X((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,key:t,mode:"EDIT",row:n,originalRow:n})))}(e)}}function so(){fe.current=!0}function _o(e){return $e?o.indexOf(He[e]):e}function go(e,n){if("function"!=typeof r)return;if(n===o[e])return;const t=[...o];t[e]=n,r(t,{indexes:[e],column:ke[J.idx]})}function wo(){var e;if(null==(null==(e=ke[J.idx])?void 0:e.editor)||"SELECT"===J.mode||J.row===J.originalRow)return;go(_o(J.rowIdx),J.row)}function yo(e){function n(e){1!==e.buttons&&t()}function t(){window.removeEventListener("mouseover",n),window.removeEventListener("mouseup",t),le(!1),function(){const e=se.current;if(void 0===e||!k||!r)return;const{idx:n,rowIdx:t}=J,l=o[t],i=t<e?t+1:e,c=t<e?e+1:t,a=o.slice(i,c),u=ke[n],s=k({columnKey:u.key,sourceRow:l,targetRows:a}),d=[...o],f=[];for(let e=i;e<c;e++){const o=e-i;d[e]!==s[o]&&(d[e]=s[o],f.push(e))}f.length>0&&r(d,{indexes:f,column:u}),lo(void 0)}()}1===e.buttons&&(le(!0),window.addEventListener("mouseover",n),window.addEventListener("mouseup",t))}function xo(e){if(e.stopPropagation(),!k||!r)return;const{idx:n,rowIdx:t}=J,l=o[t],i=o.slice(t+1),c=ke[n],a=k({columnKey:c.key,sourceRow:l,targetRows:i}),u=[...o],s=[];for(let e=t+1;e<u.length;e++){const o=e-t-1;u[e]!==a[o]&&(u[e]=a[o],s.push(e))}s.length>0&&r(u,{indexes:s,column:c})}function Co(e,o){"SELECT"!==J.mode&&(o?(go(_o(J.rowIdx),e),zo()):X((o=>({...o,row:e}))))}function ko(e){e&&wo(),zo()}function Ro({idx:e,rowIdx:o}){return o>=0&&o<He.length&&e>=Ve&&e<ke.length}function So(e){return Ro(e)&&oo({columns:ke,rows:He,selectedPosition:e,isGroupRow:Me})}function Eo(e,o){if(Ro(e)){if(wo(),o&&So(e)){const o=He[e.rowIdx];X({...e,mode:"EDIT",key:null,row:o,originalRow:o})}else X({...e,mode:"SELECT"});null==C||C({...e})}}function zo(){"SELECT"!==J.mode&&X((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"SELECT"})))}function To({idx:e,rowIdx:o}){const{current:n}=ge;if(n){if("number"==typeof e&&e>Oe){if(null!=o||(o=J.rowIdx),!Ro({rowIdx:o,idx:e}))return;const{clientWidth:t}=n,r=ke[e],{left:l,width:i}=ze.get(r);let c=l+i;const a=He[o];if(!Me(a)){const e=Xe(r,Oe,{type:"ROW",row:a});if(void 0!==e){const{left:o,width:n}=ze.get(ke[r.idx+e-1]);c=o+n}}const u=c>t+j;l<j+Pe?n.scrollLeft=l-Pe:u&&(n.scrollLeft=c-t)}if("number"==typeof o){const e=We(o),t=Ue(o);e<K?n.scrollTop=e:e+t>K+xe&&(n.scrollTop=e+t-xe)}}}function Po(e,o,n){const{idx:t,rowIdx:r}=J,l=He[r],i=Ro(J)&&-1===t;if("ArrowLeft"===e&&i&&Me(l)&&!l.isExpanded&&0!==l.level){let e=-1;for(let o=J.rowIdx-1;o>=0;o--){const n=He[o];if(Me(n)&&n.id===l.parentId){e=o;break}}if(-1!==e)return{idx:t,rowIdx:e}}switch(e){case"ArrowUp":return{idx:t,rowIdx:r-1};case"ArrowDown":return{idx:t,rowIdx:r+1};case"ArrowLeft":return{idx:t-1,rowIdx:r};case"ArrowRight":return{idx:t+1,rowIdx:r};case"Tab":return-1===J.idx&&-1===J.rowIdx?n?{idx:ke.length-1,rowIdx:He.length-1}:{idx:0,rowIdx:0}:{idx:t+(n?-1:1),rowIdx:r};case"Home":return i?{idx:t,rowIdx:0}:o?{idx:0,rowIdx:0}:{idx:0,rowIdx:r};case"End":return i?{idx:t,rowIdx:He.length-1}:o?{idx:ke.length-1,rowIdx:He.length-1}:{idx:ke.length-1,rowIdx:r};case"PageUp":{const e=We(r)+Ue(r)-xe;return{idx:t,rowIdx:e>0?je(e):0}}case"PageDown":{const e=We(r)+xe;return{idx:t,rowIdx:e<Le?je(e):He.length-1}}default:return J}}function No(e){if(void 0===ie)return;const{rowIdx:o}=J;return(o<ie?o<e&&e<=ie:o>e&&e>=ie)?J.idx:void 0}function Do(e){if(J.rowIdx===e)return"EDIT"===J.mode?{mode:"EDIT",idx:J.idx,onKeyDown:uo,editorProps:{editorPortalTarget:W,row:J.row,onRowChange:Co,onClose:ko}}:{mode:"SELECT",idx:J.idx,onFocus:so,onKeyDown:uo,dragHandleProps:Ye&&So(J)?{onMouseDown:yo,onDoubleClick:xo}:void 0}}return(J.idx>=ke.length||J.rowIdx>=He.length)&&(X(Ko),lo(void 0)),"EDIT"===J.mode&&He[J.rowIdx]!==J.originalRow&&zo(),Ke("div",{role:$e?"treegrid":"grid","aria-label":P,"aria-labelledby":N,"aria-describedby":D,"aria-multiselectable":!!be||void 0,"aria-colcount":ke.length,"aria-rowcount":1+Fe+me,className:Ge("rdg r104f42s700-canary49",z,ee&&"rdg-viewport-dragging vc4f4zb700-canary49"),style:{...T,"--header-row-height":`${F}px`,"--row-width":`${Te}px`,"--summary-row-height":`${L}px`,...Ee},ref:ge,onScroll:function(e){const{scrollTop:o,scrollLeft:n}=e.currentTarget;U(o),$(n),null==x||x(e)},children:[Ke(Io,{rowKeyGetter:t,rows:o,columns:Be,onColumnResize:no,allRowsSelected:Ce,onSelectedRowsChange:u,sortColumns:s,onSortColumnsChange:d,lastFrozenColumnIndex:Oe}),0===He.length&&w?Ke(w,{}):Ke(m,{children:[Ke("div",{ref:ae,tabIndex:0,className:"rdg-focus-sink f7ly7s700-canary49",onKeyDown:uo,onFocus:function(){if(Ro(J))To(J);else{const e={idx:0,rowIdx:0,mode:"SELECT"};Ro(e)&&X(e)}}}),Ke("div",{style:{height:ro(Le,xe)}}),Ke(mo,{value:_e,children:function(){const e=[];let o=0;for(let r=De;r<=Ae;r++){const l=He[r],i=We(r)+F;if(Me(l)){({startRowIndex:o}=l);const n=be&&l.childRows.every((e=>null==a?void 0:a.has(t(e))));e.push(Ke(Ao,{"aria-level":l.level+1,"aria-setsize":l.setSize,"aria-posinset":l.posInSet+1,"aria-rowindex":1+o+1,"aria-selected":be?n:void 0,id:l.id,groupKey:l.groupKey,viewportColumns:Be,childRows:l.childRows,rowIdx:r,top:i,height:Ue(r),level:l.level,isExpanded:l.isExpanded,selectedCellIdx:J.rowIdx===r?J.idx:void 0,isRowSelected:n,onFocus:J.rowIdx===r?so:void 0,onKeyDown:J.rowIdx===r?uo:void 0,selectCell:pe,toggleGroup:he},l.id));continue}let c;o++;let u=!1;var n;if("function"==typeof t)c=t(l),u=null!=(n=null==a?void 0:a.has(c))&&n;else c=$e?o:r;e.push(Ke(M,{"aria-rowindex":1+($e?o:r)+1,"aria-selected":be?u:void 0,rowIdx:r,row:l,viewportColumns:Be,isRowSelected:u,onRowClick:y,rowClass:O,top:i,height:Ue(r),copiedCellIdx:null!==Y&&Y.row===l?ke.findIndex((e=>e.key===Y.columnKey)):void 0,draggedOverCellIdx:No(r),setDraggedOverRowIdx:ee?lo:void 0,lastFrozenColumnIndex:Oe,selectedCellProps:Do(r),onRowChange:ve,selectCell:pe},c))}return e}()}),null==n?void 0:n.map(((e,o)=>Ke(Mo,{"aria-rowindex":1+Fe+o+1,rowIdx:o,row:e,bottom:L*(n.length-1-o),viewportColumns:Be,lastFrozenColumnIndex:Oe},o)))]})]})}const jo=we(Uo);Ue(".t16y9g8l700-canary49{appearance:none;box-sizing:border-box;width:100%;height:100%;padding:0 6px;border:2px solid #ccc;vertical-align:top;color:var(--color);background-color:var(--background-color);font-family:inherit;font-size:var(--font-size)}.t16y9g8l700-canary49:focus{border-color:var(--selection-color);outline:none}.t16y9g8l700-canary49::placeholder{color:#999;opacity:1}");var Bo=jo;function $o(e,o,n){var t=o;return l([],e,!0).sort((function(e,o){return e[t]<o[t]?n?1:-1:e[t]>o[t]?n?-1:1:0}))}!function(e,o){void 0===o&&(o={});var n=o.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color);inline-size:16px}");var Vo=function(e){var o=e.columns,n=e.data,t=e.onRowClickCallback,r=e.sort,i=e.darkMode,c=void 0!==i&&i,a=e.multiSelect,u=void 0!==a&&a,s=Q([]),d=s[0],f=s[1],_=Q(),p=_[0],h=_[1],v=Q([]),g=v[0],y=v[1],m=Q((function(){return new Set})),x=m[0],b=m[1];ee((function(){f(l(l([],u?[_o]:[],!0),o.map((function(e){return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80}})),!0))}),[o,u]);var C=re((function(e){var o=e.slice(-1)[0],n=void 0!==o,t="DESC"===(null==o?void 0:o.direction);h(o),y($o(g,n?o.columnKey:"key",!!n&&t))}),[g]),k=re((function(e){return e.key}),[]),R=re((function(e){b(e),t(g.filter((function(o){return e.has(k(o))})))}),[g,t,k]),I=re((function(e,o){t(g.filter((function(o){return k(o)===k(e)})))}),[g,t,k]);return ee((function(){var e=n.map((function(e,n){var t={key:n};return o.forEach((function(o,n){t[o]=e[n]})),t}));(null==r?void 0:r.attribute)&&(e=$o(e,r.attribute,r.descending)),y(e)}),[o,n,r]),w(Bo,{columns:d,headerRowHeight:24,rows:g,rowKeyGetter:k,rowHeight:20,className:c?"rdg-dark":"rdg-light",sortColumns:p?[p]:[],onSortColumnsChange:C,selectedRows:x,onSelectedRowsChange:u?R:void 0,onRowClick:u?void 0:I,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})},qo=function(e){function l(){return e.call(this)||this}return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function t(){this.constructor=e}n(e,o),e.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)}(l,e),l.prototype.renderTable=function(){var e=this;return w(Vo,{columns:this.columns(),data:this.data(),darkMode:this.darkMode(),onRowClickCallback:function(o,n){var t;void 0===n&&(n=""),e._prevRow&&JSON.stringify(e._prevRow)!==JSON.stringify(o)&&e.click(e._prevRow,null!==(t=e._prevColumn)&&void 0!==t?t:"",!1),o&&e.click(o,n,!0),e._prevRow=o,e._prevColumn=n}})},l.prototype.enter=function(o,n){e.prototype.enter.call(this,o,n),this._div=n.append("div")},l.prototype.update=function(o,n){e.prototype.update.call(this,o,n),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,o,n){null==o.__k&&(o.textContent=""),G(e,o),"function"==typeof n&&n(),e&&e.__c}(this.renderTable(),this._div.node())},l.prototype.exit=function(o,n){!function(e){!!e.__k&&G(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,o,n)},l.prototype.click=function(e,o,n){},t([o.publish(!1,"boolean","Dark Mode"),r("design:type",Function)],l.prototype,"darkMode",void 0),t([o.publish(!1,"boolean","Multiple Selection"),r("design:type",Function)],l.prototype,"multiSelect",void 0),l}(o.HTMLWidget);qo.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.103.1",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.1.1",e.Table=qo,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/dgrid2"]={},e["@hpcc-js/common"])}(this,(function(e,o){"use strict";var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])},t(e,o)};var n=function(){return n=Object.assign||function(e){for(var o,t=1,n=arguments.length;t<n;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e},n.apply(this,arguments)};function r(e,o,t,n){var r,l=arguments.length,i=l<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,t,n);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(l<3?r(i):l>3?r(o,t,i):r(o,t))||i);return l>3&&i&&Object.defineProperty(o,t,i),i}function l(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function i(e,o,t){if(t||2===arguments.length)for(var n,r=0,l=o.length;r<l;r++)!n&&r in o||(n||(n=Array.prototype.slice.call(o,0,r)),n[r]=o[r]);return e.concat(n||Array.prototype.slice.call(o))}var c,s,a,d,u,f,p,_={},h=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(e,o){for(var t in o)e[t]=o[t];return e}function m(e){var o=e.parentNode;o&&o.removeChild(e)}function w(e,o,t){var n,r,l,i={};for(l in o)"key"==l?n=o[l]:"ref"==l?r=o[l]:i[l]=o[l];if(arguments.length>2&&(i.children=arguments.length>3?c.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===i[l]&&(i[l]=e.defaultProps[l]);return b(e,i,n,r,null)}function b(e,o,t,n,r){var l={type:e,props:o,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++a:r};return null==r&&null!=s.vnode&&s.vnode(l),l}function y(e){return e.children}function x(e,o){this.props=e,this.context=o}function C(e,o){if(null==o)return e.__?C(e.__,e.__.__k.indexOf(e)+1):null;for(var t;o<e.__k.length;o++)if(null!=(t=e.__k[o])&&null!=t.__e)return t.__e;return"function"==typeof e.type?C(e):null}function k(e){var o,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,o=0;o<e.__k.length;o++)if(null!=(t=e.__k[o])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return k(e)}}function R(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!I.__r++||f!==s.debounceRendering)&&((f=s.debounceRendering)||u)(I)}function I(){for(var e;I.__r=d.length;)e=d.sort((function(e,o){return e.__v.__b-o.__v.__b})),d=[],e.some((function(e){var o,t,n,r,l,i;e.__d&&(l=(r=(o=e).__v).__e,(i=o.__P)&&(t=[],(n=v({},r)).__v=r.__v+1,D(i,r,n,o.__n,void 0!==i.ownerSVGElement,null!=r.__h?[l]:null,t,null==l?C(r):l,r.__h),N(t,r),r.__e!=l&&k(r)))}))}function S(e,o,t,n,r,l,i,c,s,a){var d,u,f,p,g,v,m,w=n&&n.__k||h,x=w.length;for(t.__k=[],d=0;d<o.length;d++)if(null!=(p=t.__k[d]=null==(p=o[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?b(null,p,null,null,p):Array.isArray(p)?b(y,{children:p},null,null,null):p.__b>0?b(p.type,p.props,p.key,null,p.__v):p)){if(p.__=t,p.__b=t.__b+1,null===(f=w[d])||f&&p.key==f.key&&p.type===f.type)w[d]=void 0;else for(u=0;u<x;u++){if((f=w[u])&&p.key==f.key&&p.type===f.type){w[u]=void 0;break}f=null}D(e,p,f=f||_,r,l,i,c,s,a),g=p.__e,(u=p.ref)&&f.ref!=u&&(m||(m=[]),f.ref&&m.push(f.ref,null,p),m.push(u,p.__c||g,p)),null!=g?(null==v&&(v=g),"function"==typeof p.type&&p.__k===f.__k?p.__d=s=E(p,s,e):s=F(e,p,f,w,g,s),"function"==typeof t.type&&(t.__d=s)):s&&f.__e==s&&s.parentNode!=e&&(s=C(f))}for(t.__e=v,d=x;d--;)null!=w[d]&&("function"==typeof t.type&&null!=w[d].__e&&w[d].__e==t.__d&&(t.__d=C(n,d+1)),G(w[d],w[d]));if(m)for(d=0;d<m.length;d++)M(m[d],m[++d],m[++d])}function E(e,o,t){for(var n,r=e.__k,l=0;r&&l<r.length;l++)(n=r[l])&&(n.__=e,o="function"==typeof n.type?E(n,o,t):F(t,n,n,r,n.__e,o));return o}function z(e,o){return o=o||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){z(e,o)})):o.push(e)),o}function F(e,o,t,n,r,l){var i,c,s;if(void 0!==o.__d)i=o.__d,o.__d=void 0;else if(null==t||r!=l||null==r.parentNode)e:if(null==l||l.parentNode!==e)e.appendChild(r),i=null;else{for(c=l,s=0;(c=c.nextSibling)&&s<n.length;s+=2)if(c==r)break e;e.insertBefore(r,l),i=l}return void 0!==i?i:r.nextSibling}function O(e,o,t){"-"===o[0]?e.setProperty(o,t):e[o]=null==t?"":"number"!=typeof t||g.test(o)?t:t+"px"}function A(e,o,t,n,r){var l;e:if("style"===o)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(o in n)t&&o in t||O(e.style,o,"");if(t)for(o in t)n&&t[o]===n[o]||O(e.style,o,t[o])}else if("o"===o[0]&&"n"===o[1])l=o!==(o=o.replace(/Capture$/,"")),o=o.toLowerCase()in e?o.toLowerCase().slice(2):o.slice(2),e.l||(e.l={}),e.l[o+l]=t,t?n||e.addEventListener(o,l?T:P,l):e.removeEventListener(o,l?T:P,l);else if("dangerouslySetInnerHTML"!==o){if(r)o=o.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==o&&"list"!==o&&"form"!==o&&"tabIndex"!==o&&"download"!==o&&o in e)try{e[o]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===o[0]&&"r"===o[1])?e.setAttribute(o,t):e.removeAttribute(o))}}function P(e){this.l[e.type+!1](s.event?s.event(e):e)}function T(e){this.l[e.type+!0](s.event?s.event(e):e)}function D(e,o,t,n,r,l,i,c,a){var d,u,f,p,_,h,g,m,w,b,C,k=o.type;if(void 0!==o.constructor)return null;null!=t.__h&&(a=t.__h,c=o.__e=t.__e,o.__h=null,l=[c]),(d=s.__b)&&d(o);try{e:if("function"==typeof k){if(m=o.props,w=(d=k.contextType)&&n[d.__c],b=d?w?w.props.value:d.__:n,t.__c?g=(u=o.__c=t.__c).__=u.__E:("prototype"in k&&k.prototype.render?o.__c=u=new k(m,b):(o.__c=u=new x(m,b),u.constructor=k,u.render=W),w&&w.sub(u),u.props=m,u.state||(u.state={}),u.context=b,u.__n=n,f=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=k.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=v({},u.__s)),v(u.__s,k.getDerivedStateFromProps(m,u.__s))),p=u.props,_=u.state,f)null==k.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==k.getDerivedStateFromProps&&m!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(m,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(m,u.__s,b)||o.__v===t.__v){u.props=m,u.state=u.__s,o.__v!==t.__v&&(u.__d=!1),u.__v=o,o.__e=t.__e,o.__k=t.__k,o.__k.forEach((function(e){e&&(e.__=o)})),u.__h.length&&i.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(m,u.__s,b),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(p,_,h)}))}u.context=b,u.props=m,u.state=u.__s,(d=s.__r)&&d(o),u.__d=!1,u.__v=o,u.__P=e,d=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(n=v(v({},n),u.getChildContext())),f||null==u.getSnapshotBeforeUpdate||(h=u.getSnapshotBeforeUpdate(p,_)),C=null!=d&&d.type===y&&null==d.key?d.props.children:d,S(e,Array.isArray(C)?C:[C],o,t,n,r,l,i,c,a),u.base=o.__e,o.__h=null,u.__h.length&&i.push(u),g&&(u.__E=u.__=null),u.__e=!1}else null==l&&o.__v===t.__v?(o.__k=t.__k,o.__e=t.__e):o.__e=H(t.__e,o,t,n,r,l,i,a);(d=s.diffed)&&d(o)}catch(e){o.__v=null,(a||null!=l)&&(o.__e=c,o.__h=!!a,l[l.indexOf(c)]=null),s.__e(e,o,t)}}function N(e,o){s.__c&&s.__c(o,e),e.some((function(o){try{e=o.__h,o.__h=[],e.some((function(e){e.call(o)}))}catch(e){s.__e(e,o.__v)}}))}function H(e,o,t,n,r,l,i,s){var a,d,u,f=t.props,p=o.props,h=o.type,g=0;if("svg"===h&&(r=!0),null!=l)for(;g<l.length;g++)if((a=l[g])&&"setAttribute"in a==!!h&&(h?a.localName===h:3===a.nodeType)){e=a,l[g]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),l=null,s=!1}if(null===h)f===p||s&&e.data===p||(e.data=p);else{if(l=l&&c.call(e.childNodes),d=(f=t.props||_).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!s){if(null!=l)for(f={},g=0;g<e.attributes.length;g++)f[e.attributes[g].name]=e.attributes[g].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,o,t,n,r){var l;for(l in t)"children"===l||"key"===l||l in o||A(e,l,null,t[l],n);for(l in o)r&&"function"!=typeof o[l]||"children"===l||"key"===l||"value"===l||"checked"===l||t[l]===o[l]||A(e,l,o[l],t[l],n)}(e,p,f,r,s),u)o.__k=[];else if(g=o.props.children,S(e,Array.isArray(g)?g:[g],o,t,n,r&&"foreignObject"!==h,l,i,l?l[0]:t.__k&&C(t,0),s),null!=l)for(g=l.length;g--;)null!=l[g]&&m(l[g]);s||("value"in p&&void 0!==(g=p.value)&&(g!==e.value||"progress"===h&&!g||"option"===h&&g!==f.value)&&A(e,"value",g,f.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==e.checked&&A(e,"checked",g,f.checked,!1))}return e}function M(e,o,t){try{"function"==typeof e?e(o):e.current=o}catch(e){s.__e(e,t)}}function G(e,o,t){var n,r;if(s.unmount&&s.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||M(n,null,o)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){s.__e(e,o)}n.base=n.__P=null}if(n=e.__k)for(r=0;r<n.length;r++)n[r]&&G(n[r],o,"function"!=typeof e.type);t||null==e.__e||m(e.__e),e.__e=e.__d=void 0}function W(e,o,t){return this.constructor(e,t)}function L(e,o,t){var n,r,l;s.__&&s.__(e,o),r=(n="function"==typeof t)?null:t&&t.__k||o.__k,l=[],D(o,e=(!n&&t||o).__k=w(y,null,[e]),r||_,_,void 0!==o.ownerSVGElement,!n&&t?[t]:r?null:o.firstChild?c.call(o.childNodes):null,l,!n&&t?t:r?r.__e:o.firstChild,n),N(l,e)}function K(e,o){var t={__c:o="__cC"+p++,__:e,Consumer:function(e,o){return e.children(o)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[o]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(R)},this.sub=function(e){t.push(e);var o=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),o&&o.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}c=h.slice,s={__e:function(e,o,t,n){for(var r,l,i;o=o.__;)if((r=o.__c)&&!r.__)try{if((l=r.constructor)&&null!=l.getDerivedStateFromError&&(r.setState(l.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,n||{}),i=r.__d),i)return r.__E=r}catch(o){e=o}throw e}},a=0,x.prototype.setState=function(e,o){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},t),this.props)),e&&v(t,e),null!=e&&this.__v&&(o&&this.__h.push(o),R(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),R(this))},x.prototype.render=y,d=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,I.__r=0,p=0;var j,U,B,$=0,q=[],V=s.__b,X=s.__r,Y=s.diffed,J=s.__c,Z=s.unmount;function Q(e,o){s.__h&&s.__h(U,e,$||o),$=0;var t=U.__H||(U.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function ee(e){return $=1,function(e,o,t){var n=Q(j++,2);return n.t=e,n.__c||(n.__=[t?t(o):fe(void 0,o),function(e){var o=n.t(n.__[0],e);n.__[0]!==o&&(n.__=[o,n.__[1]],n.__c.setState({}))}],n.__c=U),n.__}(fe,e)}function oe(e,o){var t=Q(j++,3);!s.__s&&ue(t.__H,o)&&(t.__=e,t.__H=o,U.__H.__h.push(t))}function te(e,o){var t=Q(j++,4);!s.__s&&ue(t.__H,o)&&(t.__=e,t.__H=o,U.__h.push(t))}function ne(e){return $=5,re((function(){return{current:e}}),[])}function re(e,o){var t=Q(j++,7);return ue(t.__H,o)&&(t.__=e(),t.__H=o,t.__h=e),t.__}function le(e,o){return $=8,re((function(){return e}),o)}function ie(e){var o=U.context[e.__c],t=Q(j++,9);return t.c=e,o?(null==t.__&&(t.__=!0,o.sub(U)),o.props.value):e.__}function ce(){for(var e;e=q.shift();)if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(de),e.__H.__h=[]}catch(o){e.__H.__h=[],s.__e(o,e.__v)}}s.__b=function(e){U=null,V&&V(e)},s.__r=function(e){X&&X(e),j=0;var o=(U=e.__c).__H;o&&(o.__h.forEach(ae),o.__h.forEach(de),o.__h=[])},s.diffed=function(e){Y&&Y(e);var o=e.__c;o&&o.__H&&o.__H.__h.length&&(1!==q.push(o)&&B===s.requestAnimationFrame||((B=s.requestAnimationFrame)||function(e){var o,t=function(){clearTimeout(n),se&&cancelAnimationFrame(o),setTimeout(e)},n=setTimeout(t,100);se&&(o=requestAnimationFrame(t))})(ce)),U=null},s.__c=function(e,o){o.some((function(e){try{e.__h.forEach(ae),e.__h=e.__h.filter((function(e){return!e.__||de(e)}))}catch(t){o.some((function(e){e.__h&&(e.__h=[])})),o=[],s.__e(t,e.__v)}})),J&&J(e,o)},s.unmount=function(e){Z&&Z(e);var o,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{ae(e)}catch(e){o=e}})),o&&s.__e(o,t.__v))};var se="function"==typeof requestAnimationFrame;function ae(e){var o=U,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),U=o}function de(e){var o=U;e.__c=e.__(),U=o}function ue(e,o){return!e||e.length!==o.length||o.some((function(o,t){return o!==e[t]}))}function fe(e,o){return"function"==typeof o?o(e):o}function pe(e,o){for(var t in o)e[t]=o[t];return e}function _e(e,o){for(var t in e)if("__source"!==t&&!(t in o))return!0;for(var n in o)if("__source"!==n&&e[n]!==o[n])return!0;return!1}function he(e){this.props=e}function ge(e,o){function t(e){var t=this.props.ref,n=t==e.ref;return!n&&t&&(t.call?t(null):t.current=null),o?!o(this.props,e)||!n:_e(this.props,e)}function n(o){return this.shouldComponentUpdate=t,w(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(he.prototype=new x).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,o){return _e(this.props,e)||_e(this.state,o)};var ve=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)};var me="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function we(e){function o(o){var t=pe({},o);return delete t.ref,e(t,o.ref||null)}return o.$$typeof=me,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName="ForwardRef("+(e.displayName||e.name)+")",o}var be=s.__e;s.__e=function(e,o,t,n){if(e.then)for(var r,l=o;l=l.__;)if((r=l.__c)&&r.__c)return null==o.__e&&(o.__e=t.__e,o.__k=t.__k),r.__c(e,o);be(e,o,t,n)};var ye=s.unmount;function xe(){this.__u=0,this.t=null,this.__b=null}function Ce(e){var o=e.__.__c;return o&&o.__e&&o.__e(e)}function ke(){this.u=null,this.o=null}s.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&!0===e.__h&&(e.type=null),ye&&ye(e)},(xe.prototype=new x).__c=function(e,o){var t=o.__c,n=this;null==n.t&&(n.t=[]),n.t.push(t);var r=Ce(n.__v),l=!1,i=function(){l||(l=!0,t.__R=null,r?r(c):c())};t.__R=i;var c=function(){if(!--n.__u){if(n.state.__e){var e=n.state.__e;n.__v.__k[0]=function e(o,t,n){return o&&(o.__v=null,o.__k=o.__k&&o.__k.map((function(o){return e(o,t,n)})),o.__c&&o.__c.__P===t&&(o.__e&&n.insertBefore(o.__e,o.__d),o.__c.__e=!0,o.__c.__P=n)),o}(e,e.__c.__P,e.__c.__O)}var o;for(n.setState({__e:n.__b=null});o=n.t.pop();)o.forceUpdate()}},s=!0===o.__h;n.__u++||s||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(i,i)},xe.prototype.componentWillUnmount=function(){this.t=[]},xe.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function e(o,t,n){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),o.__c.__H=null),null!=(o=pe({},o)).__c&&(o.__c.__P===n&&(o.__c.__P=t),o.__c=null),o.__k=o.__k&&o.__k.map((function(o){return e(o,t,n)}))),o}(this.__b,t,n.__O=n.__P)}this.__b=null}var r=o.__e&&w(y,null,e.fallback);return r&&(r.__h=null),[w(y,null,o.__e?null:e.children),r]};var Re=function(e,o,t){if(++t[1]===t[0]&&e.o.delete(o),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};(ke.prototype=new x).__e=function(e){var o=this,t=Ce(o.__v),n=o.o.get(e);return n[0]++,function(r){var l=function(){o.props.revealOrder?(n.push(r),Re(o,e,n)):r()};t?t(l):l()}},ke.prototype.render=function(e){this.u=null,this.o=new Map;var o=z(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&o.reverse();for(var t=o.length;t--;)this.o.set(o[t],this.u=[1,0,this.u]);return e.children},ke.prototype.componentDidUpdate=ke.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(o,t){Re(e,t,o)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Se=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ee="undefined"!=typeof document,ze=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})}));var Fe=s.event;function Oe(){}function Ae(){return this.cancelBubble}function Pe(){return this.defaultPrevented}s.event=function(e){return Fe&&(e=Fe(e)),e.persist=Oe,e.isPropagationStopped=Ae,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Te={configurable:!0,get:function(){return this.class}},De=s.vnode;s.vnode=function(e){var o=e.type,t=e.props,n=t;if("string"==typeof o){var r=-1===o.indexOf("-");for(var l in n={},t){var i=t[l];Ee&&"children"===l&&"noscript"===o||"value"===l&&"defaultValue"in t&&null==i||("defaultValue"===l&&"value"in t&&null==t.value?l="value":"download"===l&&!0===i?i="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+o)&&!ze(t.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&Se.test(l)?l=l.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),n[l]=i)}"select"==o&&n.multiple&&Array.isArray(n.value)&&(n.value=z(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==o&&null!=n.defaultValue&&(n.value=z(t.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),e.props=n,t.class!=t.className&&(Te.enumerable="className"in t,null!=t.className&&(n.class=t.className),Object.defineProperty(n,"className",Te))}e.$$typeof=Ie,De&&De(e)};var Ne=s.__r;function He(e){var o,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(t=He(e[o]))&&(n&&(n+=" "),n+=t);else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Me(){for(var e,o,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(o=He(e))&&(n&&(n+=" "),n+=o);return n}s.__r=function(e){Ne&&Ne(e)};var Ge=0;function We(e,o,t,n,r){var l,i,c={};for(i in o)"ref"==i?l=o[i]:c[i]=o[i];var a={type:e,props:c,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ge,__source:r,__self:n};if("function"==typeof e&&(l=e.defaultProps))for(i in l)void 0===c[i]&&(c[i]=l[i]);return s.vnode&&s.vnode(a),a}function Le(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}Le(".c1wupbe700-beta12{background-color:inherit;border-block-end:1px solid var(--rdg-border-color);border-inline-end:1px solid var(--rdg-border-color);contain:strict;contain:size layout style paint;grid-row-start:var(--rdg-grid-row-start);outline:none;overflow:hidden;overflow:clip;padding-block:0;padding-inline:8px;text-overflow:ellipsis;white-space:nowrap}.c1wupbe700-beta12[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}.cd0kgiy700-beta12 .c1wupbe700-beta12{contain:content}.c1730fa4700-beta12{position:sticky;z-index:1}.c9dpaye700-beta12{box-shadow:calc(2px*var(--rdg-sign)) 0 5px -2px hsla(0,0%,53%,.3)}",{insertAt:"top"});Le('.r104f42s700-beta12{--rdg-color:#000;--rdg-border-color:#ddd;--rdg-summary-border-color:#aaa;--rdg-background-color:#fff;--rdg-header-background-color:#f9f9f9;--rdg-row-hover-background-color:#f5f5f5;--rdg-row-selected-background-color:#dbecfa;--row-selected-hover-background-color:#c9e3f8;--rdg-checkbox-color:#005194;--rdg-checkbox-focus-color:#61b8ff;--rdg-checkbox-disabled-border-color:#ccc;--rdg-checkbox-disabled-background-color:#ddd;--rdg-selection-color:#66afe9;--rdg-font-size:14px;content-visibility:auto;background-color:var(--rdg-background-color);block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;color:var(--rdg-color);color-scheme:var(--rdg-color-scheme,light dark);contain:strict;contain:size layout style paint;display:grid;font-size:var(--rdg-font-size);overflow:auto;user-select:none}@supports not (contain:strict){.r104f42s700-beta12{position:relative;z-index:0}}.r104f42s700-beta12 *,.r104f42s700-beta12 :after,.r104f42s700-beta12 :before{box-sizing:inherit}.r104f42s700-beta12:before{content:"";grid-column:1/-1;grid-row:1/-1}.r104f42s700-beta12.rdg-dark{--rdg-color-scheme:dark;--rdg-color:#ddd;--rdg-border-color:#444;--rdg-summary-border-color:#555;--rdg-background-color:#212121;--rdg-header-background-color:#1b1b1b;--rdg-row-hover-background-color:#171717;--rdg-row-selected-background-color:#1a73bc;--row-selected-hover-background-color:#1768ab;--rdg-checkbox-color:#94cfff;--rdg-checkbox-focus-color:#c7e6ff;--rdg-checkbox-disabled-border-color:#000;--rdg-checkbox-disabled-background-color:#333}.r104f42s700-beta12.rdg-light{--rdg-color-scheme:light}@media (prefers-color-scheme:dark){.r104f42s700-beta12:not(.rdg-light){--rdg-color:#ddd;--rdg-border-color:#444;--rdg-summary-border-color:#555;--rdg-background-color:#212121;--rdg-header-background-color:#1b1b1b;--rdg-row-hover-background-color:#171717;--rdg-row-selected-background-color:#1a73bc;--row-selected-hover-background-color:#1768ab;--rdg-checkbox-color:#94cfff;--rdg-checkbox-focus-color:#c7e6ff;--rdg-checkbox-disabled-border-color:#000;--rdg-checkbox-disabled-background-color:#333}}.v7ly7s700-beta12.r1otpg64700-beta12{cursor:move}.fc4f4zb700-beta12{grid-column:1/-1;pointer-events:none;z-index:4}',{insertAt:"top"});Le('.r1otpg64700-beta12{background-color:var(--rdg-background-color);display:contents;line-height:var(--rdg-row-height)}.r1otpg64700-beta12:hover{background-color:var(--rdg-row-hover-background-color)}.r1otpg64700-beta12[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1otpg64700-beta12[aria-selected=true]:hover{background-color:var(--row-selected-hover-background-color)}.rel5gk2700-beta12{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}.r1qymf1z700-beta12:before{border-inline-start:2px solid var(--rdg-selection-color);content:"";display:inline-block;height:100%;inset-inline-start:0;position:sticky}',{insertAt:"top"});const Ke="rdg-row r1otpg64700-beta12",je="rdg-row-selected";Le('.cd9l4jz700-beta12{align-items:center;cursor:pointer;display:flex;inset:0;justify-content:center;margin-inline-end:1px;position:absolute}.c1noyk41700-beta12{all:unset}.cdwjxv8700-beta12{background-color:var(--rdg-background-color);block-size:20px;border:2px solid var(--rdg-border-color);content:"";inline-size:20px}.c1noyk41700-beta12:checked+.cdwjxv8700-beta12{background-color:var(--rdg-checkbox-color);outline:4px solid var(--rdg-background-color);outline-offset:-6px}.c1noyk41700-beta12:focus+.cdwjxv8700-beta12{border-color:var(--rdg-checkbox-focus-color)}.cca4mwn700-beta12{cursor:default}.cca4mwn700-beta12 .cdwjxv8700-beta12{background-color:var(--rdg-checkbox-disabled-background-color);border-color:var(--rdg-checkbox-disabled-border-color)}',{insertAt:"top"});const Ue=we((function({onChange:e,...o},t){return We("label",{className:Me("rdg-checkbox-label cd9l4jz700-beta12",o.disabled&&"rdg-checkbox-label-disabled cca4mwn700-beta12"),children:[We("input",{type:"checkbox",ref:t,...o,className:"rdg-checkbox-input c1noyk41700-beta12",onChange:function(o){e(o.target.checked,o.nativeEvent.shiftKey)}}),We("div",{className:"rdg-checkbox cdwjxv8700-beta12"})]})})),Be="undefined"==typeof window?oe:te;function $e(e){const o=ne(null);return Be((()=>{var t;e&&(null==(t=o.current)||t.focus({preventScroll:!0}))}),[e]),{ref:o,tabIndex:e?0:-1}}const qe=K(void 0),Ve=qe.Provider;function Xe(){return ie(qe)}function Ye({value:e,isCellSelected:o,disabled:t,onChange:n,"aria-label":r,"aria-labelledby":l}){const{ref:i,tabIndex:c}=$e(o);return We(Xe().checkboxFormatter,{"aria-label":r,"aria-labelledby":l,ref:i,tabIndex:c,disabled:t,checked:e,onChange:n})}function Je(e){try{return We(y,{children:e.row[e.column.key]})}catch{return null}}Le(".gch972y700-beta12{outline:none}.cz2qf0d700-beta12{stroke:currentColor;stroke-width:1.5px;fill:transparent;margin-inline-start:4px;vertical-align:middle}.cz2qf0d700-beta12>path{transition:d .1s}",{insertAt:"top"});function Ze({groupKey:e,isExpanded:o,isCellSelected:t,toggleGroup:n}){const{ref:r,tabIndex:l}=$e(t);return We("span",{ref:r,className:"rdg-group-cell-content gch972y700-beta12",tabIndex:l,onKeyDown:function({key:e}){"Enter"===e&&n()},children:[e,We("svg",{viewBox:"0 0 14 8",width:"14",height:"8",className:"rdg-caret cz2qf0d700-beta12","aria-hidden":!0,children:We("path",{d:o?"M1 1 L 7 7 L 13 1":"M1 7 L 7 1 L 13 7"})})]})}const Qe=K(void 0),eo=Qe.Provider,oo=K(void 0),to=oo.Provider;function no(){const e=ie(Qe),o=ie(oo);if(void 0===e||void 0===o)throw new Error("useRowSelection must be used within DataGrid cells");return[e,o]}const ro="select-row";const lo={key:ro,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,headerRenderer:e=>We(Ye,{"aria-label":"Select All",isCellSelected:e.isCellSelected,value:e.allRowsSelected,onChange:e.onAllRowsSelectionChange}),formatter:function(e){const[o,t]=no();return We(Ye,{"aria-label":"Select",isCellSelected:e.isCellSelected,value:o,onChange:(o,n)=>{t({row:e.row,checked:o,isShiftClick:n})}})},groupFormatter:function(e){const[o,t]=no();return We(Ye,{"aria-label":"Select Group",isCellSelected:e.isCellSelected,value:o,onChange:o=>{t({row:e.row,checked:o,isShiftClick:!1})}})}};function io(e,o,t){const n="function"==typeof e.colSpan?e.colSpan(t):1;if(Number.isInteger(n)&&n>1&&(!e.frozen||e.idx+n-1<=o))return n}const co=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function so(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function ao({key:e,target:o}){return"Tab"===e&&(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)&&o.matches(".rdg-editor-container > :only-child, .rdg-editor-container > label:only-child > :only-child")}function uo({selectedPosition:e,columns:o,rows:t,isGroupRow:n}){const r=o[e.idx],l=t[e.rowIdx];return!n(l)&&fo(r,l)}function fo(e,o){return null!=e.editor&&!e.rowGroup&&!1!==("function"==typeof e.editable?e.editable(o):e.editable)}function po({rows:e,summaryRows:o,rowIdx:t,lastFrozenColumnIndex:n,column:r,isGroupRow:l}){if(-1===t)return io(r,n,{type:"HEADER"});if(t>=0&&t<e.length){const o=e[t];return l(o)?void 0:io(r,n,{type:"ROW",row:o})}return o?io(r,n,{type:"SUMMARY",row:o[t-e.length]}):void 0}function _o(e,o){return void 0!==o?{"--rdg-grid-row-start":e,"--rdg-row-height":`${o}px`}:{"--rdg-grid-row-start":e}}function ho(e,o){return{gridColumnStart:e.idx+1,gridColumnEnd:void 0!==o?`span ${o}`:void 0,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function go(e,...o){return Me("rdg-cell c1wupbe700-beta12",...o,e.frozen&&"rdg-cell-frozen c1730fa4700-beta12",e.isLastFrozenColumn&&"rdg-cell-frozen-last c9dpaye700-beta12")}const{min:vo,max:mo,round:wo,floor:bo,sign:yo,abs:xo,ceil:Co}=Math;function ko(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function Ro(e,{minWidth:o,maxWidth:t}){return e=mo(e,o),"number"==typeof t&&t>o?vo(e,t):e}function Io({key:e,width:o},t,n){return t.has(e)?t.get(e):"number"==typeof o?o:"string"==typeof o&&/^\d+%$/.test(o)?bo(n*parseInt(o,10)/100):void 0}function So(e){return e-(1===devicePixelRatio?0:Co(devicePixelRatio))}function Eo(e){const o=ne(e);return oe((()=>{o.current=e})),le(((...e)=>{o.current(...e)}),[])}function zo(e){const[o,t]=ee(!1);o&&!e&&t(!1);const n=le((e=>{null===e||e.contains(document.activeElement)||e.focus({preventScroll:!0})}),[]);return{ref:e?n:void 0,tabIndex:e&&!o?0:-1,onFocus:e?function(e){e.target!==e.currentTarget&&t(!0)}:void 0}}function Fo({rawRows:e,rowHeight:o,clientHeight:t,scrollTop:n,groupBy:r,rowGrouper:l,expandedGroupIds:i,enableVirtualization:c}){const[s,a]=re((()=>{if(0===r.length||null==l)return[void 0,e.length];const o=(e,[t,...n],r)=>{let i=0;const c={};for(const[s,a]of Object.entries(l(e,t))){const[e,t]=0===n.length?[a,a.length]:o(a,n,r+i+1);c[s]={childRows:a,childGroups:e,startRowIndex:r+i},i+=t+1}return[c,i]};return o(e,r,0)}),[r,l,e]),[d,u]=re((()=>{const o=new Set;if(!s)return[e,r];const t=[],n=(e,r,l)=>{var c;(c=e,Array.isArray(c))?t.push(...e):Object.keys(e).forEach(((c,s,a)=>{var d;const u=void 0!==r?`${r}__${c}`:c,f=null!=(d=null==i?void 0:i.has(u))&&d,{childRows:p,childGroups:_,startRowIndex:h}=e[c],g={id:u,parentId:r,groupKey:c,isExpanded:f,childRows:p,level:l,posInSet:s,startRowIndex:h,setSize:a.length};t.push(g),o.add(g),f&&n(_,u,l+1)}))};return n(s,void 0,0),[t,r];function r(e){return o.has(e)}}),[i,s,e]),{totalRowHeight:f,gridTemplateRows:p,getRowTop:_,getRowHeight:h,findRowIdx:g}=re((()=>{if("number"==typeof o)return{totalRowHeight:o*d.length,gridTemplateRows:` repeat(${d.length}, ${o}px)`,getRowTop:e=>e*o,getRowHeight:()=>o,findRowIdx:e=>bo(e/o)};let e=0,t=" ";const n=d.map((n=>{const r=u(n)?o({type:"GROUP",row:n}):o({type:"ROW",row:n}),l={top:e,height:r};return t+=`${r}px `,e+=r,l})),r=e=>mo(0,vo(d.length-1,e));return{totalRowHeight:e,gridTemplateRows:t,getRowTop:e=>n[r(e)].top,getRowHeight:e=>n[r(e)].height,findRowIdx(e){let o=0,t=n.length-1;for(;o<=t;){const r=o+bo((t-o)/2),l=n[r].top;if(l===e)return r;if(l<e?o=r+1:l>e&&(t=r-1),o>t)return t}return 0}}}),[u,o,d]);let v=0,m=d.length-1;if(c){const e=4,o=g(n),r=g(n+t);v=mo(0,o-e),m=vo(d.length-1,r+e)}return{rowOverscanStartIdx:v,rowOverscanEndIdx:m,rows:d,rowsCount:a,totalRowHeight:f,gridTemplateRows:p,isGroupRow:u,getRowTop:_,getRowHeight:h,findRowIdx:g}}Le(".h1tr5c9i700-beta12{cursor:pointer;display:flex}.h1tr5c9i700-beta12:focus{outline:none}.h19r0msv700-beta12{flex-grow:1;overflow:hidden;overflow:clip;text-overflow:ellipsis}",{insertAt:"top"});function Oo({column:e,sortDirection:o,priority:t,onSort:n,isCellSelected:r}){return e.sortable?We(Ao,{onSort:n,sortDirection:o,priority:t,isCellSelected:r,children:e.name}):We(y,{children:e.name})}function Ao({onSort:e,sortDirection:o,priority:t,children:n,isCellSelected:r}){const l=Xe().sortIcon,{ref:i,tabIndex:c}=$e(r);return We("span",{ref:i,tabIndex:c,className:"rdg-header-sort-cell h1tr5c9i700-beta12",onClick:function(o){e(o.ctrlKey||o.metaKey)},onKeyDown:function(o){" "!==o.key&&"Enter"!==o.key||(o.preventDefault(),e(o.ctrlKey||o.metaKey))},children:[We("span",{className:"rdg-header-sort-name h19r0msv700-beta12",children:n}),We("span",{children:[We(l,{sortDirection:o}),t]})]})}Le('.celq7o9700-beta12{touch-action:none}.celq7o9700-beta12:after{content:"";cursor:col-resize;inline-size:10px;inset-block-end:0;inset-block-start:0;inset-inline-end:0;position:absolute}',{insertAt:"top"});function Po({column:e,colSpan:o,isCellSelected:t,onColumnResize:n,allRowsSelected:r,onAllRowsSelectionChange:l,sortColumns:i,onSortColumnsChange:c,selectCell:s,shouldFocusGrid:a,direction:d}){var u,f;const p="rtl"===d,{ref:_,tabIndex:h,onFocus:g}=zo(t),v=null==i?void 0:i.findIndex((o=>o.columnKey===e.key)),m=void 0!==v&&v>-1?i[v]:void 0,w=null==m?void 0:m.direction,b=void 0!==m&&i.length>1?v+1:void 0,y=w&&!b?"ASC"===w?"ascending":"descending":void 0,x=go(e,e.headerCellClass,e.resizable&&"rdg-cell-resizable celq7o9700-beta12"),C=null!=(u=e.headerRenderer)?u:Oo;return We("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-selected":t,"aria-sort":y,"aria-colspan":o,ref:_,tabIndex:a?0:h,className:x,style:{...ho(e,o),minWidth:e.minWidth,maxWidth:null!=(f=e.maxWidth)?f:void 0},onFocus:function(e){null==g||g(e),a&&s(0)},onClick:function(){s(e.idx)},onDoubleClick:e.resizable?function(o){const{right:t,left:r}=o.currentTarget.getBoundingClientRect();(p?o.clientX-r:t-o.clientX)>11||n(e,"auto")}:void 0,onPointerDown:e.resizable?function(o){if("mouse"===o.pointerType&&1!==o.buttons)return;const{currentTarget:t,pointerId:r}=o,{right:l,left:i}=t.getBoundingClientRect(),c=p?o.clientX-i:l-o.clientX;function s(o){const{right:r,left:l}=t.getBoundingClientRect(),i=p?r+c-o.clientX:o.clientX+c-l;i>0&&n(e,Ro(i,e))}c>11||(t.setPointerCapture(r),t.addEventListener("pointermove",s),t.addEventListener("lostpointercapture",(function e(){t.removeEventListener("pointermove",s),t.removeEventListener("lostpointercapture",e)})))}:void 0,children:We(C,{column:e,sortDirection:w,priority:b,onSort:function(o){if(null==c)return;const{sortDescendingFirst:t}=e;if(void 0===m){const n={columnKey:e.key,direction:t?"DESC":"ASC"};c(i&&o?[...i,n]:[n])}else{let n;if((t&&"DESC"===w||!t&&"ASC"===w)&&(n={columnKey:e.key,direction:"ASC"===w?"DESC":"ASC"}),o){const e=[...i];n?e[v]=n:e.splice(v,1),c(e)}else c(n?[n]:[])}},allRowsSelected:r,onAllRowsSelectionChange:l,isCellSelected:t})})}Le(".h197vzie700-beta12{background-color:var(--rdg-header-background-color);display:contents;font-weight:700;line-height:var(--rdg-header-row-height)}.h197vzie700-beta12>.c1wupbe700-beta12{inset-block-start:0;position:sticky;z-index:2}.h197vzie700-beta12>.c1730fa4700-beta12{z-index:3}",{insertAt:"top"});function To({columns:e,allRowsSelected:o,onAllRowsSelectionChange:t,onColumnResize:n,sortColumns:r,onSortColumnsChange:l,lastFrozenColumnIndex:i,selectedCellIdx:c,selectCell:s,shouldFocusGrid:a,direction:d}){const u=[];for(let f=0;f<e.length;f++){const p=e[f],_=io(p,i,{type:"HEADER"});void 0!==_&&(f+=_-1),u.push(We(Po,{column:p,colSpan:_,isCellSelected:c===p.idx,onColumnResize:n,allRowsSelected:o,onAllRowsSelectionChange:t,onSortColumnsChange:l,sortColumns:r,selectCell:s,shouldFocusGrid:a&&0===f,direction:d},p.key))}return We("div",{role:"row","aria-rowindex":1,className:Me("rdg-header-row h197vzie700-beta12",-1===c&&je),style:_o(1),children:u})}const Do=ge(To);Le(".c1bmg16t700-beta12,.ccpfvsn700-beta12{background-color:#ccf}.c1bmg16t700-beta12.ccpfvsn700-beta12{background-color:#99f}",{insertAt:"top"});function No({column:e,colSpan:o,isCellSelected:t,isCopied:n,isDraggedOver:r,row:l,dragHandle:i,onRowClick:c,onRowDoubleClick:s,onRowChange:a,selectCell:d,...u}){const{ref:f,tabIndex:p,onFocus:_}=zo(t),{cellClass:h}=e,g=go(e,"function"==typeof h?h(l):h,n&&"rdg-cell-copied ccpfvsn700-beta12",r&&"rdg-cell-dragged-over c1bmg16t700-beta12");function v(o){d(l,e,o)}return We("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-selected":t,"aria-colspan":o,"aria-readonly":!fo(e,l)||void 0,ref:f,tabIndex:p,className:g,style:ho(e,o),onClick:function(){var o;v(null==(o=e.editorOptions)?void 0:o.editOnClick),null==c||c(l,e)},onDoubleClick:function(){v(!0),null==s||s(l,e)},onContextMenu:function(){v()},onFocus:_,...u,children:!e.rowGroup&&We(y,{children:[We(e.formatter,{column:e,row:l,isCellSelected:t,onRowChange:a}),i]})})}const Ho=ge(No);function Mo({className:e,rowIdx:o,gridRowStart:t,height:n,selectedCellIdx:r,isRowSelected:l,copiedCellIdx:i,draggedOverCellIdx:c,lastFrozenColumnIndex:s,row:a,viewportColumns:d,selectedCellEditor:u,selectedCellDragHandle:f,onRowClick:p,onRowDoubleClick:_,rowClass:h,setDraggedOverRowIdx:g,onMouseEnter:v,onRowChange:m,selectCell:w,...b},y){const x=Eo((e=>{m(o,e)}));e=Me(Ke,"rdg-row-"+(o%2==0?"even":"odd"),null==h?void 0:h(a),e,-1===r&&je);const C=[];for(let e=0;e<d.length;e++){const o=d[e],{idx:t}=o,n=io(o,s,{type:"ROW",row:a});void 0!==n&&(e+=n-1);const l=r===t;l&&u?C.push(u):C.push(We(Ho,{column:o,colSpan:n,row:a,isCopied:i===t,isDraggedOver:c===t,isCellSelected:l,dragHandle:l?f:void 0,onRowClick:p,onRowDoubleClick:_,onRowChange:x,selectCell:w},o.key))}return We(eo,{value:l,children:We("div",{role:"row",ref:y,className:e,onMouseEnter:function(e){null==g||g(o),null==v||v(e)},style:_o(t,n),...b,children:C})})}const Go=ge(we(Mo));function Wo({id:e,groupKey:o,childRows:t,isExpanded:n,isCellSelected:r,column:l,row:i,groupColumnIndex:c,toggleGroup:s}){const{ref:a,tabIndex:d,onFocus:u}=zo(r);function f(){s(e)}const p=l.rowGroup&&c===l.idx;return We("div",{role:"gridcell","aria-colindex":l.idx+1,"aria-selected":r,ref:a,tabIndex:d,className:go(l),style:{...ho(l),cursor:p?"pointer":"default"},onClick:p?f:void 0,onFocus:u,children:(!l.rowGroup||c===l.idx)&&l.groupFormatter&&We(l.groupFormatter,{groupKey:o,childRows:t,column:l,row:i,isExpanded:n,isCellSelected:r,toggleGroup:f})},l.key)}const Lo=ge(Wo);Le(".gyxx7e9700-beta12:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.gyxx7e9700-beta12>.c1wupbe700-beta12:not(:last-child):not(.c9dpaye700-beta12){border-inline-end:none}",{insertAt:"top"});function Ko({id:e,groupKey:o,viewportColumns:t,childRows:n,rowIdx:r,row:l,gridRowStart:i,height:c,level:s,isExpanded:a,selectedCellIdx:d,isRowSelected:u,selectGroup:f,toggleGroup:p,..._}){const h=t[0].key===ro?s+1:s;return We(eo,{value:u,children:We("div",{role:"row","aria-level":s,"aria-expanded":a,className:Me(Ke,"rdg-group-row gyxx7e9700-beta12","rdg-row-"+(r%2==0?"even":"odd"),-1===d&&je),onClick:function(){f(r)},style:_o(i,c),..._,children:t.map((t=>We(Lo,{id:e,groupKey:o,childRows:n,isExpanded:a,isCellSelected:d===t.idx,column:t,row:l,groupColumnIndex:h,toggleGroup:p},t.key)))})})}const jo=ge(Ko);Le(".s1n3hxke700-beta12{inset-block-end:var(--rdg-summary-row-bottom);inset-block-start:var(--rdg-summary-row-top)}",{insertAt:"top"});function Uo({column:e,colSpan:o,row:t,isCellSelected:n,selectCell:r}){const{ref:l,tabIndex:i,onFocus:c}=zo(n),{summaryFormatter:s,summaryCellClass:a}=e,d=go(e,"s1n3hxke700-beta12","function"==typeof a?a(t):a);return We("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,"aria-selected":n,ref:l,tabIndex:i,className:d,style:ho(e,o),onClick:function(){r(t,e)},onFocus:c,children:s&&We(s,{column:e,row:t,isCellSelected:n})})}const Bo=ge(Uo);Le(".snfqesz700-beta12.r1otpg64700-beta12{line-height:var(--rdg-summary-row-height)}.snfqesz700-beta12.r1otpg64700-beta12>.c1wupbe700-beta12{position:sticky}.s1jijrjz700-beta12>.c1wupbe700-beta12{border-block-start:2px solid var(--rdg-summary-border-color)}",{insertAt:"top"});function $o({rowIdx:e,gridRowStart:o,row:t,viewportColumns:n,top:r,bottom:l,lastFrozenColumnIndex:i,selectedCellIdx:c,selectCell:s,"aria-rowindex":a}){const d=[];for(let e=0;e<n.length;e++){const o=n[e],r=io(o,i,{type:"SUMMARY",row:t});void 0!==r&&(e+=r-1);const l=c===o.idx;d.push(We(Bo,{column:o,colSpan:r,row:t,isCellSelected:l,selectCell:s},o.key))}return We("div",{role:"row","aria-rowindex":a,className:Me(Ke,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row snfqesz700-beta12",0===e&&"s1jijrjz700-beta12",-1===c&&je),style:{..._o(o),"--rdg-summary-row-top":void 0!==r?`${r}px`:void 0,"--rdg-summary-row-bottom":void 0!==l?`${l}px`:void 0},children:d})}const qo=ge($o);Le(".c1tngyp1700-beta12.rdg-cell{padding:0}",{insertAt:"top"});function Vo({column:e,colSpan:o,row:t,onRowChange:n,closeEditor:r,scrollToCell:l}){var i,c,s;const a=ne(),d=!1!==(null==(i=e.editorOptions)?void 0:i.commitOnOutsideClick),u=Eo((()=>{p(!0)}));function f(){cancelAnimationFrame(a.current)}function p(e){e?n(t,!0):r()}oe((()=>{if(d)return addEventListener("mousedown",e,{capture:!0}),()=>{removeEventListener("mousedown",e,{capture:!0}),f()};function e(){a.current=requestAnimationFrame(u)}}),[d,u]);const{cellClass:_}=e,h=go(e,"rdg-editor-container","function"==typeof _?_(t):_,!(null!=(c=e.editorOptions)&&c.renderFormatter)&&"c1tngyp1700-beta12");return We("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":o,"aria-selected":!0,className:h,style:ho(e,o),onKeyDown:function(o){if("Escape"===o.key)o.stopPropagation(),p();else if("Enter"===o.key)o.stopPropagation(),p(!0),l();else{var t,n;(null!=(t=null==(n=e.editorOptions)?void 0:n.onNavigation)?t:ao)(o)||o.stopPropagation()}},onMouseDownCapture:d?f:void 0,children:null!=e.editor&&We(y,{children:[We(e.editor,{column:e,row:t,onRowChange:n,onClose:p}),(null==(s=e.editorOptions)?void 0:s.renderFormatter)&&We(e.formatter,{column:e,row:t,isCellSelected:!0,onRowChange:n})]})})}Le(".cadd3bp700-beta12{background-color:var(--rdg-selection-color);block-size:8px;cursor:move;inline-size:8px;inset-block-end:0;inset-inline-end:0;position:absolute}.cadd3bp700-beta12:hover{background-color:var(--rdg-background-color);block-size:16px;border:2px solid var(--rdg-selection-color);inline-size:16px}",{insertAt:"top"});function Xo({rows:e,columns:o,selectedPosition:t,latestDraggedOverRowIdx:n,isCellEditable:r,onRowsChange:l,onFill:i,setDragging:c,setDraggedOverRowIdx:s}){function a(n,c){const{idx:s,rowIdx:a}=t,d=o[s],u=e[a],f=[...e],p=[];for(let o=n;o<c;o++)if(r({rowIdx:o,idx:s})){const t=i({columnKey:d.key,sourceRow:u,targetRow:e[o]});t!==e[o]&&(f[o]=t,p.push(o))}p.length>0&&(null==l||l(f,{indexes:p,column:d}))}return We("div",{className:"rdg-cell-drag-handle cadd3bp700-beta12",onMouseDown:function(e){function o(e){1!==e.buttons&&r()}function r(){window.removeEventListener("mouseover",o),window.removeEventListener("mouseup",r),c(!1),function(){const e=n.current;if(void 0===e)return;const{rowIdx:o}=t;a(o<e?o+1:e,o<e?e+1:o),s(void 0)}()}1===e.buttons&&(c(!0),window.addEventListener("mouseover",o),window.addEventListener("mouseup",r))},onDoubleClick:function(o){o.stopPropagation(),a(t.rowIdx+1,e.length)}})}Le(".a888944700-beta12{fill:currentColor}.a888944700-beta12>path{transition:d .1s}",{insertAt:"top"});function Yo({sortDirection:e}){return void 0!==e?We("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a888944700-beta12","aria-hidden":!0,children:We("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})}):null}const Jo={idx:-1,rowIdx:-2,mode:"SELECT"};function Zo({columns:e,rows:o,summaryRows:t,rowKeyGetter:n,onRowsChange:r,rowHeight:l,headerRowHeight:i,summaryRowHeight:c,selectedRows:s,onSelectedRowsChange:a,sortColumns:d,onSortColumnsChange:u,defaultColumnOptions:f,groupBy:p,rowGrouper:_,expandedGroupIds:h,onExpandedGroupIdsChange:g,onRowClick:v,onRowDoubleClick:m,onScroll:w,onColumnResize:b,onFill:x,onCopy:C,onPaste:k,cellNavigationMode:R,enableVirtualization:I,components:S,className:E,style:z,rowClass:F,direction:O,"aria-label":A,"aria-labelledby":P,"aria-describedby":T,"data-testid":D},N){var H,M,G,W,L,K,j,U;const B=Xe();null!=l||(l=35);const q=null!=i?i:"number"==typeof l?l:35,V=null!=c?c:"number"==typeof l?l:35,X=null!=(H=null!=(M=null==S?void 0:S.rowRenderer)?M:null==B?void 0:B.rowRenderer)?H:Go,Y=null!=(G=null!=(W=null==S?void 0:S.sortIcon)?W:null==B?void 0:B.sortIcon)?G:Yo,J=null!=(L=null!=(K=null==S?void 0:S.checkboxFormatter)?K:null==B?void 0:B.checkboxFormatter)?L:Ue,Z=null!=(j=null==S?void 0:S.noRowsFallback)?j:null==B?void 0:B.noRowsFallback,Q=null!=R?R:"NONE";null!=I||(I=!0),null!=O||(O="ltr");const[oe,ie]=ee(0),[ce,se]=ee(0),[ae,de]=ee((()=>new Map)),[ue,fe]=ee(Jo),[pe,_e]=ee(null),[he,ge]=ee(!1),[ve,me]=ee(void 0),[we,be]=ee(null),ye=ne(ue),xe=ne(ve),Ce=ne(-1),ke=ne(null),[Re,Ie,Se]=function(){const e=ne(null),[o,t]=ee(1),[n,r]=ee(1);return Be((()=>{const{ResizeObserver:o}=window;if(null==o)return;const{clientWidth:n,clientHeight:l,offsetWidth:i,offsetHeight:c}=e.current,{width:s,height:a}=e.current.getBoundingClientRect(),d=a-c+l;t(So(s-i+n)),r(d);const u=new o((e=>{const o=e[0].contentBoxSize[0];t(So(o.inlineSize)),r(o.blockSize)}));return u.observe(e.current),()=>{u.disconnect()}}),[]),[e,o,n]}(),Ee=null!=(U=null==t?void 0:t.length)?U:0,ze=Se-q-Ee*V,Fe=null!=s&&null!=a,Oe=-1===ue.rowIdx,Ae="rtl"===O,Pe=Ae?"ArrowRight":"ArrowLeft",Te=Ae?"ArrowLeft":"ArrowRight",De=re((()=>({sortIcon:Y,checkboxFormatter:J})),[Y,J]),Ne=re((()=>{const{length:e}=o;return 0!==e&&null!=s&&null!=n&&s.size>=e&&o.every((e=>s.has(n(e))))}),[o,s,n]),{columns:He,colSpanColumns:Ge,colOverscanStartIdx:Le,colOverscanEndIdx:Ke,layoutCssVars:je,columnMetrics:$e,lastFrozenColumnIndex:qe,totalFrozenColumnWidth:Ye,groupBy:Qe}=function({rawColumns:e,columnWidths:o,viewportWidth:t,scrollLeft:n,defaultColumnOptions:r,rawGroupBy:l,enableVirtualization:i}){var c,s,a,d;const u=null==r?void 0:r.width,f=null!=(c=null==r?void 0:r.minWidth)?c:80,p=null==r?void 0:r.maxWidth,_=null!=(s=null==r?void 0:r.formatter)?s:Je,h=null!=(a=null==r?void 0:r.sortable)&&a,g=null!=(d=null==r?void 0:r.resizable)&&d,{columns:v,colSpanColumns:m,lastFrozenColumnIndex:w,groupBy:b}=re((()=>{const o=[];let t=-1;const n=e.map((e=>{var o,n,r,i,c,s,a;const d=null!=(o=null==l?void 0:l.includes(e.key))&&o,v=d||e.frozen||!1,m={...e,idx:0,frozen:v,isLastFrozenColumn:!1,rowGroup:d,width:null!=(n=e.width)?n:u,minWidth:null!=(r=e.minWidth)?r:f,maxWidth:null!=(i=e.maxWidth)?i:p,sortable:null!=(c=e.sortable)?c:h,resizable:null!=(s=e.resizable)?s:g,formatter:null!=(a=e.formatter)?a:_};return d&&(null!=m.groupFormatter||(m.groupFormatter=Ze)),v&&t++,m}));n.sort((({key:e,frozen:o},{key:t,frozen:n})=>e===ro?-1:t===ro?1:null!=l&&l.includes(e)?l.includes(t)?l.indexOf(e)-l.indexOf(t):-1:null!=l&&l.includes(t)?1:o?n?0:-1:n?1:0));const r=[];return n.forEach(((e,t)=>{e.idx=t,e.rowGroup&&o.push(e.key),null!=e.colSpan&&r.push(e)})),-1!==t&&(n[t].isLastFrozenColumn=!0),{columns:n,colSpanColumns:r,lastFrozenColumnIndex:t,groupBy:o}}),[e,u,f,p,_,g,h,l]),{layoutCssVars:y,totalFrozenColumnWidth:x,columnMetrics:C}=re((()=>{const e=new Map;let n=0,r=0,l="",i=0,c=0;for(const n of v){let r=Io(n,o,t);void 0===r?c++:(r=Ro(r,n),i+=r,e.set(n,{width:r,left:0}))}for(const o of v){let r;if(e.has(o)){const t=e.get(o);t.left=n,({width:r}=t)}else r=Ro(wo((t-i)/c),o),i+=r,c--,e.set(o,{width:r,left:n});n+=r,l+=`${r}px `}if(-1!==w){const o=e.get(v[w]);r=o.left+o.width}const s={gridTemplateColumns:l};for(let o=0;o<=w;o++){const t=v[o];s[`--rdg-frozen-left-${t.idx}`]=`${e.get(t).left}px`}return{layoutCssVars:s,totalFrozenColumnWidth:r,columnMetrics:e}}),[o,v,t,w]),[k,R]=re((()=>{if(!i)return[0,v.length-1];const e=n+x,o=n+t,r=v.length-1,l=vo(w+1,r);if(e>=o)return[l,l];let c=l;for(;c<r;){const{left:o,width:t}=C.get(v[c]);if(o+t>e)break;c++}let s=c;for(;s<r;){const{left:e,width:t}=C.get(v[s]);if(e+t>=o)break;s++}return[mo(l,c-1),vo(r,s+1)]}),[C,v,w,n,x,t,i]);return{columns:v,colSpanColumns:m,colOverscanStartIdx:k,colOverscanEndIdx:R,layoutCssVars:y,columnMetrics:C,lastFrozenColumnIndex:w,totalFrozenColumnWidth:x,groupBy:b}}({rawColumns:e,columnWidths:ae,scrollLeft:ce,viewportWidth:Ie,defaultColumnOptions:f,rawGroupBy:_?p:void 0,enableVirtualization:I}),{rowOverscanStartIdx:eo,rowOverscanEndIdx:oo,rows:no,rowsCount:lo,totalRowHeight:ao,gridTemplateRows:fo,isGroupRow:_o,getRowTop:ho,getRowHeight:go,findRowIdx:bo}=Fo({rawRows:o,groupBy:Qe,rowGrouper:_,rowHeight:l,clientHeight:ze,scrollTop:oe,expandedGroupIds:h,enableVirtualization:I}),Co=function({columns:e,colSpanColumns:o,rows:t,summaryRows:n,colOverscanStartIdx:r,colOverscanEndIdx:l,lastFrozenColumnIndex:i,rowOverscanStartIdx:c,rowOverscanEndIdx:s,isGroupRow:a}){const d=re((()=>{if(0===r)return 0;let e=r;const l=(o,t)=>void 0!==t&&o+t>r&&(e=o,!0);for(const r of o){const o=r.idx;if(o>=e)break;if(l(o,io(r,i,{type:"HEADER"})))break;for(let e=c;e<=s;e++){const n=t[e];if(!a(n)&&l(o,io(r,i,{type:"ROW",row:n})))break}if(null!=n)for(const e of n)if(l(o,io(r,i,{type:"SUMMARY",row:e})))break}return e}),[c,s,t,n,r,i,o,a]);return re((()=>{const o=[];for(let t=0;t<=l;t++){const n=e[t];t<d&&!n.frozen||o.push(n)}return o}),[d,l,e])}({columns:He,colSpanColumns:Ge,colOverscanStartIdx:Le,colOverscanEndIdx:Ke,lastFrozenColumnIndex:qe,rowOverscanStartIdx:eo,rowOverscanEndIdx:oo,rows:no,summaryRows:t,isGroupRow:_o}),zo=Qe.length>0&&"function"==typeof _,Oo=zo?-1:0,Ao=He.length-1,Po=-1,To=1+no.length+Ee-2,No=dt(ue),Ho=ut(ue),Mo=Eo(tt),Wo=Eo((function(e){if(!a)return;ko(n);const t=new Set(s);for(const r of o){const o=n(r);e?t.add(o):t.delete(o)}a(t)})),Lo=Eo(it),Ko=Eo(((e,o,t)=>{pt({rowIdx:no.indexOf(e),idx:o.idx},t)})),Uo=Eo((e=>{pt({rowIdx:e,idx:-1})})),Bo=Eo((e=>{pt({rowIdx:-1,idx:e})})),$o=Eo(((e,o)=>{pt({rowIdx:t.indexOf(e)+1+no.length-1,idx:o.idx})})),Zo=Eo(nt);Be((()=>{No&&!Qo(ue,ye.current)?(ye.current=ue,_t(ue),-1===ue.idx&&ke.current.focus({preventScroll:!0})):ye.current=ue})),Be((()=>{if(null===we)return;const e=Re.current.querySelector(`[aria-colindex="${we.idx+1}"]`),{width:o}=e.getBoundingClientRect();de((e=>{const t=new Map(e);return t.set(we.key,o),t})),be(null),null==b||b(we.idx,o)}),[we,Re,b]),function(e,o,t){$=6,te((function(){return"function"==typeof e?(e(o()),function(){return e(null)}):e?(e.current=o(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))}(N,(()=>({element:Re.current,scrollToColumn(e){_t({idx:e})},scrollToRow(e){const{current:o}=Re;o&&o.scrollTo({top:ho(e),behavior:"smooth"})},selectCell:pt})));const et=le(((e,o)=>{"auto"!==o?(de((t=>{const n=new Map(t);return n.set(e.key,o),n})),null==b||b(e.idx,o)):be(e)}),[b]),ot=le((e=>{me(e),xe.current=e}),[]);function tt({row:e,checked:o,isShiftClick:t}){if(!a)return;ko(n);const r=new Set(s);if(_o(e)){for(const t of e.childRows){const e=n(t);o?r.add(e):r.delete(e)}return void a(r)}const l=n(e);if(o){r.add(l);const o=Ce.current,i=no.indexOf(e);if(Ce.current=i,t&&-1!==o&&o!==i){const e=yo(i-o);for(let t=o+e;t!==i;t+=e){const e=no[t];_o(e)||r.add(n(e))}}}else r.delete(l),Ce.current=-1;a(r)}function nt(e){if(!g)return;const o=new Set(h);o.has(e)?o.delete(e):o.add(e),g(o)}function rt(e){if(!(e.target instanceof Element))return;const l=null!==e.target.closest(".rdg-cell"),i=zo&&e.target===ke.current;if(!l&&!i)return;const{key:c,keyCode:a}=e,{rowIdx:d}=ue;if(Ho&&(null!=k||null!=C)&&so(e)&&!_o(no[d])&&"SELECT"===ue.mode){const e=86;if(a===67)return void function(){const{idx:e,rowIdx:t}=ue,n=o[lt(t)],r=He[e].key;_e({row:n,columnKey:r}),null==C||C({sourceRow:n,sourceColumnKey:r})}();if(a===e)return void function(){if(!k||!r||null===pe||!ft(ue))return;const{idx:e,rowIdx:t}=ue,n=o[lt(t)],l=k({sourceRow:pe.row,sourceColumnKey:pe.columnKey,targetRow:n,targetColumnKey:He[e].key});it(t,l)}()}if(at(d)){const o=no[d];if(_o(o)&&-1===ue.idx&&(c===Pe&&o.isExpanded||c===Te&&!o.isExpanded))return e.preventDefault(),void nt(o.id)}switch(e.key){case"Escape":return void _e(null);case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":!function(e){const{key:o,shiftKey:n}=e;let r=Q;if("Tab"===o){if(function({cellNavigationMode:e,maxColIdx:o,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:l},shiftKey:i}){if("NONE"===e||"CHANGE_ROW"===e){const e=l===o,c=0===l,s=r===n,a=r===t;return i?c&&a:e&&s}return!1}({shiftKey:n,cellNavigationMode:Q,maxColIdx:Ao,minRowIdx:Po,maxRowIdx:To,selectedPosition:ue}))return void ct();r="NONE"===Q?"CHANGE_ROW":Q}e.preventDefault();const l=so(e),i=function(e,o,t){const{idx:n,rowIdx:r}=ue,l=no[r],i=No&&-1===n;if(e===Pe&&i&&_o(l)&&!l.isExpanded&&0!==l.level){let e=-1;for(let o=ue.rowIdx-1;o>=0;o--){const t=no[o];if(_o(t)&&t.id===l.parentId){e=o;break}}if(-1!==e)return{idx:n,rowIdx:e}}switch(e){case"ArrowUp":return{idx:n,rowIdx:r-1};case"ArrowDown":return{idx:n,rowIdx:r+1};case Pe:return{idx:n-1,rowIdx:r};case Te:return{idx:n+1,rowIdx:r};case"Tab":return{idx:n+(t?-1:1),rowIdx:r};case"Home":return i?{idx:n,rowIdx:0}:{idx:0,rowIdx:o?Po:r};case"End":return i?{idx:n,rowIdx:no.length-1}:{idx:Ao,rowIdx:o?To:r};case"PageUp":{if(ue.rowIdx===Po)return ue;const e=ho(r)+go(r)-ze;return{idx:n,rowIdx:e>0?bo(e):0}}case"PageDown":{if(ue.rowIdx>=no.length)return ue;const e=ho(r)+ze;return{idx:n,rowIdx:e<ao?bo(e):no.length-1}}default:return ue}}(o,l,n);if(Qo(ue,i))return;pt(function({cellNavigationMode:e,columns:o,colSpanColumns:t,rows:n,summaryRows:r,minRowIdx:l,maxRowIdx:i,currentPosition:{idx:c},nextPosition:s,lastFrozenColumnIndex:a,isCellWithinBounds:d,isGroupRow:u}){let{idx:f,rowIdx:p}=s;const _=e=>{if(p>=0&&p<n.length){const e=n[p];if(u(e))return}for(const o of t){const t=o.idx;if(t>f)break;const l=po({rows:n,summaryRows:r,rowIdx:p,lastFrozenColumnIndex:a,column:o,isGroupRow:u});if(l&&f>t&&f<l+t){f=t+(e?l:0);break}}};if(d(s)&&_(f-c>0),"NONE"!==e){const t=o.length,n=-1===f;f===t?"CHANGE_ROW"===e?p===i||(f=0,p+=1):f=0:n&&("CHANGE_ROW"===e?p===l||(p-=1,f=t-1):f=t-1,_(!1))}return{idx:f,rowIdx:p}}({columns:He,colSpanColumns:Ge,rows:no,summaryRows:t,minRowIdx:Po,maxRowIdx:To,lastFrozenColumnIndex:qe,cellNavigationMode:r,currentPosition:ue,nextPosition:i,isCellWithinBounds:dt,isGroupRow:_o}))}(e);break;default:!function(e){var o;if(!Ho)return;const t=no[ue.rowIdx];if(_o(t))return;const{key:r,shiftKey:l}=e;if(Fe&&l&&" "===r){ko(n);const o=n(t);return tt({row:t,checked:!s.has(o),isShiftClick:!1}),void e.preventDefault()}const i=He[ue.idx];if(null==(o=i.editorOptions)||null==o.onCellKeyDown||o.onCellKeyDown(e),e.isDefaultPrevented())return;ft(ue)&&function(e){return!co.has(e.key)}(e)&&fe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"EDIT",row:t,originalRow:t})))}(e)}}function lt(e){return zo?o.indexOf(no[e]):e}function it(e,t){if("function"!=typeof r)return;const n=lt(e);if(t===o[n])return;const l=[...o];l[n]=t,r(l,{indexes:[n],column:He[ue.idx]})}function ct(){"EDIT"===ue.mode&&it(ue.rowIdx,ue.row)}function st(e){return e>=Oo&&e<=Ao}function at(e){return e>=0&&e<no.length}function dt({idx:e,rowIdx:o}){return o>=Po&&o<=To&&st(e)}function ut({idx:e,rowIdx:o}){return at(o)&&st(e)}function ft(e){return ut(e)&&uo({columns:He,rows:no,selectedPosition:e,isGroupRow:_o})}function pt(e,o){if(dt(e))if(ct(),o&&ft(e)){const o=no[e.rowIdx];fe({...e,mode:"EDIT",row:o,originalRow:o})}else Qo(ue,e)?_t(e):fe({...e,mode:"SELECT"})}function _t({idx:e,rowIdx:o}){const{current:n}=Re;if(n){if("number"==typeof e&&e>qe){if(null!=o||(o=ue.rowIdx),!dt({rowIdx:o,idx:e}))return;const{clientWidth:r}=n,l=He[e],{left:i,width:c}=$e.get(l);let s=i+c;const a=po({rows:no,summaryRows:t,rowIdx:o,lastFrozenColumnIndex:qe,column:l,isGroupRow:_o});if(void 0!==a){const{left:e,width:o}=$e.get(He[l.idx+a-1]);s=e+o}const d=s>r+ce,u=Ae?-1:1;i<ce+Ye?n.scrollLeft=(i-Ye)*u:d&&(n.scrollLeft=(s-r)*u)}if("number"==typeof o&&at(o)){const e=ho(o),t=go(o);e<oe?n.scrollTop=e:e+t>oe+ze&&(n.scrollTop=e+t-ze)}}}function ht(e){if(void 0===ve)return;const{rowIdx:o}=ue;return(o<ve?o<e&&e<=ve:o>e&&e>=ve)?ue.idx:void 0}function gt(e){if(ue.rowIdx===e&&"EDIT"!==ue.mode&&!zo&&null!=x)return We(Xo,{rows:o,columns:He,selectedPosition:ue,isCellEditable:ft,latestDraggedOverRowIdx:xe,onRowsChange:r,onFill:x,setDragging:ge,setDraggedOverRowIdx:ot})}function vt(e){if(ue.rowIdx!==e||"SELECT"===ue.mode)return;const{idx:o,row:t}=ue,n=He[o],r=io(n,qe,{type:"ROW",row:t}),l=()=>{fe((({idx:e,rowIdx:o})=>({idx:e,rowIdx:o,mode:"SELECT"})))};return no[ue.rowIdx]!==ue.originalRow&&l(),We(Vo,{column:n,colSpan:r,row:t,onRowChange:(e,o)=>{o?(it(ue.rowIdx,e),l()):fe((o=>({...o,row:e})))},closeEditor:l,scrollToCell:()=>{_t(ue)}},n.key)}function mt(e){const o=He[ue.idx];return void 0===o||ue.rowIdx!==e||Co.includes(o)?Co:ue.idx>Ke?[...Co,o]:[...Co.slice(0,qe+1),o,...Co.slice(qe+1)]}(ue.idx>Ao||ue.rowIdx>To)&&(fe(Jo),ot(void 0));let wt=`${q}px`;no.length>0&&(wt+=fo),Ee>0&&(wt+=` repeat(${Ee}, ${V}px)`);const bt=-1===ue.idx&&-2!==ue.rowIdx;return We("div",{role:zo?"treegrid":"grid","aria-label":A,"aria-labelledby":P,"aria-describedby":T,"aria-multiselectable":!!Fe||void 0,"aria-colcount":He.length,"aria-rowcount":1+lo+Ee,className:Me("rdg r104f42s700-beta12",E,he&&"rdg-viewport-dragging v7ly7s700-beta12",null!==we&&"cd0kgiy700-beta12"),style:{...z,gridTemplateRows:wt,"--rdg-header-row-height":`${q}px`,"--rdg-summary-row-height":`${V}px`,"--rdg-sign":Ae?-1:1,...function(){if(null===we)return je;const{gridTemplateColumns:e}=je,o=e.split(" ");return o[we.idx]="max-content",{...je,gridTemplateColumns:o.join(" ")}}()},dir:O,ref:Re,onScroll:function(e){const{scrollTop:o,scrollLeft:t}=e.currentTarget;ie(o),se(xo(t)),null==w||w(e)},onKeyDown:rt,"data-testid":D,children:[zo&&We("div",{ref:ke,tabIndex:bt?0:-1,className:Me("fc4f4zb700-beta12",bt&&["rel5gk2700-beta12",-1!==qe&&"r1qymf1z700-beta12"]),style:{gridRowStart:ue.rowIdx+2},onKeyDown:rt}),We(Ve,{value:De,children:[We(Do,{columns:mt(-1),onColumnResize:et,allRowsSelected:Ne,onAllRowsSelectionChange:Wo,sortColumns:d,onSortColumnsChange:u,lastFrozenColumnIndex:qe,selectedCellIdx:Oe?ue.idx:void 0,selectCell:Bo,shouldFocusGrid:!No,direction:O}),0===no.length&&Z?Z:We(y,{children:[We(to,{value:Mo,children:function(){const e=[];let o=0;const{idx:t,rowIdx:r}=ue,l=Ho&&r>oo?oo+1:oo;for(let c=Ho&&r<eo?eo-1:eo;c<=l;c++){const l=c===eo-1||c===oo+1,a=l?r:c;let d=Co;const u=He[t];void 0!==u&&(d=l?[u]:mt(a));const f=no[a],p=1+a+1;if(_o(f)){({startRowIndex:o}=f);const l=Fe&&f.childRows.every((e=>s.has(n(e))));e.push(We(jo,{"aria-level":f.level+1,"aria-setsize":f.setSize,"aria-posinset":f.posInSet+1,"aria-rowindex":1+o+1,"aria-selected":Fe?l:void 0,id:f.id,groupKey:f.groupKey,viewportColumns:d,childRows:f.childRows,rowIdx:a,row:f,gridRowStart:p,height:go(a),level:f.level,isExpanded:f.isExpanded,selectedCellIdx:r===a?t:void 0,isRowSelected:l,selectGroup:Uo,toggleGroup:Zo},f.id));continue}let _;o++;let h=!1;var i;if("function"==typeof n)_=n(f),h=null!=(i=null==s?void 0:s.has(_))&&i;else _=zo?o:a;e.push(We(X,{"aria-rowindex":1+(zo?o:a)+1,"aria-selected":Fe?h:void 0,rowIdx:a,row:f,viewportColumns:d,isRowSelected:h,onRowClick:v,onRowDoubleClick:m,rowClass:F,gridRowStart:p,height:go(a),copiedCellIdx:null!==pe&&pe.row===f?He.findIndex((e=>e.key===pe.columnKey)):void 0,selectedCellIdx:r===a?t:void 0,draggedOverCellIdx:ht(a),setDraggedOverRowIdx:he?ot:void 0,lastFrozenColumnIndex:qe,onRowChange:Lo,selectCell:Ko,selectedCellDragHandle:gt(a),selectedCellEditor:vt(a)},_))}return e}()}),null==t?void 0:t.map(((e,o)=>{const n=1+no.length+o+1,r=1+no.length+o-1,l=ue.rowIdx===r,i=ze>ao?Se-V*(t.length-o):void 0,c=void 0===i?V*(t.length-1-o):void 0;return We(qo,{"aria-rowindex":1+lo+o+1,rowIdx:o,gridRowStart:n,row:e,top:i,bottom:c,viewportColumns:mt(r),lastFrozenColumnIndex:qe,selectedCellIdx:l?ue.idx:void 0,selectCell:$o},o)}))]})]})]})}function Qo(e,o){return e.idx===o.idx&&e.rowIdx===o.rowIdx}const et=we(Zo);function ot(e,o,t){var n=o;return i([],e,!0).sort((function(e,o){return e[n]<o[n]?t?1:-1:e[n]>o[n]?t?-1:1:0}))}Le(".t16y9g8l700-beta12{appearance:none;background-color:var(--rdg-background-color);block-size:100%;border:2px solid #ccc;box-sizing:border-box;color:var(--rdg-color);font-family:inherit;font-size:var(--rdg-font-size);inline-size:100%;padding-block:0;padding-inline:6px;vertical-align:top}.t16y9g8l700-beta12:focus{border-color:var(--rdg-selection-color);outline:none}.t16y9g8l700-beta12::placeholder{color:#999;opacity:1}",{insertAt:"top"});var tt=function(e){return w("div",{style:{textAlign:"center",gridColumn:"1/-1"}},e.message,w("span",null,"--- * --- * ---"))},nt=function(e){var t,n=e.table,r=e.sort,l=[re((function(){return t.columns()}),[t=n,t.dataChecksum()]),re((function(){return t.data()}),[t,t.dataChecksum()])],c=l[0],s=l[1],a=n.multiSelect(),d=n.columnTypes(),u=n.columnPatterns(),f=n.columnFormats(),p=ee([]),_=p[0],h=p[1],g=ee(),v=g[0],m=g[1],b=ee([]),y=b[0],x=b[1],C=ee(new Set),k=C[0],R=C[1];oe((function(){h(i(i([],a?[lo]:[],!0),c.map((function(e){var t,n,r,l;switch(null!==(t=d[e])&&void 0!==t?t:"string"){case"time":r=void 0!==u[e]?o.timeParse(u[e]):void 0,l=void 0!==f[e]?o.timeFormat(f[e]):void 0;break;case"number":n=function(e){return w("div",{style:{textAlign:"right"}},e.row[e.column.key])};default:l=void 0!==f[e]?o.format(f[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,formatter:n,__hpcc_pattern:r,__hpcc_format:l}})),!0))}),[f,u,d,c,a]);var I=le((function(e){var o=e.slice(-1)[0],t=void 0!==o,n="DESC"===(null==o?void 0:o.direction);m(o),x(ot(y,t?o.columnKey:"key",!!t&&n))}),[y]),S=le((function(e){return e.key}),[]),E=le((function(e){R(e)}),[]),z=le((function(e,o){n.onRowClickCallback(e,o.key)}),[n]);return oe((function(){var e=s.map((function(e,o){var t={key:o};return _.forEach((function(o,n){var r=e[n];o.__hpcc_pattern&&o.__hpcc_format?r=o.__hpcc_format(o.__hpcc_pattern(r)):o.__hpcc_pattern?r=o.__hpcc_pattern(r).toString():o.__hpcc_format&&(r=o.__hpcc_format(r)),t[o.key]=r})),t}));(null==r?void 0:r.attribute)&&(e=ot(e,r.attribute,r.descending)),x(e)}),[_,s,r]),w(et,{columns:_,headerRowHeight:24,rows:y,rowKeyGetter:S,rowHeight:20,components:{noRowsFallback:w(tt,{message:n.noDataMessage()})},className:n.darkMode()?"rdg-dark":"rdg-light",sortColumns:v?[v]:[],onSortColumnsChange:I,selectedRows:k,onSelectedRowsChange:a?E:void 0,onRowClick:a?void 0:z,"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};!function(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color);inline-size:16px}");var rt=function(e){function i(){return e.call(this)||this}return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}(i,e),i.prototype.columnType=function(e,o){var t;return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes(n(n({},this.columnTypes()),((t={})[e]=o,t))),this)},i.prototype.columnPattern=function(e,o){var t;return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns(n(n({},this.columnPatterns()),((t={})[e]=o,t))),this)},i.prototype.columnFormat=function(e,o){var t;return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats(n(n({},this.columnFormats()),((t={})[e]=o,t))),this)},i.prototype.onRowClickCallback=function(e,o){var t;this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,null!==(t=this._prevColumn)&&void 0!==t?t:"",!1),e&&this.click(e,o,!0),this._prevRow=e,this._prevColumn=o},i.prototype.enter=function(o,t){e.prototype.enter.call(this,o,t),this._div=t.append("div")},i.prototype.update=function(o,t){e.prototype.update.call(this,o,t),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),function(e,o,t){null==o.__k&&(o.textContent=""),L(e,o),"function"==typeof t&&t(),e&&e.__c}(w(nt,{table:this}),this._div.node())},i.prototype.exit=function(o,t){!function(e){!!e.__k&&L(null,e)}(this._div.node()),this._div.remove(),e.prototype.exit.call(this,o,t)},i.prototype.click=function(e,o,t){},r([o.publish("...empty...","string","No Data Message"),l("design:type",Function)],i.prototype,"noDataMessage",void 0),r([o.publish(!1,"boolean","Dark Mode"),l("design:type",Function)],i.prototype,"darkMode",void 0),r([o.publish(!1,"boolean","Multiple Selection"),l("design:type",Function)],i.prototype,"multiSelect",void 0),r([o.publish({},"object",'Column Types ("boolean" | "number" | "string" | "time"'),l("design:type",Function)],i.prototype,"columnTypes",void 0),r([o.publish({},"object","Column Patterns"),l("design:type",Function)],i.prototype,"columnPatterns",void 0),r([o.publish({},"object","Column Formats"),l("design:type",Function)],i.prototype,"columnFormats",void 0),i}(o.HTMLWidget);rt.prototype._class+=" dgrid2_Table",e.BUILD_VERSION="2.104.0",e.PKG_NAME="@hpcc-js/dgrid2",e.PKG_VERSION="2.3.0",e.Table=rt,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=index.min.js.map