@sheetxl/studio-mui 0.6.5 → 0.6.7

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.
Files changed (45) hide show
  1. package/browser/cjs/{BiXR_PE14hrnbjxg.cjs → 0lIBM05Oo-mPaz-z.cjs} +1 -1
  2. package/browser/cjs/5JvwHMk_pfEj4cZH.cjs +42 -0
  3. package/browser/cjs/{BdFSVVjjrhlXHPpK.cjs → BOqCECEhgUXx-4kI.cjs} +2 -2
  4. package/browser/cjs/BaMk9jpFcmdBLRiR.cjs +6 -0
  5. package/browser/cjs/CCynZK017xahlNmi.cjs +18 -0
  6. package/browser/cjs/{mocbOdB4d2s-EcmO.cjs → CG7Z-lZAq5czFOc4.cjs} +2 -2
  7. package/browser/cjs/CRAcvjlcqcZK3WEL.cjs +20 -0
  8. package/browser/cjs/{CHMLnYdMrxKoXUT-.cjs → CtkBZTjdHqYp7xft.cjs} +1 -1
  9. package/browser/cjs/{Bkxhpequ7eXKflN2.cjs → DmM-DjGh015RZXzh.cjs} +2 -2
  10. package/browser/cjs/{D3da_TJhCMaA-Jvd.cjs → U3YgQ0fN5bvp9-Kq.cjs} +2 -2
  11. package/browser/cjs/{CZibZcMftaStnfGU.cjs → aiA3IvXgAikOrMwA.cjs} +1 -1
  12. package/browser/cjs/{Cgcw3wtvrTN9St3u.cjs → dW-tltmR8b4Fnr8g.cjs} +1 -1
  13. package/browser/cjs/index.cjs +2 -2
  14. package/browser/esm/{DNCGkZj-AkmOiPjY.mjs → BxFzIKTovnlqjZa-.mjs} +18 -18
  15. package/browser/esm/{BMSwIfNeNw_icSmZ.mjs → C1aztXQ58ekuzis6.mjs} +1 -1
  16. package/browser/esm/{CmyX3-QWO3ckLyv3.mjs → C9vgT92BfuOKSqpB.mjs} +1 -1
  17. package/browser/esm/{ClhYgmXRwTR4BGDR.mjs → COc-f5ehGeQiPNRP.mjs} +183 -183
  18. package/browser/esm/{BM3rF0tr-rYuco_b.mjs → Ck2WRaGuINSXU-Ds.mjs} +2 -2
  19. package/browser/esm/{DrthDGd5PMQYMoAg.mjs → DVbgcz-P2Z8D_yei.mjs} +2 -2
  20. package/browser/esm/{DnGxqCVe_CBDfW9k.mjs → Dcag5-NLJslhyfpE.mjs} +2 -2
  21. package/browser/esm/{BezPorS4-_Cf52pp.mjs → DnJZFwOGICYRq_KW.mjs} +1 -1
  22. package/browser/esm/{DhXNvjm-1jhrLfp9.mjs → EmQd5txQ_ErHLAeT.mjs} +2 -2
  23. package/browser/esm/MgTnV8wS66lhumxT.mjs +4482 -0
  24. package/browser/esm/{1-hjYTXne52O8OX_.mjs → _08whbc3oA7BY_S7.mjs} +1 -1
  25. package/browser/esm/{C79_LGbHVJJOQeTJ.mjs → he9qd0KA2ONjy_rM.mjs} +88 -88
  26. package/browser/esm/index.mjs +53 -52
  27. package/licenses/dependencies.txt +142 -142
  28. package/node/esm/{Diz6_VGLA3UKNUY9.mjs → B5K3cjwd0usYef8w.mjs} +3 -3
  29. package/node/esm/{Bzl7JElFM6-FCHSt.mjs → BAHfO9ALnEUni4Ts.mjs} +1 -1
  30. package/node/esm/{CztOzeLDzog1fyuN.mjs → BfPfvgdZrUoZvEme.mjs} +1 -1
  31. package/node/esm/{DGRe7O8zr5SC-f6x.mjs → BqPC_rbjZN2Jy_y4.mjs} +1 -1
  32. package/node/esm/{6F8OSHeXM9CEkZqx.mjs → CHNFCXGADLFVCwYo.mjs} +1 -1
  33. package/node/esm/{Cnq5yNOuwBbKS_5h.mjs → Cgxo3ZcSke1eBYVG.mjs} +1 -1
  34. package/node/esm/{CIovZ9X_7yBfY6gS.mjs → Ciwkv8DXp86zUjTb.mjs} +1 -1
  35. package/node/esm/{B8vjMUZKgFrmm-ow.mjs → DESr6vZQNH2lHWZ9.mjs} +1 -1
  36. package/node/esm/{Ky0P7yYYcyx15RUV.mjs → DhN2m_4WFHDBADx-.mjs} +1 -1
  37. package/node/esm/{B6FKzcfPmEc-2C3u.mjs → IID7UVIiXTHvqYHK.mjs} +1 -1
  38. package/node/esm/index.mjs +1246 -1170
  39. package/package.json +9 -9
  40. package/types/index.d.ts +30 -11
  41. package/browser/cjs/BMxf7QrY-RKnhIl4.cjs +0 -6
  42. package/browser/cjs/BS2wS_sZa-gKkoFx.cjs +0 -20
  43. package/browser/cjs/BTFMHzaEfycvibMu.cjs +0 -42
  44. package/browser/cjs/CUnh1LhecJpjlHt_.cjs +0 -18
  45. package/browser/esm/BZW3vg34hfduKfB_.mjs +0 -4408
