%PDF- %PDF-
Direktori : /home/opti/public_html/startup-life/assets/ |
Current File : /home/opti/public_html/startup-life/assets/index-fdf728e2.js |
import{r as h,$ as Tt,av as E,_ as S,a6 as Bt,aw as rt,P as N,j as U}from"./index-5492fbe1.js";import{b as ne,e as K,j as q,_ as kt,a as Be,i as Ht,d as $t,g as Nt,f as Ut,h as Ve,c as zt}from"./isNativeReflectConstruct-061ae640.js";import{i as De}from"./use-isomorphic-layout-effect.browser.esm-1e1530e9.js";import{F as _t,a as jt,C as Wt}from"./index.esm-1be9f6a3.js";import{s as Gt}from"./styled-components.browser.esm-ee37ee23.js";const Yt=Math.min,qt=Math.max,ce=Math.round,ue=Math.floor,de=n=>({x:n,y:n});function Kt(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function ut(n){return at(n)?(n.nodeName||"").toLowerCase():"#document"}function z(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function ot(n){var t;return(t=(at(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function at(n){return n instanceof Node||n instanceof z(n).Node}function xe(n){return n instanceof Element||n instanceof z(n).Element}function Me(n){return n instanceof HTMLElement||n instanceof z(n).HTMLElement}function ke(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof z(n).ShadowRoot}function st(n){const{overflow:t,overflowX:i,overflowY:r,display:e}=Ae(n);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!["inline","contents"].includes(e)}function Xt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zt(n){return["html","body","#document"].includes(ut(n))}function Ae(n){return z(n).getComputedStyle(n)}function Jt(n){if(ut(n)==="html")return n;const t=n.assignedSlot||n.parentNode||ke(n)&&n.host||ot(n);return ke(t)?t.host:t}function lt(n){const t=Jt(n);return Zt(t)?n.ownerDocument?n.ownerDocument.body:n.body:Me(t)&&st(t)?t:lt(t)}function fe(n,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const e=lt(n),o=e===((r=n.ownerDocument)==null?void 0:r.body),a=z(e);return o?t.concat(a,a.visualViewport||[],st(e)?e:[],a.frameElement&&i?fe(a.frameElement):[]):t.concat(e,fe(e,[],i))}function Qt(n){const t=Ae(n);let i=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const e=Me(n),o=e?n.offsetWidth:i,a=e?n.offsetHeight:r,l=ce(i)!==o||ce(r)!==a;return l&&(i=o,r=a),{width:i,height:r,$:l}}function ye(n){return xe(n)?n:n.contextElement}function ge(n){const t=ye(n);if(!Me(t))return de(1);const i=t.getBoundingClientRect(),{width:r,height:e,$:o}=Qt(t);let a=(o?ce(i.width):i.width)/r,l=(o?ce(i.height):i.height)/e;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const en=de(0);function tn(n){const t=z(n);return!Xt()||!t.visualViewport?en:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nn(n,t,i){return t===void 0&&(t=!1),!i||t&&i!==z(n)?!1:t}function He(n,t,i,r){t===void 0&&(t=!1),i===void 0&&(i=!1);const e=n.getBoundingClientRect(),o=ye(n);let a=de(1);t&&(r?xe(r)&&(a=ge(r)):a=ge(n));const l=nn(o,i,r)?tn(o):de(0);let u=(e.left+l.x)/a.x,s=(e.top+l.y)/a.y,c=e.width/a.x,d=e.height/a.y;if(o){const f=z(o),m=r&&xe(r)?z(r):r;let b=f.frameElement;for(;b&&r&&m!==f;){const g=ge(b),p=b.getBoundingClientRect(),v=Ae(b),O=p.left+(b.clientLeft+parseFloat(v.paddingLeft))*g.x,D=p.top+(b.clientTop+parseFloat(v.paddingTop))*g.y;u*=g.x,s*=g.y,c*=g.x,d*=g.y,u+=O,s+=D,b=z(b).frameElement}}return Kt({width:c,height:d,x:u,y:s})}function rn(n,t){let i=null,r;const e=ot(n);function o(){clearTimeout(r),i&&i.disconnect(),i=null}function a(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),o();const{left:s,top:c,width:d,height:f}=n.getBoundingClientRect();if(l||t(),!d||!f)return;const m=ue(c),b=ue(e.clientWidth-(s+d)),g=ue(e.clientHeight-(c+f)),p=ue(s),O={rootMargin:-m+"px "+-b+"px "+-g+"px "+-p+"px",threshold:qt(0,Yt(1,u))||1};let D=!0;function x(I){const V=I[0].intersectionRatio;if(V!==u){if(!D)return a();V?a(!1,V):r=setTimeout(()=>{a(!1,1e-7)},100)}D=!1}try{i=new IntersectionObserver(x,{...O,root:e.ownerDocument})}catch{i=new IntersectionObserver(x,O)}i.observe(n)}return a(!0),o}function un(n,t,i,r){r===void 0&&(r={});const{ancestorScroll:e=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,s=ye(n),c=e||o?[...s?fe(s):[],...fe(t)]:[];c.forEach(v=>{e&&v.addEventListener("scroll",i,{passive:!0}),o&&v.addEventListener("resize",i)});const d=s&&l?rn(s,i):null;let f=-1,m=null;a&&(m=new ResizeObserver(v=>{let[O]=v;O&&O.target===s&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{m&&m.observe(t)})),i()}),s&&!u&&m.observe(s),m.observe(t));let b,g=u?He(n):null;u&&p();function p(){const v=He(n);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&i(),g=v,b=requestAnimationFrame(p)}return i(),()=>{c.forEach(v=>{e&&v.removeEventListener("scroll",i),o&&v.removeEventListener("resize",i)}),d&&d(),m&&m.disconnect(),m=null,u&&cancelAnimationFrame(b)}}function $e(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),i.push.apply(i,r)}return i}function C(n){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?$e(Object(i),!0).forEach(function(r){ne(n,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):$e(Object(i)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(i,r))})}return n}var on=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function an(n){var t=n.defaultInputValue,i=t===void 0?"":t,r=n.defaultMenuIsOpen,e=r===void 0?!1:r,o=n.defaultValue,a=o===void 0?null:o,l=n.inputValue,u=n.menuIsOpen,s=n.onChange,c=n.onInputChange,d=n.onMenuClose,f=n.onMenuOpen,m=n.value,b=K(n,on),g=h.useState(l!==void 0?l:i),p=q(g,2),v=p[0],O=p[1],D=h.useState(u!==void 0?u:e),x=q(D,2),I=x[0],V=x[1],M=h.useState(m!==void 0?m:a),F=q(M,2),A=F[0],L=F[1],B=h.useCallback(function(H,X){typeof s=="function"&&s(H,X),L(H)},[s]),T=h.useCallback(function(H,X){var Z;typeof c=="function"&&(Z=c(H,X)),O(Z!==void 0?Z:H)},[c]),j=h.useCallback(function(){typeof f=="function"&&f(),V(!0)},[f]),W=h.useCallback(function(){typeof d=="function"&&d(),V(!1)},[d]),R=l!==void 0?l:v,P=u!==void 0?u:I,_=m!==void 0?m:A;return C(C({},b),{},{inputValue:R,menuIsOpen:P,onChange:B,onInputChange:T,onMenuClose:W,onMenuOpen:j,value:_})}function sn(n){var t=kt();return function(){var r=Be(n),e;if(t){var o=Be(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Ht(this,e)}}function ln(n,t){return t||(t=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(t)}}))}var cn=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pe=function(){};function dn(n,t){return t?t[0]==="-"?n+t:n+"__"+t:n}function fn(n,t){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var o=[].concat(r);if(t&&n)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(dn(n,a)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var Ne=function(t){return Sn(t)?t.filter(Boolean):$t(t)==="object"&&t!==null?[t]:[]},ct=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var i=K(t,cn);return C({},i)},y=function(t,i,r){var e=t.cx,o=t.getStyles,a=t.getClassNames,l=t.className;return{css:o(i,t),className:e(r??{},a(i,t),l)}};function he(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function pn(n){return he(n)?window.innerHeight:n.clientHeight}function dt(n){return he(n)?window.pageYOffset:n.scrollTop}function ve(n,t){if(he(n)){window.scrollTo(0,t);return}n.scrollTop=t}function vn(n){var t=getComputedStyle(n),i=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var e=n;e=e.parentElement;)if(t=getComputedStyle(e),!(i&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return e;return document.documentElement}function mn(n,t,i,r){return i*((n=n/r-1)*n*n+1)+t}function oe(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:pe,e=dt(n),o=t-e,a=10,l=0;function u(){l+=a;var s=mn(l,e,o,i);ve(n,s),l<i?window.requestAnimationFrame(u):r(n)}u()}function Ue(n,t){var i=n.getBoundingClientRect(),r=t.getBoundingClientRect(),e=t.offsetHeight/3;r.bottom+e>i.bottom?ve(n,Math.min(t.offsetTop+t.clientHeight-n.offsetHeight+e,n.scrollHeight)):r.top-e<i.top&&ve(n,Math.max(t.offsetTop-e,0))}function hn(n){var t=n.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ze(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function gn(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ft=!1,bn={get passive(){return ft=!0}},ae=typeof window<"u"?window:{};ae.addEventListener&&ae.removeEventListener&&(ae.addEventListener("p",pe,bn),ae.removeEventListener("p",pe,!1));var En=ft;function Cn(n){return n!=null}function Sn(n){return Array.isArray(n)}function se(n,t,i){return n?t:i}var Fn=function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),e=1;e<i;e++)r[e-1]=arguments[e];var o=Object.entries(t).filter(function(a){var l=q(a,1),u=l[0];return!r.includes(u)});return o.reduce(function(a,l){var u=q(l,2),s=u[0],c=u[1];return a[s]=c,a},{})},On=["children","innerProps"],Dn=["children","innerProps"];function xn(n){var t=n.maxHeight,i=n.menuEl,r=n.minHeight,e=n.placement,o=n.shouldScroll,a=n.isFixedPosition,l=n.controlHeight,u=vn(i),s={placement:"bottom",maxHeight:t};if(!i||!i.offsetParent)return s;var c=u.getBoundingClientRect(),d=c.height,f=i.getBoundingClientRect(),m=f.bottom,b=f.height,g=f.top,p=i.offsetParent.getBoundingClientRect(),v=p.top,O=a?window.innerHeight:pn(u),D=dt(u),x=parseInt(getComputedStyle(i).marginBottom,10),I=parseInt(getComputedStyle(i).marginTop,10),V=v-I,M=O-g,F=V+D,A=d-D-g,L=m-O+D+x,B=D+g-I,T=160;switch(e){case"auto":case"bottom":if(M>=b)return{placement:"bottom",maxHeight:t};if(A>=b&&!a)return o&&oe(u,L,T),{placement:"bottom",maxHeight:t};if(!a&&A>=r||a&&M>=r){o&&oe(u,L,T);var j=a?M-x:A-x;return{placement:"bottom",maxHeight:j}}if(e==="auto"||a){var W=t,R=a?V:F;return R>=r&&(W=Math.min(R-x-l,t)),{placement:"top",maxHeight:W}}if(e==="bottom")return o&&ve(u,L),{placement:"bottom",maxHeight:t};break;case"top":if(V>=b)return{placement:"top",maxHeight:t};if(F>=b&&!a)return o&&oe(u,B,T),{placement:"top",maxHeight:t};if(!a&&F>=r||a&&V>=r){var P=t;return(!a&&F>=r||a&&V>=r)&&(P=a?V-I:F-I),o&&oe(u,B,T),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(e,'".'))}return s}function In(n){var t={bottom:"top",top:"bottom"};return n?t[n]:"bottom"}var pt=function(t){return t==="auto"?"bottom":t},Vn=function(t,i){var r,e=t.placement,o=t.theme,a=o.borderRadius,l=o.spacing,u=o.colors;return C((r={label:"menu"},ne(r,In(e),"100%"),ne(r,"position","absolute"),ne(r,"width","100%"),ne(r,"zIndex",1),r),i?{}:{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:l.menuGutter,marginTop:l.menuGutter})},vt=h.createContext(null),Mn=function(t){var i=t.children,r=t.minMenuHeight,e=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,u=t.theme,s=h.useContext(vt)||{},c=s.setPortalPlacement,d=h.useRef(null),f=h.useState(e),m=q(f,2),b=m[0],g=m[1],p=h.useState(null),v=q(p,2),O=v[0],D=v[1],x=u.spacing.controlHeight;return De(function(){var I=d.current;if(I){var V=a==="fixed",M=l&&!V,F=xn({maxHeight:e,menuEl:I,minHeight:r,placement:o,shouldScroll:M,isFixedPosition:V,controlHeight:x});g(F.maxHeight),D(F.placement),c==null||c(F.placement)}},[e,o,a,l,r,c,x]),i({ref:d,placerProps:C(C({},t),{},{placement:O||pt(o),maxHeight:b})})},An=function(t){var i=t.children,r=t.innerRef,e=t.innerProps;return E("div",S({},y(t,"menu",{menu:!0}),{ref:r},e),i)},yn=An,Pn=function(t,i){var r=t.maxHeight,e=t.theme.spacing.baseUnit;return C({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:e,paddingTop:e})},wn=function(t){var i=t.children,r=t.innerProps,e=t.innerRef,o=t.isMulti;return E("div",S({},y(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:e},r),i)},mt=function(t,i){var r=t.theme,e=r.spacing.baseUnit,o=r.colors;return C({textAlign:"center"},i?{}:{color:o.neutral40,padding:"".concat(e*2,"px ").concat(e*3,"px")})},Rn=mt,Ln=mt,Tn=function(t){var i=t.children,r=i===void 0?"No options":i,e=t.innerProps,o=K(t,On);return E("div",S({},y(C(C({},o),{},{children:r,innerProps:e}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),e),r)},Bn=function(t){var i=t.children,r=i===void 0?"Loading...":i,e=t.innerProps,o=K(t,Dn);return E("div",S({},y(C(C({},o),{},{children:r,innerProps:e}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),e),r)},kn=function(t){var i=t.rect,r=t.offset,e=t.position;return{left:i.left,position:e,top:r,width:i.width,zIndex:1}},Hn=function(t){var i=t.appendTo,r=t.children,e=t.controlElement,o=t.innerProps,a=t.menuPlacement,l=t.menuPosition,u=h.useRef(null),s=h.useRef(null),c=h.useState(pt(a)),d=q(c,2),f=d[0],m=d[1],b=h.useMemo(function(){return{setPortalPlacement:m}},[]),g=h.useState(null),p=q(g,2),v=p[0],O=p[1],D=h.useCallback(function(){if(e){var M=hn(e),F=l==="fixed"?0:window.pageYOffset,A=M[f]+F;(A!==(v==null?void 0:v.offset)||M.left!==(v==null?void 0:v.rect.left)||M.width!==(v==null?void 0:v.rect.width))&&O({offset:A,rect:M})}},[e,l,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);De(function(){D()},[D]);var x=h.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),e&&u.current&&(s.current=un(e,u.current,D,{elementResize:"ResizeObserver"in window}))},[e,D]);De(function(){x()},[x]);var I=h.useCallback(function(M){u.current=M,x()},[x]);if(!i&&l!=="fixed"||!v)return null;var V=E("div",S({ref:I},y(C(C({},t),{},{offset:v.offset,position:l,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return E(vt.Provider,{value:b},i?Bt.createPortal(V,i):V)},$n=function(t){var i=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},Nn=function(t){var i=t.children,r=t.innerProps,e=t.isDisabled,o=t.isRtl;return E("div",S({},y(t,"container",{"--is-disabled":e,"--is-rtl":o}),r),i)},Un=function(t,i){var r=t.theme.spacing,e=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return C({alignItems:"center",display:e&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},zn=function(t){var i=t.children,r=t.innerProps,e=t.isMulti,o=t.hasValue;return E("div",S({},y(t,"valueContainer",{"value-container":!0,"value-container--is-multi":e,"value-container--has-value":o}),r),i)},_n=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},jn=function(t){var i=t.children,r=t.innerProps;return E("div",S({},y(t,"indicatorsContainer",{indicators:!0}),r),i)},_e,Wn=["size"],Gn=["innerProps","isRtl","size"],Yn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ht=function(t){var i=t.size,r=K(t,Wn);return E("svg",S({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Yn},r))},Pe=function(t){return E(ht,S({size:20},t),E("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"}))},gt=function(t){return E(ht,S({size:20},t),E("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"}))},bt=function(t,i){var r=t.isFocused,e=t.theme,o=e.spacing.baseUnit,a=e.colors;return C({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},qn=bt,Kn=function(t){var i=t.children,r=t.innerProps;return E("div",S({},y(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),i||E(gt,null))},Xn=bt,Zn=function(t){var i=t.children,r=t.innerProps;return E("div",S({},y(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),i||E(Pe,null))},Jn=function(t,i){var r=t.isDisabled,e=t.theme,o=e.spacing.baseUnit,a=e.colors;return C({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},Qn=function(t){var i=t.innerProps;return E("span",S({},i,y(t,"indicatorSeparator",{"indicator-separator":!0})))},ei=Tt(_e||(_e=ln([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } `]))),ti=function(t,i){var r=t.isFocused,e=t.size,o=t.theme,a=o.colors,l=o.spacing.baseUnit;return C({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:e,lineHeight:1,marginRight:e,textAlign:"center",verticalAlign:"middle"},i?{}:{color:r?a.neutral60:a.neutral20,padding:l*2})},be=function(t){var i=t.delay,r=t.offset;return E("span",{css:rt({animation:"".concat(ei," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ni=function(t){var i=t.innerProps,r=t.isRtl,e=t.size,o=e===void 0?4:e,a=K(t,Gn);return E("div",S({},y(C(C({},a),{},{innerProps:i,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),E(be,{delay:0,offset:r}),E(be,{delay:160,offset:!0}),E(be,{delay:320,offset:!r}))},ii=function(t,i){var r=t.isDisabled,e=t.isFocused,o=t.theme,a=o.colors,l=o.borderRadius,u=o.spacing;return C({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:e?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:e?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:e?a.primary:a.neutral30}})},ri=function(t){var i=t.children,r=t.isDisabled,e=t.isFocused,o=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return E("div",S({ref:o},y(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":e,"control--menu-is-open":l}),a,{"aria-disabled":r||void 0}),i)},ui=ri,oi=["data"],ai=function(t,i){var r=t.theme.spacing;return i?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},si=function(t){var i=t.children,r=t.cx,e=t.getStyles,o=t.getClassNames,a=t.Heading,l=t.headingProps,u=t.innerProps,s=t.label,c=t.theme,d=t.selectProps;return E("div",S({},y(t,"group",{group:!0}),u),E(a,S({},l,{selectProps:d,theme:c,getStyles:e,getClassNames:o,cx:r}),s),E("div",null,i))},li=function(t,i){var r=t.theme,e=r.colors,o=r.spacing;return C({label:"group",cursor:"default",display:"block"},i?{}:{color:e.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},ci=function(t){var i=ct(t);i.data;var r=K(i,oi);return E("div",S({},y(t,"groupHeading",{"group-heading":!0}),r))},di=si,fi=["innerRef","isDisabled","isHidden","inputClassName"],pi=function(t,i){var r=t.isDisabled,e=t.value,o=t.theme,a=o.spacing,l=o.colors;return C(C({visibility:r?"hidden":"visible",transform:e?"translateZ(0)":""},vi),i?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},Et={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},vi={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":C({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Et)},mi=function(t){return C({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Et)},hi=function(t){var i=t.cx,r=t.value,e=ct(t),o=e.innerRef,a=e.isDisabled,l=e.isHidden,u=e.inputClassName,s=K(e,fi);return E("div",S({},y(t,"input",{"input-container":!0}),{"data-value":r||""}),E("input",S({className:i({input:!0},u),ref:o,style:mi(l),disabled:a},s)))},gi=hi,bi=function(t,i){var r=t.theme,e=r.spacing,o=r.borderRadius,a=r.colors;return C({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:e.baseUnit/2})},Ei=function(t,i){var r=t.theme,e=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return C({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:e/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ci=function(t,i){var r=t.theme,e=r.spacing,o=r.borderRadius,a=r.colors,l=t.isFocused;return C({alignItems:"center",display:"flex"},i?{}:{borderRadius:o/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:e.baseUnit,paddingRight:e.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Ct=function(t){var i=t.children,r=t.innerProps;return E("div",r,i)},Si=Ct,Fi=Ct;function Oi(n){var t=n.children,i=n.innerProps;return E("div",S({role:"button"},i),t||E(Pe,{size:14}))}var Di=function(t){var i=t.children,r=t.components,e=t.data,o=t.innerProps,a=t.isDisabled,l=t.removeProps,u=t.selectProps,s=r.Container,c=r.Label,d=r.Remove;return E(s,{data:e,innerProps:C(C({},y(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:u},E(c,{data:e,innerProps:C({},y(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},i),E(d,{data:e,innerProps:C(C({},y(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},l),selectProps:u}))},xi=Di,Ii=function(t,i){var r=t.isDisabled,e=t.isFocused,o=t.isSelected,a=t.theme,l=a.spacing,u=a.colors;return C({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:o?u.primary:e?u.primary25:"transparent",color:r?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?u.primary:u.primary50}})},Vi=function(t){var i=t.children,r=t.isDisabled,e=t.isFocused,o=t.isSelected,a=t.innerRef,l=t.innerProps;return E("div",S({},y(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":e,"option--is-selected":o}),{ref:a,"aria-disabled":r},l),i)},Mi=Vi,Ai=function(t,i){var r=t.theme,e=r.spacing,o=r.colors;return C({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:o.neutral50,marginLeft:e.baseUnit/2,marginRight:e.baseUnit/2})},yi=function(t){var i=t.children,r=t.innerProps;return E("div",S({},y(t,"placeholder",{placeholder:!0}),r),i)},Pi=yi,wi=function(t,i){var r=t.isDisabled,e=t.theme,o=e.spacing,a=e.colors;return C({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Ri=function(t){var i=t.children,r=t.isDisabled,e=t.innerProps;return E("div",S({},y(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),e),i)},Li=Ri,Ti={ClearIndicator:Zn,Control:ui,DropdownIndicator:Kn,DownChevron:gt,CrossIcon:Pe,Group:di,GroupHeading:ci,IndicatorsContainer:jn,IndicatorSeparator:Qn,Input:gi,LoadingIndicator:ni,Menu:yn,MenuList:wn,MenuPortal:Hn,LoadingMessage:Bn,NoOptionsMessage:Tn,MultiValue:xi,MultiValueContainer:Si,MultiValueLabel:Fi,MultiValueRemove:Oi,Option:Mi,Placeholder:Pi,SelectContainer:Nn,SingleValue:Li,ValueContainer:zn},Bi=function(t){return C(C({},Ti),t.components)},je=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ki(n,t){return!!(n===t||je(n)&&je(t))}function Hi(n,t){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(!ki(n[i],t[i]))return!1;return!0}function $i(n,t){t===void 0&&(t=Hi);var i=null;function r(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];if(i&&i.lastThis===this&&t(e,i.lastArgs))return i.lastResult;var a=n.apply(this,e);return i={lastResult:a,lastArgs:e,lastThis:this},a}return r.clear=function(){i=null},r}var Ni={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"},Ui=function(t){return E("span",S({css:Ni},t))},We=Ui,zi={guidance:function(t){var i=t.isSearchable,r=t.isMulti,e=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){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(e?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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(t){var i=t.action,r=t.label,e=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(e,", 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 a?"option ".concat(e," is disabled. Select another option."):"option ".concat(e,", selected.");default:return""}},onFocus:function(t){var i=t.context,r=t.focused,e=t.options,o=t.label,a=o===void 0?"":o,l=t.selectValue,u=t.isDisabled,s=t.isSelected,c=t.isAppleDevice,d=function(g,p){return g&&g.length?"".concat(g.indexOf(p)+1," of ").concat(g.length):""};if(i==="value"&&l)return"value ".concat(a," focused, ").concat(d(l,r),".");if(i==="menu"&&c){var f=u?" disabled":"",m="".concat(s?" selected":"").concat(f);return"".concat(a).concat(m,", ").concat(d(e,r),".")}return""},onFilter:function(t){var i=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(i?" for search term "+i:"",".")}},_i=function(t){var i=t.ariaSelection,r=t.focusedOption,e=t.focusedValue,o=t.focusableOptions,a=t.isFocused,l=t.selectValue,u=t.selectProps,s=t.id,c=t.isAppleDevice,d=u.ariaLiveMessages,f=u.getOptionLabel,m=u.inputValue,b=u.isMulti,g=u.isOptionDisabled,p=u.isSearchable,v=u.menuIsOpen,O=u.options,D=u.screenReaderStatus,x=u.tabSelectsValue,I=u.isLoading,V=u["aria-label"],M=u["aria-live"],F=h.useMemo(function(){return C(C({},zi),d||{})},[d]),A=h.useMemo(function(){var R="";if(i&&F.onChange){var P=i.option,_=i.options,H=i.removedValue,X=i.removedValues,Z=i.value,ie=function(Y){return Array.isArray(Y)?null:Y},w=H||P||ie(Z),k=w?f(w):"",G=_||X||void 0,J=G?G.map(f):[],$=C({isDisabled:w&&g(w,l),label:k,labels:J},i);R=F.onChange($)}return R},[i,F,g,l,f]),L=h.useMemo(function(){var R="",P=r||e,_=!!(r&&l&&l.includes(r));if(P&&F.onFocus){var H={focused:P,label:f(P),isDisabled:g(P,l),isSelected:_,options:o,context:P===r?"menu":"value",selectValue:l,isAppleDevice:c};R=F.onFocus(H)}return R},[r,e,f,g,F,o,l,c]),B=h.useMemo(function(){var R="";if(v&&O.length&&!I&&F.onFilter){var P=D({count:o.length});R=F.onFilter({inputValue:m,resultsMessage:P})}return R},[o,m,v,F,O,D,I]),T=(i==null?void 0:i.action)==="initial-input-focus",j=h.useMemo(function(){var R="";if(F.guidance){var P=e?"value":v?"menu":"input";R=F.guidance({"aria-label":V,context:P,isDisabled:r&&g(r,l),isMulti:b,isSearchable:p,tabSelectsValue:x,isInitialFocus:T})}return R},[V,r,e,b,g,p,v,F,l,x,T]),W=E(h.Fragment,null,E("span",{id:"aria-selection"},A),E("span",{id:"aria-focused"},L),E("span",{id:"aria-results"},B),E("span",{id:"aria-guidance"},j));return E(h.Fragment,null,E(We,{id:s},T&&W),E(We,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!T&&W))},ji=_i,Ie=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Wi=new RegExp("["+Ie.map(function(n){return n.letters}).join("")+"]","g"),St={};for(var Ee=0;Ee<Ie.length;Ee++)for(var Ce=Ie[Ee],Se=0;Se<Ce.letters.length;Se++)St[Ce.letters[Se]]=Ce.base;var Ft=function(t){return t.replace(Wi,function(i){return St[i]})},Gi=$i(Ft),Ge=function(t){return t.replace(/^\s+|\s+$/g,"")},Yi=function(t){return"".concat(t.label," ").concat(t.value)},qi=function(t){return function(i,r){if(i.data.__isNew__)return!0;var e=C({ignoreCase:!0,ignoreAccents:!0,stringify:Yi,trim:!0,matchFrom:"any"},t),o=e.ignoreCase,a=e.ignoreAccents,l=e.stringify,u=e.trim,s=e.matchFrom,c=u?Ge(r):r,d=u?Ge(l(i)):l(i);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=Gi(c),d=Ft(d)),s==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Ki=["innerRef"];function Xi(n){var t=n.innerRef,i=K(n,Ki),r=Fn(i,"onExited","in","enter","exit","appear");return E("input",S({ref:t},r,{css:rt({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 Zi=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Ji(n){var t=n.isEnabled,i=n.onBottomArrive,r=n.onBottomLeave,e=n.onTopArrive,o=n.onTopLeave,a=h.useRef(!1),l=h.useRef(!1),u=h.useRef(0),s=h.useRef(null),c=h.useCallback(function(p,v){if(s.current!==null){var O=s.current,D=O.scrollTop,x=O.scrollHeight,I=O.clientHeight,V=s.current,M=v>0,F=x-I-D,A=!1;F>v&&a.current&&(r&&r(p),a.current=!1),M&&l.current&&(o&&o(p),l.current=!1),M&&v>F?(i&&!a.current&&i(p),V.scrollTop=x,A=!0,a.current=!0):!M&&-v>D&&(e&&!l.current&&e(p),V.scrollTop=0,A=!0,l.current=!0),A&&Zi(p)}},[i,r,e,o]),d=h.useCallback(function(p){c(p,p.deltaY)},[c]),f=h.useCallback(function(p){u.current=p.changedTouches[0].clientY},[]),m=h.useCallback(function(p){var v=u.current-p.changedTouches[0].clientY;c(p,v)},[c]),b=h.useCallback(function(p){if(p){var v=En?{passive:!1}:!1;p.addEventListener("wheel",d,v),p.addEventListener("touchstart",f,v),p.addEventListener("touchmove",m,v)}},[m,f,d]),g=h.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",m,!1))},[m,f,d]);return h.useEffect(function(){if(t){var p=s.current;return b(p),function(){g(p)}}},[t,b,g]),function(p){s.current=p}}var Ye=["boxSizing","height","overflow","paddingRight","position"],qe={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ke(n){n.preventDefault()}function Xe(n){n.stopPropagation()}function Ze(){var n=this.scrollTop,t=this.scrollHeight,i=n+this.offsetHeight;n===0?this.scrollTop=1:i===t&&(this.scrollTop=n-1)}function Je(){return"ontouchstart"in window||navigator.maxTouchPoints}var Qe=!!(typeof window<"u"&&window.document&&window.document.createElement),te=0,ee={capture:!1,passive:!1};function Qi(n){var t=n.isEnabled,i=n.accountForScrollbars,r=i===void 0?!0:i,e=h.useRef({}),o=h.useRef(null),a=h.useCallback(function(u){if(Qe){var s=document.body,c=s&&s.style;if(r&&Ye.forEach(function(b){var g=c&&c[b];e.current[b]=g}),r&&te<1){var d=parseInt(e.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,m=window.innerWidth-f+d||0;Object.keys(qe).forEach(function(b){var g=qe[b];c&&(c[b]=g)}),c&&(c.paddingRight="".concat(m,"px"))}s&&Je()&&(s.addEventListener("touchmove",Ke,ee),u&&(u.addEventListener("touchstart",Ze,ee),u.addEventListener("touchmove",Xe,ee))),te+=1}},[r]),l=h.useCallback(function(u){if(Qe){var s=document.body,c=s&&s.style;te=Math.max(te-1,0),r&&te<1&&Ye.forEach(function(d){var f=e.current[d];c&&(c[d]=f)}),s&&Je()&&(s.removeEventListener("touchmove",Ke,ee),u&&(u.removeEventListener("touchstart",Ze,ee),u.removeEventListener("touchmove",Xe,ee)))}},[r]);return h.useEffect(function(){if(t){var u=o.current;return a(u),function(){l(u)}}},[t,a,l]),function(u){o.current=u}}var er=function(t){var i=t.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},tr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function nr(n){var t=n.children,i=n.lockEnabled,r=n.captureEnabled,e=r===void 0?!0:r,o=n.onBottomArrive,a=n.onBottomLeave,l=n.onTopArrive,u=n.onTopLeave,s=Ji({isEnabled:e,onBottomArrive:o,onBottomLeave:a,onTopArrive:l,onTopLeave:u}),c=Qi({isEnabled:i}),d=function(m){s(m),c(m)};return E(h.Fragment,null,i&&E("div",{onClick:er,css:tr}),t(d))}var ir={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},rr=function(t){var i=t.name,r=t.onFocus;return E("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:ir,value:"",onChange:function(){}})},ur=rr;function we(n){var t;return typeof window<"u"&&window.navigator!=null?n.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function or(){return we(/^iPhone/i)}function Ot(){return we(/^Mac/i)}function ar(){return we(/^iPad/i)||Ot()&&navigator.maxTouchPoints>1}function sr(){return or()||ar()}function lr(){return Ot()||sr()}var cr=function(t){return t.label},dr=function(t){return t.label},fr=function(t){return t.value},pr=function(t){return!!t.isDisabled},vr={clearIndicator:Xn,container:$n,control:ii,dropdownIndicator:qn,group:ai,groupHeading:li,indicatorsContainer:_n,indicatorSeparator:Jn,input:pi,loadingIndicator:ti,loadingMessage:Ln,menu:Vn,menuList:Pn,menuPortal:kn,multiValue:bi,multiValueLabel:Ei,multiValueRemove:Ci,noOptionsMessage:Rn,option:Ii,placeholder:Ai,singleValue:wi,valueContainer:Un},mr={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%)"},hr=4,Dt=4,gr=38,br=Dt*2,Er={baseUnit:Dt,controlHeight:gr,menuGutter:br},Fe={borderRadius:hr,colors:mr,spacing:Er},Cr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ze(),captureMenuScroll:!ze(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:qi(),formatGroupLabel:cr,getOptionLabel:dr,getOptionValue:fr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:pr,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!gn(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var i=t.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function et(n,t,i,r){var e=Vt(n,t,i),o=Mt(n,t,i),a=It(n,t),l=me(n,t);return{type:"option",data:t,isDisabled:e,isSelected:o,label:a,value:l,index:r}}function le(n,t){return n.options.map(function(i,r){if("options"in i){var e=i.options.map(function(a,l){return et(n,a,t,l)}).filter(function(a){return nt(n,a)});return e.length>0?{type:"group",data:i,options:e,index:r}:void 0}var o=et(n,i,t,r);return nt(n,o)?o:void 0}).filter(Cn)}function xt(n){return n.reduce(function(t,i){return i.type==="group"?t.push.apply(t,Ve(i.options.map(function(r){return r.data}))):t.push(i.data),t},[])}function tt(n,t){return n.reduce(function(i,r){return r.type==="group"?i.push.apply(i,Ve(r.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(r.index,"-").concat(e.index)}}))):i.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),i},[])}function Sr(n,t){return xt(le(n,t))}function nt(n,t){var i=n.inputValue,r=i===void 0?"":i,e=t.data,o=t.isSelected,a=t.label,l=t.value;return(!yt(n)||!o)&&At(n,{label:a,value:l,data:e},r)}function Fr(n,t){var i=n.focusedValue,r=n.selectValue,e=r.indexOf(i);if(e>-1){var o=t.indexOf(i);if(o>-1)return i;if(e<t.length)return t[e]}return null}function Or(n,t){var i=n.focusedOption;return i&&t.indexOf(i)>-1?i:t[0]}var Oe=function(t,i){var r,e=(r=t.find(function(o){return o.data===i}))===null||r===void 0?void 0:r.id;return e||null},It=function(t,i){return t.getOptionLabel(i)},me=function(t,i){return t.getOptionValue(i)};function Vt(n,t,i){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(t,i):!1}function Mt(n,t,i){if(i.indexOf(t)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(t,i);var r=me(n,t);return i.some(function(e){return me(n,e)===r})}function At(n,t,i){return n.filterOption?n.filterOption(t,i):!0}var yt=function(t){var i=t.hideSelectedOptions,r=t.isMulti;return i===void 0?r:i},Dr=1,Pt=function(n){Nt(i,n);var t=sn(i);function i(r){var e;if(Ut(this,i),e=t.call(this,r),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:""},e.blockOptionHover=!1,e.isComposing=!1,e.commonProps=void 0,e.initialTouchX=0,e.initialTouchY=0,e.openAfterFocus=!1,e.scrollToFocusedOptionOnUpdate=!1,e.userIsDragging=void 0,e.isAppleDevice=lr(),e.controlRef=null,e.getControlRef=function(u){e.controlRef=u},e.focusedOptionRef=null,e.getFocusedOptionRef=function(u){e.focusedOptionRef=u},e.menuListRef=null,e.getMenuListRef=function(u){e.menuListRef=u},e.inputRef=null,e.getInputRef=function(u){e.inputRef=u},e.focus=e.focusInput,e.blur=e.blurInput,e.onChange=function(u,s){var c=e.props,d=c.onChange,f=c.name;s.name=f,e.ariaOnChange(u,s),d(u,s)},e.setValue=function(u,s,c){var d=e.props,f=d.closeMenuOnSelect,m=d.isMulti,b=d.inputValue;e.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(e.setState({inputIsHiddenAfterUpdate:!m}),e.onMenuClose()),e.setState({clearFocusValueOnUpdate:!0}),e.onChange(u,{action:s,option:c})},e.selectOption=function(u){var s=e.props,c=s.blurInputOnSelect,d=s.isMulti,f=s.name,m=e.state.selectValue,b=d&&e.isOptionSelected(u,m),g=e.isOptionDisabled(u,m);if(b){var p=e.getOptionValue(u);e.setValue(m.filter(function(v){return e.getOptionValue(v)!==p}),"deselect-option",u)}else if(!g)d?e.setValue([].concat(Ve(m),[u]),"select-option",u):e.setValue(u,"select-option");else{e.ariaOnChange(u,{action:"select-option",option:u,name:f});return}c&&e.blurInput()},e.removeValue=function(u){var s=e.props.isMulti,c=e.state.selectValue,d=e.getOptionValue(u),f=c.filter(function(b){return e.getOptionValue(b)!==d}),m=se(s,f,f[0]||null);e.onChange(m,{action:"remove-value",removedValue:u}),e.focusInput()},e.clearValue=function(){var u=e.state.selectValue;e.onChange(se(e.props.isMulti,[],null),{action:"clear",removedValues:u})},e.popValue=function(){var u=e.props.isMulti,s=e.state.selectValue,c=s[s.length-1],d=s.slice(0,s.length-1),f=se(u,d,d[0]||null);e.onChange(f,{action:"pop-value",removedValue:c})},e.getFocusedOptionId=function(u){return Oe(e.state.focusableOptionsWithIds,u)},e.getFocusableOptionsWithIds=function(){return tt(le(e.props,e.state.selectValue),e.getElementId("option"))},e.getValue=function(){return e.state.selectValue},e.cx=function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];return fn.apply(void 0,[e.props.classNamePrefix].concat(s))},e.getOptionLabel=function(u){return It(e.props,u)},e.getOptionValue=function(u){return me(e.props,u)},e.getStyles=function(u,s){var c=e.props.unstyled,d=vr[u](s,c);d.boxSizing="border-box";var f=e.props.styles[u];return f?f(d,s):d},e.getClassNames=function(u,s){var c,d;return(c=(d=e.props.classNames)[u])===null||c===void 0?void 0:c.call(d,s)},e.getElementId=function(u){return"".concat(e.state.instancePrefix,"-").concat(u)},e.getComponents=function(){return Bi(e.props)},e.buildCategorizedOptions=function(){return le(e.props,e.state.selectValue)},e.getCategorizedOptions=function(){return e.props.menuIsOpen?e.buildCategorizedOptions():[]},e.buildFocusableOptions=function(){return xt(e.buildCategorizedOptions())},e.getFocusableOptions=function(){return e.props.menuIsOpen?e.buildFocusableOptions():[]},e.ariaOnChange=function(u,s){e.setState({ariaSelection:C({value:u},s)})},e.onMenuMouseDown=function(u){u.button===0&&(u.stopPropagation(),u.preventDefault(),e.focusInput())},e.onMenuMouseMove=function(u){e.blockOptionHover=!1},e.onControlMouseDown=function(u){if(!u.defaultPrevented){var s=e.props.openMenuOnClick;e.state.isFocused?e.props.menuIsOpen?u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&e.onMenuClose():s&&e.openMenu("first"):(s&&(e.openAfterFocus=!0),e.focusInput()),u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&u.preventDefault()}},e.onDropdownIndicatorMouseDown=function(u){if(!(u&&u.type==="mousedown"&&u.button!==0)&&!e.props.isDisabled){var s=e.props,c=s.isMulti,d=s.menuIsOpen;e.focusInput(),d?(e.setState({inputIsHiddenAfterUpdate:!c}),e.onMenuClose()):e.openMenu("first"),u.preventDefault()}},e.onClearIndicatorMouseDown=function(u){u&&u.type==="mousedown"&&u.button!==0||(e.clearValue(),u.preventDefault(),e.openAfterFocus=!1,u.type==="touchend"?e.focusInput():setTimeout(function(){return e.focusInput()}))},e.onScroll=function(u){typeof e.props.closeMenuOnScroll=="boolean"?u.target instanceof HTMLElement&&he(u.target)&&e.props.onMenuClose():typeof e.props.closeMenuOnScroll=="function"&&e.props.closeMenuOnScroll(u)&&e.props.onMenuClose()},e.onCompositionStart=function(){e.isComposing=!0},e.onCompositionEnd=function(){e.isComposing=!1},e.onTouchStart=function(u){var s=u.touches,c=s&&s.item(0);c&&(e.initialTouchX=c.clientX,e.initialTouchY=c.clientY,e.userIsDragging=!1)},e.onTouchMove=function(u){var s=u.touches,c=s&&s.item(0);if(c){var d=Math.abs(c.clientX-e.initialTouchX),f=Math.abs(c.clientY-e.initialTouchY),m=5;e.userIsDragging=d>m||f>m}},e.onTouchEnd=function(u){e.userIsDragging||(e.controlRef&&!e.controlRef.contains(u.target)&&e.menuListRef&&!e.menuListRef.contains(u.target)&&e.blurInput(),e.initialTouchX=0,e.initialTouchY=0)},e.onControlTouchEnd=function(u){e.userIsDragging||e.onControlMouseDown(u)},e.onClearIndicatorTouchEnd=function(u){e.userIsDragging||e.onClearIndicatorMouseDown(u)},e.onDropdownIndicatorTouchEnd=function(u){e.userIsDragging||e.onDropdownIndicatorMouseDown(u)},e.handleInputChange=function(u){var s=e.props.inputValue,c=u.currentTarget.value;e.setState({inputIsHiddenAfterUpdate:!1}),e.onInputChange(c,{action:"input-change",prevInputValue:s}),e.props.menuIsOpen||e.onMenuOpen()},e.onInputFocus=function(u){e.props.onFocus&&e.props.onFocus(u),e.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(e.openAfterFocus||e.props.openMenuOnFocus)&&e.openMenu("first"),e.openAfterFocus=!1},e.onInputBlur=function(u){var s=e.props.inputValue;if(e.menuListRef&&e.menuListRef.contains(document.activeElement)){e.inputRef.focus();return}e.props.onBlur&&e.props.onBlur(u),e.onInputChange("",{action:"input-blur",prevInputValue:s}),e.onMenuClose(),e.setState({focusedValue:null,isFocused:!1})},e.onOptionHover=function(u){if(!(e.blockOptionHover||e.state.focusedOption===u)){var s=e.getFocusableOptions(),c=s.indexOf(u);e.setState({focusedOption:u,focusedOptionId:c>-1?e.getFocusedOptionId(u):null})}},e.shouldHideSelectedOptions=function(){return yt(e.props)},e.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),e.focus()},e.onKeyDown=function(u){var s=e.props,c=s.isMulti,d=s.backspaceRemovesValue,f=s.escapeClearsValue,m=s.inputValue,b=s.isClearable,g=s.isDisabled,p=s.menuIsOpen,v=s.onKeyDown,O=s.tabSelectsValue,D=s.openMenuOnFocus,x=e.state,I=x.focusedOption,V=x.focusedValue,M=x.selectValue;if(!g&&!(typeof v=="function"&&(v(u),u.defaultPrevented))){switch(e.blockOptionHover=!0,u.key){case"ArrowLeft":if(!c||m)return;e.focusValue("previous");break;case"ArrowRight":if(!c||m)return;e.focusValue("next");break;case"Delete":case"Backspace":if(m)return;if(V)e.removeValue(V);else{if(!d)return;c?e.popValue():b&&e.clearValue()}break;case"Tab":if(e.isComposing||u.shiftKey||!p||!O||!I||D&&e.isOptionSelected(I,M))return;e.selectOption(I);break;case"Enter":if(u.keyCode===229)break;if(p){if(!I||e.isComposing)return;e.selectOption(I);break}return;case"Escape":p?(e.setState({inputIsHiddenAfterUpdate:!1}),e.onInputChange("",{action:"menu-close",prevInputValue:m}),e.onMenuClose()):b&&f&&e.clearValue();break;case" ":if(m)return;if(!p){e.openMenu("first");break}if(!I)return;e.selectOption(I);break;case"ArrowUp":p?e.focusOption("up"):e.openMenu("last");break;case"ArrowDown":p?e.focusOption("down"):e.openMenu("first");break;case"PageUp":if(!p)return;e.focusOption("pageup");break;case"PageDown":if(!p)return;e.focusOption("pagedown");break;case"Home":if(!p)return;e.focusOption("first");break;case"End":if(!p)return;e.focusOption("last");break;default:return}u.preventDefault()}},e.state.instancePrefix="react-select-"+(e.props.instanceId||++Dr),e.state.selectValue=Ne(r.value),r.menuIsOpen&&e.state.selectValue.length){var o=e.getFocusableOptionsWithIds(),a=e.buildFocusableOptions(),l=a.indexOf(e.state.selectValue[0]);e.state.focusableOptionsWithIds=o,e.state.focusedOption=a[l],e.state.focusedOptionId=Oe(o,a[l])}return e}return zt(i,[{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&&Ue(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var o=this.props,a=o.isDisabled,l=o.menuIsOpen,u=this.state.isFocused;(u&&!a&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),u&&a&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!a&&e.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ue(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,o){this.props.onInputChange(e,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var o=this,a=this.state,l=a.selectValue,u=a.isFocused,s=this.buildFocusableOptions(),c=e==="first"?0:s.length-1;if(!this.props.isMulti){var d=s.indexOf(l[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c],focusedOptionId:this.getFocusedOptionId(s[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(e){var o=this.state,a=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=a.indexOf(l);l||(u=-1);var s=a.length-1,c=-1;if(a.length){switch(e){case"previous":u===0?c=0:u===-1?c=s:c=u-1;break;case"next":u>-1&&u<s&&(c=u+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var u=0,s=l.indexOf(a);a||(s=-1),e==="up"?u=s>0?s-1:l.length-1:e==="down"?u=(s+1)%l.length:e==="pageup"?(u=s-o,u<0&&(u=0)):e==="pagedown"?(u=s+o,u>l.length-1&&(u=l.length-1)):e==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Fe):C(C({},Fe),this.props.theme):Fe}},{key:"getCommonProps",value:function(){var e=this.clearValue,o=this.cx,a=this.getStyles,l=this.getClassNames,u=this.getValue,s=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,m=d.isRtl,b=d.options,g=this.hasValue();return{clearValue:e,cx:o,getStyles:a,getClassNames:l,getValue:u,hasValue:g,isMulti:f,isRtl:m,options:b,selectOption:s,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var e=this.state.selectValue;return e.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,o=e.isClearable,a=e.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(e,o){return Vt(this.props,e,o)}},{key:"isOptionSelected",value:function(e,o){return Mt(this.props,e,o)}},{key:"filterOption",value:function(e,o){return At(this.props,e,o)}},{key:"formatOptionLabel",value:function(e,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(e,{context:o,inputValue:a,selectValue:l})}else 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,o=e.isDisabled,a=e.isSearchable,l=e.inputId,u=e.inputValue,s=e.tabIndex,c=e.form,d=e.menuIsOpen,f=e.required,m=this.getComponents(),b=m.Input,g=this.state,p=g.inputIsHidden,v=g.ariaSelection,O=this.commonProps,D=l||this.getElementId("input"),x=C(C(C({"aria-autocomplete":"list","aria-expanded":d,"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":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?h.createElement(b,S({},O,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:D,innerRef:this.getInputRef,isDisabled:o,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:u},x)):h.createElement(Xi,S({id:D,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pe,onFocus:this.onInputFocus,disabled:o,tabIndex:s,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,o=this.getComponents(),a=o.MultiValue,l=o.MultiValueContainer,u=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,m=this.props,b=m.controlShouldRenderValue,g=m.isDisabled,p=m.isMulti,v=m.inputValue,O=m.placeholder,D=this.state,x=D.selectValue,I=D.focusedValue,V=D.isFocused;if(!this.hasValue()||!b)return v?null:h.createElement(d,S({},f,{key:"placeholder",isDisabled:g,isFocused:V,innerProps:{id:this.getElementId("placeholder")}}),O);if(p)return x.map(function(F,A){var L=F===I,B="".concat(e.getOptionLabel(F),"-").concat(e.getOptionValue(F));return h.createElement(a,S({},f,{components:{Container:l,Label:u,Remove:s},isFocused:L,isDisabled:g,key:B,index:A,removeProps:{onClick:function(){return e.removeValue(F)},onTouchEnd:function(){return e.removeValue(F)},onMouseDown:function(j){j.preventDefault()}},data:F}),e.formatOptionLabel(F,"value"))});if(v)return null;var M=x[0];return h.createElement(c,S({},f,{data:M,isDisabled:g}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents(),o=e.ClearIndicator,a=this.commonProps,l=this.props,u=l.isDisabled,s=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||u||!this.hasValue()||s)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return h.createElement(o,S({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents(),o=e.LoadingIndicator,a=this.commonProps,l=this.props,u=l.isDisabled,s=l.isLoading,c=this.state.isFocused;if(!o||!s)return null;var d={"aria-hidden":"true"};return h.createElement(o,S({},a,{innerProps:d,isDisabled:u,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),o=e.DropdownIndicator,a=e.IndicatorSeparator;if(!o||!a)return null;var l=this.commonProps,u=this.props.isDisabled,s=this.state.isFocused;return h.createElement(a,S({},l,{isDisabled:u,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents(),o=e.DropdownIndicator;if(!o)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return h.createElement(o,S({},a,{innerProps:s,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var e=this,o=this.getComponents(),a=o.Group,l=o.GroupHeading,u=o.Menu,s=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,m=o.Option,b=this.commonProps,g=this.state.focusedOption,p=this.props,v=p.captureMenuScroll,O=p.inputValue,D=p.isLoading,x=p.loadingMessage,I=p.minMenuHeight,V=p.maxMenuHeight,M=p.menuIsOpen,F=p.menuPlacement,A=p.menuPosition,L=p.menuPortalTarget,B=p.menuShouldBlockScroll,T=p.menuShouldScrollIntoView,j=p.noOptionsMessage,W=p.onMenuScrollToTop,R=p.onMenuScrollToBottom;if(!M)return null;var P=function(k,G){var J=k.type,$=k.data,Q=k.isDisabled,Y=k.isSelected,re=k.label,wt=k.value,Re=g===$,Le=Q?void 0:function(){return e.onOptionHover($)},Rt=Q?void 0:function(){return e.selectOption($)},Te="".concat(e.getElementId("option"),"-").concat(G),Lt={id:Te,onClick:Rt,onMouseMove:Le,onMouseOver:Le,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:Y};return h.createElement(m,S({},b,{innerProps:Lt,data:$,isDisabled:Q,isSelected:Y,key:Te,label:re,type:J,value:wt,isFocused:Re,innerRef:Re?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(k.data,"menu"))},_;if(this.hasOptions())_=this.getCategorizedOptions().map(function(w){if(w.type==="group"){var k=w.data,G=w.options,J=w.index,$="".concat(e.getElementId("group"),"-").concat(J),Q="".concat($,"-heading");return h.createElement(a,S({},b,{key:$,data:k,options:G,Heading:l,headingProps:{id:Q,data:w.data},label:e.formatGroupLabel(w.data)}),w.options.map(function(Y){return P(Y,"".concat(J,"-").concat(Y.index))}))}else if(w.type==="option")return P(w,"".concat(w.index))});else if(D){var H=x({inputValue:O});if(H===null)return null;_=h.createElement(d,b,H)}else{var X=j({inputValue:O});if(X===null)return null;_=h.createElement(f,b,X)}var Z={minMenuHeight:I,maxMenuHeight:V,menuPlacement:F,menuPosition:A,menuShouldScrollIntoView:T},ie=h.createElement(Mn,S({},b,Z),function(w){var k=w.ref,G=w.placerProps,J=G.placement,$=G.maxHeight;return h.createElement(u,S({},b,Z,{innerRef:k,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:D,placement:J}),h.createElement(nr,{captureEnabled:v,onTopArrive:W,onBottomArrive:R,lockEnabled:B},function(Q){return h.createElement(s,S({},b,{innerRef:function(re){e.getMenuListRef(re),Q(re)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:e.getElementId("listbox")},isLoading:D,maxHeight:$,focusedOption:g}),_)}))});return L||A==="fixed"?h.createElement(c,S({},b,{appendTo:L,controlElement:this.controlRef,menuPlacement:F,menuPosition:A}),ie):ie}},{key:"renderFormField",value:function(){var e=this,o=this.props,a=o.delimiter,l=o.isDisabled,u=o.isMulti,s=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!l)return h.createElement(ur,{name:s,onFocus:this.onValueInputFocus});if(!(!s||l))if(u)if(a){var f=d.map(function(g){return e.getOptionValue(g)}).join(a);return h.createElement("input",{name:s,type:"hidden",value:f})}else{var m=d.length>0?d.map(function(g,p){return h.createElement("input",{key:"i-".concat(p),name:s,type:"hidden",value:e.getOptionValue(g)})}):h.createElement("input",{name:s,type:"hidden",value:""});return h.createElement("div",null,m)}else{var b=d[0]?this.getOptionValue(d[0]):"";return h.createElement("input",{name:s,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,o=this.state,a=o.ariaSelection,l=o.focusedOption,u=o.focusedValue,s=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return h.createElement(ji,S({},e,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:u,isFocused:s,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),o=e.Control,a=e.IndicatorsContainer,l=e.SelectContainer,u=e.ValueContainer,s=this.props,c=s.className,d=s.id,f=s.isDisabled,m=s.menuIsOpen,b=this.state.isFocused,g=this.commonProps=this.getCommonProps();return h.createElement(l,S({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:b}),this.renderLiveRegion(),h.createElement(o,S({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:b,menuIsOpen:m}),h.createElement(u,S({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),h.createElement(a,S({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,o){var a=o.prevProps,l=o.clearFocusValueOnUpdate,u=o.inputIsHiddenAfterUpdate,s=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,m=e.options,b=e.value,g=e.menuIsOpen,p=e.inputValue,v=e.isMulti,O=Ne(b),D={};if(a&&(b!==a.value||m!==a.options||g!==a.menuIsOpen||p!==a.inputValue)){var x=g?Sr(e,O):[],I=g?tt(le(e,O),"".concat(f,"-option")):[],V=l?Fr(o,O):null,M=Or(o,x),F=Oe(I,M);D={selectValue:O,focusedOption:M,focusedOptionId:F,focusableOptionsWithIds:I,focusedValue:V,clearFocusValueOnUpdate:!1}}var A=u!=null&&e!==a?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},L=s,B=c&&d;return c&&!B&&(L={value:se(v,O,O[0]||null),options:O,action:"initial-input-focus"},B=!d),(s==null?void 0:s.action)==="initial-input-focus"&&(L=null),C(C(C({},D),A),{},{prevProps:e,ariaSelection:L,prevWasFocused:B})}}]),i}(h.Component);Pt.defaultProps=Cr;var xr=h.forwardRef(function(n,t){var i=an(n);return h.createElement(Pt,S({ref:t},i))}),it=xr;const Ir=Gt.div` .error-helper-text { color: #d32f2f; font-size: 0.75rem; line-height: 1.66; letter-spacing: 0.03333em; text-align: left; margin-top: 3px; margin-right: 14px; margin-bottom: 0; margin-left: 14px; } `,Vr={color:"var(--gray-3, #828282)",fontFamily:"Raleway",fontSize:"1.125rem",fontStyle:"normal",fontWeight:400,lineHeight:"normal"},Mr=({height:n="56px",handleChange:t,name:i="",options:r,control:e,rules:o,label:a,selectValue:l,labelSize:u})=>{const[s,c]=h.useState("rgba(0, 0, 0, 0.15)"),d={control:(f,{isFocused:m})=>({...f,border:m?"2px solid #A8CF45":`1px solid ${s}`,outline:m&&"none",boxShadow:"none",minHeight:n,height:n,margin:0,backgroundColor:"transparent",":hover":{border:m?"2px solid #A8CF45":"1px solid rgba(0, 0, 0, 0.50)"},padding:0}),menu:f=>({...f,border:"none",backgroundColor:"#fff"}),dropdownIndicator:f=>({...f,paddingTop:0,paddingBottom:0,border:"none",color:"#000",fontSize:"8px",fontWeight:500,backgroundColor:"transparent"}),input:f=>({...f,padding:0,margin:0}),valueContainer:f=>({...f,padding:"0 8px"})};return U.jsx(Ir,{children:U.jsxs(_t,{sx:{width:"100%"},children:[U.jsx(jt,{sx:{...Vr,fontSize:u??".75rem"},className:"!mb-2",children:a}),l?U.jsx(U.Fragment,{children:U.jsx(it,{classNamePrefix:"select",value:r==null?void 0:r.find(f=>(f==null?void 0:f.name)===l),isDisabled:!0,isClearable:!1,isSearchable:!0,styles:d,name:i,options:r??[]})}):U.jsx(Wt,{control:e,defaultValue:"",name:i,rules:o,style:{padding:0,margin:0},render:({field:{onChange:f,value:m,name:b,onBlur:g},fieldState:p})=>U.jsxs(U.Fragment,{children:[U.jsx(it,{classNamePrefix:"select",value:r==null?void 0:r.find(v=>(v==null?void 0:v.value)===m),onBlur:()=>{g(!0),p.error?c("#d32f2f"):c("rgba(0, 0, 0, 0.15)")},onChange:v=>{console.log(v),f(v.value),t(v.value,b)},isClearable:!1,isSearchable:!0,styles:d,name:b,options:r??[]}),p.error?U.jsx("p",{className:"error-helper-text",children:p.error.message}):null]})})]})})};Mr.propTypes={height:N.string,handleChange:N.func,value:N.any,name:N.string,options:N.array,defaultValue:N.any,control:N.any,rules:N.any,label:N.string,selectValue:N.any,labelSize:N.string};export{Mr as C};