(()=>{"use strict";var e={72:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case p:case v:case h:case u:return e;default:return t}}case r:return t}}}function C(e){return O(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||O(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===h},t.isPortal=function(e){return O(e)===r},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},t.typeOf=O},146:(e,t,n)=>{var o=n(404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=f(n);r&&r!==m&&e(t,r,o)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),h=u(n),v=0;v{e.exports=n(72)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const o=window.React;function r(e){return r="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},r(e)}function i(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function a(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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 u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n0?M(_,--T):0,F--,10===A&&(F=1,D--),A}function $(){return A=T2||W(A)>3?"":" "}function K(e,t){for(;--t&&$()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return z(e,U()+(t<6&&32==B()&&32==$()))}function J(e){for(;$();)switch(A){case e:return T;case 34:case 39:34!==e&&39!==e&&J(A);break;case 40:41===e&&J(e);break;case 92:$()}return T}function Z(e,t){for(;$()&&e+A!==57&&(e+A!==84||47!==B()););return"/*"+z(t,T-1)+"*"+C(47===e?e:$())}function Q(e){for(;!W(B());)$();return z(e,T)}var ee="-ms-",te="-moz-",ne="-webkit-",oe="comm",re="rule",ie="decl",ae="@keyframes";function se(e,t){for(var n="",o=R(e),r=0;r0&&V(x)-d&&k(f>32?fe(x+";",o,n,d-1):fe(E(x," ","")+";",o,n,d-2),u);break;case 59:x+=";";default:if(k(S=de(x,t,n,l,c,r,s,y,w=[],O=[],d),i),123===b)if(0===c)ce(x,t,S,S,w,i,d,s,O);else switch(99===p&&110===M(x,3)?100:p){case 100:case 108:case 109:case 115:ce(e,S,S,o&&k(de(e,S,S,0,0,r,s,y,r,w=[],d),O),r,O,d,s,o?w:O);break;default:ce(x,S,S,S,[""],O,0,s,O)}}l=c=f=0,h=g=1,y=x="",d=a;break;case 58:d=1+V(x),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==j())continue;switch(x+=C(b),b*h){case 38:g=c>0?1:(x+="\f",-1);break;case 44:s[l++]=(V(x)-1)*g,g=1;break;case 64:45===B()&&(x+=X($())),p=B(),c=d=V(y=x+=Q(U())),b++;break;case 45:45===m&&2==V(x)&&(h=0)}}return i}function de(e,t,n,o,r,i,a,s,u,l,c){for(var d=r-1,p=0===r?i:[""],f=R(p),m=0,h=0,v=0;m0?p[g]+" "+b:E(b,/&\f/g,p[g])))&&(u[v++]=y);return H(e,t,n,0===r?re:s,u,l,c)}function pe(e,t,n){return H(e,t,n,oe,C(A),P(e,2,-2),0)}function fe(e,t,n,o){return H(e,t,n,ie,P(e,0,o),P(e,o+1,-1),o)}var me=function(e,t,n){for(var o=0,r=0;o=r,r=B(),38===o&&12===r&&(t[n]=1),!W(r);)$();return z(e,T)},he=new WeakMap,ve=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||he.get(n))&&!o){he.set(e,!0);for(var r=[],i=function(e,t){return Y(function(e,t){var n=-1,o=44;do{switch(W(o)){case 0:38===o&&12===B()&&(t[n]=1),e[n]+=me(T-1,t,n);break;case 2:e[n]+=X(o);break;case 4:if(44===o){e[++n]=58===B()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=C(o)}}while(o=$());return e}(G(e),t))}(t,r),a=n.props,s=0,u=0;s6)switch(M(e,t+1)){case 109:if(45!==M(e,t+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+te+(108==M(e,t+3)?"$3":"$2-$3"))+e;case 115:return~I(e,"stretch")?be(E(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==M(e,t+1))break;case 6444:switch(M(e,V(e)-3-(~I(e,"!important")&&10))){case 107:return E(e,":",":"+ne)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(45===M(e,14)?"inline-":"")+"box$3$1"+ne+"$2$3$1"+ee+"$2box$3")+e}break;case 5936:switch(M(e,t+11)){case 114:return ne+e+ee+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+ee+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+ee+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+ee+e+e}return e}var ye=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case ie:e.return=be(e.value,e.length);break;case ae:return se([N(e,{value:E(e.value,"@","@"+ne)})],o);case re:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return se([N(e,{props:[E(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return se([N(e,{props:[E(t,/:(plac\w+)/,":"+ne+"input-$1")]}),N(e,{props:[E(t,/:(plac\w+)/,":-moz-$1")]}),N(e,{props:[E(t,/:(plac\w+)/,ee+"input-$1")]})],o)}return""})}}],we=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var o,r,i=e.stylisPlugins||ye,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+u;return{name:l,styles:r,next:ke}}var Le,Te,Ae=!!o.useInsertionEffect&&o.useInsertionEffect,_e=Ae||function(e){return e()},He=(Ae||o.useLayoutEffect,o.createContext("undefined"!=typeof HTMLElement?we({key:"css"}):null)),Ne=(He.Provider,function(e){return(0,o.forwardRef)(function(t,n){var r=(0,o.useContext)(He);return e(t,r,n)})}),je=o.createContext({}),$e={}.hasOwnProperty,Be="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ue=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Oe(t,n,o),_e(function(){return function(e,t,n){Oe(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)}),null},ze=Ne(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Be],a=[r],s="";"string"==typeof e.className?s=function(e,t,n){var o="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")}),o}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var u=Fe(a,void 0,o.useContext(je));s+=t.key+"-"+u.name;var l={};for(var c in e)$e.call(e,c)&&"css"!==c&&c!==Be&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),o.createElement(o.Fragment,null,o.createElement(Ue,{cache:t,serialized:u,isStringTag:"string"==typeof i}),o.createElement(i,l))}),We=ze,Ge=(n(146),function(e,t){var n=arguments;if(null==t||!$e.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=We,i[1]=function(e,t){var n={};for(var o in t)$e.call(t,o)&&(n[o]=t[o]);return n[Be]=e,n}(e,t);for(var a=2;a({x:e,y:e});function et(){return"undefined"!=typeof window}function tt(e){return rt(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ot(e){var t;return null==(t=(rt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rt(e){return!!et()&&(e instanceof Node||e instanceof nt(e).Node)}function it(e){return!!et()&&(e instanceof Element||e instanceof nt(e).Element)}function at(e){return!!et()&&(e instanceof HTMLElement||e instanceof nt(e).HTMLElement)}function st(e){return!(!et()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot)}const ut=new Set(["inline","contents"]);function lt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!ut.has(r)}const ct=new Set(["html","body","#document"]);function dt(e){return nt(e).getComputedStyle(e)}function pt(e){const t=function(e){if("html"===tt(e))return e;const t=e.assignedSlot||e.parentNode||st(e)&&e.host||ot(e);return st(t)?t.host:t}(e);return function(e){return ct.has(tt(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:at(t)&<(t)?t:pt(t)}function ft(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=pt(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=nt(r);if(i){const e=mt(a);return t.concat(a,a.visualViewport||[],lt(r)?r:[],e&&n?ft(e):[])}return t.concat(r,ft(r,[],n))}function mt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ht(e){return it(e)?e:e.contextElement}function vt(e){const t=ht(e);if(!at(t))return Qe(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=dt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=at(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Je(n)!==i||Je(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?Je(n.width):n.width)/o,s=(i?Je(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const gt=Qe(0);function bt(e){const t=nt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:gt}function yt(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ht(e);let a=Qe(1);t&&(o?it(o)&&(a=vt(o)):a=vt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==nt(e))&&t}(i,n,o)?bt(i):Qe(0);let u=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,c=r.width/a.x,d=r.height/a.y;if(i){const e=nt(i),t=o&&it(o)?nt(o):o;let n=e,r=mt(n);for(;r&&o&&t!==n;){const e=vt(r),t=r.getBoundingClientRect(),o=dt(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,d*=e.y,u+=i,l+=a,n=nt(r),r=mt(n)}}return function(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}({width:c,height:d,x:u,y:l})}function wt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Ot=o.useLayoutEffect,Ct=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],St=function(){};function xt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Et(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r-1}function Rt(e){return Vt(e)?window.pageYOffset:e.scrollTop}function kt(e,t){Vt(e)?window.scrollTo(0,t):e.scrollTop=t}function Dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:St,r=Rt(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;kt(e,u),an.bottom?kt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r=m)return{placement:"bottom",maxHeight:t};if(x>=m&&!a)return i&&Dt(u,E,M),{placement:"bottom",maxHeight:t};if(!a&&x>=o||a&&C>=o)return i&&Dt(u,E,M),{placement:"bottom",maxHeight:a?C-y:x-y};if("auto"===r||a){var P=t,V=a?O:S;return V>=o&&(P=Math.min(V-y-s,t)),{placement:"top",maxHeight:P}}if("bottom"===r)return i&&kt(u,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=m)return{placement:"top",maxHeight:t};if(S>=m&&!a)return i&&Dt(u,I,M),{placement:"top",maxHeight:t};if(!a&&S>=o||a&&O>=o){var R=t;return(!a&&S>=o||a&&O>=o)&&(R=a?O-w:S-w),i&&Dt(u,I,M),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});h(o.maxHeight),b(o.placement),null==c||c(o.placement)}},[r,i,a,s,n,c,y]),t({ref:p,placerProps:u(u({},e),{},{placement:g||Gt(i),maxHeight:m})})},qt=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return u({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Kt=qt,Jt=qt,Zt=["size"],Qt=["innerProps","isRtl","size"],en={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},tn=function(e){var t=e.size,n=p(e,Zt);return Ge("svg",m({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:en},n))},nn=function(e){return Ge(tn,m({size:20},e),Ge("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"}))},on=function(e){return Ge(tn,m({size:20},e),Ge("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"}))},rn=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return u({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},an=rn,sn=rn,un=function(){var e=Ye.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ut||(zt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Wt||(Wt=zt.slice(0)),Ut=Object.freeze(Object.defineProperties(zt,{raw:{value:Object.freeze(Wt)}})))),ln=function(e){var t=e.delay,n=e.offset;return Ge("span",{css:Ye({animation:"".concat(un," 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"},"","")})},cn=["data"],dn=["innerRef","isDisabled","isHidden","inputClassName"],pn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},fn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":u({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},pn)},mn=function(e){return u({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},pn)},hn=function(e){var t=e.children,n=e.innerProps;return Ge("div",n,t)},vn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ge("div",m({},Pt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ge(nn,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Ge("div",m({ref:r},Pt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ge("div",m({},Pt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ge(on,null))},DownChevron:on,CrossIcon:nn,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,u=e.label,l=e.theme,c=e.selectProps;return Ge("div",m({},Pt(e,"group",{group:!0}),s),Ge(i,m({},a,{selectProps:c,theme:l,getStyles:o,getClassNames:r,cx:n}),u),Ge("div",null,t))},GroupHeading:function(e){var t=Mt(e);t.data;var n=p(t,cn);return Ge("div",m({},Pt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ge("div",m({},Pt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ge("span",m({},t,Pt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Mt(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,u=p(o,dn);return Ge("div",m({},Pt(e,"input",{"input-container":!0}),{"data-value":n||""}),Ge("input",m({className:t({input:!0},s),ref:r,style:mn(a),disabled:i},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=p(e,Qt);return Ge("div",m({},Pt(u(u({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ge(ln,{delay:0,offset:n}),Ge(ln,{delay:160,offset:!0}),Ge(ln,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Ge("div",m({},Pt(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return Ge("div",m({},Pt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,o.useRef)(null),c=(0,o.useRef)(null),p=d((0,o.useState)(Gt(a)),2),f=p[0],h=p[1],v=(0,o.useMemo)(function(){return{setPortalPlacement:h}},[]),g=d((0,o.useState)(null),2),b=g[0],y=g[1],w=(0,o.useCallback)(function(){if(r){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}}(r),t="fixed"===s?0:window.pageYOffset,n=e[f]+t;n===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||y({offset:n,rect:e})}},[r,s,f,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);Ot(function(){w()},[w]);var O=(0,o.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&l.current&&(c.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,l=ht(e),c=r||i?[...l?ft(l):[],...ft(t)]:[];c.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=l&&s?function(e,t){let n,o=null;const r=ot(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const l=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=l;if(s||t(),!p||!f)return;const m={rootMargin:-Ze(d)+"px "+-Ze(r.clientWidth-(c+p))+"px "+-Ze(r.clientHeight-(d+f))+"px "+-Ze(c)+"px",threshold:Ke(0,qe(1,u))||1};let h=!0;function v(t){const o=t[0].intersectionRatio;if(o!==u){if(!h)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==o||wt(l,e.getBoundingClientRect())||a(),h=!1}try{o=new IntersectionObserver(v,{...m,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(v,m)}o.observe(e)}(!0),i}(l,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver(e=>{let[o]=e;o&&o.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let h=u?yt(e):null;return u&&function t(){const o=yt(e);h&&!wt(h,o)&&n(),h=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(p)}}(r,l.current,w,{elementResize:"ResizeObserver"in window}))},[r,w]);Ot(function(){O()},[O]);var C=(0,o.useCallback)(function(e){l.current=e,O()},[O]);if(!t&&"fixed"!==s||!b)return null;var S=Ge("div",m({ref:C},Pt(u(u({},e),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),i),n);return Ge(Yt.Provider,{value:v},t?(0,Xe.createPortal)(S,t):S)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=p(e,Bt);return Ge("div",m({},Pt(u(u({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=p(e,$t);return Ge("div",m({},Pt(u(u({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return Ge(l,{data:o,innerProps:u(u({},Pt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},Ge(c,{data:o,innerProps:u({},Pt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Ge(d,{data:o,innerProps:u(u({},Pt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:hn,MultiValueLabel:hn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ge("div",m({role:"button"},n),t||Ge(nn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return Ge("div",m({},Pt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ge("div",m({},Pt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return Ge("div",m({},Pt(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Ge("div",m({},Pt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return Ge("div",m({},Pt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},gn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function bn(e,t){return e===t||!(!gn(e)||!gn(t))}function yn(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,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 d=s?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(c(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Sn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,d=e.isAppleDevice,p=l.ariaLiveMessages,f=l.getOptionLabel,m=l.inputValue,h=l.isMulti,v=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,y=l.options,w=l.screenReaderStatus,O=l.tabSelectsValue,C=l.isLoading,S=l["aria-label"],x=l["aria-live"],E=(0,o.useMemo)(function(){return u(u({},Cn),p||{})},[p]),I=(0,o.useMemo)(function(){var e,n="";if(t&&E.onChange){var o=t.option,r=t.options,i=t.removedValue,a=t.removedValues,l=t.value,c=i||o||(e=l,Array.isArray(e)?null:e),d=c?f(c):"",p=r||a||void 0,m=p?p.map(f):[],h=u({isDisabled:c&&v(c,s),label:d,labels:m},t);n=E.onChange(h)}return n},[t,E,v,s,f]),M=(0,o.useMemo)(function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:v(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:d};e=E.onFocus(a)}return e},[n,r,f,v,E,i,s,d]),P=(0,o.useMemo)(function(){var e="";if(b&&y.length&&!C&&E.onFilter){var t=w({count:i.length});e=E.onFilter({inputValue:m,resultsMessage:t})}return e},[i,m,b,E,y,w,C]),V="initial-input-focus"===(null==t?void 0:t.action),R=(0,o.useMemo)(function(){var e="";if(E.guidance){var t=r?"value":b?"menu":"input";e=E.guidance({"aria-label":S,context:t,isDisabled:n&&v(n,s),isMulti:h,isSearchable:g,tabSelectsValue:O,isInitialFocus:V})}return e},[S,n,r,h,v,g,b,E,s,O,V]),k=Ge(o.Fragment,null,Ge("span",{id:"aria-selection"},I),Ge("span",{id:"aria-focused"},M),Ge("span",{id:"aria-results"},P),Ge("span",{id:"aria-guidance"},R));return Ge(o.Fragment,null,Ge(On,{id:c},V&&k),Ge(On,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!V&&k))},xn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],En=new RegExp("["+xn.map(function(e){return e.letters}).join("")+"]","g"),In={},Mn=0;Mn1?t-1:0),o=1;o0,h=d-p-l,v=!1;h>t&&s.current&&(r&&r(e),s.current=!1),m&&u.current&&(a&&a(e),u.current=!1),m&&t>h?(n&&!s.current&&n(e),f.scrollTop=d,v=!0,s.current=!0):!m&&-t>l&&(i&&!u.current&&i(e),f.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,i,a]),p=(0,o.useCallback)(function(e){d(e,e.deltaY)},[d]),f=(0,o.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),m=(0,o.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)},[d]),h=(0,o.useCallback)(function(e){if(e){var t=!!Ht&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}},[m,f,p]),v=(0,o.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))},[m,f,p]);return(0,o.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===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)(function(e){if(Un){var t=document.body,n=t&&t.style;if(r&&An.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&zn<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Hn).forEach(function(e){var t=Hn[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&Bn()&&(t.addEventListener("touchmove",Nn,Wn),e&&(e.addEventListener("touchstart",$n,Wn),e.addEventListener("touchmove",jn,Wn))),zn+=1}},[r]),u=(0,o.useCallback)(function(e){if(Un){var t=document.body,n=t&&t.style;zn=Math.max(zn-1,0),r&&zn<1&&An.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&Bn()&&(t.removeEventListener("touchmove",Nn,Wn),e&&(e.removeEventListener("touchstart",$n,Wn),e.removeEventListener("touchmove",jn,Wn)))}},[r]);return(0,o.useEffect)(function(){if(t){var e=a.current;return s(e),function(){u(e)}}},[t,s,u]),function(e){a.current=e}}({isEnabled:n});return Ge(o.Fragment,null,n&&Ge("div",{onClick:Gn,css:Yn}),t(function(e){i(e),a(e)}))}var qn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Kn=function(e){var t=e.name,n=e.onFocus;return Ge("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:qn,value:"",onChange:function(){}})};function Jn(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 Zn(){return Jn(/^Mac/i)}var Qn={clearIndicator:sn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return u({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:an,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,o=n.colors,r=n.spacing;return u({label:"group",cursor:"default",display:"block"},t?{}:{color:o.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.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return u({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return u(u({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},fn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return u({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Jt,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,s=r.spacing,l=r.colors;return u((a(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),a(n,"position","absolute"),a(n,"width","100%"),a(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,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.maxHeight,o=e.theme.spacing.baseUnit;return u({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return u({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return u({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return u({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Kt,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return u({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?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,o=n.spacing,r=n.colors;return u({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return u({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return u({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},eo={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}},to={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Lt(),captureMenuScroll:!Lt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=u({ignoreCase:!0,ignoreAccents:!0,stringify:Fn,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?Dn(t):t,c=a?Dn(i(e)):i(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=kn(l),c=Rn(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!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 no(e,t,n,o){return{type:"option",data:t,isDisabled:co(e,t,n),isSelected:po(e,t,n),label:uo(e,t),value:lo(e,t),index:o}}function oo(e,t){return e.options.map(function(n,o){if("options"in n){var r=n.options.map(function(n,o){return no(e,n,t,o)}).filter(function(t){return ao(e,t)});return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=no(e,n,t,o);return ao(e,i)?i:void 0}).filter(Nt)}function ro(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,y(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function io(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,y(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 ao(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!mo(e)||!i)&&fo(e,{label:a,value:s,data:r},o)}var so=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},uo=function(e,t){return e.getOptionLabel(t)},lo=function(e,t){return e.getOptionValue(t)};function co(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function po(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=lo(e,t);return n.some(function(t){return lo(e,t)===o})}function fo(e,t,n){return!e.filterOption||e.filterOption(t,n)}var mo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ho=1,vo=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&&v(e,t)}(n,e);var t=function(e){var t=b();return function(){var n,o=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=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},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),u=o.isOptionDisabled(e,a);if(s){var l=o.getOptionValue(e);o.setValue(a.filter(function(e){return o.getOptionValue(e)!==l}),"deselect-option",e)}else{if(u)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat(y(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter(function(e){return o.getOptionValue(e)!==r}),a=jt(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(jt(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=jt(e,r,r[0]||null);n&&o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return so(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return io(oo(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return mo(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,m=f.focusedOption,h=f.focusedValue,v=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)o.removeValue(h);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!l||!d||!m||p&&o.isOptionSelected(m,v))return;o.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(o.isComposing)return;o.selectOption(m);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++ho),o.state.selectValue=It(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=i[a],o.state.focusedOptionId=so(r,i[a])}return o}return function(e,t,n){t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(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&&Ft(this.menuListRef,this.focusedOptionRef),(Zn()||Jn(/^iPhone/i)||Jn(/^iPad/i)||Zn()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ft(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&&r0&&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(eo):u(u({},eo),this.props.theme):eo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return co(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return po(this.props,e,t)}},{key:"filterOption",value:function(e,t){return fo(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,p=this.state,f=p.inputIsHidden,h=p.ariaSelection,v=this.commonProps,g=r||this.getElementId("input"),b=u(u(u({"aria-autocomplete":"list","aria-expanded":l,"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":c,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(d,m({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},b)):o.createElement(Tn,m({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:St,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,h=c.inputValue,v=c.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,w=g.isFocused;if(!this.hasValue()||!d)return h?null:o.createElement(u,m({},l,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),v);if(f)return b.map(function(t,s){var u=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,m({},l,{components:{Container:r,Label:i,Remove:a},isFocused:u,isDisabled:p,key:c,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 O=b[0];return o.createElement(s,m({},l,{data:O,isDisabled:p}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,m({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?o.createElement(e,m({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,m({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,m({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,v=f.inputValue,g=f.isLoading,b=f.loadingMessage,y=f.minMenuHeight,w=f.maxMenuHeight,O=f.menuIsOpen,C=f.menuPlacement,S=f.menuPosition,x=f.menuPortalTarget,E=f.menuShouldBlockScroll,I=f.menuShouldScrollIntoView,M=f.noOptionsMessage,P=f.onMenuScrollToTop,V=f.onMenuScrollToBottom;if(!O)return null;var R,k=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,u=t.label,l=t.value,f=p===i,h=a?void 0:function(){return e.onOptionHover(i)},v=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:v,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return o.createElement(c,m({},d,{innerProps:b,data:i,isDisabled:a,isSelected:s,key:g,label:u,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,u="".concat(e.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return o.createElement(n,m({},d,{key:u,data:i,options:a,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return k(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return k(t,"".concat(t.index))});else if(g){var D=b({inputValue:v});if(null===D)return null;R=o.createElement(u,d,D)}else{var F=M({inputValue:v});if(null===F)return null;R=o.createElement(l,d,F)}var L={minMenuHeight:y,maxMenuHeight:w,menuPlacement:C,menuPosition:S,menuShouldScrollIntoView:I},T=o.createElement(Xt,m({},d,L),function(t){var n=t.ref,r=t.placerProps,s=r.placement,u=r.maxHeight;return o.createElement(i,m({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),o.createElement(Xn,{captureEnabled:h,onTopArrive:P,onBottomArrive:V,lockEnabled:E},function(t){return o.createElement(a,m({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:u,focusedOption:p}),R)}))});return x||"fixed"===S?o.createElement(s,m({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:C,menuPosition:S}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(Kn,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var l=u.map(function(t){return e.getOptionValue(t)}).join(n);return o.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map(function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,u=this.getFocusableOptions();return o.createElement(Sn,m({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:u,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.createElement(r,m({},p,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),o.createElement(t,m({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:c}),o.createElement(i,m({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,m({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,m=e.isMulti,h=It(d),v={};if(n&&(d!==n.value||c!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var g=p?function(e,t){return ro(oo(e,t))}(e,h):[],b=p?io(oo(e,h),"".concat(l,"-option")):[],y=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o-1?n:t[0]}(t,g);v={selectValue:h,focusedOption:w,focusedOptionId:so(b,w),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var O=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},C=i,S=a&&s;return a&&!S&&(C={value:jt(m,h,h[0]||null),options:h,action:"initial-input-focus"},S=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),u(u(u({},v),O),{},{prevProps:e,ariaSelection:C,prevWasFocused:S})}}]),n}(o.Component);vo.defaultProps=to;var go=(0,o.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,s=void 0===a?null:a,l=e.inputValue,c=e.menuIsOpen,m=e.onChange,h=e.onInputChange,v=e.onMenuClose,g=e.onMenuOpen,b=e.value,y=p(e,f),w=d((0,o.useState)(void 0!==l?l:n),2),O=w[0],C=w[1],S=d((0,o.useState)(void 0!==c?c:i),2),x=S[0],E=S[1],I=d((0,o.useState)(void 0!==b?b:s),2),M=I[0],P=I[1],V=(0,o.useCallback)(function(e,t){"function"==typeof m&&m(e,t),P(e)},[m]),R=(0,o.useCallback)(function(e,t){var n;"function"==typeof h&&(n=h(e,t)),C(void 0!==n?n:e)},[h]),k=(0,o.useCallback)(function(){"function"==typeof g&&g(),E(!0)},[g]),D=(0,o.useCallback)(function(){"function"==typeof v&&v(),E(!1)},[v]),F=void 0!==l?l:O,L=void 0!==c?c:x,T=void 0!==b?b:M;return u(u({},y),{},{inputValue:F,menuIsOpen:L,onChange:V,onInputChange:R,onMenuClose:D,onMenuOpen:k,value:T})}(e);return o.createElement(vo,m({ref:t},n))}),bo=go;const yo=window.wp.i18n,wo=window.wp.blocks,Oo=window.wp.blockEditor,Co=window.wp.components,So=window.wp.element,xo=({download_id:e,version_id:t,template:n,custom_template:o})=>{const[r,i]=(0,So.useState)({cacheKey:"",height:100}),a=()=>{let r=window.dlmBlocks.urlButtonPreview;return 0!==e&&(r+="&download_id="+e),0!==t&&(r+="&version_id="+t),""!==n&&(r+="&template="+n),""!==o&&(r+="&custom_template="+o),r},s=a(),u=r.height+"px";return React.createElement("div",{className:"dlmPreviewButton"},React.createElement("iframe",{src:s,width:"100%",height:u,onLoad:e=>{(e=>{const t=encodeURI(a());r.chacheKey!==t&&i({cacheKey:t,height:e.contentDocument.getElementById("dlmPreviewContainer").scrollHeight})})(e.target)}}))},Eo=window.wp.apiFetch;var Io=n.n(Eo);const Mo=({selectedDownloadId:e,onChange:t})=>{const[n,o]=(0,So.useState)([]);return(0,So.useEffect)(()=>{Io()({url:window.dlmBlocks.ajax_getDownloads}).then(e=>{o(e)})},[]),React.createElement("div",null,React.createElement(bo,{value:(r=n,i=e,r.find(e=>e.value===i)),onChange:e=>t(e.value),options:n,isSearchable:"true"}));var r,i},Po=({downloadId:e,selectedVersionId:t,onChange:n})=>{const[o,r]=(0,So.useState)([]),[i,a]=(0,So.useState)(e);(0,So.useEffect)(()=>s(e),[]),(0,So.useEffect)(()=>s(e),[e]);const s=e=>{void 0!==e&&e!==i&&Io()({url:window.dlmBlocks.ajax_getVersions+"&download_id="+e}).then(t=>{t.unshift({value:0,label:(0,yo.__)("Latest version","download-monitor")}),t=t.map(e=>""==e.label?{value:e.value,label:`Unnamed ${e.value}`}:e),r(t),a(e)})};return React.createElement("div",null,React.createElement(bo,{value:(u=o,l=t,u.find(e=>e.value===l)),onChange:e=>n(e.value),options:o,isSearchable:"true",isDisabled:void 0===e}));var u,l},Vo=({templatesStr:e,selectedTemplate:t,onChange:n})=>{const o=JSON.parse(e);return React.createElement("div",null,React.createElement(bo,{value:(r=o,i=t,r.find(e=>e.value===i)),onChange:e=>n(e.value),options:o,isSearchable:"true"}));var r,i};(0,wo.registerBlockType)("download-monitor/download-button",{title:(0,yo.__)("Download Button","download-monitor"),icon:"download",keywords:[(0,yo.__)("download","download-monitor"),"download monitor",(0,yo.__)("file","download-monitor")],category:"common",attributes:{download_id:{type:"number",default:0},version_id:{type:"number",default:0},template:{type:"string",default:"settings"},custom_template:{type:"string",default:""},autop:{type:"number",default:0}},edit:e=>{const{attributes:{download_id:t,version_id:n,template:o,custom_template:r,autop:i},setAttributes:a}=e,s=[{value:0,label:"No"},{value:1,label:"Yes"}];return React.createElement(So.Fragment,null,React.createElement(Oo.InspectorControls,null,React.createElement(Co.PanelBody,{title:(0,yo.__)("Download Information","download-monitor")},React.createElement("div",{className:"components-base-control"},React.createElement("span",{className:"components-base-control__label"},(0,yo.__)("Download","download-monitor")),React.createElement(Mo,{onChange:e=>a({download_id:e}),selectedDownloadId:t})),React.createElement("div",{className:"components-base-control"},React.createElement("span",{className:"components-base-control__label"},(0,yo.__)("Version","download-monitor")),React.createElement(Po,{onChange:e=>a({version_id:e}),selectedVersionId:n,downloadId:t}))),React.createElement(Co.PanelBody,{title:(0,yo.__)("Template","download-monitor")},React.createElement("div",{className:"components-base-control dlmGbEditorTemplateWrapper"},React.createElement("span",{className:"components-base-control__label"},(0,yo.__)("Template","download-monitor")),React.createElement(Vo,{onChange:e=>a({template:e}),selectedTemplate:o,templatesStr:window.dlmBlocks.templates})),"custom"===o&&React.createElement("div",{className:"components-base-control"},React.createElement("span",{className:"components-base-control__label"},(0,yo.__)("Custom Template","download-monitor")),React.createElement("input",{className:"components-text-control__input",onChange:e=>a({custom_template:e.target.value}),value:r})),React.createElement("div",{className:"components-base-control dlmGbEditorTemplateWrapper"},React.createElement("span",{className:"components-base-control__label"},(0,yo.__)("Wrap in paragraph tag (

)?","download-monitor")),React.createElement(bo,{value:(u=s,l=i,u.find(e=>e.value===l)),onChange:e=>{a({autop:e.value})},options:s,isSearchable:"false"})))),React.createElement(xo,{download_id:t,version_id:n,template:o,custom_template:r}));var u,l},save:()=>null})})();