@@ -1,42 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.5
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),w=require("react"),Nu=require("@mui/material/styles"),Iu=require("@mui/material"),Y=require("./BS2wS_sZa-gKkoFx.cjs"),Vu=require("@sheetxl/utils-react");var Xu=Y.requirePropTypes();const de=Y.getDefaultExportFromCjs(Xu);function xe(t){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xe(t)}var qu=/^\s+/,Yu=/\s+$/;function _(t,n){if(n=n||{},(t=t||"")instanceof _)return t;if(!(this instanceof _))return new _(t,n);var e=function(r){var o={r:0,g:0,b:0},u=1,a=null,s=null,i=null,f=!1,l=!1;typeof r=="string"&&(r=function(d){d=d.replace(qu,"").replace(Yu,"").toLowerCase();var c,b=!1;if(Ze[d])d=Ze[d],b=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(c=B.rgb.exec(d))?{r:c[1],g:c[2],b:c[3]}:(c=B.rgba.exec(d))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=B.hsl.exec(d))?{h:c[1],s:c[2],l:c[3]}:(c=B.hsla.exec(d))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=B.hsv.exec(d))?{h:c[1],s:c[2],v:c[3]}:(c=B.hsva.exec(d))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=B.hex8.exec(d))?{r:D(c[1]),g:D(c[2]),b:D(c[3]),a:Mt(c[4]),format:b?"name":"hex8"}:(c=B.hex6.exec(d))?{r:D(c[1]),g:D(c[2]),b:D(c[3]),format:b?"name":"hex"}:(c=B.hex4.exec(d))?{r:D(c[1]+""+c[1]),g:D(c[2]+""+c[2]),b:D(c[3]+""+c[3]),a:Mt(c[4]+""+c[4]),format:b?"name":"hex8"}:(c=B.hex3.exec(d))?{r:D(c[1]+""+c[1]),g:D(c[2]+""+c[2]),b:D(c[3]+""+c[3]),format:b?"name":"hex"}:!1}(r)),xe(r)=="object"&&(I(r.r)&&I(r.g)&&I(r.b)?(h=r.r,p=r.g,v=r.b,o={r:255*k(h,255),g:255*k(p,255),b:255*k(v,255)},f=!0,l=String(r.r).substr(-1)==="%"?"prgb":"rgb"):I(r.h)&&I(r.s)&&I(r.v)?(a=ce(r.s),s=ce(r.v),o=function(d,c,b){d=6*k(d,360),c=k(c,100),b=k(b,100);var g=Math.floor(d),y=d-g,x=b*(1-c),j=b*(1-y*c),C=b*(1-(1-y)*c),R=g%6,L=[b,j,x,x,C,b][R],T=[C,b,b,j,x,x][R],O=[x,x,C,b,b,j][R];return{r:255*L,g:255*T,b:255*O}}(r.h,a,s),f=!0,l="hsv"):I(r.h)&&I(r.s)&&I(r.l)&&(a=ce(r.s),i=ce(r.l),o=function(d,c,b){var g,y,x;function j(L,T,O){return O<0&&(O+=1),O>1&&(O-=1),O<1/6?L+6*(T-L)*O:O<.5?T:O<2/3?L+(T-L)*(2/3-O)*6:L}if(d=k(d,360),c=k(c,100),b=k(b,100),c===0)g=y=x=b;else{var C=b<.5?b*(1+c):b+c-b*c,R=2*b-C;g=j(R,C,d+1/3),y=j(R,C,d),x=j(R,C,d-1/3)}return{r:255*g,g:255*y,b:255*x}}(r.h,a,i),f=!0,l="hsl"),r.hasOwnProperty("a")&&(u=r.a));var h,p,v;return u=bu(u),{ok:f,format:r.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:u}}(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||e.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}function wt(t,n,e){t=k(t,255),n=k(n,255),e=k(e,255);var r,o,u=Math.max(t,n,e),a=Math.min(t,n,e),s=(u+a)/2;if(u==a)r=o=0;else{var i=u-a;switch(o=s>.5?i/(2-u-a):i/(u+a),u){case t:r=(n-e)/i+(n<e?6:0);break;case n:r=(e-t)/i+2;break;case e:r=(t-n)/i+4}r/=6}return{h:r,s:o,l:s}}function _t(t,n,e){t=k(t,255),n=k(n,255),e=k(e,255);var r,o,u=Math.max(t,n,e),a=Math.min(t,n,e),s=u,i=u-a;if(o=u===0?0:i/u,u==a)r=0;else{switch(u){case t:r=(n-e)/i+(n<e?6:0);break;case n:r=(e-t)/i+2;break;case e:r=(t-n)/i+4}r/=6}return{h:r,s:o,v:s}}function xt(t,n,e,r){var o=[z(Math.round(t).toString(16)),z(Math.round(n).toString(16)),z(Math.round(e).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function jt(t,n,e,r){return[z(vu(r)),z(Math.round(t).toString(16)),z(Math.round(n).toString(16)),z(Math.round(e).toString(16))].join("")}function Gu(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.s-=n/100,e.s=Me(e.s),_(e)}function Ku(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.s+=n/100,e.s=Me(e.s),_(e)}function Ju(t){return _(t).desaturate(100)}function Qu(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.l+=n/100,e.l=Me(e.l),_(e)}function Zu(t,n){n=n===0?0:n||10;var e=_(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-n/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-n/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-n/100*255))),_(e)}function es(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.l-=n/100,e.l=Me(e.l),_(e)}function ts(t,n){var e=_(t).toHsl(),r=(e.h+n)%360;return e.h=r<0?360+r:r,_(e)}function rs(t){var n=_(t).toHsl();return n.h=(n.h+180)%360,_(n)}function Ot(t,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var e=_(t).toHsl(),r=[_(t)],o=360/n,u=1;u<n;u++)r.push(_({h:(e.h+u*o)%360,s:e.s,l:e.l}));return r}function ns(t){var n=_(t).toHsl(),e=n.h;return[_(t),_({h:(e+72)%360,s:n.s,l:n.l}),_({h:(e+216)%360,s:n.s,l:n.l})]}function os(t,n,e){n=n||6,e=e||30;var r=_(t).toHsl(),o=360/e,u=[_(t)];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,u.push(_(r));return u}function is(t,n){n=n||6;for(var e=_(t).toHsv(),r=e.h,o=e.s,u=e.v,a=[],s=1/n;n--;)a.push(_({h:r,s:o,v:u})),u=(u+s)%1;return a}_.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,n,e,r=this.toRgb();return t=r.r/255,n=r.g/255,e=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=bu(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=_t(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=_t(this._r,this._g,this._b),n=Math.round(360*t.h),e=Math.round(100*t.s),r=Math.round(100*t.v);return this._a==1?"hsv("+n+", "+e+"%, "+r+"%)":"hsva("+n+", "+e+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=wt(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=wt(this._r,this._g,this._b),n=Math.round(360*t.h),e=Math.round(100*t.s),r=Math.round(100*t.l);return this._a==1?"hsl("+n+", "+e+"%, "+r+"%)":"hsla("+n+", "+e+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return xt(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(n,e,r,o,u){var a=[z(Math.round(n).toString(16)),z(Math.round(e).toString(16)),z(Math.round(r).toString(16)),z(vu(o))];return u&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*k(this._r,255))+"%",g:Math.round(100*k(this._g,255))+"%",b:Math.round(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%)":"rgba("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(as[xt(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var n="#"+jt(this._r,this._g,this._b,this._a),e=n,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=_(t);e="#"+jt(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+n+",endColorstr="+e+")"},toString:function(t){var n=!!t;t=t||this._format;var e=!1,r=this._a<1&&this._a>=0;return n||!r||t!=="hex"&&t!=="hex6"&&t!=="hex3"&&t!=="hex4"&&t!=="hex8"&&t!=="name"?(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),t!=="hex"&&t!=="hex6"||(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString()):t==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return _(this.toString())},_applyModification:function(t,n){var e=t.apply(null,[this].concat([].slice.call(n)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(Qu,arguments)},brighten:function(){return this._applyModification(Zu,arguments)},darken:function(){return this._applyModification(es,arguments)},desaturate:function(){return this._applyModification(Gu,arguments)},saturate:function(){return this._applyModification(Ku,arguments)},greyscale:function(){return this._applyModification(Ju,arguments)},spin:function(){return this._applyModification(ts,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(os,arguments)},complement:function(){return this._applyCombination(rs,arguments)},monochromatic:function(){return this._applyCombination(is,arguments)},splitcomplement:function(){return this._applyCombination(ns,arguments)},triad:function(){return this._applyCombination(Ot,[3])},tetrad:function(){return this._applyCombination(Ot,[4])}},_.fromRatio=function(t,n){if(xe(t)=="object"){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=r==="a"?t[r]:ce(t[r]));t=e}return _(t,n)},_.equals=function(t,n){return!(!t||!n)&&_(t).toRgbString()==_(n).toRgbString()},_.random=function(){return _.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},_.mix=function(t,n,e){e=e===0?0:e||50;var r=_(t).toRgb(),o=_(n).toRgb(),u=e/100;return _({r:(o.r-r.r)*u+r.r,g:(o.g-r.g)*u+r.g,b:(o.b-r.b)*u+r.b,a:(o.a-r.a)*u+r.a})},_.readability=function(t,n){var e=_(t),r=_(n);return(Math.max(e.getLuminance(),r.getLuminance())+.05)/(Math.min(e.getLuminance(),r.getLuminance())+.05)},_.isReadable=function(t,n,e){var r,o,u=_.readability(t,n);switch(o=!1,(r=function(a){var s,i;return s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase(),i=(a.size||"small").toLowerCase(),s!=="AA"&&s!=="AAA"&&(s="AA"),i!=="small"&&i!=="large"&&(i="small"),{level:s,size:i}}(e)).level+r.size){case"AAsmall":case"AAAlarge":o=u>=4.5;break;case"AAlarge":o=u>=3;break;case"AAAsmall":o=u>=7}return o},_.mostReadable=function(t,n,e){var r,o,u,a,s=null,i=0;o=(e=e||{}).includeFallbackColors,u=e.level,a=e.size;for(var f=0;f<n.length;f++)(r=_.readability(t,n[f]))>i&&(i=r,s=_(n[f]));return _.isReadable(t,s,{level:u,size:a})||!o?s:(e.includeFallbackColors=!1,_.mostReadable(t,["#fff","#000"],e))};var Ze=_.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},as=_.hexNames=function(t){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}(Ze);function bu(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function k(t,n){(function(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1})(t)&&(t="100%");var e=function(r){return typeof r=="string"&&r.indexOf("%")!=-1}(t);return t=Math.min(n,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*n,10)/100),Math.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function Me(t){return Math.min(1,Math.max(0,t))}function D(t){return parseInt(t,16)}function z(t){return t.length==1?"0"+t:""+t}function ce(t){return t<=1&&(t=100*t+"%"),t}function vu(t){return Math.round(255*parseFloat(t)).toString(16)}function Mt(t){return D(t)/255}var q,be,ve,B=(be="[\\s|\\(]+("+(q="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",ve="[\\s|\\(]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",{CSS_UNIT:new RegExp(q),rgb:new RegExp("rgb"+be),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+be),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+be),hsva:new RegExp("hsva"+ve),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function I(t){return!!B.CSS_UNIT.exec(t)}var St,Et,Ct,At,kt,Rt,Pt,Tt,Lt,Ut,Ft,Dt,Bt,zt,Ht,Wt,$t,Nt,It,Vt,Xt,qt,Yt,Gt,Kt,Jt,Qt,Zt,F={},re={};function gu(){if(Et)return St;Et=1;var t=typeof Y.commonjsGlobal=="object"&&Y.commonjsGlobal&&Y.commonjsGlobal.Object===Object&&Y.commonjsGlobal;return St=t}function $(){if(At)return Ct;At=1;var t=gu(),n=typeof self=="object"&&self&&self.Object===Object&&self,e=t||n||Function("return this")();return Ct=e}function le(){if(Rt)return kt;Rt=1;var t=$().Symbol;return kt=t}function J(){if(Dt)return Ft;Dt=1;var t=le(),n=function(){if(Tt)return Pt;Tt=1;var o=le(),u=Object.prototype,a=u.hasOwnProperty,s=u.toString,i=o?o.toStringTag:void 0;return Pt=function(f){var l=a.call(f,i),h=f[i];try{f[i]=void 0;var p=!0}catch{}var v=s.call(f);return p&&(l?f[i]=h:delete f[i]),v}}(),e=function(){if(Ut)return Lt;Ut=1;var o=Object.prototype.toString;return Lt=function(u){return o.call(u)}}(),r=t?t.toStringTag:void 0;return Ft=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":r&&r in Object(o)?n(o):e(o)}}function H(){if(zt)return Bt;zt=1;var t=Array.isArray;return Bt=t}function V(){return Wt?Ht:(Wt=1,Ht=function(t){return t!=null&&typeof t=="object"})}function us(){if(qt)return Xt;qt=1;var t=(Vt||(Vt=1,It=function(e){return function(r,o,u){for(var a=-1,s=Object(r),i=u(r),f=i.length;f--;){var l=i[e?f:++a];if(o(s[l],l,s)===!1)break}return r}}),It),n=t();return Xt=n}function yu(){if(Zt)return Qt;Zt=1;var t=function(){if(Jt)return Kt;Jt=1;var a=J(),s=V();return Kt=function(i){return s(i)&&a(i)=="[object Arguments]"}}(),n=V(),e=Object.prototype,r=e.hasOwnProperty,o=e.propertyIsEnumerable,u=t(function(){return arguments}())?t:function(a){return n(a)&&r.call(a,"callee")&&!o.call(a,"callee")};return Qt=u}var er,tr,rr,nr,or,ir,ar,ur,sr,fr,cr,Ae={exports:{}};function tt(){return rr||(rr=1,function(t,n){var e=$(),r=tr?er:(tr=1,er=function(){return!1}),o=n&&!n.nodeType&&n,u=o&&t&&!t.nodeType&&t,a=u&&u.exports===o?e.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;t.exports=s}(Ae,Ae.exports)),Ae.exports}function mu(){if(or)return nr;or=1;var t=/^(?:0|[1-9]\d*)$/;return nr=function(n,e){var r=typeof n;return!!(e=e??9007199254740991)&&(r=="number"||r!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<e}}function rt(){return ar?ir:(ar=1,ir=function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})}function nt(){return cr?fr:(cr=1,fr=function(t){return function(n){return t(n)}})}var lr,hr,pr,dr,br,vr,gr,yr,mr,wr,_r,xr,jr,Or,Mr,Sr,Er,Cr,Ar,kr,Rr,Pr,Tr,Lr,Ur,Fr,Dr,Br,zr,Hr,Wr,$r,Nr,ke,Ir,Vr,Xr,qr,Yr,Gr,Kr,Re,Jr,Pe,Qr,Zr,en,Te,tn,rn,nn,on,an,un,sn,fn,cn,ln,hn,pn,dn,bn,vn,gn,yn,mn,wn,_n,xn,jn,On,Mn,Sn,En,Cn,An,kn,Rn,Pn,Tn,Ln,Un,Fn,Dn,Bn,zn,Hn,Wn,$n,Nn,In,Vn,Xn,qn,Yn,Gn,Kn,Jn,Qn,Zn,eo,to,ro,no,oo,io,ao,uo,so,fo,co,lo,ho,po,bo,vo,go,Le,yo,mo,wo,_o,xo,jo,Oo,Mo,So,Ue,Eo,Co,Ao,ko,Ro,Po,To,Lo,Uo,Fo,Do,Fe,Bo,zo,Ho,Wo,$o,No,Io,Vo,Xo,qo,Yo,Go,Ko,De,Jo,Be,Qo,Zo,ei,ti,ri,ni,oi,ii,ai,ui,si,fi,ci,li,hi,pi,di,bi,vi,ze,gi,yi,mi,wi,_i,xi,ji,He,Oi,Mi,Si,Ei,Ci,We,Ai,ki,Ri,Pi,Ti,Li,Ui,Fi,Di,Bi,zi,Hi,Wi,$e,$i,Ni,Ii,Ne,Vi,Xi,qi,Yi,Ie={exports:{}};function ot(){return lr||(lr=1,function(t,n){var e=gu(),r=n&&!n.nodeType&&n,o=r&&t&&!t.nodeType&&t,u=o&&o.exports===r&&e.process,a=function(){try{var s=o&&o.require&&o.require("util").types;return s||u&&u.binding&&u.binding("util")}catch{}}();t.exports=a}(Ie,Ie.exports)),Ie.exports}function wu(){if(pr)return hr;pr=1;var t=function(){if(sr)return ur;sr=1;var u=J(),a=rt(),s=V(),i={};return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,ur=function(f){return s(f)&&a(f.length)&&!!i[u(f)]}}(),n=nt(),e=ot(),r=e&&e.isTypedArray,o=r?n(r):t;return hr=o}function _u(){if(br)return dr;br=1;var t=(Gt||(Gt=1,Yt=function(s,i){for(var f=-1,l=Array(s);++f<s;)l[f]=i(f);return l}),Yt),n=yu(),e=H(),r=tt(),o=mu(),u=wu(),a=Object.prototype.hasOwnProperty;return dr=function(s,i){var f=e(s),l=!f&&n(s),h=!f&&!l&&r(s),p=!f&&!l&&!h&&u(s),v=f||l||h||p,d=v?t(s.length,String):[],c=d.length;for(var b in s)!i&&!a.call(s,b)||v&&(b=="length"||h&&(b=="offset"||b=="parent")||p&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||o(b,c))||d.push(b);return d}}function it(){if(gr)return vr;gr=1;var t=Object.prototype;return vr=function(n){var e=n&&n.constructor;return n===(typeof e=="function"&&e.prototype||t)}}function xu(){return mr?yr:(mr=1,yr=function(t,n){return function(e){return t(n(e))}})}function ss(){if(jr)return xr;jr=1;var t=it(),n=function(){if(_r)return wr;_r=1;var r=xu()(Object.keys,Object);return wr=r}(),e=Object.prototype.hasOwnProperty;return xr=function(r){if(!t(r))return n(r);var o=[];for(var u in Object(r))e.call(r,u)&&u!="constructor"&&o.push(u);return o}}function ue(){return Mr?Or:(Mr=1,Or=function(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")})}function ju(){if(Er)return Sr;Er=1;var t=J(),n=ue();return Sr=function(e){if(!n(e))return!1;var r=t(e);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"}}function Se(){if(Ar)return Cr;Ar=1;var t=ju(),n=rt();return Cr=function(e){return e!=null&&n(e.length)&&!t(e)}}function he(){if(Rr)return kr;Rr=1;var t=_u(),n=ss(),e=Se();return kr=function(r){return e(r)?t(r):n(r)}}function Ou(){if(Tr)return Pr;Tr=1;var t=us(),n=he();return Pr=function(e,r){return e&&t(e,r,n)}}function Mu(){return Ur?Lr:(Ur=1,Lr=function(t){return t})}function at(){if(zr)return Br;zr=1;var t=Ou(),n=function(){if(Dr)return Fr;Dr=1;var e=Mu();return Fr=function(r){return typeof r=="function"?r:e}}();return Br=function(e,r){return e&&t(e,n(r))}}function ut(){if(Wr)return Hr;Wr=1;var t=xu()(Object.getPrototypeOf,Object);return Hr=t}function Su(){return Ir||(Ir=1,ke=function(t,n){for(var e=-1,r=t==null?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}),ke}function st(){return Yr?qr:(Yr=1,qr=function(t,n){return t===n||t!=t&&n!=n})}function ge(){if(Kr)return Gr;Kr=1;var t=st();return Gr=function(n,e){for(var r=n.length;r--;)if(t(n[r][0],e))return r;return-1}}function _e(){if(nn)return rn;nn=1;var t=Xr?Vr:(Xr=1,Vr=function(){this.__data__=[],this.size=0}),n=function(){if(Jr)return Re;Jr=1;var a=ge(),s=Array.prototype.splice;return Re=function(i){var f=this.__data__,l=a(f,i);return!(l<0||(l==f.length-1?f.pop():s.call(f,l,1),--this.size,0))},Re}(),e=function(){if(Qr)return Pe;Qr=1;var a=ge();return Pe=function(s){var i=this.__data__,f=a(i,s);return f<0?void 0:i[f][1]},Pe}(),r=function(){if(en)return Zr;en=1;var a=ge();return Zr=function(s){return a(this.__data__,s)>-1}}(),o=function(){if(tn)return Te;tn=1;var a=ge();return Te=function(s,i){var f=this.__data__,l=a(f,s);return l<0?(++this.size,f.push([s,i])):f[l][1]=i,this},Te}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var f=a[s];this.set(f[0],f[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,rn=u}function fs(){if(vn)return bn;vn=1;var t,n=function(){if(dn)return pn;dn=1;var r=$()["__core-js_shared__"];return pn=r}(),e=(t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return bn=function(r){return!!e&&e in r}}function Eu(){if(yn)return gn;yn=1;var t=Function.prototype.toString;return gn=function(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}}function K(){if(On)return jn;On=1;var t=function(){if(wn)return mn;wn=1;var e=ju(),r=fs(),o=ue(),u=Eu(),a=/^\[object .+?Constructor\]$/,s=Function.prototype,i=Object.prototype,f=s.toString,l=i.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return mn=function(p){return!(!o(p)||r(p))&&(e(p)?h:a).test(u(p))}}(),n=xn?_n:(xn=1,_n=function(e,r){return e?.[r]});return jn=function(e,r){var o=n(e,r);return t(o)?o:void 0}}function ft(){if(Sn)return Mn;Sn=1;var t=K()($(),"Map");return Mn=t}function ye(){if(Cn)return En;Cn=1;var t=K()(Object,"create");return En=t}function cs(){if(Hn)return zn;Hn=1;var t=function(){if(kn)return An;kn=1;var a=ye();return An=function(){this.__data__=a?a(null):{},this.size=0}}(),n=Pn?Rn:(Pn=1,Rn=function(a){var s=this.has(a)&&delete this.__data__[a];return this.size-=s?1:0,s}),e=function(){if(Ln)return Tn;Ln=1;var a=ye(),s=Object.prototype.hasOwnProperty;return Tn=function(i){var f=this.__data__;if(a){var l=f[i];return l==="__lodash_hash_undefined__"?void 0:l}return s.call(f,i)?f[i]:void 0}}(),r=function(){if(Fn)return Un;Fn=1;var a=ye(),s=Object.prototype.hasOwnProperty;return Un=function(i){var f=this.__data__;return a?f[i]!==void 0:s.call(f,i)}}(),o=function(){if(Bn)return Dn;Bn=1;var a=ye();return Dn=function(s,i){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=a&&i===void 0?"__lodash_hash_undefined__":i,this}}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var f=a[s];this.set(f[0],f[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,zn=u}function me(){if(Xn)return Vn;Xn=1;var t=In?Nn:(In=1,Nn=function(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null});return Vn=function(n,e){var r=n.__data__;return t(e)?r[typeof e=="string"?"string":"hash"]:r.map}}function ct(){if(ro)return to;ro=1;var t=function(){if($n)return Wn;$n=1;var a=cs(),s=_e(),i=ft();return Wn=function(){this.size=0,this.__data__={hash:new a,map:new(i||s),string:new a}}}(),n=function(){if(Yn)return qn;Yn=1;var a=me();return qn=function(s){var i=a(this,s).delete(s);return this.size-=i?1:0,i}}(),e=function(){if(Kn)return Gn;Kn=1;var a=me();return Gn=function(s){return a(this,s).get(s)}}(),r=function(){if(Qn)return Jn;Qn=1;var a=me();return Jn=function(s){return a(this,s).has(s)}}(),o=function(){if(eo)return Zn;eo=1;var a=me();return Zn=function(s,i){var f=a(this,s),l=f.size;return f.set(s,i),this.size+=f.size==l?0:1,this}}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var f=a[s];this.set(f[0],f[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,to=u}function lt(){if(ao)return io;ao=1;var t=_e(),n=function(){if(an)return on;an=1;var s=_e();return on=function(){this.__data__=new s,this.size=0}}(),e=sn?un:(sn=1,un=function(s){var i=this.__data__,f=i.delete(s);return this.size=i.size,f}),r=cn?fn:(cn=1,fn=function(s){return this.__data__.get(s)}),o=hn?ln:(hn=1,ln=function(s){return this.__data__.has(s)}),u=function(){if(oo)return no;oo=1;var s=_e(),i=ft(),f=ct();return no=function(l,h){var p=this.__data__;if(p instanceof s){var v=p.__data__;if(!i||v.length<199)return v.push([l,h]),this.size=++p.size,this;p=this.__data__=new f(v)}return p.set(l,h),this.size=p.size,this}}();function a(s){var i=this.__data__=new t(s);this.size=i.size}return a.prototype.clear=n,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=o,a.prototype.set=u,io=a}function ls(){if(ho)return lo;ho=1;var t=ct(),n=so?uo:(so=1,uo=function(o){return this.__data__.set(o,"__lodash_hash_undefined__"),this}),e=co?fo:(co=1,fo=function(o){return this.__data__.has(o)});function r(o){var u=-1,a=o==null?0:o.length;for(this.__data__=new t;++u<a;)this.add(o[u])}return r.prototype.add=r.prototype.push=n,r.prototype.has=e,lo=r}function Cu(){if(yo)return Le;yo=1;var t=ls(),n=(bo||(bo=1,po=function(r,o){for(var u=-1,a=r==null?0:r.length;++u<a;)if(o(r[u],u,r))return!0;return!1}),po),e=go?vo:(go=1,vo=function(r,o){return r.has(o)});return Le=function(r,o,u,a,s,i){var f=1&u,l=r.length,h=o.length;if(l!=h&&!(f&&h>l))return!1;var p=i.get(r),v=i.get(o);if(p&&v)return p==o&&v==r;var d=-1,c=!0,b=2&u?new t:void 0;for(i.set(r,o),i.set(o,r);++d<l;){var g=r[d],y=o[d];if(a)var x=f?a(y,g,d,o,r,i):a(g,y,d,r,o,i);if(x!==void 0){if(x)continue;c=!1;break}if(b){if(!n(o,function(j,C){if(!e(b,C)&&(g===j||s(g,j,u,a,i)))return b.push(C)})){c=!1;break}}else if(g!==y&&!s(g,y,u,a,i)){c=!1;break}}return i.delete(r),i.delete(o),c},Le}function Au(){if(wo)return mo;wo=1;var t=$().Uint8Array;return mo=t}function hs(){if(So)return Mo;So=1;var t=le(),n=Au(),e=st(),r=Cu(),o=(xo||(xo=1,_o=function(i){var f=-1,l=Array(i.size);return i.forEach(function(h,p){l[++f]=[p,h]}),l}),_o),u=(Oo||(Oo=1,jo=function(i){var f=-1,l=Array(i.size);return i.forEach(function(h){l[++f]=h}),l}),jo),a=t?t.prototype:void 0,s=a?a.valueOf:void 0;return Mo=function(i,f,l,h,p,v,d){switch(l){case"[object DataView]":if(i.byteLength!=f.byteLength||i.byteOffset!=f.byteOffset)return!1;i=i.buffer,f=f.buffer;case"[object ArrayBuffer]":return!(i.byteLength!=f.byteLength||!v(new n(i),new n(f)));case"[object Boolean]":case"[object Date]":case"[object Number]":return e(+i,+f);case"[object Error]":return i.name==f.name&&i.message==f.message;case"[object RegExp]":case"[object String]":return i==f+"";case"[object Map]":var c=o;case"[object Set]":var b=1&h;if(c||(c=u),i.size!=f.size&&!b)return!1;var g=d.get(i);if(g)return g==f;h|=2,d.set(i,f);var y=r(c(i),c(f),h,p,v,d);return d.delete(i),y;case"[object Symbol]":if(s)return s.call(i)==s.call(f)}return!1}}function ku(){return Eo||(Eo=1,Ue=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}),Ue}function Ru(){if(Ao)return Co;Ao=1;var t=ku(),n=H();return Co=function(e,r,o){var u=r(e);return n(e)?u:t(u,o(e))}}function Pu(){return To?Po:(To=1,Po=function(){return[]})}function ht(){if(Uo)return Lo;Uo=1;var t=(Ro||(Ro=1,ko=function(o,u){for(var a=-1,s=o==null?0:o.length,i=0,f=[];++a<s;){var l=o[a];u(l,a,o)&&(f[i++]=l)}return f}),ko),n=Pu(),e=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return Lo=r?function(o){return o==null?[]:(o=Object(o),t(r(o),function(u){return e.call(o,u)}))}:n}function Tu(){if(Do)return Fo;Do=1;var t=Ru(),n=ht(),e=he();return Fo=function(r){return t(r,e,n)}}function Ee(){if(Yo)return qo;Yo=1;var t=function(){if(Ho)return zo;Ho=1;var y=K()($(),"DataView");return zo=y}(),n=ft(),e=function(){if($o)return Wo;$o=1;var y=K()($(),"Promise");return Wo=y}(),r=function(){if(Io)return No;Io=1;var y=K()($(),"Set");return No=y}(),o=function(){if(Xo)return Vo;Xo=1;var y=K()($(),"WeakMap");return Vo=y}(),u=J(),a=Eu(),s="[object Map]",i="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",p=a(t),v=a(n),d=a(e),c=a(r),b=a(o),g=u;return(t&&g(new t(new ArrayBuffer(1)))!=h||n&&g(new n)!=s||e&&g(e.resolve())!=i||r&&g(new r)!=f||o&&g(new o)!=l)&&(g=function(y){var x=u(y),j=x=="[object Object]"?y.constructor:void 0,C=j?a(j):"";if(C)switch(C){case p:return h;case v:return s;case d:return i;case c:return f;case b:return l}return x}),qo=g}function ps(){if(Ko)return Go;Ko=1;var t=lt(),n=Cu(),e=hs(),r=function(){if(Bo)return Fe;Bo=1;var p=Tu(),v=Object.prototype.hasOwnProperty;return Fe=function(d,c,b,g,y,x){var j=1&b,C=p(d),R=C.length;if(R!=p(c).length&&!j)return!1;for(var L=R;L--;){var T=C[L];if(!(j?T in c:v.call(c,T)))return!1}var O=x.get(d),S=x.get(c);if(O&&S)return O==c&&S==d;var m=!0;x.set(d,c),x.set(c,d);for(var M=j;++L<R;){var E=d[T=C[L]],N=c[T];if(g)var W=j?g(N,E,T,c,d,x):g(E,N,T,d,c,x);if(!(W===void 0?E===N||y(E,N,b,g,x):W)){m=!1;break}M||(M=T=="constructor")}if(m&&!M){var U=d.constructor,A=c.constructor;U==A||!("constructor"in d)||!("constructor"in c)||typeof U=="function"&&U instanceof U&&typeof A=="function"&&A instanceof A||(m=!1)}return x.delete(d),x.delete(c),m},Fe}(),o=Ee(),u=H(),a=tt(),s=wu(),i="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype.hasOwnProperty;return Go=function(p,v,d,c,b,g){var y=u(p),x=u(v),j=y?f:o(p),C=x?f:o(v),R=(j=j==i?l:j)==l,L=(C=C==i?l:C)==l,T=j==C;if(T&&a(p)){if(!a(v))return!1;y=!0,R=!1}if(T&&!R)return g||(g=new t),y||s(p)?n(p,v,d,c,b,g):e(p,v,j,d,c,b,g);if(!(1&d)){var O=R&&h.call(p,"__wrapped__"),S=L&&h.call(v,"__wrapped__");if(O||S){var m=O?p.value():p,M=S?v.value():v;return g||(g=new t),b(m,M,d,c,g)}}return!!T&&(g||(g=new t),r(p,v,d,c,b,g))}}function Lu(){if(Jo)return De;Jo=1;var t=ps(),n=V();return De=function e(r,o,u,a,s){return r===o||(r==null||o==null||!n(r)&&!n(o)?r!=r&&o!=o:t(r,o,u,a,e,s))},De}function Uu(){if(ei)return Zo;ei=1;var t=ue();return Zo=function(n){return n==n&&!t(n)}}function Fu(){return oi?ni:(oi=1,ni=function(t,n){return function(e){return e!=null&&e[t]===n&&(n!==void 0||t in Object(e))}})}function ds(){if(ai)return ii;ai=1;var t=function(){if(Qo)return Be;Qo=1;var r=lt(),o=Lu();return Be=function(u,a,s,i){var f=s.length,l=f,h=!i;if(u==null)return!l;for(u=Object(u);f--;){var p=s[f];if(h&&p[2]?p[1]!==u[p[0]]:!(p[0]in u))return!1}for(;++f<l;){var v=(p=s[f])[0],d=u[v],c=p[1];if(h&&p[2]){if(d===void 0&&!(v in u))return!1}else{var b=new r;if(i)var g=i(d,c,v,u,a,b);if(!(g===void 0?o(c,d,3,i,b):g))return!1}}return!0},Be}(),n=function(){if(ri)return ti;ri=1;var r=Uu(),o=he();return ti=function(u){for(var a=o(u),s=a.length;s--;){var i=a[s],f=u[i];a[s]=[i,f,r(f)]}return a}}(),e=Fu();return ii=function(r){var o=n(r);return o.length==1&&o[0][2]?e(o[0][0],o[0][1]):function(u){return u===r||t(u,r,o)}}}function pt(){if(si)return ui;si=1;var t=J(),n=V();return ui=function(e){return typeof e=="symbol"||n(e)&&t(e)=="[object Symbol]"}}function dt(){if(ci)return fi;ci=1;var t=H(),n=pt(),e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return fi=function(o,u){if(t(o))return!1;var a=typeof o;return!(a!="number"&&a!="symbol"&&a!="boolean"&&o!=null&&!n(o))||r.test(o)||!e.test(o)||u!=null&&o in Object(u)}}function bs(){if(di)return pi;di=1;var t=function(){if(hi)return li;hi=1;var n=ct();function e(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError("Expected a function");var u=function(){var a=arguments,s=o?o.apply(this,a):a[0],i=u.cache;if(i.has(s))return i.get(s);var f=r.apply(this,a);return u.cache=i.set(s,f)||i,f};return u.cache=new(e.Cache||n),u}return e.Cache=n,li=e}();return pi=function(n){var e=t(n,function(o){return r.size===500&&r.clear(),o}),r=e.cache;return e}}function vs(){if(mi)return yi;mi=1;var t=function(){if(gi)return ze;gi=1;var n=le(),e=Su(),r=H(),o=pt(),u=n?n.prototype:void 0,a=u?u.toString:void 0;return ze=function s(i){if(typeof i=="string")return i;if(r(i))return e(i,s)+"";if(o(i))return a?a.call(i):"";var f=i+"";return f=="0"&&1/i==-1/0?"-0":f},ze}();return yi=function(n){return n==null?"":t(n)}}function Du(){if(_i)return wi;_i=1;var t=H(),n=dt(),e=function(){if(vi)return bi;vi=1;var o=bs(),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=o(function(i){var f=[];return i.charCodeAt(0)===46&&f.push(""),i.replace(u,function(l,h,p,v){f.push(p?v.replace(a,"$1"):h||l)}),f});return bi=s}(),r=vs();return wi=function(o,u){return t(o)?o:n(o,u)?[o]:e(r(o))}}function Ce(){if(ji)return xi;ji=1;var t=pt();return xi=function(n){if(typeof n=="string"||t(n))return n;var e=n+"";return e=="0"&&1/n==-1/0?"-0":e}}function Bu(){if(Oi)return He;Oi=1;var t=Du(),n=Ce();return He=function(e,r){for(var o=0,u=(r=t(r,e)).length;e!=null&&o<u;)e=e[n(r[o++])];return o&&o==u?e:void 0},He}function gs(){if(Ri)return ki;Ri=1;var t=Ci?Ei:(Ci=1,Ei=function(e,r){return e!=null&&r in Object(e)}),n=function(){if(Ai)return We;Ai=1;var e=Du(),r=yu(),o=H(),u=mu(),a=rt(),s=Ce();return We=function(i,f,l){for(var h=-1,p=(f=e(f,i)).length,v=!1;++h<p;){var d=s(f[h]);if(!(v=i!=null&&l(i,d)))break;i=i[d]}return v||++h!=p?v:!!(p=i==null?0:i.length)&&a(p)&&u(d,p)&&(o(i)||r(i))},We}();return ki=function(e,r){return e!=null&&n(e,r,t)}}function ys(){if(Ti)return Pi;Ti=1;var t=Lu(),n=function(){if(Si)return Mi;Si=1;var s=Bu();return Mi=function(i,f,l){var h=i==null?void 0:s(i,f);return h===void 0?l:h}}(),e=gs(),r=dt(),o=Uu(),u=Fu(),a=Ce();return Pi=function(s,i){return r(s)&&o(i)?u(a(s),i):function(f){var l=n(f,s);return l===void 0&&l===i?e(f,s):t(i,l,3)}}}function ms(){if(zi)return Bi;zi=1;var t=Ui?Li:(Ui=1,Li=function(o){return function(u){return u?.[o]}}),n=function(){if(Di)return Fi;Di=1;var o=Bu();return Fi=function(u){return function(a){return o(a,u)}}}(),e=dt(),r=Ce();return Bi=function(o){return e(o)?t(r(o)):n(o)}}function ws(){if(Ii)return Ni;Ii=1;var t=Ou(),n=function(){if($i)return $e;$i=1;var r=Se();return $e=function(o,u){return function(a,s){if(a==null)return a;if(!r(a))return o(a,s);for(var i=a.length,f=u?i:-1,l=Object(a);(u?f--:++f<i)&&s(l[f],f,l)!==!1;);return a}},$e}(),e=n(t);return Ni=e}function _s(){if(qi)return Xi;qi=1;var t=Su(),n=function(){if(Wi)return Hi;Wi=1;var o=ds(),u=ys(),a=Mu(),s=H(),i=ms();return Hi=function(f){return typeof f=="function"?f:f==null?a:typeof f=="object"?s(f)?u(f[0],f[1]):o(f):i(f)}}(),e=function(){if(Vi)return Ne;Vi=1;var o=ws(),u=Se();return Ne=function(a,s){var i=-1,f=u(a)?Array(a.length):[];return o(a,function(l,h,p){f[++i]=s(l,h,p)}),f},Ne}(),r=H();return Xi=function(o,u){return(r(o)?t:e)(o,n(u,3))}}function xs(){if(Yi)return re;Yi=1,Object.defineProperty(re,"__esModule",{value:!0}),re.flattenNames=void 0;var t=function(){if(Nt)return $t;Nt=1;var i=J(),f=H(),l=V();return $t=function(h){return typeof h=="string"||!f(h)&&l(h)&&i(h)=="[object String]"}}(),n=a(t),e=a(at()),r=function(){if(Nr)return $r;Nr=1;var i=J(),f=ut(),l=V(),h=Function.prototype,p=Object.prototype,v=h.toString,d=p.hasOwnProperty,c=v.call(Object);return $r=function(b){if(!l(b)||i(b)!="[object Object]")return!1;var g=f(b);if(g===null)return!0;var y=d.call(g,"constructor")&&g.constructor;return typeof y=="function"&&y instanceof y&&v.call(y)==c}}(),o=a(r),u=a(_s());function a(i){return i&&i.__esModule?i:{default:i}}var s=re.flattenNames=function i(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=[];return(0,u.default)(f,function(h){Array.isArray(h)?i(h).map(function(p){return l.push(p)}):(0,o.default)(h)?(0,e.default)(h,function(p,v){p===!0&&l.push(v),l.push(v+"-"+p)}):(0,n.default)(h)&&l.push(h)}),l};return re.default=s,re}var Gi,Ki,Ji,Qi,Zi,ea,ta,ra,Ve,na,oa,ia,aa,ua,sa,fa,ca,la,ha,pa,ne={};function zu(){if(ea)return Zi;ea=1;var t=function(){if(Qi)return Ji;Qi=1;var n=K(),e=function(){try{var r=n(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Ji=e}();return Zi=function(n,e,r){e=="__proto__"&&t?t(n,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[e]=r}}function Hu(){if(ra)return ta;ra=1;var t=zu(),n=st(),e=Object.prototype.hasOwnProperty;return ta=function(r,o,u){var a=r[o];e.call(r,o)&&n(a,u)&&(u!==void 0||o in r)||t(r,o,u)}}function we(){if(na)return Ve;na=1;var t=Hu(),n=zu();return Ve=function(e,r,o,u){var a=!o;o||(o={});for(var s=-1,i=r.length;++s<i;){var f=r[s],l=u?u(o[f],e[f],f,o,e):void 0;l===void 0&&(l=e[f]),a?n(o,f,l):t(o,f,l)}return o},Ve}function js(){if(fa)return sa;fa=1;var t=ue(),n=it(),e=ua?aa:(ua=1,aa=function(o){var u=[];if(o!=null)for(var a in Object(o))u.push(a);return u}),r=Object.prototype.hasOwnProperty;return sa=function(o){if(!t(o))return e(o);var u=n(o),a=[];for(var s in o)(s!="constructor"||!u&&r.call(o,s))&&a.push(s);return a}}function Xe(){if(la)return ca;la=1;var t=_u(),n=js(),e=Se();return ca=function(r){return e(r)?t(r,!0):n(r)}}var da,ba,va,ga,ya,ma,wa,_a,xa,ja,Oa,Ma,Sa,Ea,Ca,Aa,ka,Ra,Pa,Ta,La,Ua,Fa,Da,Ba,za,Ha,Wa,$a,Na,Ia,Va,Xa,qa,Ya,Ga,Ka,qe,Ja,Qa,Za,eu,Ye={exports:{}};function tu(){if(wa)return ma;wa=1;var t=ku(),n=ut(),e=ht(),r=Pu(),o=Object.getOwnPropertySymbols;return ma=o?function(u){for(var a=[];u;)t(a,e(u)),u=n(u);return a}:r}function Ge(){if(Ca)return Ea;Ca=1;var t=Au();return Ea=function(n){var e=new n.constructor(n.byteLength);return new t(e).set(new t(n)),e}}function Os(){if(Ba)return Da;Ba=1;var t=Ge(),n=function(){if(ka)return Aa;ka=1;var u=Ge();return Aa=function(a,s){var i=s?u(a.buffer):a.buffer;return new a.constructor(i,a.byteOffset,a.byteLength)}}(),e=function(){if(Pa)return Ra;Pa=1;var u=/\w*$/;return Ra=function(a){var s=new a.constructor(a.source,u.exec(a));return s.lastIndex=a.lastIndex,s}}(),r=function(){if(La)return Ta;La=1;var u=le(),a=u?u.prototype:void 0,s=a?a.valueOf:void 0;return Ta=function(i){return s?Object(s.call(i)):{}}}(),o=function(){if(Fa)return Ua;Fa=1;var u=Ge();return Ua=function(a,s){var i=s?u(a.buffer):a.buffer;return new a.constructor(i,a.byteOffset,a.length)}}();return Da=function(u,a,s){var i=u.constructor;switch(a){case"[object ArrayBuffer]":return t(u);case"[object Boolean]":case"[object Date]":return new i(+u);case"[object DataView]":return n(u,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(u,s);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(u);case"[object RegExp]":return e(u);case"[object Symbol]":return r(u)}}}function Ms(){if($a)return Wa;$a=1;var t=function(){if(Ha)return za;Ha=1;var r=ue(),o=Object.create,u=function(){function a(){}return function(s){if(!r(s))return{};if(o)return o(s);a.prototype=s;var i=new a;return a.prototype=void 0,i}}();return za=u}(),n=ut(),e=it();return Wa=function(r){return typeof r.constructor!="function"||e(r)?{}:t(n(r))}}function Ss(){if(Xa)return Va;Xa=1;var t=function(){if(Ia)return Na;Ia=1;var u=Ee(),a=V();return Na=function(s){return a(s)&&u(s)=="[object Map]"}}(),n=nt(),e=ot(),r=e&&e.isMap,o=r?n(r):t;return Va=o}function Es(){if(Ka)return Ga;Ka=1;var t=function(){if(Ya)return qa;Ya=1;var u=Ee(),a=V();return qa=function(s){return a(s)&&u(s)=="[object Set]"}}(),n=nt(),e=ot(),r=e&&e.isSet,o=r?n(r):t;return Ga=o}function Cs(){if(Ja)return qe;Ja=1;var t=lt(),n=(Ki||(Ki=1,Gi=function(S,m){for(var M=-1,E=S==null?0:S.length;++M<E&&m(S[M],M,S)!==!1;);return S}),Gi),e=Hu(),r=function(){if(ia)return oa;ia=1;var S=we(),m=he();return oa=function(M,E){return M&&S(E,m(E),M)}}(),o=function(){if(pa)return ha;pa=1;var S=we(),m=Xe();return ha=function(M,E){return M&&S(E,m(E),M)}}(),u=(da||(da=1,function(S,m){var M=$(),E=m&&!m.nodeType&&m,N=E&&S&&!S.nodeType&&S,W=N&&N.exports===E?M.Buffer:void 0,U=W?W.allocUnsafe:void 0;S.exports=function(A,Z){if(Z)return A.slice();var G=A.length,pe=U?U(G):new A.constructor(G);return A.copy(pe),pe}}(Ye,Ye.exports)),Ye.exports),a=(va||(va=1,ba=function(S,m){var M=-1,E=S.length;for(m||(m=Array(E));++M<E;)m[M]=S[M];return m}),ba),s=function(){if(ya)return ga;ya=1;var S=we(),m=ht();return ga=function(M,E){return S(M,m(M),E)}}(),i=function(){if(xa)return _a;xa=1;var S=we(),m=tu();return _a=function(M,E){return S(M,m(M),E)}}(),f=Tu(),l=function(){if(Oa)return ja;Oa=1;var S=Ru(),m=tu(),M=Xe();return ja=function(E){return S(E,M,m)}}(),h=Ee(),p=function(){if(Sa)return Ma;Sa=1;var S=Object.prototype.hasOwnProperty;return Ma=function(m){var M=m.length,E=new m.constructor(M);return M&&typeof m[0]=="string"&&S.call(m,"index")&&(E.index=m.index,E.input=m.input),E}}(),v=Os(),d=Ms(),c=H(),b=tt(),g=Ss(),y=ue(),x=Es(),j=he(),C=Xe(),R="[object Arguments]",L="[object Function]",T="[object Object]",O={};return O[R]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[T]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[L]=O["[object WeakMap]"]=!1,qe=function S(m,M,E,N,W,U){var A,Z=1&M,G=2&M,pe=4&M;if(E&&(A=W?E(m,N,W,U):E(m)),A!==void 0)return A;if(!y(m))return m;var vt=c(m);if(vt){if(A=p(m),!Z)return a(m,A)}else{var ee=h(m),gt=ee==L||ee=="[object GeneratorFunction]";if(b(m))return u(m,Z);if(ee==T||ee==R||gt&&!W){if(A=G||gt?{}:d(m),!Z)return G?i(m,o(A,m)):s(m,r(A,m))}else{if(!O[ee])return W?m:{};A=v(m,ee,Z)}}U||(U=new t);var yt=U.get(m);if(yt)return yt;U.set(m,A),x(m)?m.forEach(function(X){A.add(S(X,M,E,X,m,U))}):g(m)&&m.forEach(function(X,te){A.set(te,S(X,M,E,te,m,U))});var mt=vt?void 0:(pe?G?l:f:G?C:j)(m);return n(mt||m,function(X,te){mt&&(X=m[te=X]),e(A,te,S(X,M,E,te,m,U))}),A},qe}function As(){if(eu)return ne;eu=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.mergeClasses=void 0;var t=r(at()),n=r(function(){if(Za)return Qa;Za=1;var u=Cs();return Qa=function(a){return u(a,5)}}()),e=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u};function r(u){return u&&u.__esModule?u:{default:u}}var o=ne.mergeClasses=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=u.default&&(0,n.default)(u.default)||{};return a.map(function(i){var f=u[i];return f&&(0,t.default)(f,function(l,h){s[h]||(s[h]={}),s[h]=e({},s[h],f[h])}),i}),s};return ne.default=o,ne}var ru,oe={},nu,ie={};function ks(){if(nu)return ie;nu=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.hover=void 0;var t,n=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u},e=(t=w)&&t.__esModule?t:{default:t};function r(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||typeof a!="object"&&typeof a!="function"?u:a}var o=ie.hover=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(s){function i(){var f,l,h;(function(c,b){if(!(c instanceof b))throw new TypeError("Cannot call a class as a function")})(this,i);for(var p=arguments.length,v=Array(p),d=0;d<p;d++)v[d]=arguments[d];return l=h=r(this,(f=i.__proto__||Object.getPrototypeOf(i)).call.apply(f,[this].concat(v))),h.state={hover:!1},h.handleMouseOver=function(){return h.setState({hover:!0})},h.handleMouseOut=function(){return h.setState({hover:!1})},h.render=function(){return e.default.createElement(a,{onMouseOver:h.handleMouseOver,onMouseOut:h.handleMouseOut},e.default.createElement(u,n({},h.props,h.state)))},r(h,l)}return function(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}(i,s),i}(e.default.Component)};return ie.default=o,ie}var ou,ae={};function Rs(){if(ou)return ae;ou=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.active=void 0;var t,n=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u},e=(t=w)&&t.__esModule?t:{default:t};function r(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||typeof a!="object"&&typeof a!="function"?u:a}var o=ae.active=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(s){function i(){var f,l,h;(function(c,b){if(!(c instanceof b))throw new TypeError("Cannot call a class as a function")})(this,i);for(var p=arguments.length,v=Array(p),d=0;d<p;d++)v[d]=arguments[d];return l=h=r(this,(f=i.__proto__||Object.getPrototypeOf(i)).call.apply(f,[this].concat(v))),h.state={active:!1},h.handleMouseDown=function(){return h.setState({active:!0})},h.handleMouseUp=function(){return h.setState({active:!1})},h.render=function(){return e.default.createElement(a,{onMouseDown:h.handleMouseDown,onMouseUp:h.handleMouseUp},e.default.createElement(u,n({},h.props,h.state)))},r(h,l)}return function(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}(i,s),i}(e.default.Component)};return ae.default=o,ae}var iu,au,Ke={},Ps=function(){if(au)return F;au=1,Object.defineProperty(F,"__esModule",{value:!0}),F.ReactCSS=F.loop=F.handleActive=F.handleHover=F.hover=void 0;var t=s(xs()),n=s(As()),e=function(){if(ru)return oe;ru=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.autoprefix=void 0;var f,l=at(),h=(f=l)&&f.__esModule?f:{default:f},p=Object.assign||function(c){for(var b=1;b<arguments.length;b++){var g=arguments[b];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(c[y]=g[y])}return c},v={borderRadius:function(c){return{msBorderRadius:c,MozBorderRadius:c,OBorderRadius:c,WebkitBorderRadius:c,borderRadius:c}},boxShadow:function(c){return{msBoxShadow:c,MozBoxShadow:c,OBoxShadow:c,WebkitBoxShadow:c,boxShadow:c}},userSelect:function(c){return{WebkitTouchCallout:c,KhtmlUserSelect:c,MozUserSelect:c,msUserSelect:c,WebkitUserSelect:c,userSelect:c}},flex:function(c){return{WebkitBoxFlex:c,MozBoxFlex:c,WebkitFlex:c,msFlex:c,flex:c}},flexBasis:function(c){return{WebkitFlexBasis:c,flexBasis:c}},justifyContent:function(c){return{WebkitJustifyContent:c,justifyContent:c}},transition:function(c){return{msTransition:c,MozTransition:c,OTransition:c,WebkitTransition:c,transition:c}},transform:function(c){return{msTransform:c,MozTransform:c,OTransform:c,WebkitTransform:c,transform:c}},absolute:function(c){var b=c&&c.split(" ");return{position:"absolute",top:b&&b[0],right:b&&b[1],bottom:b&&b[2],left:b&&b[3]}},extend:function(c,b){return b[c]||{extend:c}}},d=oe.autoprefix=function(c){var b={};return(0,h.default)(c,function(g,y){var x={};(0,h.default)(g,function(j,C){var R=v[C];R?x=p({},x,R(j)):x[C]=j}),b[y]=x}),b};return oe.default=d,oe}(),r=s(e),o=s(ks()),u=s(Rs()),a=s((iu||(iu=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=function(f,l){var h={},p=function(v){var d=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];h[v]=d};return f===0&&p("first-child"),f===l-1&&p("last-child"),(f===0||f%2==0)&&p("even"),Math.abs(f%2)===1&&p("odd"),p("nth-child",f),h}),Ke));function s(f){return f&&f.__esModule?f:{default:f}}F.hover=o.default,F.handleHover=o.default,F.handleActive=u.default,F.loop=a.default;var i=F.ReactCSS=function(f){for(var l=arguments.length,h=Array(l>1?l-1:0),p=1;p<l;p++)h[p-1]=arguments[p];var v=(0,t.default)(h),d=(0,n.default)(f,v);return(0,r.default)(d)};return F.default=i,F}();const Q=Y.getDefaultExportFromCjs(Ps);var Je={},Ts=function(t,n,e,r){var o=t+"-"+n+"-"+e+(r?"-server":"");if(Je[o])return Je[o];var u=function(a,s,i,f){if(typeof document>"u"&&!f)return null;var l=f?new f:document.createElement("canvas");l.width=2*i,l.height=2*i;var h=l.getContext("2d");return h?(h.fillStyle=a,h.fillRect(0,0,l.width,l.height),h.fillStyle=s,h.fillRect(0,0,i,i),h.translate(i,i),h.fillRect(0,0,i,i),l.toDataURL()):null}(t,n,e,r);return Je[o]=u,u},uu=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},bt=function(t){var n=t.white,e=t.grey,r=t.size,o=t.renderers,u=t.borderRadius,a=t.boxShadow,s=t.children,i=Q({default:{grid:{borderRadius:u,boxShadow:a,absolute:"0px 0px 0px 0px",background:"url("+Ts(n,e,r,o.canvas)+") center left"}}});return w.isValidElement(s)?w.cloneElement(s,uu({},s.props,{style:uu({},s.props.style,i.grid)})):w.createElement("div",{style:i.grid})};bt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Ls=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Us=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function su(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var Fs=function(){function t(){var n,e,r;(function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")})(this,t);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return e=r=su(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),r.handleChange=function(s){var i=function(f,l,h,p,v){var d=v.clientWidth,c=v.clientHeight,b=typeof f.pageX=="number"?f.pageX:f.touches[0].pageX,g=typeof f.pageY=="number"?f.pageY:f.touches[0].pageY,y=b-(v.getBoundingClientRect().left+window.pageXOffset),x=g-(v.getBoundingClientRect().top+window.pageYOffset);if(h==="vertical"){var j=void 0;if(j=x<0?0:x>c?1:Math.round(100*x/c)/100,l.a!==j)return{h:l.h,s:l.s,l:l.l,a:j,source:"rgb"}}else{var C=void 0;if(p!==(C=y<0?0:y>d?1:Math.round(100*y/d)/100))return{h:l.h,s:l.s,l:l.l,a:C,source:"rgb"}}return null}(s,r.props.hsl,r.props.direction,r.props.a,r.container);i&&typeof r.props.onChange=="function"&&r.props.onChange(i,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},su(r,e)}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Us(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,e=this.props.rgb,r=Q({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
7
- rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*e.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
8
- rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:Ls({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return w.createElement("div",{style:r.alpha},w.createElement("div",{style:r.checkboard},w.createElement(bt,{renderers:this.props.renderers})),w.createElement("div",{style:r.gradient}),w.createElement("div",{style:r.container,ref:function(o){return n.container=o},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("div",{style:r.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:r.slider}))))}}]),t}(),Ds=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),Bs=[38,40],zs=1,se=function(){function t(n){(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,t);var e=function(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?r:o}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handleBlur=function(){e.state.blurValue&&e.setState({value:e.state.blurValue,blurValue:null})},e.handleChange=function(r){e.setUpdatedValue(r.target.value,r)},e.handleKeyDown=function(r){var o,u=function(i){return Number(String(i).replace(/%/g,""))}(r.target.value);if(!isNaN(u)&&(o=r.keyCode,Bs.indexOf(o)>-1)){var a=e.getArrowOffset(),s=r.keyCode===38?u+a:u-a;e.setUpdatedValue(s,r)}},e.handleDrag=function(r){if(e.props.dragLabel){var o=Math.round(e.props.value+r.movementX);o>=0&&o<=e.props.dragMax&&e.props.onChange&&e.props.onChange(e.getValueObjectWithLabel(o),r)}},e.handleMouseDown=function(r){e.props.dragLabel&&(r.preventDefault(),e.handleDrag(r),window.addEventListener("mousemove",e.handleDrag),window.addEventListener("mouseup",e.handleMouseUp))},e.handleMouseUp=function(){e.unbindEventListeners()},e.unbindEventListeners=function(){window.removeEventListener("mousemove",e.handleDrag),window.removeEventListener("mouseup",e.handleMouseUp)},e.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},e.inputId="rc-editable-input-"+zs++,e}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Ds(t,[{key:"componentDidUpdate",value:function(n,e){this.props.value===this.state.value||n.value===this.props.value&&e.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return function(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(n,e){var r=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(r,e),this.setState({value:n})}},{key:"render",value:function(){var n=this,e=Q({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return w.createElement("div",{style:e.wrap},w.createElement("input",{id:this.inputId,style:e.input,ref:function(r){return n.input=r},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?w.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(),Hs=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function fu(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var Ws=function(){function t(){var n,e,r;(function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")})(this,t);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return e=r=fu(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),r.handleChange=function(s){var i=function(f,l,h,p){var v=p.clientWidth,d=p.clientHeight,c=typeof f.pageX=="number"?f.pageX:f.touches[0].pageX,b=typeof f.pageY=="number"?f.pageY:f.touches[0].pageY,g=c-(p.getBoundingClientRect().left+window.pageXOffset),y=b-(p.getBoundingClientRect().top+window.pageYOffset);if(l==="vertical"){var x=void 0;if(x=y<0?359:y>d?0:360*(-100*y/d+100)/100,h.h!==x)return{h:x,s:h.s,l:h.l,a:h.a,source:"hsl"}}else{var j=void 0;if(j=g<0?0:g>v?359:100*g/v*360/100,h.h!==j)return{h:j,s:h.s,l:h.l,a:h.a,source:"hsl"}}return null}(s,r.props.direction,r.props.hsl,r.container);i&&typeof r.props.onChange=="function"&&r.props.onChange(i,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},fu(r,e)}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Hs(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,e=this.props.direction,r=e===void 0?"horizontal":e,o=Q({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:r==="vertical"});return w.createElement("div",{style:o.hue},w.createElement("div",{className:"hue-"+r,style:o.container,ref:function(u){return n.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("style",null,`
9
- .hue-horizontal {
10
- background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
11
- 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
12
- background: -webkit-linear-gradient(to right, #f00 0%, #ff0
13
- 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
14
- }
15
-
16
- .hue-vertical {
17
- background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
18
- #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
19
- background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
20
- #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
21
- }
22
- `),w.createElement("div",{style:o.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:o.slider}))))}}]),t}(),$s=typeof global=="object"&&global&&global.Object===Object&&global,Ns=typeof self=="object"&&self&&self.Object===Object&&self,Wu=$s||Ns||Function("return this")(),je=Wu.Symbol,$u=Object.prototype,Is=$u.hasOwnProperty,Vs=$u.toString,fe=je?je.toStringTag:void 0,Xs=Object.prototype.toString,cu=je?je.toStringTag:void 0;function qs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":cu&&cu in Object(t)?function(n){var e=Is.call(n,fe),r=n[fe];try{n[fe]=void 0;var o=!0}catch{}var u=Vs.call(n);return o&&(e?n[fe]=r:delete n[fe]),u}(t):function(n){return Xs.call(n)}(t)}function Oe(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}de.string,de.oneOf([0,1,2,3,4,5]),de.number,de.object;var Qe=function(){return Wu.Date.now()},Ys=/\s/,Gs=/^\s+/;function Ks(t){return t&&t.slice(0,function(n){for(var e=n.length;e--&&Ys.test(n.charAt(e)););return e}(t)+1).replace(Gs,"")}var Js=/^[-+]0x[0-9a-f]+$/i,Qs=/^0b[01]+$/i,Zs=/^0o[0-7]+$/i,ef=parseInt;function lu(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return o!=null&&typeof o=="object"}(r)&&qs(r)=="[object Symbol]"}(t))return NaN;if(Oe(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=Oe(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=Ks(t);var e=Qs.test(t);return e||Zs.test(t)?ef(t.slice(2),e?2:8):Js.test(t)?NaN:+t}var tf=Math.max,rf=Math.min;function nf(t,n,e){var r,o,u,a,s,i,f=0,l=!1,h=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function v(y){var x=r,j=o;return r=o=void 0,f=y,a=t.apply(j,x)}function d(y){var x=y-i;return i===void 0||x>=n||x<0||h&&y-f>=u}function c(){var y=Qe();if(d(y))return b(y);s=setTimeout(c,function(x){var j=n-(x-i);return h?rf(j,u-(x-f)):j}(y))}function b(y){return s=void 0,p&&r?v(y):(r=o=void 0,a)}function g(){var y=Qe(),x=d(y);if(r=arguments,o=this,i=y,x){if(s===void 0)return function(j){return f=j,s=setTimeout(c,n),l?v(j):a}(i);if(h)return clearTimeout(s),s=setTimeout(c,n),v(i)}return s===void 0&&(s=setTimeout(c,n)),a}return n=lu(n)||0,Oe(e)&&(l=!!e.leading,u=(h="maxWait"in e)?tf(lu(e.maxWait)||0,n):u,p="trailing"in e?!!e.trailing:p),g.cancel=function(){s!==void 0&&clearTimeout(s),f=0,r=i=o=s=void 0},g.flush=function(){return s===void 0?a:b(Qe())},g}var of=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();(function(){function t(n){(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,t);var e=function(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?r:o}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return e.handleChange=function(r){typeof e.props.onChange=="function"&&e.throttle(e.props.onChange,function(o,u,a){var s=a.getBoundingClientRect(),i=s.width,f=s.height,l=typeof o.pageX=="number"?o.pageX:o.touches[0].pageX,h=typeof o.pageY=="number"?o.pageY:o.touches[0].pageY,p=l-(a.getBoundingClientRect().left+window.pageXOffset),v=h-(a.getBoundingClientRect().top+window.pageYOffset);p<0?p=0:p>i&&(p=i),v<0?v=0:v>f&&(v=f);var d=p/i,c=1-v/f;return{h:u.h,s:d,v:c,a:u.a,source:"hsv"}}(r,e.props.hsl,e.container),r)},e.handleMouseDown=function(r){e.handleChange(r);var o=e.getContainerRenderWindow();o.addEventListener("mousemove",e.handleChange),o.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.throttle=function(r,o,u){var a=!0,s=!0;if(typeof r!="function")throw new TypeError("Expected a function");return Oe(u)&&(a="leading"in u?!!u.leading:a,s="trailing"in u?!!u.trailing:s),nf(r,o,{leading:a,maxWait:o,trailing:s})}(function(r,o,u){r(o,u)},50),e}(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)})(t,w.PureComponent||w.Component),of(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,e=window;!e.document.contains(n)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,e=this.props.style||{},r=e.color,o=e.white,u=e.black,a=e.pointer,s=e.circle,i=Q({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
23
- 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:r,white:o,black:u,pointer:a,circle:s}},{custom:!!this.props.style});return w.createElement("div",{style:i.color,ref:function(f){return n.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("style",null,`
24
- .saturation-white {
25
- background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
26
- background: linear-gradient(to right, #fff, rgba(255,255,255,0));
27
- }
28
- .saturation-black {
29
- background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
30
- background: linear-gradient(to top, #000, rgba(0,0,0,0));
31
- }
32
- `),w.createElement("div",{style:i.white,className:"saturation-white"},w.createElement("div",{style:i.black,className:"saturation-black"}),w.createElement("div",{style:i.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:i.circle}))))}}])})();var af=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},uf=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function hu(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var pu=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t};(function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";(function(){function e(){var r,o,u;(function(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")})(this,e);for(var a=arguments.length,s=Array(a),i=0;i<a;i++)s[i]=arguments[i];return o=u=hu(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(s))),u.state={focus:!1},u.handleFocus=function(){return u.setState({focus:!0})},u.handleBlur=function(){return u.setState({focus:!1})},hu(u,o)}(function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o)})(e,w.Component),uf(e,[{key:"render",value:function(){return w.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},w.createElement(t,af({},this.props,this.state)))}}])})()})(function(t){var n=t.color,e=t.style,r=t.onClick,o=r===void 0?function(){}:r,u=t.onHover,a=t.title,s=a===void 0?n:a,i=t.children,f=t.focus,l=t.focusStyle,h=n==="transparent",p=Q({default:{swatch:pu({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},e,f?l===void 0?{}:l:{})}}),v={};return u&&(v.onMouseOver=function(d){return u(n,d)}),w.createElement("div",pu({style:p.swatch,onClick:function(d){return o(n,d)},title:s,tabIndex:0,onKeyDown:function(d){return d.keyCode===13&&o(n,d)}},v),i,h&&w.createElement(bt,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var sf=function(t){var n=t.onChange,e=t.rgb,r=t.hsl,o=t.hex,u=t.disableAlpha,a=Q({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),s=function(i,f){i.hex?function(l){if(l==="transparent")return!0;var h=String(l).charAt(0)==="#"?1:0;return l.length!==4+h&&l.length<7+h&&_(l).isValid()}(i.hex)&&n({hex:i.hex,source:"hex"},f):i.r||i.g||i.b?n({r:i.r||e.r,g:i.g||e.g,b:i.b||e.b,a:e.a,source:"rgb"},f):i.a&&(i.a<0?i.a=0:i.a>100&&(i.a=100),i.a/=100,n({h:r.h,s:r.s,l:r.l,a:i.a,source:"rgb"},f))};return w.createElement("div",{style:a.fields,className:"flexbox-fix"},w.createElement("div",{style:a.double},w.createElement(se,{style:{input:a.input,label:a.label},label:"hex",value:o.replace("#",""),onChange:s})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"r",value:e.r,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"g",value:e.g,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"b",value:e.b,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.alpha},w.createElement(se,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*e.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class ff extends(w.PureComponent||w.Component){constructor(n){super(n),this.handleChange=e=>{typeof this.props.onChange=="function"&&this.throttle(this.props.onChange,((r,o,u)=>{var a=u.getBoundingClientRect(),s=a.width,i=a.height,f=typeof r.pageX=="number"?r.pageX:r.touches[0].pageX,l=typeof r.pageY=="number"?r.pageY:r.touches[0].pageY,h=f-(u.getBoundingClientRect().left+window.pageXOffset),p=l-(u.getBoundingClientRect().top+window.pageYOffset);h<0?h=0:h>s&&(h=s),p<0?p=0:p>i&&(p=i);var v=h/s,d=1-p/i;return{h:o.h,s:v,v:d,a:o.a,source:"hsv"}})(e,this.props.hsl,this.container),e),e.preventDefault()},this.handleMouseDown=e=>{this.handleChange(e);const r=this.getContainerRenderWindow();r.addEventListener("mousemove",this.handleChange),r.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=e=>{e.preventDefault(),this.unbindEventListeners()},this.throttle=function(e,r,o){let u,a,s,i;var f=0;o||(o={});let l=function(){f=o.leading===!1?0:Date.now(),u=null,i=e.apply(a,s),u||(a=s=null)},h=function(){var p=Date.now();f||o.leading!==!1||(f=p);var v=r-(p-f);return a=this,s=arguments,v<=0||v>r?(u&&(clearTimeout(u),u=null),f=p,i=e.apply(a,s),u||(a=s=null)):u||o.trailing===!1||(u=setTimeout(l,v)),i};return h.cancel=function(){clearTimeout(u),f=0,u=a=s=null},h}((e,r,o)=>{e(r,o)},50)}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:n}=this;let e=window;for(;!e.document.contains(n)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:n,white:e,black:r,pointer:o,circle:u}=this.props||{},a={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},s={color:{...a,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...a,borderRadius:this.props.style?.borderRadius},black:{...a,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...a,top:-100*this.props.hsv?.v+100+"%",left:100*this.props.hsv?.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
33
- 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return P.jsxs("div",{style:s.color,ref:i=>this.container=i,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[P.jsx("style",{children:`
34
- .saturation-white {
35
- background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
36
- background: linear-gradient(to right, #fff, rgba(255,255,255,0));
37
- }
38
- .saturation-black {
39
- background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
40
- background: linear-gradient(to top, #000, rgba(0,0,0,0));
41
- }
42
- `}),P.jsxs("div",{style:s.white,className:"saturation-white",children:[P.jsx("div",{style:s.black,className:"saturation-black"}),P.jsx("div",{style:s.pointer,children:this.props.pointer?P.jsx(this.props.pointer,{...this.props}):P.jsx("div",{style:s.circle})})]})]})}}const et=(t,n=null)=>{const e=t.hex?_(t.hex):_(t||"transparent"),r=e.toHsl(),o=e.toHsv(),u=e.toRgb(),a=e.toHex();return r.s===0&&(r.h=n??0,o.h=n??0),{hsl:r,hex:"#"+a,rgb:u,hsv:o,source:t.source}},du=w.memo(t=>{const{selectedColor:n,onColorChange:e,renderers:r,disableAlpha:o=!1,style:u=Vu.ReactUtils.EmptyCssProperties,...a}=t,s=Nu.useTheme(),[i,f]=w.useState(()=>et(n)),[l,h]=w.useState(i.hsl.h??0),p=w.useCallback(c=>{let b=et(c,l);return h(b.hsl.h??0),f(b),b},[l]),v=w.useCallback(c=>{const b=p(c),g=`rgba(${b.rgb.r},${b.rgb.g},${b.rgb.b},${o?1:b.rgb.a})`;e?.(g)},[e,p,o]);w.useLayoutEffect(()=>{p(n)},[n,p]);const d=P.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:P.jsx(Fs,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:i.rgb,hsl:i.hsl,renderers:r,onChange:v})});return P.jsxs("div",{style:{display:"flex",flexDirection:"column",...u},...a,children:[P.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:P.jsx(ff,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:i.hsl,hsv:i.hsv,onChange:v})}),P.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[P.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:o?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[P.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:P.jsx(Ws,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:i.hsl,onChange:v})}),o?null:d]}),P.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[P.jsx(Y.Checkboard,{grey:s.palette.text.icon??s.palette.action.active}),P.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${i.rgb.r},${i.rgb.g},${i.rgb.b},${o?1:i.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),P.jsx(Iu.Box,{sx:{marginBottom:"4px","& label":{fontFamily:c=>`${c.typography.fontFamily} !important`,color:c=>`${c.palette.text.secondary} !important`},"& *":{fontFamily:c=>`${c.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:c=>`${c.spacing(.5)} !important`,paddingRight:c=>`${c.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:P.jsx(sf,{rgb:i.rgb,hsl:i.hsl,hex:i.hex,disableAlpha:o,onChange:v})})]})});exports.CustomColorPanel=du,exports.default=du,exports.toState=et;
@@ -1,18 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.6.5
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("react/jsx-runtime"),F=require("@mui/material"),at=require("@sheetxl/utils-react"),ct=require("@sheetxl/utils-mui"),U=require("react"),k=require("./BS2wS_sZa-gKkoFx.cjs"),q=require("@mui/material/styles"),Ft=require("@mui/icons-material"),Nt=require("@sheetxl/utils");function Bt(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const C=Bt(U);function G(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function $(n){return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(n)}function dt(n){var e=function(t,o){if($(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var l=r.call(t,o);if($(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n,"string");return $(e)=="symbol"?e:e+""}function Oe(n,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,dt(o.key),o)}}function A(n,e,t){return e&&Oe(n.prototype,e),t&&Oe(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function H(n,e){if(e&&($(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)}function z(n){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(n)}function D(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&k._setPrototypeOf(n,e)}function p(n,e,t){return(e=dt(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ut(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function ht(n){this.setState(function(e){var t=this.constructor.getDerivedStateFromProps(n,e);return t??null}.bind(this))}function ft(n,e){try{var t=this.props,o=this.state;this.props=n,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,o)}finally{this.props=t,this.state=o}}function ae(n){var e=n.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return n;var t=null,o=null,r=null;if(typeof e.componentWillMount=="function"?t="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(t="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?o="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(o="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?r="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(r="UNSAFE_componentWillUpdate"),t!==null||o!==null||r!==null){var l=n.displayName||n.name,i=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
7
-
8
- `+l+" uses "+i+" but also contains the following legacy lifecycles:"+(t!==null?`
9
- `+t:"")+(o!==null?`
10
- `+o:"")+(r!==null?`
11
- `+r:"")+`
12
-
13
- The above lifecycles should be removed. Learn more about this warning here:
14
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof n.getDerivedStateFromProps=="function"&&(e.componentWillMount=ut,e.componentWillReceiveProps=ht),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=ft;var a=e.componentDidUpdate;e.componentDidUpdate=function(s,c,d){var u=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;a.call(this,s,c,u)}}return n}function Pe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function ke(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Pe(Object(t),!0).forEach(function(o){p(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Pe(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function pt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pt=function(){return!!n})()}ut.__suppressDeprecationWarning=!0,ht.__suppressDeprecationWarning=!0,ft.__suppressDeprecationWarning=!0;var Me=function(){function n(){var e,t,o,r;G(this,n);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,o=n,r=[].concat(i),o=z(o),p(e=H(t,pt()?Reflect.construct(o,r||[],z(t).constructor):o.apply(t,r)),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),p(e,"_columnStartIndex",0),p(e,"_columnStopIndex",0),p(e,"_rowStartIndex",0),p(e,"_rowStopIndex",0),p(e,"_onKeyDown",function(s){var c=e.props,d=c.columnCount,u=c.disabled,f=c.mode,h=c.rowCount;if(!u){var v=e._getScrollState(),m=v.scrollToColumn,_=v.scrollToRow,S=e._getScrollState(),g=S.scrollToColumn,y=S.scrollToRow;switch(s.key){case"ArrowDown":y=Math.min(f==="cells"?y+1:e._rowStopIndex+1,h-1);break;case"ArrowLeft":g=Math.max(f==="cells"?g-1:e._columnStartIndex-1,0);break;case"ArrowRight":g=Math.min(f==="cells"?g+1:e._columnStopIndex+1,d-1);break;case"ArrowUp":y=Math.max(f==="cells"?y-1:e._rowStartIndex-1,0)}g===m&&y===_||(s.preventDefault(),e._updateScrollState({scrollToColumn:g,scrollToRow:y}))}}),p(e,"_onSectionRendered",function(s){var c=s.columnStartIndex,d=s.columnStopIndex,u=s.rowStartIndex,f=s.rowStopIndex;e._columnStartIndex=c,e._columnStopIndex=d,e._rowStartIndex=u,e._rowStopIndex=f}),e}return D(n,C.PureComponent),A(n,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,r=this._getScrollState(),l=r.scrollToColumn,i=r.scrollToRow;return C.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:l,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,r=this.props,l=r.isControlled,i=r.onScrollToChange;typeof i=="function"&&i({scrollToColumn:t,scrollToRow:o}),l||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?ke(ke({},t),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])}();function gt(n,e){var t,o=(t=e!==void 0?e:typeof window<"u"?window:typeof self<"u"?self:global).document!==void 0&&t.document.attachEvent;if(!o){var r=function(){var g=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(y){return t.setTimeout(y,20)};return function(y){return g(y)}}(),l=function(){var g=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(y){return g(y)}}(),i=function(g){var y=g.__resizeTriggers__,w=y.firstElementChild,x=y.lastElementChild,b=w.firstElementChild;x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight,b.style.width=w.offsetWidth+1+"px",b.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},a=function(g){if(!(g.target.className&&typeof g.target.className.indexOf=="function"&&g.target.className.indexOf("contract-trigger")<0&&g.target.className.indexOf("expand-trigger")<0)){var y=this;i(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=r(function(){(function(w){return w.offsetWidth!=w.__resizeLast__.width||w.offsetHeight!=w.__resizeLast__.height})(y)&&(y.__resizeLast__.width=y.offsetWidth,y.__resizeLast__.height=y.offsetHeight,y.__resizeListeners__.forEach(function(w){w.call(y,g)}))})}},s=!1,c="",d="animationstart",u="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=t.document.createElement("fakeelement");if(h.style.animationName!==void 0&&(s=!0),s===!1){for(var v=0;v<u.length;v++)if(h.style[u[v]+"AnimationName"]!==void 0){c="-"+u[v].toLowerCase()+"-",d=f[v],s=!0;break}}var m="resizeanim",_="@"+c+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",S=c+"animation: 1ms "+m+"; "}return{addResizeListener:function(g,y){if(o)g.attachEvent("onresize",y);else{if(!g.__resizeTriggers__){var w=g.ownerDocument,x=t.getComputedStyle(g);x&&x.position=="static"&&(g.style.position="relative"),function(R){if(!R.getElementById("detectElementResize")){var O=(_||"")+".resize-triggers { "+(S||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',M=R.head||R.getElementsByTagName("head")[0],I=R.createElement("style");I.id="detectElementResize",I.type="text/css",n!=null&&I.setAttribute("nonce",n),I.styleSheet?I.styleSheet.cssText=O:I.appendChild(R.createTextNode(O)),M.appendChild(I)}}(w),g.__resizeLast__={},g.__resizeListeners__=[],(g.__resizeTriggers__=w.createElement("div")).className="resize-triggers";var b=w.createElement("div");b.className="expand-trigger",b.appendChild(w.createElement("div"));var T=w.createElement("div");T.className="contract-trigger",g.__resizeTriggers__.appendChild(b),g.__resizeTriggers__.appendChild(T),g.appendChild(g.__resizeTriggers__),i(g),g.addEventListener("scroll",a,!0),d&&(g.__resizeTriggers__.__animationListener__=function(R){R.animationName==m&&i(g)},g.__resizeTriggers__.addEventListener(d,g.__resizeTriggers__.__animationListener__))}g.__resizeListeners__.push(y)}},removeResizeListener:function(g,y){if(o)g.detachEvent("onresize",y);else if(g.__resizeListeners__.splice(g.__resizeListeners__.indexOf(y),1),!g.__resizeListeners__.length){g.removeEventListener("scroll",a,!0),g.__resizeTriggers__.__animationListener__&&(g.__resizeTriggers__.removeEventListener(d,g.__resizeTriggers__.__animationListener__),g.__resizeTriggers__.__animationListener__=null);try{g.__resizeTriggers__=!g.removeChild(g.__resizeTriggers__)}catch{}}}}}function Le(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function Ge(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Le(Object(t),!0).forEach(function(o){p(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function mt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mt=function(){return!!n})()}p(Me,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),ae(Me);var vt=function(){function n(){var e,t,o,r;G(this,n);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,o=n,r=[].concat(i),o=z(o),p(e=H(t,mt()?Reflect.construct(o,r||[],z(t).constructor):o.apply(t,r)),"state",{height:e.props.defaultHeight||0,width:e.props.defaultWidth||0}),p(e,"_parentNode",void 0),p(e,"_autoSizer",void 0),p(e,"_window",void 0),p(e,"_detectElementResize",void 0),p(e,"_onResize",function(){var s=e.props,c=s.disableHeight,d=s.disableWidth,u=s.onResize;if(e._parentNode){var f=e._parentNode.offsetHeight||0,h=e._parentNode.offsetWidth||0,v=(e._window||window).getComputedStyle(e._parentNode)||{},m=parseInt(v.paddingLeft,10)||0,_=parseInt(v.paddingRight,10)||0,S=parseInt(v.paddingTop,10)||0,g=parseInt(v.paddingBottom,10)||0,y=f-S-g,w=h-m-_;(!c&&e.state.height!==y||!d&&e.state.width!==w)&&(e.setState({height:f-S-g,width:h-m-_}),u({height:f,width:h}))}}),p(e,"_setRef",function(s){e._autoSizer=s}),e}return D(n,C.Component),A(n,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=gt(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,r=e.disableHeight,l=e.disableWidth,i=e.style,a=this.state,s=a.height,c=a.width,d={overflow:"visible"},u={};return r||(d.height=0,u.height=s),l||(d.width=0,u.width=c),C.createElement("div",{className:o,ref:this._setRef,style:Ge(Ge({},d),i)},t(u))}}])}();function _t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_t=function(){return!!n})()}p(vt,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Ut=function(){function n(){var e,t,o,r;G(this,n);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,o=n,r=[].concat(i),o=z(o),p(e=H(t,_t()?Reflect.construct(o,r||[],z(t).constructor):o.apply(t,r)),"_child",C.createRef()),p(e,"_measure",function(){var s=e.props,c=s.cache,d=s.columnIndex,u=d===void 0?0:d,f=s.parent,h=s.rowIndex,v=h===void 0?e.props.index||0:h,m=e._getCellMeasurements(),_=m.height,S=m.width;_===c.getHeight(v,u)&&S===c.getWidth(v,u)||(c.set(v,u,S,_),f&&typeof f.recomputeGridSize=="function"&&f.recomputeGridSize({columnIndex:u,rowIndex:v}))}),p(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),e._child.current=s,s&&e._maybeMeasureCell()}),e}return D(n,C.PureComponent),A(n,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this,t=this.props.children,o=typeof t=="function"?t({measure:this._measure,registerChild:this._registerChild}):t;return o===null?o:U.cloneElement(o,{ref:function(r){typeof o.ref=="function"?o.ref(r):o.ref&&(o.ref.current=r),e._child.current=r}})}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child.current;if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var l=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),r&&(t.style.height=r),{height:l,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,r=o===void 0?0:o,l=e.parent,i=e.rowIndex,a=i===void 0?this.props.index||0:i;if(!t.has(a,r)){var s=this._getCellMeasurements(),c=s.height,d=s.width;t.set(a,r,d,c),l&&typeof l.invalidateCellSizeAfterRender=="function"&&l.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:a})}}}])}();function Z(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e={};return function(t){var o=t.callback,r=t.indices,l=Object.keys(r),i=!n||l.every(function(s){var c=r[s];return Array.isArray(c)?c.length>0:c>=0}),a=l.length!==Object.keys(e).length||l.some(function(s){var c=e[s],d=r[s];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});e=r,i&&a&&o(r)}}p(Ut,"__internalCellMeasurerFlag",!1);const Vt=!(typeof window>"u"||!window.document||!window.document.createElement);var ce;function _e(n){if((!ce&&ce!==0||n)&&Vt){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),ce=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ce}function Ae(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function Ee(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ae(Object(t),!0).forEach(function(o){p(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ae(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function St(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(St=function(){return!!n})()}var qt="observed",ee="requested",ue=function(){function n(){var e,t,o,r;G(this,n);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,o=n,r=[].concat(i),o=z(o),p(e=H(t,St()?Reflect.construct(o,r||[],z(t).constructor):o.apply(t,r)),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),p(e,"_calculateSizeAndPositionDataOnNextUpdate",!1),p(e,"_onSectionRenderedMemoizer",Z()),p(e,"_onScrollMemoizer",Z(!1)),p(e,"_invokeOnSectionRenderedHelper",function(){var s=e.props,c=s.cellLayoutManager,d=s.onSectionRendered;e._onSectionRenderedMemoizer({callback:d,indices:{indices:c.getLastRenderedIndices()}})}),p(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),p(e,"_updateScrollPositionForScrollToCell",function(){var s=e.props,c=s.cellLayoutManager,d=s.height,u=s.scrollToAlignment,f=s.scrollToCell,h=s.width,v=e.state,m=v.scrollLeft,_=v.scrollTop;if(f>=0){var S=c.getScrollPositionForCell({align:u,cellIndex:f,height:d,scrollLeft:m,scrollTop:_,width:h});S.scrollLeft===m&&S.scrollTop===_||e._setScrollPosition(S)}}),p(e,"_onScroll",function(s){if(s.target===e._scrollingContainer){e._enablePointerEventsAfterDelay();var c=e.props,d=c.cellLayoutManager,u=c.height,f=c.isScrollingChange,h=c.width,v=e._scrollbarSize,m=d.getTotalSize(),_=m.height,S=m.width,g=Math.max(0,Math.min(S-h+v,s.target.scrollLeft)),y=Math.max(0,Math.min(_-u+v,s.target.scrollTop));if(e.state.scrollLeft!==g||e.state.scrollTop!==y){var w=s.cancelable?qt:ee;e.state.isScrolling||f(!0),e.setState({isScrolling:!0,scrollLeft:g,scrollPositionChangeReason:w,scrollTop:y})}e._invokeOnScrollMemoizer({scrollLeft:g,scrollTop:y,totalWidth:S,totalHeight:_})}}),e._scrollbarSize=_e(),e._scrollbarSize===void 0?(e._scrollbarSizeMeasured=!1,e._scrollbarSize=0):e._scrollbarSizeMeasured=!0,e}return D(n,C.PureComponent),A(n,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,r=e.scrollToCell,l=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=_e(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(o>=0||l>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:l}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:l||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,r=o.height,l=o.scrollToAlignment,i=o.scrollToCell,a=o.width,s=this.state,c=s.scrollLeft,d=s.scrollPositionChangeReason,u=s.scrollTop;d===ee&&(c>=0&&c!==t.scrollLeft&&c!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=c),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),r===e.height&&l===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,r=e.cellLayoutManager,l=e.className,i=e.height,a=e.horizontalOverscanSize,s=e.id,c=e.noContentRenderer,d=e.style,u=e.verticalOverscanSize,f=e.width,h=this.state,v=h.isScrolling,m=h.scrollLeft,_=h.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var S=r.getTotalSize(),g=S.height,y=S.width,w=Math.max(0,m-a),x=Math.max(0,_-u),b=Math.min(y,m+f+a),T=Math.min(g,_+i+u),R=i>0&&f>0?r.cellRenderers({height:T-x,isScrolling:v,width:b-w,x:w,y:x}):[],O={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},M=g>i?this._scrollbarSize:0,I=y>f?this._scrollbarSize:0;return O.overflowX=y+M<=f?"hidden":"auto",O.overflowY=g+I<=i?"hidden":"auto",C.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:k.clsx("ReactVirtualized__Collection",l),id:s,onScroll:this._onScroll,role:"grid",style:Ee(Ee({},O),d),tabIndex:0},o>0&&C.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:g,maxHeight:g,maxWidth:y,overflow:"hidden",pointerEvents:v?"none":"",width:y}},R),o===0&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,l=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,u=d.height;(0,d.onScroll)({clientHeight:u,clientWidth:d.width,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:ee};t>=0&&(r.scrollLeft=t),o>=0&&(r.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.cellCount!==0||t.scrollLeft===0&&t.scrollTop===0?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:e.scrollLeft!=null?e.scrollLeft:t.scrollLeft,scrollTop:e.scrollTop!=null?e.scrollTop:t.scrollTop,scrollPositionChangeReason:ee}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ee}}}])}();p(ue,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),ue.propTypes={},ae(ue);var Kt=function(){return A(function n(e){var t=e.height,o=e.width,r=e.x,l=e.y;G(this,n),this.height=t,this.width=o,this.x=r,this.y=l,this._indexMap={},this._indices=[]},[{key:"addCellIndex",value:function(n){var e=n.index;this._indexMap[e]||(this._indexMap[e]=!0,this._indices.push(e))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}])}(),$t=function(){return A(function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;G(this,n),this._sectionSize=e,this._cellMetadata=[],this._sections={}},[{key:"getCellIndices",value:function(n){var e=n.height,t=n.width,o=n.x,r=n.y,l={};return this.getSections({height:e,width:t,x:o,y:r}).forEach(function(i){return i.getCellIndices().forEach(function(a){l[a]=a})}),Object.keys(l).map(function(i){return l[i]})}},{key:"getCellMetadata",value:function(n){var e=n.index;return this._cellMetadata[e]}},{key:"getSections",value:function(n){for(var e=n.height,t=n.width,o=n.x,r=n.y,l=Math.floor(o/this._sectionSize),i=Math.floor((o+t-1)/this._sectionSize),a=Math.floor(r/this._sectionSize),s=Math.floor((r+e-1)/this._sectionSize),c=[],d=l;d<=i;d++)for(var u=a;u<=s;u++){var f="".concat(d,".").concat(u);this._sections[f]||(this._sections[f]=new Kt({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:u*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var n=this;return Object.keys(this._sections).map(function(e){return n._sections[e].toString()})}},{key:"registerCell",value:function(n){var e=n.cellMetadatum,t=n.index;this._cellMetadata[t]=e,this.getSections(e).forEach(function(o){return o.addCellIndex({index:t})})}}])}();function We(n){var e=n.align,t=e===void 0?"auto":e,o=n.cellOffset,r=n.cellSize,l=n.containerSize,i=n.currentOffset,a=o,s=a-l+r;switch(t){case"start":return a;case"end":return s;case"center":return a-(l-r)/2;default:return Math.max(s,Math.min(a,i))}}function yt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yt=function(){return!!n})()}var He=function(){function n(e,t){var o,r,l,i;return G(this,n),r=this,i=[e,t],l=z(l=n),(o=H(r,yt()?Reflect.construct(l,i||[],z(r).constructor):l.apply(r,i)))._cellMetadata=[],o._lastRenderedCellIndices=[],o._cellCache=[],o._isScrollingChange=o._isScrollingChange.bind(o),o._setCollectionViewRef=o._setCollectionViewRef.bind(o),o}return D(n,C.PureComponent),A(n,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=k._extends({},(function(t){if(t==null)throw new TypeError("Cannot destructure "+t)}(this.props),this.props));return C.createElement(ue,k._extends({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(o){for(var r=o.cellCount,l=o.cellSizeAndPositionGetter,i=o.sectionSize,a=[],s=new $t(i),c=0,d=0,u=0;u<r;u++){var f=l({index:u});if(f.height==null||isNaN(f.height)||f.width==null||isNaN(f.width)||f.x==null||isNaN(f.x)||f.y==null||isNaN(f.y))throw Error("Invalid metadata returned for cell ".concat(u,`:
15
- x:`).concat(f.x,", y:").concat(f.y,", width:").concat(f.width,", height:").concat(f.height));c=Math.max(c,f.y+f.height),d=Math.max(d,f.x+f.width),a[u]=f,s.registerCell({cellMetadatum:f,index:u})}return{cellMetadata:a,height:c,sectionManager:s,width:d}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,r=e.height,l=e.scrollLeft,i=e.scrollTop,a=e.width,s=this.props.cellCount;if(o>=0&&o<s){var c=this._cellMetadata[o];l=We({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:l}),i=We({align:t,cellOffset:c.y,cellSize:c.height,containerSize:r,currentOffset:i})}return{scrollLeft:l,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,r=e.isScrolling,l=e.width,i=e.x,a=e.y,s=this.props,c=s.cellGroupRenderer,d=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:l,x:i,y:a}),c({cellCache:this._cellCache,cellRenderer:d,cellSizeAndPositionGetter:function(u){var f=u.index;return t._sectionManager.getCellMetadata({index:f})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])}();function wt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wt=function(){return!!n})()}function De(n){var e=n.cellCount,t=n.cellSize,o=n.computeMetadataCallback,r=n.computeMetadataCallbackProps,l=n.nextCellsCount,i=n.nextCellSize,a=n.nextScrollToIndex,s=n.scrollToIndex,c=n.updateScrollOffsetForScrollToIndex;e===l&&(typeof t!="number"&&typeof i!="number"||t===i)||(o(r),s>=0&&s===a&&c())}function oe(n,e){if(n==null)return{};var t,o,r=k._objectWithoutPropertiesLoose(n,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(o=0;o<l.length;o++)t=l[o],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(r[t]=n[t])}return r}p(He,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(n){var e=n.cellCache,t=n.cellRenderer,o=n.cellSizeAndPositionGetter,r=n.indices,l=n.isScrolling;return r.map(function(i){var a=o({index:i}),s={index:i,isScrolling:l,key:i,style:{height:a.height,left:a.x,position:"absolute",top:a.y,width:a.width}};return l?(i in e||(e[i]=t(s)),e[i]):t(s)}).filter(function(i){return!!i})}}),He.propTypes={},function(){function n(e,t){var o,r,l,i;return G(this,n),r=this,i=[e,t],l=z(l=n),(o=H(r,wt()?Reflect.construct(l,i||[],z(r).constructor):l.apply(r,i)))._registerChild=o._registerChild.bind(o),o}return D(n,C.PureComponent),A(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,r=t.columnMinWidth,l=t.columnCount,i=t.width;o===e.columnMaxWidth&&r===e.columnMinWidth&&l===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,r=e.columnMinWidth,l=e.columnCount,i=e.width,a=r||1,s=o?Math.min(o,i):i,c=i/l;return c=Math.max(a,c),c=Math.min(s,c),c=Math.floor(c),t({adjustedWidth:Math.min(i,c*l),columnWidth:c,getColumnWidth:function(){return c},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&typeof e.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])}().propTypes={};var B,Xt=function(){return A(function n(e){var t=e.cellCount,o=e.cellSizeGetter,r=e.estimatedCellSize;G(this,n),p(this,"_cellSizeAndPositionData",{}),p(this,"_lastMeasuredIndex",-1),p(this,"_lastBatchedIndex",-1),p(this,"_cellCount",void 0),p(this,"_cellSizeGetter",void 0),p(this,"_estimatedCellSize",void 0),this._cellSizeGetter=o,this._cellCount=t,this._estimatedCellSize=r},[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(n){var e=n.cellCount,t=n.estimatedCellSize,o=n.cellSizeGetter;this._cellCount=e,this._estimatedCellSize=t,this._cellSizeGetter=o}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(n){if(n<0||n>=this._cellCount)throw Error("Requested index ".concat(n," is outside of range 0..").concat(this._cellCount));if(n>this._lastMeasuredIndex)for(var e=this.getSizeAndPositionOfLastMeasuredCell(),t=e.offset+e.size,o=this._lastMeasuredIndex+1;o<=n;o++){var r=this._cellSizeGetter({index:o});if(r===void 0||isNaN(r))throw Error("Invalid size returned for cell ".concat(o," of value ").concat(r));r===null?(this._cellSizeAndPositionData[o]={offset:t,size:0},this._lastBatchedIndex=n):(this._cellSizeAndPositionData[o]={offset:t,size:r},t+=r,this._lastMeasuredIndex=n)}return this._cellSizeAndPositionData[n]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var n=this.getSizeAndPositionOfLastMeasuredCell();return n.offset+n.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(n){var e=n.align,t=e===void 0?"auto":e,o=n.containerSize,r=n.currentOffset,l=n.targetIndex;if(o<=0)return 0;var i,a=this.getSizeAndPositionOfCell(l),s=a.offset,c=s-o+a.size;switch(t){case"start":i=s;break;case"end":i=c;break;case"center":i=s-(o-a.size)/2;break;default:i=Math.max(c,Math.min(s,r))}var d=this.getTotalSize();return Math.max(0,Math.min(d-o,i))}},{key:"getVisibleCellRange",value:function(n){var e=n.containerSize,t=n.offset;if(this.getTotalSize()===0)return{};var o=t+e,r=this._findNearestCell(t),l=this.getSizeAndPositionOfCell(r);t=l.offset+l.size;for(var i=r;t<o&&i<this._cellCount-1;)i++,t+=this.getSizeAndPositionOfCell(i).size;return{start:r,stop:i}}},{key:"resetCell",value:function(n){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,n-1)}},{key:"_binarySearch",value:function(n,e,t){for(;e<=n;){var o=e+Math.floor((n-e)/2),r=this.getSizeAndPositionOfCell(o).offset;if(r===t)return o;r<t?e=o+1:r>t&&(n=o-1)}return e>0?e-1:0}},{key:"_exponentialSearch",value:function(n,e){for(var t=1;n<this._cellCount&&this.getSizeAndPositionOfCell(n).offset<e;)n+=t,t*=2;return this._binarySearch(Math.min(n,this._cellCount-1),Math.floor(n/2),e)}},{key:"_findNearestCell",value:function(n){if(isNaN(n))throw Error("Invalid offset ".concat(n," specified"));n=Math.max(0,n);var e=this.getSizeAndPositionOfLastMeasuredCell(),t=Math.max(0,this._lastMeasuredIndex);return e.offset>=n?this._binarySearch(t,0,n):this._exponentialSearch(t,n)}}])}(),Yt=function(){return typeof window<"u"&&window.chrome?16777100:15e5},Jt=["maxScrollSize"],je=function(){return A(function n(e){var t=e.maxScrollSize,o=t===void 0?Yt():t,r=oe(e,Jt);G(this,n),p(this,"_cellSizeAndPositionManager",void 0),p(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Xt(r),this._maxScrollSize=o},[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(n){this._cellSizeAndPositionManager.configure(n)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(n){var e=n.containerSize,t=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(l*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(n){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(n)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(n){var e=n.align,t=e===void 0?"auto":e,o=n.containerSize,r=n.currentOffset,l=n.targetIndex;r=this._safeOffsetToOffset({containerSize:o,offset:r});var i=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:o,currentOffset:r,targetIndex:l});return this._offsetToSafeOffset({containerSize:o,offset:i})}},{key:"getVisibleCellRange",value:function(n){var e=n.containerSize,t=n.offset;return t=this._safeOffsetToOffset({containerSize:e,offset:t}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:e,offset:t})}},{key:"resetCell",value:function(n){this._cellSizeAndPositionManager.resetCell(n)}},{key:"_getOffsetPercentage",value:function(n){var e=n.containerSize,t=n.offset,o=n.totalSize;return o<=e?0:t/(o-e)}},{key:"_offsetToSafeOffset",value:function(n){var e=n.containerSize,t=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:o});return Math.round(l*(r-e))}},{key:"_safeOffsetToOffset",value:function(n){var e=n.containerSize,t=n.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(l*(o-e))}}])}();function Fe(n){var e=n.cellSize,t=n.cellSizeAndPositionManager,o=n.previousCellsCount,r=n.previousCellSize,l=n.previousScrollToAlignment,i=n.previousScrollToIndex,a=n.previousSize,s=n.scrollOffset,c=n.scrollToAlignment,d=n.scrollToIndex,u=n.size,f=n.sizeJustIncreasedFromZero,h=n.updateScrollIndexCallback,v=t.getCellCount(),m=d>=0&&d<v;m&&(u!==a||f||!r||typeof e=="number"&&e!==r||c!==l||d!==i)?h(d):!m&&v>0&&(u<a||v<o)&&s>t.getTotalSize()-u&&h(v-1)}var Zt=(B=typeof window<"u"?window:typeof self<"u"?self:{}).requestAnimationFrame||B.webkitRequestAnimationFrame||B.mozRequestAnimationFrame||B.oRequestAnimationFrame||B.msRequestAnimationFrame||function(n){return B.setTimeout(n,1e3/60)},Qt=B.cancelAnimationFrame||B.webkitCancelAnimationFrame||B.mozCancelAnimationFrame||B.oCancelAnimationFrame||B.msCancelAnimationFrame||function(n){B.clearTimeout(n)},Ne=Zt,eo=Qt,Q=function(n){return eo(n.id)},Te=function(n,e){var t;Promise.resolve().then(function(){t=Date.now()});var o=function(){Date.now()-t>=e?n.call():r.id=Ne(o)},r={id:Ne(o)};return r};function Be(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(t),!0).forEach(function(o){p(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function Ct(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ct=function(){return!!n})()}var to="observed",Ue="requested",K=function(){function n(e){var t,o,r,l;G(this,n),o=this,l=[e],r=z(r=n),p(t=H(o,Ct()?Reflect.construct(r,l||[],z(o).constructor):r.apply(o,l)),"_onGridRenderedMemoizer",Z()),p(t,"_onScrollMemoizer",Z(!1)),p(t,"_deferredInvalidateColumnIndex",null),p(t,"_deferredInvalidateRowIndex",null),p(t,"_recomputeScrollLeftFlag",!1),p(t,"_recomputeScrollTopFlag",!1),p(t,"_horizontalScrollBarSize",0),p(t,"_verticalScrollBarSize",0),p(t,"_scrollbarPresenceChanged",!1),p(t,"_scrollingContainer",void 0),p(t,"_childrenToDisplay",void 0),p(t,"_columnStartIndex",void 0),p(t,"_columnStopIndex",void 0),p(t,"_rowStartIndex",void 0),p(t,"_rowStopIndex",void 0),p(t,"_renderedColumnStartIndex",0),p(t,"_renderedColumnStopIndex",0),p(t,"_renderedRowStartIndex",0),p(t,"_renderedRowStopIndex",0),p(t,"_initialScrollTop",void 0),p(t,"_initialScrollLeft",void 0),p(t,"_disablePointerEventsTimeoutId",void 0),p(t,"_styleCache",{}),p(t,"_cellCache",{}),p(t,"_debounceScrollEndedCallback",function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})}),p(t,"_invokeOnGridRenderedHelper",function(){var s=t.props.onSectionRendered;t._onGridRenderedMemoizer({callback:s,indices:{columnOverscanStartIndex:t._columnStartIndex,columnOverscanStopIndex:t._columnStopIndex,columnStartIndex:t._renderedColumnStartIndex,columnStopIndex:t._renderedColumnStopIndex,rowOverscanStartIndex:t._rowStartIndex,rowOverscanStopIndex:t._rowStopIndex,rowStartIndex:t._renderedRowStartIndex,rowStopIndex:t._renderedRowStopIndex}})}),p(t,"_setScrollingContainerRef",function(s){t._scrollingContainer=s,typeof t.props.elementRef=="function"?t.props.elementRef(s):$(t.props.elementRef)==="object"&&(t.props.elementRef.current=s)}),p(t,"_onScroll",function(s){s.target===t._scrollingContainer&&t.handleScrollEvent(s.target)});var i=new je({cellCount:e.columnCount,cellSizeGetter:function(s){return n._wrapSizeGetter(e.columnWidth)(s)},estimatedCellSize:n._getEstimatedColumnSize(e)}),a=new je({cellCount:e.rowCount,cellSizeGetter:function(s){return n._wrapSizeGetter(e.rowHeight)(s)},estimatedCellSize:n._getEstimatedRowSize(e)});return t.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:a,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:e.isScrolling===!0,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(t._initialScrollTop=t._getCalculatedScrollTop(e,t.state)),e.scrollToColumn>0&&(t._initialScrollLeft=t._getCalculatedScrollLeft(e,t.state)),t}return D(n,C.PureComponent),A(n,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.alignment,o=t===void 0?this.props.scrollToAlignment:t,r=e.columnIndex,l=r===void 0?this.props.scrollToColumn:r,i=e.rowIndex,a=i===void 0?this.props.scrollToRow:i,s=j(j({},this.props),{},{scrollToAlignment:o,scrollToColumn:l,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=t===void 0?0:t,r=e.scrollTop,l=r===void 0?0:r;if(!(l<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,c=i.height,d=i.width,u=this.state.instanceProps,f=u.scrollbarSize,h=u.rowSizeAndPositionManager.getTotalSize(),v=u.columnSizeAndPositionManager.getTotalSize(),m=Math.min(Math.max(0,v-d+f),o),_=Math.min(Math.max(0,h-c+f),l);if(this.state.scrollLeft!==m||this.state.scrollTop!==_){var S={isScrolling:!0,scrollDirectionHorizontal:m!==this.state.scrollLeft?m>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:_!==this.state.scrollTop?_>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:to};a||(S.scrollTop=_),s||(S.scrollLeft=m),S.needToResetStyleCache=!1,this.setState(S)}this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:_,totalColumnsWidth:v,totalRowsHeight:h})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,o=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r,i=this.props,a=i.scrollToColumn,s=i.scrollToRow,c=this.state.instanceProps;c.columnSizeAndPositionManager.resetCell(o),c.rowSizeAndPositionManager.resetCell(l),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===1?o<=a:o>=a),this._recomputeScrollTopFlag=s>=0&&(this.state.scrollDirectionVertical===1?l<=s:l>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,r=this.props.columnCount,l=this.props;r>1&&t!==void 0&&this._updateScrollLeftForScrollToColumn(j(j({},l),{},{scrollToColumn:t})),o!==void 0&&this._updateScrollTopForScrollToRow(j(j({},l),{},{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,o=e.height,r=e.scrollLeft,l=e.scrollToColumn,i=e.scrollTop,a=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState(function(f){var h=j(j({},f),{},{needToResetStyleCache:!1});return h.instanceProps.scrollbarSize=t(),h.instanceProps.scrollbarSizeMeasured=!0,h}),typeof r=="number"&&r>=0||typeof i=="number"&&i>=0){var d=n._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:i});d&&(d.needToResetStyleCache=!1,this.setState(d))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var u=o>0&&s>0;l>=0&&u&&this._updateScrollLeftForScrollToColumn(),a>=0&&u&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:i||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,l=r.autoHeight,i=r.autoWidth,a=r.columnCount,s=r.height,c=r.rowCount,d=r.scrollToAlignment,u=r.scrollToColumn,f=r.scrollToRow,h=r.width,v=this.state,m=v.scrollLeft,_=v.scrollPositionChangeReason,S=v.scrollTop,g=v.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&e.columnCount===0||c>0&&e.rowCount===0;_===Ue&&(!i&&m>=0&&(m!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=m),!l&&S>=0&&(S!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=S));var w=(e.width===0||e.height===0)&&s>0&&h>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Fe({cellSizeAndPositionManager:g.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:m,scrollToAlignment:d,scrollToIndex:u,size:h,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Fe({cellSizeAndPositionManager:g.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:S,scrollToAlignment:d,scrollToIndex:f,size:s,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),m!==t.scrollLeft||S!==t.scrollTop){var x=g.rowSizeAndPositionManager.getTotalSize(),b=g.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:S,totalColumnsWidth:b,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Q(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,r=e.autoWidth,l=e.className,i=e.containerProps,a=e.containerRole,s=e.containerStyle,c=e.height,d=e.id,u=e.noContentRenderer,f=e.role,h=e.style,v=e.tabIndex,m=e.width,_=this.state,S=_.instanceProps,g=_.needToResetStyleCache,y=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:r?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};g&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=S.columnSizeAndPositionManager.getTotalSize(),b=S.rowSizeAndPositionManager.getTotalSize(),T=b>c?S.scrollbarSize:0,R=x>m?S.scrollbarSize:0;R===this._horizontalScrollBarSize&&T===this._verticalScrollBarSize||(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=T,this._scrollbarPresenceChanged=!0),w.overflowX=x+T<=m?"hidden":"auto",w.overflowY=b+R<=c?"hidden":"auto";var O=this._childrenToDisplay,M=O.length===0&&c>0&&m>0;return C.createElement("div",k._extends({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:k.clsx("ReactVirtualized__Grid",l),id:d,onScroll:this._onScroll,role:f,style:j(j({},w),h),tabIndex:v}),O.length>0&&C.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:j({width:t?"auto":x,height:b,maxWidth:x,maxHeight:b,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},s)},O),M&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=e.cellRenderer,r=e.cellRangeRenderer,l=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,c=e.overscanIndicesGetter,d=e.overscanRowCount,u=e.rowCount,f=e.width,h=e.isScrollingOptOut,v=t.scrollDirectionHorizontal,m=t.scrollDirectionVertical,_=t.instanceProps,S=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,g=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var w=_.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:g}),x=_.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:S}),b=_.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:g}),T=_.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:S});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var R=c({direction:"horizontal",cellCount:l,overscanCellsCount:s,scrollDirection:v,startIndex:typeof w.start=="number"?w.start:0,stopIndex:typeof w.stop=="number"?w.stop:-1}),O=c({direction:"vertical",cellCount:u,overscanCellsCount:d,scrollDirection:m,startIndex:typeof x.start=="number"?x.start:0,stopIndex:typeof x.stop=="number"?x.stop:-1}),M=R.overscanStartIndex,I=R.overscanStopIndex,E=O.overscanStartIndex,W=O.overscanStopIndex;if(i){if(!i.hasFixedHeight()){for(var N=E;N<=W;N++)if(!i.has(N,0)){M=0,I=l-1;break}}if(!i.hasFixedWidth()){for(var fe=M;fe<=I;fe++)if(!i.has(0,fe)){E=0,W=u-1;break}}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:_.columnSizeAndPositionManager,columnStartIndex:M,columnStopIndex:I,deferredMeasurementCache:i,horizontalOffsetAdjustment:b,isScrolling:y,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:_.rowSizeAndPositionManager,rowStartIndex:E,rowStopIndex:W,scrollLeft:g,scrollTop:S,styleCache:this._styleCache,verticalOffsetAdjustment:T,visibleColumnIndices:w,visibleRowIndices:x}),this._columnStartIndex=M,this._columnStopIndex=I,this._rowStartIndex=E,this._rowStopIndex=W}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Q(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Te(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,l=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,u=d.height;(0,d.onScroll)({clientHeight:u,clientWidth:d.width,scrollHeight:i,scrollLeft:s,scrollTop:c,scrollWidth:l})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?!!e.isScrolling:!!t.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r=n._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:t,scrollTop:o});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return n._getCalculatedScrollLeft(e,t)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=n._getScrollLeftForScrollToColumnStateUpdate(e,t);o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return n._getCalculatedScrollTop(e,t)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var l=this._columnStartIndex;l<=this._columnStopIndex;l++){var i="".concat(r,"-").concat(l);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=n._getScrollTopForScrollToRowStateUpdate(e,t);o&&(o.needToResetStyleCache=!1,this.setState(o))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var o={};e.columnCount===0&&t.scrollLeft!==0||e.rowCount===0&&t.scrollTop!==0?(o.scrollLeft=0,o.scrollTop=0):(e.scrollLeft!==t.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==t.scrollTop&&e.scrollToRow<0)&&Object.assign(o,n._getScrollToPositionStateUpdate({prevState:t,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,l,i=t.instanceProps;return o.needToResetStyleCache=!1,e.columnWidth===i.prevColumnWidth&&e.rowHeight===i.prevRowHeight||(o.needToResetStyleCache=!0),i.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:n._getEstimatedColumnSize(e),cellSizeGetter:n._wrapSizeGetter(e.columnWidth)}),i.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:n._getEstimatedRowSize(e),cellSizeGetter:n._wrapSizeGetter(e.rowHeight)}),i.prevColumnCount!==0&&i.prevRowCount!==0||(i.prevColumnCount=0,i.prevRowCount=0),e.autoHeight&&e.isScrolling===!1&&i.prevIsScrolling===!0&&Object.assign(o,{isScrolling:!1}),De({cellCount:i.prevColumnCount,cellSize:typeof i.prevColumnWidth=="number"?i.prevColumnWidth:null,computeMetadataCallback:function(){return i.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:typeof e.columnWidth=="number"?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:i.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=n._getScrollLeftForScrollToColumnStateUpdate(e,t)}}),De({cellCount:i.prevRowCount,cellSize:typeof i.prevRowHeight=="number"?i.prevRowHeight:null,computeMetadataCallback:function(){return i.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:typeof e.rowHeight=="number"?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:i.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){l=n._getScrollTopForScrollToRowStateUpdate(e,t)}}),i.prevColumnCount=e.columnCount,i.prevColumnWidth=e.columnWidth,i.prevIsScrolling=e.isScrolling===!0,i.prevRowCount=e.rowCount,i.prevRowHeight=e.rowHeight,i.prevScrollToColumn=e.scrollToColumn,i.prevScrollToRow=e.scrollToRow,i.scrollbarSize=e.getScrollbarSize(),i.scrollbarSize===void 0?(i.scrollbarSizeMeasured=!1,i.scrollbarSize=0):i.scrollbarSizeMeasured=!0,o.instanceProps=i,j(j(j({},o),r),l)}},{key:"_getEstimatedColumnSize",value:function(e){return typeof e.columnWidth=="number"?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return typeof e.rowHeight=="number"?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,r=e.scrollTop,l={scrollPositionChangeReason:Ue};return typeof o=="number"&&o>=0&&(l.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,l.scrollLeft=o),typeof r=="number"&&r>=0&&(l.scrollDirectionVertical=r>t.scrollTop?1:-1,l.scrollTop=r),typeof o=="number"&&o>=0&&o!==t.scrollLeft||typeof r=="number"&&r>=0&&r!==t.scrollTop?l:{}}},{key:"_wrapSizeGetter",value:function(e){return typeof e=="function"?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,r=e.height,l=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,c=t.instanceProps;if(o>0){var d=o-1,u=i<0?d:Math.min(d,i),f=c.rowSizeAndPositionManager.getTotalSize(),h=c.scrollbarSizeMeasured&&f>r?c.scrollbarSize:0;return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:a-h,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,t){var o=t.scrollLeft,r=n._getCalculatedScrollLeft(e,t);return typeof r=="number"&&r>=0&&o!==r?n._getScrollToPositionStateUpdate({prevState:t,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,r=e.rowCount,l=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,c=t.instanceProps;if(r>0){var d=r-1,u=i<0?d:Math.min(d,i),f=c.columnSizeAndPositionManager.getTotalSize(),h=c.scrollbarSizeMeasured&&f>a?c.scrollbarSize:0;return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:o-h,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,t){var o=t.scrollTop,r=n._getCalculatedScrollTop(e,t);return typeof r=="number"&&r>=0&&o!==r?n._getScrollToPositionStateUpdate({prevState:t,scrollLeft:-1,scrollTop:r}):{}}}])}();p(K,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(n){for(var e=n.cellCache,t=n.cellRenderer,o=n.columnSizeAndPositionManager,r=n.columnStartIndex,l=n.columnStopIndex,i=n.deferredMeasurementCache,a=n.horizontalOffsetAdjustment,s=n.isScrolling,c=n.isScrollingOptOut,d=n.parent,u=n.rowSizeAndPositionManager,f=n.rowStartIndex,h=n.rowStopIndex,v=n.styleCache,m=n.verticalOffsetAdjustment,_=n.visibleColumnIndices,S=n.visibleRowIndices,g=[],y=o.areOffsetsAdjusted()||u.areOffsetsAdjusted(),w=!s&&!y,x=f;x<=h;x++)for(var b=u.getSizeAndPositionOfCell(x),T=r;T<=l;T++){var R=o.getSizeAndPositionOfCell(T),O=T>=_.start&&T<=_.stop&&x>=S.start&&x<=S.stop,M="".concat(x,"-").concat(T),I=void 0;w&&v[M]?I=v[M]:i&&!i.has(x,T)?I={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(I={height:b.size,left:R.offset+a,position:"absolute",top:b.offset+m,width:R.size},v[M]=I);var E={columnIndex:T,isScrolling:s,isVisible:O,key:M,parent:d,rowIndex:x,style:I},W=void 0;!c&&!s||a||m?W=t(E):(e[M]||(e[M]=t(E)),W=e[M]),W!=null&&W!==!1&&(W.props.role||(W=U.cloneElement(W,{role:"gridcell"})),g.push(W))}return g},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:_e,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(n){var e=n.cellCount,t=n.overscanCellsCount,o=n.scrollDirection,r=n.startIndex,l=n.stopIndex;return o===1?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(e-1,l+t)}:{overscanStartIndex:Math.max(0,r-t),overscanStopIndex:Math.min(e-1,l)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),ae(K);function xt(n){var e=n.cellCount,t=n.overscanCellsCount,o=n.scrollDirection,r=n.startIndex,l=n.stopIndex;return t=Math.max(1,t),o===1?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(e-1,l+t)}:{overscanStartIndex:Math.max(0,r-t),overscanStopIndex:Math.min(e-1,l+1)}}function Se(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=Array(e);t<e;t++)o[t]=n[t];return o}function Rt(n,e){if(n){if(typeof n=="string")return Se(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Se(n,e):void 0}}function oo(n){return function(e){if(Array.isArray(e))return Se(e)}(n)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(n)||Rt(n)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function bt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bt=function(){return!!n})()}var Ve=function(){function n(e,t){var o,r,l,i;return G(this,n),r=this,i=[e,t],l=z(l=n),(o=H(r,bt()?Reflect.construct(l,i||[],z(r).constructor):l.apply(r,i)))._loadMoreRowsMemoizer=Z(),o._onRowsRendered=o._onRowsRendered.bind(o),o._registerChild=o._registerChild.bind(o),o}return D(n,C.PureComponent),A(n,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Z(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach(function(r){var l=o(r);l&&l.then(function(){var i,a,s,c,d;i={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:r.startIndex,stopIndex:r.stopIndex},a=i.lastRenderedStartIndex,s=i.lastRenderedStopIndex,c=i.startIndex,d=i.stopIndex,c>s||d<a||t._registeredChild&&function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h=typeof u.recomputeGridSize=="function"?u.recomputeGridSize:u.recomputeRowHeights;h?h.call(u,f):u.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,r=this,l=this.props,i=l.isRowLoaded,a=l.minimumBatchSize,s=l.rowCount,c=l.threshold,d=function(f){for(var h=f.isRowLoaded,v=f.minimumBatchSize,m=f.rowCount,_=f.startIndex,S=f.stopIndex,g=[],y=null,w=null,x=_;x<=S;x++)h({index:x})?w!==null&&(g.push({startIndex:y,stopIndex:w}),y=w=null):(w=x,y===null&&(y=x));if(w!==null){for(var b=Math.min(Math.max(w,y+v-1),m-1),T=w+1;T<=b&&!h({index:T});T++)w=T;g.push({startIndex:y,stopIndex:w})}if(g.length)for(var R=g[0];R.stopIndex-R.startIndex+1<v&&R.startIndex>0;){var O=R.startIndex-1;if(h({index:O}))break;R.startIndex=O}return g}({isRowLoaded:i,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-c),stopIndex:Math.min(s-1,t+c)}),u=(o=[]).concat.apply(o,oo(d.map(function(f){return[f.startIndex,f.stopIndex]})));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(d)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])}();function Tt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tt=function(){return!!n})()}p(Ve,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Ve.propTypes={};var no=function(){function n(){var e,t,o,r;G(this,n);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,o=n,r=[].concat(i),o=z(o),p(e=H(t,Tt()?Reflect.construct(o,r||[],z(t).constructor):o.apply(t,r)),"Grid",void 0),p(e,"_cellRenderer",function(s){var c=s.parent,d=s.rowIndex,u=s.style,f=s.isScrolling,h=s.isVisible,v=s.key,m=e.props.rowRenderer,_=Object.getOwnPropertyDescriptor(u,"width");return _&&_.writable&&(u.width="100%"),m({index:d,style:u,isScrolling:f,isVisible:h,key:v,parent:c})}),p(e,"_setRef",function(s){e.Grid=s}),p(e,"_onScroll",function(s){var c=s.clientHeight,d=s.scrollHeight,u=s.scrollTop;(0,e.props.onScroll)({clientHeight:c,scrollHeight:d,scrollTop:u})}),p(e,"_onSectionRendered",function(s){var c=s.rowOverscanStartIndex,d=s.rowOverscanStopIndex,u=s.rowStartIndex,f=s.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:c,overscanStopIndex:d,startIndex:u,stopIndex:f})}),e}return D(n,C.PureComponent),A(n,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,o=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,r=e.scrollToIndex,l=e.width,i=k.clsx("ReactVirtualized__List",t);return C.createElement(K,k._extends({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:l,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}])}();function ro(n,e){return function(t){if(Array.isArray(t))return t}(n)||function(t,o){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var l,i,a,s,c=[],d=!0,u=!1;try{if(a=(r=r.call(t)).next,o!==0)for(;!(d=(l=a.call(r)).done)&&(c.push(l.value),c.length!==o);d=!0);}catch(f){u=!0,i=f}finally{try{if(!d&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return c}}(n,e)||Rt(n,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}p(no,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:xt,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const de={ge:function(n,e,t,o,r){return typeof t=="function"?function(l,i,a,s,c){for(var d=a+1;i<=a;){var u=i+a>>>1;c(l[u],s)>=0?(d=u,a=u-1):i=u+1}return d}(n,o===void 0?0:0|o,r===void 0?n.length-1:0|r,e,t):function(l,i,a,s){for(var c=a+1;i<=a;){var d=i+a>>>1;l[d]>=s?(c=d,a=d-1):i=d+1}return c}(n,t===void 0?0:0|t,o===void 0?n.length-1:0|o,e)},gt:function(n,e,t,o,r){return typeof t=="function"?function(l,i,a,s,c){for(var d=a+1;i<=a;){var u=i+a>>>1;c(l[u],s)>0?(d=u,a=u-1):i=u+1}return d}(n,o===void 0?0:0|o,r===void 0?n.length-1:0|r,e,t):function(l,i,a,s){for(var c=a+1;i<=a;){var d=i+a>>>1;l[d]>s?(c=d,a=d-1):i=d+1}return c}(n,t===void 0?0:0|t,o===void 0?n.length-1:0|o,e)},lt:function(n,e,t,o,r){return typeof t=="function"?function(l,i,a,s,c){for(var d=i-1;i<=a;){var u=i+a>>>1;c(l[u],s)<0?(d=u,i=u+1):a=u-1}return d}(n,o===void 0?0:0|o,r===void 0?n.length-1:0|r,e,t):function(l,i,a,s){for(var c=i-1;i<=a;){var d=i+a>>>1;l[d]<s?(c=d,i=d+1):a=d-1}return c}(n,t===void 0?0:0|t,o===void 0?n.length-1:0|o,e)},le:function(n,e,t,o,r){return typeof t=="function"?function(l,i,a,s,c){for(var d=i-1;i<=a;){var u=i+a>>>1;c(l[u],s)<=0?(d=u,i=u+1):a=u-1}return d}(n,o===void 0?0:0|o,r===void 0?n.length-1:0|r,e,t):function(l,i,a,s){for(var c=i-1;i<=a;){var d=i+a>>>1;l[d]<=s?(c=d,i=d+1):a=d-1}return c}(n,t===void 0?0:0|t,o===void 0?n.length-1:0|o,e)},eq:function(n,e,t,o,r){return typeof t=="function"?function(l,i,a,s,c){for(;i<=a;){var d=i+a>>>1,u=c(l[d],s);if(u===0)return d;u<=0?i=d+1:a=d-1}return-1}(n,o===void 0?0:0|o,r===void 0?n.length-1:0|r,e,t):function(l,i,a,s){for(;i<=a;){var c=i+a>>>1,d=l[c];if(d===s)return c;d<=s?i=c+1:a=c-1}return-1}(n,t===void 0?0:0|t,o===void 0?n.length-1:0|o,e)}};function ze(n,e,t,o,r){this.mid=n,this.left=e,this.right=t,this.leftPoints=o,this.rightPoints=r,this.count=(e?e.count:0)+(t?t.count:0)+o.length}var te=ze.prototype;function pe(n,e){n.mid=e.mid,n.left=e.left,n.right=e.right,n.leftPoints=e.leftPoints,n.rightPoints=e.rightPoints,n.count=e.count}function zt(n,e){var t=le(e);n.mid=t.mid,n.left=t.left,n.right=t.right,n.leftPoints=t.leftPoints,n.rightPoints=t.rightPoints,n.count=t.count}function qe(n,e){var t=n.intervals([]);t.push(e),zt(n,t)}function Ke(n,e){var t=n.intervals([]),o=t.indexOf(e);return o<0?0:(t.splice(o,1),zt(n,t),1)}function $e(n,e,t){for(var o=0;o<n.length&&n[o][0]<=e;++o){var r=t(n[o]);if(r)return r}}function Xe(n,e,t){for(var o=n.length-1;o>=0&&n[o][1]>=e;--o){var r=t(n[o]);if(r)return r}}function Ye(n,e){for(var t=0;t<n.length;++t){var o=e(n[t]);if(o)return o}}function io(n,e){return n-e}function ye(n,e){var t=n[0]-e[0];return t||n[1]-e[1]}function we(n,e){var t=n[1]-e[1];return t||n[0]-e[0]}function le(n){if(n.length===0)return null;for(var e=[],t=0;t<n.length;++t)e.push(n[t][0],n[t][1]);e.sort(io);var o=e[e.length>>1],r=[],l=[],i=[];for(t=0;t<n.length;++t){var a=n[t];a[1]<o?r.push(a):o<a[0]?l.push(a):i.push(a)}var s=i,c=i.slice();return s.sort(ye),c.sort(we),new ze(o,le(r),le(l),s,c)}function It(n){this.root=n}te.intervals=function(n){return n.push.apply(n,this.leftPoints),this.left&&this.left.intervals(n),this.right&&this.right.intervals(n),n},te.insert=function(n){var e=this.count-this.leftPoints.length;if(this.count+=1,n[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?qe(this,n):this.left.insert(n):this.left=le([n]);else if(n[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?qe(this,n):this.right.insert(n):this.right=le([n]);else{var t=de.ge(this.leftPoints,n,ye),o=de.ge(this.rightPoints,n,we);this.leftPoints.splice(t,0,n),this.rightPoints.splice(o,0,n)}},te.remove=function(n){var e=this.count-this.leftPoints;if(n[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(e-1)?Ke(this,n):(l=this.left.remove(n))===2?(this.left=null,this.count-=1,1):(l===1&&(this.count-=1),l):0;if(n[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?Ke(this,n):(l=this.right.remove(n))===2?(this.right=null,this.count-=1,1):(l===1&&(this.count-=1),l):0;if(this.count===1)return this.leftPoints[0]===n?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===n){if(this.left&&this.right){for(var t=this,o=this.left;o.right;)t=o,o=o.right;if(t===this)o.right=this.right;else{var r=this.left,l=this.right;t.count-=o.count,t.right=o.left,o.left=r,o.right=l}pe(this,o),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?pe(this,this.left):pe(this,this.right);return 1}for(r=de.ge(this.leftPoints,n,ye);r<this.leftPoints.length&&this.leftPoints[r][0]===n[0];++r)if(this.leftPoints[r]===n){for(this.count-=1,this.leftPoints.splice(r,1),l=de.ge(this.rightPoints,n,we);l<this.rightPoints.length&&this.rightPoints[l][1]===n[1];++l)if(this.rightPoints[l]===n)return this.rightPoints.splice(l,1),1}return 0},te.queryPoint=function(n,e){if(n<this.mid)return this.left&&(t=this.left.queryPoint(n,e))?t:$e(this.leftPoints,n,e);if(n>this.mid){var t;return this.right&&(t=this.right.queryPoint(n,e))?t:Xe(this.rightPoints,n,e)}return Ye(this.leftPoints,e)},te.queryInterval=function(n,e,t){var o;return n<this.mid&&this.left&&(o=this.left.queryInterval(n,e,t))||e>this.mid&&this.right&&(o=this.right.queryInterval(n,e,t))?o:e<this.mid?$e(this.leftPoints,e,t):n>this.mid?Xe(this.rightPoints,n,t):Ye(this.leftPoints,t)};var J=It.prototype;J.insert=function(n){this.root?this.root.insert(n):this.root=new ze(n[0],null,null,[n],[n])},J.remove=function(n){if(this.root){var e=this.root.remove(n);return e===2&&(this.root=null),e!==0}return!1},J.queryPoint=function(n,e){if(this.root)return this.root.queryPoint(n,e)},J.queryInterval=function(n,e,t){if(n<=e&&this.root)return this.root.queryInterval(n,e,t)},Object.defineProperty(J,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(J,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var ge=function(){return A(function n(){G(this,n),p(this,"_columnSizeMap",{}),p(this,"_intervalTree",new It(null)),p(this,"_leftMap",{})},[{key:"estimateTotalHeight",value:function(n,e,t){var o=n-this.count;return this.tallestColumnSize+Math.ceil(o/e)*t}},{key:"range",value:function(n,e,t){var o=this;this._intervalTree.queryInterval(n,n+e,function(r){var l=ro(r,3),i=l[0];l[1];var a=l[2];return t(a,o._leftMap[a],i)})}},{key:"setPosition",value:function(n,e,t,o){this._intervalTree.insert([t,t+o,n]),this._leftMap[n]=e;var r=this._columnSizeMap,l=r[e];r[e]=l===void 0?t+o:Math.max(l,t+o)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var n=this._columnSizeMap,e=0;for(var t in n){var o=n[t];e=e===0?o:Math.min(e,o)}return e}},{key:"tallestColumnSize",get:function(){var n=this._columnSizeMap,e=0;for(var t in n){var o=n[t];e=Math.max(e,o)}return e}}])}();function Je(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function lo(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Je(Object(t),!0).forEach(function(o){p(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Je(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function Ot(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ot=function(){return!!n})()}var Ze=function(){function n(){var e,t,o,r;G(this,n);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,o=n,r=[].concat(i),o=z(o),p(e=H(t,Ot()?Reflect.construct(o,r||[],z(t).constructor):o.apply(t,r)),"state",{isScrolling:!1,scrollTop:0}),p(e,"_debounceResetIsScrollingId",void 0),p(e,"_invalidateOnUpdateStartIndex",null),p(e,"_invalidateOnUpdateStopIndex",null),p(e,"_positionCache",new ge),p(e,"_startIndex",null),p(e,"_startIndexMemoized",null),p(e,"_stopIndex",null),p(e,"_stopIndexMemoized",null),p(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),p(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),p(e,"_onScroll",function(s){var c=e.props.height,d=s.currentTarget.scrollTop,u=Math.min(Math.max(0,e._getEstimatedTotalHeight()-c),d);d===u&&(e._debounceResetIsScrolling(),e.state.scrollTop!==u&&e.setState({isScrolling:!0,scrollTop:u}))}),e}return D(n,C.PureComponent),A(n,[{key:"clearCellPositions",value:function(){this._positionCache=new ge,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new ge,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&Q(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,r=o.autoHeight,l=o.cellCount,i=o.cellMeasurerCache,a=o.cellRenderer,s=o.className,c=o.height,d=o.id,u=o.keyMapper,f=o.overscanByPixels,h=o.role,v=o.style,m=o.tabIndex,_=o.width,S=o.rowDirection,g=this.state,y=g.isScrolling,w=g.scrollTop,x=[],b=this._getEstimatedTotalHeight(),T=this._positionCache.shortestColumnSize,R=this._positionCache.count,O=0;if(this._positionCache.range(Math.max(0,w-f),c+2*f,function(E,W,N){e===void 0?(O=E,e=E):(O=Math.min(O,E),e=Math.max(e,E)),x.push(a({index:E,isScrolling:y,key:u(E),parent:t,style:p(p(p(p({height:i.getHeight(E)},S==="ltr"?"left":"right",W),"position","absolute"),"top",N),"width",i.getWidth(E))}))}),T<w+c+f&&R<l)for(var M=Math.min(l-R,Math.ceil((w+c+f-T)/i.defaultHeight*_/i.defaultWidth)),I=R;I<R+M;I++)e=I,x.push(a({index:I,isScrolling:y,key:u(I),parent:this,style:{width:i.getWidth(I)}}));return this._startIndex=O,this._stopIndex=e,C.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:k.clsx("ReactVirtualized__Masonry",s),id:d,onScroll:this._onScroll,role:h,style:lo({boxSizing:"border-box",direction:"ltr",height:r?"auto":c,overflowX:"hidden",overflowY:b<c?"hidden":"auto",position:"relative",width:_,WebkitOverflowScrolling:"touch",willChange:"transform"},v),tabIndex:m},C.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:b,maxWidth:"100%",maxHeight:b,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"}},x))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&Q(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Te(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,r=e.width,l=Math.max(1,Math.floor(r/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,l,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,r=o.cellMeasurerCache,l=o.cellPositioner,i=e;i<=t;i++){var a=l(i),s=a.left,c=a.top;this._positionCache.setPosition(i,s,c,r.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollTop!==void 0&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])}();function Qe(){}p(Ze,"defaultProps",{autoHeight:!1,keyMapper:function(n){return n},onCellsRendered:Qe,onScroll:Qe,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),ae(Ze);var me=function(){return A(function n(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};G(this,n),p(this,"_cellMeasurerCache",void 0),p(this,"_columnIndexOffset",void 0),p(this,"_rowIndexOffset",void 0),p(this,"columnWidth",function(s){var c=s.index;e._cellMeasurerCache.columnWidth({index:c+e._columnIndexOffset})}),p(this,"rowHeight",function(s){var c=s.index;e._cellMeasurerCache.rowHeight({index:c+e._rowIndexOffset})});var o=t.cellMeasurerCache,r=t.columnIndexOffset,l=r===void 0?0:r,i=t.rowIndexOffset,a=i===void 0?0:i;this._cellMeasurerCache=o,this._columnIndexOffset=l,this._rowIndexOffset=a},[{key:"clear",value:function(n,e){this._cellMeasurerCache.clear(n+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(n+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"getWidth",value:function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(n+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"has",value:function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(n+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"set",value:function(n,e,t,o){this._cellMeasurerCache.set(n+this._rowIndexOffset,e+this._columnIndexOffset,t,o)}}])}(),so=["rowIndex"],ao=["columnIndex","rowIndex"],co=["columnIndex"],uo=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function et(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function P(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?et(Object(t),!0).forEach(function(o){p(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):et(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function Pt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pt=function(){return!!n})()}var ve=function(){function n(e,t){var o,r,l,i;G(this,n),r=this,i=[e,t],l=z(l=n),p(o=H(r,Pt()?Reflect.construct(l,i||[],z(r).constructor):l.apply(r,i)),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),p(o,"_deferredInvalidateColumnIndex",null),p(o,"_deferredInvalidateRowIndex",null),p(o,"_bottomLeftGridRef",function(d){o._bottomLeftGrid=d}),p(o,"_bottomRightGridRef",function(d){o._bottomRightGrid=d}),p(o,"_cellRendererBottomLeftGrid",function(d){var u=d.rowIndex,f=oe(d,so),h=o.props,v=h.cellRenderer,m=h.fixedRowCount;return u===h.rowCount-m?C.createElement("div",{key:f.key,style:P(P({},f.style),{},{height:20})}):v(P(P({},f),{},{parent:o,rowIndex:u+m}))}),p(o,"_cellRendererBottomRightGrid",function(d){var u=d.columnIndex,f=d.rowIndex,h=oe(d,ao),v=o.props,m=v.cellRenderer,_=v.fixedColumnCount,S=v.fixedRowCount;return m(P(P({},h),{},{columnIndex:u+_,parent:o,rowIndex:f+S}))}),p(o,"_cellRendererTopRightGrid",function(d){var u=d.columnIndex,f=oe(d,co),h=o.props,v=h.cellRenderer,m=h.columnCount,_=h.fixedColumnCount;return u===m-_?C.createElement("div",{key:f.key,style:P(P({},f.style),{},{width:20})}):v(P(P({},f),{},{columnIndex:u+_,parent:o}))}),p(o,"_columnWidthRightGrid",function(d){var u=d.index,f=o.props,h=f.columnCount,v=f.fixedColumnCount,m=f.columnWidth,_=o.state,S=_.scrollbarSize;return _.showHorizontalScrollbar&&u===h-v?S:typeof m=="function"?m({index:u+v}):m}),p(o,"_onScroll",function(d){var u=d.scrollLeft,f=d.scrollTop;o.setState({scrollLeft:u,scrollTop:f});var h=o.props.onScroll;h&&h(d)}),p(o,"_onScrollbarPresenceChange",function(d){var u=d.horizontal,f=d.size,h=d.vertical,v=o.state,m=v.showHorizontalScrollbar,_=v.showVerticalScrollbar;if(u!==m||h!==_){o.setState({scrollbarSize:f,showHorizontalScrollbar:u,showVerticalScrollbar:h});var S=o.props.onScrollbarPresenceChange;typeof S=="function"&&S({horizontal:u,size:f,vertical:h})}}),p(o,"_onScrollLeft",function(d){var u=d.scrollLeft;o._onScroll({scrollLeft:u,scrollTop:o.state.scrollTop})}),p(o,"_onScrollTop",function(d){var u=d.scrollTop;o._onScroll({scrollTop:u,scrollLeft:o.state.scrollLeft})}),p(o,"_rowHeightBottomGrid",function(d){var u=d.index,f=o.props,h=f.fixedRowCount,v=f.rowCount,m=f.rowHeight,_=o.state,S=_.scrollbarSize;return _.showVerticalScrollbar&&u===v-h?S:typeof m=="function"?m({index:u+h}):m}),p(o,"_topLeftGridRef",function(d){o._topLeftGrid=d}),p(o,"_topRightGridRef",function(d){o._topRightGrid=d});var a=e.deferredMeasurementCache,s=e.fixedColumnCount,c=e.fixedRowCount;return o._maybeCalculateCachedStyles(!0),a&&(o._deferredMeasurementCacheBottomLeftGrid=c>0?new me({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:c}):a,o._deferredMeasurementCacheBottomRightGrid=s>0||c>0?new me({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:c}):a,o._deferredMeasurementCacheTopRightGrid=s>0?new me({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:0}):a),o}return D(n,C.PureComponent),A(n,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,o=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,l):l}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,o=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r,i=this.props,a=i.fixedColumnCount,s=i.fixedRowCount,c=Math.max(0,o-a),d=Math.max(0,l-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:d}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:c,rowIndex:d}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:l}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:c,rowIndex:l}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var r={};t>0&&(r.scrollLeft=t),o>0&&(r.scrollTop=o),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered;e.onScrollbarPresenceChange,e.scrollLeft;var r=e.scrollToColumn;e.scrollTop;var l=e.scrollToRow,i=oe(e,uo);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return C.createElement("div",{style:this._containerOuterStyle},C.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(P(P({},i),{},{onScroll:t,scrollLeft:s}))),C.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(P(P({},i),{},{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(P(P({},i),{},{onScroll:t,onSectionRendered:o,scrollLeft:s,scrollToColumn:r,scrollToRow:l,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(this._leftGridWidth==null)if(typeof o=="function"){for(var r=0,l=0;l<t;l++)r+=o({index:l});this._leftGridWidth=r}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(this._topGridHeight==null)if(typeof o=="function"){for(var r=0,l=0;l<t;l++)r+=o({index:l});this._topGridHeight=r}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,r=t.enableFixedColumnScroll,l=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,c=t.rowHeight,d=t.style,u=t.styleBottomLeftGrid,f=t.styleBottomRightGrid,h=t.styleTopLeftGrid,v=t.styleTopRightGrid,m=t.width,_=e||i!==this._lastRenderedHeight||m!==this._lastRenderedWidth,S=e||o!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,g=e||s!==this._lastRenderedFixedRowCount||c!==this._lastRenderedRowHeight;(e||_||d!==this._lastRenderedStyle)&&(this._containerOuterStyle=P({height:i,overflow:"visible",width:m},d)),(e||_||g)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:m},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:m}),(e||u!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=P({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},u)),(e||S||f!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=P({left:this._getLeftGridWidth(this.props),position:"absolute"},f)),(e||h!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=P({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},h)),(e||S||v!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=P({left:this._getLeftGridWidth(this.props),overflowX:l?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},v)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=i,this._lastRenderedRowHeight=c,this._lastRenderedStyle=d,this._lastRenderedStyleBottomLeftGrid=u,this._lastRenderedStyleBottomRightGrid=f,this._lastRenderedStyleTopLeftGrid=h,this._lastRenderedStyleTopRightGrid=v,this._lastRenderedWidth=m}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,r=e.fixedRowCount,l=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!o)return null;var s=a?1:0,c=this._getBottomGridHeight(e),d=this._getLeftGridWidth(e),u=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,f=i?d+u:d,h=C.createElement(K,k._extends({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,l-r)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:f}));return i?C.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:P(P({},this._bottomLeftGridStyle),{},{height:c,width:d,overflowY:"hidden"})},h):h}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,r=e.fixedRowCount,l=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return C.createElement(K,k._extends({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,l-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-o,scrollToRow:a-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?C.createElement(K,k._extends({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,r=e.fixedColumnCount,l=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,c=s.showHorizontalScrollbar,d=s.scrollbarSize;if(!l)return null;var u=c?1:0,f=this._getTopGridHeight(e),h=this._getRightGridWidth(e),v=c?d:0,m=f,_=this._topRightGridStyle;a&&(m=f+v,_=P(P({},this._topRightGridStyle),{},{left:0}));var S=C.createElement(K,k._extends({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+u,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:l,scrollLeft:i,style:_,tabIndex:null,width:h}));return a?C.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:P(P({},this._topRightGridStyle),{},{height:f,width:h,overflowX:"hidden"})},S):S}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:e.scrollLeft!=null&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:e.scrollTop!=null&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}])}();function kt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kt=function(){return!!n})()}p(ve,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),ve.propTypes={},ae(ve),function(){function n(e,t){var o,r,l,i;return G(this,n),r=this,i=[e,t],l=z(l=n),(o=H(r,kt()?Reflect.construct(l,i||[],z(r).constructor):l.apply(r,i))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(o),o}return D(n,C.PureComponent),A(n,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,r=t.clientWidth,l=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:o,clientWidth:r,onScroll:this._onScroll,scrollHeight:l,scrollLeft:i,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,r=e.scrollHeight,l=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:r,scrollLeft:l,scrollTop:i,scrollWidth:a})}}])}().propTypes={};var se="ASC",Ce="DESC";function Mt(n){var e=n.sortDirection,t=k.clsx("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":e===se,"ReactVirtualized__Table__sortableHeaderIcon--DESC":e===Ce});return C.createElement("svg",{className:t,width:18,height:18,viewBox:"0 0 24 24"},e===se?C.createElement("path",{d:"M7 14l5-5 5 5z"}):C.createElement("path",{d:"M7 10l5 5 5-5z"}),C.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Lt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lt=function(){return!!n})()}Mt.propTypes={};var he=function(){function n(){return G(this,n),e=this,o=arguments,t=z(t=n),H(e,Lt()?Reflect.construct(t,o||[],z(e).constructor):t.apply(e,o));var e,t,o}return D(n,C.Component),A(n)}();function tt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function V(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(t),!0).forEach(function(o){p(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):tt(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function Gt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gt=function(){return!!n})()}p(he,"defaultProps",{cellDataGetter:function(n){var e=n.dataKey,t=n.rowData;return typeof t.get=="function"?t.get(e):t[e]},cellRenderer:function(n){var e=n.cellData;return e==null?"":String(e)},defaultSortDirection:se,flexGrow:0,flexShrink:1,headerRenderer:function(n){var e=n.dataKey,t=n.label,o=n.sortBy,r=n.sortDirection,l=o===e,i=[C.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof t=="string"?t:null},t)];return l&&i.push(C.createElement(Mt,{key:"SortIndicator",sortDirection:r})),i},style:{}}),he.propTypes={};var xe=function(){function n(e){var t,o,r,l;return G(this,n),o=this,l=[e],r=z(r=n),(t=H(o,Gt()?Reflect.construct(r,l||[],z(o).constructor):r.apply(o,l))).state={scrollbarWidth:0},t._createColumn=t._createColumn.bind(t),t._createRow=t._createRow.bind(t),t._onScroll=t._onScroll.bind(t),t._onSectionRendered=t._onSectionRendered.bind(t),t._setRef=t._setRef.bind(t),t._setGridElementRef=t._setGridElementRef.bind(t),t}return D(n,C.PureComponent),A(n,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,o=t===void 0?0:t,r=e.rowIndex,l=r===void 0?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var e=this.GridElement,t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,r=t.className,l=t.disableHeader,i=t.gridClassName,a=t.gridStyle,s=t.headerHeight,c=t.headerRowRenderer,d=t.height,u=t.id,f=t.noRowsRenderer,h=t.rowClassName,v=t.rowStyle,m=t.scrollToIndex,_=t.style,S=t.width,g=this.state.scrollbarWidth,y=l?d:d-s,w=typeof h=="function"?h({index:-1}):h,x=typeof v=="function"?v({index:-1}):v;return this._cachedColumnStyles=[],C.Children.toArray(o).forEach(function(b,T){var R=e._getFlexStyleForColumn(b,b.props.style||he.defaultProps.style);e._cachedColumnStyles[T]=V({overflow:"hidden"},R)}),C.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":C.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:k.clsx("ReactVirtualized__Table",r),id:u,role:"grid",style:_},!l&&c({className:k.clsx("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:V({height:s,overflow:"hidden",paddingRight:g,width:S},x)}),C.createElement(K,k._extends({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:k.clsx("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:S,columnCount:1,height:y,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:g,scrollToRow:m,style:V(V({},a),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,r=e.isScrolling,l=e.parent,i=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,c=t.props,d=c.cellDataGetter,u=c.cellRenderer,f=c.className,h=c.columnData,v=c.dataKey,m=c.id,_=u({cellData:d({columnData:h,dataKey:v,rowData:i}),columnData:h,columnIndex:o,dataKey:v,isScrolling:r,parent:l,rowData:i,rowIndex:a}),S=this._cachedColumnStyles[o],g=typeof _=="string"?_:null;return C.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:k.clsx("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+o,onClick:function(y){s&&s({columnData:h,dataKey:v,event:y})},role:"gridcell",style:S,title:g},_)}},{key:"_createHeader",value:function(e){var t,o,r,l,i,a=e.column,s=e.index,c=this.props,d=c.headerClassName,u=c.headerStyle,f=c.onHeaderClick,h=c.sort,v=c.sortBy,m=c.sortDirection,_=a.props,S=_.columnData,g=_.dataKey,y=_.defaultSortDirection,w=_.disableSort,x=_.headerRenderer,b=_.id,T=_.label,R=!w&&h,O=k.clsx("ReactVirtualized__Table__headerColumn",d,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:R}),M=this._getFlexStyleForColumn(a,V(V({},u),a.props.headerStyle)),I=x({columnData:S,dataKey:g,disableSort:w,label:T,sortBy:v,sortDirection:m});if(R||f){var E=v!==g?y:m===Ce?se:Ce,W=function(N){R&&h({defaultSortDirection:y,event:N,sortBy:g,sortDirection:E}),f&&f({columnData:S,dataKey:g,event:N})};i=a.props["aria-label"]||T||g,l="none",r=0,t=W,o=function(N){N.key!=="Enter"&&N.key!==" "||W(N)}}return v===g&&(l=m===se?"ascending":"descending"),C.createElement("div",{"aria-label":i,"aria-sort":l,className:O,id:b,key:"Header-Col"+s,onClick:t,onKeyDown:o,role:"columnheader",style:M,tabIndex:r},I)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,r=e.isScrolling,l=e.key,i=e.parent,a=e.style,s=this.props,c=s.children,d=s.onRowClick,u=s.onRowDoubleClick,f=s.onRowRightClick,h=s.onRowMouseOver,v=s.onRowMouseOut,m=s.rowClassName,_=s.rowGetter,S=s.rowRenderer,g=s.rowStyle,y=this.state.scrollbarWidth,w=typeof m=="function"?m({index:o}):m,x=typeof g=="function"?g({index:o}):g,b=_({index:o}),T=C.Children.toArray(c).map(function(M,I){return t._createColumn({column:M,columnIndex:I,isScrolling:r,parent:i,rowData:b,rowIndex:o,scrollbarWidth:y})}),R=k.clsx("ReactVirtualized__Table__row",w),O=V(V({},a),{},{height:this._getRowHeight(o),overflow:"hidden",paddingRight:y},x);return S({className:R,columns:T,index:o,isScrolling:r,key:l,onRowClick:d,onRowDoubleClick:u,onRowRightClick:f,onRowMouseOver:h,onRowMouseOut:v,rowData:b,style:O})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=V(V({},t),{},{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:C.Children.toArray(o)).map(function(r,l){return e._createHeader({column:r,index:l})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return typeof t=="function"?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,r=e.rowStartIndex,l=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:r,stopIndex:l})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setGridElementRef",value:function(e){this.GridElement=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}])}();p(xe,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:xt,overscanRowCount:10,rowRenderer:function(n){var e=n.className,t=n.columns,o=n.index,r=n.key,l=n.onRowClick,i=n.onRowDoubleClick,a=n.onRowMouseOut,s=n.onRowMouseOver,c=n.onRowRightClick,d=n.rowData,u=n.style,f={"aria-rowindex":o+1};return(l||i||a||s||c)&&(f["aria-label"]="row",f.tabIndex=0,l&&(f.onClick=function(h){return l({event:h,index:o,rowData:d})}),i&&(f.onDoubleClick=function(h){return i({event:h,index:o,rowData:d})}),a&&(f.onMouseOut=function(h){return a({event:h,index:o,rowData:d})}),s&&(f.onMouseOver=function(h){return s({event:h,index:o,rowData:d})}),c&&(f.onContextMenu=function(h){return c({event:h,index:o,rowData:d})})),C.createElement("div",k._extends({},f,{className:e,key:r,role:"row",style:u}),t)},headerRowRenderer:function(n){var e=n.className,t=n.columns,o=n.style;return C.createElement("div",{className:e,role:"row",style:o},t)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),xe.propTypes={};var Y=[],ie=null,X=null;function At(){X&&(X=null,document.body&&ie!=null&&(document.body.style.pointerEvents=ie),ie=null)}function ho(){At(),Y.forEach(function(n){return n.__resetIsScrolling()})}function Et(n){n.currentTarget===window&&ie==null&&document.body&&(ie=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){X&&Q(X);var e=0;Y.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),X=Te(ho,e)}(),Y.forEach(function(e){e.props.scrollElement===n.currentTarget&&e.__handleWindowScrollEvent()})}function ot(n,e){Y.some(function(t){return t.props.scrollElement===e})||e.addEventListener("scroll",Et),Y.push(n)}function nt(n,e){(Y=Y.filter(function(t){return t!==n})).length||(e.removeEventListener("scroll",Et),X&&(Q(X),At()))}var Ie=function(n){return n===window},ne=function(n){return n.getBoundingClientRect()};function rt(n,e){if(n){if(Ie(n)){var t=window,o=t.innerHeight,r=t.innerWidth;return{height:typeof o=="number"?o:0,width:typeof r=="number"?r:0}}return ne(n)}return{height:e.serverHeight,width:e.serverWidth}}function it(n){return Ie(n)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:n.scrollTop,left:n.scrollLeft}}function lt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,o)}return t}function st(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?lt(Object(t),!0).forEach(function(o){p(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):lt(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function Wt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wt=function(){return!!n})()}var Ht=function(){return typeof window<"u"?window:void 0},fo=function(){function n(){var e,t,o,r;G(this,n);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,o=n,r=[].concat(i),o=z(o),p(e=H(t,Wt()?Reflect.construct(o,r||[],z(t).constructor):o.apply(t,r)),"_window",Ht()),p(e,"_isMounted",!1),p(e,"_positionFromTop",0),p(e,"_positionFromLeft",0),p(e,"_detectElementResize",void 0),p(e,"_child",void 0),p(e,"_windowScrollerRef",C.createRef()),p(e,"state",st(st({},rt(e.props.scrollElement,e.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),p(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),e._child=s,e.updatePosition()}),p(e,"_onChildScroll",function(s){var c=s.scrollTop;if(e.state.scrollTop!==c){var d=e.props.scrollElement;d&&(typeof d.scrollTo=="function"?d.scrollTo(0,c+e._positionFromTop):d.scrollTop=c+e._positionFromTop)}}),p(e,"_registerResizeListener",function(s){s===window?window.addEventListener("resize",e._onResize,!1):e._detectElementResize.addResizeListener(s,e._onResize)}),p(e,"_unregisterResizeListener",function(s){s===window?window.removeEventListener("resize",e._onResize,!1):s&&e._detectElementResize.removeResizeListener(s,e._onResize)}),p(e,"_onResize",function(){e.updatePosition()}),p(e,"__handleWindowScrollEvent",function(){if(e._isMounted){var s=e.props.onScroll,c=e.props.scrollElement;if(c){var d=it(c),u=Math.max(0,d.left-e._positionFromLeft),f=Math.max(0,d.top-e._positionFromTop);e.setState({isScrolling:!0,scrollLeft:u,scrollTop:f}),s({scrollLeft:u,scrollTop:f})}}}),p(e,"__resetIsScrolling",function(){e.setState({isScrolling:!1})}),e}return D(n,C.PureComponent),A(n,[{key:"updatePosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,r=o.height,l=o.width,i=this._child||this._windowScrollerRef.current;if(i instanceof Element&&e){var a=function(c,d){if(Ie(d)&&document.documentElement){var u=document.documentElement,f=ne(c),h=ne(u);return{top:f.top-h.top,left:f.left-h.left}}var v=it(d),m=ne(c),_=ne(d);return{top:m.top+v.top-_.top,left:m.left+v.left-_.left}}(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=rt(e,this.props);r===s.height&&l===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width})),this.props.updateScrollTopOnUpdatePosition===!0&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=gt(),this.updatePosition(e),e&&(ot(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,r=e.scrollElement;r!==o&&r!=null&&o!=null&&(this.updatePosition(o),nt(this,r),ot(this,o),this._unregisterResizeListener(r),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(nt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,r=t.scrollTop,l=t.scrollLeft,i=t.height,a=t.width;return C.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:o,scrollLeft:l,scrollTop:r,width:a}))}}])}();p(fo,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Ht(),serverHeight:0,serverWidth:0});const re="ReactVirtualizedDemo-flexContainer",Dt="ReactVirtualizedDemo-tableRow",jt="ReactVirtualizedDemo-tableRowHover",Re="ReactVirtualizedDemo-tableCell",be="ReactVirtualizedDemo-noClick";class po extends U.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:e})=>{const{onRowClick:t}=this.props;return k.clsx$1(Dt,re,{[jt]:e!==-1&&t!=null})},this.cellRenderer=({cellData:e,dataKey:t,columnIndex:o,width:r})=>{const{columns:l,rowHeight:i,onRowClick:a}=this.props;let s=e,c={height:i,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px",minWidth:`${r}px`,maxWidth:`${r}px`};return t==="shortcut"?s=ct.toShortcutElements(e):t==="description"&&(c={...c,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),L.jsx(F.TableCell,{component:"div",className:k.clsx$1(Re,re,{[be]:a==null}),variant:"body",style:c,align:o!=null&&l[o].numeric?"right":"left",children:s})},this.headerRenderer=({label:e,columnIndex:t,width:o})=>{const{headerHeight:r,columns:l}=this.props,i=l[t];return L.jsx(F.TableCell,{component:"div",className:k.clsx$1(Re,re,be),variant:"head",sx:{width:o,height:r,backgroundColor:a=>a.palette.grey[300]},align:i.numeric?"right":"left",children:L.jsx("span",{children:i.label})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:e,rowHeight:t,headerHeight:o,...r}=this.props;return L.jsx(vt,{children:({height:l,width:i})=>L.jsx(xe,{height:l,width:i,rowHeight:t,gridStyle:{direction:"inherit"},headerHeight:o,...r,rowClassName:this.getRowClassName,children:e.map(({dataKey:a,width:s,widthLess:c,...d},u)=>{const f=c?i-c:s;return L.jsx(he,{style:{flex:`1 1 ${f}px`},headerRenderer:h=>this.headerRenderer({...h,width:f,columnIndex:u}),className:re,cellDataGetter:({rowData:h,columnData:v,dataKey:m})=>h[m],cellRenderer:h=>this.cellRenderer({...h,width:f,columnIndex:u}),dataKey:a,width:f,...d},a)})})})}}const go=q.styled(po)(({theme:n})=>({"& .ReactVirtualized__Table__headerRow":{...n.direction==="rtl"&&{paddingLeft:"0 !important"},...n.direction!=="rtl"&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${re}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${Dt}`]:{cursor:"pointer"},[`& .${jt}`]:{"&:hover:not([disabled])":{backgroundColor:n.palette.grey[200]}},[`& .${Re}`]:{flex:1},[`& .${be}`]:{cursor:"initial"}}));function mo(n){const{commands:e,...t}=n,[o,r]=U.useState(!1),[l,i]=U.useState(""),a=U.useMemo(()=>{let h=e.getAllCommands();o||(h=h.filter(_=>_.command.shortcut())),h.sort((_,S)=>_.command.label().localeCompare(S.command.label()));const v=[],m=_=>_.replace(/\n\n/g,`
18
- `);for(let _=0;_<h.length;_++){const S=h[_].command,g=S.shortcut();if(Array.isArray(g)){const y=g;for(let w=0;w<y.length;w++)v.push({label:S.label(),description:m(S.description()),shortcut:y[w]})}else v.push({label:S.label(),description:m(S.description()),shortcut:S.shortcut()})}return v},[o,e]),[s,c]=U.useState(null);U.useEffect(()=>{Promise.resolve().then(()=>require("./BMxf7QrY-RKnhIl4.cjs")).then(h=>{c(new h.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[d,u]=U.useState(a),f=l.length>0&&d.length===0;return U.useEffect(()=>{s&&Nt.CommonUtils.debounce(()=>{if(l.trim().length===0)return void u(a);const h=s.search(l.trim()),v=new Array(h.length);for(let m=0;m<h.length;m++)v[m]=h[m].item;u(v)},90)()},[s,l]),L.jsxs(F.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...t,children:[L.jsxs(F.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:h=>h.spacing(2),color:h=>h.palette.text.secondary},children:[L.jsx(F.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${q.alpha("#fff",q.getOverlayAlpha(5))}, ${q.alpha("#fff",q.getOverlayAlpha(5))})`},inputProps:{className:"input",autoFocus:!0,spellCheck:!1,placeholder:"Type to search key bindings",autoComplete:"off",sx:{paddingTop:h=>h.spacing(1),paddingBottom:h=>h.spacing(1)}},endAdornment:L.jsx(F.InputAdornment,{sx:{opacity:l.length>0?1:0,display:l.length>0?"flex":"none"},position:"end",children:L.jsx(F.IconButton,{"aria-label":"clear search",onClick:()=>i(""),edge:"end",children:L.jsx(Ft.Close,{})})})},sx:{flex:"1 1 40%",marginRight:h=>h.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:h=>f?`${h.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:h=>f?`${h.palette.error.main} !important`:void 0}},value:l,onChange:h=>{i(h.target.value)},onKeyDown:h=>{h.which===at.KeyCodes.Escape&&l.length>0&&(i(""),h.stopPropagation(),h.preventDefault())},onContextMenu:h=>{h.stopPropagation()}}),L.jsx(F.FormControlLabel,{sx:{flex:"1 1 60%"},control:L.jsx(F.Checkbox,{checked:o,onChange:()=>r(!o)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),L.jsx(F.Box,{sx:{flex:"1 1 100%",borderRadius:h=>`${h.shape.borderRadius}px`,border:h=>`solid ${h.palette.divider} 1px`,paddingRight:"1px",overflow:"hidden","* .MuiTableCell-head":{background:h=>h.palette.background.paper,backgroundImage:`linear-gradient(${q.alpha("#fff",q.getOverlayAlpha(5))}, ${q.alpha("#fff",q.getOverlayAlpha(5))})`}},children:L.jsx(go,{rowCount:d.length,rowGetter:h=>d[h.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),L.jsx(F.Box,{sx:{display:"flex",flexShrink:"0",paddingLeft:h=>h.spacing(1),paddingTop:h=>h.spacing(1),paddingRight:h=>h.spacing(1),userSelect:"none",justifyContent:"flex-end"},children:L.jsx(F.Typography,{noWrap:!0,component:"div",sx:{color:h=>f?h.palette.error.main:h.palette.text.secondary},children:`${d.length===0?"No":d.length} shortcut key${d.length===1?"":"s"}${l.length>0?" found":""}`})})]})}exports.default=n=>{const{title:e="Shortcut Keys",commands:t,sx:o,...r}=n;return L.jsx(ct.InternalWindow,{isModal:!0,onKeyDown:l=>{l.keyCode===at.KeyCodes.F1&&l.preventDefault()},sx:{width:"780px",...o},title:e,autoFocusSel:".input",...r,children:L.jsx(F.DialogContent,{dividers:!0,children:L.jsx(mo,{commands:t,sx:{marginBottom:"8px"}})})})};