tocco-devcon 1.0.0-hotfix30.4 → 1.0.0-hotfix30.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +12 -0
- package/dist/chunk-232.4a40b494103df4177889.js +1 -0
- package/dist/chunk-277.4ea04d9697573d5be212.js +1 -0
- package/dist/{chunk-code-editor.2fc4c7b43f21057ca54b.js → chunk-code-editor.e92537091084c6a33e9e.js} +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-683.59b5398dc41d58d5c53a.js +0 -1
- package/dist/chunk-759.c894f2cb2220cf98eaca.js +0 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
1.0.0-hotfix30.8
|
|
2
|
+
- use throttle for select instead of debounce to prevent flickering of dropdown
|
|
3
|
+
|
|
4
|
+
1.0.0-hotfix30.7
|
|
5
|
+
- do not load display of null entity
|
|
6
|
+
|
|
7
|
+
1.0.0-hotfix30.6
|
|
8
|
+
- validation errors fixed for location fields
|
|
9
|
+
|
|
10
|
+
1.0.0-hotfix30.5
|
|
11
|
+
- fix flicker in Firefox on panel hovers
|
|
12
|
+
|
|
1
13
|
1.0.0-hotfix30.4
|
|
2
14
|
- do not execute injected JS in html field
|
|
3
15
|
- no styles allowed in rendered HTML
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[232],{78295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(63804),r=n.n(o),i=n(45697),a=n.n(i),u=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},c={outline:"none"},p=function(e){function t(){var n,o;u(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=l(this,e.call.apply(e,[this].concat(a))),o.state={focused:!1},o._isMounted=!1,o._lastBlurEvent=null,o.ref=r().createRef(),o._onFocusIn=function(){o._isMounted&&o._lastBlurEvent&&o.isInsideNode(o.ref.current,o._lastBlurEvent.target)&&!o.isInsideNode(o.ref.current,document.activeElement)&&o.setState({focused:!1},(function(){document.removeEventListener("focusin",o._onFocusIn),o.props.onBlur(o._lastBlurEvent)}))},o.onFocus=function(e){var t=o.props.onFocus;o.state.focused||o.setState({focused:!0},(function(){document.addEventListener("focusin",o._onFocusIn),t(e)}))},o.onBlur=function(e){e.persist(),o._lastBlurEvent=e},o.isInsideNode=function(e,t){return null!=e&&e.contains(t)},l(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?r().cloneElement(e({focused:t,getRef:this.ref}),n):r().createElement("div",s({ref:this.ref,style:c},n),e)},t}(r().Component);p.propTypes={children:a().oneOfType([a().node,a().func]).isRequired,onBlur:a().func,onFocus:a().func},p.defaultProps={onBlur:function(){},onFocus:function(){}};const f=p},6078:(e,t,n)=>{var o=n(43069);e.exports=function(e){if(Array.isArray(e))return o(e)}},91772:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},31503:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},292:(e,t,n)=>{var o=n(6078),r=n(91772),i=n(27258),a=n(31503);e.exports=function(e){return o(e)||r(e)||i(e)||a()}},54053:(e,t,n)=>{var o=n(71662);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return o(e)?e:[e]}},76847:(e,t,n)=>{var o=n(23947),r=n(21191),i=n(95497),a=n(3063),u=n(47345);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},925:(e,t,n)=>{var o=n(31431).Symbol;e.exports=o},77969:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},84158:e=>{e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}},76432:e=>{e.exports=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}},5768:e=>{e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},85908:(e,t,n)=>{var o=n(38117),r=n(34210),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&r(a,n)&&(void 0!==n||t in e)||o(e,t,n)}},70889:(e,t,n)=>{var o=n(34210);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}},38117:(e,t,n)=>{var o=n(2312);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},11228:e=>{e.exports=function(e){return e}},62878:(e,t,n)=>{var o=n(76432),r=n(68578);e.exports=function e(t,n,i,a,u){var s=-1,l=t.length;for(i||(i=r),u||(u=[]);++s<l;){var c=t[s];n>0&&i(c)?n>1?e(c,n-1,i,a,u):o(u,c):a||(u[u.length]=c)}return u}},29413:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},78872:e=>{e.exports=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1}},6363:(e,t,n)=>{var o=n(15900),r=n(21695);e.exports=function e(t,n,i,a,u){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:o(t,n,i,a,e,u))}},15900:(e,t,n)=>{var o=n(76847),r=n(81714),i=n(22259),a=n(20222),u=n(61134),s=n(71662),l=n(30937),c=n(16847),p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,v,h){var m=s(e),b=s(t),g=m?"[object Array]":u(e),y=b?"[object Array]":u(t),O=(g="[object Arguments]"==g?p:g)==p,x=(y="[object Arguments]"==y?p:y)==p,I=g==y;if(I&&l(e)){if(!l(t))return!1;m=!0,O=!1}if(I&&!O)return h||(h=new o),m||c(e)?r(e,t,n,d,v,h):i(e,t,g,n,d,v,h);if(!(1&n)){var M=O&&f.call(e,"__wrapped__"),E=x&&f.call(t,"__wrapped__");if(M||E){var C=M?e.value():e,V=E?t.value():t;return h||(h=new o),v(C,V,n,d,h)}}return!!I&&(h||(h=new o),a(e,t,n,d,v,h))}},93307:(e,t,n)=>{var o=n(76847),r=n(6363);e.exports=function(e,t,n,i){var a=n.length,u=a,s=!i;if(null==e)return!u;for(e=Object(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<u;){var c=(l=n[a])[0],p=e[c],f=l[1];if(s&&l[2]){if(void 0===p&&!(c in e))return!1}else{var d=new o;if(i)var v=i(p,f,c,e,t,d);if(!(void 0===v?r(f,p,3,i,d):v))return!1}}return!0}},98404:(e,t,n)=>{var o=n(47349),r=n(78527),i=n(27529),a=n(71662),u=n(45670);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?r(e[0],e[1]):o(e):u(e)}},47349:(e,t,n)=>{var o=n(93307),r=n(55320),i=n(61713);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},78527:(e,t,n)=>{var o=n(6363),r=n(67120),i=n(14214),a=n(56815),u=n(24429),s=n(61713),l=n(83997);e.exports=function(e,t){return a(e)&&u(t)?s(l(e),t):function(n){var a=r(n,e);return void 0===a&&a===t?i(n,e):o(t,a,3)}}},68654:(e,t,n)=>{var o=n(65858),r=n(21271),i=n(72028);e.exports=function(e,t,n){for(var a=-1,u=t.length,s={};++a<u;){var l=t[a],c=o(e,l);n(c,l)&&r(s,i(l,e),c)}return s}},24918:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},61214:(e,t,n)=>{var o=n(65858);e.exports=function(e){return function(t){return o(t,e)}}},21271:(e,t,n)=>{var o=n(85908),r=n(72028),i=n(20166),a=n(55148),u=n(83997);e.exports=function(e,t,n,s){if(!a(e))return e;for(var l=-1,c=(t=r(t,e)).length,p=c-1,f=e;null!=f&&++l<c;){var d=u(t[l]),v=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(l!=p){var h=f[d];void 0===(v=s?s(h,d,f):void 0)&&(v=a(h)?h:i(t[l+1])?[]:{})}o(f,d,v),f=f[d]}return e}},11565:e=>{e.exports=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}},99478:(e,t,n)=>{var o=n(72028),r=n(862),i=n(15274),a=n(83997);e.exports=function(e,t){return t=o(t,e),null==(e=i(e,t))||delete e[a(r(t))]}},61175:(e,t,n)=>{var o=n(78872);e.exports=function(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}},36733:(e,t,n)=>{var o=n(85908),r=n(38117);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var u=-1,s=t.length;++u<s;){var l=t[u],c=i?i(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?r(n,l,c):o(n,l,c)}return n}},90545:(e,t,n)=>{var o=n(13667);e.exports=function(e){return o(e)?void 0:e}},2312:(e,t,n)=>{var o=n(7222),r=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},81714:(e,t,n)=>{var o=n(54053),r=n(5768),i=n(61175);e.exports=function(e,t,n,a,u,s){var l=1&n,c=e.length,p=t.length;if(c!=p&&!(l&&p>c))return!1;var f=s.get(e),d=s.get(t);if(f&&d)return f==t&&d==e;var v=-1,h=!0,m=2&n?new o:void 0;for(s.set(e,t),s.set(t,e);++v<c;){var b=e[v],g=t[v];if(a)var y=l?a(g,b,v,t,e,s):a(b,g,v,e,t,s);if(void 0!==y){if(y)continue;h=!1;break}if(m){if(!r(t,(function(e,t){if(!i(m,t)&&(b===e||u(b,e,n,a,s)))return m.push(t)}))){h=!1;break}}else if(b!==g&&!u(b,g,n,a,s)){h=!1;break}}return s.delete(e),s.delete(t),h}},22259:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},20222:(e,t,n)=>{var o=n(3602),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,u){var s=1&n,l=o(e),c=l.length;if(c!=o(t).length&&!s)return!1;for(var p=c;p--;){var f=l[p];if(!(s?f in t:r.call(t,f)))return!1}var d=u.get(e),v=u.get(t);if(d&&v)return d==t&&v==e;var h=!0;u.set(e,t),u.set(t,e);for(var m=s;++p<c;){var b=e[f=l[p]],g=t[f];if(i)var y=s?i(g,b,f,t,e,u):i(b,g,f,e,t,u);if(!(void 0===y?b===g||a(b,g,n,i,u):y)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var O=e.constructor,x=t.constructor;O==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof x&&x instanceof x||(h=!1)}return u.delete(e),u.delete(t),h}},39709:(e,t,n)=>{var o=n(91588),r=n(31796),i=n(22021);e.exports=function(e){return i(r(e,void 0,o),e+"")}},3602:(e,t,n)=>{var o=n(30824)(Object.keys,Object);e.exports=o},76679:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},55320:(e,t,n)=>{var o=n(24429),r=n(9820);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,o(a)]}return t}},7222:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},51670:(e,t,n)=>{var o=n(30824)(Object.getPrototypeOf,Object);e.exports=o},34995:(e,t,n)=>{var o=n(72028),r=n(9912),i=n(71662),a=n(20166),u=n(88652),s=n(83997);e.exports=function(e,t,n){for(var l=-1,c=(t=o(t,e)).length,p=!1;++l<c;){var f=s(t[l]);if(!(p=null!=e&&n(e,f)))break;e=e[f]}return p||++l!=c?p:!!(c=null==e?0:e.length)&&u(c)&&a(f,c)&&(i(e)||r(e))}},68578:(e,t,n)=>{var o=n(925),r=n(9912),i=n(71662),a=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(a&&e&&e[a])}},20166:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<n}},24429:(e,t,n)=>{var o=n(55148);e.exports=function(e){return e==e&&!o(e)}},23947:e=>{e.exports=function(){this.__data__=[],this.size=0}},21191:(e,t,n)=>{var o=n(70889),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},95497:(e,t,n)=>{var o=n(70889);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},3063:(e,t,n)=>{var o=n(70889);e.exports=function(e){return o(this.__data__,e)>-1}},47345:(e,t,n)=>{var o=n(70889);e.exports=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},61713:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},31796:(e,t,n)=>{var o=n(77969),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=r(i.length-t,0),s=Array(u);++a<u;)s[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),o(e,this,l)}}},15274:(e,t,n)=>{var o=n(65858),r=n(11565);e.exports=function(e,t){return t.length<2?e:o(e,r(t,0,-1))}},22021:e=>{e.exports=function(e){return e}},30038:(e,t,n)=>{var o=n(55148),r=n(20304),i=n(27584),a=Math.max,u=Math.min;e.exports=function(e,t,n){var s,l,c,p,f,d,v=0,h=!1,m=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=s,o=l;return s=l=void 0,v=t,p=e.apply(o,n)}function y(e){return v=e,f=setTimeout(x,t),h?g(e):p}function O(e){var n=e-d;return void 0===d||n>=t||n<0||m&&e-v>=c}function x(){var e=r();if(O(e))return I(e);f=setTimeout(x,function(e){var n=t-(e-d);return m?u(n,c-(e-v)):n}(e))}function I(e){return f=void 0,b&&s?g(e):(s=l=void 0,p)}function M(){var e=r(),n=O(e);if(s=arguments,l=this,d=e,n){if(void 0===f)return y(d);if(m)return clearTimeout(f),f=setTimeout(x,t),g(d)}return void 0===f&&(f=setTimeout(x,t)),p}return t=i(t)||0,o(n)&&(h=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,b="trailing"in n?!!n.trailing:b),M.cancel=function(){void 0!==f&&clearTimeout(f),v=0,s=d=l=f=void 0},M.flush=function(){return void 0===f?p:I(r())},M}},34210:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},91588:(e,t,n)=>{var o=n(62878);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},14214:(e,t,n)=>{var o=n(29413),r=n(34995);e.exports=function(e,t){return null!=e&&r(e,t,o)}},27529:e=>{e.exports=function(e){return e}},21695:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},13667:(e,t,n)=>{var o=n(51657),r=n(51670),i=n(21695),a=Function.prototype,u=Object.prototype,s=a.toString,l=u.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=o(e))return!1;var t=r(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},9820:(e,t,n)=>{var o=n(30824)(Object.keys,Object);e.exports=o},862:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},20732:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},20304:(e,t,n)=>{var o=n(31431);e.exports=function(){return o.Date.now()}},30627:(e,t,n)=>{var o=n(84158),r=n(11228),i=n(99478),a=n(72028),u=n(36733),s=n(90545),l=n(39709),c=n(76679),p=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=o(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),u(e,c(e),n),l&&(n=r(n,7,s));for(var p=t.length;p--;)i(n,t[p]);return n}));e.exports=p},38734:(e,t,n)=>{var o=n(98404),r=n(20732),i=n(32582);e.exports=function(e,t){return i(e,r(o(t)))}},32582:(e,t,n)=>{var o=n(84158),r=n(98404),i=n(68654),a=n(76679);e.exports=function(e,t){if(null==e)return{};var n=o(a(e),(function(e){return[e]}));return t=r(t),i(e,n,(function(e,n){return t(e,n[0])}))}},45670:(e,t,n)=>{var o=n(24918),r=n(61214),i=n(56815),a=n(83997);e.exports=function(e){return i(e)?o(a(e)):r(e)}},70536:(e,t,n)=>{var o=n(30038),r=n(55148);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),o(e,t,{leading:i,maxWait:t,trailing:a})}},6876:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>fe});var o=n(46854),r=n(63804),i=n.n(r),a=n(30997),u=n(63116),s=n(64998),l=n(32480);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function p(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function f(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=n(35741);function v(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const h=function(e,t){var n;void 0===t&&(t=v);var o,r=[],i=!1;return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return i&&n===this&&t(a,r)||(o=e.apply(this,a),i=!0,n=this,r=a),o}};var m=n(70821);for(var b={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},g=function(e){return(0,d.tZ)("span",(0,o.Z)({css:b},e))},y={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,u=e.isDisabled,s=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t){var c=u?" disabled":"",p="".concat(s?"selected":"focused").concat(c);return"option ".concat(i," ").concat(p,", ").concat(l(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},O=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,u=e.focusableOptions,s=e.isFocused,l=e.selectValue,c=e.selectProps,p=e.id,f=c.ariaLiveMessages,v=c.getOptionLabel,h=c.inputValue,m=c.isMulti,b=c.isOptionDisabled,O=c.isSearchable,x=c.menuIsOpen,I=c.options,M=c.screenReaderStatus,E=c.tabSelectsValue,C=c["aria-label"],V=c["aria-live"],S=(0,r.useMemo)((function(){return(0,a.a)((0,a.a)({},y),f||{})}),[f]),w=(0,r.useMemo)((function(){var e,n="";if(t&&S.onChange){var o=t.option,r=t.options,i=t.removedValue,u=t.removedValues,s=t.value,c=i||o||(e=s,Array.isArray(e)?null:e),p=c?v(c):"",f=r||u||void 0,d=f?f.map(v):[],h=(0,a.a)({isDisabled:c&&b(c,l),label:p,labels:d},t);n=S.onChange(h)}return n}),[t,S,b,l,v]),D=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&l&&l.includes(n));if(t&&S.onFocus){var i={focused:t,label:v(t),isDisabled:b(t,l),isSelected:r,options:I,context:t===n?"menu":"value",selectValue:l};e=S.onFocus(i)}return e}),[n,o,v,b,S,I,l]),k=(0,r.useMemo)((function(){var e="";if(x&&I.length&&S.onFilter){var t=M({count:u.length});e=S.onFilter({inputValue:h,resultsMessage:t})}return e}),[u,h,x,S,I,M]),F=(0,r.useMemo)((function(){var e="";if(S.guidance){var t=o?"value":x?"menu":"input";e=S.guidance({"aria-label":C,context:t,isDisabled:n&&b(n,l),isMulti:m,isSearchable:O,tabSelectsValue:E})}return e}),[C,n,o,m,b,O,x,S,l,E]),L="".concat(D," ").concat(k," ").concat(F),T=(0,d.tZ)(i().Fragment,null,(0,d.tZ)("span",{id:"aria-selection"},w),(0,d.tZ)("span",{id:"aria-context"},L)),R="initial-input-focus"===(null==t?void 0:t.action);return(0,d.tZ)(i().Fragment,null,(0,d.tZ)(g,{id:p},R&&T),(0,d.tZ)(g,{"aria-live":V,"aria-atomic":"false","aria-relevant":"additions text"},s&&!R&&T))},x=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],I=new RegExp("["+x.map((function(e){return e.letters})).join("")+"]","g"),M={},E=0;E<x.length;E++)for(var C=x[E],V=0;V<C.letters.length;V++)M[C.letters[V]]=C.base;var S=function(e){return e.replace(I,(function(e){return M[e]}))},w=h(S),D=function(e){return e.replace(/^\s+|\s+$/g,"")},k=function(e){return"".concat(e.label," ").concat(e.value)},F=["innerRef"];function L(e){var t=e.innerRef,n=(0,m.Z)(e,F);return(0,d.tZ)("input",(0,o.Z)({ref:t},n,{css:(0,d.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var T=["boxSizing","height","overflow","paddingRight","position"],R={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function P(e){e.preventDefault()}function A(e){e.stopPropagation()}function _(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function j(){return"ontouchstart"in window||navigator.maxTouchPoints}var Z=!("undefined"==typeof window||!window.document||!window.document.createElement),H=0,B={capture:!1,passive:!1};var U=function(){return document.activeElement&&document.activeElement.blur()},z={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function N(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,u=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,u=e.onTopLeave,s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),c=(0,r.useRef)(0),p=(0,r.useRef)(null),f=(0,r.useCallback)((function(e,t){if(null!==p.current){var r=p.current,a=r.scrollTop,c=r.scrollHeight,f=r.clientHeight,d=p.current,v=t>0,h=c-f-a,m=!1;h>t&&s.current&&(o&&o(e),s.current=!1),v&&l.current&&(u&&u(e),l.current=!1),v&&t>h?(n&&!s.current&&n(e),d.scrollTop=c,m=!0,s.current=!0):!v&&-t>a&&(i&&!l.current&&i(e),d.scrollTop=0,m=!0,l.current=!0),m&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,i,u]),d=(0,r.useCallback)((function(e){f(e,e.deltaY)}),[f]),v=(0,r.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,r.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)}),[f]),m=(0,r.useCallback)((function(e){if(e){var t=!!a.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",v,t),e.addEventListener("touchmove",h,t)}}),[h,v,d]),b=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",v,!1),e.removeEventListener("touchmove",h,!1))}),[h,v,d]);return(0,r.useEffect)((function(){if(t){var e=p.current;return m(e),function(){b(e)}}}),[t,m,b]),function(e){p.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),u=(0,r.useCallback)((function(e){if(Z){var t=document.body,n=t&&t.style;if(o&&T.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&H<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+r||0;Object.keys(R).forEach((function(e){var t=R[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&j()&&(t.addEventListener("touchmove",P,B),e&&(e.addEventListener("touchstart",_,B),e.addEventListener("touchmove",A,B))),H+=1}}),[o]),s=(0,r.useCallback)((function(e){if(Z){var t=document.body,n=t&&t.style;H=Math.max(H-1,0),o&&H<1&&T.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&j()&&(t.removeEventListener("touchmove",P,B),e&&(e.removeEventListener("touchstart",_,B),e.removeEventListener("touchmove",A,B)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=a.current;return u(e),function(){s(e)}}}),[t,u,s]),function(e){a.current=e}}({isEnabled:n});return(0,d.tZ)(i().Fragment,null,n&&(0,d.tZ)("div",{onClick:U,css:z}),t((function(e){u(e),s(e)})))}var Y={clearIndicator:a.b,container:a.d,control:a.e,dropdownIndicator:a.f,group:a.g,groupHeading:a.h,indicatorsContainer:a.i,indicatorSeparator:a.j,input:a.k,loadingIndicator:a.l,loadingMessage:a.m,menu:a.n,menuList:a.o,menuPortal:a.p,multiValue:a.q,multiValueLabel:a.r,multiValueRemove:a.t,noOptionsMessage:a.u,option:a.v,placeholder:a.w,singleValue:a.x,valueContainer:a.y};var W,G={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},X={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,a.z)(),captureMenuScroll:!(0,a.z)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,a.a)({ignoreCase:!0,ignoreAccents:!0,stringify:k,trim:!0,matchFrom:"any"},W),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,u=n.trim,s=n.matchFrom,l=u?D(t):t,c=u?D(i(e)):i(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=w(l),c=S(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,a.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function K(e,t,n,o){return{type:"option",data:t,isDisabled:te(e,t,n),isSelected:ne(e,t,n),label:Q(e,t),value:ee(e,t),index:o}}function q(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return K(e,n,t,o)})).filter((function(t){return $(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=K(e,n,t,o);return $(e,i)?i:void 0})).filter(a.G)}function J(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,f(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function $(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,u=t.value;return(!re(e)||!i)&&oe(e,{label:a,value:u,data:r},o)}var Q=function(e,t){return e.getOptionLabel(t)},ee=function(e,t){return e.getOptionValue(t)};function te(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ne(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=ee(e,t);return n.some((function(t){return ee(e,t)===o}))}function oe(e,t,n){return!e.filterOption||e.filterOption(t,n)}var re=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ie=1,ae=function(e){(0,l.Z)(n,e);var t=(0,a._)(n);function n(e){var o;return(0,u.Z)(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti;o.onInputChange("",{action:"set-value"}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,u=o.state.selectValue,s=r&&o.isOptionSelected(e,u),l=o.isOptionDisabled(e,u);if(s){var c=o.getOptionValue(e);o.setValue((0,a.B)(u.filter((function(e){return o.getOptionValue(e)!==c}))),"deselect-option",e)}else{if(l)return void o.ariaOnChange((0,a.C)(e),{action:"select-option",option:e,name:i});r?o.setValue((0,a.B)([].concat(f(u),[e])),"select-option",e):o.setValue((0,a.C)(e),"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),u=(0,a.D)(t,i,i[0]||null);o.onChange(u,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange((0,a.D)(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=(0,a.D)(e,r,r[0]||null);o.onChange(i,{action:"pop-value",removedValue:n})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.E.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return Q(o.props,e)},o.getOptionValue=function(e){return ee(o.props,e)},o.getStyles=function(e,t){var n=Y[e](t);n.boxSizing="border-box";var r=o.props.styles[e];return r?r(n,t):n},o.getElementId=function(e){return"".concat(o.instancePrefix,"-").concat(e)},o.getComponents=function(){return(0,a.F)(o.props)},o.buildCategorizedOptions=function(){return q(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return J(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:(0,a.a)({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault(),e.stopPropagation()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),e.stopPropagation(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,a.H)(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(t,{action:"input-change"}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur"}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){o.blockOptionHover||o.state.focusedOption===e||o.setState({focusedOption:e})},o.shouldHideSelectedOptions=function(){return re(o.props)},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=o.state,v=d.focusedOption,h=d.focusedValue,m=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)o.removeValue(h);else{if(!r)return;n?o.popValue():u&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!p||!v||f&&o.isOptionSelected(v,m))return;o.selectOption(v);break;case"Enter":if(229===e.keyCode)break;if(l){if(!v)return;if(o.isComposing)return;o.selectOption(v);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close"}),o.onMenuClose()):u&&i&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!v)return;o.selectOption(v);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++ie),o.state.selectValue=(0,a.I)(e.value),o}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,a.J)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var u=i.indexOf(o[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(G):(0,a.a)((0,a.a)({},G),this.props.theme):G}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getValue,r=this.selectOption,i=this.setValue,a=this.props,u=a.isMulti,s=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:l,selectOption:r,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return te(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ne(this.props,e,t)}},{key:"filterOption",value:function(e,t){return oe(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,u=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,p=this.getComponents().Input,f=this.state,d=f.inputIsHidden,v=f.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),b=(0,a.a)((0,a.a)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox"),"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==v?void 0:v.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?i().createElement(p,(0,o.Z)({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:u},b)):i().createElement(L,(0,o.Z)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:a.K,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,u=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,p=this.props,f=p.controlShouldRenderValue,d=p.isDisabled,v=p.isMulti,h=p.inputValue,m=p.placeholder,b=this.state,g=b.selectValue,y=b.focusedValue,O=b.isFocused;if(!this.hasValue()||!f)return h?null:i().createElement(l,(0,o.Z)({},c,{key:"placeholder",isDisabled:d,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),m);if(v)return g.map((function(t,s){var l=t===y;return i().createElement(n,(0,o.Z)({},c,{components:{Container:r,Label:a,Remove:u},isFocused:l,isDisabled:d,key:"".concat(e.getOptionValue(t),"-").concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var x=g[0];return i().createElement(s,(0,o.Z)({},c,{data:x,isDisabled:d}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,u=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i().createElement(e,(0,o.Z)({},t,{innerProps:s,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,u=this.state.isFocused;if(!e||!a)return null;return i().createElement(e,(0,o.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,u=this.state.isFocused;return i().createElement(n,(0,o.Z)({},r,{isDisabled:a,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i().createElement(e,(0,o.Z)({},t,{innerProps:a,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,u=t.Menu,s=t.MenuList,l=t.MenuPortal,c=t.LoadingMessage,p=t.NoOptionsMessage,f=t.Option,d=this.commonProps,v=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,b=h.inputValue,g=h.isLoading,y=h.loadingMessage,O=h.minMenuHeight,x=h.maxMenuHeight,I=h.menuIsOpen,M=h.menuPlacement,E=h.menuPosition,C=h.menuPortalTarget,V=h.menuShouldBlockScroll,S=h.menuShouldScrollIntoView,w=h.noOptionsMessage,D=h.onMenuScrollToTop,k=h.onMenuScrollToBottom;if(!I)return null;var F,L=function(t,n){var r=t.type,a=t.data,u=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,p=v===a,h=u?void 0:function(){return e.onOptionHover(a)},m=u?void 0:function(){return e.selectOption(a)},b="".concat(e.getElementId("option"),"-").concat(n),g={id:b,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1};return i().createElement(f,(0,o.Z)({},d,{innerProps:g,data:a,isDisabled:u,isSelected:s,key:b,label:l,type:r,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())F=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,u=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return i().createElement(n,(0,o.Z)({},d,{key:l,data:a,options:u,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return L(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return L(t,"".concat(t.index))}));else if(g){var T=y({inputValue:b});if(null===T)return null;F=i().createElement(c,d,T)}else{var R=w({inputValue:b});if(null===R)return null;F=i().createElement(p,d,R)}var P={minMenuHeight:O,maxMenuHeight:x,menuPlacement:M,menuPosition:E,menuShouldScrollIntoView:S},A=i().createElement(a.M,(0,o.Z)({},d,P),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,l=r.maxHeight;return i().createElement(u,(0,o.Z)({},d,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:a}),i().createElement(N,{captureEnabled:m,onTopArrive:D,onBottomArrive:k,lockEnabled:V},(function(t){return i().createElement(s,(0,o.Z)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:l,focusedOption:v}),F)})))}));return C||"fixed"===E?i().createElement(l,(0,o.Z)({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:M,menuPosition:E}),A):A}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,a=t.name,u=this.state.selectValue;if(a&&!o){if(r){if(n){var s=u.map((function(t){return e.getOptionValue(t)})).join(n);return i().createElement("input",{name:a,type:"hidden",value:s})}var l=u.length>0?u.map((function(t,n){return i().createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):i().createElement("input",{name:a,type:"hidden"});return i().createElement("div",null,l)}var c=u[0]?this.getOptionValue(u[0]):"";return i().createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,u=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return i().createElement(O,(0,o.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:a,isFocused:u,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,u=this.props,s=u.className,l=u.id,c=u.isDisabled,p=u.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return i().createElement(r,(0,o.Z)({},d,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),i().createElement(t,(0,o.Z)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:p}),i().createElement(a,(0,o.Z)({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),i().createElement(n,(0,o.Z)({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,u=t.isFocused,s=t.prevWasFocused,l=e.options,c=e.value,p=e.menuIsOpen,f=e.inputValue,d=e.isMulti,v=(0,a.I)(c),h={};if(n&&(c!==n.value||l!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var m=p?function(e,t){return J(q(e,t))}(e,v):[],b=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,v):null;h={selectValue:v,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:b,clearFocusValueOnUpdate:!1}}var g=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},y=i,O=u&&s;return u&&!O&&(y={value:(0,a.D)(d,v,v[0]||null),options:v,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),(0,a.a)((0,a.a)((0,a.a)({},h),g),{},{prevProps:e,ariaSelection:y,prevWasFocused:O})}}]),n}(r.Component);function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw r}}return i}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}ae.defaultProps=X;var se=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var le=n(60857),ce=n(92813),pe=(n(27196),i().forwardRef((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,u=e.defaultValue,s=void 0===u?null:u,l=e.inputValue,c=e.menuIsOpen,p=e.onChange,f=e.onInputChange,d=e.onMenuClose,v=e.onMenuOpen,h=e.value,b=(0,m.Z)(e,se),g=ue((0,r.useState)(void 0!==l?l:n),2),y=g[0],O=g[1],x=ue((0,r.useState)(void 0!==c?c:i),2),I=x[0],M=x[1],E=ue((0,r.useState)(void 0!==h?h:s),2),C=E[0],V=E[1],S=(0,r.useCallback)((function(e,t){"function"==typeof p&&p(e,t),V(e)}),[p]),w=(0,r.useCallback)((function(e,t){var n;"function"==typeof f&&(n=f(e,t)),O(void 0!==n?n:e)}),[f]),D=(0,r.useCallback)((function(){"function"==typeof v&&v(),M(!0)}),[v]),k=(0,r.useCallback)((function(){"function"==typeof d&&d(),M(!1)}),[d]),F=void 0!==l?l:y,L=void 0!==c?c:I,T=void 0!==h?h:C;return(0,a.a)((0,a.a)({},b),{},{inputValue:F,menuIsOpen:L,onChange:S,onInputChange:w,onMenuClose:k,onMenuOpen:D,value:T})}(e);return i().createElement(ae,(0,o.Z)({ref:t},n))})));r.Component;const fe=pe}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[277],{7691:(e,t,n)=>{var r=n(35615);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},35615:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},59839:e=>{e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(32)("wks"),o=n(9),i=n(0).Symbol,s="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(0),o=n(2),i=n(8),s=n(22),u=n(10),a=function(e,t,n){var l,c,f,g,p=e&a.F,d=e&a.G,h=e&a.S,m=e&a.P,v=e&a.B,y=d?r:h?r[t]||(r[t]={}):(r[t]||{}).prototype,S=d?o:o[t]||(o[t]={}),b=S.prototype||(S.prototype={});for(l in d&&(n=t),n)f=((c=!p&&y&&void 0!==y[l])?y:n)[l],g=v&&c?u(f,r):m&&"function"==typeof f?u(Function.call,f):f,y&&s(y,l,f,e&a.U),S[l]!=f&&i(S,l,g),m&&b[l]!=f&&(b[l]=f)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},function(e,t,n){var r=n(16),o=n(21);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(24);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(28),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();return"."===t.charAt(0)?r.toLowerCase().endsWith(t.toLowerCase()):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0},n(14),n(34)},function(e,t,n){n(15),e.exports=n(2).Array.some},function(e,t,n){"use strict";var r=n(7),o=n(25)(3);r(r.P+r.F*!n(33)([].some,!0),"Array",{some:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(17),o=n(18),i=n(20),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(1);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(3)&&!n(4)((function(){return 7!=Object.defineProperty(n(19)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(1),o=n(0).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(1);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(0),o=n(8),i=n(23),s=n(9)("src"),u=Function.toString,a=(""+u).split("toString");n(2).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,u){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(i(n,s)||o(n,s,e[t]?""+e[t]:a.join(String(t)))),e===r?e[t]=n:u?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||u.call(this)}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(10),o=n(26),i=n(27),s=n(12),u=n(29);e.exports=function(e,t){var n=1==e,a=2==e,l=3==e,c=4==e,f=6==e,g=5==e||f,p=t||u;return function(t,u,d){for(var h,m,v=i(t),y=o(v),S=r(u,d,3),b=s(y.length),w=0,I=n?p(t,b):a?p(t,0):void 0;b>w;w++)if((g||w in y)&&(m=S(h=y[w],w,v),e))if(n)I[w]=m;else if(m)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:I.push(h)}else if(c)return!1;return f?-1:l||c?c:I}}},function(e,t,n){var r=n(5);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(30);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(1),o=n(31),i=n(6)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(5);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){n(35),e.exports=n(2).String.endsWith},function(e,t,n){"use strict";var r=n(7),o=n(12),i=n(36),s="".endsWith;r(r.P+r.F*n(38)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),u=void 0===n?r:Math.min(o(n),r),a=String(e);return s?s.call(t,a,u):t.slice(u-a.length,u)===a}})},function(e,t,n){var r=n(37),o=n(11);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(1),o=n(5),i=n(6)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(6)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}}])},47834:(e,t,n)=>{var r=n(1496)();e.exports=r},26794:(e,t,n)=>{var r=n(47834),o=n(9820);e.exports=function(e,t){return e&&r(e,t,o)}},24113:e=>{e.exports=function(e){return e}},1496:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),u=s.length;u--;){var a=s[e?u:++o];if(!1===n(i[a],a,i))break}return t}}},1538:(e,t,n)=>{var r=n(26794),o=n(24113);e.exports=function(e,t){return e&&r(e,o(t))}},34217:(e,t,n)=>{var r=n(6363);e.exports=function(e,t){return r(e,t)}},73012:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(63804),s=f(i),u=f(n(35989)),a=f(n(32827)),l=f(n(65786)),c=n(27388);function f(e){return e&&e.__esModule?e:{default:e}}var g=function(){return!0},p=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return d.call(r),r.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},r.justPressedUpDown=!1,r.justMouseEntered=!1,r.pressedSuggestion=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,a.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,a.default)(r,e.suggestions)&&r.length>0&&i)this.highlightFirstSuggestion();else if(o){var s=this.getHighlightedSuggestion();s!=t.highlightedSuggestion&&o({suggestion:s})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var i=o.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,i=n.getSectionSuggestions;return o?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,i=r.onChange;t!==o&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value;return t.length>0&&r(o)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,i=t.onSuggestionsFetchRequested,u=t.renderSuggestion,a=t.inputProps,f=t.multiSection,p=t.renderSectionTitle,d=t.id,h=t.getSectionSuggestions,m=t.theme,v=t.getSuggestionValue,y=t.alwaysRenderSuggestions,S=t.highlightFirstSuggestion,b=this.state,w=b.isFocused,I=b.isCollapsed,x=b.highlightedSectionIndex,O=b.highlightedSuggestionIndex,C=b.valueBeforeUpDown,D=y?g:this.props.shouldRenderSuggestions,k=a.value,P=a.onFocus,_=a.onKeyDown,j=this.willRenderSuggestions(this.props),E=y||w&&!I&&j,T=E?n:[],R=r({},a,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=D(k);e.setState({isFocused:!0,isCollapsed:!n}),P&&P(t),n&&i({value:k,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,o=D(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(r({},S?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!o})),o?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(I)D(k)&&(i({value:k,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var s=r.newHighlightedSectionIndex,u=r.newHighlightedItemIndex,a=void 0;a=null===u?null===C?k:C:e.getSuggestionValueByIndex(s,u),e.updateHighlightedSuggestion(s,u,k),e.maybeCallOnChange(t,a,40===o?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var l=e.getHighlightedSuggestion();if(E&&!y&&e.closeSuggestions(),null!=l){var c=v(l);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:c,suggestionIndex:O,sectionIndex:x,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:E&&t.preventDefault();var f=E&&!y;if(null===C){if(!f){e.maybeCallOnChange(t,"","escape"),D("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,C,"escape");f?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}_&&_(t)}}),F={query:this.getQuery()};return s.default.createElement(l.default,{multiSection:f,items:T,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:u,renderItemData:F,renderSectionTitle:p,getSectionItems:h,highlightedSectionIndex:x,highlightedItemIndex:O,inputProps:R,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(m),id:d,ref:this.storeAutowhateverRef})}}]),t}(i.Component);p.propTypes={suggestions:u.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:u.default.func,onSuggestionHighlighted:u.default.func,renderInputComponent:u.default.func,renderSuggestionsContainer:u.default.func,getSuggestionValue:u.default.func.isRequired,renderSuggestion:u.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:u.default.func,alwaysRenderSuggestions:u.default.bool,multiSection:u.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:u.default.bool,highlightFirstSuggestion:u.default.bool,theme:u.default.object,id:u.default.string},p.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return s.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1"};var d=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var r=n.sectionIndex,o=n.itemIndex;e.updateHighlightedSuggestion(r,o),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var r=e.props,o=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,s=r.onSuggestionsFetchRequested;i&&i(t,n),o?s({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,i=e.getSuggestionIndices(e.findSuggestionElement(t.target)),s=i.sectionIndex,u=i.suggestionIndex,a=e.getSuggestion(s,u),l=e.props.getSuggestionValue(a);e.maybeCallOnChange(t,l,"click"),e.onSuggestionSelected(t,{suggestion:a,suggestionValue:l,suggestionIndex:u,sectionIndex:s,method:"click"}),r||e.closeSuggestions(),!0===o?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,r=t.shouldRenderSuggestions,o=n.value,i=n.onBlur,s=e.getHighlightedSuggestion(),u=r(o);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!u}),i&&i(e.blurEvent,{highlightedSuggestion:s})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,r=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:r,query:e.getQuery()})}};t.default=p},38366:(e,t,n)=>{"use strict";e.exports=n(73012).default},27388:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},86818:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(63804),u=p(s),a=p(n(35989)),l=p(n(44274)),c=p(n(91079)),f=p(n(48139)),g=p(n(90835));function p(e){return e&&e.__esModule?e:{default:e}}var d={},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,r=t.inputProps,i=t.highlightedSectionIndex,s=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var u="ArrowDown"===e.key?"next":"prev",a=n.sectionIterator[u]([i,s]),l=o(a,2),c=l[0],f=l[1];r.onKeyDown(e,{newHighlightedSectionIndex:c,newHighlightedItemIndex:f});break;default:r.onKeyDown(e,{highlightedSectionIndex:i,highlightedItemIndex:s})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,l.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,c.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,o=n.items,i=n.renderItem,s=n.renderItemData,a=n.renderSectionTitle,l=n.highlightedSectionIndex,c=n.highlightedItemIndex,p=n.itemProps;return o.map((function(n,o){var d="react-autowhatever-"+r+"-",h=d+"section-"+o+"-",m=0===o;return u.default.createElement("div",t(h+"container","sectionContainer",m&&"sectionContainerFirst"),u.default.createElement(f.default,{section:n,renderSectionTitle:a,theme:t,sectionKeyPrefix:h}),u.default.createElement(g.default,{items:e.sectionsItems[o],itemProps:p,renderItem:i,renderItemData:s,sectionIndex:o,highlightedItemIndex:l===o?c:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:d,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,o=n.renderItem,i=n.renderItemData,s=n.highlightedSectionIndex,a=n.highlightedItemIndex,l=n.itemProps;return u.default.createElement(g.default,{items:e,itemProps:l,renderItem:o,renderItemData:i,highlightedItemIndex:null===s?a:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+r+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,o=t.multiSection,i=t.renderInputComponent,s=t.renderItemsContainer,a=t.highlightedSectionIndex,l=t.highlightedItemIndex,c=this.state.isInputFocused,f=o?this.renderSections():this.renderItems(),g=null!==f,p=this.getItemId(a,l),d="react-autowhatever-"+n,h=r({role:"combobox","aria-haspopup":"listbox","aria-owns":d,"aria-expanded":g},e("react-autowhatever-"+n+"-container","container",g&&"containerOpen"),this.props.containerProps),m=i(r({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":d,"aria-activedescendant":p},e("react-autowhatever-"+n+"-input","input",g&&"inputOpen",c&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=s({containerProps:r({id:d,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",g&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:f});return u.default.createElement("div",h,m,v)}}]),t}(s.Component);h.propTypes={id:a.default.string,multiSection:a.default.bool,renderInputComponent:a.default.func,renderItemsContainer:a.default.func,items:a.default.array.isRequired,renderItem:a.default.func,renderItemData:a.default.object,renderSectionTitle:a.default.func,getSectionItems:a.default.func,containerProps:a.default.object,inputProps:a.default.object,itemProps:a.default.oneOfType([a.default.object,a.default.func]),highlightedSectionIndex:a.default.number,highlightedItemIndex:a.default.number,theme:a.default.oneOfType([a.default.object,a.default.array])},h.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return u.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return u.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:d,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:d,inputProps:d,itemProps:d,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=h},36978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(63804),s=l(i),u=l(n(35989)),a=l(n(62791));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=function(e){function t(){var e,n,r;c(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.storeItemReference=function(e){null!==e&&(r.item=e)},r.onMouseEnter=function(e){var t=r.props,n=t.sectionIndex,o=t.itemIndex;r.props.onMouseEnter(e,{sectionIndex:n,itemIndex:o})},r.onMouseLeave=function(e){var t=r.props,n=t.sectionIndex,o=t.itemIndex;r.props.onMouseLeave(e,{sectionIndex:n,itemIndex:o})},r.onMouseDown=function(e){var t=r.props,n=t.sectionIndex,o=t.itemIndex;r.props.onMouseDown(e,{sectionIndex:n,itemIndex:o})},r.onClick=function(e){var t=r.props,n=t.sectionIndex,o=t.itemIndex;r.props.onClick(e,{sectionIndex:n,itemIndex:o})},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,o=e.renderItem,i=e.renderItemData,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete u.sectionIndex,delete u.itemIndex,"function"==typeof u.onMouseEnter&&(u.onMouseEnter=this.onMouseEnter),"function"==typeof u.onMouseLeave&&(u.onMouseLeave=this.onMouseLeave),"function"==typeof u.onMouseDown&&(u.onMouseDown=this.onMouseDown),"function"==typeof u.onClick&&(u.onClick=this.onClick),s.default.createElement("li",r({role:"option"},u,{ref:this.storeItemReference}),o(n,r({isHighlighted:t},i)))}}]),t}(i.Component);g.propTypes={sectionIndex:u.default.number,isHighlighted:u.default.bool.isRequired,itemIndex:u.default.number.isRequired,item:u.default.any.isRequired,renderItem:u.default.func.isRequired,renderItemData:u.default.object.isRequired,onMouseEnter:u.default.func,onMouseLeave:u.default.func,onMouseDown:u.default.func,onClick:u.default.func},t.default=g},90835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(63804),s=c(i),u=c(n(35989)),a=c(n(36978)),l=c(n(62791));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var e,n,r;f(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.storeHighlightedItemReference=function(e){r.props.onHighlightedItemChange(null===e?null:e.item)},g(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,i=t.renderItem,u=t.renderItemData,l=t.sectionIndex,c=t.highlightedItemIndex,f=t.getItemId,g=t.theme,p=t.keyPrefix,d=null===l?p:p+"section-"+l+"-",h="function"==typeof o;return s.default.createElement("ul",r({role:"listbox"},g(d+"items-list","itemsList")),n.map((function(t,n){var p=0===n,m=n===c,v=d+"item-"+n,y=h?o({sectionIndex:l,itemIndex:n}):o,S=r({id:f(l,n),"aria-selected":m},g(v,"item",p&&"itemFirst",m&&"itemHighlighted"),y);return m&&(S.ref=e.storeHighlightedItemReference),s.default.createElement(a.default,r({},S,{sectionIndex:l,isHighlighted:m,itemIndex:n,item:t,renderItem:i,renderItemData:u}))})))}}]),t}(i.Component);p.propTypes={items:u.default.array.isRequired,itemProps:u.default.oneOfType([u.default.object,u.default.func]),renderItem:u.default.func.isRequired,renderItemData:u.default.object.isRequired,sectionIndex:u.default.number,highlightedItemIndex:u.default.number,onHighlightedItemChange:u.default.func.isRequired,getItemId:u.default.func.isRequired,theme:u.default.func.isRequired,keyPrefix:u.default.string.isRequired},p.defaultProps={sectionIndex:null},t.default=p},48139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(63804),i=a(o),s=a(n(35989)),u=a(n(62791));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,o=e.sectionKeyPrefix,s=n(t);return s?i.default.createElement("div",r(o+"title","sectionTitle"),s):null}}]),t}(o.Component);f.propTypes={section:s.default.any.isRequired,renderSectionTitle:s.default.func.isRequired,theme:s.default.func.isRequired,sectionKeyPrefix:s.default.string.isRequired},t.default=f},62791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!0;var s={},u=void 0,a=void 0;for(u=0,a=r.length;u<a;u++)s[r[u]]=!0;for(u=0,a=o.length;u<a;u++){var l=o[u],c=e[l],f=t[l];if(c!==f){if(!s[l]||null===c||null===f||"object"!==(void 0===c?"undefined":n(c))||"object"!==(void 0===f?"undefined":n(f)))return!0;var g=Object.keys(c),p=Object.keys(f);if(g.length!==p.length)return!0;for(var d=0,h=g.length;d<h;d++){var m=g[d];if(c[m]!==f[m])return!0}}}return!1}},65786:(e,t,n)=>{"use strict";e.exports=n(86818).default},76142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var r=n(63804),o=n.n(r),i=n(35989),s=n.n(i),u=n(59839),a=n.n(u),l="undefined"==typeof document||!document||!document.createElement||"multiple"in document.createElement("input");function c(e,t){return"application/x-moz-file"===e.type||a()(e,t)}function f(e){e.preventDefault()}function g(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function p(e){return-1!==e.indexOf("Edge/")}const d={borderStyle:"solid",borderColor:"#c66",backgroundColor:"#eee"},h={opacity:.5},m={borderStyle:"solid",borderColor:"#6c6",backgroundColor:"#eee"},v={width:200,height:200,borderWidth:2,borderColor:"#666",borderStyle:"dashed",borderRadius:5};var y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function b(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var w=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.renderChildren=function(e,t,n,o){return"function"==typeof e?e(y({},r.state,{isDragActive:t,isDragAccept:n,isDragReject:o})):e},r.composeHandlers=r.composeHandlers.bind(r),r.onClick=r.onClick.bind(r),r.onDocumentDrop=r.onDocumentDrop.bind(r),r.onDragEnter=r.onDragEnter.bind(r),r.onDragLeave=r.onDragLeave.bind(r),r.onDragOver=r.onDragOver.bind(r),r.onDragStart=r.onDragStart.bind(r),r.onDrop=r.onDrop.bind(r),r.onFileDialogCancel=r.onFileDialogCancel.bind(r),r.onInputElementClick=r.onInputElementClick.bind(r),r.setRef=r.setRef.bind(r),r.setRefs=r.setRefs.bind(r),r.isFileDialogActive=!1,r.state={draggedFiles:[],acceptedFiles:[],rejectedFiles:[]},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),S(t,[{key:"componentDidMount",value:function(){var e=this.props.preventDropOnDocument;this.dragTargets=[],e&&(document.addEventListener("dragover",f,!1),document.addEventListener("drop",this.onDocumentDrop,!1)),this.fileInputEl.addEventListener("click",this.onInputElementClick,!1),window.addEventListener("focus",this.onFileDialogCancel,!1)}},{key:"componentWillUnmount",value:function(){this.props.preventDropOnDocument&&(document.removeEventListener("dragover",f),document.removeEventListener("drop",this.onDocumentDrop)),null!=this.fileInputEl&&this.fileInputEl.removeEventListener("click",this.onInputElementClick,!1),window.removeEventListener("focus",this.onFileDialogCancel,!1)}},{key:"composeHandlers",value:function(e){return this.props.disabled?null:e}},{key:"onDocumentDrop",value:function(e){this.node&&this.node.contains(e.target)||(e.preventDefault(),this.dragTargets=[])}},{key:"onDragStart",value:function(e){this.props.onDragStart&&this.props.onDragStart.call(this,e)}},{key:"onDragEnter",value:function(e){var t=this;e.preventDefault(),-1===this.dragTargets.indexOf(e.target)&&this.dragTargets.push(e.target),Promise.resolve(this.props.getDataTransferItems(e)).then((function(e){t.setState({isDragActive:!0,draggedFiles:e})})),this.props.onDragEnter&&this.props.onDragEnter.call(this,e)}},{key:"onDragOver",value:function(e){e.preventDefault(),e.stopPropagation();try{e.dataTransfer.dropEffect=this.isFileDialogActive?"none":"copy"}catch(e){}return this.props.onDragOver&&this.props.onDragOver.call(this,e),!1}},{key:"onDragLeave",value:function(e){var t=this;e.preventDefault(),this.dragTargets=this.dragTargets.filter((function(n){return n!==e.target&&t.node.contains(n)})),this.dragTargets.length>0||(this.setState({isDragActive:!1,draggedFiles:[]}),this.props.onDragLeave&&this.props.onDragLeave.call(this,e))}},{key:"onDrop",value:function(e){var t=this,n=this.props,r=n.onDrop,o=n.onDropAccepted,i=n.onDropRejected,s=n.multiple,u=n.disablePreview,a=n.accept,l=n.getDataTransferItems;e.preventDefault(),this.dragTargets=[],this.isFileDialogActive=!1,this.draggedFiles=null,this.setState({isDragActive:!1,draggedFiles:[]}),Promise.resolve(l(e)).then((function(n){var l=[],f=[];n.forEach((function(e){if(!u)try{e.preview=window.URL.createObjectURL(e)}catch(e){0}c(e,a)&&function(e,t,n){return e.size<=t&&e.size>=n}(e,t.props.maxSize,t.props.minSize)?l.push(e):f.push(e)})),s||f.push.apply(f,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(l.splice(1))),r&&r.call(t,l,f,e),f.length>0&&i&&i.call(t,f,e),l.length>0&&o&&o.call(t,l,e)}))}},{key:"onClick",value:function(e){var t=this.props,n=t.onClick;t.disableClick||(e.stopPropagation(),n&&n.call(this,e),!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return g(e)||p(e)}()?this.open():setTimeout(this.open.bind(this),0))}},{key:"onInputElementClick",value:function(e){e.stopPropagation(),this.props.inputProps&&this.props.inputProps.onClick&&this.props.inputProps.onClick()}},{key:"onFileDialogCancel",value:function(){var e=this,t=this.props.onFileDialogCancel;this.isFileDialogActive&&setTimeout((function(){null!=e.fileInputEl&&(e.fileInputEl.files.length||(e.isFileDialogActive=!1));"function"==typeof t&&t()}),300)}},{key:"setRef",value:function(e){this.node=e}},{key:"setRefs",value:function(e){this.fileInputEl=e}},{key:"open",value:function(){this.isFileDialogActive=!0,this.fileInputEl.value=null,this.fileInputEl.click()}},{key:"render",value:function(){var e=this.props,t=e.accept,n=e.acceptClassName,r=e.activeClassName,i=e.children,s=e.disabled,u=e.disabledClassName,a=e.inputProps,f=e.multiple,g=e.name,p=e.rejectClassName,S=b(e,["accept","acceptClassName","activeClassName","children","disabled","disabledClassName","inputProps","multiple","name","rejectClassName"]),w=S.acceptStyle,I=S.activeStyle,x=S.className,O=void 0===x?"":x,C=S.disabledStyle,D=S.rejectStyle,k=S.style,P=b(S,["acceptStyle","activeStyle","className","disabledStyle","rejectStyle","style"]),_=this.state,j=_.isDragActive,E=_.draggedFiles,T=E.length,R=f||T<=1,F=T>0&&function(e,t){return e.every((function(e){return c(e,t)}))}(E,this.props.accept),A=T>0&&(!F||!R),M=!(O||k||I||w||D||C);j&&r&&(O+=" "+r),F&&n&&(O+=" "+n),A&&p&&(O+=" "+p),s&&u&&(O+=" "+u),M&&(k=v,I=m,w=m,D=d,C=h);var N=y({position:"relative"},k);I&&j&&(N=y({},N,I)),w&&F&&(N=y({},N,w)),D&&A&&(N=y({},N,D)),C&&s&&(N=y({},N,C));var H={accept:t,disabled:s,type:"file",style:y({position:"absolute",top:0,right:0,bottom:0,left:0,opacity:1e-5,pointerEvents:"none"},a.style),multiple:l&&f,ref:this.setRefs,onChange:this.onDrop,autoComplete:"off"};g&&g.length&&(H.name=g);P.acceptedFiles,P.preventDropOnDocument,P.disablePreview,P.disableClick,P.onDropAccepted,P.onDropRejected,P.onFileDialogCancel,P.maxSize,P.minSize,P.getDataTransferItems;var L=b(P,["acceptedFiles","preventDropOnDocument","disablePreview","disableClick","onDropAccepted","onDropRejected","onFileDialogCancel","maxSize","minSize","getDataTransferItems"]);return o().createElement("div",y({className:O,style:N},L,{onClick:this.composeHandlers(this.onClick),onDragStart:this.composeHandlers(this.onDragStart),onDragEnter:this.composeHandlers(this.onDragEnter),onDragOver:this.composeHandlers(this.onDragOver),onDragLeave:this.composeHandlers(this.onDragLeave),onDrop:this.composeHandlers(this.onDrop),ref:this.setRef,"aria-disabled":s}),this.renderChildren(i,j,F,A),o().createElement("input",y({},a,H)))}}]),t}(o().Component);const I=w;w.propTypes={accept:s().oneOfType([s().string,s().arrayOf(s().string)]),children:s().oneOfType([s().node,s().func]),disableClick:s().bool,disabled:s().bool,disablePreview:s().bool,preventDropOnDocument:s().bool,inputProps:s().object,multiple:s().bool,name:s().string,maxSize:s().number,minSize:s().number,className:s().string,activeClassName:s().string,acceptClassName:s().string,rejectClassName:s().string,disabledClassName:s().string,style:s().object,activeStyle:s().object,acceptStyle:s().object,rejectStyle:s().object,disabledStyle:s().object,getDataTransferItems:s().func,onClick:s().func,onDrop:s().func,onDropAccepted:s().func,onDropRejected:s().func,onDragStart:s().func,onDragEnter:s().func,onDragOver:s().func,onDragLeave:s().func,onFileDialogCancel:s().func},w.defaultProps={preventDropOnDocument:!0,disabled:!1,disablePreview:!1,disableClick:!1,inputProps:{},multiple:!0,maxSize:1/0,minSize:0,getDataTransferItems:function(e){var t=[];if(e.dataTransfer){var n=e.dataTransfer;n.files&&n.files.length?t=n.files:n.items&&n.items.length&&(t=n.items)}else e.target&&e.target.files&&(t=e.target.files);return Array.prototype.slice.call(t)}}},50360:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(63804),o=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){}function f(){}f.resetWarningCache=c;var g=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:f,resetWarningCache:c};return n.PropTypes=n,n}()}));function p(){}function d(e){return!!(e||"").match(/\d/)}function h(e){return null==e}function m(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function v(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split("."),i=o[0],s=o[1]||"";return{beforeDecimal:i,afterDecimal:s,hasNagation:n,addNegation:r}}function y(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function S(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function b(e,t,n){return Math.min(Math.max(e,t),n)}function w(e){return Math.max(e.selectionStart,e.selectionEnd)}var I={thousandSeparator:g.oneOfType([g.string,g.oneOf([!0])]),decimalSeparator:g.string,allowedDecimalSeparators:g.arrayOf(g.string),thousandsGroupStyle:g.oneOf(["thousand","lakh","wan"]),decimalScale:g.number,fixedDecimalScale:g.bool,displayType:g.oneOf(["input","text"]),prefix:g.string,suffix:g.string,format:g.oneOfType([g.string,g.func]),removeFormatting:g.func,mask:g.oneOfType([g.string,g.arrayOf(g.string)]),value:g.oneOfType([g.number,g.string]),defaultValue:g.oneOfType([g.number,g.string]),isNumericString:g.bool,customInput:g.elementType,allowNegative:g.bool,allowEmptyFormatting:g.bool,allowLeadingZeros:g.bool,onValueChange:g.func,onKeyDown:g.func,onMouseUp:g.func,onChange:g.func,onFocus:g.func,onBlur:g.func,type:g.oneOf(["text","tel","password"]),isAllowed:g.func,renderText:g.func,getInputRef:g.oneOfType([g.func,g.shape({current:g.any})])},x={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:p,onChange:p,onKeyDown:p,onMouseUp:p,onFocus:p,onBlur:p,isAllowed:function(){return!0}},O=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?l(e):t}(this,u(t).call(this,e));var r=e.defaultValue;n.validateProps();var o=n.formatValueProp(r);return n.state={value:o,numAsString:n.removeFormatting(o),mounted:!1},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(l(n)),n.onKeyDown=n.onKeyDown.bind(l(n)),n.onMouseUp=n.onMouseUp.bind(l(n)),n.onFocus=n.onFocus.bind(l(n)),n.onBlur=n.onBlur.bind(l(n)),n}var n,r,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.setState({mounted:!0})}},{key:"componentDidUpdate",value:function(e){this.updateValueIfRequired(e)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.focusTimeout)}},{key:"updateValueIfRequired",value:function(e){var t=this.props,n=this.state,r=this.focusedElm,o=n.value,i=n.numAsString,s=void 0===i?"":i;if(e!==t){this.validateProps();var u=this.formatNumString(s),a=h(t.value)?u:this.formatValueProp(),l=this.removeFormatting(a),c=parseFloat(l),f=parseFloat(s);(isNaN(c)&&isNaN(f)||c===f)&&u===o&&(null!==r||a===o)||this.updateValue({formattedValue:a,numAsString:l,input:r})}}},{key:"getFloatString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.decimalScale,n=this.getSeparators(),r=n.decimalSeparator,o=this.getNumberRegex(!0),i="-"===e[0];i&&(e=e.replace("-","")),r&&0===t&&(e=e.split(r)[0]);var s=(e=(e.match(o)||[]).join("").replace(r,".")).indexOf(".");return-1!==s&&(e="".concat(e.substring(0,s),".").concat(e.substring(s+1,e.length).replace(new RegExp(m(r),"g"),""))),i&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var n=this.props,r=n.format,o=n.decimalScale,i=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!i||0===o||t||r?"":"|"+m(i)),e?"g":void 0)}},{key:"getSeparators",value:function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}},{key:"getMaskAtIndex",value:function(e){var t=this.props.mask,n=void 0===t?" ":t;return"string"==typeof n?n:n[e]||" "}},{key:"getValueObject",value:function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}}},{key:"validateProps",value:function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,r=t.thousandSeparator;if(n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: ".concat(r,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: ').concat(n," (default value for decimalSeparator is .)\n "));if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask ".concat(e," should not contain numeric character;\n "))}},{key:"setPatchedCaretPosition",value:function(e,t,n){S(e,t),setTimeout((function(){e.value===n&&S(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,n){var r=this.props,o=r.prefix,i=r.suffix,s=r.format;if(""===e)return 0;if(t=b(t,0,e.length),!s){var u="-"===e[0];return b(t,o.length+(u?1:0),e.length-i.length)}if("function"==typeof s)return t;if("#"===s[t]&&d(e[t]))return t;if("#"===s[t-1]&&d(e[t-1]))return t;var a=s.indexOf("#");t=b(t,a,s.lastIndexOf("#")+1);for(var l=s.substring(t,s.length).indexOf("#"),c=t,f=t+(-1===l?0:l);c>a&&("#"!==s[c]||!d(e[c]));)c-=1;return!d(e[f])||"left"===n&&t!==a||t-c<f-t?d(e[c])?c+1:c:f}},{key:"getCaretPosition",value:function(e,t,n){var r,o,i=this.props.format,s=this.state.value,u=this.getNumberRegex(!0),a=(e.match(u)||[]).join(""),l=(t.match(u)||[]).join("");for(r=0,o=0;o<n;o++){var c=e[o]||"",f=t[r]||"";if((c.match(u)||c===f)&&("0"!==c||!f.match(u)||"0"===f||a.length===l.length)){for(;c!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof i||s||(r=t.length),r=this.correctCaretPosition(t,r)}},{key:"removePrefixAndSuffix",value:function(e){var t=this.props,n=t.format,r=t.prefix,o=t.suffix;if(!n&&e){var i="-"===e[0];i&&(e=e.substring(1,e.length));var s=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==s&&s===e.length-o.length?e.substring(0,s):e,i&&(e="-"+e)}return e}},{key:"removePatternFormatting",value:function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),n=0,r="",o=0,i=t.length;o<=i;o++){var s=t[o]||"",u=o===i?e.length:e.indexOf(s,n);if(-1===u){r=e;break}r+=e.substring(n,u),n=u+s.length}return(r.match(/\d/g)||[]).join("")}},{key:"removeFormatting",value:function(e){var t=this.props,n=t.format,r=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof r?r(e):(e.match(/\d/g)||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e}},{key:"formatWithPattern",value:function(e){for(var t=this.props.format,n=0,r=t.split(""),o=0,i=t.length;o<i;o++)"#"===t[o]&&(r[o]=e[n]||this.getMaskAtIndex(n),n+=1);return r.join("")}},{key:"formatAsNumber",value:function(e){var t=this.props,n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix,i=t.suffix,s=t.allowNegative,u=t.thousandsGroupStyle,a=this.getSeparators(),l=a.thousandSeparator,c=a.decimalSeparator,f=-1!==e.indexOf(".")||n&&r,g=v(e,s),p=g.beforeDecimal,d=g.afterDecimal,h=g.addNegation;return void 0!==n&&(d=y(d,n,r)),l&&(p=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(p,l,u)),o&&(p=o+p),i&&(d+=i),h&&(p="-"+p),e=p+(f&&c||"")+d}},{key:"formatNumString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.format,r=t.allowEmptyFormatting,o=e;return o=""!==e||r?"-"!==e||n?"string"==typeof n?this.formatWithPattern(o):"function"==typeof n?n(o):this.formatAsNumber(o):"-":""}},{key:"formatValueProp",value:function(e){var t=this.props,n=t.format,r=t.decimalScale,o=t.fixedDecimalScale,i=t.allowEmptyFormatting,s=this.props,u=s.value,a=s.isNumericString,l=!(u=h(u)?e:u)&&0!==u;return l&&i&&(u=""),l&&!i?"":("number"==typeof u&&(u=u.toString(),a=!0),"Infinity"===u&&a&&(u=""),a&&!n&&"number"==typeof r&&(u=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=v(e),i=o.beforeDecimal,s=o.afterDecimal,u=o.hasNagation,a=parseFloat("0.".concat(s||"0")),l=(s.length<=t?a.toString():a.toFixed(t)).split("."),c=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),l[0]),f=y(l[1]||"",Math.min(t,s.length),n),g=r?".":"";return"".concat(u?"-":"").concat(c).concat(g).concat(f)}(u,r,o)),a?this.formatNumString(u):this.formatInput(u))}},{key:"formatNegation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}},{key:"formatInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.format;return t||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)}},{key:"isCharacterAFormat",value:function(e,t){var n=this.props,r=n.format,o=n.prefix,i=n.suffix,s=n.decimalScale,u=n.fixedDecimalScale,a=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-i.length||s&&u&&t[e]===a))}},{key:"checkIfFormatGotDeleted",value:function(e,t,n){for(var r=e;r<t;r++)if(this.isCharacterAFormat(r,n))return!0;return!1}},{key:"correctInputValue",value:function(e,t,n){var r=this.props,o=r.format,i=r.allowNegative,s=r.prefix,u=r.suffix,a=r.decimalScale,l=this.getSeparators(),c=l.allowedDecimalSeparators,f=l.decimalSeparator,g=this.state.numAsString||"",p=this.selectionBeforeInput,d=p.selectionStart,h=p.selectionEnd,m=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),y=m.start,S=m.end;if(!o&&y===S&&-1!==c.indexOf(n[d])){var b=0===a?"":f;return n.substr(0,d)+b+n.substr(d+1,n.length)}var w=o?0:s.length,I=t.length-(o?0:u.length);if(n.length>t.length||!n.length||y===S||0===d&&h===t.length||d===w&&h===I)return n;if(this.checkIfFormatGotDeleted(y,S,t)&&(n=t),!o){var x=this.removeFormatting(n),O=v(x,i),C=O.beforeDecimal,D=O.afterDecimal,k=O.addNegation,P=e<n.indexOf(f)+1;if(x.length<g.length&&P&&""===C&&!parseFloat(D))return k?"-":""}return n}},{key:"updateValue",value:function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition,o=void 0===r||r,i=e.numAsString,s=e.caretPos,u=this.props.onValueChange,a=this.state.value;if(n)if(o){if(!s){var l=e.inputValue||n.value,c=w(n);n.value=t,s=this.getCaretPosition(l,t,c)}this.setPatchedCaretPosition(n,s,t)}else n.value=t;void 0===i&&(i=this.removeFormatting(t)),t!==a&&(this.setState({value:t,numAsString:i}),u(this.getValueObject(t,i)))}},{key:"onChange",value:function(e){var t=e.target,n=t.value,r=this.state,o=this.props,i=o.isAllowed,s=r.value||"",u=w(t);n=this.correctInputValue(u,s,n);var a=this.formatInput(n)||"",l=this.removeFormatting(a);i(this.getValueObject(a,l))||(a=s),this.updateValue({formattedValue:a,numAsString:l,inputValue:n,input:t}),o.onChange(e)}},{key:"onBlur",value:function(e){var t=this.props,n=this.state,r=t.format,o=t.onBlur,i=t.allowLeadingZeros,s=n.numAsString,u=n.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),!r){isNaN(parseFloat(s))&&(s=""),i||(s=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return"".concat(t?"-":"").concat(r).concat(o?".".concat(o):"")}(s));var a=this.formatNumString(s);if(a!==u)return this.updateValue({formattedValue:a,numAsString:s,input:e.target,setCaretPosition:!1}),void o(e)}o(e)}},{key:"onKeyDown",value:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,s=n.value,u=void 0===s?"":s,a=this.props,l=a.decimalScale,c=a.fixedDecimalScale,f=a.prefix,g=a.suffix,p=a.format,d=a.onKeyDown,h=void 0!==l&&c,m=this.getNumberRegex(!1,h),v=new RegExp("-"),y="string"==typeof p;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:i},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===i){var S=t,b=y?p.indexOf("#"):f.length,w=y?p.lastIndexOf("#")+1:u.length-g.length;if("ArrowLeft"===r||"ArrowRight"===r){var I="ArrowLeft"===r?"left":"right";S=this.correctCaretPosition(u,t,I)}else if("Delete"!==r||m.test(u[t])||v.test(u[t])){if("Backspace"===r&&!m.test(u[t]))if(o<=b+1&&"-"===u[0]&&void 0===p){var x=u.substring(1);this.updateValue({formattedValue:x,caretPos:S,input:n})}else if(!v.test(u[t])){for(;!m.test(u[S-1])&&S>b;)S--;S=this.correctCaretPosition(u,S,"left")}}else for(;!m.test(u[S])&&S<w;)S++;(S!==t||t<b||t>w)&&(e.preventDefault(),this.setPatchedCaretPosition(n,S,u)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,S,u),d(e)}else d(e)}},{key:"onMouseUp",value:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value,i=void 0===o?"":o;if(n===r){var s=this.correctCaretPosition(i,n);s!==n&&this.setPatchedCaretPosition(t,s,i)}this.props.onMouseUp(e)}},{key:"onFocus",value:function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var n=e.target,r=n.selectionStart,o=n.selectionEnd,i=n.value,s=void 0===i?"":i,u=t.correctCaretPosition(s,r);u===r||0===r&&o===s.length||t.setPatchedCaretPosition(n,u,s),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,n,r=this.props,i=r.type,u=r.displayType,a=r.customInput,l=r.renderText,c=r.getInputRef,f=r.format,g=this.state,p=g.value,d=g.mounted,h=(e=this.props,t=I,n={},Object.keys(e).forEach((function(r){t[r]||(n[r]=e[r])})),n),m=s({inputMode:d&&function(e){return e||!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}(f)?"numeric":void 0},h,{type:i,value:p,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===u)return l?l(p,h)||null:o().createElement("span",s({},h,{ref:c}),p);if(a){var v=a;return o().createElement(v,s({},m,{ref:c}))}return o().createElement("input",s({},m,{ref:c}))}}])&&i(n.prototype,r),c&&i(n,c),t}(o().Component);O.propTypes=I,O.defaultProps=x;const C=O},91079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,s=n(24679),u=(i=s)&&i.__esModule?i:{default:i},a=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),i=n[0],s=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var l=n.map((function(e){return i[e]})).filter(a);return"string"==typeof l[0]||"function"==typeof s?{key:e,className:s?s.apply(void 0,o(l)):l.join(" ")}:{key:e,style:u.default.apply(void 0,[{}].concat(o(l)))}}},e.exports=t.default},24679:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,i,s=n(e),u=1;u<arguments.length;u++){o=arguments[u],i=r(Object(o));for(var a=0;a<i.length;a++)s[i[a]]=o[i[a]]}return s}},44274:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),i=o[0],s=o[1];return r?null===s||s===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,s+1]:0===n||s===n-1?[null,null]:null===s?[null,0]:[null,s+1]}return{next:o,prev:function(e){var o=t(e,2),i=o[0],s=o[1];return r?null===s||0===s?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,s-1]:0===n||0===s?[null,null]:null===s?[null,n-1]:[null,s-1]},isLast:function(e){return null===o(e)[1]}}}},32827:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}}}]);
|