@spaziodati/atoka-design-system 5.1.21 → 5.1.22

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 (65) hide show
  1. package/AddableItems/index.js +1 -1
  2. package/Alert/index.js +1 -1
  3. package/Badge/index.js +1 -1
  4. package/Bs4V3Wrapper/index.js +1 -1
  5. package/BubbleChart/index.js +1 -1
  6. package/Button/index.js +1 -1
  7. package/ButtonDropdown/index.js +1 -1
  8. package/CardsPage/index.js +1 -1
  9. package/ClickableExcludableItem/index.js +1 -1
  10. package/CursorPagination/index.js +1 -1
  11. package/DatePicker/index.js +1 -1
  12. package/DatePickerInput/index.js +1 -1
  13. package/DetailPage/index.js +1 -1
  14. package/DetailPageContent/index.js +1 -1
  15. package/Dropdown/index.js +1 -1
  16. package/EditableString/index.js +1 -1
  17. package/EllipsableContent/index.js +1 -1
  18. package/EmptyState/index.js +1 -1
  19. package/Expandable/index.js +1 -1
  20. package/Facet/index.js +1 -1
  21. package/FacetSection/index.js +1 -1
  22. package/FadeAnimation/index.js +1 -1
  23. package/FeedbackButton/index.js +1 -1
  24. package/Form/index.js +1 -1
  25. package/Funnel/index.js +1 -1
  26. package/Gauge/index.js +1 -1
  27. package/GridCard/index.js +1 -1
  28. package/HighlightableText/index.js +1 -1
  29. package/Histogram/index.js +1 -1
  30. package/InlineStringEditor/index.js +1 -1
  31. package/InputGroup/index.js +1 -1
  32. package/Jumbotron/index.js +1 -1
  33. package/Map/index.js +1 -1
  34. package/Modal/index.js +1 -1
  35. package/MultiModeDatePicker/index.js +1 -1
  36. package/Navbar/index.js +1 -1
  37. package/OniruCard/index.js +1 -1
  38. package/Pagination/index.js +1 -1
  39. package/PieChart/index.js +1 -1
  40. package/PublicFooter/index.js +1 -1
  41. package/PublicNavbar/index.js +1 -1
  42. package/RecordBit/index.js +1 -1
  43. package/ResponsiveLineChart/index.js +1 -1
  44. package/ResultItemCard/index.js +1 -1
  45. package/RowCard/index.js +1 -1
  46. package/SelectDropdown/index.js +1 -1
  47. package/Spinner/index.js +1 -1
  48. package/StatisticsItemCard/index.js +1 -1
  49. package/StatisticsItemNumeric/index.js +1 -1
  50. package/StatisticsLegend/index.js +1 -1
  51. package/StatisticsTooltip/index.js +1 -1
  52. package/StreamDialog/index.js +1 -1
  53. package/Suggester/index.js +1 -1
  54. package/SuggestionCard/index.js +1 -1
  55. package/SunBurst/index.js +1 -1
  56. package/TabSwitcher/index.js +1 -1
  57. package/Text/index.js +1 -1
  58. package/Title/index.js +1 -1
  59. package/Toast/index.js +1 -1
  60. package/ToggleButtonGroup/index.js +1 -1
  61. package/Tooltip/index.js +1 -1
  62. package/Utils/index.js +1 -1
  63. package/{atoka-design-system-5.1.21.min.css → atoka-design-system-5.1.22.min.css} +1 -1
  64. package/package.json +1 -1
  65. package/styles/variables.less +1 -0
