File "index.js"

Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/surerank/build/vendor-e5bca7e4/index.js
File size: 79.44 KB
MIME-type: text/plain
Charset: utf-8

"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[658],{5338:(e,t,n)=>{var o=n(75795);t.H=o.createRoot},21020:(e,t,n)=>{var o=n(51609),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var o,i={},l=null,c=null;for(o in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,o)&&!u.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:l,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},22799:(e,t)=>{var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case a:case i:case p:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case c:case m:case f:case s:return e;default:return t}}case o:return t}}}(e)===r}},30427:(e,t,n)=>{n.d(t,{Ay:()=>lt});var o=n(89379),r=n(80296),i=n(53986),a=n(51609),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],u=n(58168),l=n(23029),c=n(15282),p=n(15361),d=n(58096),f=n(45458),m=n(11456),h=n(82284),v=n(57528),b=n(64467),g=n(75795),y=n(46885),O=n(27003),A=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],S=function(){};function w(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function I(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(w(e,a)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var C=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,h.A)(e)&&null!==e?[e]:[]},E=function(e){var t=(0,i.A)(e,A);return(0,o.A)({},t)},P=function(e,t,n){var o=e.cx,r=e.getClassNames,i=e.className;return{css:(0,e.getStyles)(t,e),className:o(null!==n&&void 0!==n?n:{},r(t,e),i)}};function M(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function V(e){return M(e)?window.pageYOffset:e.scrollTop}function x(e,t){M(e)?window.scrollTo(0,t):e.scrollTop=t}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S,r=V(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;x(e,u),a<n?window.requestAnimationFrame(t):o(e)}()}function D(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?x(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&x(e,Math.max(t.offsetTop-r,0))}function R(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var F=!1,L="undefined"!==typeof window?window:{};L.addEventListener&&L.removeEventListener&&(L.addEventListener("p",S,{get passive(){return F=!0}}),L.removeEventListener("p",S,!1));var T=F;function j(e){return null!=e}function H(e,t,n){return e?t:n}for(var Y,U=["children","innerProps"],B=["children","innerProps"],N=function(e){return"auto"===e?"bottom":e},z=(0,a.createContext)(null),_=function(e){var t=e.children,n=e.minMenuHeight,i=e.maxMenuHeight,s=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,p=((0,a.useContext)(z)||{}).setPortalPlacement,d=(0,a.useRef)(null),f=(0,a.useState)(i),m=(0,r.A)(f,2),h=m[0],v=m[1],b=(0,a.useState)(null),g=(0,r.A)(b,2),y=g[0],A=g[1],S=c.spacing.controlHeight;return(0,O.A)(function(){var e=d.current;if(e){var t="fixed"===u,o=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,p=u.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,m=d.height,h=d.top,v=n.offsetParent.getBoundingClientRect().top,b=a||M(c=u)?window.innerHeight:c.clientHeight,g=V(u),y=parseInt(getComputedStyle(n).marginBottom,10),O=parseInt(getComputedStyle(n).marginTop,10),A=v-O,S=b-h,w=A+g,I=p-g-h,C=f-b+g+y,E=g+h-O,P=160;switch(r){case"auto":case"bottom":if(S>=m)return{placement:"bottom",maxHeight:t};if(I>=m&&!a)return i&&k(u,C,P),{placement:"bottom",maxHeight:t};if(!a&&I>=o||a&&S>=o)return i&&k(u,C,P),{placement:"bottom",maxHeight:a?S-y:I-y};if("auto"===r||a){var D=t,R=a?A:w;return R>=o&&(D=Math.min(R-y-s,t)),{placement:"top",maxHeight:D}}if("bottom"===r)return i&&x(u,C),{placement:"bottom",maxHeight:t};break;case"top":if(A>=m)return{placement:"top",maxHeight:t};if(w>=m&&!a)return i&&k(u,E,P),{placement:"top",maxHeight:t};if(!a&&w>=o||a&&A>=o){var F=t;return(!a&&w>=o||a&&A>=o)&&(F=a?A-O:w-O),i&&k(u,E,P),{placement:"top",maxHeight:F}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}({maxHeight:i,menuEl:e,minHeight:n,placement:s,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:S});v(o.maxHeight),A(o.placement),null===p||void 0===p||p(o.placement)}},[i,s,u,l,n,p,S]),t({ref:d,placerProps:(0,o.A)((0,o.A)({},e),{},{placement:y||N(s),maxHeight:h})})},W=function(e,t){var n=e.theme,r=n.spacing.baseUnit;return(0,o.A)({textAlign:"center"},t?{}:{color:n.colors.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},q=W,G=W,J=["size"],X=["innerProps","isRtl","size"],$={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},K=function(e){var t=e.size,n=(0,i.A)(e,J);return(0,m.Y)("svg",(0,u.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$},n))},Z=function(e){return(0,m.Y)(K,(0,u.A)({size:20},e),(0,m.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Q=function(e){return(0,m.Y)(K,(0,u.A)({size:20},e),(0,m.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ee=function(e,t){var n=e.isFocused,r=e.theme,i=r.colors;return(0,o.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit,":hover":{color:n?i.neutral80:i.neutral40}})},te=ee,ne=ee,oe=(0,m.i7)(Y||(Y=(0,v.A)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),re=function(e){var t=e.delay,n=e.offset;return(0,m.Y)("span",{css:(0,m.AH)({animation:"".concat(oe," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ie=["data"],ae=["innerRef","isDisabled","isHidden","inputClassName"],se={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ue={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,o.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},se)},le=function(e){return(0,o.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},se)},ce=function(e){return(0,m.Y)("div",e.innerProps,e.children)},pe={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,m.Y)(Z,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,m.Y)("div",(0,u.A)({ref:e.innerRef},P(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":e.isFocused,"control--menu-is-open":e.menuIsOpen}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,m.Y)(Q,null))},DownChevron:Q,CrossIcon:Z,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,p=e.selectProps;return(0,m.Y)("div",(0,u.A)({},P(e,"group",{group:!0}),s),(0,m.Y)(i,(0,u.A)({},a,{selectProps:p,theme:c,getStyles:o,getClassNames:r,cx:n}),l),(0,m.Y)("div",null,t))},GroupHeading:function(e){var t=E(e),n=(0,i.A)(t,ie);return(0,m.Y)("div",(0,u.A)({},P(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){return(0,m.Y)("span",(0,u.A)({},e.innerProps,P(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=E(e),r=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,c=(0,i.A)(o,ae);return(0,m.Y)("div",(0,u.A)({},P(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,m.Y)("input",(0,u.A)({className:t({input:!0},l),ref:r,style:le(s),disabled:a},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,a=void 0===r?4:r,s=(0,i.A)(e,X);return(0,m.Y)("div",(0,u.A)({},P((0,o.A)((0,o.A)({},s),{},{innerProps:t,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,m.Y)(re,{delay:0,offset:n}),(0,m.Y)(re,{delay:160,offset:!0}),(0,m.Y)(re,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef;return(0,m.Y)("div",(0,u.A)({},P(e,"menuList",{"menu-list":!0,"menu-list--is-multi":e.isMulti}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,i=e.controlElement,s=e.innerProps,l=e.menuPlacement,c=e.menuPosition,p=(0,a.useRef)(null),d=(0,a.useRef)(null),f=(0,a.useState)(N(l)),h=(0,r.A)(f,2),v=h[0],b=h[1],A=(0,a.useMemo)(function(){return{setPortalPlacement:b}},[]),S=(0,a.useState)(null),w=(0,r.A)(S,2),I=w[0],C=w[1],E=(0,a.useCallback)(function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===c?0:window.pageYOffset,n=e[v]+t;n===(null===I||void 0===I?void 0:I.offset)&&e.left===(null===I||void 0===I?void 0:I.rect.left)&&e.width===(null===I||void 0===I?void 0:I.rect.width)||C({offset:n,rect:e})}},[i,c,v,null===I||void 0===I?void 0:I.offset,null===I||void 0===I?void 0:I.rect.left,null===I||void 0===I?void 0:I.rect.width]);(0,O.A)(function(){E()},[E]);var M=(0,a.useCallback)(function(){"function"===typeof d.current&&(d.current(),d.current=null),i&&p.current&&(d.current=(0,y.ll)(i,p.current,E,{elementResize:"ResizeObserver"in window}))},[i,E]);(0,O.A)(function(){M()},[M]);var V=(0,a.useCallback)(function(e){p.current=e,M()},[M]);if(!t&&"fixed"!==c||!I)return null;var x=(0,m.Y)("div",(0,u.A)({ref:V},P((0,o.A)((0,o.A)({},e),{},{offset:I.offset,position:c,rect:I.rect}),"menuPortal",{"menu-portal":!0}),s),n);return(0,m.Y)(z.Provider,{value:A},t?(0,g.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,a=(0,i.A)(e,B);return(0,m.Y)("div",(0,u.A)({},P((0,o.A)((0,o.A)({},a),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,a=(0,i.A)(e,U);return(0,m.Y)("div",(0,u.A)({},P((0,o.A)((0,o.A)({},a),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.removeProps,s=e.selectProps,u=n.Label,l=n.Remove;return(0,m.Y)(n.Container,{data:r,innerProps:(0,o.A)((0,o.A)({},P(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":e.isDisabled})),i),selectProps:s},(0,m.Y)(u,{data:r,innerProps:(0,o.A)({},P(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,m.Y)(l,{data:r,innerProps:(0,o.A)((0,o.A)({},P(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:ce,MultiValueLabel:ce,MultiValueRemove:function(e){var t=e.children;return(0,m.Y)("div",(0,u.A)({role:"button"},e.innerProps),t||(0,m.Y)(Z,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.innerRef,r=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":e.isFocused,"option--is-selected":e.isSelected}),{ref:o,"aria-disabled":n},r),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"container",{"--is-disabled":e.isDisabled,"--is-rtl":e.isRtl}),n),t)},SingleValue:function(e){var t=e.children,n=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"singleValue",{"single-value":!0,"single-value--is-disabled":e.isDisabled}),n),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps;return(0,m.Y)("div",(0,u.A)({},P(e,"valueContainer",{"value-container":!0,"value-container--is-multi":e.isMulti,"value-container--has-value":e.hasValue}),n),t)}},de=n(41811),fe={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"},me=function(e){return(0,m.Y)("span",(0,u.A)({css:fe},e))},he={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.isInitialFocus;switch(e.context){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".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.label,n=void 0===t?"":t,o=e.labels,r=e.isDisabled;switch(e.action){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(n,r?" 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,s=e.isDisabled,u=e.isSelected,l=e.isAppleDevice,c=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(c(a,n),".");if("menu"===t&&l){var p=s?" disabled":"",d="".concat(u?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(c(o,n),".")}return""},onFilter:function(e){var t=e.inputValue;return"".concat(e.resultsMessage).concat(t?" for search term "+t:"",".")}},ve=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,p=e.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,h=l.inputValue,v=l.isMulti,b=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,O=l.options,A=l.screenReaderStatus,S=l.tabSelectsValue,w=l.isLoading,I=l["aria-label"],C=l["aria-live"],E=(0,a.useMemo)(function(){return(0,o.A)((0,o.A)({},he),d||{})},[d]),P=(0,a.useMemo)(function(){var e,n="";if(t&&E.onChange){var r=t.options,i=t.removedValues,a=t.removedValue||t.option||(e=t.value,Array.isArray(e)?null:e),s=a?f(a):"",l=r||i||void 0,c=l?l.map(f):[],p=(0,o.A)({isDisabled:a&&b(a,u),label:s,labels:c},t);n=E.onChange(p)}return n},[t,E,b,u,f]),M=(0,a.useMemo)(function(){var e="",t=n||r,o=!!(n&&u&&u.includes(n));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:b(t,u),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:u,isAppleDevice:p};e=E.onFocus(a)}return e},[n,r,f,b,E,i,u,p]),V=(0,a.useMemo)(function(){var e="";if(y&&O.length&&!w&&E.onFilter){var t=A({count:i.length});e=E.onFilter({inputValue:h,resultsMessage:t})}return e},[i,h,y,E,O,A,w]),x="initial-input-focus"===(null===t||void 0===t?void 0:t.action),k=(0,a.useMemo)(function(){var e="";return E.guidance&&(e=E.guidance({"aria-label":I,context:r?"value":y?"menu":"input",isDisabled:n&&b(n,u),isMulti:v,isSearchable:g,tabSelectsValue:S,isInitialFocus:x})),e},[I,n,r,v,b,g,y,E,u,S,x]),D=(0,m.Y)(a.Fragment,null,(0,m.Y)("span",{id:"aria-selection"},P),(0,m.Y)("span",{id:"aria-focused"},M),(0,m.Y)("span",{id:"aria-results"},V),(0,m.Y)("span",{id:"aria-guidance"},k));return(0,m.Y)(a.Fragment,null,(0,m.Y)(me,{id:c},x&&D),(0,m.Y)(me,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!x&&D))},be=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],ge=new RegExp("["+be.map(function(e){return e.letters}).join("")+"]","g"),ye={},Oe=0;Oe<be.length;Oe++)for(var Ae=be[Oe],Se=0;Se<Ae.letters.length;Se++)ye[Ae.letters[Se]]=Ae.base;var we=function(e){return e.replace(ge,function(e){return ye[e]})},Ie=(0,de.A)(we),Ce=function(e){return e.replace(/^\s+|\s+$/g,"")},Ee=function(e){return"".concat(e.label," ").concat(e.value)},Pe=["innerRef"];function Me(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=Object.entries(e).filter(function(e){var t=(0,r.A)(e,1);return!n.includes(t[0])});return i.reduce(function(e,t){var n=(0,r.A)(t,2);return e[n[0]]=n[1],e},{})}((0,i.A)(e,Pe),"onExited","in","enter","exit","appear");return(0,m.Y)("input",(0,u.A)({ref:t},n,{css:(0,m.AH)({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 Ve=["boxSizing","height","overflow","paddingRight","position"],xe={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ke(e){e.cancelable&&e.preventDefault()}function De(e){e.stopPropagation()}function Re(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Fe(){return"ontouchstart"in window||navigator.maxTouchPoints}var Le=!("undefined"===typeof window||!window.document||!window.document.createElement),Te=0,je={capture:!1,passive:!1},He=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Ye={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ue(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,s=(0,a.useRef)(!1),u=(0,a.useRef)(!1),l=(0,a.useRef)(0),c=(0,a.useRef)(null),p=(0,a.useCallback)(function(e,t){if(null!==c.current){var a=c.current,l=a.scrollTop,p=a.scrollHeight,d=c.current,f=t>0,m=p-a.clientHeight-l,h=!1;m>t&&s.current&&(o&&o(e),s.current=!1),f&&u.current&&(i&&i(e),u.current=!1),f&&t>m?(n&&!s.current&&n(e),d.scrollTop=p,h=!0,s.current=!0):!f&&-t>l&&(r&&!u.current&&r(e),d.scrollTop=0,h=!0,u.current=!0),h&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,o,r,i]),d=(0,a.useCallback)(function(e){p(e,e.deltaY)},[p]),f=(0,a.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),m=(0,a.useCallback)(function(e){p(e,l.current-e.changedTouches[0].clientY)},[p]),h=(0,a.useCallback)(function(e){if(e){var t=!!T&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}},[m,f,d]),v=(0,a.useCallback)(function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))},[m,f,d]);return(0,a.useEffect)(function(){if(t){var e=c.current;return h(e),function(){v(e)}}},[t,h,v]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,a.useRef)({}),i=(0,a.useRef)(null),s=(0,a.useCallback)(function(e){if(Le){var t=document.body,n=t&&t.style;if(o&&Ve.forEach(function(e){r.current[e]=n&&n[e]}),o&&Te<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(xe).forEach(function(e){n&&(n[e]=xe[e])}),n&&(n.paddingRight="".concat(s,"px"))}t&&Fe()&&(t.addEventListener("touchmove",ke,je),e&&(e.addEventListener("touchstart",Re,je),e.addEventListener("touchmove",De,je))),Te+=1}},[o]),u=(0,a.useCallback)(function(e){if(Le){var t=document.body,n=t&&t.style;Te=Math.max(Te-1,0),o&&Te<1&&Ve.forEach(function(e){n&&(n[e]=r.current[e])}),t&&Fe()&&(t.removeEventListener("touchmove",ke,je),e&&(e.removeEventListener("touchstart",Re,je),e.removeEventListener("touchmove",De,je)))}},[o]);return(0,a.useEffect)(function(){if(t){var e=i.current;return s(e),function(){u(e)}}},[t,s,u]),function(e){i.current=e}}({isEnabled:n});return(0,m.Y)(a.Fragment,null,n&&(0,m.Y)("div",{onClick:He,css:Ye}),t(function(e){r(e),i(e)}))}var Be={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ne=function(e){return(0,m.Y)("input",{required:!0,name:e.name,tabIndex:-1,"aria-hidden":"true",onFocus:e.onFocus,css:Be,value:"",onChange:function(){}})};function ze(e){var t;return"undefined"!==typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function _e(){return ze(/^Mac/i)}var We={clearIndicator:ne,container:function(e){return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:e.isDisabled?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors;return(0,o.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i.borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:te,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.spacing;return(0,o.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:n.colors.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,o.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:e.isDisabled?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,o.A)((0,o.A)({visibility:e.isDisabled?"hidden":"visible",transform:e.value?"translateZ(0)":""},ue),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.size,r=e.theme,i=r.colors;return(0,o.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},t?{}:{color:e.isFocused?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit})},loadingMessage:G,menu:function(e,t){var n,r,i=e.theme,a=i.borderRadius,s=i.spacing,u=i.colors;return(0,o.A)(((0,b.A)(n={label:"menu"},(r=e.placement)?{bottom:"top",top:"bottom"}[r]:"bottom","100%"),(0,b.A)(n,"position","absolute"),(0,b.A)(n,"width","100%"),(0,b.A)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.theme.spacing.baseUnit;return(0,o.A)({maxHeight:e.maxHeight,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:n,paddingTop:n})},menuPortal:function(e){var t=e.rect;return{left:t.left,position:e.position,top:e.offset,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme;return(0,o.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:n.colors.neutral10,borderRadius:n.borderRadius/2,margin:n.spacing.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=e.cropWithEllipsis;return(0,o.A)({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:n.borderRadius/2,color:n.colors.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,o.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:n.borderRadius/2,backgroundColor:e.isFocused?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:q,option:function(e,t){var n=e.isDisabled,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return(0,o.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:e.isFocused?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing;return(0,o.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:n.colors.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,o.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:e.isDisabled?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing;return(0,o.A)({alignItems:"center",display:e.isMulti&&e.hasValue&&e.selectProps.controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},qe={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}},Ge={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:R(),captureMenuScroll:!R(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.A)({ignoreCase:!0,ignoreAccents:!0,stringify:Ee,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,u=n.matchFrom,l=s?Ce(t):t,c=s?Ce(a(e)):a(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=Ie(l),c=we(c)),"start"===u?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:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),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,unstyled:!1};function Je(e,t,n,o){return{type:"option",data:t,isDisabled:nt(e,t,n),isSelected:ot(e,t,n),label:et(e,t),value:tt(e,t),index:o}}function Xe(e,t){return e.options.map(function(n,o){if("options"in n){var r=n.options.map(function(n,o){return Je(e,n,t,o)}).filter(function(t){return Ze(e,t)});return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=Je(e,n,t,o);return Ze(e,i)?i:void 0}).filter(j)}function $e(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,f.A)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Ke(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,(0,f.A)(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Ze(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!it(e)||!i)&&rt(e,{label:a,value:s,data:r},o)}var Qe=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},et=function(e,t){return e.getOptionLabel(t)},tt=function(e,t){return e.getOptionValue(t)};function nt(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ot(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=tt(e,t);return n.some(function(t){return tt(e,t)===o})}function rt(e,t,n){return!e.filterOption||e.filterOption(t,n)}var it=function(e){var t=e.hideSelectedOptions;return void 0===t?e.isMulti:t},at=1,st=function(e){(0,p.A)(n,e);var t=(0,d.A)(n);function n(e){var r;if((0,l.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange;t.name=n.name,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value",prevInputValue:o.inputValue}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(s){var l=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==l}),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat((0,f.A)(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),a=H(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(H(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=H(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Qe(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Ke(Xe(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return et(r.props,e)},r.getOptionValue=function(e){return tt(r.props,e)},r.getStyles=function(e,t){var n=We[e](t,r.props.unstyled);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,(0,o.A)((0,o.A)({},pe),e.components);var e},r.buildCategorizedOptions=function(){return Xe(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return $e(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,o.A)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"===typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&M(e.target)&&r.props.onMenuClose():"function"===typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return it(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.menuIsOpen,l=t.onKeyDown,c=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,f=d.focusedOption,m=d.focusedValue,h=d.selectValue;if(!t.isDisabled&&("function"!==typeof l||(l(e),!e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!c||!f||p&&r.isOptionSelected(f,h))return;r.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(r.isComposing)return;r.selectOption(f);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!f)return;r.selectOption(f);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++at),r.state.selectValue=C(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),a=r.buildFocusableOptions(),s=a.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=a[s],r.state.focusedOptionId=Qe(i,a[s])}return r}return(0,c.A)(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(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&D(this.menuListRef,this.focusedOptionRef),(_e()||ze(/^iPhone/i)||ze(/^iPad/i)||_e()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&t.menuIsOpen&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(D(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",prevInputValue:this.props.inputValue}),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 s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(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,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(qe):(0,o.A)((0,o.A)({},qe),this.props.theme):qe}},{key:"getCommonProps",value:function(){var e=this.selectOption,t=this.setValue,n=this.props,o=n.isMulti,r=n.isRtl,i=n.options;return{clearValue:this.clearValue,cx:this.cx,getStyles:this.getStyles,getClassNames:this.getClassNames,getValue:this.getValue,hasValue:this.hasValue(),isMulti:o,isRtl:r,options:i,selectOption:e,selectProps:n,setValue:t,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;return void 0===t?e.isMulti:t}},{key:"isOptionDisabled",value:function(e,t){return nt(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ot(this.props,e,t)}},{key:"filterOption",value:function(e,t){return rt(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){return"function"===typeof this.props.formatOptionLabel?this.props.formatOptionLabel(e,{context:t,inputValue:this.props.inputValue,selectValue:this.state.selectValue}):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,i=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,p=e.required,d=this.getComponents().Input,f=this.state,m=f.inputIsHidden,h=f.ariaSelection,v=this.commonProps,b=r||this.getElementId("input"),g=(0,o.A)((0,o.A)((0,o.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===h||void 0===h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(d,(0,u.A)({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:i},g)):a.createElement(Me,(0,u.A)({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:S,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,m=p.isMulti,h=p.inputValue,v=p.placeholder,b=this.state,g=b.selectValue,y=b.focusedValue,O=b.isFocused;if(!this.hasValue()||!d)return h?null:a.createElement(l,(0,u.A)({},c,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),v);if(m)return g.map(function(t,s){var l=t===y,p="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,u.A)({},c,{components:{Container:o,Label:r,Remove:i},isFocused:l,isDisabled:f,key:p,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var A=g[0];return a.createElement(s,(0,u.A)({},c,{data:A,isDisabled:f}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;return this.isClearable()&&e&&!o&&this.hasValue()&&!r?a.createElement(e,(0,u.A)({},t,{innerProps:{onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"},isFocused:i})):null}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.props;return e&&t.isLoading?a.createElement(e,(0,u.A)({},this.commonProps,{innerProps:{"aria-hidden":"true"},isDisabled:t.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.IndicatorSeparator;return e.DropdownIndicator&&t?a.createElement(t,(0,u.A)({},this.commonProps,{isDisabled:this.props.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;return e?a.createElement(e,(0,u.A)({},this.commonProps,{innerProps:{onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"},isDisabled:this.props.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,p=t.Option,d=this.commonProps,f=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,g=m.loadingMessage,y=m.minMenuHeight,O=m.maxMenuHeight,A=m.menuPlacement,S=m.menuPosition,w=m.menuPortalTarget,I=m.menuShouldBlockScroll,C=m.menuShouldScrollIntoView,E=m.noOptionsMessage,P=m.onMenuScrollToTop,M=m.onMenuScrollToBottom;if(!m.menuIsOpen)return null;var V,x=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,m=f===r,h=i?void 0:function(){return e.onOptionHover(r)},v=i?void 0:function(){return e.selectOption(r)},b="".concat(e.getElementId("option"),"-").concat(n);return a.createElement(p,(0,u.A)({},d,{innerProps:{id:b,onClick:v,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s},data:r,isDisabled:i,isSelected:s,key:b,label:l,type:o,value:c,isFocused:m,innerRef:m?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())V=this.getCategorizedOptions().map(function(t){if("group"===t.type){var r=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return a.createElement(n,(0,u.A)({},d,{key:l,data:r,options:i,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return x(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return x(t,"".concat(t.index))});else if(b){var k=g({inputValue:v});if(null===k)return null;V=a.createElement(l,d,k)}else{var D=E({inputValue:v});if(null===D)return null;V=a.createElement(c,d,D)}var R={minMenuHeight:y,maxMenuHeight:O,menuPlacement:A,menuPosition:S,menuShouldScrollIntoView:C},F=a.createElement(_,(0,u.A)({},d,R),function(t){var n=t.placerProps,o=n.maxHeight;return a.createElement(r,(0,u.A)({},d,R,{innerRef:t.ref,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:n.placement}),a.createElement(Ue,{captureEnabled:h,onTopArrive:P,onBottomArrive:M,lockEnabled:I},function(t){return a.createElement(i,(0,u.A)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:o,focusedOption:f}),V)}))});return w||"fixed"===S?a.createElement(s,(0,u.A)({},d,{appendTo:w,controlElement:this.controlRef,menuPlacement:A,menuPosition:S}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,s=this.state.selectValue;if(t.required&&!this.hasValue()&&!o)return a.createElement(Ne,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var u=s.map(function(t){return e.getOptionValue(t)}).join(n);return a.createElement("input",{name:i,type:"hidden",value:u})}var l=s.length>0?s.map(function(t,n){return a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):a.createElement("input",{name:i,type:"hidden",value:""});return a.createElement("div",null,l)}var c=s[0]?this.getOptionValue(s[0]):"";return a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(ve,(0,u.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:s,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,p=i.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(o,(0,u.A)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),a.createElement(t,(0,u.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:p}),a.createElement(r,(0,u.A)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,u.A)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,u=t.prevWasFocused,l=t.instancePrefix,c=e.options,p=e.value,d=e.menuIsOpen,f=e.inputValue,m=e.isMulti,h=C(p),v={};if(n&&(p!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var b=d?function(e,t){return $e(Xe(e,t))}(e,h):[],g=d?Ke(Xe(e,h),"".concat(l,"-option")):[],y=r?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,h):null,O=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,b);v={selectValue:h,focusedOption:O,focusedOptionId:Qe(g,O),focusableOptionsWithIds:g,focusedValue:y,clearFocusValueOnUpdate:!1}}var A=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},S=a,w=s&&u;return s&&!w&&(S={value:H(m,h,h[0]||null),options:h,action:"initial-input-focus"},w=!u),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(S=null),(0,o.A)((0,o.A)((0,o.A)({},v),A),{},{prevProps:e,ariaSelection:S,prevWasFocused:w})}}]),n}(a.Component);st.defaultProps=Ge,n(51893);var ut=(0,a.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,u=e.defaultMenuIsOpen,l=void 0!==u&&u,c=e.defaultValue,p=void 0===c?null:c,d=e.inputValue,f=e.menuIsOpen,m=e.onChange,h=e.onInputChange,v=e.onMenuClose,b=e.onMenuOpen,g=e.value,y=(0,i.A)(e,s),O=(0,a.useState)(void 0!==d?d:n),A=(0,r.A)(O,2),S=A[0],w=A[1],I=(0,a.useState)(void 0!==f?f:l),C=(0,r.A)(I,2),E=C[0],P=C[1],M=(0,a.useState)(void 0!==g?g:p),V=(0,r.A)(M,2),x=V[0],k=V[1],D=(0,a.useCallback)(function(e,t){"function"===typeof m&&m(e,t),k(e)},[m]),R=(0,a.useCallback)(function(e,t){var n;"function"===typeof h&&(n=h(e,t)),w(void 0!==n?n:e)},[h]),F=(0,a.useCallback)(function(){"function"===typeof b&&b(),P(!0)},[b]),L=(0,a.useCallback)(function(){"function"===typeof v&&v(),P(!1)},[v]),T=void 0!==d?d:S,j=void 0!==f?f:E,H=void 0!==g?g:x;return(0,o.A)((0,o.A)({},y),{},{inputValue:T,menuIsOpen:j,onChange:D,onInputChange:R,onMenuClose:L,onMenuOpen:F,value:H})}(e);return a.createElement(st,(0,u.A)({ref:t},n))}),lt=ut},44363:(e,t,n)=>{e.exports=n(22799)},74848:(e,t,n)=>{e.exports=n(21020)},87011:(e,t,n)=>{n.d(t,{Ay:()=>X});var o=n(51609),r=n.n(o),i=n(5556),a=n.n(i),s=n(15308);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function o(r){n<0&&(n=r),r-n>t?(e(r),n=-1):function(e){"undefined"!==typeof requestAnimationFrame&&requestAnimationFrame(e)}(o)})}function l(e){return l="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},l(e)}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(){var e=function(){return null},t=!1,n=function n(o){if(!t){if(Array.isArray(o)){if(!o.length)return;var r=function(e){if(Array.isArray(e))return e}(s=o)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(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}}(s)||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.")}(),i=r[0],a=r.slice(1);return"number"===typeof i?void u(n.bind(null,a),i):(n(i),void u(n.bind(null,a)))}"object"===l(o)&&e(o),"function"===typeof o&&o()}var s};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function d(e){return d="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},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){return e},b=function(e,t){return Object.keys(t).reduce(function(n,o){return m(m({},n),{},h({},o,e(o,t[o])))},{})},g=function(e,t,n){return e.map(function(e){return"".concat((o=e,o.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}))," ").concat(t,"ms ").concat(n);var o}).join(",")};function y(e,t){if(e){if("string"===typeof e)return O(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)?O(e,t):void 0}}function O(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}var A=1e-4,S=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},w=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},I=function(e,t){return function(n){var o=S(e,t);return w(o,n)}},C=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0],i=t[1],a=t[2],s=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,i=0,a=1,s=1;break;case"ease":r=.25,i=.1,a=.25,s=1;break;case"ease-in":r=.42,i=0,a=1,s=1;break;case"ease-out":r=.42,i=0,a=.58,s=1;break;case"ease-in-out":r=0,i=0,a=.58,s=1;break;default:var u=t[0].split("(");if("cubic-bezier"===u[0]&&4===u[1].split(")")[0].split(",").length){var l=function(e){if(Array.isArray(e))return e}(o=u[1].split(")")[0].split(",").map(function(e){return parseFloat(e)}))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,r,i,a=[],s=!0,u=!1;try{for(r=(t=t.call(e)).next,0;!(s=(n=r.call(t)).done)&&(a.push(n.value),4!==a.length);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}(o)||y(o,4)||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.")}();r=l[0],i=l[1],a=l[2],s=l[3]}}[r,a,i,s].every(function(e){return"number"===typeof e&&e>=0&&e<=1});var c,p,d=I(r,a),f=I(i,s),m=(c=r,p=a,function(e){var t=S(c,p),n=[].concat(function(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(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.")}()}(t.map(function(e,t){return e*t}).slice(1)),[0]);return w(n,e)}),h=function(e){return e>1?1:e<0?0:e},v=function(e){for(var t=e>1?1:e,n=t,o=0;o<8;++o){var r=d(n)-t,i=m(n);if(Math.abs(r-t)<A||i<A)return f(n);n=h(n-r/i)}return f(n)};return v.isStepper=!1,v};function E(e){return E="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},E(e)}function P(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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.")}()}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=function(e){var t=function(e){if("object"!==E(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===E(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(e){if("string"===typeof e)return D(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)?D(e,t):void 0}}function D(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}var R=function(e,t,n){return e+(t-e)*n},F=function(e){return e.from!==e.to},L=function e(t,n,o){var r=b(function(e,n){if(F(n)){var o=function(e){if(Array.isArray(e))return e}(a=t(n.from,n.to,n.velocity))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,r,i,a=[],s=!0,u=!1;try{for(r=(t=t.call(e)).next,0;!(s=(n=r.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}(a)||k(a,2)||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.")}(),r=o[0],i=o[1];return V(V({},n),{},{from:r,velocity:i})}var a;return n},n);return o<1?b(function(e,t){return F(t)?V(V({},t),{},{velocity:R(t.velocity,r[e].velocity,o),from:R(t.from,r[e].from,o)}):t},n):e(t,r,o-1)};function T(e){return T="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(e)}var j=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function H(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return Y(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)?Y(e,t):void 0}}(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.")}()}function Y(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 U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N(e,t,n){return(t=z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e){var t=function(e){if("object"!==T(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===T(t)?t:String(t)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function W(e,t){if(t&&("object"===T(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return q(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}var J=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(a,e);var t,n,i=function(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=G(e);if(t){var r=G(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return W(this,n)}}(a);function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var o=(n=i.call(this,e,t)).props,r=o.isActive,s=o.attributeName,u=o.from,l=o.to,c=o.steps,p=o.children,d=o.duration;if(n.handleStyleChange=n.handleStyleChange.bind(q(n)),n.changeStyle=n.changeStyle.bind(q(n)),!r||d<=0)return n.state={style:{}},"function"===typeof p&&(n.state={style:l}),W(n);if(c&&c.length)n.state={style:c[0].style};else if(u){if("function"===typeof p)return n.state={style:u},W(n);n.state={style:s?N({},s,u):u}}else n.state={style:{}};return n}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.attributeName,o=t.shouldReAnimate,r=t.to,i=t.from,a=this.state.style;if(t.canBegin)if(t.isActive){if(!((0,s.bD)(e.to,r)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var l=u||o?i:e.to;if(this.state&&a){var c={style:n?N({},n,l):l};(n&&a[n]!==l||!n&&a!==l)&&this.setState(c)}this.runAnimation(B(B({},this.props),{},{from:l,begin:0}))}}else{var p={style:n?N({},n,r):r};this.state&&a&&(n&&a[n]!==r||!n&&a!==r)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.duration,o=e.begin,r=e.onAnimationEnd,i=e.onAnimationStart,a=function(e,t,n,o,r){var i,a,s,u=(i=t,[Object.keys(e),Object.keys(i)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})),l=u.reduce(function(n,o){return V(V({},n),{},x({},o,[e[o],t[o]]))},{}),c=u.reduce(function(n,o){return V(V({},n),{},x({},o,{from:e[o],velocity:0,to:t[o]}))},{}),p=-1,d=function(){return null};return d=n.isStepper?function(o){a||(a=o),c=L(n,c,(o-a)/n.dt),r(V(V(V({},e),t),b(function(e,t){return t.from},c))),a=o,Object.values(c).filter(F).length&&(p=requestAnimationFrame(d))}:function(i){s||(s=i);var a=(i-s)/o,u=b(function(e,t){return R.apply(void 0,P(t).concat([n(a)]))},l);if(r(V(V(V({},e),t),u)),a<1)p=requestAnimationFrame(d);else{var c=b(function(e,t){return R.apply(void 0,P(t).concat([n(1)]))},l);r(V(V(V({},e),t),c))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}}(e.from,e.to,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0];if("string"===typeof o)switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return C(o);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,o=e.damping,r=void 0===o?8:o,i=e.dt,a=void 0===i?17:i,s=function(e,t,o){var i=o+(-(e-t)*n-o*r)*a/1e3,s=o*a/1e3+e;return Math.abs(s-t)<A&&Math.abs(i)<A?[t,0]:[s,i]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===o.split("(")[0])return C(o)}return"function"===typeof o?o:null}(e.easing),n,this.changeStyle);this.manager.start([i,o,function(){t.stopJSAnimation=a()},n,r])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,o=n[0],r=o.duration;return this.manager.start([e.onAnimationStart].concat(H(n.reduce(function(e,o,r){if(0===r)return e;var i=o.duration,a=o.easing,s=void 0===a?"ease":a,u=o.style,l=o.onAnimationEnd,c=r>0?n[r-1]:o,p=o.properties||Object.keys(u);if("function"===typeof s||"spring"===s)return[].concat(H(e),[t.runJSAnimation.bind(t,{from:c.style,to:u,duration:i,easing:s}),i]);var d=g(p,i,s),f=B(B(B({},c.style),u),{},{transition:d});return[].concat(H(e),[f,i,l]).filter(v)},[o.style,Math.max(void 0===r?0:r,e.begin)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=p());var t=e.begin,n=e.duration,o=e.attributeName,r=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,u=e.steps,l=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(e);else{var d=o?N({},o,r):r,f=g(Object.keys(d),n,i);c.start([a,t,B(B({},d),{},{transition:f}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.duration,i=e.isActive,a=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,j),s=o.Children.count(t),u=this.state.style;if("function"===typeof t)return t(u);if(!i||0===s||n<=0)return t;var l=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,i=t.className;return(0,o.cloneElement)(e,B(B({},a),{},{style:B(B({},r),u),className:i}))};return 1===s?l(o.Children.only(t)):r().createElement("div",null,o.Children.map(t,function(e){return l(e)}))}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,z(o.key),o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);J.displayName="Animate",J.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},J.propTypes={from:a().oneOfType([a().object,a().string]),to:a().oneOfType([a().object,a().string]),attributeName:a().string,duration:a().number,begin:a().number,easing:a().oneOfType([a().string,a().func]),steps:a().arrayOf(a().shape({duration:a().number.isRequired,style:a().object.isRequired,easing:a().oneOfType([a().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),a().func]),properties:a().arrayOf("string"),onAnimationEnd:a().func})),children:a().oneOfType([a().node,a().func]),isActive:a().bool,canBegin:a().bool,onAnimationEnd:a().func,shouldReAnimate:a().bool,onAnimationStart:a().func,onAnimationReStart:a().func};const X=J}}]);