@sheetxl/studio-mui 0.4.12 → 0.4.13

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 (75) hide show
  1. package/browser/cjs/{CNDDYOoLCrGsUMYL.cjs → 34mwIxXhbXYv5xsc.cjs} +1 -1
  2. package/browser/cjs/{DuwawlAm4aRBNTBm.cjs → 3OIgTi54FC0IBzyK.cjs} +2 -2
  3. package/browser/cjs/{BNGixOiIsu8jZlvn.cjs → B-Aq2h8aSDrc_0iZ.cjs} +1 -1
  4. package/browser/cjs/{CITvaW7L_iZfIyAN.cjs → BDhT8qcsUqUILki7.cjs} +1 -1
  5. package/browser/cjs/{BpiMMYip132x0r1O.cjs → BKJsMQHem8u-jMiR.cjs} +1 -1
  6. package/browser/cjs/{Dc2rbOjtcmSIm8D4.cjs → BO7LEbRChpLg-xKv.cjs} +1 -1
  7. package/browser/cjs/{DqAlQQIZIyF7HMib.cjs → BZR-qDCIYdiDtD-U.cjs} +1 -1
  8. package/browser/cjs/{CeTd2nFbE5yFzf7T.cjs → BfE1_C2EpBrmB7bt.cjs} +1 -1
  9. package/browser/cjs/{BzD7LV8VmFKLAJyW.cjs → Brij8vl9GntSQBer.cjs} +2 -2
  10. package/browser/cjs/{C8Azx_ZaQa4WvAtR.cjs → C61z_849Y2mg6eYL.cjs} +2 -2
  11. package/browser/cjs/{CYbeY5OVZDqHGSOm.cjs → CaKjImRkCm3-QSAI.cjs} +2 -2
  12. package/browser/cjs/{reQ9miE5C5qMfbRJ.cjs → Cw7iXqLfwZMRGb3J.cjs} +2 -2
  13. package/browser/cjs/{Dx9UUJj-yeubDjm4.cjs → CwwItA5xvSx0QgDn.cjs} +2 -2
  14. package/browser/cjs/{Cfe7IbPNI8-CgoDI.cjs → DPTcPoZ3PiOOW7lp.cjs} +2 -2
  15. package/browser/cjs/{C_SgucbRn-v9IkNO.cjs → DhmN913n5MBAZsij.cjs} +2 -2
  16. package/browser/cjs/{ByZ_Q-J7jgF7AoWR.cjs → DhoDW4ohnPkwiE_o.cjs} +2 -2
  17. package/browser/cjs/{Bk6VhhWsnCRyBu2F.cjs → Dj_PjsvImW3tjX0i.cjs} +2 -2
  18. package/browser/cjs/{IC19hB4Ntvw1158j.cjs → Dl4WPIJFTvpCXOs3.cjs} +2 -2
  19. package/browser/cjs/{Ctyk-ajkSsTDJuvY.cjs → QCtfu4qn-ovJa_wL.cjs} +2 -2
  20. package/browser/cjs/{DBhTQLbjAtU-A1YA.cjs → VQ4Cuzvkmtel1iE_.cjs} +2 -2
  21. package/browser/cjs/{DcsvUmoS8zGG5GB8.cjs → VTMW1yjPzEJGyBmh.cjs} +1 -1
  22. package/browser/cjs/{B7qLzxylqOaybl3H.cjs → hY59MepmKCIoN0hM.cjs} +2 -2
  23. package/browser/cjs/index.cjs +2 -2
  24. package/browser/cjs/{BUYxt7KgFkIIIMyc.cjs → pKp_fof7vGupYAM2.cjs} +2 -2
  25. package/browser/cjs/{C6_zcNM0Efa11KEE.cjs → t-9gaLqrOnGiw-3T.cjs} +1 -1
  26. package/browser/esm/{UkNAvQj0NVgeMpUl.mjs → 5U4XS5qxb3oJ33qK.mjs} +1 -1
  27. package/browser/esm/{Cc7y1nMDr5J8jWx-.mjs → BPMMuKIe5xb3-D8V.mjs} +2 -2
  28. package/browser/esm/{x9MyDRdLE47dI9dF.mjs → BXartMrqQuAXu0Qz.mjs} +1 -1
  29. package/browser/esm/{obM68UOvA5HV7Lt1.mjs → Bc8N72T3wtTApPEG.mjs} +2 -2
  30. package/browser/esm/{CMCOU0nDlymDFS9l.mjs → BjoQXBQuDry5Fgc_.mjs} +2 -2
  31. package/browser/esm/{Cta0yn5UIrP2UoT4.mjs → BlUq84tk9v01SQgx.mjs} +2 -2
  32. package/browser/esm/{CloqVDbJmTL4oFek.mjs → C5iuJTeAtknnUEIE.mjs} +1 -1
  33. package/browser/esm/{DI-ZGstUJFwkx4H6.mjs → CN67iG3xuQhXAPad.mjs} +2 -2
  34. package/browser/esm/{B1Ey4ZP8BHUzHW7G.mjs → CQgUOqCEwTc61uuT.mjs} +1 -1
  35. package/browser/esm/{BThbC01mtb7qq8_A.mjs → Cq1DtQcbtmTtKOc4.mjs} +2 -2
  36. package/browser/esm/{DhOXsRr8c7bDS1jM.mjs → Cqz35dsi-gZArS0S.mjs} +2 -2
  37. package/browser/esm/{B8dJHVZJta8QbNKG.mjs → D9wzPAaUYfW5yKFN.mjs} +1 -1
  38. package/browser/esm/{CHPXsEre3jry2-jF.mjs → DRRzJ8Ep6_Tyd6ne.mjs} +1 -1
  39. package/browser/esm/{JPwh2m5-pXkdPVzF.mjs → DSGJzNzS8OeMxUW1.mjs} +1 -1
  40. package/browser/esm/{yW9jxnamUqAhVQkJ.mjs → DSIpyed_o2mrjd0r.mjs} +2 -2
  41. package/browser/esm/{ZUfck_LDsQb9gpvU.mjs → DWgrVUwlK4kwFJn-.mjs} +2 -2
  42. package/browser/esm/{DQTfmweCXjuIlITn.mjs → Dr6QLJSwckbF9K_u.mjs} +2 -2
  43. package/browser/esm/{CesL-3BNbMB1f_if.mjs → DuSF-rjIFFvyCoo8.mjs} +2 -2
  44. package/browser/esm/{CwRyQHiDoBLx5_1g.mjs → EiBc8VBUeU8VXEhw.mjs} +1 -1
  45. package/browser/esm/{DUIfOO25d1fqtJzn.mjs → R3CPiIXdp_rdc-Bw.mjs} +2 -2
  46. package/browser/esm/{BqN0SYrEO0RZQtv-.mjs → eXqnYk6V-QI6pGI5.mjs} +2 -2
  47. package/browser/esm/{CfvNSnuQLa1SPbNL.mjs → hdx26DrfopUuM4j1.mjs} +1 -1
  48. package/browser/esm/index.mjs +2 -2
  49. package/browser/esm/{gHhqkr52cxXkga0T.mjs → oXfsh9SiDjQuu2ZE.mjs} +2 -2
  50. package/browser/esm/{Bnt1M91BRyMvXrc4.mjs → zBIGDTI8z3bRbFxO.mjs} +2 -2
  51. package/licenses/dependencies.txt +6 -6
  52. package/node/esm/{PF5CCBvapZxEzc7k.mjs → -mcJjjdCwl8lh-eg.mjs} +1 -1
  53. package/node/esm/{wdtYNTNCynMMS4_P.mjs → 4WfRn0Og_yApP_Q8.mjs} +1 -1
  54. package/node/esm/{bv_GA6NGCT0sJaXy.mjs → BEWR_Oinb-P8gswu.mjs} +1 -1
  55. package/node/esm/{D1C8ifsmXsypL6pp.mjs → BO6cKQ_efCO2YTyW.mjs} +1 -1
  56. package/node/esm/{CryVonGjJnmo2dE_.mjs → BPG7zfcXK20urqr_.mjs} +5 -5
  57. package/node/esm/{C2P_M1JNT_WZZN3H.mjs → BZ8BYhQCAcmtqV_l.mjs} +3 -3
  58. package/node/esm/{BIRLX0-9t62Lqats.mjs → BqcpB9wQAjq0QKR1.mjs} +1 -1
  59. package/node/esm/{DUfB1ollhqU-JIk5.mjs → BqsJ9biuGwjU2xgY.mjs} +1 -1
  60. package/node/esm/{B3M2CzPvK2oKOfg5.mjs → BxJ8RdpZW49RjtqB.mjs} +1 -1
  61. package/node/esm/{h1y2hBFecTqRgUa-.mjs → CQ1mTChRFSKFU2O1.mjs} +1 -1
  62. package/node/esm/{M3UB6IrhVERZziiJ.mjs → CcOchU9ZOmdG4JFr.mjs} +1 -1
  63. package/node/esm/{Dx2vq1Hdt4pqmOF-.mjs → CdLN7JEivNllaQ6w.mjs} +1 -1
  64. package/node/esm/{BJY8yNMmN_yyRtIG.mjs → CfO2Xok0ch8kylzr.mjs} +1 -1
  65. package/node/esm/{Bt5y5wVaVAVjwHBl.mjs → CsPaYpANdd8Rpel-.mjs} +1 -1
  66. package/node/esm/{Bj8uU2shfkvN4LnE.mjs → DKho7vhsoPr3NuMl.mjs} +1 -1
  67. package/node/esm/{CKtVB9hMCfabQMxC.mjs → DW7i1Qv4kcmwOTvD.mjs} +1 -1
  68. package/node/esm/{D1xD8cOQDGcbjIlG.mjs → DvKUmpzXvELOJbAq.mjs} +1 -1
  69. package/node/esm/{kIQFLB3nmEJdn_OT.mjs → RpUFmc_WL9-PMYhx.mjs} +1 -1
  70. package/node/esm/{CVGxETc4rIE1gNAH.mjs → VnhwCsWDUmo5-K5N.mjs} +1 -1
  71. package/node/esm/index.mjs +9 -9
  72. package/node/esm/{CBGAl2mih9mHDt5w.mjs → nmVSg6Qpwj9V1oA0.mjs} +1 -1
  73. package/node/esm/{kHsChOtl8GUkzj5Q.mjs → o-JVx3HFrRjVjKmi.mjs} +2 -2
  74. package/node/esm/{m8fyd2BoYkTOJlc1.mjs → uAAAbPd_k3kmgO5f.mjs} +1 -1
  75. package/package.json +8 -8
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import r,{isValidElement as n,PureComponent as o,Component as i,memo as a,useState as u,useCallback as s,useLayoutEffect as f}from"react";import{Box as c}from"@mui/material";import{g as l,r as h,c as p,y as d,u as b,C as v}from"./Cc7y1nMDr5J8jWx-.mjs";const g=l(h());function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}var m=/^\s+/,w=/\s+$/;function _(t,e){if(e=e||{},(t=t||"")instanceof _)return t;if(!(this instanceof _))return new _(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,i=null,a=!1,u=!1;"string"==typeof t&&(t=function(t){t=t.replace(m,"").replace(w,"").toLowerCase();var e,r=!1;if(z[t])t=z[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=J.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=J.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=J.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=J.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=J.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=J.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=J.hex8.exec(t))return{r:N(e[1]),g:N(e[2]),b:N(e[3]),a:Y(e[4]),format:r?"name":"hex8"};if(e=J.hex6.exec(t))return{r:N(e[1]),g:N(e[2]),b:N(e[3]),format:r?"name":"hex"};if(e=J.hex4.exec(t))return{r:N(e[1]+""+e[1]),g:N(e[2]+""+e[2]),b:N(e[3]+""+e[3]),a:Y(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=J.hex3.exec(t))return{r:N(e[1]+""+e[1]),g:N(e[2]+""+e[2]),b:N(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==y(t)&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(s=t.r,f=t.g,c=t.b,e={r:255*W(s,255),g:255*W(f,255),b:255*W(c,255)},a=!0,u="%"===String(t.r).substr(-1)?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(n=V(t.s),o=V(t.v),e=function(t,e,r){t=6*W(t,360),e=W(e,100),r=W(r,100);var n=Math.floor(t),o=t-n,i=r*(1-e),a=r*(1-o*e),u=r*(1-(1-o)*e),s=n%6,f=[r,a,i,i,u,r][s],c=[u,r,r,a,i,i][s],l=[i,i,u,r,r,a][s];return{r:255*f,g:255*c,b:255*l}}(t.h,n,o),a=!0,u="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(n=V(t.s),i=V(t.l),e=function(t,e,r){var n,o,i;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=W(t,360),e=W(e,100),r=W(r,100),0===e)n=o=i=r;else{var u=r<.5?r*(1+e):r+e-r*e,s=2*r-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*n,g:255*o,b:255*i}}(t.h,n,i),a=!0,u="hsl"),t.hasOwnProperty("a")&&(r=t.a));var s,f,c;return r=H(r),{ok:a,format:t.format||u,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.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=r.ok}function x(t,e,r){t=W(t,255),e=W(e,255),r=W(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=(i+a)/2;if(i==a)n=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,l:u}}function j(t,e,r){t=W(t,255),e=W(e,255),r=W(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=i,s=i-a;if(o=0===i?0:s/i,i==a)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,v:u}}function O(t,e,r,n){var o=[I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16))];return n&&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 M(t,e,r,n){return[I(X(n)),I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16))].join("")}function S(t,e){e=0===e?0:e||10;var r=_(t).toHsl();return r.s-=e/100,r.s=$(r.s),_(r)}function k(t,e){e=0===e?0:e||10;var r=_(t).toHsl();return r.s+=e/100,r.s=$(r.s),_(r)}function A(t){return _(t).desaturate(100)}function E(t,e){e=0===e?0:e||10;var r=_(t).toHsl();return r.l+=e/100,r.l=$(r.l),_(r)}function C(t,e){e=0===e?0:e||10;var r=_(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),_(r)}function R(t,e){e=0===e?0:e||10;var r=_(t).toHsl();return r.l-=e/100,r.l=$(r.l),_(r)}function P(t,e){var r=_(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,_(r)}function T(t){var e=_(t).toHsl();return e.h=(e.h+180)%360,_(e)}function L(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=_(t).toHsl(),n=[_(t)],o=360/e,i=1;i<e;i++)n.push(_({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function U(t){var e=_(t).toHsl(),r=e.h;return[_(t),_({h:(r+72)%360,s:e.s,l:e.l}),_({h:(r+216)%360,s:e.s,l:e.l})]}function F(t,e,r){e=e||6,r=r||30;var n=_(t).toHsl(),o=360/r,i=[_(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,i.push(_(n));return i}function D(t,e){e=e||6;for(var r=_(t).toHsv(),n=r.h,o=r.s,i=r.v,a=[],u=1/e;e--;)a.push(_({h:n,s:o,v:i})),i=(i+u)%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,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=H(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=j(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=j(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=x(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=x(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return O(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,o){var i=[I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16)),I(X(n))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.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 1==this._a?"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*W(this._r,255))+"%",g:Math.round(100*W(this._g,255))+"%",b:Math.round(100*W(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%)":"rgba("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[O(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+M(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=_(t);r="#"+M(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return _(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(U,arguments)},triad:function(){return this._applyCombination(L,[3])},tetrad:function(){return this._applyCombination(L,[4])}},_.fromRatio=function(t,e){if("object"==y(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:V(t[n]));t=r}return _(t,e)},_.equals=function(t,e){return!(!t||!e)&&_(t).toRgbString()==_(e).toRgbString()},_.random=function(){return _.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},_.mix=function(t,e,r){r=0===r?0:r||50;var n=_(t).toRgb(),o=_(e).toRgb(),i=r/100;return _({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},_.readability=function(t,e){var r=_(t),n=_(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},_.isReadable=function(t,e,r){var n,o,i=_.readability(t,e);switch(o=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},_.mostReadable=function(t,e,r){var n,o,i,a,u=null,s=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var f=0;f<e.length;f++)(n=_.readability(t,e[f]))>s&&(s=n,u=_(e[f]));return _.isReadable(t,u,{level:i,size:a})||!o?u:(r.includeFallbackColors=!1,_.mostReadable(t,["#fff","#000"],r))};var z=_.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"},B=_.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(z);function H(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function W(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function $(t){return Math.min(1,Math.max(0,t))}function N(t){return parseInt(t,16)}function I(t){return 1==t.length?"0"+t:""+t}function V(t){return t<=1&&(t=100*t+"%"),t}function X(t){return Math.round(255*parseFloat(t)).toString(16)}function Y(t){return N(t)/255}var q,K,G,J=(K="[\\s|\\(]+("+(q="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",G="[\\s|\\(]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",{CSS_UNIT:new RegExp(q),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+G),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 Q(t){return!!J.CSS_UNIT.exec(t)}var Z,tt,et,rt,nt,ot,it,at,ut,st,ft,ct,lt,ht,pt,dt,bt,vt,gt,yt,mt,wt,_t,xt,jt,Ot,Mt,St,kt={},At={};function Et(){if(tt)return Z;tt=1;var t="object"==typeof p&&p&&p.Object===Object&&p;return Z=t}function Ct(){if(rt)return et;rt=1;var t=Et(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return et=r}function Rt(){if(ot)return nt;ot=1;var t=Ct().Symbol;return nt=t}function Pt(){if(ct)return ft;ct=1;var t=Rt(),e=function(){if(at)return it;at=1;var t=Rt(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return it=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var a=!0}catch(t){}var u=n.call(t);return a&&(e?t[o]=i:delete t[o]),u}}(),r=function(){if(st)return ut;st=1;var t=Object.prototype.toString;return ut=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return ft=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function Tt(){if(ht)return lt;ht=1;var t=Array.isArray;return lt=t}function Lt(){if(dt)return pt;return dt=1,pt=function(t){return null!=t&&"object"==typeof t}}function Ut(){if(wt)return mt;wt=1;var t=(yt?gt:(yt=1,gt=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}))();return mt=t}function Ft(){if(St)return Mt;St=1;var t=function(){if(Ot)return jt;Ot=1;var t=Pt(),e=Lt();return jt=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=Lt(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return Mt=i}var Dt,zt,Bt,Ht,Wt,$t,Nt,It,Vt,Xt,Yt,qt={exports:{}};function Kt(){return Bt||(Bt=1,function(t,e){var r=Ct(),n=zt?Dt:(zt=1,Dt=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||n;t.exports=u}(qt,qt.exports)),qt.exports}function Gt(){if(Wt)return Ht;Wt=1;var t=/^(?:0|[1-9]\d*)$/;return Ht=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}function Jt(){if(Nt)return $t;Nt=1;return $t=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Qt(){if(Yt)return Xt;return Yt=1,Xt=function(t){return function(e){return t(e)}}}var Zt,te,ee,re,ne,oe,ie,ae,ue,se,fe,ce,le,he,pe,de,be,ve,ge,ye,me,we,_e,xe,je,Oe,Me,Se,ke,Ae,Ee,Ce,Re,Pe,Te,Le,Ue,Fe,De,ze,Be,He,We,$e,Ne,Ie,Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,tr,er,rr,nr,or,ir,ar,ur,sr,fr,cr,lr,hr,pr,dr,br,vr,gr,yr,mr,wr,_r,xr,jr,Or,Mr,Sr,kr,Ar,Er,Cr,Rr,Pr,Tr,Lr,Ur,Fr,Dr,zr,Br,Hr,Wr,$r,Nr,Ir,Vr,Xr,Yr,qr,Kr,Gr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,fn,cn,ln,hn,pn,dn,bn,vn,gn,yn,mn,wn,_n,xn,jn,On,Mn,Sn,kn,An,En,Cn,Rn,Pn,Tn,Ln,Un,Fn,Dn,zn,Bn,Hn,Wn,$n,Nn,In,Vn,Xn,Yn,qn,Kn,Gn,Jn,Qn,Zn,to,eo,ro,no,oo,io,ao,uo,so,fo,co,lo,ho,po,bo,vo,go,yo,mo,wo,_o,xo,jo,Oo,Mo,So,ko,Ao,Eo,Co,Ro,Po,To,Lo,Uo,Fo,Do,zo,Bo,Ho,Wo,$o,No,Io,Vo,Xo,Yo,qo,Ko,Go,Jo={exports:{}};function Qo(){return Zt||(Zt=1,function(t,e){var r=Et(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}(Jo,Jo.exports)),Jo.exports}function Zo(){if(ee)return te;ee=1;var t=function(){if(Vt)return It;Vt=1;var t=Pt(),e=Jt(),r=Lt(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,It=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Qt(),r=Qo(),n=r&&r.isTypedArray,o=n?e(n):t;return te=o}function ti(){if(ne)return re;ne=1;var t=xt?_t:(xt=1,_t=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=Ft(),r=Tt(),n=Kt(),o=Gt(),i=Zo(),a=Object.prototype.hasOwnProperty;return re=function(u,s){var f=r(u),c=!f&&e(u),l=!f&&!c&&n(u),h=!f&&!c&&!l&&i(u),p=f||c||l||h,d=p?t(u.length,String):[],b=d.length;for(var v in u)!s&&!a.call(u,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||d.push(v);return d}}function ei(){if(ie)return oe;ie=1;var t=Object.prototype;return oe=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function ri(){if(ue)return ae;return ue=1,ae=function(t,e){return function(r){return t(e(r))}}}function ni(){if(le)return ce;le=1;var t=ei(),e=function(){if(fe)return se;fe=1;var t=ri()(Object.keys,Object);return se=t}(),r=Object.prototype.hasOwnProperty;return ce=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function oi(){if(pe)return he;return pe=1,he=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function ii(){if(be)return de;be=1;var t=Pt(),e=oi();return de=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function ai(){if(ge)return ve;ge=1;var t=ii(),e=Jt();return ve=function(r){return null!=r&&e(r.length)&&!t(r)}}function ui(){if(me)return ye;me=1;var t=ti(),e=ni(),r=ai();return ye=function(n){return r(n)?t(n):e(n)}}function si(){if(_e)return we;_e=1;var t=Ut(),e=ui();return we=function(r,n){return r&&t(r,n,e)}}function fi(){if(je)return xe;return je=1,xe=function(t){return t}}function ci(){if(ke)return Se;ke=1;var t=si(),e=function(){if(Me)return Oe;Me=1;var t=fi();return Oe=function(e){return"function"==typeof e?e:t}}();return Se=function(r,n){return r&&t(r,e(n))}}function li(){if(Ee)return Ae;Ee=1;var t=ri()(Object.getPrototypeOf,Object);return Ae=t}function hi(){if(Te)return Pe;return Te=1,Pe=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}}function pi(){if(De)return Fe;return De=1,Fe=function(t,e){return t===e||t!=t&&e!=e}}function di(){if(Be)return ze;Be=1;var t=pi();return ze=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function bi(){if(Ke)return qe;Ke=1;var t=Ue?Le:(Ue=1,Le=function(){this.__data__=[],this.size=0}),e=function(){if(We)return He;We=1;var t=di(),e=Array.prototype.splice;return He=function(r){var n=this.__data__,o=t(n,r);return!(o<0||(o==n.length-1?n.pop():e.call(n,o,1),--this.size,0))}}(),r=function(){if(Ne)return $e;Ne=1;var t=di();return $e=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(Ve)return Ie;Ve=1;var t=di();return Ie=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Ye)return Xe;Ye=1;var t=di();return Xe=function(e,r){var n=this.__data__,o=t(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,qe=i}function vi(){if(ur)return ar;ur=1;var t,e=function(){if(ir)return or;ir=1;var t=Ct()["__core-js_shared__"];return or=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return ar=function(t){return!!r&&r in t}}function gi(){if(fr)return sr;fr=1;var t=Function.prototype.toString;return sr=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function yi(){if(br)return dr;br=1;var t=function(){if(lr)return cr;lr=1;var t=ii(),e=vi(),r=oi(),n=gi(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,u=i.toString,s=a.hasOwnProperty,f=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return cr=function(i){return!(!r(i)||e(i))&&(t(i)?f:o).test(n(i))}}(),e=pr?hr:(pr=1,hr=function(t,e){return null==t?void 0:t[e]});return dr=function(r,n){var o=e(r,n);return t(o)?o:void 0}}function mi(){if(gr)return vr;gr=1;var t=yi()(Ct(),"Map");return vr=t}function wi(){if(mr)return yr;mr=1;var t=yi()(Object,"create");return yr=t}function _i(){if(Rr)return Cr;Rr=1;var t=function(){if(_r)return wr;_r=1;var t=wi();return wr=function(){this.__data__=t?t(null):{},this.size=0}}(),e=jr?xr:(jr=1,xr=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(Mr)return Or;Mr=1;var t=wi(),e=Object.prototype.hasOwnProperty;return Or=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(kr)return Sr;kr=1;var t=wi(),e=Object.prototype.hasOwnProperty;return Sr=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(Er)return Ar;Er=1;var t=wi();return Ar=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Cr=i}function xi(){if(Dr)return Fr;Dr=1;var t=Ur?Lr:(Ur=1,Lr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Fr=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function ji(){if(Yr)return Xr;Yr=1;var t=function(){if(Tr)return Pr;Tr=1;var t=_i(),e=bi(),r=mi();return Pr=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(Br)return zr;Br=1;var t=xi();return zr=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Wr)return Hr;Wr=1;var t=xi();return Hr=function(e){return t(this,e).get(e)}}(),n=function(){if(Nr)return $r;Nr=1;var t=xi();return $r=function(e){return t(this,e).has(e)}}(),o=function(){if(Vr)return Ir;Vr=1;var t=xi();return Ir=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Xr=i}function Oi(){if(Jr)return Gr;Jr=1;var t=bi(),e=function(){if(Je)return Ge;Je=1;var t=bi();return Ge=function(){this.__data__=new t,this.size=0}}(),r=Ze?Qe:(Ze=1,Qe=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=er?tr:(er=1,tr=function(t){return this.__data__.get(t)}),o=nr?rr:(nr=1,rr=function(t){return this.__data__.has(t)}),i=function(){if(Kr)return qr;Kr=1;var t=bi(),e=mi(),r=ji();return qr=function(n,o){var i=this.__data__;if(i instanceof t){var a=i.__data__;if(!e||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,Gr=a}function Mi(){if(nn)return rn;nn=1;var t=ji(),e=Zr?Qr:(Zr=1,Qr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=en?tn:(en=1,tn=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,rn=n}function Si(){if(cn)return fn;cn=1;var t=Mi(),e=an?on:(an=1,on=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),r=sn?un:(sn=1,un=function(t,e){return t.has(e)});return fn=function(n,o,i,a,u,s){var f=1&i,c=n.length,l=o.length;if(c!=l&&!(f&&l>c))return!1;var h=s.get(n),p=s.get(o);if(h&&p)return h==o&&p==n;var d=-1,b=!0,v=2&i?new t:void 0;for(s.set(n,o),s.set(o,n);++d<c;){var g=n[d],y=o[d];if(a)var m=f?a(y,g,d,o,n,s):a(g,y,d,n,o,s);if(void 0!==m){if(m)continue;b=!1;break}if(v){if(!e(o,function(t,e){if(!r(v,e)&&(g===t||u(g,t,i,a,s)))return v.push(e)})){b=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){b=!1;break}}return s.delete(n),s.delete(o),b}}function ki(){if(hn)return ln;hn=1;var t=Ct().Uint8Array;return ln=t}function Ai(){if(yn)return gn;yn=1;var t=Rt(),e=ki(),r=pi(),n=Si(),o=dn?pn:(dn=1,pn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),i=vn?bn:(vn=1,bn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return gn=function(t,a,s,f,c,l,h){switch(s){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!l(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var p=o;case"[object Set]":var d=1&f;if(p||(p=i),t.size!=a.size&&!d)return!1;var b=h.get(t);if(b)return b==a;f|=2,h.set(t,a);var v=n(p(t),p(a),f,c,l,h);return h.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(a)}return!1}}function Ei(){if(wn)return mn;return wn=1,mn=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}}function Ci(){if(xn)return _n;xn=1;var t=Ei(),e=Tt();return _n=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))}}function Ri(){if(Sn)return Mn;return Sn=1,Mn=function(){return[]}}function Pi(){if(An)return kn;An=1;var t=On?jn:(On=1,jn=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}),e=Ri(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return kn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}function Ti(){if(Cn)return En;Cn=1;var t=Ci(),e=Pi(),r=ui();return En=function(n){return t(n,r,e)}}function Li(){if($n)return Wn;$n=1;var t=function(){if(Ln)return Tn;Ln=1;var t=yi()(Ct(),"DataView");return Tn=t}(),e=mi(),r=function(){if(Fn)return Un;Fn=1;var t=yi()(Ct(),"Promise");return Un=t}(),n=function(){if(zn)return Dn;zn=1;var t=yi()(Ct(),"Set");return Dn=t}(),o=function(){if(Hn)return Bn;Hn=1;var t=yi()(Ct(),"WeakMap");return Bn=t}(),i=Pt(),a=gi(),u="[object Map]",s="[object Promise]",f="[object Set]",c="[object WeakMap]",l="[object DataView]",h=a(t),p=a(e),d=a(r),b=a(n),v=a(o),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=l||e&&g(new e)!=u||r&&g(r.resolve())!=s||n&&g(new n)!=f||o&&g(new o)!=c)&&(g=function(t){var e=i(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case h:return l;case p:return u;case d:return s;case b:return f;case v:return c}return e}),Wn=g}function Ui(){if(In)return Nn;In=1;var t=Oi(),e=Si(),r=Ai(),n=function(){if(Pn)return Rn;Pn=1;var t=Ti(),e=Object.prototype.hasOwnProperty;return Rn=function(r,n,o,i,a,u){var s=1&o,f=t(r),c=f.length;if(c!=t(n).length&&!s)return!1;for(var l=c;l--;){var h=f[l];if(!(s?h in n:e.call(n,h)))return!1}var p=u.get(r),d=u.get(n);if(p&&d)return p==n&&d==r;var b=!0;u.set(r,n),u.set(n,r);for(var v=s;++l<c;){var g=r[h=f[l]],y=n[h];if(i)var m=s?i(y,g,h,n,r,u):i(g,y,h,r,n,u);if(!(void 0===m?g===y||a(g,y,o,i,u):m)){b=!1;break}v||(v="constructor"==h)}if(b&&!v){var w=r.constructor,_=n.constructor;w==_||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(b=!1)}return u.delete(r),u.delete(n),b}}(),o=Li(),i=Tt(),a=Kt(),u=Zo(),s="[object Arguments]",f="[object Array]",c="[object Object]",l=Object.prototype.hasOwnProperty;return Nn=function(h,p,d,b,v,g){var y=i(h),m=i(p),w=y?f:o(h),_=m?f:o(p),x=(w=w==s?c:w)==c,j=(_=_==s?c:_)==c,O=w==_;if(O&&a(h)){if(!a(p))return!1;y=!0,x=!1}if(O&&!x)return g||(g=new t),y||u(h)?e(h,p,d,b,v,g):r(h,p,w,d,b,v,g);if(!(1&d)){var M=x&&l.call(h,"__wrapped__"),S=j&&l.call(p,"__wrapped__");if(M||S){var k=M?h.value():h,A=S?p.value():p;return g||(g=new t),v(k,A,d,b,g)}}return!!O&&(g||(g=new t),n(h,p,d,b,v,g))}}function Fi(){if(Xn)return Vn;Xn=1;var t=Ui(),e=Lt();return Vn=function r(n,o,i,a,u){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,a,r,u))},Vn}function Di(){if(Gn)return Kn;Gn=1;var t=oi();return Kn=function(e){return e==e&&!t(e)}}function zi(){if(to)return Zn;return to=1,Zn=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}}function Bi(){if(ro)return eo;ro=1;var t=function(){if(qn)return Yn;qn=1;var t=Oi(),e=Fi();return Yn=function(r,n,o,i){var a=o.length,u=a,s=!i;if(null==r)return!u;for(r=Object(r);a--;){var f=o[a];if(s&&f[2]?f[1]!==r[f[0]]:!(f[0]in r))return!1}for(;++a<u;){var c=(f=o[a])[0],l=r[c],h=f[1];if(s&&f[2]){if(void 0===l&&!(c in r))return!1}else{var p=new t;if(i)var d=i(l,h,c,r,n,p);if(!(void 0===d?e(h,l,3,i,p):d))return!1}}return!0}}(),e=function(){if(Qn)return Jn;Qn=1;var t=Di(),e=ui();return Jn=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,t(a)]}return n}}(),r=zi();return eo=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}}}function Hi(){if(oo)return no;oo=1;var t=Pt(),e=Lt();return no=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function Wi(){if(ao)return io;ao=1;var t=Tt(),e=Hi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return io=function(o,i){if(t(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!e(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))}}function $i(){if(co)return fo;co=1;var t=function(){if(so)return uo;so=1;var t=ji();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=o.cache;if(i.has(e))return i.get(e);var a=r.apply(this,t);return o.cache=i.set(e,a)||i,a};return o.cache=new(e.Cache||t),o}return e.Cache=t,uo=e}();return fo=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}function Ni(){if(go)return vo;go=1;var t=function(){if(bo)return po;bo=1;var t=Rt(),e=hi(),r=Tt(),n=Hi(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return po=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},po}();return vo=function(e){return null==e?"":t(e)}}function Ii(){if(mo)return yo;mo=1;var t=Tt(),e=Wi(),r=function(){if(ho)return lo;ho=1;var t=$i(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,function(t,e,o,i){n.push(o?i.replace(r,"$1"):e||t)}),n});return lo=n}(),n=Ni();return yo=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))}}function Vi(){if(_o)return wo;_o=1;var t=Hi();return wo=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Xi(){if(jo)return xo;jo=1;var t=Ii(),e=Vi();return xo=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0}}function Yi(){if(Ro)return Co;Ro=1;var t=ko?So:(ko=1,So=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(Eo)return Ao;Eo=1;var t=Ii(),e=Ft(),r=Tt(),n=Gt(),o=Jt(),i=Vi();return Ao=function(a,u,s){for(var f=-1,c=(u=t(u,a)).length,l=!1;++f<c;){var h=i(u[f]);if(!(l=null!=a&&s(a,h)))break;a=a[h]}return l||++f!=c?l:!!(c=null==a?0:a.length)&&o(c)&&n(h,c)&&(r(a)||e(a))}}();return Co=function(r,n){return null!=r&&e(r,n,t)}}function qi(){if(To)return Po;To=1;var t=Fi(),e=function(){if(Mo)return Oo;Mo=1;var t=Xi();return Oo=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=Yi(),n=Wi(),o=Di(),i=zi(),a=Vi();return Po=function(u,s){return n(u)&&o(s)?i(a(u),s):function(n){var o=e(n,u);return void 0===o&&o===s?r(n,u):t(s,o,3)}}}function Ki(){if(Bo)return zo;Bo=1;var t=Uo?Lo:(Uo=1,Lo=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(Do)return Fo;Do=1;var t=Xi();return Fo=function(e){return function(r){return t(r,e)}}}(),r=Wi(),n=Vi();return zo=function(o){return r(o)?t(n(o)):e(o)}}function Gi(){if(Vo)return Io;Vo=1;var t=si(),e=function(){if(No)return $o;No=1;var t=ai();return $o=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,a=r?i:-1,u=Object(n);(r?a--:++a<i)&&!1!==o(u[a],a,u););return n}}}()(t);return Io=e}function Ji(){if(Ko)return qo;Ko=1;var t=hi(),e=function(){if(Wo)return Ho;Wo=1;var t=Bi(),e=qi(),r=fi(),n=Tt(),o=Ki();return Ho=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?e(i[0],i[1]):t(i):o(i)}}(),r=function(){if(Yo)return Xo;Yo=1;var t=Gi(),e=ai();return Xo=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,function(t,e,r){i[++o]=n(t,e,r)}),i}}(),n=Tt();return qo=function(o,i){return(n(o)?t:r)(o,e(i,3))}}function Qi(){if(Go)return At;Go=1,Object.defineProperty(At,"__esModule",{value:!0}),At.flattenNames=void 0;var t=function(){if(vt)return bt;vt=1;var t=Pt(),e=Tt(),r=Lt();return bt=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),e=a(t),r=a(ci()),n=function(){if(Re)return Ce;Re=1;var t=Pt(),e=li(),r=Lt(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,u=i.call(Object);return Ce=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}(),o=a(n),i=a(Ji());function a(t){return t&&t.__esModule?t:{default:t}}var u=At.flattenNames=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[];return(0,i.default)(n,function(n){Array.isArray(n)?t(n).map(function(t){return a.push(t)}):(0,o.default)(n)?(0,r.default)(n,function(t,e){!0===t&&a.push(e),a.push(e+"-"+t)}):(0,e.default)(n)&&a.push(n)}),a};return At.default=u,At}var Zi,ta,ea,ra,na,oa,ia,aa,ua,sa,fa,ca,la,ha,pa,da,ba,va,ga,ya,ma={};function wa(){if(oa)return na;oa=1;var t=function(){if(ra)return ea;ra=1;var t=yi(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return ea=e}();return na=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function _a(){if(aa)return ia;aa=1;var t=wa(),e=pi(),r=Object.prototype.hasOwnProperty;return ia=function(n,o,i){var a=n[o];r.call(n,o)&&e(a,i)&&(void 0!==i||o in n)||t(n,o,i)}}function xa(){if(sa)return ua;sa=1;var t=_a(),e=wa();return ua=function(r,n,o,i){var a=!o;o||(o={});for(var u=-1,s=n.length;++u<s;){var f=n[u],c=i?i(o[f],r[f],f,o,r):void 0;void 0===c&&(c=r[f]),a?e(o,f,c):t(o,f,c)}return o}}function ja(){if(da)return pa;da=1;var t=oi(),e=ei(),r=ha?la:(ha=1,la=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return pa=function(o){if(!t(o))return r(o);var i=e(o),a=[];for(var u in o)("constructor"!=u||!i&&n.call(o,u))&&a.push(u);return a}}function Oa(){if(va)return ba;va=1;var t=ti(),e=ja(),r=ai();return ba=function(n){return r(n)?t(n,!0):e(n)}}var Ma,Sa,ka,Aa,Ea,Ca,Ra,Pa,Ta,La,Ua,Fa,Da,za,Ba,Ha,Wa,$a,Na,Ia,Va,Xa,Ya,qa,Ka,Ga,Ja,Qa,Za,tu,eu,ru,nu,ou,iu,au,uu,su,fu,cu,lu,hu,pu={exports:{}};function du(){if(Ra)return Ca;Ra=1;var t=Ei(),e=li(),r=Pi(),n=Ri(),o=Object.getOwnPropertySymbols;return Ca=o?function(n){for(var o=[];n;)t(o,r(n)),n=e(n);return o}:n}function bu(){if(Ba)return za;Ba=1;var t=ki();return za=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function vu(){if(Ka)return qa;Ka=1;var t=bu(),e=function(){if(Wa)return Ha;Wa=1;var t=bu();return Ha=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(Na)return $a;Na=1;var t=/\w*$/;return $a=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(Va)return Ia;Va=1;var t=Rt(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return Ia=function(t){return r?Object(r.call(t)):{}}}(),o=function(){if(Ya)return Xa;Ya=1;var t=bu();return Xa=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return qa=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return t(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return e(i,u);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(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return r(i);case"[object Symbol]":return n(i)}}}function gu(){if(Za)return Qa;Za=1;var t=function(){if(Ja)return Ga;Ja=1;var t=oi(),e=Object.create,r=function(){function r(){}return function(n){if(!t(n))return{};if(e)return e(n);r.prototype=n;var o=new r;return r.prototype=void 0,o}}();return Ga=r}(),e=li(),r=ei();return Qa=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}function yu(){if(nu)return ru;nu=1;var t=function(){if(eu)return tu;eu=1;var t=Li(),e=Lt();return tu=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=Qt(),r=Qo(),n=r&&r.isMap,o=n?e(n):t;return ru=o}function mu(){if(uu)return au;uu=1;var t=function(){if(iu)return ou;iu=1;var t=Li(),e=Lt();return ou=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=Qt(),r=Qo(),n=r&&r.isSet,o=n?e(n):t;return au=o}function wu(){if(fu)return su;fu=1;var t=Oi(),e=ta?Zi:(ta=1,Zi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),r=_a(),n=function(){if(ca)return fa;ca=1;var t=xa(),e=ui();return fa=function(r,n){return r&&t(n,e(n),r)}}(),o=function(){if(ya)return ga;ya=1;var t=xa(),e=Oa();return ga=function(r,n){return r&&t(n,e(n),r)}}(),i=(Ma||(Ma=1,function(t,e){var r=Ct(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}(pu,pu.exports)),pu.exports),a=ka?Sa:(ka=1,Sa=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),u=function(){if(Ea)return Aa;Ea=1;var t=xa(),e=Pi();return Aa=function(r,n){return t(r,e(r),n)}}(),s=function(){if(Ta)return Pa;Ta=1;var t=xa(),e=du();return Pa=function(r,n){return t(r,e(r),n)}}(),f=Ti(),c=function(){if(Ua)return La;Ua=1;var t=Ci(),e=du(),r=Oa();return La=function(n){return t(n,r,e)}}(),l=Li(),h=function(){if(Da)return Fa;Da=1;var t=Object.prototype.hasOwnProperty;return Fa=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}}(),p=vu(),d=gu(),b=Tt(),v=Kt(),g=yu(),y=oi(),m=mu(),w=ui(),_=Oa(),x="[object Arguments]",j="[object Function]",O="[object Object]",M={};return M[x]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[O]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[j]=M["[object WeakMap]"]=!1,su=function S(k,A,E,C,R,P){var T,L=1&A,U=2&A,F=4&A;if(E&&(T=R?E(k,C,R,P):E(k)),void 0!==T)return T;if(!y(k))return k;var D=b(k);if(D){if(T=h(k),!L)return a(k,T)}else{var z=l(k),B=z==j||"[object GeneratorFunction]"==z;if(v(k))return i(k,L);if(z==O||z==x||B&&!R){if(T=U||B?{}:d(k),!L)return U?s(k,o(T,k)):u(k,n(T,k))}else{if(!M[z])return R?k:{};T=p(k,z,L)}}P||(P=new t);var H=P.get(k);if(H)return H;P.set(k,T),m(k)?k.forEach(function(t){T.add(S(t,A,E,t,k,P))}):g(k)&&k.forEach(function(t,e){T.set(e,S(t,A,E,e,k,P))});var W=D?void 0:(F?U?c:f:U?_:w)(k);return e(W||k,function(t,e){W&&(t=k[e=t]),r(T,e,S(t,A,E,e,k,P))}),T},su}function _u(){if(hu)return ma;hu=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.mergeClasses=void 0;var t=n(ci()),e=n(function(){if(lu)return cu;lu=1;var t=wu();return cu=function(e){return t(e,5)}}()),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function n(t){return t&&t.__esModule?t:{default:t}}var o=ma.mergeClasses=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=n.default&&(0,e.default)(n.default)||{};return o.map(function(e){var o=n[e];return o&&(0,t.default)(o,function(t,e){i[e]||(i[e]={}),i[e]=r({},i[e],o[e])}),e}),i};return ma.default=o,ma}var xu,ju={};var Ou,Mu={};function Su(){if(Ou)return Mu;Ou=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.hover=void 0;var t,e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=r)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=Mu.hover=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var f=arguments.length,c=Array(f),l=0;l<f;l++)c[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return n.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},n.default.createElement(t,e({},s.props,s.state)))},o(s,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,i),a}(n.default.Component)};return Mu.default=i,Mu}var ku,Au={};function Eu(){if(ku)return Au;ku=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.active=void 0;var t,e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=r)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=Au.active=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var f=arguments.length,c=Array(f),l=0;l<f;l++)c[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return n.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},n.default.createElement(t,e({},s.props,s.state)))},o(s,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,i),a}(n.default.Component)};return Au.default=i,Au}var Cu,Ru,Pu={};var Tu=function(){if(Ru)return kt;Ru=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.ReactCSS=kt.loop=kt.handleActive=kt.handleHover=kt.hover=void 0;var t=u(Qi()),e=u(_u()),r=function(){if(xu)return ju;xu=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.autoprefix=void 0;var t,e=ci(),r=(t=e)&&t.__esModule?t:{default:t},n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var e=t&&t.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(t,e){return e[t]||{extend:t}}},i=ju.autoprefix=function(t){var e={};return(0,r.default)(t,function(t,i){var a={};(0,r.default)(t,function(t,e){var r=o[e];r?a=n({},a,r(t)):a[e]=t}),e[i]=a}),e};return ju.default=i,ju}(),n=u(r),o=u(Su()),i=u(Eu()),a=u((Cu||(Cu=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=function(t,e){var r={},n=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r[t]=e};return 0===t&&n("first-child"),t===e-1&&n("last-child"),(0===t||t%2==0)&&n("even"),1===Math.abs(t%2)&&n("odd"),n("nth-child",t),r}),Pu));function u(t){return t&&t.__esModule?t:{default:t}}kt.hover=o.default,kt.handleHover=o.default,kt.handleActive=i.default,kt.loop=a.default;var s=kt.ReactCSS=function(r){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var u=(0,t.default)(i),s=(0,e.default)(r,u);return(0,n.default)(s)};return kt.default=s,kt}();const Lu=l(Tu);var Uu={},Fu=function(t,e,r,n){var o=t+"-"+e+"-"+r+(n?"-server":"");if(Uu[o])return Uu[o];var i=function(t,e,r,n){if("undefined"==typeof document&&!n)return null;var o=n?new n:document.createElement("canvas");o.width=2*r,o.height=2*r;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=e,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null}(t,e,r,n);return Uu[o]=i,i},Du=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zu=function(t){var e=t.white,o=t.grey,i=t.size,a=t.renderers,u=t.borderRadius,s=t.boxShadow,f=t.children,c=Lu({default:{grid:{borderRadius:u,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+Fu(e,o,i,a.canvas)+") center left"}}});return n(f)?r.cloneElement(f,Du({},f.props,{style:Du({},f.props.style,c.grid)})):r.createElement("div",{style:c.grid})};zu.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Bu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Wu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var $u=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=Wu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n,o){var i=o.clientWidth,a=o.clientHeight,u="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,s="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,f=u-(o.getBoundingClientRect().left+window.pageXOffset),c=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var l=void 0;if(l=c<0?0:c>a?1:Math.round(100*c/a)/100,e.a!==l)return{h:e.h,s:e.s,l:e.l,a:l,source:"rgb"}}else{var h=void 0;if(n!==(h=f<0?0:f>i?1:Math.round(100*f/i)/100))return{h:e.h,s:e.s,l:e.l,a:h,source:"rgb"}}return null}(t,n.props.hsl,n.props.direction,n.props.a,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},Wu(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,o||i),Hu(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,e=this.props.rgb,n=Lu({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%,\n 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%,\n rgba("+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:Bu({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r.createElement("div",{style:n.alpha},r.createElement("div",{style:n.checkboard},r.createElement(zu,{renderers:this.props.renderers})),r.createElement("div",{style:n.gradient}),r.createElement("div",{style:n.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{style:n.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:n.slider}))))}}]),t}(),Nu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var Iu=[38,40],Vu=1,Xu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(t){r.setUpdatedValue(t.target.value,t)},r.handleKeyDown=function(t){var e,n=function(t){return Number(String(t).replace(/%/g,""))}(t.target.value);if(!isNaN(n)&&(e=t.keyCode,Iu.indexOf(e)>-1)){var o=r.getArrowOffset(),i=38===t.keyCode?n+o:n-o;r.setUpdatedValue(i,t)}},r.handleDrag=function(t){if(r.props.dragLabel){var e=Math.round(r.props.value+t.movementX);e>=0&&e<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(e),t)}},r.handleMouseDown=function(t){r.props.dragLabel&&(t.preventDefault(),r.handleDrag(t),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},r.inputId="rc-editable-input-"+Vu++,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,o||i),Nu(t,[{key:"componentDidUpdate",value:function(t,e){this.props.value===this.state.value||t.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(t){return function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},this.props.label,t)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(t,e){var r=this.props.label?this.getValueObjectWithLabel(t):t;this.props.onChange&&this.props.onChange(r,e),this.setState({value:t})}},{key:"render",value:function(){var t=this,e=Lu({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 r.createElement("div",{style:e.wrap},r.createElement("input",{id:this.inputId,style:e.input,ref:function(e){return t.input=e},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?r.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(),Yu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function qu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Ku=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=qu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n){var o=n.clientWidth,i=n.clientHeight,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),f=u-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===e){var c=void 0;if(c=f<0?359:f>i?0:360*(-100*f/i+100)/100,r.h!==c)return{h:c,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var l=void 0;if(l=s<0?0:s>o?359:100*s/o*360/100,r.h!==l)return{h:l,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(t,n.props.direction,n.props.hsl,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},qu(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,o||i),Yu(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 t=this,e=this.props.direction,n=void 0===e?"horizontal":e,o=Lu({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:"vertical"===n});return r.createElement("div",{style:o.hue},r.createElement("div",{className:"hue-"+n,style:o.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),r.createElement("div",{style:o.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:o.slider}))))}}]),t}(),Gu="object"==typeof global&&global&&global.Object===Object&&global,Ju="object"==typeof self&&self&&self.Object===Object&&self,Qu=Gu||Ju||Function("return this")(),Zu=Qu.Symbol,ts=Object.prototype,es=ts.hasOwnProperty,rs=ts.toString,ns=Zu?Zu.toStringTag:void 0;var os=Object.prototype.toString;var is=Zu?Zu.toStringTag:void 0;function as(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":is&&is in Object(t)?function(t){var e=es.call(t,ns),r=t[ns];try{t[ns]=void 0;var n=!0}catch(t){}var o=rs.call(t);return n&&(e?t[ns]=r:delete t[ns]),o}(t):function(t){return os.call(t)}(t)}function us(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}g.string,g.oneOf([0,1,2,3,4,5]),g.number,g.object;var ss=function(){return Qu.Date.now()},fs=/\s/;var cs=/^\s+/;function ls(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&fs.test(t.charAt(e)););return e}(t)+1).replace(cs,""):t}var hs=/^[-+]0x[0-9a-f]+$/i,ps=/^0b[01]+$/i,ds=/^0o[0-7]+$/i,bs=parseInt;function vs(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==as(t)}(t))return NaN;if(us(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=us(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ls(t);var r=ps.test(t);return r||ds.test(t)?bs(t.slice(2),r?2:8):hs.test(t)?NaN:+t}var gs=Math.max,ys=Math.min;function ms(t,e,r){var n,o,i,a,u,s,f=0,c=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,f=e,a=t.apply(i,r)}function d(t){var r=t-s;return void 0===s||r>=e||r<0||l&&t-f>=i}function b(){var t=ss();if(d(t))return v(t);u=setTimeout(b,function(t){var r=e-(t-s);return l?ys(r,i-(t-f)):r}(t))}function v(t){return u=void 0,h&&n?p(t):(n=o=void 0,a)}function g(){var t=ss(),r=d(t);if(n=arguments,o=this,s=t,r){if(void 0===u)return function(t){return f=t,u=setTimeout(b,e),c?p(t):a}(s);if(l)return clearTimeout(u),u=setTimeout(b,e),p(s)}return void 0===u&&(u=setTimeout(b,e)),a}return e=vs(e)||0,us(r)&&(c=!!r.leading,i=(l="maxWait"in r)?gs(vs(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),f=0,n=s=o=u=void 0},g.flush=function(){return void 0===u?a:v(ss())},g}var ws=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();!function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(t){"function"==typeof r.props.onChange&&r.throttle(r.props.onChange,function(t,e,r){var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),f=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),f<0?f=0:f>i&&(f=i);var c=s/o,l=1-f/i;return{h:e.h,s:c,v:l,a:e.a,source:"hsv"}}(t,r.props.hsl,r.container),t)},r.handleMouseDown=function(t){r.handleChange(t);var e=r.getContainerRenderWindow();e.addEventListener("mousemove",r.handleChange),e.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return us(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),ms(t,e,{leading:n,maxWait:e,trailing:o})}(function(t,e,r){t(e,r)},50),r}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(t,o||i),ws(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var t=this.container,e=window;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,e=this.props.style||{},n=e.color,o=e.white,i=e.black,a=e.pointer,u=e.circle,s=Lu({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),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:i,pointer:a,circle:u}},{custom:!!this.props.style});return r.createElement("div",{style:s.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),r.createElement("div",{style:s.white,className:"saturation-white"},r.createElement("div",{style:s.black,className:"saturation-black"}),r.createElement("div",{style:s.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:s.circle}))))}}])}();var _s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xs=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function js(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Os=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";(function(){function n(){var t,e,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=js(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(i))),r.state={focus:!1},r.handleFocus=function(){return r.setState({focus:!0})},r.handleBlur=function(){return r.setState({focus:!1})},js(r,e)}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(n,r.Component),xs(n,[{key:"render",value:function(){return r.createElement(e,{onFocus:this.handleFocus,onBlur:this.handleBlur},r.createElement(t,_s({},this.props,this.state)))}}])})()}(function(t){var e=t.color,n=t.style,o=t.onClick,i=void 0===o?function(){}:o,a=t.onHover,u=t.title,s=void 0===u?e:u,f=t.children,c=t.focus,l=t.focusStyle,h="transparent"===e,p=Lu({default:{swatch:Os({background:e,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?void 0===l?{}:l:{})}}),d={};return a&&(d.onMouseOver=function(t){return a(e,t)}),r.createElement("div",Os({style:p.swatch,onClick:function(t){return i(e,t)},title:s,tabIndex:0,onKeyDown:function(t){return 13===t.keyCode&&i(e,t)}},d),f,h&&r.createElement(zu,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Ms=function(t){var e=t.onChange,n=t.rgb,o=t.hsl,i=t.hex,a=t.disableAlpha,u=Lu({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:a}),s=function(t,r){t.hex?function(t){if("transparent"===t)return!0;var e="#"===String(t).charAt(0)?1:0;return t.length!==4+e&&t.length<7+e&&_(t).isValid()}(t.hex)&&e({hex:t.hex,source:"hex"},r):t.r||t.g||t.b?e({r:t.r||n.r,g:t.g||n.g,b:t.b||n.b,a:n.a,source:"rgb"},r):t.a&&(t.a<0?t.a=0:t.a>100&&(t.a=100),t.a/=100,e({h:o.h,s:o.s,l:o.l,a:t.a,source:"rgb"},r))};return r.createElement("div",{style:u.fields,className:"flexbox-fix"},r.createElement("div",{style:u.double},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"hex",value:i.replace("#",""),onChange:s})),r.createElement("div",{style:u.single},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:u.single},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:u.single},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:u.alpha},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class Ss extends(o||i){constructor(t){super(t),this.handleChange=t=>{"function"==typeof this.props.onChange&&this.throttle(this.props.onChange,((t,e,r)=>{var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),f=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),f<0?f=0:f>i&&(f=i);var c=s/o,l=1-f/i;return{h:e.h,s:c,v:l,a:e.a,source:"hsv"}})(t,this.props.hsl,this.container),t),t.preventDefault()},this.handleMouseDown=t=>{this.handleChange(t);const e=this.getContainerRenderWindow();e.addEventListener("mousemove",this.handleChange),e.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=t=>{t.preventDefault(),this.unbindEventListeners()},this.throttle=function(t,e,r){let n,o,i,a;var u=0;r||(r={});let s=function(){u=!1===r.leading?0:Date.now(),n=null,a=t.apply(o,i),n||(o=i=null)},f=function(){var f=Date.now();u||!1!==r.leading||(u=f);var c=e-(f-u);return o=this,i=arguments,c<=0||c>e?(n&&(clearTimeout(n),n=null),u=f,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,c)),a};return f.cancel=function(){clearTimeout(n),u=0,n=o=i=null},f}((t,e,r)=>{t(e,r)},50)}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:t}=this;let e=window;for(;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:r,white:n,black:o,pointer:i,circle:a}=this.props||{},u={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},s={color:{...u,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...u,borderRadius:this.props.style?.borderRadius},black:{...u,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...u,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),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return t("div",{style:s.color,ref:t=>this.container=t,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[e("style",{children:"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "}),t("div",{style:s.white,className:"saturation-white",children:[e("div",{style:s.black,className:"saturation-black"}),e("div",{style:s.pointer,children:this.props.pointer?e(this.props.pointer,{...this.props}):e("div",{style:s.circle})})]})]})}}const ks=(t,e=null)=>{const r=t.hex?_(t.hex):_(t||"transparent"),n=r.toHsl(),o=r.toHsv(),i=r.toRgb(),a=r.toHex();return 0===n.s&&(n.h=e??0,o.h=e??0),{hsl:n,hex:"#"+a,rgb:i,hsv:o,source:t.source}},As=a(r=>{const{selectedColor:n,onColorChange:o,renderers:i,disableAlpha:a=!1,style:l=d.EmptyCssProperties,...h}=r,p=b(),[g,y]=u(()=>ks(n)),[m,w]=u(g.hsl.h??0),_=s(t=>{let e=ks(t,m);return w(e.hsl.h??0),y(e),e},[m]),x=s(t=>{const e=_(t),r=`rgba(${e.rgb.r},${e.rgb.g},${e.rgb.b},${a?1:e.rgb.a})`;o?.(r)},[o,_,a]);f(()=>{_(n)},[n,_]);const j=e("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:e($u,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:g.rgb,hsl:g.hsl,renderers:i,onChange:x})});return t("div",{style:{display:"flex",flexDirection:"column",...l},...h,children:[e("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:e(Ss,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:g.hsl,hsv:g.hsv,onChange:x})}),t("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[t("div",{style:{flex:"1",display:"flex",flexDirection:a?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[e("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:e(Ku,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:g.hsl,onChange:x})}),a?null:j]}),t("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[e(v,{grey:p.palette.text.icon??p.palette.action.active}),e("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${g.rgb.r},${g.rgb.g},${g.rgb.b},${a?1:g.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),e(c,{sx:{marginBottom:"4px","& label":{fontFamily:t=>`${t.typography.fontFamily} !important`,color:t=>`${t.palette.text.secondary} !important`},"& *":{fontFamily:t=>`${t.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:t=>`${t.spacing(.5)} !important`,paddingRight:t=>`${t.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:e(Ms,{rgb:g.rgb,hsl:g.hsl,hex:g.hex,disableAlpha:a,onChange:x})})]})});export{As as CustomColorPanel,As as default,ks as toState};
7
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import r,{isValidElement as n,PureComponent as o,Component as i,memo as a,useState as u,useCallback as s,useLayoutEffect as f}from"react";import{Box as c}from"@mui/material";import{g as l,r as h,c as p,y as d,u as b,C as v}from"./BPMMuKIe5xb3-D8V.mjs";const g=l(h());function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}var m=/^\s+/,w=/\s+$/;function _(t,e){if(e=e||{},(t=t||"")instanceof _)return t;if(!(this instanceof _))return new _(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,o=null,i=null,a=!1,u=!1;"string"==typeof t&&(t=function(t){t=t.replace(m,"").replace(w,"").toLowerCase();var e,r=!1;if(z[t])t=z[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=J.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=J.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=J.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=J.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=J.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=J.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=J.hex8.exec(t))return{r:N(e[1]),g:N(e[2]),b:N(e[3]),a:Y(e[4]),format:r?"name":"hex8"};if(e=J.hex6.exec(t))return{r:N(e[1]),g:N(e[2]),b:N(e[3]),format:r?"name":"hex"};if(e=J.hex4.exec(t))return{r:N(e[1]+""+e[1]),g:N(e[2]+""+e[2]),b:N(e[3]+""+e[3]),a:Y(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=J.hex3.exec(t))return{r:N(e[1]+""+e[1]),g:N(e[2]+""+e[2]),b:N(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==y(t)&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(s=t.r,f=t.g,c=t.b,e={r:255*W(s,255),g:255*W(f,255),b:255*W(c,255)},a=!0,u="%"===String(t.r).substr(-1)?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(n=V(t.s),o=V(t.v),e=function(t,e,r){t=6*W(t,360),e=W(e,100),r=W(r,100);var n=Math.floor(t),o=t-n,i=r*(1-e),a=r*(1-o*e),u=r*(1-(1-o)*e),s=n%6,f=[r,a,i,i,u,r][s],c=[u,r,r,a,i,i][s],l=[i,i,u,r,r,a][s];return{r:255*f,g:255*c,b:255*l}}(t.h,n,o),a=!0,u="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(n=V(t.s),i=V(t.l),e=function(t,e,r){var n,o,i;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=W(t,360),e=W(e,100),r=W(r,100),0===e)n=o=i=r;else{var u=r<.5?r*(1+e):r+e-r*e,s=2*r-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*n,g:255*o,b:255*i}}(t.h,n,i),a=!0,u="hsl"),t.hasOwnProperty("a")&&(r=t.a));var s,f,c;return r=H(r),{ok:a,format:t.format||u,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.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=r.ok}function x(t,e,r){t=W(t,255),e=W(e,255),r=W(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=(i+a)/2;if(i==a)n=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,l:u}}function j(t,e,r){t=W(t,255),e=W(e,255),r=W(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=i,s=i-a;if(o=0===i?0:s/i,i==a)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,v:u}}function O(t,e,r,n){var o=[I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16))];return n&&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 M(t,e,r,n){return[I(X(n)),I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16))].join("")}function S(t,e){e=0===e?0:e||10;var r=_(t).toHsl();return r.s-=e/100,r.s=$(r.s),_(r)}function k(t,e){e=0===e?0:e||10;var r=_(t).toHsl();return r.s+=e/100,r.s=$(r.s),_(r)}function A(t){return _(t).desaturate(100)}function E(t,e){e=0===e?0:e||10;var r=_(t).toHsl();return r.l+=e/100,r.l=$(r.l),_(r)}function C(t,e){e=0===e?0:e||10;var r=_(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),_(r)}function R(t,e){e=0===e?0:e||10;var r=_(t).toHsl();return r.l-=e/100,r.l=$(r.l),_(r)}function P(t,e){var r=_(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,_(r)}function T(t){var e=_(t).toHsl();return e.h=(e.h+180)%360,_(e)}function L(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=_(t).toHsl(),n=[_(t)],o=360/e,i=1;i<e;i++)n.push(_({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function U(t){var e=_(t).toHsl(),r=e.h;return[_(t),_({h:(r+72)%360,s:e.s,l:e.l}),_({h:(r+216)%360,s:e.s,l:e.l})]}function F(t,e,r){e=e||6,r=r||30;var n=_(t).toHsl(),o=360/r,i=[_(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,i.push(_(n));return i}function D(t,e){e=e||6;for(var r=_(t).toHsv(),n=r.h,o=r.s,i=r.v,a=[],u=1/e;e--;)a.push(_({h:n,s:o,v:i})),i=(i+u)%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,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=H(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=j(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=j(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=x(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=x(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return O(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,o){var i=[I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16)),I(X(n))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.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 1==this._a?"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*W(this._r,255))+"%",g:Math.round(100*W(this._g,255))+"%",b:Math.round(100*W(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%)":"rgba("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[O(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+M(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=_(t);r="#"+M(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return _(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(U,arguments)},triad:function(){return this._applyCombination(L,[3])},tetrad:function(){return this._applyCombination(L,[4])}},_.fromRatio=function(t,e){if("object"==y(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:V(t[n]));t=r}return _(t,e)},_.equals=function(t,e){return!(!t||!e)&&_(t).toRgbString()==_(e).toRgbString()},_.random=function(){return _.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},_.mix=function(t,e,r){r=0===r?0:r||50;var n=_(t).toRgb(),o=_(e).toRgb(),i=r/100;return _({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},_.readability=function(t,e){var r=_(t),n=_(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},_.isReadable=function(t,e,r){var n,o,i=_.readability(t,e);switch(o=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},_.mostReadable=function(t,e,r){var n,o,i,a,u=null,s=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var f=0;f<e.length;f++)(n=_.readability(t,e[f]))>s&&(s=n,u=_(e[f]));return _.isReadable(t,u,{level:i,size:a})||!o?u:(r.includeFallbackColors=!1,_.mostReadable(t,["#fff","#000"],r))};var z=_.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"},B=_.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(z);function H(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function W(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function $(t){return Math.min(1,Math.max(0,t))}function N(t){return parseInt(t,16)}function I(t){return 1==t.length?"0"+t:""+t}function V(t){return t<=1&&(t=100*t+"%"),t}function X(t){return Math.round(255*parseFloat(t)).toString(16)}function Y(t){return N(t)/255}var q,K,G,J=(K="[\\s|\\(]+("+(q="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",G="[\\s|\\(]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")[,|\\s]+("+q+")\\s*\\)?",{CSS_UNIT:new RegExp(q),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+G),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 Q(t){return!!J.CSS_UNIT.exec(t)}var Z,tt,et,rt,nt,ot,it,at,ut,st,ft,ct,lt,ht,pt,dt,bt,vt,gt,yt,mt,wt,_t,xt,jt,Ot,Mt,St,kt={},At={};function Et(){if(tt)return Z;tt=1;var t="object"==typeof p&&p&&p.Object===Object&&p;return Z=t}function Ct(){if(rt)return et;rt=1;var t=Et(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return et=r}function Rt(){if(ot)return nt;ot=1;var t=Ct().Symbol;return nt=t}function Pt(){if(ct)return ft;ct=1;var t=Rt(),e=function(){if(at)return it;at=1;var t=Rt(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return it=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var a=!0}catch(t){}var u=n.call(t);return a&&(e?t[o]=i:delete t[o]),u}}(),r=function(){if(st)return ut;st=1;var t=Object.prototype.toString;return ut=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return ft=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function Tt(){if(ht)return lt;ht=1;var t=Array.isArray;return lt=t}function Lt(){if(dt)return pt;return dt=1,pt=function(t){return null!=t&&"object"==typeof t}}function Ut(){if(wt)return mt;wt=1;var t=(yt?gt:(yt=1,gt=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}))();return mt=t}function Ft(){if(St)return Mt;St=1;var t=function(){if(Ot)return jt;Ot=1;var t=Pt(),e=Lt();return jt=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=Lt(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return Mt=i}var Dt,zt,Bt,Ht,Wt,$t,Nt,It,Vt,Xt,Yt,qt={exports:{}};function Kt(){return Bt||(Bt=1,function(t,e){var r=Ct(),n=zt?Dt:(zt=1,Dt=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||n;t.exports=u}(qt,qt.exports)),qt.exports}function Gt(){if(Wt)return Ht;Wt=1;var t=/^(?:0|[1-9]\d*)$/;return Ht=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}function Jt(){if(Nt)return $t;Nt=1;return $t=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Qt(){if(Yt)return Xt;return Yt=1,Xt=function(t){return function(e){return t(e)}}}var Zt,te,ee,re,ne,oe,ie,ae,ue,se,fe,ce,le,he,pe,de,be,ve,ge,ye,me,we,_e,xe,je,Oe,Me,Se,ke,Ae,Ee,Ce,Re,Pe,Te,Le,Ue,Fe,De,ze,Be,He,We,$e,Ne,Ie,Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,tr,er,rr,nr,or,ir,ar,ur,sr,fr,cr,lr,hr,pr,dr,br,vr,gr,yr,mr,wr,_r,xr,jr,Or,Mr,Sr,kr,Ar,Er,Cr,Rr,Pr,Tr,Lr,Ur,Fr,Dr,zr,Br,Hr,Wr,$r,Nr,Ir,Vr,Xr,Yr,qr,Kr,Gr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,fn,cn,ln,hn,pn,dn,bn,vn,gn,yn,mn,wn,_n,xn,jn,On,Mn,Sn,kn,An,En,Cn,Rn,Pn,Tn,Ln,Un,Fn,Dn,zn,Bn,Hn,Wn,$n,Nn,In,Vn,Xn,Yn,qn,Kn,Gn,Jn,Qn,Zn,to,eo,ro,no,oo,io,ao,uo,so,fo,co,lo,ho,po,bo,vo,go,yo,mo,wo,_o,xo,jo,Oo,Mo,So,ko,Ao,Eo,Co,Ro,Po,To,Lo,Uo,Fo,Do,zo,Bo,Ho,Wo,$o,No,Io,Vo,Xo,Yo,qo,Ko,Go,Jo={exports:{}};function Qo(){return Zt||(Zt=1,function(t,e){var r=Et(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}(Jo,Jo.exports)),Jo.exports}function Zo(){if(ee)return te;ee=1;var t=function(){if(Vt)return It;Vt=1;var t=Pt(),e=Jt(),r=Lt(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,It=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Qt(),r=Qo(),n=r&&r.isTypedArray,o=n?e(n):t;return te=o}function ti(){if(ne)return re;ne=1;var t=xt?_t:(xt=1,_t=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=Ft(),r=Tt(),n=Kt(),o=Gt(),i=Zo(),a=Object.prototype.hasOwnProperty;return re=function(u,s){var f=r(u),c=!f&&e(u),l=!f&&!c&&n(u),h=!f&&!c&&!l&&i(u),p=f||c||l||h,d=p?t(u.length,String):[],b=d.length;for(var v in u)!s&&!a.call(u,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||d.push(v);return d}}function ei(){if(ie)return oe;ie=1;var t=Object.prototype;return oe=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function ri(){if(ue)return ae;return ue=1,ae=function(t,e){return function(r){return t(e(r))}}}function ni(){if(le)return ce;le=1;var t=ei(),e=function(){if(fe)return se;fe=1;var t=ri()(Object.keys,Object);return se=t}(),r=Object.prototype.hasOwnProperty;return ce=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function oi(){if(pe)return he;return pe=1,he=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function ii(){if(be)return de;be=1;var t=Pt(),e=oi();return de=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function ai(){if(ge)return ve;ge=1;var t=ii(),e=Jt();return ve=function(r){return null!=r&&e(r.length)&&!t(r)}}function ui(){if(me)return ye;me=1;var t=ti(),e=ni(),r=ai();return ye=function(n){return r(n)?t(n):e(n)}}function si(){if(_e)return we;_e=1;var t=Ut(),e=ui();return we=function(r,n){return r&&t(r,n,e)}}function fi(){if(je)return xe;return je=1,xe=function(t){return t}}function ci(){if(ke)return Se;ke=1;var t=si(),e=function(){if(Me)return Oe;Me=1;var t=fi();return Oe=function(e){return"function"==typeof e?e:t}}();return Se=function(r,n){return r&&t(r,e(n))}}function li(){if(Ee)return Ae;Ee=1;var t=ri()(Object.getPrototypeOf,Object);return Ae=t}function hi(){if(Te)return Pe;return Te=1,Pe=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}}function pi(){if(De)return Fe;return De=1,Fe=function(t,e){return t===e||t!=t&&e!=e}}function di(){if(Be)return ze;Be=1;var t=pi();return ze=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function bi(){if(Ke)return qe;Ke=1;var t=Ue?Le:(Ue=1,Le=function(){this.__data__=[],this.size=0}),e=function(){if(We)return He;We=1;var t=di(),e=Array.prototype.splice;return He=function(r){var n=this.__data__,o=t(n,r);return!(o<0||(o==n.length-1?n.pop():e.call(n,o,1),--this.size,0))}}(),r=function(){if(Ne)return $e;Ne=1;var t=di();return $e=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(Ve)return Ie;Ve=1;var t=di();return Ie=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Ye)return Xe;Ye=1;var t=di();return Xe=function(e,r){var n=this.__data__,o=t(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,qe=i}function vi(){if(ur)return ar;ur=1;var t,e=function(){if(ir)return or;ir=1;var t=Ct()["__core-js_shared__"];return or=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return ar=function(t){return!!r&&r in t}}function gi(){if(fr)return sr;fr=1;var t=Function.prototype.toString;return sr=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function yi(){if(br)return dr;br=1;var t=function(){if(lr)return cr;lr=1;var t=ii(),e=vi(),r=oi(),n=gi(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,u=i.toString,s=a.hasOwnProperty,f=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return cr=function(i){return!(!r(i)||e(i))&&(t(i)?f:o).test(n(i))}}(),e=pr?hr:(pr=1,hr=function(t,e){return null==t?void 0:t[e]});return dr=function(r,n){var o=e(r,n);return t(o)?o:void 0}}function mi(){if(gr)return vr;gr=1;var t=yi()(Ct(),"Map");return vr=t}function wi(){if(mr)return yr;mr=1;var t=yi()(Object,"create");return yr=t}function _i(){if(Rr)return Cr;Rr=1;var t=function(){if(_r)return wr;_r=1;var t=wi();return wr=function(){this.__data__=t?t(null):{},this.size=0}}(),e=jr?xr:(jr=1,xr=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(Mr)return Or;Mr=1;var t=wi(),e=Object.prototype.hasOwnProperty;return Or=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(kr)return Sr;kr=1;var t=wi(),e=Object.prototype.hasOwnProperty;return Sr=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(Er)return Ar;Er=1;var t=wi();return Ar=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Cr=i}function xi(){if(Dr)return Fr;Dr=1;var t=Ur?Lr:(Ur=1,Lr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Fr=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function ji(){if(Yr)return Xr;Yr=1;var t=function(){if(Tr)return Pr;Tr=1;var t=_i(),e=bi(),r=mi();return Pr=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(Br)return zr;Br=1;var t=xi();return zr=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Wr)return Hr;Wr=1;var t=xi();return Hr=function(e){return t(this,e).get(e)}}(),n=function(){if(Nr)return $r;Nr=1;var t=xi();return $r=function(e){return t(this,e).has(e)}}(),o=function(){if(Vr)return Ir;Vr=1;var t=xi();return Ir=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Xr=i}function Oi(){if(Jr)return Gr;Jr=1;var t=bi(),e=function(){if(Je)return Ge;Je=1;var t=bi();return Ge=function(){this.__data__=new t,this.size=0}}(),r=Ze?Qe:(Ze=1,Qe=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=er?tr:(er=1,tr=function(t){return this.__data__.get(t)}),o=nr?rr:(nr=1,rr=function(t){return this.__data__.has(t)}),i=function(){if(Kr)return qr;Kr=1;var t=bi(),e=mi(),r=ji();return qr=function(n,o){var i=this.__data__;if(i instanceof t){var a=i.__data__;if(!e||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,Gr=a}function Mi(){if(nn)return rn;nn=1;var t=ji(),e=Zr?Qr:(Zr=1,Qr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=en?tn:(en=1,tn=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,rn=n}function Si(){if(cn)return fn;cn=1;var t=Mi(),e=an?on:(an=1,on=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),r=sn?un:(sn=1,un=function(t,e){return t.has(e)});return fn=function(n,o,i,a,u,s){var f=1&i,c=n.length,l=o.length;if(c!=l&&!(f&&l>c))return!1;var h=s.get(n),p=s.get(o);if(h&&p)return h==o&&p==n;var d=-1,b=!0,v=2&i?new t:void 0;for(s.set(n,o),s.set(o,n);++d<c;){var g=n[d],y=o[d];if(a)var m=f?a(y,g,d,o,n,s):a(g,y,d,n,o,s);if(void 0!==m){if(m)continue;b=!1;break}if(v){if(!e(o,function(t,e){if(!r(v,e)&&(g===t||u(g,t,i,a,s)))return v.push(e)})){b=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){b=!1;break}}return s.delete(n),s.delete(o),b}}function ki(){if(hn)return ln;hn=1;var t=Ct().Uint8Array;return ln=t}function Ai(){if(yn)return gn;yn=1;var t=Rt(),e=ki(),r=pi(),n=Si(),o=dn?pn:(dn=1,pn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),i=vn?bn:(vn=1,bn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return gn=function(t,a,s,f,c,l,h){switch(s){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!l(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var p=o;case"[object Set]":var d=1&f;if(p||(p=i),t.size!=a.size&&!d)return!1;var b=h.get(t);if(b)return b==a;f|=2,h.set(t,a);var v=n(p(t),p(a),f,c,l,h);return h.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(a)}return!1}}function Ei(){if(wn)return mn;return wn=1,mn=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}}function Ci(){if(xn)return _n;xn=1;var t=Ei(),e=Tt();return _n=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))}}function Ri(){if(Sn)return Mn;return Sn=1,Mn=function(){return[]}}function Pi(){if(An)return kn;An=1;var t=On?jn:(On=1,jn=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}),e=Ri(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return kn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}function Ti(){if(Cn)return En;Cn=1;var t=Ci(),e=Pi(),r=ui();return En=function(n){return t(n,r,e)}}function Li(){if($n)return Wn;$n=1;var t=function(){if(Ln)return Tn;Ln=1;var t=yi()(Ct(),"DataView");return Tn=t}(),e=mi(),r=function(){if(Fn)return Un;Fn=1;var t=yi()(Ct(),"Promise");return Un=t}(),n=function(){if(zn)return Dn;zn=1;var t=yi()(Ct(),"Set");return Dn=t}(),o=function(){if(Hn)return Bn;Hn=1;var t=yi()(Ct(),"WeakMap");return Bn=t}(),i=Pt(),a=gi(),u="[object Map]",s="[object Promise]",f="[object Set]",c="[object WeakMap]",l="[object DataView]",h=a(t),p=a(e),d=a(r),b=a(n),v=a(o),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=l||e&&g(new e)!=u||r&&g(r.resolve())!=s||n&&g(new n)!=f||o&&g(new o)!=c)&&(g=function(t){var e=i(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case h:return l;case p:return u;case d:return s;case b:return f;case v:return c}return e}),Wn=g}function Ui(){if(In)return Nn;In=1;var t=Oi(),e=Si(),r=Ai(),n=function(){if(Pn)return Rn;Pn=1;var t=Ti(),e=Object.prototype.hasOwnProperty;return Rn=function(r,n,o,i,a,u){var s=1&o,f=t(r),c=f.length;if(c!=t(n).length&&!s)return!1;for(var l=c;l--;){var h=f[l];if(!(s?h in n:e.call(n,h)))return!1}var p=u.get(r),d=u.get(n);if(p&&d)return p==n&&d==r;var b=!0;u.set(r,n),u.set(n,r);for(var v=s;++l<c;){var g=r[h=f[l]],y=n[h];if(i)var m=s?i(y,g,h,n,r,u):i(g,y,h,r,n,u);if(!(void 0===m?g===y||a(g,y,o,i,u):m)){b=!1;break}v||(v="constructor"==h)}if(b&&!v){var w=r.constructor,_=n.constructor;w==_||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(b=!1)}return u.delete(r),u.delete(n),b}}(),o=Li(),i=Tt(),a=Kt(),u=Zo(),s="[object Arguments]",f="[object Array]",c="[object Object]",l=Object.prototype.hasOwnProperty;return Nn=function(h,p,d,b,v,g){var y=i(h),m=i(p),w=y?f:o(h),_=m?f:o(p),x=(w=w==s?c:w)==c,j=(_=_==s?c:_)==c,O=w==_;if(O&&a(h)){if(!a(p))return!1;y=!0,x=!1}if(O&&!x)return g||(g=new t),y||u(h)?e(h,p,d,b,v,g):r(h,p,w,d,b,v,g);if(!(1&d)){var M=x&&l.call(h,"__wrapped__"),S=j&&l.call(p,"__wrapped__");if(M||S){var k=M?h.value():h,A=S?p.value():p;return g||(g=new t),v(k,A,d,b,g)}}return!!O&&(g||(g=new t),n(h,p,d,b,v,g))}}function Fi(){if(Xn)return Vn;Xn=1;var t=Ui(),e=Lt();return Vn=function r(n,o,i,a,u){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,a,r,u))},Vn}function Di(){if(Gn)return Kn;Gn=1;var t=oi();return Kn=function(e){return e==e&&!t(e)}}function zi(){if(to)return Zn;return to=1,Zn=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}}function Bi(){if(ro)return eo;ro=1;var t=function(){if(qn)return Yn;qn=1;var t=Oi(),e=Fi();return Yn=function(r,n,o,i){var a=o.length,u=a,s=!i;if(null==r)return!u;for(r=Object(r);a--;){var f=o[a];if(s&&f[2]?f[1]!==r[f[0]]:!(f[0]in r))return!1}for(;++a<u;){var c=(f=o[a])[0],l=r[c],h=f[1];if(s&&f[2]){if(void 0===l&&!(c in r))return!1}else{var p=new t;if(i)var d=i(l,h,c,r,n,p);if(!(void 0===d?e(h,l,3,i,p):d))return!1}}return!0}}(),e=function(){if(Qn)return Jn;Qn=1;var t=Di(),e=ui();return Jn=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,t(a)]}return n}}(),r=zi();return eo=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}}}function Hi(){if(oo)return no;oo=1;var t=Pt(),e=Lt();return no=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function Wi(){if(ao)return io;ao=1;var t=Tt(),e=Hi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return io=function(o,i){if(t(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!e(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))}}function $i(){if(co)return fo;co=1;var t=function(){if(so)return uo;so=1;var t=ji();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=o.cache;if(i.has(e))return i.get(e);var a=r.apply(this,t);return o.cache=i.set(e,a)||i,a};return o.cache=new(e.Cache||t),o}return e.Cache=t,uo=e}();return fo=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}function Ni(){if(go)return vo;go=1;var t=function(){if(bo)return po;bo=1;var t=Rt(),e=hi(),r=Tt(),n=Hi(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return po=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},po}();return vo=function(e){return null==e?"":t(e)}}function Ii(){if(mo)return yo;mo=1;var t=Tt(),e=Wi(),r=function(){if(ho)return lo;ho=1;var t=$i(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,function(t,e,o,i){n.push(o?i.replace(r,"$1"):e||t)}),n});return lo=n}(),n=Ni();return yo=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))}}function Vi(){if(_o)return wo;_o=1;var t=Hi();return wo=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Xi(){if(jo)return xo;jo=1;var t=Ii(),e=Vi();return xo=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0}}function Yi(){if(Ro)return Co;Ro=1;var t=ko?So:(ko=1,So=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(Eo)return Ao;Eo=1;var t=Ii(),e=Ft(),r=Tt(),n=Gt(),o=Jt(),i=Vi();return Ao=function(a,u,s){for(var f=-1,c=(u=t(u,a)).length,l=!1;++f<c;){var h=i(u[f]);if(!(l=null!=a&&s(a,h)))break;a=a[h]}return l||++f!=c?l:!!(c=null==a?0:a.length)&&o(c)&&n(h,c)&&(r(a)||e(a))}}();return Co=function(r,n){return null!=r&&e(r,n,t)}}function qi(){if(To)return Po;To=1;var t=Fi(),e=function(){if(Mo)return Oo;Mo=1;var t=Xi();return Oo=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=Yi(),n=Wi(),o=Di(),i=zi(),a=Vi();return Po=function(u,s){return n(u)&&o(s)?i(a(u),s):function(n){var o=e(n,u);return void 0===o&&o===s?r(n,u):t(s,o,3)}}}function Ki(){if(Bo)return zo;Bo=1;var t=Uo?Lo:(Uo=1,Lo=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(Do)return Fo;Do=1;var t=Xi();return Fo=function(e){return function(r){return t(r,e)}}}(),r=Wi(),n=Vi();return zo=function(o){return r(o)?t(n(o)):e(o)}}function Gi(){if(Vo)return Io;Vo=1;var t=si(),e=function(){if(No)return $o;No=1;var t=ai();return $o=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,a=r?i:-1,u=Object(n);(r?a--:++a<i)&&!1!==o(u[a],a,u););return n}}}()(t);return Io=e}function Ji(){if(Ko)return qo;Ko=1;var t=hi(),e=function(){if(Wo)return Ho;Wo=1;var t=Bi(),e=qi(),r=fi(),n=Tt(),o=Ki();return Ho=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?e(i[0],i[1]):t(i):o(i)}}(),r=function(){if(Yo)return Xo;Yo=1;var t=Gi(),e=ai();return Xo=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,function(t,e,r){i[++o]=n(t,e,r)}),i}}(),n=Tt();return qo=function(o,i){return(n(o)?t:r)(o,e(i,3))}}function Qi(){if(Go)return At;Go=1,Object.defineProperty(At,"__esModule",{value:!0}),At.flattenNames=void 0;var t=function(){if(vt)return bt;vt=1;var t=Pt(),e=Tt(),r=Lt();return bt=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),e=a(t),r=a(ci()),n=function(){if(Re)return Ce;Re=1;var t=Pt(),e=li(),r=Lt(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,u=i.call(Object);return Ce=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}(),o=a(n),i=a(Ji());function a(t){return t&&t.__esModule?t:{default:t}}var u=At.flattenNames=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[];return(0,i.default)(n,function(n){Array.isArray(n)?t(n).map(function(t){return a.push(t)}):(0,o.default)(n)?(0,r.default)(n,function(t,e){!0===t&&a.push(e),a.push(e+"-"+t)}):(0,e.default)(n)&&a.push(n)}),a};return At.default=u,At}var Zi,ta,ea,ra,na,oa,ia,aa,ua,sa,fa,ca,la,ha,pa,da,ba,va,ga,ya,ma={};function wa(){if(oa)return na;oa=1;var t=function(){if(ra)return ea;ra=1;var t=yi(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return ea=e}();return na=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function _a(){if(aa)return ia;aa=1;var t=wa(),e=pi(),r=Object.prototype.hasOwnProperty;return ia=function(n,o,i){var a=n[o];r.call(n,o)&&e(a,i)&&(void 0!==i||o in n)||t(n,o,i)}}function xa(){if(sa)return ua;sa=1;var t=_a(),e=wa();return ua=function(r,n,o,i){var a=!o;o||(o={});for(var u=-1,s=n.length;++u<s;){var f=n[u],c=i?i(o[f],r[f],f,o,r):void 0;void 0===c&&(c=r[f]),a?e(o,f,c):t(o,f,c)}return o}}function ja(){if(da)return pa;da=1;var t=oi(),e=ei(),r=ha?la:(ha=1,la=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return pa=function(o){if(!t(o))return r(o);var i=e(o),a=[];for(var u in o)("constructor"!=u||!i&&n.call(o,u))&&a.push(u);return a}}function Oa(){if(va)return ba;va=1;var t=ti(),e=ja(),r=ai();return ba=function(n){return r(n)?t(n,!0):e(n)}}var Ma,Sa,ka,Aa,Ea,Ca,Ra,Pa,Ta,La,Ua,Fa,Da,za,Ba,Ha,Wa,$a,Na,Ia,Va,Xa,Ya,qa,Ka,Ga,Ja,Qa,Za,tu,eu,ru,nu,ou,iu,au,uu,su,fu,cu,lu,hu,pu={exports:{}};function du(){if(Ra)return Ca;Ra=1;var t=Ei(),e=li(),r=Pi(),n=Ri(),o=Object.getOwnPropertySymbols;return Ca=o?function(n){for(var o=[];n;)t(o,r(n)),n=e(n);return o}:n}function bu(){if(Ba)return za;Ba=1;var t=ki();return za=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function vu(){if(Ka)return qa;Ka=1;var t=bu(),e=function(){if(Wa)return Ha;Wa=1;var t=bu();return Ha=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(Na)return $a;Na=1;var t=/\w*$/;return $a=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(Va)return Ia;Va=1;var t=Rt(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return Ia=function(t){return r?Object(r.call(t)):{}}}(),o=function(){if(Ya)return Xa;Ya=1;var t=bu();return Xa=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return qa=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return t(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return e(i,u);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(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return r(i);case"[object Symbol]":return n(i)}}}function gu(){if(Za)return Qa;Za=1;var t=function(){if(Ja)return Ga;Ja=1;var t=oi(),e=Object.create,r=function(){function r(){}return function(n){if(!t(n))return{};if(e)return e(n);r.prototype=n;var o=new r;return r.prototype=void 0,o}}();return Ga=r}(),e=li(),r=ei();return Qa=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}function yu(){if(nu)return ru;nu=1;var t=function(){if(eu)return tu;eu=1;var t=Li(),e=Lt();return tu=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=Qt(),r=Qo(),n=r&&r.isMap,o=n?e(n):t;return ru=o}function mu(){if(uu)return au;uu=1;var t=function(){if(iu)return ou;iu=1;var t=Li(),e=Lt();return ou=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=Qt(),r=Qo(),n=r&&r.isSet,o=n?e(n):t;return au=o}function wu(){if(fu)return su;fu=1;var t=Oi(),e=ta?Zi:(ta=1,Zi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),r=_a(),n=function(){if(ca)return fa;ca=1;var t=xa(),e=ui();return fa=function(r,n){return r&&t(n,e(n),r)}}(),o=function(){if(ya)return ga;ya=1;var t=xa(),e=Oa();return ga=function(r,n){return r&&t(n,e(n),r)}}(),i=(Ma||(Ma=1,function(t,e){var r=Ct(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}(pu,pu.exports)),pu.exports),a=ka?Sa:(ka=1,Sa=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),u=function(){if(Ea)return Aa;Ea=1;var t=xa(),e=Pi();return Aa=function(r,n){return t(r,e(r),n)}}(),s=function(){if(Ta)return Pa;Ta=1;var t=xa(),e=du();return Pa=function(r,n){return t(r,e(r),n)}}(),f=Ti(),c=function(){if(Ua)return La;Ua=1;var t=Ci(),e=du(),r=Oa();return La=function(n){return t(n,r,e)}}(),l=Li(),h=function(){if(Da)return Fa;Da=1;var t=Object.prototype.hasOwnProperty;return Fa=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}}(),p=vu(),d=gu(),b=Tt(),v=Kt(),g=yu(),y=oi(),m=mu(),w=ui(),_=Oa(),x="[object Arguments]",j="[object Function]",O="[object Object]",M={};return M[x]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[O]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[j]=M["[object WeakMap]"]=!1,su=function S(k,A,E,C,R,P){var T,L=1&A,U=2&A,F=4&A;if(E&&(T=R?E(k,C,R,P):E(k)),void 0!==T)return T;if(!y(k))return k;var D=b(k);if(D){if(T=h(k),!L)return a(k,T)}else{var z=l(k),B=z==j||"[object GeneratorFunction]"==z;if(v(k))return i(k,L);if(z==O||z==x||B&&!R){if(T=U||B?{}:d(k),!L)return U?s(k,o(T,k)):u(k,n(T,k))}else{if(!M[z])return R?k:{};T=p(k,z,L)}}P||(P=new t);var H=P.get(k);if(H)return H;P.set(k,T),m(k)?k.forEach(function(t){T.add(S(t,A,E,t,k,P))}):g(k)&&k.forEach(function(t,e){T.set(e,S(t,A,E,e,k,P))});var W=D?void 0:(F?U?c:f:U?_:w)(k);return e(W||k,function(t,e){W&&(t=k[e=t]),r(T,e,S(t,A,E,e,k,P))}),T},su}function _u(){if(hu)return ma;hu=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.mergeClasses=void 0;var t=n(ci()),e=n(function(){if(lu)return cu;lu=1;var t=wu();return cu=function(e){return t(e,5)}}()),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function n(t){return t&&t.__esModule?t:{default:t}}var o=ma.mergeClasses=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=n.default&&(0,e.default)(n.default)||{};return o.map(function(e){var o=n[e];return o&&(0,t.default)(o,function(t,e){i[e]||(i[e]={}),i[e]=r({},i[e],o[e])}),e}),i};return ma.default=o,ma}var xu,ju={};var Ou,Mu={};function Su(){if(Ou)return Mu;Ou=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.hover=void 0;var t,e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=r)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=Mu.hover=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var f=arguments.length,c=Array(f),l=0;l<f;l++)c[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return n.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},n.default.createElement(t,e({},s.props,s.state)))},o(s,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,i),a}(n.default.Component)};return Mu.default=i,Mu}var ku,Au={};function Eu(){if(ku)return Au;ku=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.active=void 0;var t,e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=(t=r)&&t.__esModule?t:{default:t};function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var i=Au.active=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var f=arguments.length,c=Array(f),l=0;l<f;l++)c[l]=arguments[l];return u=s=o(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return n.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},n.default.createElement(t,e({},s.props,s.state)))},o(s,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,i),a}(n.default.Component)};return Au.default=i,Au}var Cu,Ru,Pu={};var Tu=function(){if(Ru)return kt;Ru=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.ReactCSS=kt.loop=kt.handleActive=kt.handleHover=kt.hover=void 0;var t=u(Qi()),e=u(_u()),r=function(){if(xu)return ju;xu=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.autoprefix=void 0;var t,e=ci(),r=(t=e)&&t.__esModule?t:{default:t},n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var e=t&&t.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(t,e){return e[t]||{extend:t}}},i=ju.autoprefix=function(t){var e={};return(0,r.default)(t,function(t,i){var a={};(0,r.default)(t,function(t,e){var r=o[e];r?a=n({},a,r(t)):a[e]=t}),e[i]=a}),e};return ju.default=i,ju}(),n=u(r),o=u(Su()),i=u(Eu()),a=u((Cu||(Cu=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=function(t,e){var r={},n=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r[t]=e};return 0===t&&n("first-child"),t===e-1&&n("last-child"),(0===t||t%2==0)&&n("even"),1===Math.abs(t%2)&&n("odd"),n("nth-child",t),r}),Pu));function u(t){return t&&t.__esModule?t:{default:t}}kt.hover=o.default,kt.handleHover=o.default,kt.handleActive=i.default,kt.loop=a.default;var s=kt.ReactCSS=function(r){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var u=(0,t.default)(i),s=(0,e.default)(r,u);return(0,n.default)(s)};return kt.default=s,kt}();const Lu=l(Tu);var Uu={},Fu=function(t,e,r,n){var o=t+"-"+e+"-"+r+(n?"-server":"");if(Uu[o])return Uu[o];var i=function(t,e,r,n){if("undefined"==typeof document&&!n)return null;var o=n?new n:document.createElement("canvas");o.width=2*r,o.height=2*r;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=e,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null}(t,e,r,n);return Uu[o]=i,i},Du=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zu=function(t){var e=t.white,o=t.grey,i=t.size,a=t.renderers,u=t.borderRadius,s=t.boxShadow,f=t.children,c=Lu({default:{grid:{borderRadius:u,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+Fu(e,o,i,a.canvas)+") center left"}}});return n(f)?r.cloneElement(f,Du({},f.props,{style:Du({},f.props.style,c.grid)})):r.createElement("div",{style:c.grid})};zu.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Bu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Wu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var $u=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=Wu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n,o){var i=o.clientWidth,a=o.clientHeight,u="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,s="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,f=u-(o.getBoundingClientRect().left+window.pageXOffset),c=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var l=void 0;if(l=c<0?0:c>a?1:Math.round(100*c/a)/100,e.a!==l)return{h:e.h,s:e.s,l:e.l,a:l,source:"rgb"}}else{var h=void 0;if(n!==(h=f<0?0:f>i?1:Math.round(100*f/i)/100))return{h:e.h,s:e.s,l:e.l,a:h,source:"rgb"}}return null}(t,n.props.hsl,n.props.direction,n.props.a,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},Wu(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,o||i),Hu(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,e=this.props.rgb,n=Lu({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%,\n 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%,\n rgba("+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:Bu({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return r.createElement("div",{style:n.alpha},r.createElement("div",{style:n.checkboard},r.createElement(zu,{renderers:this.props.renderers})),r.createElement("div",{style:n.gradient}),r.createElement("div",{style:n.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{style:n.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:n.slider}))))}}]),t}(),Nu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var Iu=[38,40],Vu=1,Xu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(t){r.setUpdatedValue(t.target.value,t)},r.handleKeyDown=function(t){var e,n=function(t){return Number(String(t).replace(/%/g,""))}(t.target.value);if(!isNaN(n)&&(e=t.keyCode,Iu.indexOf(e)>-1)){var o=r.getArrowOffset(),i=38===t.keyCode?n+o:n-o;r.setUpdatedValue(i,t)}},r.handleDrag=function(t){if(r.props.dragLabel){var e=Math.round(r.props.value+t.movementX);e>=0&&e<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(e),t)}},r.handleMouseDown=function(t){r.props.dragLabel&&(t.preventDefault(),r.handleDrag(t),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},r.inputId="rc-editable-input-"+Vu++,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,o||i),Nu(t,[{key:"componentDidUpdate",value:function(t,e){this.props.value===this.state.value||t.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(t){return function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},this.props.label,t)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(t,e){var r=this.props.label?this.getValueObjectWithLabel(t):t;this.props.onChange&&this.props.onChange(r,e),this.setState({value:t})}},{key:"render",value:function(){var t=this,e=Lu({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 r.createElement("div",{style:e.wrap},r.createElement("input",{id:this.inputId,style:e.input,ref:function(e){return t.input=e},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?r.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(),Yu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function qu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Ku=function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=qu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n){var o=n.clientWidth,i=n.clientHeight,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),f=u-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===e){var c=void 0;if(c=f<0?359:f>i?0:360*(-100*f/i+100)/100,r.h!==c)return{h:c,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var l=void 0;if(l=s<0?0:s>o?359:100*s/o*360/100,r.h!==l)return{h:l,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(t,n.props.direction,n.props.hsl,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},qu(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,o||i),Yu(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 t=this,e=this.props.direction,n=void 0===e?"horizontal":e,o=Lu({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:"vertical"===n});return r.createElement("div",{style:o.hue},r.createElement("div",{className:"hue-"+n,style:o.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),r.createElement("div",{style:o.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:o.slider}))))}}]),t}(),Gu="object"==typeof global&&global&&global.Object===Object&&global,Ju="object"==typeof self&&self&&self.Object===Object&&self,Qu=Gu||Ju||Function("return this")(),Zu=Qu.Symbol,ts=Object.prototype,es=ts.hasOwnProperty,rs=ts.toString,ns=Zu?Zu.toStringTag:void 0;var os=Object.prototype.toString;var is=Zu?Zu.toStringTag:void 0;function as(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":is&&is in Object(t)?function(t){var e=es.call(t,ns),r=t[ns];try{t[ns]=void 0;var n=!0}catch(t){}var o=rs.call(t);return n&&(e?t[ns]=r:delete t[ns]),o}(t):function(t){return os.call(t)}(t)}function us(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}g.string,g.oneOf([0,1,2,3,4,5]),g.number,g.object;var ss=function(){return Qu.Date.now()},fs=/\s/;var cs=/^\s+/;function ls(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&fs.test(t.charAt(e)););return e}(t)+1).replace(cs,""):t}var hs=/^[-+]0x[0-9a-f]+$/i,ps=/^0b[01]+$/i,ds=/^0o[0-7]+$/i,bs=parseInt;function vs(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==as(t)}(t))return NaN;if(us(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=us(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ls(t);var r=ps.test(t);return r||ds.test(t)?bs(t.slice(2),r?2:8):hs.test(t)?NaN:+t}var gs=Math.max,ys=Math.min;function ms(t,e,r){var n,o,i,a,u,s,f=0,c=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,f=e,a=t.apply(i,r)}function d(t){var r=t-s;return void 0===s||r>=e||r<0||l&&t-f>=i}function b(){var t=ss();if(d(t))return v(t);u=setTimeout(b,function(t){var r=e-(t-s);return l?ys(r,i-(t-f)):r}(t))}function v(t){return u=void 0,h&&n?p(t):(n=o=void 0,a)}function g(){var t=ss(),r=d(t);if(n=arguments,o=this,s=t,r){if(void 0===u)return function(t){return f=t,u=setTimeout(b,e),c?p(t):a}(s);if(l)return clearTimeout(u),u=setTimeout(b,e),p(s)}return void 0===u&&(u=setTimeout(b,e)),a}return e=vs(e)||0,us(r)&&(c=!!r.leading,i=(l="maxWait"in r)?gs(vs(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),f=0,n=s=o=u=void 0},g.flush=function(){return void 0===u?a:v(ss())},g}var ws=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();!function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleChange=function(t){"function"==typeof r.props.onChange&&r.throttle(r.props.onChange,function(t,e,r){var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),f=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),f<0?f=0:f>i&&(f=i);var c=s/o,l=1-f/i;return{h:e.h,s:c,v:l,a:e.a,source:"hsv"}}(t,r.props.hsl,r.container),t)},r.handleMouseDown=function(t){r.handleChange(t);var e=r.getContainerRenderWindow();e.addEventListener("mousemove",r.handleChange),e.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return us(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),ms(t,e,{leading:n,maxWait:e,trailing:o})}(function(t,e,r){t(e,r)},50),r}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(t,o||i),ws(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var t=this.container,e=window;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,e=this.props.style||{},n=e.color,o=e.white,i=e.black,a=e.pointer,u=e.circle,s=Lu({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),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:i,pointer:a,circle:u}},{custom:!!this.props.style});return r.createElement("div",{style:s.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),r.createElement("div",{style:s.white,className:"saturation-white"},r.createElement("div",{style:s.black,className:"saturation-black"}),r.createElement("div",{style:s.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:s.circle}))))}}])}();var _s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xs=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function js(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Os=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";(function(){function n(){var t,e,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=js(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(i))),r.state={focus:!1},r.handleFocus=function(){return r.setState({focus:!0})},r.handleBlur=function(){return r.setState({focus:!1})},js(r,e)}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(n,r.Component),xs(n,[{key:"render",value:function(){return r.createElement(e,{onFocus:this.handleFocus,onBlur:this.handleBlur},r.createElement(t,_s({},this.props,this.state)))}}])})()}(function(t){var e=t.color,n=t.style,o=t.onClick,i=void 0===o?function(){}:o,a=t.onHover,u=t.title,s=void 0===u?e:u,f=t.children,c=t.focus,l=t.focusStyle,h="transparent"===e,p=Lu({default:{swatch:Os({background:e,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?void 0===l?{}:l:{})}}),d={};return a&&(d.onMouseOver=function(t){return a(e,t)}),r.createElement("div",Os({style:p.swatch,onClick:function(t){return i(e,t)},title:s,tabIndex:0,onKeyDown:function(t){return 13===t.keyCode&&i(e,t)}},d),f,h&&r.createElement(zu,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Ms=function(t){var e=t.onChange,n=t.rgb,o=t.hsl,i=t.hex,a=t.disableAlpha,u=Lu({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:a}),s=function(t,r){t.hex?function(t){if("transparent"===t)return!0;var e="#"===String(t).charAt(0)?1:0;return t.length!==4+e&&t.length<7+e&&_(t).isValid()}(t.hex)&&e({hex:t.hex,source:"hex"},r):t.r||t.g||t.b?e({r:t.r||n.r,g:t.g||n.g,b:t.b||n.b,a:n.a,source:"rgb"},r):t.a&&(t.a<0?t.a=0:t.a>100&&(t.a=100),t.a/=100,e({h:o.h,s:o.s,l:o.l,a:t.a,source:"rgb"},r))};return r.createElement("div",{style:u.fields,className:"flexbox-fix"},r.createElement("div",{style:u.double},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"hex",value:i.replace("#",""),onChange:s})),r.createElement("div",{style:u.single},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:u.single},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:u.single},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:u.alpha},r.createElement(Xu,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class Ss extends(o||i){constructor(t){super(t),this.handleChange=t=>{"function"==typeof this.props.onChange&&this.throttle(this.props.onChange,((t,e,r)=>{var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),f=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),f<0?f=0:f>i&&(f=i);var c=s/o,l=1-f/i;return{h:e.h,s:c,v:l,a:e.a,source:"hsv"}})(t,this.props.hsl,this.container),t),t.preventDefault()},this.handleMouseDown=t=>{this.handleChange(t);const e=this.getContainerRenderWindow();e.addEventListener("mousemove",this.handleChange),e.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=t=>{t.preventDefault(),this.unbindEventListeners()},this.throttle=function(t,e,r){let n,o,i,a;var u=0;r||(r={});let s=function(){u=!1===r.leading?0:Date.now(),n=null,a=t.apply(o,i),n||(o=i=null)},f=function(){var f=Date.now();u||!1!==r.leading||(u=f);var c=e-(f-u);return o=this,i=arguments,c<=0||c>e?(n&&(clearTimeout(n),n=null),u=f,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,c)),a};return f.cancel=function(){clearTimeout(n),u=0,n=o=i=null},f}((t,e,r)=>{t(e,r)},50)}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:t}=this;let e=window;for(;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:r,white:n,black:o,pointer:i,circle:a}=this.props||{},u={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},s={color:{...u,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...u,borderRadius:this.props.style?.borderRadius},black:{...u,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...u,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),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return t("div",{style:s.color,ref:t=>this.container=t,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[e("style",{children:"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "}),t("div",{style:s.white,className:"saturation-white",children:[e("div",{style:s.black,className:"saturation-black"}),e("div",{style:s.pointer,children:this.props.pointer?e(this.props.pointer,{...this.props}):e("div",{style:s.circle})})]})]})}}const ks=(t,e=null)=>{const r=t.hex?_(t.hex):_(t||"transparent"),n=r.toHsl(),o=r.toHsv(),i=r.toRgb(),a=r.toHex();return 0===n.s&&(n.h=e??0,o.h=e??0),{hsl:n,hex:"#"+a,rgb:i,hsv:o,source:t.source}},As=a(r=>{const{selectedColor:n,onColorChange:o,renderers:i,disableAlpha:a=!1,style:l=d.EmptyCssProperties,...h}=r,p=b(),[g,y]=u(()=>ks(n)),[m,w]=u(g.hsl.h??0),_=s(t=>{let e=ks(t,m);return w(e.hsl.h??0),y(e),e},[m]),x=s(t=>{const e=_(t),r=`rgba(${e.rgb.r},${e.rgb.g},${e.rgb.b},${a?1:e.rgb.a})`;o?.(r)},[o,_,a]);f(()=>{_(n)},[n,_]);const j=e("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:e($u,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:g.rgb,hsl:g.hsl,renderers:i,onChange:x})});return t("div",{style:{display:"flex",flexDirection:"column",...l},...h,children:[e("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:e(Ss,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:g.hsl,hsv:g.hsv,onChange:x})}),t("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[t("div",{style:{flex:"1",display:"flex",flexDirection:a?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[e("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:e(Ku,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:g.hsl,onChange:x})}),a?null:j]}),t("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[e(v,{grey:p.palette.text.icon??p.palette.action.active}),e("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${g.rgb.r},${g.rgb.g},${g.rgb.b},${a?1:g.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),e(c,{sx:{marginBottom:"4px","& label":{fontFamily:t=>`${t.typography.fontFamily} !important`,color:t=>`${t.palette.text.secondary} !important`},"& *":{fontFamily:t=>`${t.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:t=>`${t.spacing(.5)} !important`,paddingRight:t=>`${t.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:e(Ms,{rgb:g.rgb,hsl:g.hsl,hex:g.hex,disableAlpha:a,onChange:x})})]})});export{As as CustomColorPanel,As as default,ks as toState};
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import{jsx as e,jsxs as n}from"react/jsx-runtime";import{memo as t,useRef as i,useState as o,useEffect as l,useLayoutEffect as r,useMemo as s}from"react";import{DialogContent as a,Box as c,TextField as p,InputAdornment as d,Collapse as u,MenuItem as f,FormControl as m,InputLabel as g,Select as x}from"@mui/material";import{ArrowBack as h,ArrowUpward as O,ArrowForward as C,ArrowDownward as y}from"@mui/icons-material";import{ICell as b,IRange as T}from"@sheetxl/sdk";import{B as v,L as k,b as R,O as E,U as S,f as F,X as I,S as w,q as D,h as K,K as P,i as $,a as A,Q as M,J as B,n as L}from"./Cc7y1nMDr5J8jWx-.mjs";import{alpha as V}from"@mui/system";const j=t(t=>{const{label:i,value:r,options:a,onSelect:c,tabIndex:p=0,...d}=t,[u,h]=o(()=>X(r,a));l(()=>{h(X(r,a))},[r,a]);const O=v(e=>{h(e.target.value),c?.(a[e.target.value])},[c,a]),C=s(()=>Object.keys(a).map(n=>e(f,{value:n,children:n},n)),[a]);return n(m,{sx:{minWidth:135},size:"small",children:[e(g,{children:i}),e(x,{inputProps:{tabIndex:p},value:u,label:i,onChange:O,sx:{backgroundImage:`linear-gradient(${V("#fff",A(5))}, ${V("#fff",A(5))})`},...d,children:C})]})}),N={Workbook:"workbook",Sheet:"sheet"},W={enter:140,exit:140},H={Formulas:b.Content.Formulas,Values:b.Content.Values,Notes:b.Content.Notes,Comments:b.Content.Comments},z={...H};delete z.Values;const U={"By Rows":!0,"By Columns":!1},X=(e,n)=>{const t=Object.keys(n);for(let i=0;i<t.length;i++){const o=t[i];if(n[o]===e)return o}},q=t(t=>{const{replace:s=!1,findText:f,replaceText:m,findOptions:g,replaceOptions:x,title:X,onHide:q,onFindOrReplace:G,...J}=t,Q=i(null),Y=i(null),Z=i(null),_=i(null),ee=i(null),ne=i(null),te=(e,n)=>{if(!n)return;n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180)},[ie,oe]=o(!1),[le,re]=o(!1),[se,ae]=o(s),[ce,pe]=o(!1),[de,ue]=o(!1),[fe,me]=o({findText:null,replaceText:null,replace:s,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:T.Orientation.Row,fields:[b.Content.Formulas]},scope:N.Sheet}),ge=v(async(e,n,t,i)=>{if(!G)return;const o={...fe};o.replaceOptions={...o.replaceOptions},o.findOptions={...o.findOptions},o.replaceOptions.maxCount=t?void 0:1,o.replace=n,n&&fe.findOptions.fields?.[0]===b.Content.Values&&(o.findOptions.fields=[b.Content.Formulas]),o.findOptions.reverse=!e;const l=await G({autoFocus:i,...o});pe(0===l)},[fe,G]);l(()=>{pe(!1)},[fe,le,se]);const xe=v((e,n)=>{if(e.keyCode===k.Enter){if(!fe.findText)return;let t=!0,i=!1;e.shiftKey&&(t=!1),n?(e.ctrlKey&&e.altKey&&(i=!0),te(e,i?ne.current:ee.current)):te(e,t?_.current:Z.current),ge(t,n,i,!1)}},[fe]),he=i(null);r(()=>{me(e=>{const n={...e};n.findText=f&&f.length>0?f:e.findText??"",oe(!0),void 0!==m&&(n.replaceText=m),g&&(n.findOptions={...n.findOptions,...g}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),x&&(n.replaceOptions={...n.replaceOptions,...x}),fe.findOptions.fields?.[0]||(fe.findOptions.fields=[b.Content.Formulas]);const t=!(!x&&void 0===m);return t&&ae(t),n}),de||he.current?.focus()},[f,m,g,x]),l(()=>{se?(fe.findOptions.fields[0],b.Content.Values):oe(!0)},[se]),l(()=>{if(ie&&Q.current&&fe.findText===Q.current.value)return Q.current===document.activeElement||Q.current.contains(document.activeElement)?(Q.current?.select(),void oe(!1)):void Q.current.addEventListener("focus",()=>{Q.current?.select(),oe(!1)},{once:!0})},[ie,fe]);const[Oe,{width:Ce}]=R();return e(E,{ref:he,title:X??(se?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:q,onFocus:()=>ue(!0),onBlur:()=>{ue(!1),pe(!1)},PaperProps:{elevation:de?3:1},...J,children:n(a,{dividers:!0,ref:Oe,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)ae(!0),Q.current?.contains(document.activeElement)&&Y.current?.focus();else if("f"===e.key&&e.ctrlKey)Q.current?.focus();else if("c"===e.key&&e.altKey)me(e=>{const n={...e};return n.findOptions.matchCase=!e.findOptions.matchCase,n});else if("e"===e.key&&e.altKey)me(e=>{const n={...e};return n.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,n});else{if("r"!==e.key||!e.altKey)return;me(e=>{const n={...e};return n.findOptions.useRegex=!e.findOptions.useRegex,n})}e.preventDefault()},children:[n(c,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[n(c,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e(S,{selected:le,onSelectToggle:e=>{re(e)},preventFocus:!0,label:"Toggle Additional Options",icon:F(e(I,{}))}),e(S,{selected:se,onSelectToggle:e=>{ae(e)},preventFocus:!0,label:"Toggle Replace",icon:F(e(D,{})),shortcut:{key:se?"F":"H",modifiers:[w.Ctrl]}})]}),n(c,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[n(c,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e(p,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:Ce>460?"20em":void 0,backgroundImage:`linear-gradient(${V("#fff",A(5))}, ${V("#fff",A(5))})`},inputProps:{draggable:!1,ref:Q,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:e(d,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:n(c,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e(S,{selected:fe.findOptions.matchCase,onSelectToggle:e=>{me(n=>{const t={...n};return t.findOptions.matchCase=e,t})},label:"Match Case",shortcut:{key:"C",modifiers:[w.Alt]},icon:F(e(K,{}))}),e(S,{selected:fe.findOptions.matchEntireCell,onSelectToggle:e=>{me(n=>{const t={...n};return t.findOptions.matchEntireCell=e,t})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[w.Alt]},icon:F(e(P,{}))}),e(S,{selected:fe.findOptions.useRegex,onSelectToggle:e=>{me(n=>{const t={...n};return t.findOptions.useRegex=e,t})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[w.Alt]},icon:F(e($,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>ce?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>ce?`${e.palette.error.main} !important`:void 0}},value:fe.findText??"",onChange:e=>{me(n=>{const t={...n};return t.findText=e.target.value,t})},onKeyDown:e=>xe(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e(S,{selected:fe.findOptions.reverse,onSelectToggle:e=>{ge(!1,!1)},touchRippleRef:Z,label:"",shortcut:{key:"Enter",modifiers:[w.Shift]},icon:F(fe.findOptions.orientation!==T.Orientation.Column?e(h,{}):e(O,{})),disabled:!fe.findText}),e(S,{selected:!fe.findOptions.reverse,onSelectToggle:e=>{ge(!0,!1)},touchRippleRef:_,label:"Next Match",shortcut:{key:"Enter"},icon:F(fe.findOptions.orientation!==T.Orientation.Column?e(C,{}):e(y,{})),disabled:!fe.findText})]}),e(u,{in:se,timeout:W,onExit:()=>{Q.current?.focus()},children:n(c,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e(p,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${V("#fff",A(5))}, ${V("#fff",A(5))})`},inputProps:{ref:Y,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:fe.replaceText??"",onChange:e=>{me(n=>{const t={...n};return t.replaceText=e.target.value,t})},onKeyDown:e=>xe(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e(S,{onSelectToggle:e=>{ge(!0,!0)},touchRippleRef:ee,label:"Replace",shortcut:{key:"Enter"},icon:F(e(M,{})),disabled:!fe.findText}),e(S,{onSelectToggle:e=>{ge(!0,!0,!0)},touchRippleRef:ne,label:"Replace All",shortcut:{key:"Enter",modifiers:[w.Ctrl,w.Alt]},icon:F(e(B,{})),disabled:!fe.findText})]})})]})]}),e(u,{in:le,timeout:W,onExit:()=>{Q.current?.focus()},children:n(c,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e(L,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),n(c,{sx:{display:"flex",flexDirection:Ce>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e(j,{label:"Within",value:fe.scope,options:N,onSelect:e=>{me(n=>{const t={...n};return t.scope=e,t})}}),e(j,{label:"Search",value:fe.findOptions.orientation!==T.Orientation.Column,options:U,onSelect:e=>{me(n=>{const t={...n};return t.findOptions.orientation=e?T.Orientation.Row:T.Orientation.Column,t})}}),e(j,{label:"Look in",value:se&&fe.findOptions.fields?.[0]===b.Content.Values?b.Content.Formulas:fe.findOptions.fields?.[0],options:se?z:H,onSelect:e=>{me(n=>{const t={...n};return t.findOptions.fields=[e],t})}})]})]})})]})})});export{q as FindReplaceWindow,N as ScopeOptions,q as default};
7
+ import{jsx as e,jsxs as n}from"react/jsx-runtime";import{memo as t,useRef as i,useState as o,useEffect as l,useLayoutEffect as r,useMemo as s}from"react";import{DialogContent as a,Box as c,TextField as p,InputAdornment as d,Collapse as u,MenuItem as f,FormControl as m,InputLabel as g,Select as x}from"@mui/material";import{ArrowBack as h,ArrowUpward as O,ArrowForward as C,ArrowDownward as y}from"@mui/icons-material";import{ICell as b,IRange as T}from"@sheetxl/sdk";import{B as v,L as k,b as R,O as E,U as S,f as F,X as I,S as w,q as D,h as K,K as P,i as $,a as A,Q as M,J as B,n as L}from"./BPMMuKIe5xb3-D8V.mjs";import{alpha as V}from"@mui/system";const j=t(t=>{const{label:i,value:r,options:a,onSelect:c,tabIndex:p=0,...d}=t,[u,h]=o(()=>X(r,a));l(()=>{h(X(r,a))},[r,a]);const O=v(e=>{h(e.target.value),c?.(a[e.target.value])},[c,a]),C=s(()=>Object.keys(a).map(n=>e(f,{value:n,children:n},n)),[a]);return n(m,{sx:{minWidth:135},size:"small",children:[e(g,{children:i}),e(x,{inputProps:{tabIndex:p},value:u,label:i,onChange:O,sx:{backgroundImage:`linear-gradient(${V("#fff",A(5))}, ${V("#fff",A(5))})`},...d,children:C})]})}),N={Workbook:"workbook",Sheet:"sheet"},W={enter:140,exit:140},H={Formulas:b.Content.Formulas,Values:b.Content.Values,Notes:b.Content.Notes,Comments:b.Content.Comments},z={...H};delete z.Values;const U={"By Rows":!0,"By Columns":!1},X=(e,n)=>{const t=Object.keys(n);for(let i=0;i<t.length;i++){const o=t[i];if(n[o]===e)return o}},q=t(t=>{const{replace:s=!1,findText:f,replaceText:m,findOptions:g,replaceOptions:x,title:X,onHide:q,onFindOrReplace:G,...J}=t,Q=i(null),Y=i(null),Z=i(null),_=i(null),ee=i(null),ne=i(null),te=(e,n)=>{if(!n)return;n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180)},[ie,oe]=o(!1),[le,re]=o(!1),[se,ae]=o(s),[ce,pe]=o(!1),[de,ue]=o(!1),[fe,me]=o({findText:null,replaceText:null,replace:s,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:T.Orientation.Row,fields:[b.Content.Formulas]},scope:N.Sheet}),ge=v(async(e,n,t,i)=>{if(!G)return;const o={...fe};o.replaceOptions={...o.replaceOptions},o.findOptions={...o.findOptions},o.replaceOptions.maxCount=t?void 0:1,o.replace=n,n&&fe.findOptions.fields?.[0]===b.Content.Values&&(o.findOptions.fields=[b.Content.Formulas]),o.findOptions.reverse=!e;const l=await G({autoFocus:i,...o});pe(0===l)},[fe,G]);l(()=>{pe(!1)},[fe,le,se]);const xe=v((e,n)=>{if(e.keyCode===k.Enter){if(!fe.findText)return;let t=!0,i=!1;e.shiftKey&&(t=!1),n?(e.ctrlKey&&e.altKey&&(i=!0),te(e,i?ne.current:ee.current)):te(e,t?_.current:Z.current),ge(t,n,i,!1)}},[fe]),he=i(null);r(()=>{me(e=>{const n={...e};n.findText=f&&f.length>0?f:e.findText??"",oe(!0),void 0!==m&&(n.replaceText=m),g&&(n.findOptions={...n.findOptions,...g}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),x&&(n.replaceOptions={...n.replaceOptions,...x}),fe.findOptions.fields?.[0]||(fe.findOptions.fields=[b.Content.Formulas]);const t=!(!x&&void 0===m);return t&&ae(t),n}),de||he.current?.focus()},[f,m,g,x]),l(()=>{se?(fe.findOptions.fields[0],b.Content.Values):oe(!0)},[se]),l(()=>{if(ie&&Q.current&&fe.findText===Q.current.value)return Q.current===document.activeElement||Q.current.contains(document.activeElement)?(Q.current?.select(),void oe(!1)):void Q.current.addEventListener("focus",()=>{Q.current?.select(),oe(!1)},{once:!0})},[ie,fe]);const[Oe,{width:Ce}]=R();return e(E,{ref:he,title:X??(se?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:q,onFocus:()=>ue(!0),onBlur:()=>{ue(!1),pe(!1)},PaperProps:{elevation:de?3:1},...J,children:n(a,{dividers:!0,ref:Oe,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)ae(!0),Q.current?.contains(document.activeElement)&&Y.current?.focus();else if("f"===e.key&&e.ctrlKey)Q.current?.focus();else if("c"===e.key&&e.altKey)me(e=>{const n={...e};return n.findOptions.matchCase=!e.findOptions.matchCase,n});else if("e"===e.key&&e.altKey)me(e=>{const n={...e};return n.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,n});else{if("r"!==e.key||!e.altKey)return;me(e=>{const n={...e};return n.findOptions.useRegex=!e.findOptions.useRegex,n})}e.preventDefault()},children:[n(c,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[n(c,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e(S,{selected:le,onSelectToggle:e=>{re(e)},preventFocus:!0,label:"Toggle Additional Options",icon:F(e(I,{}))}),e(S,{selected:se,onSelectToggle:e=>{ae(e)},preventFocus:!0,label:"Toggle Replace",icon:F(e(D,{})),shortcut:{key:se?"F":"H",modifiers:[w.Ctrl]}})]}),n(c,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[n(c,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e(p,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:Ce>460?"20em":void 0,backgroundImage:`linear-gradient(${V("#fff",A(5))}, ${V("#fff",A(5))})`},inputProps:{draggable:!1,ref:Q,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:e(d,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:n(c,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e(S,{selected:fe.findOptions.matchCase,onSelectToggle:e=>{me(n=>{const t={...n};return t.findOptions.matchCase=e,t})},label:"Match Case",shortcut:{key:"C",modifiers:[w.Alt]},icon:F(e(K,{}))}),e(S,{selected:fe.findOptions.matchEntireCell,onSelectToggle:e=>{me(n=>{const t={...n};return t.findOptions.matchEntireCell=e,t})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[w.Alt]},icon:F(e(P,{}))}),e(S,{selected:fe.findOptions.useRegex,onSelectToggle:e=>{me(n=>{const t={...n};return t.findOptions.useRegex=e,t})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[w.Alt]},icon:F(e($,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>ce?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>ce?`${e.palette.error.main} !important`:void 0}},value:fe.findText??"",onChange:e=>{me(n=>{const t={...n};return t.findText=e.target.value,t})},onKeyDown:e=>xe(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e(S,{selected:fe.findOptions.reverse,onSelectToggle:e=>{ge(!1,!1)},touchRippleRef:Z,label:"",shortcut:{key:"Enter",modifiers:[w.Shift]},icon:F(fe.findOptions.orientation!==T.Orientation.Column?e(h,{}):e(O,{})),disabled:!fe.findText}),e(S,{selected:!fe.findOptions.reverse,onSelectToggle:e=>{ge(!0,!1)},touchRippleRef:_,label:"Next Match",shortcut:{key:"Enter"},icon:F(fe.findOptions.orientation!==T.Orientation.Column?e(C,{}):e(y,{})),disabled:!fe.findText})]}),e(u,{in:se,timeout:W,onExit:()=>{Q.current?.focus()},children:n(c,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e(p,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${V("#fff",A(5))}, ${V("#fff",A(5))})`},inputProps:{ref:Y,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:fe.replaceText??"",onChange:e=>{me(n=>{const t={...n};return t.replaceText=e.target.value,t})},onKeyDown:e=>xe(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e(S,{onSelectToggle:e=>{ge(!0,!0)},touchRippleRef:ee,label:"Replace",shortcut:{key:"Enter"},icon:F(e(M,{})),disabled:!fe.findText}),e(S,{onSelectToggle:e=>{ge(!0,!0,!0)},touchRippleRef:ne,label:"Replace All",shortcut:{key:"Enter",modifiers:[w.Ctrl,w.Alt]},icon:F(e(B,{})),disabled:!fe.findText})]})})]})]}),e(u,{in:le,timeout:W,onExit:()=>{Q.current?.focus()},children:n(c,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e(L,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),n(c,{sx:{display:"flex",flexDirection:Ce>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e(j,{label:"Within",value:fe.scope,options:N,onSelect:e=>{me(n=>{const t={...n};return t.scope=e,t})}}),e(j,{label:"Search",value:fe.findOptions.orientation!==T.Orientation.Column,options:U,onSelect:e=>{me(n=>{const t={...n};return t.findOptions.orientation=e?T.Orientation.Row:T.Orientation.Column,t})}}),e(j,{label:"Look in",value:se&&fe.findOptions.fields?.[0]===b.Content.Values?b.Content.Formulas:fe.findOptions.fields?.[0],options:se?z:H,onSelect:e=>{me(n=>{const t={...n};return t.findOptions.fields=[e],t})}})]})]})})]})})});export{q as FindReplaceWindow,N as ScopeOptions,q as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useState as t}from"react";import{Box as o,FormControlLabel as i,Checkbox as l}from"@mui/material";import{Sort as r,IRange as a}from"@sheetxl/sdk";import{B as s,p as c}from"./Cc7y1nMDr5J8jWx-.mjs";const d=({range:d,options:m,cell:p,onDone:h,...u})=>{const[v,C]=t(m??r.DefaultRangeOptions),O=s(e=>{let n=null;"Sort"===e&&(n={...m,options:v}),h?.(n)},[v,h,m]);return e(c,{title:"Sort",options:["Sort","Cancel"],onDone:O,...u,children:n(o,{sx:{display:"flex",flexDirection:"column"},children:[e(i,{control:e(l,{checked:!v.reverse,onChange:()=>C(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.hasHeader,onChange:()=>C(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.collatorOptions?.sensitivity===r.CaseSensitiveOptions.sensitivity,onChange:()=>C(e=>({...e,collatorOptions:v.collatorOptions?.sensitivity===r.CaseSensitiveOptions.sensitivity?r.CaseInsensitiveOptions:r.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.orientation===a.Orientation.Row,onChange:()=>C(e=>{const n=e.orientation===a.Orientation.Row?a.Orientation.Column:a.Orientation.Row;return{...d.getDefaultSortCriteria(n,p).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:n}})}),label:"Row Sort",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.includeHidden,onChange:()=>C(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};export{d as SortDialog,d as default};
7
+ import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useState as t}from"react";import{Box as o,FormControlLabel as i,Checkbox as l}from"@mui/material";import{Sort as r,IRange as a}from"@sheetxl/sdk";import{B as s,p as c}from"./BPMMuKIe5xb3-D8V.mjs";const d=({range:d,options:m,cell:p,onDone:h,...u})=>{const[v,C]=t(m??r.DefaultRangeOptions),O=s(e=>{let n=null;"Sort"===e&&(n={...m,options:v}),h?.(n)},[v,h,m]);return e(c,{title:"Sort",options:["Sort","Cancel"],onDone:O,...u,children:n(o,{sx:{display:"flex",flexDirection:"column"},children:[e(i,{control:e(l,{checked:!v.reverse,onChange:()=>C(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.hasHeader,onChange:()=>C(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.collatorOptions?.sensitivity===r.CaseSensitiveOptions.sensitivity,onChange:()=>C(e=>({...e,collatorOptions:v.collatorOptions?.sensitivity===r.CaseSensitiveOptions.sensitivity?r.CaseInsensitiveOptions:r.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.orientation===a.Orientation.Row,onChange:()=>C(e=>{const n=e.orientation===a.Orientation.Row?a.Orientation.Column:a.Orientation.Row;return{...d.getDefaultSortCriteria(n,p).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:n}})}),label:"Row Sort",labelPlacement:"end"}),e(i,{control:e(l,{checked:v.includeHidden,onChange:()=>C(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};export{d as SortDialog,d as default};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import{jsx as e,jsxs as n}from"react/jsx-runtime";import{memo as t,useState as a,useCallback as o}from"react";import{Box as i,FormControlLabel as s,Checkbox as l}from"@mui/material";import{B as r,p,R as c}from"./Cc7y1nMDr5J8jWx-.mjs";const d=["Ok","Cancel"],m=t(t=>{const{tableOptions:m,context:g,onOption:u,onValidateOption:f,onDone:h,options:O=d,defaultOption:x=O?.[0],cancelOption:b="Cancel",sx:C,...D}=t,[N,T]=a(!1),[j,k]=a(()=>m?.hasHeader??!1),[v,w]=a(()=>m?.ranges??null),y=r(e=>{const n={...m,hasHeader:j,ranges:v};u?.(e,e===b,e===x),h?.({option:e,tableOptions:n})},[h,u,x,b,j,v,m]),F=o(async(e,n)=>null,[]);return e(p,{title:"Insert Table",options:O,onDone:y,onValidateOption:F,defaultOption:x,cancelOption:b,autoFocusSel:".range-input input",sx:{width:"360px",...C},...D,children:n(i,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e(c,{formName:"range",value:v,onChangeInput:e=>w(e),resolvedAddress:g.getNames().getRanges.bind(g.getNames()),onFocus:e=>{N||e.target?.select(),T(!0)}}),e(s,{control:e(l,{checked:j,onChange:()=>k(!j)}),label:"Table has headers",labelPlacement:"end"})]})})});export{m as TableNewDialog,m as default};
7
+ import{jsx as e,jsxs as n}from"react/jsx-runtime";import{memo as t,useState as a,useCallback as o}from"react";import{Box as i,FormControlLabel as s,Checkbox as l}from"@mui/material";import{B as r,p,R as c}from"./BPMMuKIe5xb3-D8V.mjs";const d=["Ok","Cancel"],m=t(t=>{const{tableOptions:m,context:g,onOption:u,onValidateOption:f,onDone:h,options:O=d,defaultOption:x=O?.[0],cancelOption:b="Cancel",sx:C,...D}=t,[N,T]=a(!1),[j,k]=a(()=>m?.hasHeader??!1),[v,w]=a(()=>m?.ranges??null),y=r(e=>{const n={...m,hasHeader:j,ranges:v};u?.(e,e===b,e===x),h?.({option:e,tableOptions:n})},[h,u,x,b,j,v,m]),F=o(async(e,n)=>null,[]);return e(p,{title:"Insert Table",options:O,onDone:y,onValidateOption:F,defaultOption:x,cancelOption:b,autoFocusSel:".range-input input",sx:{width:"360px",...C},...D,children:n(i,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e(c,{formName:"range",value:v,onChangeInput:e=>w(e),resolvedAddress:g.getNames().getRanges.bind(g.getNames()),onFocus:e=>{N||e.target?.select(),T(!0)}}),e(s,{control:e(l,{checked:j,onChange:()=>k(!j)}),label:"Table has headers",labelPlacement:"end"})]})})});export{m as TableNewDialog,m as default};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.12
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import{jsx as t}from"react/jsx-runtime";import{memo as n,useMemo as o,useState as e,useCallback as a}from"react";import{Box as i,FormControl as s,TextField as r}from"@mui/material";import{B as l,p,a as c}from"./Cc7y1nMDr5J8jWx-.mjs";import{alpha as m}from"@mui/system";const u=["Ok","Cancel"],d=n(n=>{const{initialComments:d=null,onUpdateComments:g,context:f,onOption:x,onValidateOption:h,onDone:C,options:O=u,defaultOption:y=O?.[0],cancelOption:w="Cancel",sx:F,...P}=n,T=o(()=>{const t=d??f?.()?.getComments();let n="";if(t&&t.content&&t.content.runs){const o=t.content.runs;for(let t=0;t<o.length;t++){const e=o[t];n+=e?.text}}return n},[]),[k,v]=e(T),[I,b]=e(!1),D=a(async(t,n)=>null,[]),j=l(async t=>{const n=""===k?[]:k.split("\n");if(t!==w){const t=[];for(let o=0;o<n.length;o++)t.push({text:n[o]});const o={content:{runs:t}};g?.(o)}x?.(t,t===w,t===y),C?.()},[k,g,C,x,y,w]),B=l(t=>{v(t.target.value),D(t.target.value,null)},[h]),E=l(async t=>{let n=await Promise.resolve(h?.(t));try{!1!==n&&(n=await D(k,t))}catch(t){}return n??!0},[h,k]);return t(p,{title:(T?"Edit":"Insert")+" Comments",options:O,onDone:C,onOption:t=>j(t),onValidateOption:E,defaultOption:y,cancelOption:w,autoFocusSel:".autoFocus",sx:{width:"480px",...F},...P,children:t(i,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:t(s,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t(r,{label:"Comments",placeholder:"Enter a comment.",onFocus:t=>{I||t.target?.select(),b(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${m("#fff",c(5))}, ${m("#fff",c(5))})`}}},value:k,onChange:B,onContextMenu:t=>{t.stopPropagation()}})})})})});export{d as CommentsDialog,d as default};
7
+ import{jsx as t}from"react/jsx-runtime";import{memo as n,useMemo as o,useState as e,useCallback as a}from"react";import{Box as i,FormControl as s,TextField as r}from"@mui/material";import{B as l,p,a as c}from"./BPMMuKIe5xb3-D8V.mjs";import{alpha as m}from"@mui/system";const u=["Ok","Cancel"],d=n(n=>{const{initialComments:d=null,onUpdateComments:g,context:f,onOption:x,onValidateOption:h,onDone:C,options:O=u,defaultOption:y=O?.[0],cancelOption:w="Cancel",sx:F,...P}=n,T=o(()=>{const t=d??f?.()?.getComments();let n="";if(t&&t.content&&t.content.runs){const o=t.content.runs;for(let t=0;t<o.length;t++){const e=o[t];n+=e?.text}}return n},[]),[k,v]=e(T),[I,b]=e(!1),D=a(async(t,n)=>null,[]),j=l(async t=>{const n=""===k?[]:k.split("\n");if(t!==w){const t=[];for(let o=0;o<n.length;o++)t.push({text:n[o]});const o={content:{runs:t}};g?.(o)}x?.(t,t===w,t===y),C?.()},[k,g,C,x,y,w]),B=l(t=>{v(t.target.value),D(t.target.value,null)},[h]),E=l(async t=>{let n=await Promise.resolve(h?.(t));try{!1!==n&&(n=await D(k,t))}catch(t){}return n??!0},[h,k]);return t(p,{title:(T?"Edit":"Insert")+" Comments",options:O,onDone:C,onOption:t=>j(t),onValidateOption:E,defaultOption:y,cancelOption:w,autoFocusSel:".autoFocus",sx:{width:"480px",...F},...P,children:t(i,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:t(s,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t(r,{label:"Comments",placeholder:"Enter a comment.",onFocus:t=>{I||t.target?.select(),b(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${m("#fff",c(5))}, ${m("#fff",c(5))})`}}},value:k,onChange:B,onContextMenu:t=>{t.stopPropagation()}})})})})});export{d as CommentsDialog,d as default};