package/Funnel/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-solid-svg-icons/faCircle"),require("@fortawesome/react-fontawesome"),require("@nivo/funnel"),require("classnames"),require("react"),require("react-bootstrap/Col"),require("react-bootstrap/Container"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger"),require("react-bootstrap/Row")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-solid-svg-icons/faCircle","@fortawesome/react-fontawesome","@nivo/funnel","classnames","react","react-bootstrap/Col","react-bootstrap/Container","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/OverlayTrigger","react-bootstrap/Row"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-solid-svg-icons/faCircle"),require("@fortawesome/react-fontawesome"),require("@nivo/funnel"),require("classnames"),require("react"),require("react-bootstrap/Col"),require("react-bootstrap/Container"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger"),require("react-bootstrap/Row")):e["atoka-design-system"]=t(e["@fortawesome/pro-solid-svg-icons/faCircle"],e["@fortawesome/react-fontawesome"],e["@nivo/funnel"],e.classnames,e.react,e["react-bootstrap/Col"],e["react-bootstrap/Container"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/OverlayTrigger"],e["react-bootstrap/Row"])}(self,(function(e,t,r,n,a,o,i,l,s,u,c,p){return(()=>{"use strict";var d,h={1077:(e,t,r)=>{function n(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}r.d(t,{Z:()=>n})},4355:(e,t,r)=>{r.d(t,{ZP:()=>s});var n=r(1077),a=r(9173),o=r(2921);const i=(0,a.Z)(n.Z),l=i.right,s=(i.left,(0,a.Z)(o.Z).center,l)},9173:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(1077);function a(e){let t=e,r=e;function a(e,t,n,a){for(null==n&&(n=0),null==a&&(a=e.length);n<a;){const o=n+a>>>1;r(e[o],t)<0?n=o+1:a=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=function(e){return(t,r)=>(0,n.Z)(e(t),r)}(e)),{left:a,center:function(e,r,n,o){null==n&&(n=0),null==o&&(o=e.length);const i=a(e,r,n,o-1);return i>n&&t(e[i-1],r)>-t(e[i],r)?i-1:i},right:function(e,t,n,a){for(null==n&&(n=0),null==a&&(a=e.length);n<a;){const o=n+a>>>1;r(e[o],t)>0?a=o:n=o+1}return n}}}},2921:(e,t,r)=>{function n(e){return null===e?NaN:+e}r.d(t,{Z:()=>n})},7614:(e,t,r)=>{r.d(t,{ZP:()=>i,G9:()=>l,ly:()=>s});var n=Math.sqrt(50),a=Math.sqrt(10),o=Math.sqrt(2);function i(e,t,r){var n,a,o,i,s=-1;if(r=+r,(e=+e)===(t=+t)&&r>0)return[e];if((n=t<e)&&(a=e,e=t,t=a),0===(i=l(e,t,r))||!isFinite(i))return[];if(i>0){let r=Math.round(e/i),n=Math.round(t/i);for(r*i<e&&++r,n*i>t&&--n,o=new Array(a=n-r+1);++s<a;)o[s]=(r+s)*i}else{i=-i;let r=Math.round(e*i),n=Math.round(t*i);for(r/i<e&&++r,n/i>t&&--n,o=new Array(a=n-r+1);++s<a;)o[s]=(r+s)/i}return n&&o.reverse(),o}function l(e,t,r){var i=(t-e)/Math.max(0,r),l=Math.floor(Math.log(i)/Math.LN10),s=i/Math.pow(10,l);return l>=0?(s>=n?10:s>=a?5:s>=o?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(s>=n?10:s>=a?5:s>=o?2:1)}function s(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),l=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/l;return s>=n?l*=10:s>=a?l*=5:s>=o&&(l*=2),t<e?-l:l}},6372:(e,t,r)=>{r.d(t,{ZP:()=>w,B8:()=>M});var n=r(4087);function a(){}var o=.7,i=1/o,l="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,p=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),m=new RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),f=new RegExp("^hsl\\("+[s,u,u]+"\\)$"),g=new RegExp("^hsla\\("+[s,u,u,s]+"\\)$"),b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function w(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?x(t):3===r?new E(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?N(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?N(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=p.exec(e))?new E(t[1],t[2],t[3],1):(t=d.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?N(t[1],t[2],t[3],t[4]):(t=m.exec(e))?N(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=f.exec(e))?F(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?F(t[1],t[2]/100,t[3]/100,t[4]):b.hasOwnProperty(e)?x(b[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function x(e){return new E(e>>16&255,e>>8&255,255&e,1)}function N(e,t,r,n){return n<=0&&(e=t=r=NaN),new E(e,t,r,n)}function k(e){return e instanceof a||(e=w(e)),e?new E((e=e.rgb()).r,e.g,e.b,e.opacity):new E}function M(e,t,r,n){return 1===arguments.length?k(e):new E(e,t,r,null==n?1:n)}function E(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Z(){return"#"+C(this.r)+C(this.g)+C(this.b)}function S(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function F(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,r,n)}function D(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=w(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),l=NaN,s=i-o,u=(i+o)/2;return s?(l=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=u<.5?i+o:2-i-o,l*=60):s=u>0&&u<1?0:l,new P(l,s,u,e.opacity)}function P(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function L(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}(0,n.Z)(a,w,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return D(this).formatHsl()},formatRgb:v,toString:v}),(0,n.Z)(E,M,(0,n.l)(a,{brighter:function(e){return e=null==e?i:Math.pow(i,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Z,formatHex:Z,formatRgb:S,toString:S})),(0,n.Z)(P,(function(e,t,r,n){return 1===arguments.length?D(e):new P(e,t,r,null==n?1:n)}),(0,n.l)(a,{brighter:function(e){return e=null==e?i:Math.pow(i,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new E(L(e>=240?e-240:e+120,a,n),L(e,a,n),L(e<120?e+240:e-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},4087:(e,t,r)=>{function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function a(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}r.d(t,{Z:()=>n,l:()=>a})},7539:(e,t,r)=>{r.d(t,{WU:()=>a,jH:()=>o});var n,a,o,i,l=r(4463);i={decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"},n=(0,l.Z)(i),a=n.format,o=n.formatPrefix},3085:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(8885);function a(e){return(e=(0,n.V)(Math.abs(e)))?e[1]:NaN}},8885:(e,t,r)=>{function n(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function a(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.d(t,{Z:()=>n,V:()=>a})},8129:(e,t,r)=>{function n(e,t){return function(r,n){for(var a=r.length,o=[],i=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),o.push(r.substring(a-=l,a+l)),!((s+=l+1)>n));)l=e[i=(i+1)%e.length];return o.reverse().join(t)}}r.d(t,{Z:()=>n})},576:(e,t,r)=>{function n(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}r.d(t,{Z:()=>n})},2994:(e,t,r)=>{r.d(t,{y:()=>n,Z:()=>o});var n,a=r(8885);function o(e,t){var r=(0,a.V)(e,t);if(!r)return e+"";var o=r[0],i=r[1],l=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=o.length;return l===s?o:l>s?o+new Array(l-s+1).join("0"):l>0?o.slice(0,l)+"."+o.slice(l):"0."+new Array(1-l).join("0")+(0,a.V)(e,Math.max(0,t+l-1))[0]}},2043:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(8885);function a(e,t){var r=(0,n.V)(e,t);if(!r)return e+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}},6196:(e,t,r)=>{r.d(t,{Z:()=>a});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(e){if(!(t=n.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}a.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},1485:(e,t,r)=>{function n(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}r.d(t,{Z:()=>n})},8814:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(8885),a=r(2994),o=r(2043);const i={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:n.Z,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return(0,o.Z)(100*e,t)},r:o.Z,s:a.Z,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}}},9890:(e,t,r)=>{function n(e){return e}r.d(t,{Z:()=>n})},4463:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(3085),a=r(8129),o=r(576),i=r(6196),l=r(1485),s=r(8814),u=r(2994),c=r(9890),p=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h(e){var t=void 0===e.grouping||void 0===e.thousands?c.Z:(0,a.Z)(p.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",h=void 0===e.currency?"":e.currency[1]+"",m=void 0===e.decimal?".":e.decimal+"",f=void 0===e.numerals?c.Z:(0,o.Z)(p.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",b=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function v(e){var n=(e=(0,i.Z)(e)).fill,a=e.align,o=e.sign,c=e.symbol,p=e.zero,v=e.width,w=e.comma,x=e.precision,N=e.trim,k=e.type;"n"===k?(w=!0,k="g"):s.Z[k]||(void 0===x&&(x=12),N=!0,k="g"),(p||"0"===n&&"="===a)&&(p=!0,n="0",a="=");var M="$"===c?r:"#"===c&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",E="$"===c?h:/[%p]/.test(k)?g:"",Z=s.Z[k],S=/[defgprs%]/.test(k);function C(e){var r,i,s,c=M,h=E;if("c"===k)h=Z(e)+h,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:Z(Math.abs(e),x),N&&(e=(0,l.Z)(e)),g&&0==+e&&"+"!==o&&(g=!1),c=(g?"("===o?o:b:"-"===o||"("===o?"":o)+c,h=("s"===k?d[8+u.y/3]:"")+h+(g&&"("===o?")":""),S)for(r=-1,i=e.length;++r<i;)if(48>(s=e.charCodeAt(r))||s>57){h=(46===s?m+e.slice(r+1):e.slice(r))+h,e=e.slice(0,r);break}}w&&!p&&(e=t(e,1/0));var C=c.length+e.length+h.length,F=C<v?new Array(v-C+1).join(n):"";switch(w&&p&&(e=t(F+e,F.length?v-h.length:1/0),F=""),a){case"<":e=c+e+h+F;break;case"=":e=c+F+e+h;break;case"^":e=F.slice(0,C=F.length>>1)+c+e+h+F.slice(C);break;default:e=F+c+e+h}return f(e)}return x=void 0===x?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),C.toString=function(){return e+""},C}return{format:v,formatPrefix:function(e,t){var r=v(((e=(0,i.Z)(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor((0,n.Z)(t)/3))),o=Math.pow(10,-a),l=d[8+a/3];return function(e){return r(o*e)+l}}}}},8195:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(3085);function a(e){return Math.max(0,-(0,n.Z)(Math.abs(e)))}},3726:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(3085);function a(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,n.Z)(t)/3)))-(0,n.Z)(Math.abs(e)))}},7655:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(3085);function a(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,n.Z)(t)-(0,n.Z)(e))+1}},8122:(e,t,r)=>{r.d(t,{M:()=>a});var n=r(1265);function a(e,t){var r,a=t?t.length:0,o=e?Math.min(a,e.length):0,i=new Array(o),l=new Array(a);for(r=0;r<o;++r)i[r]=(0,n.Z)(e[r],t[r]);for(;r<a;++r)l[r]=t[r];return function(e){for(r=0;r<o;++r)l[r]=i[r](e);return l}}},9885:(e,t,r)=>{function n(e,t,r,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*r+(1+3*e+3*o-3*i)*n+i*a)/6}function a(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[a],i=e[a+1],l=a>0?e[a-1]:2*o-i,s=a<t-1?e[a+2]:2*i-o;return n((r-a/t)*t,l,o,i,s)}}r.d(t,{t:()=>n,Z:()=>a})},4306:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(9885);function a(e){var t=e.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*t),o=e[(a+t-1)%t],i=e[a%t],l=e[(a+1)%t],s=e[(a+2)%t];return(0,n.t)((r-a/t)*t,o,i,l,s)}}},5910:(e,t,r)=>{r.d(t,{yi:()=>o,ZP:()=>i});var n=r(5302);function a(e,t){return function(r){return e+r*t}}function o(e){return 1==(e=+e)?i:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):(0,n.Z)(isNaN(t)?r:t)}}function i(e,t){var r=t-e;return r?a(e,r):(0,n.Z)(isNaN(e)?t:e)}},5302:(e,t,r)=>{r.d(t,{Z:()=>n});const n=e=>()=>e},88:(e,t,r)=>{function n(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}r.d(t,{Z:()=>n})},3626:(e,t,r)=>{function n(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}r.d(t,{Z:()=>n})},7896:(e,t,r)=>{function n(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,a=t.slice();return function(o){for(r=0;r<n;++r)a[r]=e[r]*(1-o)+t[r]*o;return a}}function a(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}r.d(t,{Z:()=>n,v:()=>a})},8528:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(1265);function a(e,t){var r,a={},o={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?a[r]=(0,n.Z)(e[r],t[r]):o[r]=t[r];return function(e){for(r in a)o[r]=a[r](e);return o}}},3414:(e,t,r)=>{r.d(t,{ZP:()=>l});var n=r(6372),a=r(9885),o=r(4306),i=r(5910);const l=function e(t){var r=(0,i.yi)(t);function a(e,t){var a=r((e=(0,n.B8)(e)).r,(t=(0,n.B8)(t)).r),o=r(e.g,t.g),l=r(e.b,t.b),s=(0,i.ZP)(e.opacity,t.opacity);return function(t){return e.r=a(t),e.g=o(t),e.b=l(t),e.opacity=s(t),e+""}}return a.gamma=e,a}(1);function s(e){return function(t){var r,a,o=t.length,i=new Array(o),l=new Array(o),s=new Array(o);for(r=0;r<o;++r)a=(0,n.B8)(t[r]),i[r]=a.r||0,l[r]=a.g||0,s[r]=a.b||0;return i=e(i),l=e(l),s=e(s),a.opacity=1,function(e){return a.r=i(e),a.g=l(e),a.b=s(e),a+""}}}s(a.Z),s(o.Z)},5720:(e,t,r)=>{function n(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}r.d(t,{Z:()=>n})},9843:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(3626),a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(a.source,"g");function i(e,t){var r,i,l,s=a.lastIndex=o.lastIndex=0,u=-1,c=[],p=[];for(e+="",t+="";(r=a.exec(e))&&(i=o.exec(t));)(l=i.index)>s&&(l=t.slice(s,l),c[u]?c[u]+=l:c[++u]=l),(r=r[0])===(i=i[0])?c[u]?c[u]+=i:c[++u]=i:(c[++u]=null,p.push({i:u,x:(0,n.Z)(r,i)})),s=o.lastIndex;return s<t.length&&(l=t.slice(s),c[u]?c[u]+=l:c[++u]=l),c.length<2?p[0]?function(e){return function(t){return e(t)+""}}(p[0].x):function(e){return function(){return e}}(t):(t=p.length,function(e){for(var r,n=0;n<t;++n)c[(r=p[n]).i]=r.x(e);return c.join("")})}},1265:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(6372),a=r(3414),o=r(8122),i=r(88),l=r(3626),s=r(8528),u=r(9843),c=r(5302),p=r(7896);function d(e,t){var r,d=typeof t;return null==t||"boolean"===d?(0,c.Z)(t):("number"===d?l.Z:"string"===d?(r=(0,n.ZP)(t))?(t=r,a.ZP):u.Z:t instanceof n.ZP?a.ZP:t instanceof Date?i.Z:(0,p.v)(t)?p.Z:Array.isArray(t)?o.M:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?s.Z:l.Z)(e,t)}},8749:(e,t,r)=>{function n(e){return function(){return e}}r.d(t,{Z:()=>n})},5236:(e,t,r)=>{r.d(t,{JG:()=>m,ZP:()=>g});var n=r(4355),a=r(1265),o=r(3626),i=r(5720),l=r(8749),s=r(4299),u=[0,1];function c(e){return e}function p(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(0,l.Z)(isNaN(t)?NaN:.5)}function d(e,t,r){var n=e[0],a=e[1],o=t[0],i=t[1];return a<n?(n=p(a,n),o=r(i,o)):(n=p(n,a),o=r(o,i)),function(e){return o(n(e))}}function h(e,t,r){var a=Math.min(e.length,t.length)-1,o=new Array(a),i=new Array(a),l=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<a;)o[l]=p(e[l],e[l+1]),i[l]=r(t[l],t[l+1]);return function(t){var r=(0,n.ZP)(e,t,1,a)-1;return i[r](o[r](t))}}function m(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function f(){var e,t,r,n,l,p,m=u,f=u,g=a.Z,b=c;function y(){var e,t,r,a=Math.min(m.length,f.length);return b!==c&&(e=m[0],t=m[a-1],e>t&&(r=e,e=t,t=r),b=function(r){return Math.max(e,Math.min(t,r))}),n=a>2?h:d,l=p=null,v}function v(t){return null==t||isNaN(t=+t)?r:(l||(l=n(m.map(e),f,g)))(e(b(t)))}return v.invert=function(r){return b(t((p||(p=n(f,m.map(e),o.Z)))(r)))},v.domain=function(e){return arguments.length?(m=Array.from(e,s.Z),y()):m.slice()},v.range=function(e){return arguments.length?(f=Array.from(e),y()):f.slice()},v.rangeRound=function(e){return f=Array.from(e),g=i.Z,y()},v.clamp=function(e){return arguments.length?(b=!!e||c,y()):b!==c},v.interpolate=function(e){return arguments.length?(g=e,y()):g},v.unknown=function(e){return arguments.length?(r=e,v):r},function(r,n){return e=r,t=n,y()}}function g(){return f()(c,c)}},8348:(e,t,r)=>{function n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}r.d(t,{o:()=>n})},289:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(7614),a=r(5236),o=r(8348),i=r(7197);function l(e){var t=e.domain;return e.ticks=function(e){var r=t();return(0,n.ZP)(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return(0,i.Z)(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var a,o,i=t(),l=0,s=i.length-1,u=i[l],c=i[s],p=10;for(c<u&&(o=u,u=c,c=o,o=l,l=s,s=o);p-- >0;){if((o=(0,n.G9)(u,c,r))===a)return i[l]=u,i[s]=c,t(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o}a=o}return e},e}function s(){var e=(0,a.ZP)();return e.copy=function(){return(0,a.JG)(e,s())},o.o.apply(e,arguments),l(e)}},4299:(e,t,r)=>{function n(e){return+e}r.d(t,{Z:()=>n})},7197:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(7614),a=r(6196),o=r(3726),i=r(7539),l=r(7655),s=r(8195);function u(e,t,r,u){var c,p=(0,n.ly)(e,t,r);switch((u=(0,a.Z)(null==u?",f":u)).type){case"s":var d=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,o.Z)(p,d))||(u.precision=c),(0,i.jH)(u,d);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,l.Z)(p,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,s.Z)(p))||(u.precision=c-2*("%"===u.type))}return(0,i.WU)(u)}},9629:(e,t,r)=>{r.d(t,{EllipsableContent:()=>EllipsableContent});var n=r(8310),a=r.n(n),o=r(8156),i=r.n(o),l=r(4603),s=r(4915);const u=e=>i().createElement("div",{className:"ellipsable-content-prepend"},e.children);u.displayName="EllipsableContent.Prepend";const c=e=>i().createElement("div",{className:"ellipsable-content-append"},e.children);c.displayName="EllipsableContent.Append";const p=e=>{const t=i().createElement("div",{className:"ellipsable-content-content"},e.children);return null==e.tooltip?t:i().createElement(l.Tooltip,{...e.tooltipProps,content:e.tooltip},t)};p.displayName="EllipsableContent.Content";class EllipsableContent extends i().PureComponent{static displayName="EllipsableContent";static Prepend=u;static Append=c;static Content=p;renderFullContent(){let e=(0,s.z8)(this.props.children,EllipsableContent.Prepend),t=(0,s.z8)(this.props.children,EllipsableContent.Content),r=(0,s.z8)(this.props.children,EllipsableContent.Append);return null!=t||null==e&&null==r?(null==t&&(t=i().createElement(EllipsableContent.Content,null,this.props.children)),null!=this.props.tooltip&&(t=i().createElement(t.type,{...t.props,tooltip:this.props.tooltip,tooltipProps:this.props.tooltipProps})),i().createElement(i().Fragment,null,e,t,r)):(console.error("You must set a .Content alongside the .Append or .Prepend"),null)}render(){let e=a()("ellipsable-content-container align-items-center",this.props.className,{"ellipsable-with-tooltip":null!=this.props.tooltip}),t=this.renderFullContent();return null==t?null:i().createElement("div",{className:e,style:this.props.style},t)}}},3642:(e,t,r)=>{var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(8721),s=r.n(l),u=r(7269),c=r(2380),p=r(5145),d=r(8672),h=r(2722);const m=e=>{const t=i()(e?.className,"atoka-form");return a().createElement(s(),{...e,className:t},e.children)};m.displayName="Form",m.Control=c.N,m.Label=u.l,m.Checkbox=p.z,m.Radio=d.w,m.File=s().File,m.Switch=s().Switch,m.Help=h.y,m.Group=s().Group},5145:(e,t,r)=>{r.d(t,{z:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(8721),s=r.n(l);const u=e=>{const t=i()("atoka-form-checkbox",e?.className);return a().createElement(s().Check,{type:"checkbox",...e,custom:!0,className:t,label:e.label??""})};u.displayName="FormCheckbox"},2380:(e,t,r)=>{r.d(t,{N:()=>p});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(1082),s=r.n(l),u=r(7605);const c=a().forwardRef((({size:e="md",...t},r)=>{const n=i()("atoka-form-control",t?.className,{disabled:t.disabled});return a().createElement(s(),{as:t.as,rows:t.rows,cols:t.cols,placeholder:t.placeholder,className:n,disabled:t.disabled,readOnly:t.readOnly,value:t.value,onChange:t.onChange,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,defaultValue:t.defaultValue,size:"md"===e?void 0:e,type:t.type,id:t.id,isValid:t.isValid,isInvalid:t.isInvalid,ref:r,autoComplete:"off"},t.children)}));c.displayName="FormControlComponent";const p=c;p.FeedBack=u.t,p.displayName="FormControl"},7605:(e,t,r)=>{r.d(t,{t:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(1082),s=r.n(l);const u=a().memo((({show:e=!0,...t})=>{const r=i()(t?.className,"atoka-form-control-feedback",{"d-block":e});return a().createElement(s().Feedback,{type:t.type,className:r},t.children)}));u.displayName="FormControlFeedBack"},2722:(e,t,r)=>{r.d(t,{y:()=>u});var n=r(8763),a=r.n(n),o=r(8156),i=r.n(o),l=r(8310),s=r.n(l);const u=i().memo((({children:e,...t})=>{const r=s()("d-block",t?.className);return i().createElement(a(),{bsPrefix:"atoka-form-help",className:r},e)}));u.displayName="FormHelp"},7269:(e,t,r)=>{r.d(t,{l:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(8721),s=r.n(l);const u=a().memo((e=>{const t=i()(e?.className,"atoka-form-label");return a().createElement(s().Label,{className:t},e.children)}));u.displayName="FormLabel"},8672:(e,t,r)=>{r.d(t,{w:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(8721),s=r.n(l);const u=e=>{const t=i()(e?.className,"atoka-form-radio");return a().createElement(s().Check,{type:"radio",...e,custom:!0,className:t,label:e.label??""})};u.displayName="FormRadio"},1219:(e,t,r)=>{r.r(t),r.d(t,{Funnel:()=>Funnel});var n=r(8156),a=r.n(n),o=r(4915),i=r(7540),l=r(9179),s=r(8310),u=r.n(s),c=r(1358),p=r(9274),d=r(2394);const h=6,m=a().memo((({item:e,numberToStringFormatter:t,fontSize:r=11})=>{let n=e.data?.value,o=e.data.label??"",l=e.width/h,s=(0,d.Hp)(o,l),u=e.y1+e.y0+30,c=`${(0,d.lV)(o)}-data-label`;return a().createElement("text",{key:c,className:c,x:e.x0,y:u,fill:i.de},a().createElement("tspan",{fontSize:r,x:e.x0,y:u-r},s),a().createElement("tspan",{fontSize:r,fill:"black",fontWeight:"bold",x:e.x0,y:u+3},t?.(n)??n))}));m.displayName="SVGDataLabel";class FunnelUI extends a().Component{static displayName="FunnelUI";marginBottom=60;renderDataLabels=e=>a().createElement(a().Fragment,null,e.parts.map(this.renderSVGDataLabel));renderEmptyPart=e=>a().createElement("line",{onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,key:`${e.data.label}-empty`,x1:e.x0,y1:e.y,x2:e.x1,y2:e.y,stroke:e.color});renderEmptyParts=e=>a().createElement(a().Fragment,null,e.parts.map(this.renderEmptyPart));renderSinkDataLabels=e=>a().createElement(c.StatisticsSVGLegend,{data:this.props.sinkData,x:0,y:e.height+this.marginBottom-8,valueFormat:this.props.numberToStringFormatter});renderSVGDataLabel=e=>a().createElement(m,{key:`${e.data.label}-data`,item:e,numberToStringFormatter:this.props.numberToStringFormatter});getRenderTooltip=e=>(this.props.renderTooltip??(0,p.getRenderStatisticsTooltip)({tooltipDataLabelKey:"value",tooltipDataTitleKey:"id",tooltipDataValueKey:"percentage",numberToStringFormatter:this.props.tooltipValueFormat??this.props.numberToStringFormatter,withColor:!0}))(e.part);render(){const e=this.props.isZeroData?[this.renderEmptyParts]:["parts"],t=u()("funnel-container w-100 h-100",this.props.className);return e.push(this.renderDataLabels,this.renderSinkDataLabels),a().createElement("div",{id:this.props.id,className:t,ref:this.props.chartRef},a().createElement(l.ResponsiveFunnel,{layers:e,shapeBlending:.25,isInteractive:!0,data:this.props.data,colors:this.props.colors,direction:"horizontal",margin:{top:0,right:0,bottom:this.marginBottom,left:0},borderWidth:1,borderOpacity:1,labelColor:{from:"color",modifiers:[["darker",3]]},enableBeforeSeparators:!1,enableAfterSeparators:!1,currentBorderWidth:0,tooltip:this.getRenderTooltip}))}}class Funnel extends a().Component{static displayName="Funnel";static defaultProps={colors:[i.WV,i.Ls,i.P3,i.p5]};constructor(e){super(e),this.state={data:[],sinkData:[],colors:[]}}shouldComponentUpdate(e){return!(0,o.vZ)(this.props,e)}getComponentSetup(){let{data:e,sinkData:t}=this.separateDataFromSinkData(),r=e.reduce(((e,t)=>e+t.value),0);return{data:e,sinkData:t,colors:(0,i.vA)(e.length,this.props.colors),isZeroData:0===r}}separateDataFromSinkData(){let e=[],t=[];return(this.props?.data??[]).forEach((r=>{r.isSinkState?t.push(r):e.push({id:r.label,value:r.value,label:r.label,percentage:r.percentage})})),{data:e,sinkData:t}}render(){return a().createElement(FunnelUI,{...this.getComponentSetup(),chartRef:this.props.chartRef,id:this.props.id,numberToStringFormatter:this.props.numberToStringFormatter,className:this.props.className,tooltipValueFormat:this.props.tooltipValueFormat})}}},1358:(e,t,r)=>{r.d(t,{StatisticsSVGLegend:()=>StatisticsSVGLegend});var n=r(8156),a=r.n(n),o=r(4394),i=r.n(o),l=r(3915),s=r.n(l),u=r(8310),c=r.n(u),p=r(5315),d=r.n(p),h=r(1326),m=r(5692),f=r(9629),g=r(2394),b=r(5909);class StatisticsLegendItem extends a().PureComponent{static displayName="StatisticsLegendItem";renderRightBlock(){let e=[this.renderValue(),this.renderPercentage()].filter((e=>null!=e));return 0===e.length?null:a().createElement(f.EllipsableContent.Append,null,e)}renderValue(){let{legendDataValueKey:e,numberToStringFormatter:t,data:r}=this.props;if(null==e||null==r[e])return null;let n=r[e],o=t?t(+n):String(n);return a().createElement("div",{key:"value-container",className:"value-container font-weight-bold text-nowrap"},o)}renderPercentage(){let{legendDataPercentageKey:e,data:t}=this.props;if(null==e||null==t[e])return null;const r=(0,b.Ow)(+t[e]);return a().createElement("div",{key:"percentage-container",className:"percentage-container ml-1"},r)}renderOtherLabel(e){return(0,g.Wq)(e.label)?String(e?.id??""):e.label}renderLabel(){let{legendDataLabelKey:e,data:t,otherId:r}=this.props;return t.id===r?this.renderOtherLabel(t):null==e?null:t?.[e]}render(){let{columnNumber:e,color:t,data:r}=this.props,n=c()("legend-item px-1",{"flex-basis-0":"horizontal"===this.props.layout});return a().createElement(d(),{sm:24/e,className:n,key:`legend-item-${r.id}`},a().createElement(f.EllipsableContent,{className:"label-container w-100 justify-content-between"},a().createElement(f.EllipsableContent.Content,null,a().createElement(m.FontAwesomeIcon,{icon:h.faCircle,color:t,className:"mr-1"}),this.renderLabel()),this.renderRightBlock()))}}a().memo((({data:e,otherId:t,colors:r,layout:n="vertical",columnNumber:o=2,numberToStringFormatter:l,legendDataLabelKey:u,legendDataValueKey:c,legendDataPercentageKey:p})=>{function d(e,i){let{id:s}=e,d=s===t?r?.[r.length-1]:r?.[i];return a().createElement(StatisticsLegendItem,{data:e,numberToStringFormatter:l,legendDataValueKey:c,legendDataLabelKey:u,legendDataPercentageKey:p,color:d,otherId:t,key:s+d,columnNumber:o,layout:n})}let h=e.filter((e=>0!==e.value||e.id!==t));return"horizontal"===n?a().createElement("div",{className:"legend-container"},h.map(d)):a().createElement(i(),{className:"legend-container"},a().createElement(s(),{className:"w-100"},h.map(d)))})).displayName="StatisticsLegend";var y=r(7540);class StatisticsSVGLegend extends a().PureComponent{static displayName="StatisticsSVGLegend";static defaultProps={dy:0,fontSize:11,colors:[]};renderSVGDataInfoBit=(e,t)=>{let r=e.label??"",n=this.renderPercentage(e),o=this.renderCircle(this.props.colors?.[t]);return a().createElement(a().Fragment,{key:`${e.label}-legend-data`},o,a().createElement("text",{x:this.props.x,y:this.props.y,fill:y.de,fontSize:this.props.fontSize,key:`${e.label}-legend-data`},a().createElement("tspan",{dx:null==o?0:10},this.props.labelFormat?.(r)??r),a().createElement("tspan",{x:this.getRightElementX(),dx:5,fill:"black",fontWeight:"bold",textAnchor:"end"},this.props.valueFormat?.(e.value)??e.value),n))};renderSVGDataInfoBitMoreItems=(e,t)=>{let r=e.label??"",n=this.renderPercentage(e),o=this.renderCircle(this.props.colors?.[t]);return a().createElement(a().Fragment,{key:`${e.label}-legend-data-items`},o,a().createElement("tspan",{dx:0===t||null!=o?0:10,fill:y.de},this.props.labelFormat?.(r)??r),a().createElement("tspan",{dx:5,fill:"black",fontWeight:"bold"},this.props.valueFormat?.(e.value)??e.value),n)};renderCircle(e){return null==e?null:a().createElement("circle",{cx:this.props.x,cy:this.props.y-3,r:"5",fill:e})}renderPercentage(e){let t=null!=e.percentage?(0,b.Ow)(e.percentage):null;return null==t?null:a().createElement("tspan",{x:this.getRightElementX(),dx:5,fill:this.props.colors?.[0]},t)}getRightElementX(){let e=this.props.width;if(null!=e)return(0===this.props.x?e/2:e)-18}removeItemIfNoValue(e){return e.filter((e=>null!==e.value))}render(){let e=this.removeItemIfNoValue(this.props.data);return e?.length>1?a().createElement("g",null,a().createElement("text",{x:this.props.x,y:this.props.y,dy:this.props.dy,fill:y.de,fontSize:this.props.fontSize,key:"legend-data-bit",className:"legend-data-bit"},e.map(this.renderSVGDataInfoBitMoreItems))):a().createElement("g",null,e.map(this.renderSVGDataInfoBit))}}},9274:(e,t,r)=>{r.d(t,{StatisticsTooltip:()=>s,getRenderStatisticsTooltip:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(5909);function s(e){function t(){let{tooltipDataLabelKey:t,numberToStringFormatter:r,data:a}=e,o=n(t,a);if(null!=o)return null==r?String(o):"number"==typeof o?r(o):o}function r(){let{tooltipDataValueKey:t,data:r}=e,a=n(t,r);if(null!=a)return"number"==typeof a?(0,l.Ow)(a):a}function n(e,t){return null==e?void 0:t?.[e]}let o=i()("statistics-tooltip",e?.className),s=null==e.color?null:a().createElement("span",{className:"tooltip-rectangle",style:{background:e.color}});return a().createElement("div",{className:o},a().createElement("div",{className:"d-flex align-items-center"},s,a().createElement("span",{className:"text-left"},function(){let{tooltipDataTitleKey:t,data:r,otherId:a,otherLabel:o}=e,i=n(t,r);return i===a?o??a:i?String(i):void 0}())),function(){let n=[{value:t(),key:e.tooltipDataLabelKey,className:"label"},{value:r(),key:e.tooltipDataValueKey,className:"value"}].filter((e=>null!=e.value)).map((e=>a().createElement("span",{key:String(e.key),className:e.className},e.value)));return 0===n.length?null:a().createElement("div",{className:"d-flex justify-content-between"},n)}(),e.children)}function u({tooltipDataLabelKey:e,tooltipDataValueKey:t,tooltipDataTitleKey:r,otherId:n,otherLabel:o,numberToStringFormatter:i,withColor:l,className:u="tooltip-background"}){return c=>a().createElement(s,{otherId:n,otherLabel:o,numberToStringFormatter:i,data:c.data,tooltipDataLabelKey:e,tooltipDataTitleKey:r,tooltipDataValueKey:t,className:u??"",color:l?c.color:void 0})}s.displayName="StatisticsTooltip"},4603:(e,t,r)=>{r.d(t,{Tooltip:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(6043),s=r.n(l);const u=a().memo((e=>{let t=document.querySelector(".bs4-v3-external-container"),r=e.placement??"top",n=i()("tooltip atoka-tooltip",e.className,{"top bs-tooltip-top":0===r.indexOf("top"),"right bs-tooltip-right":0===r.indexOf("right"),"bottom bs-tooltip-bottom":0===r.indexOf("bottom"),"left bs-tooltip-left":0===r.indexOf("left")});const{content:o,...l}=e;return a().createElement(s(),{...l,container:t,overlay:({arrowProps:e,...t})=>{const{show:r,...i}=t;return a().createElement("div",{...i,className:n,role:"tooltip"},a().createElement("div",{className:"tooltip-inner"},a().createElement("div",{className:"arrow arrow-back",...e}),o,a().createElement("div",{className:"arrow arrow-front",...e})))}},e.children)}));u.displayName="Tooltip"},5909:(e,t,r)=>{r.d(t,{Ow:()=>n});r(4915);function n(e){return`${parseInt(e?.toFixed?.(0),10)}%`}},7540:(e,t,r)=>{r.d(t,{vA:()=>a,WV:()=>i,Ls:()=>l,P3:()=>s,p5:()=>u,de:()=>c});var n=r(289);function a(e,t=["#82CA9D","#F6EA25","#F7977A"]){const r=[];if(0===e)return;let a=(0,n.Z)(),i=o(t.length,t.length),l=o(e,t.length);a=a.domain(i).range(t);for(let t=0;t<e;t++)r.push(a(l[t]));return r}function o(e,t){let r=[];r.push(0);for(let n=0;n<e-2;n++){let a=Number(t/e*(n+1));r.push(parseFloat(a.toFixed(2)))}return r.push(t),r}let i="#AFD1E0",l="#94C2DA",s="#6E9DB5",u="rgb(31, 88, 113)",c="#717171"},2394:(e,t,r)=>{function n(e){if(null==e)return!0;try{return null!==e.match(/^\s*$/)}catch(e){return!0}}function a(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",r=new RegExp(t.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,"-").replace(r,(e=>"aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------".charAt(t.indexOf(e)))).replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function o(e,t){return null==e?"":e.length>t?`${e.substr(0,t-1)}…`:e}r.d(t,{Wq:()=>n,lV:()=>a,Hp:()=>o})},4915:(e,t,r)=>{r.d(t,{z8:()=>o,vZ:()=>l});r(5692);var n=r(8156),a=r.n(n);r(3642);function o(e,t){return function(e,t){let r=[];return a().Children.forEach(e,(e=>{e?.type===t&&r.push(e)})),r}(e,t)?.[0]??null}function i(e){return"object"==typeof e&&null!=e}function l(e,t){if(e===t)return!0;if(i(e)&&i(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;let r;for(r in e)if(!l(e[r],t[r]))return!1;return!0}return!1}},1326:t=>{t.exports=e},5692:e=>{e.exports=t},9179:e=>{e.exports=r},8310:e=>{e.exports=n},8156:e=>{e.exports=a},5315:e=>{e.exports=o},4394:e=>{e.exports=i},8721:e=>{e.exports=l},1082:e=>{e.exports=s},8763:e=>{e.exports=u},6043:e=>{e.exports=c},3915:e=>{e.exports=p}},m={};function f(e){var t=m[e];if(void 0!==t)return t.exports;var r=m[e]={exports:{}};return h[e](r,r.exports,f),r.exports}f.m=h,d=[],f.O=(e,t,r,n)=>{if(!t){var a=1/0;for(s=0;s<d.length;s++){for(var[t,r,n]=d[s],o=!0,i=0;i<t.length;i++)(!1&n||a>=n)&&Object.keys(f.O).every((e=>f.O[e](t[i])))?t.splice(i--,1):(o=!1,n<a&&(a=n));if(o){d.splice(s--,1);var l=r();void 0!==l&&(e=l)}}return e}n=n||0;for(var s=d.length;s>0&&d[s-1][2]>n;s--)d[s]=d[s-1];d[s]=[t,r,n]},f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2494:0,3099:0,1338:0,9811:0,2823:0,8173:0};f.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[o,i,l]=r,s=0;if(o.some((t=>0!==e[t]))){for(n in i)f.o(i,n)&&(f.m[n]=i[n]);if(l)var u=l(f)}for(t&&t(r);s<o.length;s++)a=o[s],f.o(e,a)&&e[a]&&e[a][0](),e[o[s]]=0;return f.O(u)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var g=f.O(void 0,[8173],(()=>f(1219)));return g=f.O(g)})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-solid-svg-icons/faCircle"),require("@fortawesome/react-fontawesome"),require("@nivo/funnel"),require("classnames"),require("react"),require("react-bootstrap/Col"),require("react-bootstrap/Container"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger"),require("react-bootstrap/Row")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-solid-svg-icons/faCircle","@fortawesome/react-fontawesome","@nivo/funnel","classnames","react","react-bootstrap/Col","react-bootstrap/Container","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/OverlayTrigger","react-bootstrap/Row"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-solid-svg-icons/faCircle"),require("@fortawesome/react-fontawesome"),require("@nivo/funnel"),require("classnames"),require("react"),require("react-bootstrap/Col"),require("react-bootstrap/Container"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger"),require("react-bootstrap/Row")):e["atoka-design-system"]=t(e["@fortawesome/pro-solid-svg-icons/faCircle"],e["@fortawesome/react-fontawesome"],e["@nivo/funnel"],e.classnames,e.react,e["react-bootstrap/Col"],e["react-bootstrap/Container"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/OverlayTrigger"],e["react-bootstrap/Row"])}(self,(function(e,t,r,n,a,o,i,l,s,u,c,p){return(()=>{"use strict";var d,h={1077:(e,t,r)=>{function n(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}r.d(t,{Z:()=>n})},4355:(e,t,r)=>{r.d(t,{ZP:()=>s});var n=r(1077),a=r(9173),o=r(2921);const i=(0,a.Z)(n.Z),l=i.right,s=(i.left,(0,a.Z)(o.Z).center,l)},9173:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(1077);function a(e){let t=e,r=e;function a(e,t,n,a){for(null==n&&(n=0),null==a&&(a=e.length);n<a;){const o=n+a>>>1;r(e[o],t)<0?n=o+1:a=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=function(e){return(t,r)=>(0,n.Z)(e(t),r)}(e)),{left:a,center:function(e,r,n,o){null==n&&(n=0),null==o&&(o=e.length);const i=a(e,r,n,o-1);return i>n&&t(e[i-1],r)>-t(e[i],r)?i-1:i},right:function(e,t,n,a){for(null==n&&(n=0),null==a&&(a=e.length);n<a;){const o=n+a>>>1;r(e[o],t)>0?a=o:n=o+1}return n}}}},2921:(e,t,r)=>{function n(e){return null===e?NaN:+e}r.d(t,{Z:()=>n})},7614:(e,t,r)=>{r.d(t,{ZP:()=>i,G9:()=>l,ly:()=>s});var n=Math.sqrt(50),a=Math.sqrt(10),o=Math.sqrt(2);function i(e,t,r){var n,a,o,i,s=-1;if(r=+r,(e=+e)===(t=+t)&&r>0)return[e];if((n=t<e)&&(a=e,e=t,t=a),0===(i=l(e,t,r))||!isFinite(i))return[];if(i>0){let r=Math.round(e/i),n=Math.round(t/i);for(r*i<e&&++r,n*i>t&&--n,o=new Array(a=n-r+1);++s<a;)o[s]=(r+s)*i}else{i=-i;let r=Math.round(e*i),n=Math.round(t*i);for(r/i<e&&++r,n/i>t&&--n,o=new Array(a=n-r+1);++s<a;)o[s]=(r+s)/i}return n&&o.reverse(),o}function l(e,t,r){var i=(t-e)/Math.max(0,r),l=Math.floor(Math.log(i)/Math.LN10),s=i/Math.pow(10,l);return l>=0?(s>=n?10:s>=a?5:s>=o?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(s>=n?10:s>=a?5:s>=o?2:1)}function s(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),l=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/l;return s>=n?l*=10:s>=a?l*=5:s>=o&&(l*=2),t<e?-l:l}},6372:(e,t,r)=>{r.d(t,{ZP:()=>w,B8:()=>M});var n=r(4087);function a(){}var o=.7,i=1/o,l="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,p=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),m=new RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),f=new RegExp("^hsl\\("+[s,u,u]+"\\)$"),g=new RegExp("^hsla\\("+[s,u,u,s]+"\\)$"),b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function w(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?x(t):3===r?new E(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?N(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?N(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=p.exec(e))?new E(t[1],t[2],t[3],1):(t=d.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?N(t[1],t[2],t[3],t[4]):(t=m.exec(e))?N(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=f.exec(e))?F(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?F(t[1],t[2]/100,t[3]/100,t[4]):b.hasOwnProperty(e)?x(b[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function x(e){return new E(e>>16&255,e>>8&255,255&e,1)}function N(e,t,r,n){return n<=0&&(e=t=r=NaN),new E(e,t,r,n)}function k(e){return e instanceof a||(e=w(e)),e?new E((e=e.rgb()).r,e.g,e.b,e.opacity):new E}function M(e,t,r,n){return 1===arguments.length?k(e):new E(e,t,r,null==n?1:n)}function E(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Z(){return"#"+C(this.r)+C(this.g)+C(this.b)}function S(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function F(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,r,n)}function D(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=w(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),l=NaN,s=i-o,u=(i+o)/2;return s?(l=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=u<.5?i+o:2-i-o,l*=60):s=u>0&&u<1?0:l,new P(l,s,u,e.opacity)}function P(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function L(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}(0,n.Z)(a,w,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return D(this).formatHsl()},formatRgb:v,toString:v}),(0,n.Z)(E,M,(0,n.l)(a,{brighter:function(e){return e=null==e?i:Math.pow(i,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Z,formatHex:Z,formatRgb:S,toString:S})),(0,n.Z)(P,(function(e,t,r,n){return 1===arguments.length?D(e):new P(e,t,r,null==n?1:n)}),(0,n.l)(a,{brighter:function(e){return e=null==e?i:Math.pow(i,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new E(L(e>=240?e-240:e+120,a,n),L(e,a,n),L(e<120?e+240:e-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},4087:(e,t,r)=>{function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function a(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}r.d(t,{Z:()=>n,l:()=>a})},7539:(e,t,r)=>{r.d(t,{WU:()=>a,jH:()=>o});var n,a,o,i,l=r(4463);i={decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"},n=(0,l.Z)(i),a=n.format,o=n.formatPrefix},3085:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(8885);function a(e){return(e=(0,n.V)(Math.abs(e)))?e[1]:NaN}},8885:(e,t,r)=>{function n(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function a(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.d(t,{Z:()=>n,V:()=>a})},8129:(e,t,r)=>{function n(e,t){return function(r,n){for(var a=r.length,o=[],i=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),o.push(r.substring(a-=l,a+l)),!((s+=l+1)>n));)l=e[i=(i+1)%e.length];return o.reverse().join(t)}}r.d(t,{Z:()=>n})},576:(e,t,r)=>{function n(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}r.d(t,{Z:()=>n})},2994:(e,t,r)=>{r.d(t,{y:()=>n,Z:()=>o});var n,a=r(8885);function o(e,t){var r=(0,a.V)(e,t);if(!r)return e+"";var o=r[0],i=r[1],l=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=o.length;return l===s?o:l>s?o+new Array(l-s+1).join("0"):l>0?o.slice(0,l)+"."+o.slice(l):"0."+new Array(1-l).join("0")+(0,a.V)(e,Math.max(0,t+l-1))[0]}},2043:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(8885);function a(e,t){var r=(0,n.V)(e,t);if(!r)return e+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}},6196:(e,t,r)=>{r.d(t,{Z:()=>a});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(e){if(!(t=n.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}a.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},1485:(e,t,r)=>{function n(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}r.d(t,{Z:()=>n})},8814:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(8885),a=r(2994),o=r(2043);const i={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:n.Z,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return(0,o.Z)(100*e,t)},r:o.Z,s:a.Z,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}}},9890:(e,t,r)=>{function n(e){return e}r.d(t,{Z:()=>n})},4463:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(3085),a=r(8129),o=r(576),i=r(6196),l=r(1485),s=r(8814),u=r(2994),c=r(9890),p=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h(e){var t=void 0===e.grouping||void 0===e.thousands?c.Z:(0,a.Z)(p.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",h=void 0===e.currency?"":e.currency[1]+"",m=void 0===e.decimal?".":e.decimal+"",f=void 0===e.numerals?c.Z:(0,o.Z)(p.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",b=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function v(e){var n=(e=(0,i.Z)(e)).fill,a=e.align,o=e.sign,c=e.symbol,p=e.zero,v=e.width,w=e.comma,x=e.precision,N=e.trim,k=e.type;"n"===k?(w=!0,k="g"):s.Z[k]||(void 0===x&&(x=12),N=!0,k="g"),(p||"0"===n&&"="===a)&&(p=!0,n="0",a="=");var M="$"===c?r:"#"===c&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",E="$"===c?h:/[%p]/.test(k)?g:"",Z=s.Z[k],S=/[defgprs%]/.test(k);function C(e){var r,i,s,c=M,h=E;if("c"===k)h=Z(e)+h,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:Z(Math.abs(e),x),N&&(e=(0,l.Z)(e)),g&&0==+e&&"+"!==o&&(g=!1),c=(g?"("===o?o:b:"-"===o||"("===o?"":o)+c,h=("s"===k?d[8+u.y/3]:"")+h+(g&&"("===o?")":""),S)for(r=-1,i=e.length;++r<i;)if(48>(s=e.charCodeAt(r))||s>57){h=(46===s?m+e.slice(r+1):e.slice(r))+h,e=e.slice(0,r);break}}w&&!p&&(e=t(e,1/0));var C=c.length+e.length+h.length,F=C<v?new Array(v-C+1).join(n):"";switch(w&&p&&(e=t(F+e,F.length?v-h.length:1/0),F=""),a){case"<":e=c+e+h+F;break;case"=":e=c+F+e+h;break;case"^":e=F.slice(0,C=F.length>>1)+c+e+h+F.slice(C);break;default:e=F+c+e+h}return f(e)}return x=void 0===x?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),C.toString=function(){return e+""},C}return{format:v,formatPrefix:function(e,t){var r=v(((e=(0,i.Z)(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor((0,n.Z)(t)/3))),o=Math.pow(10,-a),l=d[8+a/3];return function(e){return r(o*e)+l}}}}},8195:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(3085);function a(e){return Math.max(0,-(0,n.Z)(Math.abs(e)))}},3726:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(3085);function a(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,n.Z)(t)/3)))-(0,n.Z)(Math.abs(e)))}},7655:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(3085);function a(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,n.Z)(t)-(0,n.Z)(e))+1}},8122:(e,t,r)=>{r.d(t,{M:()=>a});var n=r(1265);function a(e,t){var r,a=t?t.length:0,o=e?Math.min(a,e.length):0,i=new Array(o),l=new Array(a);for(r=0;r<o;++r)i[r]=(0,n.Z)(e[r],t[r]);for(;r<a;++r)l[r]=t[r];return function(e){for(r=0;r<o;++r)l[r]=i[r](e);return l}}},9885:(e,t,r)=>{function n(e,t,r,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*r+(1+3*e+3*o-3*i)*n+i*a)/6}function a(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[a],i=e[a+1],l=a>0?e[a-1]:2*o-i,s=a<t-1?e[a+2]:2*i-o;return n((r-a/t)*t,l,o,i,s)}}r.d(t,{t:()=>n,Z:()=>a})},4306:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(9885);function a(e){var t=e.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*t),o=e[(a+t-1)%t],i=e[a%t],l=e[(a+1)%t],s=e[(a+2)%t];return(0,n.t)((r-a/t)*t,o,i,l,s)}}},5910:(e,t,r)=>{r.d(t,{yi:()=>o,ZP:()=>i});var n=r(5302);function a(e,t){return function(r){return e+r*t}}function o(e){return 1==(e=+e)?i:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):(0,n.Z)(isNaN(t)?r:t)}}function i(e,t){var r=t-e;return r?a(e,r):(0,n.Z)(isNaN(e)?t:e)}},5302:(e,t,r)=>{r.d(t,{Z:()=>n});const n=e=>()=>e},88:(e,t,r)=>{function n(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}r.d(t,{Z:()=>n})},3626:(e,t,r)=>{function n(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}r.d(t,{Z:()=>n})},7896:(e,t,r)=>{function n(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,a=t.slice();return function(o){for(r=0;r<n;++r)a[r]=e[r]*(1-o)+t[r]*o;return a}}function a(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}r.d(t,{Z:()=>n,v:()=>a})},8528:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(1265);function a(e,t){var r,a={},o={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?a[r]=(0,n.Z)(e[r],t[r]):o[r]=t[r];return function(e){for(r in a)o[r]=a[r](e);return o}}},3414:(e,t,r)=>{r.d(t,{ZP:()=>l});var n=r(6372),a=r(9885),o=r(4306),i=r(5910);const l=function e(t){var r=(0,i.yi)(t);function a(e,t){var a=r((e=(0,n.B8)(e)).r,(t=(0,n.B8)(t)).r),o=r(e.g,t.g),l=r(e.b,t.b),s=(0,i.ZP)(e.opacity,t.opacity);return function(t){return e.r=a(t),e.g=o(t),e.b=l(t),e.opacity=s(t),e+""}}return a.gamma=e,a}(1);function s(e){return function(t){var r,a,o=t.length,i=new Array(o),l=new Array(o),s=new Array(o);for(r=0;r<o;++r)a=(0,n.B8)(t[r]),i[r]=a.r||0,l[r]=a.g||0,s[r]=a.b||0;return i=e(i),l=e(l),s=e(s),a.opacity=1,function(e){return a.r=i(e),a.g=l(e),a.b=s(e),a+""}}}s(a.Z),s(o.Z)},5720:(e,t,r)=>{function n(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}r.d(t,{Z:()=>n})},9843:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(3626),a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(a.source,"g");function i(e,t){var r,i,l,s=a.lastIndex=o.lastIndex=0,u=-1,c=[],p=[];for(e+="",t+="";(r=a.exec(e))&&(i=o.exec(t));)(l=i.index)>s&&(l=t.slice(s,l),c[u]?c[u]+=l:c[++u]=l),(r=r[0])===(i=i[0])?c[u]?c[u]+=i:c[++u]=i:(c[++u]=null,p.push({i:u,x:(0,n.Z)(r,i)})),s=o.lastIndex;return s<t.length&&(l=t.slice(s),c[u]?c[u]+=l:c[++u]=l),c.length<2?p[0]?function(e){return function(t){return e(t)+""}}(p[0].x):function(e){return function(){return e}}(t):(t=p.length,function(e){for(var r,n=0;n<t;++n)c[(r=p[n]).i]=r.x(e);return c.join("")})}},1265:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(6372),a=r(3414),o=r(8122),i=r(88),l=r(3626),s=r(8528),u=r(9843),c=r(5302),p=r(7896);function d(e,t){var r,d=typeof t;return null==t||"boolean"===d?(0,c.Z)(t):("number"===d?l.Z:"string"===d?(r=(0,n.ZP)(t))?(t=r,a.ZP):u.Z:t instanceof n.ZP?a.ZP:t instanceof Date?i.Z:(0,p.v)(t)?p.Z:Array.isArray(t)?o.M:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?s.Z:l.Z)(e,t)}},8749:(e,t,r)=>{function n(e){return function(){return e}}r.d(t,{Z:()=>n})},5236:(e,t,r)=>{r.d(t,{JG:()=>m,ZP:()=>g});var n=r(4355),a=r(1265),o=r(3626),i=r(5720),l=r(8749),s=r(4299),u=[0,1];function c(e){return e}function p(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(0,l.Z)(isNaN(t)?NaN:.5)}function d(e,t,r){var n=e[0],a=e[1],o=t[0],i=t[1];return a<n?(n=p(a,n),o=r(i,o)):(n=p(n,a),o=r(o,i)),function(e){return o(n(e))}}function h(e,t,r){var a=Math.min(e.length,t.length)-1,o=new Array(a),i=new Array(a),l=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<a;)o[l]=p(e[l],e[l+1]),i[l]=r(t[l],t[l+1]);return function(t){var r=(0,n.ZP)(e,t,1,a)-1;return i[r](o[r](t))}}function m(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function f(){var e,t,r,n,l,p,m=u,f=u,g=a.Z,b=c;function y(){var e,t,r,a=Math.min(m.length,f.length);return b!==c&&(e=m[0],t=m[a-1],e>t&&(r=e,e=t,t=r),b=function(r){return Math.max(e,Math.min(t,r))}),n=a>2?h:d,l=p=null,v}function v(t){return null==t||isNaN(t=+t)?r:(l||(l=n(m.map(e),f,g)))(e(b(t)))}return v.invert=function(r){return b(t((p||(p=n(f,m.map(e),o.Z)))(r)))},v.domain=function(e){return arguments.length?(m=Array.from(e,s.Z),y()):m.slice()},v.range=function(e){return arguments.length?(f=Array.from(e),y()):f.slice()},v.rangeRound=function(e){return f=Array.from(e),g=i.Z,y()},v.clamp=function(e){return arguments.length?(b=!!e||c,y()):b!==c},v.interpolate=function(e){return arguments.length?(g=e,y()):g},v.unknown=function(e){return arguments.length?(r=e,v):r},function(r,n){return e=r,t=n,y()}}function g(){return f()(c,c)}},8348:(e,t,r)=>{function n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}r.d(t,{o:()=>n})},289:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(7614),a=r(5236),o=r(8348),i=r(7197);function l(e){var t=e.domain;return e.ticks=function(e){var r=t();return(0,n.ZP)(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return(0,i.Z)(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var a,o,i=t(),l=0,s=i.length-1,u=i[l],c=i[s],p=10;for(c<u&&(o=u,u=c,c=o,o=l,l=s,s=o);p-- >0;){if((o=(0,n.G9)(u,c,r))===a)return i[l]=u,i[s]=c,t(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o}a=o}return e},e}function s(){var e=(0,a.ZP)();return e.copy=function(){return(0,a.JG)(e,s())},o.o.apply(e,arguments),l(e)}},4299:(e,t,r)=>{function n(e){return+e}r.d(t,{Z:()=>n})},7197:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(7614),a=r(6196),o=r(3726),i=r(7539),l=r(7655),s=r(8195);function u(e,t,r,u){var c,p=(0,n.ly)(e,t,r);switch((u=(0,a.Z)(null==u?",f":u)).type){case"s":var d=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,o.Z)(p,d))||(u.precision=c),(0,i.jH)(u,d);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,l.Z)(p,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,s.Z)(p))||(u.precision=c-2*("%"===u.type))}return(0,i.WU)(u)}},9629:(e,t,r)=>{r.d(t,{EllipsableContent:()=>EllipsableContent});var n=r(8310),a=r.n(n),o=r(8156),i=r.n(o),l=r(4603),s=r(4915);const u=e=>i().createElement("div",{className:"ellipsable-content-prepend"},e.children);u.displayName="EllipsableContent.Prepend";const c=e=>i().createElement("div",{className:"ellipsable-content-append"},e.children);c.displayName="EllipsableContent.Append";const p=e=>{const t=i().createElement("div",{className:"ellipsable-content-content"},e.children);return null==e.tooltip?t:i().createElement(l.Tooltip,{...e.tooltipProps,content:e.tooltip},t)};p.displayName="EllipsableContent.Content";class EllipsableContent extends i().PureComponent{static displayName="EllipsableContent";static Prepend=u;static Append=c;static Content=p;renderFullContent(){let e=(0,s.z8)(this.props.children,EllipsableContent.Prepend),t=(0,s.z8)(this.props.children,EllipsableContent.Content),r=(0,s.z8)(this.props.children,EllipsableContent.Append);return null!=t||null==e&&null==r?(null==t&&(t=i().createElement(EllipsableContent.Content,null,this.props.children)),null!=this.props.tooltip&&(t=i().createElement(t.type,{...t.props,tooltip:this.props.tooltip,tooltipProps:this.props.tooltipProps})),i().createElement(i().Fragment,null,e,t,r)):(console.error("You must set a .Content alongside the .Append or .Prepend"),null)}render(){let e=a()("ellipsable-content-container align-items-center",this.props.className,{"ellipsable-with-tooltip":null!=this.props.tooltip}),t=this.renderFullContent();return null==t?null:i().createElement("div",{className:e,style:this.props.style},t)}}},3642:(e,t,r)=>{var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(8721),s=r.n(l),u=r(7269),c=r(2380),p=r(5145),d=r(8672),h=r(2722);const m=e=>{const t=i()(e?.className,"atoka-form");return a().createElement(s(),{...e,className:t},e.children)};m.displayName="Form",m.Control=c.N,m.Label=u.l,m.Checkbox=p.z,m.Radio=d.w,m.File=s().File,m.Switch=s().Switch,m.Help=h.y,m.Group=s().Group},5145:(e,t,r)=>{r.d(t,{z:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(8721),s=r.n(l);const u=e=>{const t=i()("atoka-form-checkbox",e?.className);return a().createElement(s().Check,{type:"checkbox",...e,custom:!0,className:t,label:e.label??""})};u.displayName="FormCheckbox"},2380:(e,t,r)=>{r.d(t,{N:()=>p});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(1082),s=r.n(l),u=r(7605);const c=a().forwardRef((({size:e="md",...t},r)=>{const n=i()("atoka-form-control",t?.className,{disabled:t.disabled});return a().createElement(s(),{as:t.as,rows:t.rows,cols:t.cols,placeholder:t.placeholder,className:n,disabled:t.disabled,readOnly:t.readOnly,value:t.value,onChange:t.onChange,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,defaultValue:t.defaultValue,size:"md"===e?void 0:e,type:t.type,id:t.id,isValid:t.isValid,isInvalid:t.isInvalid,ref:r,autoComplete:"off"},t.children)}));c.displayName="FormControlComponent";const p=c;p.FeedBack=u.t,p.displayName="FormControl"},7605:(e,t,r)=>{r.d(t,{t:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(1082),s=r.n(l);const u=a().memo((({show:e=!0,...t})=>{const r=i()(t?.className,"atoka-form-control-feedback",{"d-block":e});return a().createElement(s().Feedback,{type:t.type,className:r},t.children)}));u.displayName="FormControlFeedBack"},2722:(e,t,r)=>{r.d(t,{y:()=>u});var n=r(8763),a=r.n(n),o=r(8156),i=r.n(o),l=r(8310),s=r.n(l);const u=i().memo((({children:e,...t})=>{const r=s()("d-block",t?.className);return i().createElement(a(),{bsPrefix:"atoka-form-help",className:r},e)}));u.displayName="FormHelp"},7269:(e,t,r)=>{r.d(t,{l:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(8721),s=r.n(l);const u=a().memo((e=>{const t=i()(e?.className,"atoka-form-label");return a().createElement(s().Label,{className:t},e.children)}));u.displayName="FormLabel"},8672:(e,t,r)=>{r.d(t,{w:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(8721),s=r.n(l);const u=e=>{const t=i()(e?.className,"atoka-form-radio");return a().createElement(s().Check,{type:"radio",...e,custom:!0,className:t,label:e.label??""})};u.displayName="FormRadio"},1219:(e,t,r)=>{r.r(t),r.d(t,{Funnel:()=>Funnel});var n=r(8156),a=r.n(n),o=r(4915),i=r(7540),l=r(9179),s=r(8310),u=r.n(s),c=r(1358),p=r(9274),d=r(2394);const h=6,m=a().memo((({item:e,numberToStringFormatter:t,fontSize:r=11})=>{let n=e.data?.value,o=e.data.label??"",l=e.width/h,s=(0,d.Hp)(o,l),u=e.y1+e.y0+30,c=`${(0,d.lV)(o)}-data-label`;return a().createElement("text",{key:c,className:c,x:e.x0,y:u,fill:i.de},a().createElement("tspan",{fontSize:r,x:e.x0,y:u-r},s),a().createElement("tspan",{fontSize:r,fill:"black",fontWeight:"bold",x:e.x0,y:u+3},t?.(n)??n))}));m.displayName="SVGDataLabel";class FunnelUI extends a().Component{static displayName="FunnelUI";marginBottom=60;renderDataLabels=e=>a().createElement(a().Fragment,null,e.parts.map(this.renderSVGDataLabel));renderEmptyPart=e=>a().createElement("line",{onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,key:`${e.data.label}-empty`,x1:e.x0,y1:e.y,x2:e.x1,y2:e.y,stroke:e.color});renderEmptyParts=e=>a().createElement(a().Fragment,null,e.parts.map(this.renderEmptyPart));renderSinkDataLabels=e=>a().createElement(c.StatisticsSVGLegend,{data:this.props.sinkData,x:0,y:e.height+this.marginBottom-8,valueFormat:this.props.numberToStringFormatter});renderSVGDataLabel=e=>a().createElement(m,{key:`${e.data.label}-data`,item:e,numberToStringFormatter:this.props.numberToStringFormatter});getRenderTooltip=e=>(this.props.renderTooltip??(0,p.getRenderStatisticsTooltip)({tooltipDataLabelKey:"value",tooltipDataTitleKey:"id",tooltipDataValueKey:"percentage",numberToStringFormatter:this.props.tooltipValueFormat??this.props.numberToStringFormatter,withColor:!0}))(e.part);render(){const e=this.props.isZeroData?[this.renderEmptyParts]:["parts"],t=u()("funnel-container w-100 h-100",this.props.className);return e.push(this.renderDataLabels,this.renderSinkDataLabels),a().createElement("div",{id:this.props.id,className:t,ref:this.props.chartRef},a().createElement(l.ResponsiveFunnel,{layers:e,shapeBlending:.25,isInteractive:!0,data:this.props.data,colors:this.props.colors,direction:"horizontal",margin:{top:0,right:0,bottom:this.marginBottom,left:0},borderWidth:1,borderOpacity:1,labelColor:{from:"color",modifiers:[["darker",3]]},enableBeforeSeparators:!1,enableAfterSeparators:!1,currentBorderWidth:0,tooltip:this.getRenderTooltip}))}}class Funnel extends a().Component{static displayName="Funnel";static defaultProps={colors:[i.WV,i.Ls,i.P3,i.p5]};constructor(e){super(e),this.state={data:[],sinkData:[],colors:[]}}shouldComponentUpdate(e){return!(0,o.vZ)(this.props,e)}getComponentSetup(){let{data:e,sinkData:t}=this.separateDataFromSinkData(),r=e.reduce(((e,t)=>e+t.value),0);return{data:e,sinkData:t,colors:(0,i.vA)(e.length,this.props.colors),isZeroData:0===r}}separateDataFromSinkData(){let e=[],t=[];return(this.props?.data??[]).forEach((r=>{r.isSinkState?t.push(r):e.push({id:r.label,value:r.value,label:r.label,percentage:r.percentage})})),{data:e,sinkData:t}}render(){return a().createElement(FunnelUI,{...this.getComponentSetup(),chartRef:this.props.chartRef,id:this.props.id,numberToStringFormatter:this.props.numberToStringFormatter,className:this.props.className,tooltipValueFormat:this.props.tooltipValueFormat})}}},1358:(e,t,r)=>{r.d(t,{StatisticsSVGLegend:()=>StatisticsSVGLegend});var n=r(8156),a=r.n(n),o=r(4394),i=r.n(o),l=r(3915),s=r.n(l),u=r(8310),c=r.n(u),p=r(5315),d=r.n(p),h=r(1326),m=r(5692),f=r(9629),g=r(2394),b=r(5909);class StatisticsLegendItem extends a().PureComponent{static displayName="StatisticsLegendItem";renderRightBlock(){let e=[this.renderValue(),this.renderPercentage()].filter((e=>null!=e));return 0===e.length?null:a().createElement(f.EllipsableContent.Append,null,e)}renderValue(){let{legendDataValueKey:e,numberToStringFormatter:t,data:r}=this.props;if(null==e||null==r[e])return null;let n=r[e],o=t?t(+n):String(n);return a().createElement("div",{key:"value-container",className:"value-container font-weight-bold text-nowrap"},o)}renderPercentage(){let{legendDataPercentageKey:e,data:t}=this.props;if(null==e||null==t[e])return null;const r=(0,b.Ow)(+t[e]);return a().createElement("div",{key:"percentage-container",className:"percentage-container ml-1"},r)}renderOtherLabel(e){return(0,g.Wq)(e.label)?String(e?.id??""):e.label}renderLabel(){let{legendDataLabelKey:e,data:t,otherId:r}=this.props;return t.id===r?this.renderOtherLabel(t):null==e?null:t?.[e]}render(){let{columnNumber:e,color:t,data:r}=this.props,n=c()("legend-item px-1",{"flex-basis-0":"horizontal"===this.props.layout});return a().createElement(d(),{sm:24/e,className:n,key:`legend-item-${r.id}`},a().createElement(f.EllipsableContent,{className:"label-container w-100 justify-content-between"},a().createElement(f.EllipsableContent.Content,null,a().createElement(m.FontAwesomeIcon,{icon:h.faCircle,color:t,className:"mr-1"}),this.renderLabel()),this.renderRightBlock()))}}a().memo((({data:e,otherId:t,colors:r,layout:n="vertical",columnNumber:o=2,numberToStringFormatter:l,legendDataLabelKey:u,legendDataValueKey:c,legendDataPercentageKey:p})=>{function d(e,i){let{id:s}=e,d=s===t?r?.[r.length-1]:r?.[i];return a().createElement(StatisticsLegendItem,{data:e,numberToStringFormatter:l,legendDataValueKey:c,legendDataLabelKey:u,legendDataPercentageKey:p,color:d,otherId:t,key:s+d,columnNumber:o,layout:n})}let h=e.filter((e=>0!==e.value||e.id!==t));return"horizontal"===n?a().createElement("div",{className:"legend-container"},h.map(d)):a().createElement(i(),{className:"legend-container"},a().createElement(s(),{className:"w-100"},h.map(d)))})).displayName="StatisticsLegend";var y=r(7540);class StatisticsSVGLegend extends a().PureComponent{static displayName="StatisticsSVGLegend";static defaultProps={dy:0,fontSize:11,colors:[]};renderSVGDataInfoBit=(e,t)=>{let r=e.label??"",n=this.renderPercentage(e),o=this.renderCircle(this.props.colors?.[t]);return a().createElement(a().Fragment,{key:`${e.label}-legend-data`},o,a().createElement("text",{x:this.props.x,y:this.props.y,fill:y.de,fontSize:this.props.fontSize,key:`${e.label}-legend-data`},a().createElement("tspan",{dx:null==o?0:10},this.props.labelFormat?.(r)??r),a().createElement("tspan",{x:this.getRightElementX(),dx:5,fill:"black",fontWeight:"bold",textAnchor:"end"},this.props.valueFormat?.(e.value)??e.value),n))};renderSVGDataInfoBitMoreItems=(e,t)=>{let r=e.label??"",n=this.renderPercentage(e),o=this.renderCircle(this.props.colors?.[t]);return a().createElement(a().Fragment,{key:`${e.label}-legend-data-items`},o,a().createElement("tspan",{dx:0===t||null!=o?0:10,fill:y.de},this.props.labelFormat?.(r)??r),a().createElement("tspan",{dx:5,fill:"black",fontWeight:"bold"},this.props.valueFormat?.(e.value)??e.value),n)};renderCircle(e){return null==e?null:a().createElement("circle",{cx:this.props.x,cy:this.props.y-3,r:"5",fill:e})}renderPercentage(e){let t=null!=e.percentage?(0,b.Ow)(e.percentage):null;return null==t?null:a().createElement("tspan",{x:this.getRightElementX(),dx:5,fill:this.props.colors?.[0]},t)}getRightElementX(){let e=this.props.width;if(null!=e)return(0===this.props.x?e/2:e)-18}removeItemIfNoValue(e){return e.filter((e=>null!==e.value))}render(){let e=this.removeItemIfNoValue(this.props.data);return e?.length>1?a().createElement("g",null,a().createElement("text",{x:this.props.x,y:this.props.y,dy:this.props.dy,fill:y.de,fontSize:this.props.fontSize,key:"legend-data-bit",className:"legend-data-bit"},e.map(this.renderSVGDataInfoBitMoreItems))):a().createElement("g",null,e.map(this.renderSVGDataInfoBit))}}},9274:(e,t,r)=>{r.d(t,{StatisticsTooltip:()=>s,getRenderStatisticsTooltip:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(5909);function s(e){function t(){let{tooltipDataLabelKey:t,numberToStringFormatter:r,data:a}=e,o=n(t,a);if(null!=o)return null==r?String(o):"number"==typeof o?r(o):o}function r(){let{tooltipDataValueKey:t,data:r}=e,a=n(t,r);if(null!=a)return"number"==typeof a?(0,l.Ow)(a):a}function n(e,t){return null==e?void 0:t?.[e]}let o=i()("statistics-tooltip",e?.className),s=null==e.color?null:a().createElement("span",{className:"tooltip-rectangle",style:{background:e.color}});return a().createElement("div",{className:o},a().createElement("div",{className:"d-flex align-items-center"},s,a().createElement("span",{className:"text-left"},function(){let{tooltipDataTitleKey:t,data:r,otherId:a,otherLabel:o}=e,i=n(t,r);return i===a?o??a:i?String(i):void 0}())),function(){let n=[{value:t(),key:e.tooltipDataLabelKey,className:"label"},{value:r(),key:e.tooltipDataValueKey,className:"value"}].filter((e=>null!=e.value)).map((e=>a().createElement("span",{key:String(e.key),className:e.className},e.value)));return 0===n.length?null:a().createElement("div",{className:"d-flex justify-content-between"},n)}(),e.children)}function u({tooltipDataLabelKey:e,tooltipDataValueKey:t,tooltipDataTitleKey:r,otherId:n,otherLabel:o,numberToStringFormatter:i,withColor:l,className:u="tooltip-background"}){return c=>a().createElement(s,{otherId:n,otherLabel:o,numberToStringFormatter:i,data:c.data,tooltipDataLabelKey:e,tooltipDataTitleKey:r,tooltipDataValueKey:t,className:u??"",color:l?c.color:void 0})}s.displayName="StatisticsTooltip"},4603:(e,t,r)=>{r.d(t,{Tooltip:()=>u});var n=r(8156),a=r.n(n),o=r(8310),i=r.n(o),l=r(6043),s=r.n(l);const u=a().memo((e=>{let t=document.querySelector(".bs4-v3-external-container"),r=e.placement??"top",n=i()("tooltip atoka-tooltip",e.className,{"top bs-tooltip-top":0===r.indexOf("top"),"right bs-tooltip-right":0===r.indexOf("right"),"bottom bs-tooltip-bottom":0===r.indexOf("bottom"),"left bs-tooltip-left":0===r.indexOf("left")});const{content:o,...l}=e;return a().createElement(s(),{...l,container:t,overlay:({arrowProps:e,...t})=>{const{show:r,...i}=t;return a().createElement("div",{...i,className:n,role:"tooltip"},a().createElement("div",{className:"tooltip-inner"},a().createElement("div",{className:"arrow arrow-back",...e}),o,a().createElement("div",{className:"arrow arrow-front",...e})))}},e.children)}));u.displayName="Tooltip"},5909:(e,t,r)=>{r.d(t,{Ow:()=>n});r(4915);function n(e){return`${parseInt(e?.toFixed?.(0),10)}%`}},7540:(e,t,r)=>{r.d(t,{vA:()=>a,WV:()=>i,Ls:()=>l,P3:()=>s,p5:()=>u,de:()=>c});var n=r(289);function a(e,t=["#82CA9D","#F6EA25","#F7977A"]){const r=[];if(0===e)return;let a=(0,n.Z)(),i=o(t.length,t.length),l=o(e,t.length);a=a.domain(i).range(t);for(let t=0;t<e;t++)r.push(a(l[t]));return r}function o(e,t){let r=[];r.push(0);for(let n=0;n<e-2;n++){let a=Number(t/e*(n+1));r.push(parseFloat(a.toFixed(2)))}return r.push(t),r}let i="#AFD1E0",l="#94C2DA",s="#6E9DB5",u="rgb(31, 88, 113)",c="#717171"},2394:(e,t,r)=>{function n(e){if(null==e)return!0;try{return null!==e.match(/^\s*$/)}catch(e){return!0}}function a(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",r=new RegExp(t.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,"-").replace(r,(e=>"aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------".charAt(t.indexOf(e)))).replace(/&/g,"-and-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function o(e,t){return null==e?"":e.length>t?`${e.substr(0,t-1)}…`:e}r.d(t,{Wq:()=>n,lV:()=>a,Hp:()=>o})},4915:(e,t,r)=>{r.d(t,{z8:()=>o,vZ:()=>l});r(5692);var n=r(8156),a=r.n(n);r(3642);function o(e,t){return function(e,t){let r=[];return a().Children.forEach(e,(e=>{e?.type===t&&r.push(e)})),r}(e,t)?.[0]??null}function i(e){return"object"==typeof e&&null!=e}function l(e,t){if(e===t)return!0;if(i(e)&&i(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;let r;for(r in e)if(!l(e[r],t[r]))return!1;return!0}return!1}},1326:t=>{t.exports=e},5692:e=>{e.exports=t},9179:e=>{e.exports=r},8310:e=>{e.exports=n},8156:e=>{e.exports=a},5315:e=>{e.exports=o},4394:e=>{e.exports=i},8721:e=>{e.exports=l},1082:e=>{e.exports=s},8763:e=>{e.exports=u},6043:e=>{e.exports=c},3915:e=>{e.exports=p}},m={};function f(e){var t=m[e];if(void 0!==t)return t.exports;var r=m[e]={exports:{}};return h[e](r,r.exports,f),r.exports}f.m=h,d=[],f.O=(e,t,r,n)=>{if(!t){var a=1/0;for(s=0;s<d.length;s++){for(var[t,r,n]=d[s],o=!0,i=0;i<t.length;i++)(!1&n||a>=n)&&Object.keys(f.O).every((e=>f.O[e](t[i])))?t.splice(i--,1):(o=!1,n<a&&(a=n));if(o){d.splice(s--,1);var l=r();void 0!==l&&(e=l)}}return e}n=n||0;for(var s=d.length;s>0&&d[s-1][2]>n;s--)d[s]=d[s-1];d[s]=[t,r,n]},f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2494:0,3099:0,1338:0,9811:0,2823:0,5116:0};f.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[o,i,l]=r,s=0;if(o.some((t=>0!==e[t]))){for(n in i)f.o(i,n)&&(f.m[n]=i[n]);if(l)var u=l(f)}for(t&&t(r);s<o.length;s++)a=o[s],f.o(e,a)&&e[a]&&e[a][0](),e[o[s]]=0;return f.O(u)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var g=f.O(void 0,[5116],(()=>f(1219)));return g=f.O(g)})()}));
package/Gauge/index.js CHANGED
@@ -1 +1 @@
1
- !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText"],r):"object"==typeof exports?exports["atoka-design-system"]=r(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):t["atoka-design-system"]=r(t["@fortawesome/react-fontawesome"],t.classnames,t.react,t["react-bootstrap/Form"],t["react-bootstrap/FormControl"],t["react-bootstrap/FormText"])}(self,(function(t,r,e,n,a,i){return(()=>{"use strict";var o,s={1077:(t,r,e)=>{function n(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}e.d(r,{Z:()=>n})},4355:(t,r,e)=>{e.d(r,{ZP:()=>u});var n=e(1077),a=e(9173),i=e(2921);const o=(0,a.Z)(n.Z),s=o.right,u=(o.left,(0,a.Z)(i.Z).center,s)},9173:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(1077);function a(t){let r=t,e=t;function a(t,r,n,a){for(null==n&&(n=0),null==a&&(a=t.length);n<a;){const i=n+a>>>1;e(t[i],r)<0?n=i+1:a=i}return n}return 1===t.length&&(r=(r,e)=>t(r)-e,e=function(t){return(r,e)=>(0,n.Z)(t(r),e)}(t)),{left:a,center:function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.length);const o=a(t,e,n,i-1);return o>n&&r(t[o-1],e)>-r(t[o],e)?o-1:o},right:function(t,r,n,a){for(null==n&&(n=0),null==a&&(a=t.length);n<a;){const i=n+a>>>1;e(t[i],r)>0?a=i:n=i+1}return n}}}},2921:(t,r,e)=>{function n(t){return null===t?NaN:+t}e.d(r,{Z:()=>n})},7614:(t,r,e)=>{e.d(r,{ZP:()=>o,G9:()=>s,ly:()=>u});var n=Math.sqrt(50),a=Math.sqrt(10),i=Math.sqrt(2);function o(t,r,e){var n,a,i,o,u=-1;if(e=+e,(t=+t)===(r=+r)&&e>0)return[t];if((n=r<t)&&(a=t,t=r,r=a),0===(o=s(t,r,e))||!isFinite(o))return[];if(o>0){let e=Math.round(t/o),n=Math.round(r/o);for(e*o<t&&++e,n*o>r&&--n,i=new Array(a=n-e+1);++u<a;)i[u]=(e+u)*o}else{o=-o;let e=Math.round(t*o),n=Math.round(r*o);for(e/o<t&&++e,n/o>r&&--n,i=new Array(a=n-e+1);++u<a;)i[u]=(e+u)/o}return n&&i.reverse(),i}function s(t,r,e){var o=(r-t)/Math.max(0,e),s=Math.floor(Math.log(o)/Math.LN10),u=o/Math.pow(10,s);return s>=0?(u>=n?10:u>=a?5:u>=i?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=n?10:u>=a?5:u>=i?2:1)}function u(t,r,e){var o=Math.abs(r-t)/Math.max(0,e),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),u=o/s;return u>=n?s*=10:u>=a?s*=5:u>=i&&(s*=2),r<t?-s:s}},6372:(t,r,e)=>{e.d(r,{ZP:()=>w,B8:()=>k});var n=e(4087);function a(){}var i=.7,o=1/i,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),f=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),g=new RegExp("^rgba\\("+[l,l,l,u]+"\\)$"),p=new RegExp("^hsl\\("+[u,l,l]+"\\)$"),m=new RegExp("^hsla\\("+[u,l,l,u]+"\\)$"),b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function w(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=c.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?M(r):3===e?new N(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Z(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Z(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=h.exec(t))?new N(r[1],r[2],r[3],1):(r=d.exec(t))?new N(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=f.exec(t))?Z(r[1],r[2],r[3],r[4]):(r=g.exec(t))?Z(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=p.exec(t))?E(r[1],r[2]/100,r[3]/100,1):(r=m.exec(t))?E(r[1],r[2]/100,r[3]/100,r[4]):b.hasOwnProperty(t)?M(b[t]):"transparent"===t?new N(NaN,NaN,NaN,0):null}function M(t){return new N(t>>16&255,t>>8&255,255&t,1)}function Z(t,r,e,n){return n<=0&&(t=r=e=NaN),new N(t,r,e,n)}function x(t){return t instanceof a||(t=w(t)),t?new N((t=t.rgb()).r,t.g,t.b,t.opacity):new N}function k(t,r,e,n){return 1===arguments.length?x(t):new N(t,r,e,null==n?1:n)}function N(t,r,e,n){this.r=+t,this.g=+r,this.b=+e,this.opacity=+n}function F(){return"#"+C(this.r)+C(this.g)+C(this.b)}function P(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function E(t,r,e,n){return n<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new S(t,r,e,n)}function A(t){if(t instanceof S)return new S(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=w(t)),!t)return new S;if(t instanceof S)return t;var r=(t=t.rgb()).r/255,e=t.g/255,n=t.b/255,i=Math.min(r,e,n),o=Math.max(r,e,n),s=NaN,u=o-i,l=(o+i)/2;return u?(s=r===o?(e-n)/u+6*(e<n):e===o?(n-r)/u+2:(r-e)/u+4,u/=l<.5?o+i:2-o-i,s*=60):u=l>0&&l<1?0:s,new S(s,u,l,t.opacity)}function S(t,r,e,n){this.h=+t,this.s=+r,this.l=+e,this.opacity=+n}function j(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}(0,n.Z)(a,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:v,toString:v}),(0,n.Z)(N,k,(0,n.l)(a,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new N(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new N(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:F,formatHex:F,formatRgb:P,toString:P})),(0,n.Z)(S,(function(t,r,e,n){return 1===arguments.length?A(t):new S(t,r,e,null==n?1:n)}),(0,n.l)(a,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new S(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new S(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),r=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,n=e+(e<.5?e:1-e)*r,a=2*e-n;return new N(j(t>=240?t-240:t+120,a,n),j(t,a,n),j(t<120?t+240:t-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},4087:(t,r,e)=>{function n(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function a(t,r){var e=Object.create(t.prototype);for(var n in r)e[n]=r[n];return e}e.d(r,{Z:()=>n,l:()=>a})},7539:(t,r,e)=>{e.d(r,{WU:()=>a,jH:()=>i});var n,a,i,o,s=e(4463);o={decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"},n=(0,s.Z)(o),a=n.format,i=n.formatPrefix},3085:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(8885);function a(t){return(t=(0,n.V)(Math.abs(t)))?t[1]:NaN}},8885:(t,r,e)=>{function n(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function a(t,r){if((e=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"))<0)return null;var e,n=t.slice(0,e);return[n.length>1?n[0]+n.slice(2):n,+t.slice(e+1)]}e.d(r,{Z:()=>n,V:()=>a})},8129:(t,r,e)=>{function n(t,r){return function(e,n){for(var a=e.length,i=[],o=0,s=t[0],u=0;a>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),i.push(e.substring(a-=s,a+s)),!((u+=s+1)>n));)s=t[o=(o+1)%t.length];return i.reverse().join(r)}}e.d(r,{Z:()=>n})},576:(t,r,e)=>{function n(t){return function(r){return r.replace(/[0-9]/g,(function(r){return t[+r]}))}}e.d(r,{Z:()=>n})},2994:(t,r,e)=>{e.d(r,{y:()=>n,Z:()=>i});var n,a=e(8885);function i(t,r){var e=(0,a.V)(t,r);if(!e)return t+"";var i=e[0],o=e[1],s=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.V)(t,Math.max(0,r+s-1))[0]}},2043:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(8885);function a(t,r){var e=(0,n.V)(t,r);if(!e)return t+"";var a=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}},6196:(t,r,e)=>{e.d(r,{Z:()=>a});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(t){if(!(r=n.exec(t)))throw new Error("invalid format: "+t);var r;return new i({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function i(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}a.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},1485:(t,r,e)=>{function n(t){t:for(var r,e=t.length,n=1,a=-1;n<e;++n)switch(t[n]){case".":a=r=n;break;case"0":0===a&&(a=n),r=n;break;default:if(!+t[n])break t;a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(r+1):t}e.d(r,{Z:()=>n})},8814:(t,r,e)=>{e.d(r,{Z:()=>o});var n=e(8885),a=e(2994),i=e(2043);const o={"%":function(t,r){return(100*t).toFixed(r)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:n.Z,e:function(t,r){return t.toExponential(r)},f:function(t,r){return t.toFixed(r)},g:function(t,r){return t.toPrecision(r)},o:function(t){return Math.round(t).toString(8)},p:function(t,r){return(0,i.Z)(100*t,r)},r:i.Z,s:a.Z,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},9890:(t,r,e)=>{function n(t){return t}e.d(r,{Z:()=>n})},4463:(t,r,e)=>{e.d(r,{Z:()=>f});var n=e(3085),a=e(8129),i=e(576),o=e(6196),s=e(1485),u=e(8814),l=e(2994),c=e(9890),h=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function f(t){var r=void 0===t.grouping||void 0===t.thousands?c.Z:(0,a.Z)(h.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",g=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c.Z:(0,i.Z)(h.call(t.numerals,String)),m=void 0===t.percent?"%":t.percent+"",b=void 0===t.minus?"-":t.minus+"",y=void 0===t.nan?"NaN":t.nan+"";function v(t){var n=(t=(0,o.Z)(t)).fill,a=t.align,i=t.sign,c=t.symbol,h=t.zero,v=t.width,w=t.comma,M=t.precision,Z=t.trim,x=t.type;"n"===x?(w=!0,x="g"):u.Z[x]||(void 0===M&&(M=12),Z=!0,x="g"),(h||"0"===n&&"="===a)&&(h=!0,n="0",a="=");var k="$"===c?e:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",N="$"===c?f:/[%p]/.test(x)?m:"",F=u.Z[x],P=/[defgprs%]/.test(x);function C(t){var e,o,u,c=k,f=N;if("c"===x)f=F(t)+f,t="";else{var m=(t=+t)<0||1/t<0;if(t=isNaN(t)?y:F(Math.abs(t),M),Z&&(t=(0,s.Z)(t)),m&&0==+t&&"+"!==i&&(m=!1),c=(m?"("===i?i:b:"-"===i||"("===i?"":i)+c,f=("s"===x?d[8+l.y/3]:"")+f+(m&&"("===i?")":""),P)for(e=-1,o=t.length;++e<o;)if(48>(u=t.charCodeAt(e))||u>57){f=(46===u?g+t.slice(e+1):t.slice(e))+f,t=t.slice(0,e);break}}w&&!h&&(t=r(t,1/0));var C=c.length+t.length+f.length,E=C<v?new Array(v-C+1).join(n):"";switch(w&&h&&(t=r(E+t,E.length?v-f.length:1/0),E=""),a){case"<":t=c+t+f+E;break;case"=":t=c+E+t+f;break;case"^":t=E.slice(0,C=E.length>>1)+c+t+f+E.slice(C);break;default:t=E+c+t+f}return p(t)}return M=void 0===M?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M)),C.toString=function(){return t+""},C}return{format:v,formatPrefix:function(t,r){var e=v(((t=(0,o.Z)(t)).type="f",t)),a=3*Math.max(-8,Math.min(8,Math.floor((0,n.Z)(r)/3))),i=Math.pow(10,-a),s=d[8+a/3];return function(t){return e(i*t)+s}}}}},8195:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(3085);function a(t){return Math.max(0,-(0,n.Z)(Math.abs(t)))}},3726:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(3085);function a(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,n.Z)(r)/3)))-(0,n.Z)(Math.abs(t)))}},7655:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(3085);function a(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,(0,n.Z)(r)-(0,n.Z)(t))+1}},8122:(t,r,e)=>{e.d(r,{M:()=>a});var n=e(1265);function a(t,r){var e,a=r?r.length:0,i=t?Math.min(a,t.length):0,o=new Array(i),s=new Array(a);for(e=0;e<i;++e)o[e]=(0,n.Z)(t[e],r[e]);for(;e<a;++e)s[e]=r[e];return function(t){for(e=0;e<i;++e)s[e]=o[e](t);return s}}},9885:(t,r,e)=>{function n(t,r,e,n,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*r+(4-6*i+3*o)*e+(1+3*t+3*i-3*o)*n+o*a)/6}function a(t){var r=t.length-1;return function(e){var a=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),i=t[a],o=t[a+1],s=a>0?t[a-1]:2*i-o,u=a<r-1?t[a+2]:2*o-i;return n((e-a/r)*r,s,i,o,u)}}e.d(r,{t:()=>n,Z:()=>a})},4306:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(9885);function a(t){var r=t.length;return function(e){var a=Math.floor(((e%=1)<0?++e:e)*r),i=t[(a+r-1)%r],o=t[a%r],s=t[(a+1)%r],u=t[(a+2)%r];return(0,n.t)((e-a/r)*r,i,o,s,u)}}},5910:(t,r,e)=>{e.d(r,{yi:()=>i,ZP:()=>o});var n=e(5302);function a(t,r){return function(e){return t+e*r}}function i(t){return 1==(t=+t)?o:function(r,e){return e-r?function(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(n){return Math.pow(t+n*r,e)}}(r,e,t):(0,n.Z)(isNaN(r)?e:r)}}function o(t,r){var e=r-t;return e?a(t,e):(0,n.Z)(isNaN(t)?r:t)}},5302:(t,r,e)=>{e.d(r,{Z:()=>n});const n=t=>()=>t},88:(t,r,e)=>{function n(t,r){var e=new Date;return t=+t,r=+r,function(n){return e.setTime(t*(1-n)+r*n),e}}e.d(r,{Z:()=>n})},3626:(t,r,e)=>{function n(t,r){return t=+t,r=+r,function(e){return t*(1-e)+r*e}}e.d(r,{Z:()=>n})},7896:(t,r,e)=>{function n(t,r){r||(r=[]);var e,n=t?Math.min(r.length,t.length):0,a=r.slice();return function(i){for(e=0;e<n;++e)a[e]=t[e]*(1-i)+r[e]*i;return a}}function a(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}e.d(r,{Z:()=>n,v:()=>a})},8528:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(1265);function a(t,r){var e,a={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==r&&"object"==typeof r||(r={}),r)e in t?a[e]=(0,n.Z)(t[e],r[e]):i[e]=r[e];return function(t){for(e in a)i[e]=a[e](t);return i}}},3414:(t,r,e)=>{e.d(r,{ZP:()=>s});var n=e(6372),a=e(9885),i=e(4306),o=e(5910);const s=function t(r){var e=(0,o.yi)(r);function a(t,r){var a=e((t=(0,n.B8)(t)).r,(r=(0,n.B8)(r)).r),i=e(t.g,r.g),s=e(t.b,r.b),u=(0,o.ZP)(t.opacity,r.opacity);return function(r){return t.r=a(r),t.g=i(r),t.b=s(r),t.opacity=u(r),t+""}}return a.gamma=t,a}(1);function u(t){return function(r){var e,a,i=r.length,o=new Array(i),s=new Array(i),u=new Array(i);for(e=0;e<i;++e)a=(0,n.B8)(r[e]),o[e]=a.r||0,s[e]=a.g||0,u[e]=a.b||0;return o=t(o),s=t(s),u=t(u),a.opacity=1,function(t){return a.r=o(t),a.g=s(t),a.b=u(t),a+""}}}u(a.Z),u(i.Z)},5720:(t,r,e)=>{function n(t,r){return t=+t,r=+r,function(e){return Math.round(t*(1-e)+r*e)}}e.d(r,{Z:()=>n})},9843:(t,r,e)=>{e.d(r,{Z:()=>o});var n=e(3626),a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=new RegExp(a.source,"g");function o(t,r){var e,o,s,u=a.lastIndex=i.lastIndex=0,l=-1,c=[],h=[];for(t+="",r+="";(e=a.exec(t))&&(o=i.exec(r));)(s=o.index)>u&&(s=r.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(e=e[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,h.push({i:l,x:(0,n.Z)(e,o)})),u=i.lastIndex;return u<r.length&&(s=r.slice(u),c[l]?c[l]+=s:c[++l]=s),c.length<2?h[0]?function(t){return function(r){return t(r)+""}}(h[0].x):function(t){return function(){return t}}(r):(r=h.length,function(t){for(var e,n=0;n<r;++n)c[(e=h[n]).i]=e.x(t);return c.join("")})}},1265:(t,r,e)=>{e.d(r,{Z:()=>d});var n=e(6372),a=e(3414),i=e(8122),o=e(88),s=e(3626),u=e(8528),l=e(9843),c=e(5302),h=e(7896);function d(t,r){var e,d=typeof r;return null==r||"boolean"===d?(0,c.Z)(r):("number"===d?s.Z:"string"===d?(e=(0,n.ZP)(r))?(r=e,a.ZP):l.Z:r instanceof n.ZP?a.ZP:r instanceof Date?o.Z:(0,h.v)(r)?h.Z:Array.isArray(r)?i.M:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?u.Z:s.Z)(t,r)}},8749:(t,r,e)=>{function n(t){return function(){return t}}e.d(r,{Z:()=>n})},5236:(t,r,e)=>{e.d(r,{JG:()=>g,ZP:()=>m});var n=e(4355),a=e(1265),i=e(3626),o=e(5720),s=e(8749),u=e(4299),l=[0,1];function c(t){return t}function h(t,r){return(r-=t=+t)?function(e){return(e-t)/r}:(0,s.Z)(isNaN(r)?NaN:.5)}function d(t,r,e){var n=t[0],a=t[1],i=r[0],o=r[1];return a<n?(n=h(a,n),i=e(o,i)):(n=h(n,a),i=e(i,o)),function(t){return i(n(t))}}function f(t,r,e){var a=Math.min(t.length,r.length)-1,i=new Array(a),o=new Array(a),s=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),r=r.slice().reverse());++s<a;)i[s]=h(t[s],t[s+1]),o[s]=e(r[s],r[s+1]);return function(r){var e=(0,n.ZP)(t,r,1,a)-1;return o[e](i[e](r))}}function g(t,r){return r.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function p(){var t,r,e,n,s,h,g=l,p=l,m=a.Z,b=c;function y(){var t,r,e,a=Math.min(g.length,p.length);return b!==c&&(t=g[0],r=g[a-1],t>r&&(e=t,t=r,r=e),b=function(e){return Math.max(t,Math.min(r,e))}),n=a>2?f:d,s=h=null,v}function v(r){return null==r||isNaN(r=+r)?e:(s||(s=n(g.map(t),p,m)))(t(b(r)))}return v.invert=function(e){return b(r((h||(h=n(p,g.map(t),i.Z)))(e)))},v.domain=function(t){return arguments.length?(g=Array.from(t,u.Z),y()):g.slice()},v.range=function(t){return arguments.length?(p=Array.from(t),y()):p.slice()},v.rangeRound=function(t){return p=Array.from(t),m=o.Z,y()},v.clamp=function(t){return arguments.length?(b=!!t||c,y()):b!==c},v.interpolate=function(t){return arguments.length?(m=t,y()):m},v.unknown=function(t){return arguments.length?(e=t,v):e},function(e,n){return t=e,r=n,y()}}function m(){return p()(c,c)}},8348:(t,r,e)=>{function n(t,r){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(r).domain(t)}return this}e.d(r,{o:()=>n})},289:(t,r,e)=>{e.d(r,{Z:()=>u});var n=e(7614),a=e(5236),i=e(8348),o=e(7197);function s(t){var r=t.domain;return t.ticks=function(t){var e=r();return(0,n.ZP)(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var n=r();return(0,o.Z)(n[0],n[n.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var a,i,o=r(),s=0,u=o.length-1,l=o[s],c=o[u],h=10;for(c<l&&(i=l,l=c,c=i,i=s,s=u,u=i);h-- >0;){if((i=(0,n.G9)(l,c,e))===a)return o[s]=l,o[u]=c,r(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}a=i}return t},t}function u(){var t=(0,a.ZP)();return t.copy=function(){return(0,a.JG)(t,u())},i.o.apply(t,arguments),s(t)}},4299:(t,r,e)=>{function n(t){return+t}e.d(r,{Z:()=>n})},7197:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(7614),a=e(6196),i=e(3726),o=e(7539),s=e(7655),u=e(8195);function l(t,r,e,l){var c,h=(0,n.ly)(t,r,e);switch((l=(0,a.Z)(null==l?",f":l)).type){case"s":var d=Math.max(Math.abs(t),Math.abs(r));return null!=l.precision||isNaN(c=(0,i.Z)(h,d))||(l.precision=c),(0,o.jH)(l,d);case"":case"e":case"g":case"p":case"r":null!=l.precision||isNaN(c=(0,s.Z)(h,Math.max(Math.abs(t),Math.abs(r))))||(l.precision=c-("e"===l.type));break;case"f":case"%":null!=l.precision||isNaN(c=(0,u.Z)(h))||(l.precision=c-2*("%"===l.type))}return(0,o.WU)(l)}},3642:(t,r,e)=>{var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(8721),u=e.n(s),l=e(7269),c=e(2380),h=e(5145),d=e(8672),f=e(2722);const g=t=>{const r=o()(t?.className,"atoka-form");return a().createElement(u(),{...t,className:r},t.children)};g.displayName="Form",g.Control=c.N,g.Label=l.l,g.Checkbox=h.z,g.Radio=d.w,g.File=u().File,g.Switch=u().Switch,g.Help=f.y,g.Group=u().Group},5145:(t,r,e)=>{e.d(r,{z:()=>l});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(8721),u=e.n(s);const l=t=>{const r=o()("atoka-form-checkbox",t?.className);return a().createElement(u().Check,{type:"checkbox",...t,custom:!0,className:r,label:t.label??""})};l.displayName="FormCheckbox"},2380:(t,r,e)=>{e.d(r,{N:()=>h});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(1082),u=e.n(s),l=e(7605);const c=a().forwardRef((({size:t="md",...r},e)=>{const n=o()("atoka-form-control",r?.className,{disabled:r.disabled});return a().createElement(u(),{as:r.as,rows:r.rows,cols:r.cols,placeholder:r.placeholder,className:n,disabled:r.disabled,readOnly:r.readOnly,value:r.value,onChange:r.onChange,onKeyPress:r.onKeyPress,onKeyDown:r.onKeyDown,defaultValue:r.defaultValue,size:"md"===t?void 0:t,type:r.type,id:r.id,isValid:r.isValid,isInvalid:r.isInvalid,ref:e,autoComplete:"off"},r.children)}));c.displayName="FormControlComponent";const h=c;h.FeedBack=l.t,h.displayName="FormControl"},7605:(t,r,e)=>{e.d(r,{t:()=>l});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(1082),u=e.n(s);const l=a().memo((({show:t=!0,...r})=>{const e=o()(r?.className,"atoka-form-control-feedback",{"d-block":t});return a().createElement(u().Feedback,{type:r.type,className:e},r.children)}));l.displayName="FormControlFeedBack"},2722:(t,r,e)=>{e.d(r,{y:()=>l});var n=e(8763),a=e.n(n),i=e(8156),o=e.n(i),s=e(8310),u=e.n(s);const l=o().memo((({children:t,...r})=>{const e=u()("d-block",r?.className);return o().createElement(a(),{bsPrefix:"atoka-form-help",className:e},t)}));l.displayName="FormHelp"},7269:(t,r,e)=>{e.d(r,{l:()=>l});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(8721),u=e.n(s);const l=a().memo((t=>{const r=o()(t?.className,"atoka-form-label");return a().createElement(u().Label,{className:r},t.children)}));l.displayName="FormLabel"},8672:(t,r,e)=>{e.d(r,{w:()=>l});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(8721),u=e.n(s);const l=t=>{const r=o()(t?.className,"atoka-form-radio");return a().createElement(u().Check,{type:"radio",...t,custom:!0,className:r,label:t.label??""})};l.displayName="FormRadio"},2766:(t,r,e)=>{e.r(r),e.d(r,{GaugeLinear:()=>GaugeLinear});var n=e(8156),a=e.n(n),i=e(4589);class GaugeLinear extends a().PureComponent{static displayName="GaugeLinear";padding=4;barHeight=4;arrowPadding=2;arrowWidth=8;arrowHeight=6;get height(){return this.props.height??20}get barWidth(){return(this.props.width-this.padding)/this.colors.length-this.padding}get colors(){if(void 0!==this.props.colors)return this.props.colors;const t=(0,i.generateRangeColor)(this.props.stepsCount??0)??[];return this.props.reverseDefaultColors&&t.reverse(),t}renderColors(){return this.colors.map(((t,r)=>{const e={fill:t};return a().createElement("g",{key:t},a().createElement("rect",{width:this.barWidth,height:this.barHeight,style:e,x:r*(this.barWidth+this.padding)+this.padding}))}))}renderArrow(){const t={fill:i.black},r=this.props.currentStep*(this.barWidth+this.padding)+this.padding+this.barWidth/2,e=[[r,this.barHeight+this.arrowPadding],[r-this.arrowWidth/2,this.barHeight+this.arrowPadding+this.arrowHeight],[r+this.arrowWidth/2,this.barHeight+this.arrowPadding+this.arrowHeight]].map((t=>`${t[0]},${t[1]}`));return a().createElement("polygon",{points:e.join(" "),style:t})}render(){if(0===this.colors.length)throw new Error('Invalid empty "colors"');if(this.props.currentStep>=this.colors.length||this.props.currentStep<0)throw new Error('Invalid "currentStep"');return a().createElement("svg",{width:this.props.width,height:this.height},this.renderColors(),this.renderArrow())}}},5909:(t,r,e)=>{e(4915)},7540:(t,r,e)=>{e.d(r,{vA:()=>a,Sn:()=>o});var n=e(289);function a(t,r=["#82CA9D","#F6EA25","#F7977A"]){const e=[];if(0===t)return;let a=(0,n.Z)(),o=i(r.length,r.length),s=i(t,r.length);a=a.domain(o).range(r);for(let r=0;r<t;r++)e.push(a(s[r]));return e}function i(t,r){let e=[];e.push(0);for(let n=0;n<t-2;n++){let a=Number(r/t*(n+1));e.push(parseFloat(a.toFixed(2)))}return e.push(r),e}let o="#222222"},4915:(t,r,e)=>{e(5692),e(8156),e(3642)},4589:(t,r,e)=>{e.d(r,{black:()=>n.Sn,generateRangeColor:()=>n.vA});e(5909),e(4915);var n=e(7540)},5692:r=>{r.exports=t},8310:t=>{t.exports=r},8156:t=>{t.exports=e},8721:t=>{t.exports=n},1082:t=>{t.exports=a},8763:t=>{t.exports=i}},u={};function l(t){var r=u[t];if(void 0!==r)return r.exports;var e=u[t]={exports:{}};return s[t](e,e.exports,l),e.exports}l.m=s,o=[],l.O=(t,r,e,n)=>{if(!r){var a=1/0;for(c=0;c<o.length;c++){for(var[r,e,n]=o[c],i=!0,s=0;s<r.length;s++)(!1&n||a>=n)&&Object.keys(l.O).every((t=>l.O[t](r[s])))?r.splice(s--,1):(i=!1,n<a&&(a=n));if(i){o.splice(c--,1);var u=e();void 0!==u&&(t=u)}}return t}n=n||0;for(var c=o.length;c>0&&o[c-1][2]>n;c--)o[c]=o[c-1];o[c]=[r,e,n]},l.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return l.d(r,{a:r}),r},l.d=(t,r)=>{for(var e in r)l.o(r,e)&&!l.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},l.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={1977:0,8173:0};l.O.j=r=>0===t[r];var r=(r,e)=>{var n,a,[i,o,s]=e,u=0;if(i.some((r=>0!==t[r]))){for(n in o)l.o(o,n)&&(l.m[n]=o[n]);if(s)var c=s(l)}for(r&&r(e);u<i.length;u++)a=i[u],l.o(t,a)&&t[a]&&t[a][0](),t[i[u]]=0;return l.O(c)},e=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];e.forEach(r.bind(null,0)),e.push=r.bind(null,e.push.bind(e))})();var c=l.O(void 0,[8173],(()=>l(2766)));return c=l.O(c)})()}));
1
+ !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText"],r):"object"==typeof exports?exports["atoka-design-system"]=r(require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText")):t["atoka-design-system"]=r(t["@fortawesome/react-fontawesome"],t.classnames,t.react,t["react-bootstrap/Form"],t["react-bootstrap/FormControl"],t["react-bootstrap/FormText"])}(self,(function(t,r,e,n,a,i){return(()=>{"use strict";var o,s={1077:(t,r,e)=>{function n(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}e.d(r,{Z:()=>n})},4355:(t,r,e)=>{e.d(r,{ZP:()=>u});var n=e(1077),a=e(9173),i=e(2921);const o=(0,a.Z)(n.Z),s=o.right,u=(o.left,(0,a.Z)(i.Z).center,s)},9173:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(1077);function a(t){let r=t,e=t;function a(t,r,n,a){for(null==n&&(n=0),null==a&&(a=t.length);n<a;){const i=n+a>>>1;e(t[i],r)<0?n=i+1:a=i}return n}return 1===t.length&&(r=(r,e)=>t(r)-e,e=function(t){return(r,e)=>(0,n.Z)(t(r),e)}(t)),{left:a,center:function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.length);const o=a(t,e,n,i-1);return o>n&&r(t[o-1],e)>-r(t[o],e)?o-1:o},right:function(t,r,n,a){for(null==n&&(n=0),null==a&&(a=t.length);n<a;){const i=n+a>>>1;e(t[i],r)>0?a=i:n=i+1}return n}}}},2921:(t,r,e)=>{function n(t){return null===t?NaN:+t}e.d(r,{Z:()=>n})},7614:(t,r,e)=>{e.d(r,{ZP:()=>o,G9:()=>s,ly:()=>u});var n=Math.sqrt(50),a=Math.sqrt(10),i=Math.sqrt(2);function o(t,r,e){var n,a,i,o,u=-1;if(e=+e,(t=+t)===(r=+r)&&e>0)return[t];if((n=r<t)&&(a=t,t=r,r=a),0===(o=s(t,r,e))||!isFinite(o))return[];if(o>0){let e=Math.round(t/o),n=Math.round(r/o);for(e*o<t&&++e,n*o>r&&--n,i=new Array(a=n-e+1);++u<a;)i[u]=(e+u)*o}else{o=-o;let e=Math.round(t*o),n=Math.round(r*o);for(e/o<t&&++e,n/o>r&&--n,i=new Array(a=n-e+1);++u<a;)i[u]=(e+u)/o}return n&&i.reverse(),i}function s(t,r,e){var o=(r-t)/Math.max(0,e),s=Math.floor(Math.log(o)/Math.LN10),u=o/Math.pow(10,s);return s>=0?(u>=n?10:u>=a?5:u>=i?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=n?10:u>=a?5:u>=i?2:1)}function u(t,r,e){var o=Math.abs(r-t)/Math.max(0,e),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),u=o/s;return u>=n?s*=10:u>=a?s*=5:u>=i&&(s*=2),r<t?-s:s}},6372:(t,r,e)=>{e.d(r,{ZP:()=>w,B8:()=>k});var n=e(4087);function a(){}var i=.7,o=1/i,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),f=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),g=new RegExp("^rgba\\("+[l,l,l,u]+"\\)$"),p=new RegExp("^hsl\\("+[u,l,l]+"\\)$"),m=new RegExp("^hsla\\("+[u,l,l,u]+"\\)$"),b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function w(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=c.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?M(r):3===e?new N(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Z(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Z(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=h.exec(t))?new N(r[1],r[2],r[3],1):(r=d.exec(t))?new N(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=f.exec(t))?Z(r[1],r[2],r[3],r[4]):(r=g.exec(t))?Z(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=p.exec(t))?E(r[1],r[2]/100,r[3]/100,1):(r=m.exec(t))?E(r[1],r[2]/100,r[3]/100,r[4]):b.hasOwnProperty(t)?M(b[t]):"transparent"===t?new N(NaN,NaN,NaN,0):null}function M(t){return new N(t>>16&255,t>>8&255,255&t,1)}function Z(t,r,e,n){return n<=0&&(t=r=e=NaN),new N(t,r,e,n)}function x(t){return t instanceof a||(t=w(t)),t?new N((t=t.rgb()).r,t.g,t.b,t.opacity):new N}function k(t,r,e,n){return 1===arguments.length?x(t):new N(t,r,e,null==n?1:n)}function N(t,r,e,n){this.r=+t,this.g=+r,this.b=+e,this.opacity=+n}function F(){return"#"+C(this.r)+C(this.g)+C(this.b)}function P(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function E(t,r,e,n){return n<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new S(t,r,e,n)}function A(t){if(t instanceof S)return new S(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=w(t)),!t)return new S;if(t instanceof S)return t;var r=(t=t.rgb()).r/255,e=t.g/255,n=t.b/255,i=Math.min(r,e,n),o=Math.max(r,e,n),s=NaN,u=o-i,l=(o+i)/2;return u?(s=r===o?(e-n)/u+6*(e<n):e===o?(n-r)/u+2:(r-e)/u+4,u/=l<.5?o+i:2-o-i,s*=60):u=l>0&&l<1?0:s,new S(s,u,l,t.opacity)}function S(t,r,e,n){this.h=+t,this.s=+r,this.l=+e,this.opacity=+n}function j(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}(0,n.Z)(a,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:v,toString:v}),(0,n.Z)(N,k,(0,n.l)(a,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new N(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new N(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:F,formatHex:F,formatRgb:P,toString:P})),(0,n.Z)(S,(function(t,r,e,n){return 1===arguments.length?A(t):new S(t,r,e,null==n?1:n)}),(0,n.l)(a,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new S(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new S(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),r=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,n=e+(e<.5?e:1-e)*r,a=2*e-n;return new N(j(t>=240?t-240:t+120,a,n),j(t,a,n),j(t<120?t+240:t-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},4087:(t,r,e)=>{function n(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function a(t,r){var e=Object.create(t.prototype);for(var n in r)e[n]=r[n];return e}e.d(r,{Z:()=>n,l:()=>a})},7539:(t,r,e)=>{e.d(r,{WU:()=>a,jH:()=>i});var n,a,i,o,s=e(4463);o={decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"},n=(0,s.Z)(o),a=n.format,i=n.formatPrefix},3085:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(8885);function a(t){return(t=(0,n.V)(Math.abs(t)))?t[1]:NaN}},8885:(t,r,e)=>{function n(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function a(t,r){if((e=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"))<0)return null;var e,n=t.slice(0,e);return[n.length>1?n[0]+n.slice(2):n,+t.slice(e+1)]}e.d(r,{Z:()=>n,V:()=>a})},8129:(t,r,e)=>{function n(t,r){return function(e,n){for(var a=e.length,i=[],o=0,s=t[0],u=0;a>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),i.push(e.substring(a-=s,a+s)),!((u+=s+1)>n));)s=t[o=(o+1)%t.length];return i.reverse().join(r)}}e.d(r,{Z:()=>n})},576:(t,r,e)=>{function n(t){return function(r){return r.replace(/[0-9]/g,(function(r){return t[+r]}))}}e.d(r,{Z:()=>n})},2994:(t,r,e)=>{e.d(r,{y:()=>n,Z:()=>i});var n,a=e(8885);function i(t,r){var e=(0,a.V)(t,r);if(!e)return t+"";var i=e[0],o=e[1],s=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.V)(t,Math.max(0,r+s-1))[0]}},2043:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(8885);function a(t,r){var e=(0,n.V)(t,r);if(!e)return t+"";var a=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}},6196:(t,r,e)=>{e.d(r,{Z:()=>a});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(t){if(!(r=n.exec(t)))throw new Error("invalid format: "+t);var r;return new i({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function i(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}a.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},1485:(t,r,e)=>{function n(t){t:for(var r,e=t.length,n=1,a=-1;n<e;++n)switch(t[n]){case".":a=r=n;break;case"0":0===a&&(a=n),r=n;break;default:if(!+t[n])break t;a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(r+1):t}e.d(r,{Z:()=>n})},8814:(t,r,e)=>{e.d(r,{Z:()=>o});var n=e(8885),a=e(2994),i=e(2043);const o={"%":function(t,r){return(100*t).toFixed(r)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:n.Z,e:function(t,r){return t.toExponential(r)},f:function(t,r){return t.toFixed(r)},g:function(t,r){return t.toPrecision(r)},o:function(t){return Math.round(t).toString(8)},p:function(t,r){return(0,i.Z)(100*t,r)},r:i.Z,s:a.Z,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},9890:(t,r,e)=>{function n(t){return t}e.d(r,{Z:()=>n})},4463:(t,r,e)=>{e.d(r,{Z:()=>f});var n=e(3085),a=e(8129),i=e(576),o=e(6196),s=e(1485),u=e(8814),l=e(2994),c=e(9890),h=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function f(t){var r=void 0===t.grouping||void 0===t.thousands?c.Z:(0,a.Z)(h.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",g=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c.Z:(0,i.Z)(h.call(t.numerals,String)),m=void 0===t.percent?"%":t.percent+"",b=void 0===t.minus?"-":t.minus+"",y=void 0===t.nan?"NaN":t.nan+"";function v(t){var n=(t=(0,o.Z)(t)).fill,a=t.align,i=t.sign,c=t.symbol,h=t.zero,v=t.width,w=t.comma,M=t.precision,Z=t.trim,x=t.type;"n"===x?(w=!0,x="g"):u.Z[x]||(void 0===M&&(M=12),Z=!0,x="g"),(h||"0"===n&&"="===a)&&(h=!0,n="0",a="=");var k="$"===c?e:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",N="$"===c?f:/[%p]/.test(x)?m:"",F=u.Z[x],P=/[defgprs%]/.test(x);function C(t){var e,o,u,c=k,f=N;if("c"===x)f=F(t)+f,t="";else{var m=(t=+t)<0||1/t<0;if(t=isNaN(t)?y:F(Math.abs(t),M),Z&&(t=(0,s.Z)(t)),m&&0==+t&&"+"!==i&&(m=!1),c=(m?"("===i?i:b:"-"===i||"("===i?"":i)+c,f=("s"===x?d[8+l.y/3]:"")+f+(m&&"("===i?")":""),P)for(e=-1,o=t.length;++e<o;)if(48>(u=t.charCodeAt(e))||u>57){f=(46===u?g+t.slice(e+1):t.slice(e))+f,t=t.slice(0,e);break}}w&&!h&&(t=r(t,1/0));var C=c.length+t.length+f.length,E=C<v?new Array(v-C+1).join(n):"";switch(w&&h&&(t=r(E+t,E.length?v-f.length:1/0),E=""),a){case"<":t=c+t+f+E;break;case"=":t=c+E+t+f;break;case"^":t=E.slice(0,C=E.length>>1)+c+t+f+E.slice(C);break;default:t=E+c+t+f}return p(t)}return M=void 0===M?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M)),C.toString=function(){return t+""},C}return{format:v,formatPrefix:function(t,r){var e=v(((t=(0,o.Z)(t)).type="f",t)),a=3*Math.max(-8,Math.min(8,Math.floor((0,n.Z)(r)/3))),i=Math.pow(10,-a),s=d[8+a/3];return function(t){return e(i*t)+s}}}}},8195:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(3085);function a(t){return Math.max(0,-(0,n.Z)(Math.abs(t)))}},3726:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(3085);function a(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,n.Z)(r)/3)))-(0,n.Z)(Math.abs(t)))}},7655:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(3085);function a(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,(0,n.Z)(r)-(0,n.Z)(t))+1}},8122:(t,r,e)=>{e.d(r,{M:()=>a});var n=e(1265);function a(t,r){var e,a=r?r.length:0,i=t?Math.min(a,t.length):0,o=new Array(i),s=new Array(a);for(e=0;e<i;++e)o[e]=(0,n.Z)(t[e],r[e]);for(;e<a;++e)s[e]=r[e];return function(t){for(e=0;e<i;++e)s[e]=o[e](t);return s}}},9885:(t,r,e)=>{function n(t,r,e,n,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*r+(4-6*i+3*o)*e+(1+3*t+3*i-3*o)*n+o*a)/6}function a(t){var r=t.length-1;return function(e){var a=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),i=t[a],o=t[a+1],s=a>0?t[a-1]:2*i-o,u=a<r-1?t[a+2]:2*o-i;return n((e-a/r)*r,s,i,o,u)}}e.d(r,{t:()=>n,Z:()=>a})},4306:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(9885);function a(t){var r=t.length;return function(e){var a=Math.floor(((e%=1)<0?++e:e)*r),i=t[(a+r-1)%r],o=t[a%r],s=t[(a+1)%r],u=t[(a+2)%r];return(0,n.t)((e-a/r)*r,i,o,s,u)}}},5910:(t,r,e)=>{e.d(r,{yi:()=>i,ZP:()=>o});var n=e(5302);function a(t,r){return function(e){return t+e*r}}function i(t){return 1==(t=+t)?o:function(r,e){return e-r?function(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(n){return Math.pow(t+n*r,e)}}(r,e,t):(0,n.Z)(isNaN(r)?e:r)}}function o(t,r){var e=r-t;return e?a(t,e):(0,n.Z)(isNaN(t)?r:t)}},5302:(t,r,e)=>{e.d(r,{Z:()=>n});const n=t=>()=>t},88:(t,r,e)=>{function n(t,r){var e=new Date;return t=+t,r=+r,function(n){return e.setTime(t*(1-n)+r*n),e}}e.d(r,{Z:()=>n})},3626:(t,r,e)=>{function n(t,r){return t=+t,r=+r,function(e){return t*(1-e)+r*e}}e.d(r,{Z:()=>n})},7896:(t,r,e)=>{function n(t,r){r||(r=[]);var e,n=t?Math.min(r.length,t.length):0,a=r.slice();return function(i){for(e=0;e<n;++e)a[e]=t[e]*(1-i)+r[e]*i;return a}}function a(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}e.d(r,{Z:()=>n,v:()=>a})},8528:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(1265);function a(t,r){var e,a={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==r&&"object"==typeof r||(r={}),r)e in t?a[e]=(0,n.Z)(t[e],r[e]):i[e]=r[e];return function(t){for(e in a)i[e]=a[e](t);return i}}},3414:(t,r,e)=>{e.d(r,{ZP:()=>s});var n=e(6372),a=e(9885),i=e(4306),o=e(5910);const s=function t(r){var e=(0,o.yi)(r);function a(t,r){var a=e((t=(0,n.B8)(t)).r,(r=(0,n.B8)(r)).r),i=e(t.g,r.g),s=e(t.b,r.b),u=(0,o.ZP)(t.opacity,r.opacity);return function(r){return t.r=a(r),t.g=i(r),t.b=s(r),t.opacity=u(r),t+""}}return a.gamma=t,a}(1);function u(t){return function(r){var e,a,i=r.length,o=new Array(i),s=new Array(i),u=new Array(i);for(e=0;e<i;++e)a=(0,n.B8)(r[e]),o[e]=a.r||0,s[e]=a.g||0,u[e]=a.b||0;return o=t(o),s=t(s),u=t(u),a.opacity=1,function(t){return a.r=o(t),a.g=s(t),a.b=u(t),a+""}}}u(a.Z),u(i.Z)},5720:(t,r,e)=>{function n(t,r){return t=+t,r=+r,function(e){return Math.round(t*(1-e)+r*e)}}e.d(r,{Z:()=>n})},9843:(t,r,e)=>{e.d(r,{Z:()=>o});var n=e(3626),a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=new RegExp(a.source,"g");function o(t,r){var e,o,s,u=a.lastIndex=i.lastIndex=0,l=-1,c=[],h=[];for(t+="",r+="";(e=a.exec(t))&&(o=i.exec(r));)(s=o.index)>u&&(s=r.slice(u,s),c[l]?c[l]+=s:c[++l]=s),(e=e[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,h.push({i:l,x:(0,n.Z)(e,o)})),u=i.lastIndex;return u<r.length&&(s=r.slice(u),c[l]?c[l]+=s:c[++l]=s),c.length<2?h[0]?function(t){return function(r){return t(r)+""}}(h[0].x):function(t){return function(){return t}}(r):(r=h.length,function(t){for(var e,n=0;n<r;++n)c[(e=h[n]).i]=e.x(t);return c.join("")})}},1265:(t,r,e)=>{e.d(r,{Z:()=>d});var n=e(6372),a=e(3414),i=e(8122),o=e(88),s=e(3626),u=e(8528),l=e(9843),c=e(5302),h=e(7896);function d(t,r){var e,d=typeof r;return null==r||"boolean"===d?(0,c.Z)(r):("number"===d?s.Z:"string"===d?(e=(0,n.ZP)(r))?(r=e,a.ZP):l.Z:r instanceof n.ZP?a.ZP:r instanceof Date?o.Z:(0,h.v)(r)?h.Z:Array.isArray(r)?i.M:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?u.Z:s.Z)(t,r)}},8749:(t,r,e)=>{function n(t){return function(){return t}}e.d(r,{Z:()=>n})},5236:(t,r,e)=>{e.d(r,{JG:()=>g,ZP:()=>m});var n=e(4355),a=e(1265),i=e(3626),o=e(5720),s=e(8749),u=e(4299),l=[0,1];function c(t){return t}function h(t,r){return(r-=t=+t)?function(e){return(e-t)/r}:(0,s.Z)(isNaN(r)?NaN:.5)}function d(t,r,e){var n=t[0],a=t[1],i=r[0],o=r[1];return a<n?(n=h(a,n),i=e(o,i)):(n=h(n,a),i=e(i,o)),function(t){return i(n(t))}}function f(t,r,e){var a=Math.min(t.length,r.length)-1,i=new Array(a),o=new Array(a),s=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),r=r.slice().reverse());++s<a;)i[s]=h(t[s],t[s+1]),o[s]=e(r[s],r[s+1]);return function(r){var e=(0,n.ZP)(t,r,1,a)-1;return o[e](i[e](r))}}function g(t,r){return r.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function p(){var t,r,e,n,s,h,g=l,p=l,m=a.Z,b=c;function y(){var t,r,e,a=Math.min(g.length,p.length);return b!==c&&(t=g[0],r=g[a-1],t>r&&(e=t,t=r,r=e),b=function(e){return Math.max(t,Math.min(r,e))}),n=a>2?f:d,s=h=null,v}function v(r){return null==r||isNaN(r=+r)?e:(s||(s=n(g.map(t),p,m)))(t(b(r)))}return v.invert=function(e){return b(r((h||(h=n(p,g.map(t),i.Z)))(e)))},v.domain=function(t){return arguments.length?(g=Array.from(t,u.Z),y()):g.slice()},v.range=function(t){return arguments.length?(p=Array.from(t),y()):p.slice()},v.rangeRound=function(t){return p=Array.from(t),m=o.Z,y()},v.clamp=function(t){return arguments.length?(b=!!t||c,y()):b!==c},v.interpolate=function(t){return arguments.length?(m=t,y()):m},v.unknown=function(t){return arguments.length?(e=t,v):e},function(e,n){return t=e,r=n,y()}}function m(){return p()(c,c)}},8348:(t,r,e)=>{function n(t,r){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(r).domain(t)}return this}e.d(r,{o:()=>n})},289:(t,r,e)=>{e.d(r,{Z:()=>u});var n=e(7614),a=e(5236),i=e(8348),o=e(7197);function s(t){var r=t.domain;return t.ticks=function(t){var e=r();return(0,n.ZP)(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var n=r();return(0,o.Z)(n[0],n[n.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var a,i,o=r(),s=0,u=o.length-1,l=o[s],c=o[u],h=10;for(c<l&&(i=l,l=c,c=i,i=s,s=u,u=i);h-- >0;){if((i=(0,n.G9)(l,c,e))===a)return o[s]=l,o[u]=c,r(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}a=i}return t},t}function u(){var t=(0,a.ZP)();return t.copy=function(){return(0,a.JG)(t,u())},i.o.apply(t,arguments),s(t)}},4299:(t,r,e)=>{function n(t){return+t}e.d(r,{Z:()=>n})},7197:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(7614),a=e(6196),i=e(3726),o=e(7539),s=e(7655),u=e(8195);function l(t,r,e,l){var c,h=(0,n.ly)(t,r,e);switch((l=(0,a.Z)(null==l?",f":l)).type){case"s":var d=Math.max(Math.abs(t),Math.abs(r));return null!=l.precision||isNaN(c=(0,i.Z)(h,d))||(l.precision=c),(0,o.jH)(l,d);case"":case"e":case"g":case"p":case"r":null!=l.precision||isNaN(c=(0,s.Z)(h,Math.max(Math.abs(t),Math.abs(r))))||(l.precision=c-("e"===l.type));break;case"f":case"%":null!=l.precision||isNaN(c=(0,u.Z)(h))||(l.precision=c-2*("%"===l.type))}return(0,o.WU)(l)}},3642:(t,r,e)=>{var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(8721),u=e.n(s),l=e(7269),c=e(2380),h=e(5145),d=e(8672),f=e(2722);const g=t=>{const r=o()(t?.className,"atoka-form");return a().createElement(u(),{...t,className:r},t.children)};g.displayName="Form",g.Control=c.N,g.Label=l.l,g.Checkbox=h.z,g.Radio=d.w,g.File=u().File,g.Switch=u().Switch,g.Help=f.y,g.Group=u().Group},5145:(t,r,e)=>{e.d(r,{z:()=>l});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(8721),u=e.n(s);const l=t=>{const r=o()("atoka-form-checkbox",t?.className);return a().createElement(u().Check,{type:"checkbox",...t,custom:!0,className:r,label:t.label??""})};l.displayName="FormCheckbox"},2380:(t,r,e)=>{e.d(r,{N:()=>h});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(1082),u=e.n(s),l=e(7605);const c=a().forwardRef((({size:t="md",...r},e)=>{const n=o()("atoka-form-control",r?.className,{disabled:r.disabled});return a().createElement(u(),{as:r.as,rows:r.rows,cols:r.cols,placeholder:r.placeholder,className:n,disabled:r.disabled,readOnly:r.readOnly,value:r.value,onChange:r.onChange,onKeyPress:r.onKeyPress,onKeyDown:r.onKeyDown,defaultValue:r.defaultValue,size:"md"===t?void 0:t,type:r.type,id:r.id,isValid:r.isValid,isInvalid:r.isInvalid,ref:e,autoComplete:"off"},r.children)}));c.displayName="FormControlComponent";const h=c;h.FeedBack=l.t,h.displayName="FormControl"},7605:(t,r,e)=>{e.d(r,{t:()=>l});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(1082),u=e.n(s);const l=a().memo((({show:t=!0,...r})=>{const e=o()(r?.className,"atoka-form-control-feedback",{"d-block":t});return a().createElement(u().Feedback,{type:r.type,className:e},r.children)}));l.displayName="FormControlFeedBack"},2722:(t,r,e)=>{e.d(r,{y:()=>l});var n=e(8763),a=e.n(n),i=e(8156),o=e.n(i),s=e(8310),u=e.n(s);const l=o().memo((({children:t,...r})=>{const e=u()("d-block",r?.className);return o().createElement(a(),{bsPrefix:"atoka-form-help",className:e},t)}));l.displayName="FormHelp"},7269:(t,r,e)=>{e.d(r,{l:()=>l});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(8721),u=e.n(s);const l=a().memo((t=>{const r=o()(t?.className,"atoka-form-label");return a().createElement(u().Label,{className:r},t.children)}));l.displayName="FormLabel"},8672:(t,r,e)=>{e.d(r,{w:()=>l});var n=e(8156),a=e.n(n),i=e(8310),o=e.n(i),s=e(8721),u=e.n(s);const l=t=>{const r=o()(t?.className,"atoka-form-radio");return a().createElement(u().Check,{type:"radio",...t,custom:!0,className:r,label:t.label??""})};l.displayName="FormRadio"},2766:(t,r,e)=>{e.r(r),e.d(r,{GaugeLinear:()=>GaugeLinear});var n=e(8156),a=e.n(n),i=e(4589);class GaugeLinear extends a().PureComponent{static displayName="GaugeLinear";padding=4;barHeight=4;arrowPadding=2;arrowWidth=8;arrowHeight=6;get height(){return this.props.height??20}get barWidth(){return(this.props.width-this.padding)/this.colors.length-this.padding}get colors(){if(void 0!==this.props.colors)return this.props.colors;const t=(0,i.generateRangeColor)(this.props.stepsCount??0)??[];return this.props.reverseDefaultColors&&t.reverse(),t}renderColors(){return this.colors.map(((t,r)=>{const e={fill:t};return a().createElement("g",{key:t},a().createElement("rect",{width:this.barWidth,height:this.barHeight,style:e,x:r*(this.barWidth+this.padding)+this.padding}))}))}renderArrow(){const t={fill:i.black},r=this.props.currentStep*(this.barWidth+this.padding)+this.padding+this.barWidth/2,e=[[r,this.barHeight+this.arrowPadding],[r-this.arrowWidth/2,this.barHeight+this.arrowPadding+this.arrowHeight],[r+this.arrowWidth/2,this.barHeight+this.arrowPadding+this.arrowHeight]].map((t=>`${t[0]},${t[1]}`));return a().createElement("polygon",{points:e.join(" "),style:t})}render(){if(0===this.colors.length)throw new Error('Invalid empty "colors"');if(this.props.currentStep>=this.colors.length||this.props.currentStep<0)throw new Error('Invalid "currentStep"');return a().createElement("svg",{width:this.props.width,height:this.height},this.renderColors(),this.renderArrow())}}},5909:(t,r,e)=>{e(4915)},7540:(t,r,e)=>{e.d(r,{vA:()=>a,Sn:()=>o});var n=e(289);function a(t,r=["#82CA9D","#F6EA25","#F7977A"]){const e=[];if(0===t)return;let a=(0,n.Z)(),o=i(r.length,r.length),s=i(t,r.length);a=a.domain(o).range(r);for(let r=0;r<t;r++)e.push(a(s[r]));return e}function i(t,r){let e=[];e.push(0);for(let n=0;n<t-2;n++){let a=Number(r/t*(n+1));e.push(parseFloat(a.toFixed(2)))}return e.push(r),e}let o="#222222"},4915:(t,r,e)=>{e(5692),e(8156),e(3642)},4589:(t,r,e)=>{e.d(r,{black:()=>n.Sn,generateRangeColor:()=>n.vA});e(5909),e(4915);var n=e(7540)},5692:r=>{r.exports=t},8310:t=>{t.exports=r},8156:t=>{t.exports=e},8721:t=>{t.exports=n},1082:t=>{t.exports=a},8763:t=>{t.exports=i}},u={};function l(t){var r=u[t];if(void 0!==r)return r.exports;var e=u[t]={exports:{}};return s[t](e,e.exports,l),e.exports}l.m=s,o=[],l.O=(t,r,e,n)=>{if(!r){var a=1/0;for(c=0;c<o.length;c++){for(var[r,e,n]=o[c],i=!0,s=0;s<r.length;s++)(!1&n||a>=n)&&Object.keys(l.O).every((t=>l.O[t](r[s])))?r.splice(s--,1):(i=!1,n<a&&(a=n));if(i){o.splice(c--,1);var u=e();void 0!==u&&(t=u)}}return t}n=n||0;for(var c=o.length;c>0&&o[c-1][2]>n;c--)o[c]=o[c-1];o[c]=[r,e,n]},l.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return l.d(r,{a:r}),r},l.d=(t,r)=>{for(var e in r)l.o(r,e)&&!l.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},l.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={1977:0,5116:0};l.O.j=r=>0===t[r];var r=(r,e)=>{var n,a,[i,o,s]=e,u=0;if(i.some((r=>0!==t[r]))){for(n in o)l.o(o,n)&&(l.m[n]=o[n]);if(s)var c=s(l)}for(r&&r(e);u<i.length;u++)a=i[u],l.o(t,a)&&t[a]&&t[a][0](),t[i[u]]=0;return l.O(c)},e=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];e.forEach(r.bind(null,0)),e.push=r.bind(null,e.push.bind(e))})();var c=l.O(void 0,[5116],(()=>l(2766)));return c=l.O(c)})()}));
package/GridCard/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-regular-svg-icons/faChevronDown","@fortawesome/pro-regular-svg-icons/faEllipsisH","@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Button","react-bootstrap/Dropdown","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/OverlayTrigger"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger")):e["atoka-design-system"]=t(e["@fortawesome/pro-regular-svg-icons/faChevronDown"],e["@fortawesome/pro-regular-svg-icons/faEllipsisH"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Button"],e["react-bootstrap/Dropdown"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/OverlayTrigger"])}(self,(function(e,t,o,r,n,a,s,l,i,c,p){return(()=>{"use strict";var d,m={4610:(e,t,o)=>{o.d(t,{Button:()=>Button});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a),l=o(8926),i=o.n(l),c=o(5692);class Button extends n().PureComponent{static displayName="Button";static defaultProps={variant:"primary",size:"md",disabled:!1,block:!1};renderIcon(e){return null==e?null:n().createElement(c.FontAwesomeIcon,{icon:e})}renderChildren(e){return null==e?null:n().createElement("span",{className:"btn-children"},e)}renderLeftSide(e,t){return null==e?null==t?null:n().createElement(c.FontAwesomeIcon,{icon:t,className:"invisible"}):n().createElement(c.FontAwesomeIcon,{icon:e})}renderRightSide(e,t){return null==t?null==e?null:n().createElement(c.FontAwesomeIcon,{icon:e,className:"invisible"}):n().createElement(c.FontAwesomeIcon,{icon:t})}renderContent(e,t){return null!=e&&null==t?this.renderIcon(e):n().createElement("div",{className:"button-content-center-container"},this.renderIcon(e),this.renderChildren(t))}render(){const{icon:e,iconLeft:t,iconRight:o,children:r,size:a,className:l,...c}=this.props,p=s()("atoka-btn",`btn-${a}`,l,{"btn-icon-only":null!=this.props.icon&&null==this.props.children});return n().createElement(i(),{className:p,...c},this.renderLeftSide(t,o),this.renderContent(e,r),this.renderRightSide(t,o))}}},192:(e,t,o)=>{o.d(t,{AtokaSimpleDropdownToggle:()=>h,Dropdown:()=>Dropdown});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a),l=o(4976),i=o.n(l);class DropdownMenu extends n().PureComponent{static displayName="DropdownMenu";static defaultProps={size:"sm"};render(){const e=s()("atoka-dropdown-menu",this.props.className,this.props.size);return n().createElement(i().Menu,{...this.props,className:e},this.props.children)}}const c=n().memo((({children:e})=>n().createElement("div",{className:"atoka-dropdown-section"},e,n().createElement(Dropdown.Divider,null))));c.displayName="DropdownSection";class Dropdown extends n().PureComponent{static displayName="DropDown";static Toggle=i().Toggle;static Menu=DropdownMenu;static Item=i().Item;static Divider=i().Divider;static Header=i().Header;static Section=c;render(){const e=s()(this.props.className,"atoka-dropdown");return n().createElement(i(),{...this.props,className:e},this.props.children)}}var p=o(3041),d=o(1349),m=o(4610);function u(e,t){const o=n().forwardRef(((e,o)=>n().createElement("div",{ref:o},n().createElement(t,{disabled:e.disabled,onClick:e.onClick},e.children))));return o.displayName=e,o}class AtokaSimpleDropdownToggleComponent extends n().Component{static displayName="AtokaSimpleDropdownToggleComponent";handleClick=e=>{e.preventDefault(),this.props.onClick(e)};render(){return n().createElement(m.Button,{variant:"secondary",size:"xs",icon:p.faEllipsisH,onClick:this.props.disabled?void 0:this.handleClick,disabled:this.props.disabled})}}class AtokaCustomDropdownToggleComponent extends n().Component{static displayName="AtokaCustomDropdownToggleComponent";handleClick=e=>{e.preventDefault(),this.props.onClick(e)};render(){return n().createElement("div",{className:"atoka-dropdown-toggle",onClick:this.props.disabled?void 0:this.handleClick},this.props.children)}}class AtokaCustomDropdownToggleWithChevronComponent extends n().Component{static displayName="AtokaCustomDropdownToggleWithChevronComponent ";handleClick=e=>{e.preventDefault(),this.props.onClick(e)};render(){let e=s()({"atoka-dropdown-toggle":!0,disabled:this.props.disabled});return n().createElement("div",{className:e,onClick:this.props.disabled?void 0:this.handleClick},this.props.children,n().createElement("div",{className:"chevron-container"},n().createElement(m.Button,{variant:"tertiary",size:"md",icon:d.faChevronDown})))}}const h=u("AtokaSimpleDropdownToggle",AtokaSimpleDropdownToggleComponent);u("AtokaCustomDropdownToggle",AtokaCustomDropdownToggleComponent),u("AtokaCustomDropdownToggleWithChevron",AtokaCustomDropdownToggleWithChevronComponent)},2439:(e,t,o)=>{o.r(t),o.d(t,{GridCard:()=>GridCard});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a),l=o(5692),i=o(8721),c=o.n(i);const p=n().memo((e=>{const t=s()(e?.className,"atoka-form-label");return n().createElement(c().Label,{className:t},e.children)}));p.displayName="FormLabel";var d=o(1082),m=o.n(d);const u=n().memo((({show:e=!0,...t})=>{const o=s()(t?.className,"atoka-form-control-feedback",{"d-block":e});return n().createElement(m().Feedback,{type:t.type,className:o},t.children)}));u.displayName="FormControlFeedBack";const h=n().forwardRef((({size:e="md",...t},o)=>{const r=s()("atoka-form-control",t?.className,{disabled:t.disabled});return n().createElement(m(),{as:t.as,rows:t.rows,cols:t.cols,placeholder:t.placeholder,className:r,disabled:t.disabled,readOnly:t.readOnly,value:t.value,onChange:t.onChange,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,defaultValue:t.defaultValue,size:"md"===e?void 0:e,type:t.type,id:t.id,isValid:t.isValid,isInvalid:t.isInvalid,ref:o,autoComplete:"off"},t.children)}));h.displayName="FormControlComponent";const C=h;C.FeedBack=u,C.displayName="FormControl";const b=e=>{const t=s()("atoka-form-checkbox",e?.className);return n().createElement(c().Check,{type:"checkbox",...e,custom:!0,className:t,label:e.label??""})};b.displayName="FormCheckbox";const f=e=>{const t=s()(e?.className,"atoka-form-radio");return n().createElement(c().Check,{type:"radio",...e,custom:!0,className:t,label:e.label??""})};f.displayName="FormRadio";var g=o(8763),v=o.n(g);const N=n().memo((({children:e,...t})=>{const o=s()("d-block",t?.className);return n().createElement(v(),{bsPrefix:"atoka-form-help",className:o},e)}));N.displayName="FormHelp";const y=e=>{const t=s()(e?.className,"atoka-form");return n().createElement(c(),{...e,className:t},e.children)};function E(e,t){return function(e,t){let o=[];return n().Children.forEach(e,(e=>{e?.type===t&&o.push(e)})),o}(e,t)?.[0]??null}y.displayName="Form",y.Control=C,y.Label=p,y.Checkbox=b,y.Radio=f,y.File=c().File,y.Switch=c().Switch,y.Help=N,y.Group=c().Group;var w=o(2938),k=o(4603);const x=e=>n().createElement("div",{className:"ellipsable-content-prepend"},e.children);x.displayName="EllipsableContent.Prepend";const D=e=>n().createElement("div",{className:"ellipsable-content-append"},e.children);D.displayName="EllipsableContent.Append";const F=e=>{const t=n().createElement("div",{className:"ellipsable-content-content"},e.children);return null==e.tooltip?t:n().createElement(k.Tooltip,{...e.tooltipProps,content:e.tooltip},t)};F.displayName="EllipsableContent.Content";class EllipsableContent extends n().PureComponent{static displayName="EllipsableContent";static Prepend=x;static Append=D;static Content=F;renderFullContent(){let e=E(this.props.children,EllipsableContent.Prepend),t=E(this.props.children,EllipsableContent.Content),o=E(this.props.children,EllipsableContent.Append);return null!=t||null==e&&null==o?(null==t&&(t=n().createElement(EllipsableContent.Content,null,this.props.children)),null!=this.props.tooltip&&(t=n().createElement(t.type,{...t.props,tooltip:this.props.tooltip,tooltipProps:this.props.tooltipProps})),n().createElement(n().Fragment,null,e,t,o)):(console.error("You must set a .Content alongside the .Append or .Prepend"),null)}render(){let e=s()("ellipsable-content-container align-items-center",this.props.className,{"ellipsable-with-tooltip":null!=this.props.tooltip}),t=this.renderFullContent();return null==t?null:n().createElement("div",{className:e,style:this.props.style},t)}}class Title extends n().PureComponent{static displayName="Title";static defaultProps={size:"xxl"};renderIcon(){if(null==this.props.icon)return null;let e=s()({"mr-2":""!==this.props.children&&null!=this.props.children});return n().createElement(l.FontAwesomeIcon,{icon:this.props.icon,className:e,fixedWidth:!0})}renderContent(){return n().createElement(n().Fragment,null,this.renderIcon(),this.props.children)}render(){const e={className:s()("title-component",this.props.className),style:this.props.style};switch(this.props.size){case"xs":return n().createElement("h6",{...e},this.renderContent());case"sm":return n().createElement("h5",{...e},this.renderContent());case"md":return n().createElement("h4",{...e},this.renderContent());case"lg":return n().createElement("h3",{...e},this.renderContent());case"xl":return n().createElement("h2",{...e},this.renderContent());default:return n().createElement("h1",{...e},this.renderContent())}}}const T=n().memo((e=>{const t=[];return n().Children.forEach(e.children,(e=>{const o=e?.type||{};"string"!=typeof o&&"displayName"in o&&"EllipsableContent"===o.displayName&&t.push(e)})),t.length>0?e.children:n().createElement(EllipsableContent,{tooltip:e.tooltip??null,tooltipProps:{delay:200,...e.tooltipProps}},n().createElement(Title,{size:"sm",className:"mb-0"},e.children))}));T.displayName="CardTitle";const P=n().memo((e=>n().createElement("div",{className:"mt-3"},e.children)));P.displayName="GridCardFooter";var S=o(192);const A=n().memo((e=>{const t=s()(e.className,"ml-1");return n().createElement("div",{className:t},n().createElement(S.Dropdown,{drop:"left"},n().createElement(S.Dropdown.Toggle,{disabled:!0===e.isDisabled,as:S.AtokaSimpleDropdownToggle}),n().createElement(S.Dropdown.Menu,null,e.children)))}));A.displayName="CardMenu";const O=n().memo((e=>n().createElement("div",{className:"d-flex align-items-center h-100"},e.children)));O.displayName="GridCardTags";class GridCardHeader extends n().PureComponent{static displayName="GridCardHeader";stopPropagation=e=>{e.stopPropagation()};renderCheckbox(){return this.props.isSelectable?n().createElement("span",{onClick:this.stopPropagation},n().createElement(y.Checkbox,{className:"checkbox-container mb-0",onChange:this.props.onSelect,checked:this.props.isSelected,id:String(this.props.id)})):null}render(){return n().createElement("div",{className:"card-title d-flex"},this.renderCheckbox(),E(this.props.children,T),n().createElement("span",{onClick:this.stopPropagation},E(this.props.children,O)),n().createElement("span",null,E(this.props.children,A)))}}const q=n().memo((e=>n().createElement("div",{className:"mt-3"},e.children)));q.displayName="GridCardContent";const I=n().memo((({children:e})=>n().createElement("div",{onClick:e=>e.stopPropagation(),className:"grid-card-actions d-flex justify-content-center"},e)));I.displayName="GridCardActions";class GridCard extends n().PureComponent{static displayName="GridCard";static Header=GridCardHeader;static Title=T;static Tags=O;static Menu=A;static Content=q;static Footer=P;static Actions=I;static defaultProps={isSelected:!1,isSelectable:!1,id:`${Math.random()}`};stopPropagation=e=>{e.stopPropagation()};handleClick=()=>{this.props.onSelect&&this.props.onSelect()};render(){const e=s()("grid-card mb-2 d-flex flex-column",this.props.className,{"is-selectable":this.props.isSelectable});return n().createElement(w.OniruCard,{padding:"md",className:e,onClick:this.handleClick},n().createElement(GridCardHeader,{...this.props},E(this.props.children,T),E(this.props.children,O),E(this.props.children,A)),E(this.props.children,q),n().createElement("span",{onClick:this.stopPropagation},E(this.props.children,P)),E(this.props.children,I))}}},2938:(e,t,o)=>{o.d(t,{OniruCard:()=>l});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a);const l=({as:e="div",padding:t,className:o,...r})=>{const a="md"===t?"p-3":"";return n().createElement(e,{...r,className:s()("oniru-card",a,o)})};l.displayName="OniruCard"},4603:(e,t,o)=>{o.d(t,{Tooltip:()=>c});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a),l=o(6043),i=o.n(l);const c=n().memo((e=>{let t=document.querySelector(".bs4-v3-external-container"),o=e.placement??"top",r=s()("tooltip atoka-tooltip",e.className,{"top bs-tooltip-top":0===o.indexOf("top"),"right bs-tooltip-right":0===o.indexOf("right"),"bottom bs-tooltip-bottom":0===o.indexOf("bottom"),"left bs-tooltip-left":0===o.indexOf("left")});const{content:a,...l}=e;return n().createElement(i(),{...l,container:t,overlay:({arrowProps:e,...t})=>{const{show:o,...s}=t;return n().createElement("div",{...s,className:r,role:"tooltip"},n().createElement("div",{className:"tooltip-inner"},n().createElement("div",{className:"arrow arrow-back",...e}),a,n().createElement("div",{className:"arrow arrow-front",...e})))}},e.children)}));c.displayName="Tooltip"},1349:t=>{t.exports=e},3041:e=>{e.exports=t},5692:e=>{e.exports=o},8310:e=>{e.exports=r},8156:e=>{e.exports=n},8926:e=>{e.exports=a},4976:e=>{e.exports=s},8721:e=>{e.exports=l},1082:e=>{e.exports=i},8763:e=>{e.exports=c},6043:e=>{e.exports=p}},u={};function h(e){var t=u[e];if(void 0!==t)return t.exports;var o=u[e]={exports:{}};return m[e](o,o.exports,h),o.exports}h.m=m,d=[],h.O=(e,t,o,r)=>{if(!t){var n=1/0;for(i=0;i<d.length;i++){for(var[t,o,r]=d[i],a=!0,s=0;s<t.length;s++)(!1&r||n>=r)&&Object.keys(h.O).every((e=>h.O[e](t[s])))?t.splice(s--,1):(a=!1,r<n&&(n=r));if(a){d.splice(i--,1);var l=o();void 0!==l&&(e=l)}}return e}r=r||0;for(var i=d.length;i>0&&d[i-1][2]>r;i--)d[i]=d[i-1];d[i]=[t,o,r]},h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var o in t)h.o(t,o)&&!h.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4975:0,6615:0,8621:0,4012:0,2823:0,8173:0};h.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[a,s,l]=o,i=0;if(a.some((t=>0!==e[t]))){for(r in s)h.o(s,r)&&(h.m[r]=s[r]);if(l)var c=l(h)}for(t&&t(o);i<a.length;i++)n=a[i],h.o(e,n)&&e[n]&&e[n][0](),e[a[i]]=0;return h.O(c)},o=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var C=h.O(void 0,[8173],(()=>h(2439)));return C=h.O(C)})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-regular-svg-icons/faChevronDown","@fortawesome/pro-regular-svg-icons/faEllipsisH","@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Button","react-bootstrap/Dropdown","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/OverlayTrigger"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-regular-svg-icons/faChevronDown"),require("@fortawesome/pro-regular-svg-icons/faEllipsisH"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Button"),require("react-bootstrap/Dropdown"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/OverlayTrigger")):e["atoka-design-system"]=t(e["@fortawesome/pro-regular-svg-icons/faChevronDown"],e["@fortawesome/pro-regular-svg-icons/faEllipsisH"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Button"],e["react-bootstrap/Dropdown"],e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/OverlayTrigger"])}(self,(function(e,t,o,r,n,a,s,l,i,c,p){return(()=>{"use strict";var d,m={4610:(e,t,o)=>{o.d(t,{Button:()=>Button});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a),l=o(8926),i=o.n(l),c=o(5692);class Button extends n().PureComponent{static displayName="Button";static defaultProps={variant:"primary",size:"md",disabled:!1,block:!1};renderIcon(e){return null==e?null:n().createElement(c.FontAwesomeIcon,{icon:e})}renderChildren(e){return null==e?null:n().createElement("span",{className:"btn-children"},e)}renderLeftSide(e,t){return null==e?null==t?null:n().createElement(c.FontAwesomeIcon,{icon:t,className:"invisible"}):n().createElement(c.FontAwesomeIcon,{icon:e})}renderRightSide(e,t){return null==t?null==e?null:n().createElement(c.FontAwesomeIcon,{icon:e,className:"invisible"}):n().createElement(c.FontAwesomeIcon,{icon:t})}renderContent(e,t){return null!=e&&null==t?this.renderIcon(e):n().createElement("div",{className:"button-content-center-container"},this.renderIcon(e),this.renderChildren(t))}render(){const{icon:e,iconLeft:t,iconRight:o,children:r,size:a,className:l,...c}=this.props,p=s()("atoka-btn",`btn-${a}`,l,{"btn-icon-only":null!=this.props.icon&&null==this.props.children});return n().createElement(i(),{className:p,...c},this.renderLeftSide(t,o),this.renderContent(e,r),this.renderRightSide(t,o))}}},192:(e,t,o)=>{o.d(t,{AtokaSimpleDropdownToggle:()=>h,Dropdown:()=>Dropdown});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a),l=o(4976),i=o.n(l);class DropdownMenu extends n().PureComponent{static displayName="DropdownMenu";static defaultProps={size:"sm"};render(){const e=s()("atoka-dropdown-menu",this.props.className,this.props.size);return n().createElement(i().Menu,{...this.props,className:e},this.props.children)}}const c=n().memo((({children:e})=>n().createElement("div",{className:"atoka-dropdown-section"},e,n().createElement(Dropdown.Divider,null))));c.displayName="DropdownSection";class Dropdown extends n().PureComponent{static displayName="DropDown";static Toggle=i().Toggle;static Menu=DropdownMenu;static Item=i().Item;static Divider=i().Divider;static Header=i().Header;static Section=c;render(){const e=s()(this.props.className,"atoka-dropdown");return n().createElement(i(),{...this.props,className:e},this.props.children)}}var p=o(3041),d=o(1349),m=o(4610);function u(e,t){const o=n().forwardRef(((e,o)=>n().createElement("div",{ref:o},n().createElement(t,{disabled:e.disabled,onClick:e.onClick},e.children))));return o.displayName=e,o}class AtokaSimpleDropdownToggleComponent extends n().Component{static displayName="AtokaSimpleDropdownToggleComponent";handleClick=e=>{e.preventDefault(),this.props.onClick(e)};render(){return n().createElement(m.Button,{variant:"secondary",size:"xs",icon:p.faEllipsisH,onClick:this.props.disabled?void 0:this.handleClick,disabled:this.props.disabled})}}class AtokaCustomDropdownToggleComponent extends n().Component{static displayName="AtokaCustomDropdownToggleComponent";handleClick=e=>{e.preventDefault(),this.props.onClick(e)};render(){return n().createElement("div",{className:"atoka-dropdown-toggle",onClick:this.props.disabled?void 0:this.handleClick},this.props.children)}}class AtokaCustomDropdownToggleWithChevronComponent extends n().Component{static displayName="AtokaCustomDropdownToggleWithChevronComponent ";handleClick=e=>{e.preventDefault(),this.props.onClick(e)};render(){let e=s()({"atoka-dropdown-toggle":!0,disabled:this.props.disabled});return n().createElement("div",{className:e,onClick:this.props.disabled?void 0:this.handleClick},this.props.children,n().createElement("div",{className:"chevron-container"},n().createElement(m.Button,{variant:"tertiary",size:"md",icon:d.faChevronDown})))}}const h=u("AtokaSimpleDropdownToggle",AtokaSimpleDropdownToggleComponent);u("AtokaCustomDropdownToggle",AtokaCustomDropdownToggleComponent),u("AtokaCustomDropdownToggleWithChevron",AtokaCustomDropdownToggleWithChevronComponent)},2439:(e,t,o)=>{o.r(t),o.d(t,{GridCard:()=>GridCard});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a),l=o(5692),i=o(8721),c=o.n(i);const p=n().memo((e=>{const t=s()(e?.className,"atoka-form-label");return n().createElement(c().Label,{className:t},e.children)}));p.displayName="FormLabel";var d=o(1082),m=o.n(d);const u=n().memo((({show:e=!0,...t})=>{const o=s()(t?.className,"atoka-form-control-feedback",{"d-block":e});return n().createElement(m().Feedback,{type:t.type,className:o},t.children)}));u.displayName="FormControlFeedBack";const h=n().forwardRef((({size:e="md",...t},o)=>{const r=s()("atoka-form-control",t?.className,{disabled:t.disabled});return n().createElement(m(),{as:t.as,rows:t.rows,cols:t.cols,placeholder:t.placeholder,className:r,disabled:t.disabled,readOnly:t.readOnly,value:t.value,onChange:t.onChange,onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,defaultValue:t.defaultValue,size:"md"===e?void 0:e,type:t.type,id:t.id,isValid:t.isValid,isInvalid:t.isInvalid,ref:o,autoComplete:"off"},t.children)}));h.displayName="FormControlComponent";const C=h;C.FeedBack=u,C.displayName="FormControl";const b=e=>{const t=s()("atoka-form-checkbox",e?.className);return n().createElement(c().Check,{type:"checkbox",...e,custom:!0,className:t,label:e.label??""})};b.displayName="FormCheckbox";const f=e=>{const t=s()(e?.className,"atoka-form-radio");return n().createElement(c().Check,{type:"radio",...e,custom:!0,className:t,label:e.label??""})};f.displayName="FormRadio";var g=o(8763),v=o.n(g);const N=n().memo((({children:e,...t})=>{const o=s()("d-block",t?.className);return n().createElement(v(),{bsPrefix:"atoka-form-help",className:o},e)}));N.displayName="FormHelp";const y=e=>{const t=s()(e?.className,"atoka-form");return n().createElement(c(),{...e,className:t},e.children)};function E(e,t){return function(e,t){let o=[];return n().Children.forEach(e,(e=>{e?.type===t&&o.push(e)})),o}(e,t)?.[0]??null}y.displayName="Form",y.Control=C,y.Label=p,y.Checkbox=b,y.Radio=f,y.File=c().File,y.Switch=c().Switch,y.Help=N,y.Group=c().Group;var w=o(2938),k=o(4603);const x=e=>n().createElement("div",{className:"ellipsable-content-prepend"},e.children);x.displayName="EllipsableContent.Prepend";const D=e=>n().createElement("div",{className:"ellipsable-content-append"},e.children);D.displayName="EllipsableContent.Append";const F=e=>{const t=n().createElement("div",{className:"ellipsable-content-content"},e.children);return null==e.tooltip?t:n().createElement(k.Tooltip,{...e.tooltipProps,content:e.tooltip},t)};F.displayName="EllipsableContent.Content";class EllipsableContent extends n().PureComponent{static displayName="EllipsableContent";static Prepend=x;static Append=D;static Content=F;renderFullContent(){let e=E(this.props.children,EllipsableContent.Prepend),t=E(this.props.children,EllipsableContent.Content),o=E(this.props.children,EllipsableContent.Append);return null!=t||null==e&&null==o?(null==t&&(t=n().createElement(EllipsableContent.Content,null,this.props.children)),null!=this.props.tooltip&&(t=n().createElement(t.type,{...t.props,tooltip:this.props.tooltip,tooltipProps:this.props.tooltipProps})),n().createElement(n().Fragment,null,e,t,o)):(console.error("You must set a .Content alongside the .Append or .Prepend"),null)}render(){let e=s()("ellipsable-content-container align-items-center",this.props.className,{"ellipsable-with-tooltip":null!=this.props.tooltip}),t=this.renderFullContent();return null==t?null:n().createElement("div",{className:e,style:this.props.style},t)}}class Title extends n().PureComponent{static displayName="Title";static defaultProps={size:"xxl"};renderIcon(){if(null==this.props.icon)return null;let e=s()({"mr-2":""!==this.props.children&&null!=this.props.children});return n().createElement(l.FontAwesomeIcon,{icon:this.props.icon,className:e,fixedWidth:!0})}renderContent(){return n().createElement(n().Fragment,null,this.renderIcon(),this.props.children)}render(){const e={className:s()("title-component",this.props.className),style:this.props.style};switch(this.props.size){case"xs":return n().createElement("h6",{...e},this.renderContent());case"sm":return n().createElement("h5",{...e},this.renderContent());case"md":return n().createElement("h4",{...e},this.renderContent());case"lg":return n().createElement("h3",{...e},this.renderContent());case"xl":return n().createElement("h2",{...e},this.renderContent());default:return n().createElement("h1",{...e},this.renderContent())}}}const T=n().memo((e=>{const t=[];return n().Children.forEach(e.children,(e=>{const o=e?.type||{};"string"!=typeof o&&"displayName"in o&&"EllipsableContent"===o.displayName&&t.push(e)})),t.length>0?e.children:n().createElement(EllipsableContent,{tooltip:e.tooltip??null,tooltipProps:{delay:200,...e.tooltipProps}},n().createElement(Title,{size:"sm",className:"mb-0"},e.children))}));T.displayName="CardTitle";const P=n().memo((e=>n().createElement("div",{className:"mt-3"},e.children)));P.displayName="GridCardFooter";var S=o(192);const A=n().memo((e=>{const t=s()(e.className,"ml-1");return n().createElement("div",{className:t},n().createElement(S.Dropdown,{drop:"left"},n().createElement(S.Dropdown.Toggle,{disabled:!0===e.isDisabled,as:S.AtokaSimpleDropdownToggle}),n().createElement(S.Dropdown.Menu,null,e.children)))}));A.displayName="CardMenu";const O=n().memo((e=>n().createElement("div",{className:"d-flex align-items-center h-100"},e.children)));O.displayName="GridCardTags";class GridCardHeader extends n().PureComponent{static displayName="GridCardHeader";stopPropagation=e=>{e.stopPropagation()};renderCheckbox(){return this.props.isSelectable?n().createElement("span",{onClick:this.stopPropagation},n().createElement(y.Checkbox,{className:"checkbox-container mb-0",onChange:this.props.onSelect,checked:this.props.isSelected,id:String(this.props.id)})):null}render(){return n().createElement("div",{className:"card-title d-flex"},this.renderCheckbox(),E(this.props.children,T),n().createElement("span",{onClick:this.stopPropagation},E(this.props.children,O)),n().createElement("span",null,E(this.props.children,A)))}}const q=n().memo((e=>n().createElement("div",{className:"mt-3"},e.children)));q.displayName="GridCardContent";const I=n().memo((({children:e})=>n().createElement("div",{onClick:e=>e.stopPropagation(),className:"grid-card-actions d-flex justify-content-center"},e)));I.displayName="GridCardActions";class GridCard extends n().PureComponent{static displayName="GridCard";static Header=GridCardHeader;static Title=T;static Tags=O;static Menu=A;static Content=q;static Footer=P;static Actions=I;static defaultProps={isSelected:!1,isSelectable:!1,id:`${Math.random()}`};stopPropagation=e=>{e.stopPropagation()};handleClick=()=>{this.props.onSelect&&this.props.onSelect()};render(){const e=s()("grid-card mb-2 d-flex flex-column",this.props.className,{"is-selectable":this.props.isSelectable});return n().createElement(w.OniruCard,{padding:"md",className:e,onClick:this.handleClick},n().createElement(GridCardHeader,{...this.props},E(this.props.children,T),E(this.props.children,O),E(this.props.children,A)),E(this.props.children,q),n().createElement("span",{onClick:this.stopPropagation},E(this.props.children,P)),E(this.props.children,I))}}},2938:(e,t,o)=>{o.d(t,{OniruCard:()=>l});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a);const l=({as:e="div",padding:t,className:o,...r})=>{const a="md"===t?"p-3":"";return n().createElement(e,{...r,className:s()("oniru-card",a,o)})};l.displayName="OniruCard"},4603:(e,t,o)=>{o.d(t,{Tooltip:()=>c});var r=o(8156),n=o.n(r),a=o(8310),s=o.n(a),l=o(6043),i=o.n(l);const c=n().memo((e=>{let t=document.querySelector(".bs4-v3-external-container"),o=e.placement??"top",r=s()("tooltip atoka-tooltip",e.className,{"top bs-tooltip-top":0===o.indexOf("top"),"right bs-tooltip-right":0===o.indexOf("right"),"bottom bs-tooltip-bottom":0===o.indexOf("bottom"),"left bs-tooltip-left":0===o.indexOf("left")});const{content:a,...l}=e;return n().createElement(i(),{...l,container:t,overlay:({arrowProps:e,...t})=>{const{show:o,...s}=t;return n().createElement("div",{...s,className:r,role:"tooltip"},n().createElement("div",{className:"tooltip-inner"},n().createElement("div",{className:"arrow arrow-back",...e}),a,n().createElement("div",{className:"arrow arrow-front",...e})))}},e.children)}));c.displayName="Tooltip"},1349:t=>{t.exports=e},3041:e=>{e.exports=t},5692:e=>{e.exports=o},8310:e=>{e.exports=r},8156:e=>{e.exports=n},8926:e=>{e.exports=a},4976:e=>{e.exports=s},8721:e=>{e.exports=l},1082:e=>{e.exports=i},8763:e=>{e.exports=c},6043:e=>{e.exports=p}},u={};function h(e){var t=u[e];if(void 0!==t)return t.exports;var o=u[e]={exports:{}};return m[e](o,o.exports,h),o.exports}h.m=m,d=[],h.O=(e,t,o,r)=>{if(!t){var n=1/0;for(i=0;i<d.length;i++){for(var[t,o,r]=d[i],a=!0,s=0;s<t.length;s++)(!1&r||n>=r)&&Object.keys(h.O).every((e=>h.O[e](t[s])))?t.splice(s--,1):(a=!1,r<n&&(n=r));if(a){d.splice(i--,1);var l=o();void 0!==l&&(e=l)}}return e}r=r||0;for(var i=d.length;i>0&&d[i-1][2]>r;i--)d[i]=d[i-1];d[i]=[t,o,r]},h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var o in t)h.o(t,o)&&!h.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4975:0,6615:0,8621:0,4012:0,2823:0,5116:0};h.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[a,s,l]=o,i=0;if(a.some((t=>0!==e[t]))){for(r in s)h.o(s,r)&&(h.m[r]=s[r]);if(l)var c=l(h)}for(t&&t(o);i<a.length;i++)n=a[i],h.o(e,n)&&e[n]&&e[n][0](),e[a[i]]=0;return h.O(c)},o=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var C=h.O(void 0,[5116],(()=>h(2439)));return C=h.O(C)})()}));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("classnames"),require("react")):"function"==typeof define&&define.amd?define("atoka-design-system",["classnames","react"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("classnames"),require("react")):e["atoka-design-system"]=t(e.classnames,e.react)}(self,(function(e,t){return(()=>{"use strict";var r,s={8265:(e,t,r)=>{r.r(t),r.d(t,{HighlightableText:()=>HighlightableText});var s=r(8310),i=r.n(s),l=r(8156),n=r.n(l),o=r(2394);class HighlightableText extends n().PureComponent{static displayName="HighlightableText";static defaultProps={size:"md",highlightColor:"orange"};needToHighlight(){return!(0,o.Wq)(this.props.highlighted)}getParts(){if("string"!=typeof this.props.children)throw Error("In this component, children have to be a string");return(0,o.ho)(this.props.highlighted,this.props.children)}renderPart=(e,t)=>{let r=(0,o.OH)(e,this.props.highlighted),s=i()("atoka-highlightable-text",this.props.size,{"text-muted":!0===this.props.isDisabled,bold:this.props.isBold,"selected-text":r,[this.props.highlightColor]:r}),l=e;return r&&(l=n().createElement("strong",null,e)),n().createElement("span",{key:`${e}-${t}`,className:s},l)};highlightedText(){let e=this.getParts();return null==e?null:n().createElement("span",{className:this.props.className},e.map(this.renderPart))}render(){let e=this.props.children,t=i()("atoka-highlightable-text",this.props.highlightColor,this.props.size,this.props.className,{"text-muted":!0===this.props.isDisabled,bold:this.props.isBold});return"string"!=typeof e?n().createElement("span",{className:t},e):this.needToHighlight()?this.highlightedText():n().createElement("span",{className:t},e)}}},2394:(e,t,r)=>{function s(e){if(null==e)return!0;try{return null!==e.match(/^\s*$/)}catch(e){return!0}}function i(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function l(e,t){if(null==e||null==t)return!1;if(e=e.toLowerCase(),null===(t=t.toLowerCase()).match(" "))return null!==e.match(i(t));let r=t.split(" ").filter((e=>!s(e))).sort(((e,t)=>t.length-e.length));for(let t of r)if(e===t)return!0;return!1}function n(e,t){if(null==t)return[];if(null===(e=i(e)).match(" ")){let r=new RegExp("("+e+")","gi");return t.split(r)}let r=e.split(" ").filter((e=>!s(e))).sort(((e,t)=>t.length-e.length)),n=[t];for(let t of r){let r=new RegExp("("+t+")","gi");for(let t=0;t<n.length;t++){let s=n[t];if(l(s,e))continue;let i=s.split(r).filter((e=>""!==e));n.splice(t,1,...i)}}return n}r.d(t,{Wq:()=>s,OH:()=>l,ho:()=>n})},8310:t=>{t.exports=e},8156:e=>{e.exports=t}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,l),r.exports}l.m=s,r=[],l.O=(e,t,s,i)=>{if(!t){var n=1/0;for(p=0;p<r.length;p++){for(var[t,s,i]=r[p],o=!0,a=0;a<t.length;a++)(!1&i||n>=i)&&Object.keys(l.O).every((e=>l.O[e](t[a])))?t.splice(a--,1):(o=!1,i<n&&(n=i));if(o){r.splice(p--,1);var h=s();void 0!==h&&(e=h)}}return e}i=i||0;for(var p=r.length;p>0&&r[p-1][2]>i;p--)r[p]=r[p-1];r[p]=[t,s,i]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4953:0,8173:0};l.O.j=t=>0===e[t];var t=(t,r)=>{var s,i,[n,o,a]=r,h=0;if(n.some((t=>0!==e[t]))){for(s in o)l.o(o,s)&&(l.m[s]=o[s]);if(a)var p=a(l)}for(t&&t(r);h<n.length;h++)i=n[h],l.o(e,i)&&e[i]&&e[i][0](),e[n[h]]=0;return l.O(p)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=l.O(void 0,[8173],(()=>l(8265)));return n=l.O(n)})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("classnames"),require("react")):"function"==typeof define&&define.amd?define("atoka-design-system",["classnames","react"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("classnames"),require("react")):e["atoka-design-system"]=t(e.classnames,e.react)}(self,(function(e,t){return(()=>{"use strict";var r,s={8265:(e,t,r)=>{r.r(t),r.d(t,{HighlightableText:()=>HighlightableText});var s=r(8310),i=r.n(s),l=r(8156),n=r.n(l),o=r(2394);class HighlightableText extends n().PureComponent{static displayName="HighlightableText";static defaultProps={size:"md",highlightColor:"orange"};needToHighlight(){return!(0,o.Wq)(this.props.highlighted)}getParts(){if("string"!=typeof this.props.children)throw Error("In this component, children have to be a string");return(0,o.ho)(this.props.highlighted,this.props.children)}renderPart=(e,t)=>{let r=(0,o.OH)(e,this.props.highlighted),s=i()("atoka-highlightable-text",this.props.size,{"text-muted":!0===this.props.isDisabled,bold:this.props.isBold,"selected-text":r,[this.props.highlightColor]:r}),l=e;return r&&(l=n().createElement("strong",null,e)),n().createElement("span",{key:`${e}-${t}`,className:s},l)};highlightedText(){let e=this.getParts();return null==e?null:n().createElement("span",{className:this.props.className},e.map(this.renderPart))}render(){let e=this.props.children,t=i()("atoka-highlightable-text",this.props.highlightColor,this.props.size,this.props.className,{"text-muted":!0===this.props.isDisabled,bold:this.props.isBold});return"string"!=typeof e?n().createElement("span",{className:t},e):this.needToHighlight()?this.highlightedText():n().createElement("span",{className:t},e)}}},2394:(e,t,r)=>{function s(e){if(null==e)return!0;try{return null!==e.match(/^\s*$/)}catch(e){return!0}}function i(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function l(e,t){if(null==e||null==t)return!1;if(e=e.toLowerCase(),null===(t=t.toLowerCase()).match(" "))return null!==e.match(i(t));let r=t.split(" ").filter((e=>!s(e))).sort(((e,t)=>t.length-e.length));for(let t of r)if(e===t)return!0;return!1}function n(e,t){if(null==t)return[];if(null===(e=i(e)).match(" ")){let r=new RegExp("("+e+")","gi");return t.split(r)}let r=e.split(" ").filter((e=>!s(e))).sort(((e,t)=>t.length-e.length)),n=[t];for(let t of r){let r=new RegExp("("+t+")","gi");for(let t=0;t<n.length;t++){let s=n[t];if(l(s,e))continue;let i=s.split(r).filter((e=>""!==e));n.splice(t,1,...i)}}return n}r.d(t,{Wq:()=>s,OH:()=>l,ho:()=>n})},8310:t=>{t.exports=e},8156:e=>{e.exports=t}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,l),r.exports}l.m=s,r=[],l.O=(e,t,s,i)=>{if(!t){var n=1/0;for(p=0;p<r.length;p++){for(var[t,s,i]=r[p],o=!0,a=0;a<t.length;a++)(!1&i||n>=i)&&Object.keys(l.O).every((e=>l.O[e](t[a])))?t.splice(a--,1):(o=!1,i<n&&(n=i));if(o){r.splice(p--,1);var h=s();void 0!==h&&(e=h)}}return e}i=i||0;for(var p=r.length;p>0&&r[p-1][2]>i;p--)r[p]=r[p-1];r[p]=[t,s,i]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4953:0,5116:0};l.O.j=t=>0===e[t];var t=(t,r)=>{var s,i,[n,o,a]=r,h=0;if(n.some((t=>0!==e[t]))){for(s in o)l.o(o,s)&&(l.m[s]=o[s]);if(a)var p=a(l)}for(t&&t(r);h<n.length;h++)i=n[h],l.o(e,i)&&e[i]&&e[i][0](),e[n[h]]=0;return l.O(p)},r=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=l.O(void 0,[5116],(()=>l(8265)));return n=l.O(n)})()}));