freemium-ui 2.0.0-beta.7 → 2.0.0-beta.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/index.cjs.js +14824 -519
- package/index.d.ts +617 -1545
- package/index.js +14649 -519
- package/package.json +8 -10
- package/Alert/index.d.ts +0 -50
- package/Alert/index.js +0 -186
- package/Alert/package.json +0 -11
- package/Button/index.d.ts +0 -34
- package/Button/index.js +0 -40
- package/Button/package.json +0 -10
- package/Checkbox/index.d.ts +0 -24
- package/Checkbox/index.js +0 -196
- package/Checkbox/package.json +0 -11
- package/Confirmation/index.d.ts +0 -64
- package/Confirmation/index.js +0 -264
- package/Confirmation/package.json +0 -11
- package/Drawer/index.d.ts +0 -50
- package/Drawer/index.js +0 -222
- package/Drawer/package.json +0 -11
- package/Dropdown/index.d.ts +0 -131
- package/Dropdown/index.js +0 -474
- package/Dropdown/package.json +0 -11
- package/Icons/index.d.ts +0 -13
- package/Icons/index.js +0 -1
- package/Icons/package.json +0 -10
- package/Input/index.d.ts +0 -63
- package/Input/index.js +0 -240
- package/Input/package.json +0 -11
- package/Loader/index.d.ts +0 -21
- package/Loader/index.js +0 -13
- package/Loader/package.json +0 -10
- package/Menu/index.d.ts +0 -57
- package/Menu/index.js +0 -206
- package/Menu/package.json +0 -11
- package/Modal/index.d.ts +0 -51
- package/Modal/index.js +0 -258
- package/Modal/package.json +0 -11
- package/MultiSelectDropdown/index.d.ts +0 -92
- package/MultiSelectDropdown/index.js +0 -460
- package/MultiSelectDropdown/package.json +0 -11
- package/Pickers/index.d.ts +0 -72
- package/Pickers/index.js +0 -1392
- package/Pickers/package.json +0 -11
- package/Popover/index.d.ts +0 -364
- package/Popover/index.js +0 -188
- package/Popover/package.json +0 -11
- package/Radio/index.d.ts +0 -86
- package/Radio/index.js +0 -195
- package/Radio/package.json +0 -11
- package/Reorder/index.d.ts +0 -36
- package/Reorder/index.js +0 -167
- package/Reorder/package.json +0 -11
- package/Table/index.d.ts +0 -19
- package/Table/index.js +0 -524
- package/Table/package.json +0 -11
- package/Tabs/index.d.ts +0 -1161
- package/Tabs/index.js +0 -23
- package/Tabs/package.json +0 -11
- package/Tag/index.d.ts +0 -44
- package/Tag/index.js +0 -56
- package/Tag/package.json +0 -11
- package/ThemeProvider/index.d.ts +0 -127
- package/ThemeProvider/index.js +0 -269
- package/ThemeProvider/package.json +0 -11
- package/Toast/index.d.ts +0 -55
- package/Toast/index.js +0 -269
- package/Toast/package.json +0 -11
- package/Toggle/index.d.ts +0 -35
- package/Toggle/index.js +0 -67
- package/Toggle/package.json +0 -11
- package/Tooltip/index.d.ts +0 -53
- package/Tooltip/index.js +0 -196
- package/Tooltip/package.json +0 -11
- package/Transition/index.d.ts +0 -46
- package/Transition/index.js +0 -14
- package/Transition/package.json +0 -11
- package/Typography/index.d.ts +0 -20
- package/Typography/index.js +0 -9
- package/Typography/package.json +0 -10
- package/rollup.config.d.ts +0 -3
- package/src/components/Alert/Alert.d.ts +0 -7
- package/src/components/Alert/Alert.types.d.ts +0 -42
- package/src/components/Alert/index.d.ts +0 -2
- package/src/components/Alert/styles.d.ts +0 -279
- package/src/components/Button/Button.d.ts +0 -7
- package/src/components/Button/Button.types.d.ts +0 -25
- package/src/components/Button/constants.d.ts +0 -5
- package/src/components/Button/index.d.ts +0 -2
- package/src/components/Button/styles.d.ts +0 -9
- package/src/components/Checkbox/Checkbox.d.ts +0 -7
- package/src/components/Checkbox/Checkbox.types.d.ts +0 -15
- package/src/components/Checkbox/index.d.ts +0 -2
- package/src/components/Checkbox/styles.d.ts +0 -836
- package/src/components/Confirmation/Confirmation.d.ts +0 -7
- package/src/components/Confirmation/Confirmation.types.d.ts +0 -55
- package/src/components/Confirmation/index.d.ts +0 -2
- package/src/components/Confirmation/styles.d.ts +0 -1951
- package/src/components/Drawer/Drawer.d.ts +0 -7
- package/src/components/Drawer/Drawer.types.d.ts +0 -41
- package/src/components/Drawer/constants.d.ts +0 -4
- package/src/components/Drawer/index.d.ts +0 -2
- package/src/components/Drawer/styles.d.ts +0 -865
- package/src/components/Dropdown/Dropdown.d.ts +0 -7
- package/src/components/Dropdown/Dropdown.types.d.ts +0 -122
- package/src/components/Dropdown/index.d.ts +0 -2
- package/src/components/Dropdown/styles.d.ts +0 -3887
- package/src/components/Icons/ChevronUp.d.ts +0 -3
- package/src/components/Icons/Cross.d.ts +0 -3
- package/src/components/Icons/CrossSmall.d.ts +0 -3
- package/src/components/Icons/Drag.d.ts +0 -3
- package/src/components/Icons/Search.d.ts +0 -3
- package/src/components/Icons/Settings.d.ts +0 -3
- package/src/components/Icons/TickIcon.d.ts +0 -3
- package/src/components/Icons/Warning.d.ts +0 -3
- package/src/components/Icons/index.d.ts +0 -5
- package/src/components/Input/Input.d.ts +0 -7
- package/src/components/Input/InputTextArea.types.d.ts +0 -50
- package/src/components/Input/TextArea.d.ts +0 -7
- package/src/components/Input/index.d.ts +0 -3
- package/src/components/Input/styles.d.ts +0 -877
- package/src/components/Loader/Loader.d.ts +0 -7
- package/src/components/Loader/Loader.types.d.ts +0 -12
- package/src/components/Loader/constants.d.ts +0 -4
- package/src/components/Loader/index.d.ts +0 -2
- package/src/components/Loader/styles.d.ts +0 -8
- package/src/components/Menu/Menu.d.ts +0 -8
- package/src/components/Menu/Menu.types.d.ts +0 -47
- package/src/components/Menu/index.d.ts +0 -2
- package/src/components/Menu/styles.d.ts +0 -1078
- package/src/components/Modal/Modal.d.ts +0 -7
- package/src/components/Modal/Modal.types.d.ts +0 -42
- package/src/components/Modal/constants.d.ts +0 -8
- package/src/components/Modal/index.d.ts +0 -2
- package/src/components/Modal/styles.d.ts +0 -308
- package/src/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +0 -7
- package/src/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +0 -83
- package/src/components/MultiSelectDropdown/index.d.ts +0 -2
- package/src/components/MultiSelectDropdown/styles.d.ts +0 -547
- package/src/components/Pickers/DatePicker.d.ts +0 -8
- package/src/components/Pickers/DateRangePicker.d.ts +0 -8
- package/src/components/Pickers/DateTimePicker.d.ts +0 -8
- package/src/components/Pickers/DateTimeRangePicker.d.ts +0 -8
- package/src/components/Pickers/PickerDropdown.d.ts +0 -21
- package/src/components/Pickers/Pickers.types.d.ts +0 -44
- package/src/components/Pickers/constants.d.ts +0 -1
- package/src/components/Pickers/index.d.ts +0 -5
- package/src/components/Pickers/styles.d.ts +0 -835
- package/src/components/Popover/Popover.d.ts +0 -7
- package/src/components/Popover/Popover.types.d.ts +0 -68
- package/src/components/Popover/index.d.ts +0 -3
- package/src/components/Popover/styles.d.ts +0 -1357
- package/src/components/Radio/Radio.d.ts +0 -7
- package/src/components/Radio/Radio.types.d.ts +0 -72
- package/src/components/Radio/RadioGroup.d.ts +0 -7
- package/src/components/Radio/index.d.ts +0 -3
- package/src/components/Radio/styles.d.ts +0 -1114
- package/src/components/RadixDropdown/RadixDropdown.d.ts +0 -4
- package/src/components/RadixDropdown/RadixDropdown.types.d.ts +0 -121
- package/src/components/RadixDropdown/index.d.ts +0 -2
- package/src/components/RadixDropdown/styles.d.ts +0 -3321
- package/src/components/Reorder/Reorder.d.ts +0 -7
- package/src/components/Reorder/Reorder.types.d.ts +0 -27
- package/src/components/Reorder/index.d.ts +0 -2
- package/src/components/Reorder/styles.d.ts +0 -278
- package/src/components/Table/CustomizeColumns.d.ts +0 -10
- package/src/components/Table/Table.d.ts +0 -7
- package/src/components/Table/Table.types.d.ts +0 -10
- package/src/components/Table/index.d.ts +0 -2
- package/src/components/Table/styles.d.ts +0 -4384
- package/src/components/Tabs/Tabs.d.ts +0 -9
- package/src/components/Tabs/Tabs.types.d.ts +0 -37
- package/src/components/Tabs/index.d.ts +0 -2
- package/src/components/Tabs/styles.d.ts +0 -1113
- package/src/components/Tag/Tag.d.ts +0 -7
- package/src/components/Tag/Tag.types.d.ts +0 -35
- package/src/components/Tag/index.d.ts +0 -2
- package/src/components/Tag/styles.d.ts +0 -1121
- package/src/components/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/src/components/ThemeProvider/ThemeProvider.types.d.ts +0 -5
- package/src/components/ThemeProvider/index.d.ts +0 -2
- package/src/components/Toast/Toast.types.d.ts +0 -41
- package/src/components/Toast/ToastContainer.d.ts +0 -2
- package/src/components/Toast/ToastContext.d.ts +0 -3
- package/src/components/Toast/ToastItem.d.ts +0 -6
- package/src/components/Toast/ToastProvider.d.ts +0 -6
- package/src/components/Toast/icons/Error.d.ts +0 -3
- package/src/components/Toast/icons/Success.d.ts +0 -3
- package/src/components/Toast/icons/Warning.d.ts +0 -3
- package/src/components/Toast/index.d.ts +0 -3
- package/src/components/Toast/styles.d.ts +0 -1134
- package/src/components/Toast/use-toasts.d.ts +0 -6
- package/src/components/Toggle/Toggle.d.ts +0 -7
- package/src/components/Toggle/Toggle.types.d.ts +0 -26
- package/src/components/Toggle/constants.d.ts +0 -9
- package/src/components/Toggle/index.d.ts +0 -2
- package/src/components/Toggle/styles.d.ts +0 -9
- package/src/components/Tooltip/Tooltip.d.ts +0 -9
- package/src/components/Tooltip/Tooltip.types.d.ts +0 -42
- package/src/components/Tooltip/index.d.ts +0 -2
- package/src/components/Tooltip/styles.d.ts +0 -1077
- package/src/components/Transition/Fade.d.ts +0 -4
- package/src/components/Transition/Slide.d.ts +0 -4
- package/src/components/Transition/SlideFade.d.ts +0 -4
- package/src/components/Transition/Transition.d.ts +0 -4
- package/src/components/Transition/Transition.types.d.ts +0 -33
- package/src/components/Transition/index.d.ts +0 -5
- package/src/components/Typography/Typography.d.ts +0 -7
- package/src/components/Typography/Typography.types.d.ts +0 -11
- package/src/components/Typography/index.d.ts +0 -2
- package/src/components/Typography/styles.d.ts +0 -8
- package/src/components/index.d.ts +0 -25
- package/src/index.d.ts +0 -1
- package/src/styles/index.d.ts +0 -3039
- package/src/themes/index.d.ts +0 -3
- package/src/themes/palette.d.ts +0 -3
- package/src/themes/types.d.ts +0 -118
- package/src/types/index.d.ts +0 -93
- package/src/utils/index.d.ts +0 -2
- package/src/utils/use-current-state.d.ts +0 -8
- package/src/utils/use-portal.d.ts +0 -2
- package/src/utils/use-ssr.d.ts +0 -6
package/Dropdown/index.js
DELETED
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import t,{useRef as n,useDebugValue as r,createElement as o,useContext as i,createContext as a,useMemo as s,useCallback as l,forwardRef as c,Children as u,isValidElement as d,cloneElement as p,Fragment as f,useEffect as h,useState as m,useLayoutEffect as g,Component as v,useReducer as y}from"react";import*as b from"react-dom";import w,{flushSync as x,createPortal as E}from"react-dom";var I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)};function _(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function S(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function C(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var O=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,D=C((function(e){return O.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k="-ms-",P="-moz-",T="-webkit-",A="comm",M="rule",R="decl",$="@import",V="@keyframes",L="@layer",F=Math.abs,H=String.fromCharCode,B=Object.assign;function j(e){return e.trim()}function z(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,n){return e.replace(t,n)}function W(e,t){return e.indexOf(t)}function q(e,t){return 0|e.charCodeAt(t)}function U(e,t,n){return e.slice(t,n)}function Y(e){return e.length}function X(e){return e.length}function G(e,t){return t.push(e),e}function J(e,t){return e.filter((function(e){return!z(e,t)}))}var Z=1,Q=1,ee=0,te=0,ne=0,re="";function oe(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Z,column:Q,length:a,return:"",siblings:s}}function ie(e,t){return B(oe("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ae(e){for(;e.root;)e=ie(e.root,{children:[e]});G(e,e.siblings)}function se(){return ne=te>0?q(re,--te):0,Q--,10===ne&&(Q=1,Z--),ne}function le(){return ne=te<ee?q(re,te++):0,Q++,10===ne&&(Q=1,Z++),ne}function ce(){return q(re,te)}function ue(){return te}function de(e,t){return U(re,e,t)}function pe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fe(e){return j(de(te-1,ge(91===e?e+2:40===e?e+1:e)))}function he(e){for(;(ne=ce())&&ne<33;)le();return pe(e)>2||pe(ne)>3?"":" "}function me(e,t){for(;--t&&le()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return de(e,ue()+(t<6&&32==ce()&&32==le()))}function ge(e){for(;le();)switch(ne){case e:return te;case 34:case 39:34!==e&&39!==e&&ge(ne);break;case 40:41===e&&ge(e);break;case 92:le()}return te}function ve(e,t){for(;le()&&e+ne!==57&&(e+ne!==84||47!==ce()););return"/*"+de(t,te-1)+"*"+H(47===e?e:le())}function ye(e){for(;!pe(ce());)le();return de(e,te)}function be(e){return function(e){return re="",e}(we("",null,null,null,[""],e=function(e){return Z=Q=1,ee=Y(re=e),te=0,[]}(e),0,[0],e))}function we(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,E=r,I=b;g;)switch(h=y,y=le()){case 40:if(108!=h&&58==q(I,d-1)){-1!=W(I+=K(fe(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:I+=fe(y);break;case 9:case 10:case 13:case 32:I+=he(h);break;case 92:I+=me(ue()-1,7);continue;case 47:switch(ce()){case 42:case 47:G(Ee(ve(le(),ue()),t,n,l),l);break;default:I+="/"}break;case 123*m:s[c++]=Y(I)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(I=K(I,/\f/g,"")),f>0&&Y(I)-d&&G(f>32?Ie(I+";",r,n,d-1,l):Ie(K(I," ","")+";",r,n,d-2,l),l);break;case 59:I+=";";default:if(G(E=xe(I,t,n,c,u,o,s,b,w=[],x=[],d,i),i),123===y)if(0===u)we(I,t,E,E,w,i,d,s,x);else switch(99===p&&110===q(I,3)?100:p){case 100:case 108:case 109:case 115:we(e,E,E,r&&G(xe(e,E,E,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:we(I,E,E,E,[""],x,0,s,x)}}c=u=f=0,m=v=1,b=I="",d=a;break;case 58:d=1+Y(I),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==se())continue;switch(I+=H(y),y*m){case 38:v=u>0?1:(I+="\f",-1);break;case 44:s[c++]=(Y(I)-1)*v,v=1;break;case 64:45===ce()&&(I+=fe(le())),p=ce(),u=d=Y(b=I+=ye(ue())),y++;break;case 45:45===h&&2==Y(I)&&(m=0)}}return i}function xe(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=X(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=U(e,p+1,p=F(g=a[m])),w=e;y<h;++y)(w=j(g>0?f[y]+" "+b:K(b,/&\f/g,f[y])))&&(l[v++]=w);return oe(e,t,n,0===o?M:s,l,c,u,d)}function Ee(e,t,n,r){return oe(e,t,n,A,H(ne),U(e,2,-2),0,r)}function Ie(e,t,n,r,o){return oe(e,t,n,R,U(e,0,r),U(e,r+1,-1),r,o)}function _e(e,t,n){switch(function(e,t){return 45^q(e,0)?(((t<<2^q(e,0))<<2^q(e,1))<<2^q(e,2))<<2^q(e,3):0}(e,t)){case 5103:return T+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+e+e;case 4789:return P+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+P+e+k+e+e;case 5936:switch(q(e,t+11)){case 114:return T+e+k+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+k+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+k+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return T+e+k+e+e;case 6165:return T+e+k+"flex-"+e+e;case 5187:return T+e+K(e,/(\w+).+(:[^]+)/,T+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return T+e+k+"flex-item-"+K(e,/flex-|-self/g,"")+(z(e,/flex-|baseline/)?"":k+"grid-row-"+K(e,/flex-|-self/g,""))+e;case 4675:return T+e+k+"flex-line-pack"+K(e,/align-content|flex-|-self/g,"")+e;case 5548:return T+e+k+K(e,"shrink","negative")+e;case 5292:return T+e+k+K(e,"basis","preferred-size")+e;case 6060:return T+"box-"+K(e,"-grow","")+T+e+k+K(e,"grow","positive")+e;case 4554:return T+K(e,/([^-])(transform)/g,"$1"+T+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+e+e;case 4200:if(!z(e,/flex-|baseline/))return k+"grid-column-align"+U(e,t)+e;break;case 2592:case 3360:return k+K(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,z(e.props,/grid-\w+-end/)}))?~W(e+(n=n[t].value),"span")?e:k+K(e,"-start","")+e+k+"grid-row-span:"+(~W(n,"span")?z(n,/\d+/):+z(n,/\d+/)-+z(e,/\d+/))+";":k+K(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return z(e.props,/grid-\w+-start/)}))?e:k+K(K(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,T+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Y(e)-1-t>6)switch(q(e,t+1)){case 109:if(45!==q(e,t+4))break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+P+(108==q(e,t+3)?"$3":"$2-$3"))+e;case 115:return~W(e,"stretch")?_e(K(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return K(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return k+n+":"+r+s+(o?k+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===q(e,t+6))return K(e,":",":"+T)+e;break;case 6444:switch(q(e,45===q(e,14)?18:11)){case 120:return K(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+T+(45===q(e,14)?"inline-":"")+"box$3$1"+T+"$2$3$1"+k+"$2box$3")+e;case 100:return K(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return K(e,"scroll-","scroll-snap-")+e}return e}function Se(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ce(e,t,n,r){switch(e.type){case L:if(e.children.length)break;case $:case R:return e.return=e.return||e.value;case A:return"";case V:return e.return=e.value+"{"+Se(e.children,r)+"}";case M:if(!Y(e.value=e.props.join(",")))return""}return Y(n=Se(e.children,r))?e.return=e.value+"{"+n+"}":""}function Oe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case R:return void(e.return=_e(e.value,e.length,n));case V:return Se([ie(e,{value:K(e.value,"@","@"+T)})],r);case M:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(z(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ae(ie(e,{props:[K(t,/:(read-\w+)/,":"+P+"$1")]})),ae(ie(e,{props:[t]})),B(e,{props:J(n,r)});break;case"::placeholder":ae(ie(e,{props:[K(t,/:(plac\w+)/,":"+T+"input-$1")]})),ae(ie(e,{props:[K(t,/:(plac\w+)/,":"+P+"$1")]})),ae(ie(e,{props:[K(t,/:(plac\w+)/,k+"input-$1")]})),ae(ie(e,{props:[t]})),B(e,{props:J(n,r)})}return""}))}}var De={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ne="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ke="undefined"!=typeof window&&"HTMLElement"in window,Pe=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Te=/invalid hook call/i,Ae=new Set,Me=function(e,t){if("production"!==process.env.NODE_ENV){var r=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(e).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Te.test(e)?(a=!1,Ae.delete(o)):i.apply(void 0,S([e],t,!1))},n(),a&&!Ae.has(o)&&(console.warn(o),Ae.add(o))}catch(e){Te.test(e.message)&&Ae.delete(o)}finally{console.error=i}}},Re=Object.freeze([]),$e=Object.freeze({});var Ve=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Le=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fe=/(^-|-$)/g;function He(e){return e.replace(Le,"-").replace(Fe,"")}var Be=/(a)(d)/gi,je=function(e){return String.fromCharCode(e+(e>25?39:97))};function ze(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=je(t%52)+n;return(je(t%52)+n).replace(Be,"$1-$2")}var Ke,We=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},qe=function(e){return We(5381,e)};function Ue(e){return ze(qe(e)>>>0)}function Ye(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Xe(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ge="function"==typeof Symbol&&Symbol.for,Je=Ge?Symbol.for("react.memo"):60115,Ze=Ge?Symbol.for("react.forward_ref"):60112,Qe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},et={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nt=((Ke={})[Ze]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ke[Je]=tt,Ke);function rt(e){return("type"in(t=e)&&t.type.$$typeof)===Je?tt:"$$typeof"in e?nt[e.$$typeof]:Qe;var t}var ot=Object.defineProperty,it=Object.getOwnPropertyNames,at=Object.getOwnPropertySymbols,st=Object.getOwnPropertyDescriptor,lt=Object.getPrototypeOf,ct=Object.prototype;function ut(e,t,n){if("string"!=typeof t){if(ct){var r=lt(t);r&&r!==ct&&ut(e,r,n)}var o=it(t);at&&(o=o.concat(at(t)));for(var i=rt(e),a=rt(t),s=0;s<o.length;++s){var l=o[s];if(!(l in et||n&&n[l]||a&&l in a||i&&l in i)){var c=st(t,l);try{ot(e,l,c)}catch(e){}}}}return e}function dt(e){return"function"==typeof e}function pt(e){return"object"==typeof e&&"styledComponentId"in e}function ft(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ht(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function mt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function gt(e,t,n){if(void 0===n&&(n=!1),!n&&!mt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=gt(e[r],t[r]);else if(mt(t))for(var r in t)e[r]=gt(e[r],t[r]);return e}function vt(e,t){Object.defineProperty(e,"toString",{value:t})}var yt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}function wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(bt.apply(void 0,S([yt[e]],t,!1)).trim())}var xt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw wt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat("/*!sc*/\n");return t},e}(),Et=new Map,It=new Map,_t=1,St=function(e){if(Et.has(e))return Et.get(e);for(;It.has(_t);)_t++;var t=_t++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw wt(16,"".concat(t));return Et.set(e,t),It.set(t,e),t},Ct=function(e,t){_t=t+1,Et.set(e,t),It.set(t,e)},Ot="style[".concat(Ne,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),Dt=new RegExp("^".concat(Ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Nt=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},kt=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(Dt);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(Ct(u,c),Nt(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}};var Pt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ne,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ne,"active"),r.setAttribute("data-styled-version","6.1.1");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Tt=function(){function e(e){this.element=Pt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw wt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),At=function(){function e(e){this.element=Pt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Mt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Rt=ke,$t={isServer:!ke,useCSSOMInjection:!Pe},Vt=function(){function e(e,t,n){void 0===e&&(e=$e),void 0===t&&(t={});var r=this;this.options=I(I({},$t),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ke&&Rt&&(Rt=!1,function(e){for(var t=document.querySelectorAll(Ot),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(Ne)&&(kt(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),vt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return It.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(Ne,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat("/*!sc*/\n")},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return St(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(I(I({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Mt(n):t?new Tt(n):new At(n)}(this.options),new xt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(St(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(St(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(St(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Lt=/&/g,Ft=/^\s*\/\/.*$/gm;function Ht(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ht(e.children,t)),e}))}var Bt=new Vt,jt=function(e){var t,n,r,o=void 0===e?$e:e,i=o.options,a=void 0===i?$e:i,s=o.plugins,l=void 0===s?Re:s,c=function(e,r,o){return o===n||o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===M&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Lt,n).replace(r,c))})),a.prefix&&u.push(Oe),u.push(Ce);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Ft,""),c=be(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=Ht(c,a.namespace));var d,p=[];return Se(c,function(e){var t=X(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||wt(15),We(e,t.name)}),5381).toString():"",d}(),zt=t.createContext({shouldForwardProp:void 0,styleSheet:Bt,stylis:jt});function Kt(){return i(zt)}zt.Consumer,t.createContext(void 0);var Wt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=jt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,vt(this,(function(){throw wt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=jt),this.name+e.hash},e}(),qt=function(e){return e>="A"&&e<="Z"};function Ut(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;qt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Yt=function(e){return null==e||!1===e||""===e},Xt=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Yt(i)&&(Array.isArray(i)&&i.isCss||dt(i)?r.push("".concat(Ut(o),":"),i,";"):mt(i)?r.push.apply(r,S(S(["".concat(o," {")],Xt(i),!1),["}"],!1)):r.push("".concat(Ut(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in De||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Gt(e,t,n,r){if(Yt(e))return[];if(pt(e))return[".".concat(e.styledComponentId)];if(dt(e)){if(!dt(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Wt||mt(o)||null===o||console.error("".concat(Ye(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Gt(o,t,n,r)}var i;return e instanceof Wt?n?(e.inject(n,r),[e.getName(r)]):[e]:mt(e)?Xt(e):Array.isArray(e)?Array.prototype.concat.apply(Re,e.map((function(e){return Gt(e,t,n,r)}))):[e.toString()]}var Jt=qe("6.1.1"),Zt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(dt(n)&&!pt(n))return!1}return!0}(e),this.componentId=t,this.baseHash=We(Jt,t),this.baseStyle=n,Vt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ft(r,this.staticRulesId);else{var o=ht(Gt(this.rules,e,t,n)),i=ze(We(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=ft(r,i),this.staticRulesId=i}else{for(var s=We(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==process.env.NODE_ENV&&(s=We(s,u));else if(u){var d=ht(Gt(u,e,t,n));s=We(s,d+c),l+=d}}if(l){var p=ze(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=ft(r,p)}}return r},e}(),Qt=t.createContext(void 0);Qt.Consumer;var en={},tn=new Set;function nn(e,n,i){var a=pt(e),s=e,l=!Xe(e),c=n.attrs,u=void 0===c?Re:c,d=n.componentId,p=void 0===d?function(e,t){var n="string"!=typeof e?"sc":He(e);en[n]=(en[n]||0)+1;var r="".concat(n,"-").concat(Ue("6.1.1"+n+en[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):d,f=n.displayName,h=void 0===f?function(e){return Xe(e)?"styled.".concat(e):"Styled(".concat(Ye(e),")")}(e):f,m=n.displayName&&n.componentId?"".concat(He(n.displayName),"-").concat(n.componentId):n.componentId||p,g=a&&s.attrs?s.attrs.concat(u).filter(Boolean):u,v=n.shouldForwardProp;if(a&&s.shouldForwardProp){var y=s.shouldForwardProp;if(n.shouldForwardProp){var b=n.shouldForwardProp;v=function(e,t){return y(e,t)&&b(e,t)}}else v=y}var w=new Zt(i,m,a?s.componentStyle:void 0);function x(e,n){return function(e,n,i){var a=e.attrs,s=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,p=t.useContext(Qt),f=Kt(),h=e.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&r(u);var m=function(e,t,n){for(var r,o=I(I({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=dt(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?ft(o[s],a[s]):"style"===s?I(I({},o[s]),a[s]):a[s]}return t.className&&(o.className=ft(o.className,t.className)),o}(a,n,function(e,t,n){return void 0===n&&(n=$e),e.theme!==n.theme&&e.theme||t||n.theme}(n,p,l)||$e),g=m.as||d,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y||("forwardedAs"===y?v.as=m.forwardedAs:h&&!h(y,g)||(v[y]=m[y],h||"development"!==process.env.NODE_ENV||D(y)||tn.has(y)||!Ve.has(g)||(tn.add(y),console.warn('styled-components: it looks like an unknown prop "'.concat(y,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var b=function(e,t){var n=Kt(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&r(o),o}(s,m);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(b);var w=ft(c,u);return b&&(w+=" "+b),m.className&&(w+=" "+m.className),v[Xe(g)&&!Ve.has(g)?"class":"className"]=w,v.ref=i,o(g,v)}(E,e,n)}x.displayName=h;var E=t.forwardRef(x);return E.attrs=g,E.componentStyle=w,E.displayName=h,E.shouldForwardProp=v,E.foldedComponentIds=a?ft(s.foldedComponentIds,s.styledComponentId):"",E.styledComponentId=m,E.target=a?s.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)gt(e,o[r],!0);return e}({},s.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Me(h,m),E.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var i=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(i,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(h,m)),vt(E,(function(){return".".concat(E.styledComponentId)})),l&&ut(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function rn(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var on=function(e){return Object.assign(e,{isCss:!0})};function an(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(dt(e)||mt(e))return on(Gt(rn(Re,S([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Gt(r):on(Gt(rn(r,t)))}function sn(e,t,n){if(void 0===n&&(n=$e),!t)throw wt(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,an.apply(void 0,S([r],o,!1)))};return r.attrs=function(r){return sn(e,t,I(I({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return sn(e,t,I(I({},n),r))},r}var ln=function(e){return sn(nn,e)},cn=ln;function un(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=ht(an.apply(void 0,S([e],t,!1))),o=Ue(r);return new Wt(o,r)}Ve.forEach((function(e){cn[e]=ln(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var dn="__sc-".concat(Ne,"__");function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function fn(e,[t,n]){return Math.min(n,Math.max(t,e))}function hn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function mn(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>a(e)));return function(n){const r=(null==n?void 0:n[e])||t;return s((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const l=a(r),c=n.length;function u(t){const{scope:n,children:r,...i}=t,a=(null==n?void 0:n[e][c])||l,u=s((()=>i),Object.values(i));return o(a.Provider,{value:u},r)}return n=[...n,r],u.displayName=t+"Provider",[u,function(n,o){const a=(null==o?void 0:o[e][c])||l,s=i(a);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},gn(r,...t)]}function gn(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return s((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function vn(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function yn(...e){return l(vn(...e),e)}"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[dn]||(window[dn]=0),1===window[dn]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[dn]+=1);const bn=c(((e,t)=>{const{children:n,...r}=e,i=u.toArray(n),a=i.find(En);if(a){const e=a.props.children,n=i.map((t=>t===a?u.count(e)>1?u.only(null):d(e)?e.props.children:null:t));return o(wn,pn({},r,{ref:t}),d(e)?p(e,void 0,n):null)}return o(wn,pn({},r,{ref:t}),n)}));bn.displayName="Slot";const wn=c(((e,t)=>{const{children:n,...r}=e;return d(n)?p(n,{...In(r,n.props),ref:t?vn(t,n.ref):n.ref}):u.count(n)>1?u.only(null):null}));wn.displayName="SlotClone";const xn=({children:e})=>o(f,null,e);function En(e){return d(e)&&e.type===xn}function In(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const _n=a(void 0);const Sn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=c(((e,n)=>{const{asChild:r,...i}=e,a=r?bn:t;return h((()=>{window[Symbol.for("radix-ui")]=!0}),[]),o(a,pn({},i,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Cn(e){const t=n(e);return h((()=>{t.current=e})),s((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}const On="dismissableLayer.update",Dn="dismissableLayer.pointerDownOutside",Nn="dismissableLayer.focusOutside";let kn;const Pn=a({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tn=c(((e,t)=>{var r;const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...p}=e,f=i(Pn),[g,v]=m(null),y=null!==(r=null==g?void 0:g.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=m({}),w=yn(t,(e=>v(e))),x=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),I=x.indexOf(E),_=g?x.indexOf(g):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,C=_>=I,O=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Cn(e),o=n(!1),i=n((()=>{}));return h((()=>{const e=e=>{if(e.target&&!o.current){const n={originalEvent:e};function a(){Mn(Dn,r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}else t.removeEventListener("click",i.current);o.current=!1},n=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));C&&!n&&(null==l||l(e),null==u||u(e),e.defaultPrevented||null==d||d())}),y),D=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Cn(e),o=n(!1);return h((()=>{const e=e=>{if(e.target&&!o.current){Mn(Nn,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==c||c(e),null==u||u(e),e.defaultPrevented||null==d||d())}),y);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Cn(e);h((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{_===f.layers.size-1&&(null==s||s(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))}),y),h((()=>{if(g)return a&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(kn=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),An(),()=>{a&&1===f.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=kn)}}),[g,y,a,f]),h((()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),An())}),[g,f]),h((()=>{const e=()=>b({});return document.addEventListener(On,e),()=>document.removeEventListener(On,e)}),[]),o(Sn.div,pn({},p,{ref:w,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:hn(e.onFocusCapture,D.onFocusCapture),onBlurCapture:hn(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:hn(e.onPointerDownCapture,O.onPointerDownCapture)}))}));function An(){const e=new CustomEvent(On);document.dispatchEvent(e)}function Mn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&x((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}let Rn=0;function $n(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Vn="focusScope.autoFocusOnMount",Ln="focusScope.autoFocusOnUnmount",Fn={bubbles:!1,cancelable:!0},Hn=c(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...c}=e,[u,d]=m(null),p=Cn(a),f=Cn(s),g=n(null),v=yn(t,(e=>d(e))),y=n({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h((()=>{if(i){function e(e){if(y.paused||!u)return;const t=e.target;u.contains(t)?g.current=t:Kn(g.current,{select:!0})}function t(e){if(y.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||Kn(g.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Kn(u)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[i,u,y.paused]),h((()=>{if(u){Wn.add(y);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(Vn,Fn);u.addEventListener(Vn,p),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Kn(r,{select:t}),document.activeElement!==n)return}((e=Bn(u),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Kn(u))}return()=>{u.removeEventListener(Vn,p),setTimeout((()=>{const e=new CustomEvent(Ln,Fn);u.addEventListener(Ln,f),u.dispatchEvent(e),e.defaultPrevented||Kn(null!=t?t:document.body,{select:!0}),u.removeEventListener(Ln,f),Wn.remove(y)}),0)}}var e}),[u,p,f,y]);const b=l((e=>{if(!r&&!i)return;if(y.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=Bn(e),n=jn(t,e),r=jn(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Kn(i,{select:!0})):(e.preventDefault(),r&&Kn(o,{select:!0})):n===t&&e.preventDefault()}}),[r,i,y.paused]);return o(Sn.div,pn({tabIndex:-1},c,{ref:v,onKeyDown:b}))}));function Bn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jn(e,t){for(const n of e)if(!zn(n,{upTo:t}))return n}function zn(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Kn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Wn=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=qn(e,t),e.unshift(t)},remove(t){var n;e=qn(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function qn(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Un=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?g:()=>{},Yn=e["useId".toString()]||(()=>{});let Xn=0;function Gn(t){const[n,r]=e.useState(Yn());return Un((()=>{t||r((e=>null!=e?e:String(Xn++)))}),[t]),t||(n?`radix-${n}`:"")}const Jn=["top","right","bottom","left"],Zn=Math.min,Qn=Math.max,er=Math.round,tr=Math.floor,nr=e=>({x:e,y:e}),rr={left:"right",right:"left",bottom:"top",top:"bottom"},or={start:"end",end:"start"};function ir(e,t,n){return Qn(e,Zn(t,n))}function ar(e,t){return"function"==typeof e?e(t):e}function sr(e){return e.split("-")[0]}function lr(e){return e.split("-")[1]}function cr(e){return"x"===e?"y":"x"}function ur(e){return"y"===e?"height":"width"}function dr(e){return["top","bottom"].includes(sr(e))?"y":"x"}function pr(e){return cr(dr(e))}function fr(e){return e.replace(/start|end/g,(e=>or[e]))}function hr(e){return e.replace(/left|right|bottom|top/g,(e=>rr[e]))}function mr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function gr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function vr(e,t,n){let{reference:r,floating:o}=e;const i=dr(t),a=pr(t),s=ur(a),l=sr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(lr(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function yr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=ar(t,e),h=mr(f),m=s[p?"floating"===d?"reference":"floating":d],g=gr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=gr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}const br=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=ar(e,t)||{};if(null==c)return{};const d=mr(u),p={x:n,y:r},f=pr(o),h=ur(f),m=await a.getDimensions(c),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],x=p[f]-i.reference[f],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let I=E?E[b]:0;I&&await(null==a.isElement?void 0:a.isElement(E))||(I=s.floating[b]||i.floating[h]);const _=w/2-x/2,S=I/2-m[h]/2-1,C=Zn(d[v],S),O=Zn(d[y],S),D=C,N=I-m[h]-O,k=I/2-m[h]/2+_,P=ir(D,k,N),T=!l.arrow&&null!=lr(o)&&k!=P&&i.reference[h]/2-(k<D?C:O)-m[h]/2<0,A=T?k<D?k-D:k-N:0;return{[f]:p[f]+A,data:{[f]:P,centerOffset:k-P-A,...T&&{alignmentOffset:A}},reset:T}}}),wr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=ar(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=sr(o),y=sr(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!m?[hr(s)]:function(e){const t=hr(e);return[fr(e),t,fr(t)]}(s));p||"none"===h||w.push(...function(e,t,n,r){const o=lr(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(sr(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(fr)))),i}(s,m,h,b));const x=[s,...w],E=await yr(t,g),I=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&I.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=lr(e),o=pr(e),i=ur(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=hr(a)),[a,hr(a)]}(o,a,b);I.push(E[e[0]],E[e[1]])}if(_=[..._,{placement:o,overflows:I}],!I.every((e=>e<=0))){var S,C;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(C=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var O;const e=null==(O=_.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function xr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Er(e){return Jn.some((t=>e[t]>=0))}const Ir=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ar(e,t);switch(r){case"referenceHidden":{const e=xr(await yr(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Er(e)}}}case"escaped":{const e=xr(await yr(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Er(e)}}}default:return{}}}}};const _r=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=sr(n),s=lr(n),l="y"===dr(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=ar(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Sr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ar(e,t),c={x:n,y:r},u=await yr(t,l),d=dr(sr(o)),p=cr(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=ir(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=ir(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Cr=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=ar(e,t),u={x:n,y:r},d=dr(o),p=cr(d);let f=u[p],h=u[d];const m=ar(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var v,y;const e="y"===p?"width":"height",t=["top","left"].includes(sr(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},Or=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=ar(e,t),l=await yr(t,s),c=sr(n),u=lr(n),d="y"===dr(n),{width:p,height:f}=r.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=f-l[h],v=p-l[m],y=!t.middlewareData.shift;let b=g,w=v;if(d){const e=p-l.left-l.right;w=u||y?Zn(v,e):e}else{const e=f-l.top-l.bottom;b=u||y?Zn(g,e):e}if(y&&!u){const e=Qn(l.left,0),t=Qn(l.right,0),n=Qn(l.top,0),r=Qn(l.bottom,0);d?w=p-2*(0!==e||0!==t?e+t:Qn(l.left,l.right)):b=f-2*(0!==n||0!==r?n+r:Qn(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return p!==x.width||f!==x.height?{reset:{rects:!0}}:{}}}};function Dr(e){return Pr(e)?(e.nodeName||"").toLowerCase():"#document"}function Nr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function kr(e){var t;return null==(t=(Pr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pr(e){return e instanceof Node||e instanceof Nr(e).Node}function Tr(e){return e instanceof Element||e instanceof Nr(e).Element}function Ar(e){return e instanceof HTMLElement||e instanceof Nr(e).HTMLElement}function Mr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Nr(e).ShadowRoot)}function Rr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $r(e){return["table","td","th"].includes(Dr(e))}function Vr(e){const t=Lr(),n=Hr(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Lr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fr(e){return["html","body","#document"].includes(Dr(e))}function Hr(e){return Nr(e).getComputedStyle(e)}function Br(e){return Tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jr(e){if("html"===Dr(e))return e;const t=e.assignedSlot||e.parentNode||Mr(e)&&e.host||kr(e);return Mr(t)?t.host:t}function zr(e){const t=jr(e);return Fr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ar(t)&&Rr(t)?t:zr(t)}function Kr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=zr(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Nr(o);return i?t.concat(a,a.visualViewport||[],Rr(o)?o:[],a.frameElement&&n?Kr(a.frameElement):[]):t.concat(o,Kr(o,[],n))}function Wr(e){const t=Hr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ar(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=er(n)!==i||er(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function qr(e){return Tr(e)?e:e.contextElement}function Ur(e){const t=qr(e);if(!Ar(t))return nr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wr(t);let a=(i?er(n.width):n.width)/r,s=(i?er(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Yr=nr(0);function Xr(e){const t=Nr(e);return Lr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Yr}function Gr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qr(e);let a=nr(1);t&&(r?Tr(r)&&(a=Ur(r)):a=Ur(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Nr(e))&&t}(i,n,r)?Xr(i):nr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Nr(i),t=r&&Tr(r)?Nr(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Ur(n),t=n.getBoundingClientRect(),r=Hr(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=Nr(n).frameElement}}return gr({width:u,height:d,x:l,y:c})}function Jr(e){return Gr(kr(e)).left+Br(e).scrollLeft}function Zr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Nr(e),r=kr(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Lr();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=kr(e),n=Br(e),r=e.ownerDocument.body,o=Qn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Jr(e);const s=-n.scrollTop;return"rtl"===Hr(r).direction&&(a+=Qn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(kr(e));else if(Tr(t))r=function(e,t){const n=Gr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ar(e)?Ur(e):nr(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Xr(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return gr(r)}function Qr(e,t){const n=jr(e);return!(n===t||!Tr(n)||Fr(n))&&("fixed"===Hr(n).position||Qr(n,t))}function eo(e,t,n){const r=Ar(t),o=kr(t),i="fixed"===n,a=Gr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=nr(0);if(r||!r&&!i)if(("body"!==Dr(t)||Rr(o))&&(s=Br(t)),r){const e=Gr(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Jr(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function to(e,t){return Ar(e)&&"fixed"!==Hr(e).position?t?t(e):e.offsetParent:null}function no(e,t){const n=Nr(e);if(!Ar(e))return n;let r=to(e,t);for(;r&&$r(r)&&"static"===Hr(r).position;)r=to(r,t);return r&&("html"===Dr(r)||"body"===Dr(r)&&"static"===Hr(r).position&&!Vr(r))?n:r||function(e){let t=jr(e);for(;Ar(t)&&!Fr(t);){if(Vr(t))return t;t=jr(t)}return null}(e)||n}const ro={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Ar(n),i=kr(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=nr(1);const l=nr(0);if((o||!o&&"fixed"!==r)&&(("body"!==Dr(n)||Rr(i))&&(a=Br(n)),Ar(n))){const e=Gr(n);s=Ur(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:kr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Kr(e,[],!1).filter((e=>Tr(e)&&"body"!==Dr(e))),o=null;const i="fixed"===Hr(e).position;let a=i?jr(e):e;for(;Tr(a)&&!Fr(a);){const t=Hr(a),n=Vr(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Rr(a)&&!n&&Qr(e,a))?r=r.filter((e=>e!==a)):o=t,a=jr(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Zr(t,n,o);return e.top=Qn(r.top,e.top),e.right=Zn(r.right,e.right),e.bottom=Zn(r.bottom,e.bottom),e.left=Qn(r.left,e.left),e}),Zr(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:no,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||no,i=this.getDimensions;return{reference:eo(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Wr(e)},getScale:Ur,isElement:Tr,isRTL:function(e){return"rtl"===Hr(e).direction}};function oo(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=qr(e),u=o||i?[...c?Kr(c):[],...Kr(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=kr(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-tr(u)+"px "+-tr(o.clientWidth-(c+d))+"px "+-tr(o.clientHeight-(u+p))+"px "+-tr(c)+"px",threshold:Qn(0,Zn(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?Gr(e):null;return l&&function t(){const r=Gr(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const io=(e,t,n)=>{const r=new Map,o={platform:ro,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=vr(c,r,l),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,f={...f,[i]:{...f[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=vr(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})},ao=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?br({element:n.current,padding:r}).fn(t):{}:n?br({element:n,padding:r}).fn(t):{};var o}});var so="undefined"!=typeof document?g:h;function lo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!lo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!lo(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function co(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uo(e,t){const n=co(e);return Math.round(t*n)/n}function po(t){const n=e.useRef(t);return so((()=>{n.current=t})),n}const fo="Popper",[ho,mo]=mn(fo),[go,vo]=ho(fo),yo=c(((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=vo("PopperAnchor",r),l=n(null),c=yn(t,l);return h((()=>{s.onAnchorChange((null==i?void 0:i.current)||l.current)})),i?null:o(Sn.div,pn({},a,{ref:c}))})),bo="PopperContent",[wo,xo]=ho(bo),Eo=c(((t,n)=>{var r,i,a,s,l,c,u,d;const{__scopePopper:p,side:f="bottom",sideOffset:h=0,align:g="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:E=0,sticky:I="partial",hideWhenDetached:_=!1,updatePositionStrategy:S="optimized",onPlaced:C,...O}=t,D=vo(bo,p),[N,k]=m(null),P=yn(n,(e=>k(e))),[T,A]=m(null),M=function(e){const[t,n]=m(void 0);return Un((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(T),R=null!==(r=null==M?void 0:M.width)&&void 0!==r?r:0,$=null!==(i=null==M?void 0:M.height)&&void 0!==i?i:0,V=f+("center"!==g?"-"+g:""),L="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},F=Array.isArray(x)?x:[x],H=F.length>0,B={padding:L,boundary:F.filter(Io),altBoundary:H},{refs:j,floatingStyles:z,placement:K,isPositioned:W,middlewareData:q}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[f,h]=e.useState(o);lo(f,o)||h(o);const[m,g]=e.useState(null),[v,y]=e.useState(null),w=e.useCallback((e=>{e!=_.current&&(_.current=e,g(e))}),[g]),x=e.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[y]),E=a||m,I=s||v,_=e.useRef(null),S=e.useRef(null),C=e.useRef(d),O=po(c),D=po(i),N=e.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:n,strategy:r,middleware:f};D.current&&(e.platform=D.current),io(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};k.current&&!lo(C.current,t)&&(C.current=t,b.flushSync((()=>{p(t)})))}))}),[f,n,r,D]);so((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const k=e.useRef(!1);so((()=>(k.current=!0,()=>{k.current=!1})),[]),so((()=>{if(E&&(_.current=E),I&&(S.current=I),E&&I){if(O.current)return O.current(E,I,N);N()}}),[E,I,N,O]);const P=e.useMemo((()=>({reference:_,floating:S,setReference:w,setFloating:x})),[w,x]),T=e.useMemo((()=>({reference:E,floating:I})),[E,I]),A=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=uo(T.floating,d.x),n=uo(T.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...co(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,T.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:N,refs:P,elements:T,floatingStyles:A})),[d,N,P,T,A])}({strategy:"fixed",placement:V,whileElementsMounted:(...e)=>oo(...e,{animationFrame:"always"===S}),elements:{reference:D.anchor},middleware:[_r({mainAxis:h+$,alignmentAxis:v}),w&&Sr({mainAxis:!0,crossAxis:!1,limiter:"partial"===I?Cr():void 0,...B}),w&&wr({...B}),Or({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),T&&ao({element:T,padding:y}),_o({arrowWidth:R,arrowHeight:$}),_&&Ir({strategy:"referenceHidden",...B})]}),[U,Y]=So(K),X=Cn(C);Un((()=>{W&&(null==X||X())}),[W,X]);const G=null===(a=q.arrow)||void 0===a?void 0:a.x,J=null===(s=q.arrow)||void 0===s?void 0:s.y,Z=0!==(null===(l=q.arrow)||void 0===l?void 0:l.centerOffset),[Q,ee]=m();return Un((()=>{N&&ee(window.getComputedStyle(N).zIndex)}),[N]),o("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:W?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(c=q.transformOrigin)||void 0===c?void 0:c.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:t.dir},o(wo,{scope:p,placedSide:U,onArrowChange:A,arrowX:G,arrowY:J,shouldHideArrow:Z},o(Sn.div,pn({"data-side":U,"data-align":Y},O,{ref:P,style:{...O.style,animation:W?void 0:"none",opacity:null!==(d=q.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}));function Io(e){return null!==e}const _o=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[f,h]=So(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+p/2;let y="",b="";return"bottom"===f?(y=u?m:`${g}px`,b=-p+"px"):"top"===f?(y=u?m:`${g}px`,b=`${l.floating.height+p}px`):"right"===f?(y=-p+"px",b=u?m:`${v}px`):"left"===f&&(y=`${l.floating.width+p}px`,b=u?m:`${v}px`),{data:{x:y,y:b}}}});function So(e){const[t,n="center"]=e.split("-");return[t,n]}const Co=e=>{const{__scopePopper:t,children:n}=e,[r,i]=m(null);return o(go,{scope:t,anchor:r,onAnchorChange:i},n)},Oo=yo,Do=Eo,No=c(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...i}=e;return r?w.createPortal(o(Sn.div,pn({},i,{ref:t})),r):null}));function ko({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:t}){const r=m(e),[o]=r,i=n(o),a=Cn(t);return h((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,s=a?e:o,c=Cn(r);return[s,l((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&c(n)}else i(t)}),[a,e,i,c])]}const Po=c(((e,t)=>o(Sn.span,pn({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))));var To=new WeakMap,Ao=new WeakMap,Mo={},Ro=0,$o=function(e){return e&&(e.host||$o(e.parentNode))},Vo=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=$o(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Mo[n]||(Mo[n]=new WeakMap);var i=Mo[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(To.get(e)||0)+1,c=(i.get(e)||0)+1;To.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Ao.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),s.clear(),Ro++,function(){a.forEach((function(e){var t=To.get(e)-1,o=i.get(e)-1;To.set(e,t),i.set(e,o),t||(Ao.has(e)||e.removeAttribute(r),Ao.delete(e)),o||e.removeAttribute(n)})),--Ro||(To=new WeakMap,To=new WeakMap,Ao=new WeakMap,Mo={})}},Lo=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Vo(r,o,n,"aria-hidden")):function(){return null}},Fo="right-scroll-bar-position",Ho="width-before-scroll-bar";function Bo(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=m((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}function jo(e){return e}var zo=function(t){var n=t.sideCar,r=_(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,I({},r))};zo.isSideCarExport=!0;var Ko=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=jo);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=I({async:!0,ssr:!1},e),t}(),Wo=function(){},qo=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Wo,onWheelCapture:Wo,onTouchMoveCapture:Wo}),i=o[0],a=o[1],s=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,p=t.shards,f=t.sideCar,h=t.noIsolation,m=t.inert,g=t.allowPinchZoom,v=t.as,y=void 0===v?"div":v,b=_(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,x=Bo([r,n]),E=I(I({},b),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:Ko,removeScrollBar:u,shards:p,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r}),s?e.cloneElement(e.Children.only(l),I(I({},E),{ref:x})):e.createElement(y,I({},E,{className:c,ref:x}),l))}));qo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qo.classNames={fullWidth:Ho,zeroRight:Fo};function Uo(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Yo=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Uo())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xo=function(){var t,n=(t=Yo(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Go={left:0,top:0,right:0,gap:0},Jo=function(e){return parseInt(e||"",10)||0},Zo=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Go;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Jo(n),Jo(r),Jo(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qo=Xo(),ei=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Fo," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Ho," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Fo," .").concat(Fo," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Ho," .").concat(Ho," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},ti=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o,a=e.useMemo((function(){return Zo(i)}),[i]);return e.createElement(Qo,{styles:ei(a,!n,i,r?"":"!important")})},ni=!1;if("undefined"!=typeof window)try{var ri=Object.defineProperty({},"passive",{get:function(){return ni=!0,!0}});window.addEventListener("test",ri,ri),window.removeEventListener("test",ri,ri)}catch(e){ni=!1}var oi=!!ni&&{passive:!1},ii=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},ai=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),si(e,n)){var r=li(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},si=function(e,t){return"v"===e?function(e){return ii(e,"overflowY")}(t):function(e){return ii(e,"overflowX")}(t)},li=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},ci=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ui=function(e){return[e.deltaX,e.deltaY]},di=function(e){return e&&"current"in e?e.current:e},pi=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},fi=0,hi=[];var mi,gi=(mi=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(fi++)[0],a=e.useState((function(){return Xo()}))[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=S([t.lockRef.current],(t.shards||[]).map(di),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var n,i=ci(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=ai(d,u);if(!p)return!0;if(p?n=d:(n="v"===d?"h":"v",p=ai(d,u)),!p)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=n),!n)return!0;var f=o.current||n;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,p=0;do{var f=li(e,s),h=f[0],m=f[1]-f[2]-i*h;(h||m)&&si(e,s)&&(d+=m,p+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===p||!o&&-a>p))&&(c=!0),c}(f,t,e,"h"===f?l:c,!0)}),[]),c=e.useCallback((function(e){var t=e;if(hi.length&&hi[hi.length-1]===a){var r="deltaY"in t?ui(t):ci(t),o=n.current.filter((function(e){return e.name===t.type&&e.target===t.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(di).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?l(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),u=e.useCallback((function(e,t,r,o){var i={name:e,delta:t,target:r,should:o};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),d=e.useCallback((function(e){r.current=ci(e),o.current=void 0}),[]),p=e.useCallback((function(e){u(e.type,ui(e),e.target,l(e,t.lockRef.current))}),[]),f=e.useCallback((function(e){u(e.type,ci(e),e.target,l(e,t.lockRef.current))}),[]);e.useEffect((function(){return hi.push(a),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,oi),document.addEventListener("touchmove",c,oi),document.addEventListener("touchstart",d,oi),function(){hi=hi.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,oi),document.removeEventListener("touchmove",c,oi),document.removeEventListener("touchstart",d,oi)}}),[]);var h=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(a,{styles:pi(i)}):null,h?e.createElement(ti,{gapMode:"margin"}):null)},Ko.useMedium(mi),zo),vi=e.forwardRef((function(t,n){return e.createElement(qo,I({},t,{ref:n,sideCar:gi}))}));vi.classNames=qo.classNames;var yi=vi;const bi=[" ","Enter","ArrowUp","ArrowDown"],wi=[" ","Enter"],xi="Select",[Ei,Ii,_i]=function(e){const n=e+"CollectionProvider",[r,o]=mn(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:t.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=yn(n,a(s,r).collectionRef);return t.createElement(bn,{ref:i},o)})),ItemSlot:t.forwardRef(((e,n)=>{const{scope:r,children:o,...i}=e,s=t.useRef(null),u=yn(n,s),d=a(l,r);return t.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),t.createElement(bn,{[c]:"",ref:u},o)}))},function(n){const r=a(e+"CollectionConsumer",n),o=t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`)),n=Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return n}),[r.collectionRef,r.itemMap]);return o},o]}(xi),[Si,Ci]=mn(xi,[_i,mo]),Oi=mo(),[Di,Ni]=Si(xi),[ki,Pi]=Si(xi),Ti=c(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,a=Oi(n),s=Ni("SelectTrigger",n),l=s.disabled||r,c=yn(t,s.onTriggerChange),u=Ii(n),[d,p,f]=ua((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===s.value)),r=da(t,e,n);void 0!==r&&s.onValueChange(r.value)})),h=()=>{l||(s.onOpenChange(!0),f())};return o(Oo,pn({asChild:!0},a),o(Sn.button,pn({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":la(s.value)?"":void 0},i,{ref:c,onClick:hn(i.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:hn(i.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(h(),s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:hn(i.onKeyDown,(e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),t&&" "===e.key||bi.includes(e.key)&&(h(),e.preventDefault())}))})))})),Ai=c(((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:a,placeholder:s="",...l}=e,c=Ni("SelectValue",n),{onValueNodeHasChildrenChange:u}=c,d=void 0!==a,p=yn(t,c.onValueNodeChange);return Un((()=>{u(d)}),[u,d]),o(Sn.span,pn({},l,{ref:p,style:{pointerEvents:"none"}}),la(c.value)?o(f,null,s):a)})),Mi=c(((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return o(Sn.span,pn({"aria-hidden":!0},i,{ref:t}),r||"▼")})),Ri="SelectContent",$i=c(((e,t)=>{const n=Ni(Ri,e.__scopeSelect),[r,i]=m();if(Un((()=>{i(new DocumentFragment)}),[]),!n.open){const t=r;return t?E(o(Li,{scope:e.__scopeSelect},o(Ei.Slot,{scope:e.__scopeSelect},o("div",null,e.children))),t):null}return o(Hi,pn({},e,{ref:t}))})),Vi=10,[Li,Fi]=Si(Ri),Hi=c(((e,t)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:c,side:u,sideOffset:d,align:p,alignOffset:f,arrowPadding:g,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:w,avoidCollisions:x,...E}=e,I=Ni(Ri,r),[_,S]=m(null),[C,O]=m(null),D=yn(t,(e=>S(e))),[N,k]=m(null),[P,T]=m(null),A=Ii(r),[M,R]=m(!1),$=n(!1);h((()=>{if(_)return Lo(_)}),[_]),h((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:$n()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:$n()),Rn++,()=>{1===Rn&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Rn--}}),[]);const V=l((e=>{const[t,...n]=A().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(null==n||n.scrollIntoView({block:"nearest"}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),null==n||n.focus(),document.activeElement!==o)return}}),[A,C]),L=l((()=>V([N,_])),[V,N,_]);h((()=>{M&&L()}),[M,L]);const{onOpenChange:F,triggerPointerDownPosRef:H}=I;h((()=>{if(_){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=H.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=H.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():_.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),H.current=null};return null!==H.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[_,F,H]),h((()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[F]);const[B,j]=ua((e=>{const t=A().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=da(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),z=l(((e,t,n)=>{const r=!$.current&&!n;(void 0!==I.value&&I.value===t||r)&&(k(e),r&&($.current=!0))}),[I.value]),K=l((()=>null==_?void 0:_.focus()),[_]),W=l(((e,t,n)=>{const r=!$.current&&!n;(void 0!==I.value&&I.value===t||r)&&T(e)}),[I.value]),q="popper"===i?ji:Bi,U=q===ji?{side:u,sideOffset:d,align:p,alignOffset:f,arrowPadding:g,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:w,avoidCollisions:x}:{};return o(Li,{scope:r,content:_,viewport:C,onViewportChange:O,itemRefCallback:z,selectedItem:N,onItemLeave:K,itemTextRefCallback:W,focusSelectedItem:L,selectedItemText:P,position:i,isPositioned:M,searchRef:B},o(yi,{as:bn,allowPinchZoom:!0},o(Hn,{asChild:!0,trapped:I.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:hn(a,(e=>{var t;null===(t=I.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},o(Tn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>I.onOpenChange(!1)},o(q,pn({role:"listbox",id:I.contentId,"data-state":I.open?"open":"closed",dir:I.dir,onContextMenu:e=>e.preventDefault()},E,U,{onPlaced:()=>R(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:hn(E.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||j(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>V(t))),e.preventDefault()}}))}))))))})),Bi=c(((e,t)=>{const{__scopeSelect:r,onPlaced:i,...a}=e,s=Ni(Ri,r),c=Fi(Ri,r),[u,d]=m(null),[p,f]=m(null),h=yn(t,(e=>f(e))),g=Ii(r),v=n(!1),y=n(!0),{viewport:b,selectedItem:w,selectedItemText:x,focusSelectedItem:E}=c,I=l((()=>{if(s.trigger&&s.valueNode&&u&&p&&b&&w&&x){const e=s.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=x.getBoundingClientRect();if("rtl"!==s.dir){const o=r.left-t.left,i=n.left-o,a=e.left-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-Vi,d=fn(i,[Vi,c-l]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{const o=t.right-r.right,i=window.innerWidth-n.right-o,a=window.innerWidth-e.right-i,s=e.width+a,l=Math.max(s,t.width),c=window.innerWidth-Vi,d=fn(i,[Vi,c-l]);u.style.minWidth=s+"px",u.style.right=d+"px"}const o=g(),a=window.innerHeight-2*Vi,l=b.scrollHeight,c=window.getComputedStyle(p),d=parseInt(c.borderTopWidth,10),f=parseInt(c.paddingTop,10),h=parseInt(c.borderBottomWidth,10),m=d+f+l+parseInt(c.paddingBottom,10)+h,y=Math.min(5*w.offsetHeight,m),E=window.getComputedStyle(b),I=parseInt(E.paddingTop,10),_=parseInt(E.paddingBottom,10),S=e.top+e.height/2-Vi,C=a-S,O=w.offsetHeight/2,D=d+f+(w.offsetTop+O),N=m-D;if(D<=S){const e=w===o[o.length-1].ref.current;u.style.bottom="0px";const t=p.clientHeight-b.offsetTop-b.offsetHeight,n=D+Math.max(C,O+(e?_:0)+t+h);u.style.height=n+"px"}else{const e=w===o[0].ref.current;u.style.top="0px";const t=Math.max(S,d+b.offsetTop+(e?I:0)+O)+N;u.style.height=t+"px",b.scrollTop=D-S+b.offsetTop}u.style.margin=`${Vi}px 0`,u.style.minHeight=y+"px",u.style.maxHeight=a+"px",null==i||i(),requestAnimationFrame((()=>v.current=!0))}}),[g,s.trigger,s.valueNode,u,p,b,w,x,s.dir,i]);Un((()=>I()),[I]);const[_,S]=m();Un((()=>{p&&S(window.getComputedStyle(p).zIndex)}),[p]);const C=l((e=>{e&&!0===y.current&&(I(),null==E||E(),y.current=!1)}),[I,E]);return o(zi,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:v,onScrollButtonChange:C},o("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},o(Sn.div,pn({},a,{ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}}))))})),ji=c(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Vi,...a}=e,s=Oi(n);return o(Do,pn({},s,a,{ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[zi,Ki]=Si(Ri,{}),Wi="SelectViewport",qi=c(((e,t)=>{const{__scopeSelect:r,...i}=e,a=Fi(Wi,r),s=Ki(Wi,r),l=yn(t,a.onViewportChange),c=n(0);return o(f,null,o("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),o(Ei.Slot,{scope:r},o(Sn.div,pn({"data-radix-select-viewport":"",role:"presentation"},i,{ref:l,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:hn(i.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(null!=r&&r.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Vi,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop}))}))))})),[Ui,Yi]=Si("SelectGroup"),Xi=c(((e,t)=>{const{__scopeSelect:n,...r}=e,i=Gn();return o(Ui,{scope:n,id:i},o(Sn.div,pn({role:"group","aria-labelledby":i},r,{ref:t})))})),Gi="SelectItem",[Ji,Zi]=Si(Gi),Qi=c(((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...s}=e,c=Ni(Gi,n),u=Fi(Gi,n),d=c.value===r,[p,f]=m(null!=a?a:""),[h,g]=m(!1),v=yn(t,(e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,r,i)})),y=Gn(),b=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return o(Ji,{scope:n,value:r,disabled:i,textId:y,isSelected:d,onItemTextChange:l((e=>{f((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},o(Ei.ItemSlot,{scope:n,value:r,disabled:i,textValue:p},o(Sn.div,pn({role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},s,{ref:v,onFocus:hn(s.onFocus,(()=>g(!0))),onBlur:hn(s.onBlur,(()=>g(!1))),onPointerUp:hn(s.onPointerUp,b),onPointerMove:hn(s.onPointerMove,(e=>{var t;i?null===(t=u.onItemLeave)||void 0===t||t.call(u):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:hn(s.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=u.onItemLeave)||void 0===t||t.call(u))})),onKeyDown:hn(s.onKeyDown,(e=>{var t;""!==(null===(t=u.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(wi.includes(e.key)&&b()," "===e.key&&e.preventDefault())}))}))))})),ea="SelectItemText",ta=c(((e,t)=>{const{__scopeSelect:n,className:r,style:i,...a}=e,l=Ni(ea,n),c=Fi(ea,n),u=Zi(ea,n),d=Pi(ea,n),[p,h]=m(null),g=yn(t,(e=>h(e)),u.onItemTextChange,(e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,u.value,u.disabled)})),v=null==p?void 0:p.textContent,y=s((()=>o("option",{key:u.value,value:u.value,disabled:u.disabled},v)),[u.disabled,u.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=d;return Un((()=>(b(y),()=>w(y))),[b,w,y]),o(f,null,o(Sn.span,pn({id:u.textId},a,{ref:g})),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?E(a.children,l.valueNode):null)})),na=c(((e,t)=>{const{__scopeSelect:n,...r}=e;return Zi("SelectItemIndicator",n).isSelected?o(Sn.span,pn({"aria-hidden":!0},r,{ref:t})):null})),ra="SelectScrollUpButton",oa=c(((e,t)=>{const n=Fi(ra,e.__scopeSelect),r=Ki(ra,e.__scopeSelect),[i,a]=m(!1),s=yn(t,r.onScrollButtonChange);return Un((()=>{if(n.viewport&&n.isPositioned){const e=n.viewport;function t(){const t=e.scrollTop>0;a(t)}return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[n.viewport,n.isPositioned]),i?o(sa,pn({},e,{ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),ia="SelectScrollDownButton",aa=c(((e,t)=>{const n=Fi(ia,e.__scopeSelect),r=Ki(ia,e.__scopeSelect),[i,a]=m(!1),s=yn(t,r.onScrollButtonChange);return Un((()=>{if(n.viewport&&n.isPositioned){const e=n.viewport;function t(){const t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;a(n)}return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[n.viewport,n.isPositioned]),i?o(sa,pn({},e,{ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),sa=c(((e,t)=>{const{__scopeSelect:r,onAutoScroll:i,...a}=e,s=Fi("SelectScrollButton",r),c=n(null),u=Ii(r),d=l((()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)}),[]);return h((()=>()=>d()),[d]),Un((()=>{var e;const t=u().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[u]),o(Sn.div,pn({"aria-hidden":!0},a,{ref:t,style:{flexShrink:0,...a.style},onPointerDown:hn(a.onPointerDown,(()=>{null===c.current&&(c.current=window.setInterval(i,50))})),onPointerMove:hn(a.onPointerMove,(()=>{var e;null===(e=s.onItemLeave)||void 0===e||e.call(s),null===c.current&&(c.current=window.setInterval(i,50))})),onPointerLeave:hn(a.onPointerLeave,(()=>{d()}))}))}));function la(e){return""===e||void 0===e}const ca=c(((e,t)=>{const{value:r,...i}=e,a=n(null),l=yn(t,a),c=function(e){const t=n({value:e,previous:e});return s((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(r);return h((()=>{const e=a.current,t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(c!==r&&n){const t=new Event("change",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}}),[c,r]),o(Po,{asChild:!0},o("select",pn({},i,{ref:l,defaultValue:r})))}));function ua(e){const t=Cn(e),r=n(""),o=n(0),i=l((e=>{const n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout((()=>e("")),1e3))}(n)}),[t]),a=l((()=>{r.current="",window.clearTimeout(o.current)}),[]);return h((()=>()=>window.clearTimeout(o.current)),[]),[r,i,a]}function da(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;1===o.length&&(a=a.filter((e=>e!==n)));const c=a.find((e=>e.textValue.toLowerCase().startsWith(o.toLowerCase())));return c!==n?c:void 0}ca.displayName="BubbleSelect";const pa=e=>{const{__scopeSelect:t,children:r,open:a,defaultOpen:s,onOpenChange:c,value:u,defaultValue:d,onValueChange:p,dir:f,name:h,autoComplete:g,disabled:v,required:y}=e,b=Oi(t),[w,x]=m(null),[E,I]=m(null),[_,S]=m(!1),C=function(e){const t=i(_n);return e||t||"ltr"}(f),[O=!1,D]=ko({prop:a,defaultProp:s,onChange:c}),[N,k]=ko({prop:u,defaultProp:d,onChange:p}),P=n(null),T=!w||Boolean(w.closest("form")),[A,M]=m(new Set),R=Array.from(A).map((e=>e.props.value)).join(";");return o(Co,b,o(Di,{required:y,scope:t,trigger:w,onTriggerChange:x,valueNode:E,onValueNodeChange:I,valueNodeHasChildren:_,onValueNodeHasChildrenChange:S,contentId:Gn(),value:N,onValueChange:k,open:O,onOpenChange:D,dir:C,triggerPointerDownPosRef:P,disabled:v},o(Ei.Provider,{scope:t},o(ki,{scope:e.__scopeSelect,onNativeOptionAdd:l((e=>{M((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:l((e=>{M((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},r)),T?o(ca,{key:R,"aria-hidden":!0,required:y,tabIndex:-1,name:h,autoComplete:g,value:N,onChange:e=>k(e.target.value),disabled:v},void 0===N?o("option",{value:""}):null,Array.from(A)):null))},fa=Ti,ha=Ai,ma=Mi,ga=e=>o(No,pn({asChild:!0},e)),va=$i,ya=qi,ba=Xi,wa=Qi,xa=ta,Ea=na,Ia=oa,_a=aa,Sa={elephant:"#12344D",smoke:"#EBEFF3",milk:"#FFFFFF",E900:"#12344D",E800:"#264966",E700:"#345C7C",E600:"#447093",E500:"#527FA5",E400:"#6B92B6",E300:"#83A6C8",E200:"#A2C0DE",E100:"#BEDBF5",E50:"#DFF0FF",S900:"#27313A",S800:"#384551",S700:"#475867",S600:"#576C7D",S500:"#647A8E",S400:"#7B8E9F",S300:"#92A2B1",S200:"#B1BDC8",S100:"#CFD7DF",S75:"#E6E8EB",S50:"#EBEFF3",S25:"#F5F7F9",S10:"#F7F9FA"},Ca={jungle:"#005C3F",J900:"#005C3F",J800:"#00795B",J700:"#008969",J600:"#009A79",J500:"#00A886",J400:"#1CB697",J300:"#4DC4AA",J200:"#82D5C2",J100:"#B4E5DA",J50:"#E0F5F1",azure:"#2C5CC5",A900:"#283DA5",A800:"#2C5CC5",A700:"#2E6ED8",A600:"#2F80EB",A500:"#2E8EFA",A400:"#459FFC",A300:"#64B0FC",A200:"#90C6FE",A100:"#BBDCFE",A50:"#E5F2FD",persimmon:"#E43538",P900:"#C82124",P800:"#D72D30",P700:"#E43538",P600:"#F73F3E",P500:"#FF473E",P400:"#FF5959",P300:"#F2797B",P200:"#F89FA1",P100:"#FFD0D6",P50:"#FFECF0",casablanca:"#E86F25",C900:"#D7461F",C800:"#E16023",C700:"#E86F25",C600:"#EF7E27",C500:"#F48928",C400:"#F69A3C",C300:"#F8AB59",C200:"#FAC386",C100:"#FDDBB5",C50:"#FEF1E1"},Oa=cn(c(((e,t)=>o(Sn.label,pn({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))))`
|
|
2
|
-
color: ${({theme:e})=>e.colors.text.secondary};
|
|
3
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
4
|
-
font-size: 12px;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
font-weight: 600;
|
|
7
|
-
line-height: 20px;
|
|
8
|
-
display: flex;
|
|
9
|
-
margin-bottom: 4px;
|
|
10
|
-
`;cn.label`
|
|
11
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
12
|
-
color: ${({disabled:e})=>e?Sa.S400:Sa.E900};
|
|
13
|
-
margin: 0 8px;
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
font-size: 12px;
|
|
16
|
-
font-weight: 600;
|
|
17
|
-
line-height: 20px;
|
|
18
|
-
display: flex;
|
|
19
|
-
`;const Da=cn.div`
|
|
20
|
-
color: #ff0000;
|
|
21
|
-
margin-left: 2px;
|
|
22
|
-
`,Na=cn.span`
|
|
23
|
-
color: ${({theme:e})=>e.colors.text.error};
|
|
24
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
25
|
-
font-size: 12px;
|
|
26
|
-
font-weight: 400;
|
|
27
|
-
line-height: 20px;
|
|
28
|
-
`;cn.button`
|
|
29
|
-
margin: 0;
|
|
30
|
-
padding: 0;
|
|
31
|
-
width: 20px;
|
|
32
|
-
height: 20px;
|
|
33
|
-
border: none;
|
|
34
|
-
background: none;
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
`,cn.a`
|
|
37
|
-
font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
|
|
38
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
39
|
-
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
40
|
-
color: ${({theme:e})=>e.colors.text.link};
|
|
41
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
42
|
-
text-decoration: unset;
|
|
43
|
-
:hover {
|
|
44
|
-
text-decoration: underline;
|
|
45
|
-
}
|
|
46
|
-
`,cn.div`
|
|
47
|
-
flex: 1;
|
|
48
|
-
padding: 32px;
|
|
49
|
-
height: 100%;
|
|
50
|
-
`,cn.div`
|
|
51
|
-
background-color: ${Sa.S25};
|
|
52
|
-
display: flex;
|
|
53
|
-
padding: 16px;
|
|
54
|
-
gap: 8px;
|
|
55
|
-
justify-content: flex-end;
|
|
56
|
-
`,cn.h1`
|
|
57
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
58
|
-
font-size: 24px;
|
|
59
|
-
font-weight: 600;
|
|
60
|
-
line-height: 32px;
|
|
61
|
-
letter-spacing: 0px;
|
|
62
|
-
margin: 0 0 12px 0;
|
|
63
|
-
`,cn.div`
|
|
64
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
65
|
-
font-size: 16px;
|
|
66
|
-
font-weight: 400;
|
|
67
|
-
line-height: 24px;
|
|
68
|
-
letter-spacing: 0px;
|
|
69
|
-
text-align: left;
|
|
70
|
-
`,cn.div`
|
|
71
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
72
|
-
font-size: 16px;
|
|
73
|
-
font-weight: 400;
|
|
74
|
-
line-height: 24px;
|
|
75
|
-
letter-spacing: 0px;
|
|
76
|
-
text-align: left;
|
|
77
|
-
`,cn.button`
|
|
78
|
-
border: none;
|
|
79
|
-
padding: 0;
|
|
80
|
-
margin: 0;
|
|
81
|
-
width: fit-content;
|
|
82
|
-
background: inherit;
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
`;const ka=un`
|
|
85
|
-
from {
|
|
86
|
-
opacity: 1;
|
|
87
|
-
}
|
|
88
|
-
to {
|
|
89
|
-
opacity: 0;
|
|
90
|
-
}
|
|
91
|
-
`,Pa=un`
|
|
92
|
-
from {
|
|
93
|
-
opacity: 0;
|
|
94
|
-
}
|
|
95
|
-
to {
|
|
96
|
-
opacity: 1;
|
|
97
|
-
}
|
|
98
|
-
`;un`
|
|
99
|
-
from {
|
|
100
|
-
opacity: 1;
|
|
101
|
-
transform: translate(-50%, 0%) scale(1);
|
|
102
|
-
}
|
|
103
|
-
to {
|
|
104
|
-
opacity: 0;
|
|
105
|
-
transform: translate(-50%, -16px) scale(0.96);
|
|
106
|
-
}
|
|
107
|
-
`,un`
|
|
108
|
-
from {
|
|
109
|
-
opacity: 0;
|
|
110
|
-
transform: translate(-50%, -16px) scale(0.96);
|
|
111
|
-
}
|
|
112
|
-
to {
|
|
113
|
-
opacity: 1;
|
|
114
|
-
transform: translate(-50%, 0%) scale(1);
|
|
115
|
-
}
|
|
116
|
-
`,un`
|
|
117
|
-
from {
|
|
118
|
-
opacity: 0;
|
|
119
|
-
transform: translateY(2px);
|
|
120
|
-
}
|
|
121
|
-
to {
|
|
122
|
-
opacity: 1;
|
|
123
|
-
transform: translateY(0);
|
|
124
|
-
}
|
|
125
|
-
`,un`
|
|
126
|
-
from {
|
|
127
|
-
opacity: 0;
|
|
128
|
-
transform: translateX(-2px);
|
|
129
|
-
}
|
|
130
|
-
to {
|
|
131
|
-
opacity: 1;
|
|
132
|
-
transform: translateX(0);
|
|
133
|
-
}
|
|
134
|
-
`,un`
|
|
135
|
-
from {
|
|
136
|
-
opacity: 0;
|
|
137
|
-
transform: translateY(-2px);
|
|
138
|
-
}
|
|
139
|
-
to {
|
|
140
|
-
opacity: 1;
|
|
141
|
-
transform: translateY(0);
|
|
142
|
-
}
|
|
143
|
-
`,un`
|
|
144
|
-
from {
|
|
145
|
-
opacity: 0;
|
|
146
|
-
transform: translateX(2px);
|
|
147
|
-
}
|
|
148
|
-
to {
|
|
149
|
-
opacity: 1;
|
|
150
|
-
transform: translateX(0);
|
|
151
|
-
}
|
|
152
|
-
`;const Ta=cn.div`
|
|
153
|
-
position: relative;
|
|
154
|
-
width: ${({width:e})=>e||"auto"};
|
|
155
|
-
label.input-label {
|
|
156
|
-
margin-bottom: 4px;
|
|
157
|
-
margin-left: 2px;
|
|
158
|
-
}
|
|
159
|
-
span.input-helper {
|
|
160
|
-
margin-left: 2px;
|
|
161
|
-
margin-top: 2px;
|
|
162
|
-
display: block;
|
|
163
|
-
}
|
|
164
|
-
svg.dropdown-up-icon {
|
|
165
|
-
transform: rotate(${({isOpen:e})=>e?"0deg":"-180deg"});
|
|
166
|
-
transition: transform 0.2s ease-in-out;
|
|
167
|
-
}
|
|
168
|
-
`;cn.div`
|
|
169
|
-
outline: none;
|
|
170
|
-
padding: 6px 12px;
|
|
171
|
-
display: flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
justify-content: space-between;
|
|
174
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
175
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
176
|
-
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
177
|
-
color: ${({theme:e})=>e.colors.text.primary};
|
|
178
|
-
border: 1px solid
|
|
179
|
-
${({theme:e,disabled:t,isErrored:n})=>t?e.colors.border.disabled:n?e.colors.border.error:e.colors.border.normal};
|
|
180
|
-
background-color: ${({theme:e,disabled:t})=>t?e.colors.fill.disabled:e.colors.fill.surface};
|
|
181
|
-
border-radius: 4px;
|
|
182
|
-
transition: all 0.2s ease-in-out;
|
|
183
|
-
&:hover {
|
|
184
|
-
border-color: ${({theme:e,disabled:t,isErrored:n})=>t?e.colors.border.disabled:n?e.colors.border.error:e.colors.border.hover};
|
|
185
|
-
}
|
|
186
|
-
&:focus-within,
|
|
187
|
-
&:focus {
|
|
188
|
-
box-shadow: ${({theme:e,isErrored:t,disabled:n})=>n?"transparent":t?e.colors.border.error:e.colors.border.active}
|
|
189
|
-
0px 0px 0px 1px;
|
|
190
|
-
border-color: ${({theme:e,isErrored:t,disabled:n})=>n?"transparent":t?e.colors.border.error:e.colors.border.active};
|
|
191
|
-
}
|
|
192
|
-
`,cn.span`
|
|
193
|
-
color: ${({isP:e,theme:t})=>e?t.colors.text.placeholder:"inherit"};
|
|
194
|
-
margin-right: 8px;
|
|
195
|
-
max-width: 256px;
|
|
196
|
-
text-overflow: ellipsis;
|
|
197
|
-
overflow: hidden;
|
|
198
|
-
white-space: nowrap;
|
|
199
|
-
`;const Aa=cn.ul`
|
|
200
|
-
position: absolute;
|
|
201
|
-
max-height: 232px;
|
|
202
|
-
width: calc(100% - 16px);
|
|
203
|
-
padding: 8px;
|
|
204
|
-
margin: 8px 0 0 0;
|
|
205
|
-
overflow: scroll;
|
|
206
|
-
display: ${({isOpen:e})=>e?"block":"none"};
|
|
207
|
-
list-style: none;
|
|
208
|
-
z-index: 1000;
|
|
209
|
-
border-radius: 2px 2px 8px 8px;
|
|
210
|
-
border: 1px solid ${({theme:e})=>e.colors.border.disabled};
|
|
211
|
-
background: ${({theme:e})=>e.colors.fill.surface};
|
|
212
|
-
box-shadow: -15px 20px 40px 0px rgba(0, 0, 0, 0.04);
|
|
213
|
-
`,Ma=cn.li`
|
|
214
|
-
padding: 8px 12px;
|
|
215
|
-
border-radius: 4px;
|
|
216
|
-
display: flex;
|
|
217
|
-
gap: 12px;
|
|
218
|
-
align-items: center;
|
|
219
|
-
justify-content: space-between;
|
|
220
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
221
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
222
|
-
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
223
|
-
color: ${({theme:e})=>e.colors.text.primary};
|
|
224
|
-
background: ${({theme:e,isHilighted:t,isSelected:n})=>t||n?e.colors.fill.hilight:"inherit"};
|
|
225
|
-
&:hover {
|
|
226
|
-
background: ${({theme:e,isSelected:t,readOnly:n})=>n?"inherit":t?e.colors.fill.hilight:e.colors.fill.hover};
|
|
227
|
-
}
|
|
228
|
-
`,Ra=cn.div`
|
|
229
|
-
cursor: pointer;
|
|
230
|
-
color: ${({theme:e})=>e.colors.text.link};
|
|
231
|
-
`,$a=cn.div`
|
|
232
|
-
min-height: 128px;
|
|
233
|
-
display: grid;
|
|
234
|
-
place-content: center;
|
|
235
|
-
`,Va=cn.div`
|
|
236
|
-
display: flex;
|
|
237
|
-
align-items: center;
|
|
238
|
-
gap: 8px;
|
|
239
|
-
height: 100%;
|
|
240
|
-
button {
|
|
241
|
-
background: none;
|
|
242
|
-
border: none;
|
|
243
|
-
padding: 4px;
|
|
244
|
-
margin: 0;
|
|
245
|
-
line-height: 0;
|
|
246
|
-
cursor: pointer;
|
|
247
|
-
}
|
|
248
|
-
`,La=cn.div``,Fa=cn(pa)``,Ha=cn(ba)``,Ba=cn(ha)`
|
|
249
|
-
flex: 1;
|
|
250
|
-
`,ja=cn(ga)``,za=cn(wa)`
|
|
251
|
-
padding: 8px 12px;
|
|
252
|
-
border-radius: 4px;
|
|
253
|
-
display: flex;
|
|
254
|
-
gap: 12px;
|
|
255
|
-
align-items: center;
|
|
256
|
-
justify-content: space-between;
|
|
257
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
258
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
259
|
-
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
260
|
-
color: ${({theme:e})=>e.colors.text.primary};
|
|
261
|
-
outline: none;
|
|
262
|
-
&[data-disabled] {
|
|
263
|
-
pointer-events: none;
|
|
264
|
-
}
|
|
265
|
-
&[data-state='checked'] {
|
|
266
|
-
background-color: ${({theme:e})=>e.colors.fill.hilight};
|
|
267
|
-
}
|
|
268
|
-
&[data-highlighted] {
|
|
269
|
-
background-color: ${({theme:e})=>e.colors.fill.hover};
|
|
270
|
-
}
|
|
271
|
-
`,Ka=cn(va)`
|
|
272
|
-
position: absolute;
|
|
273
|
-
max-height: 232px;
|
|
274
|
-
padding: 8px;
|
|
275
|
-
overflow: scroll;
|
|
276
|
-
list-style: none;
|
|
277
|
-
z-index: 1000;
|
|
278
|
-
border-radius: 2px 2px 8px 8px;
|
|
279
|
-
border: 1px solid ${({theme:e})=>e.colors.border.disabled};
|
|
280
|
-
background: ${({theme:e})=>e.colors.fill.surface};
|
|
281
|
-
box-shadow: -15px 20px 40px 0px rgba(0, 0, 0, 0.04);
|
|
282
|
-
width: var(--radix-select-trigger-width);
|
|
283
|
-
max-height: var(--radix-select-content-available-height);
|
|
284
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
285
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
286
|
-
&[data-state='open'] {
|
|
287
|
-
animation-name: ${()=>an`
|
|
288
|
-
${Pa}
|
|
289
|
-
`};
|
|
290
|
-
}
|
|
291
|
-
&[data-state='closed'] {
|
|
292
|
-
animation-name: ${()=>an`
|
|
293
|
-
${ka}
|
|
294
|
-
`};
|
|
295
|
-
}
|
|
296
|
-
`,Wa=cn(xa)``,qa=cn(ya)``,Ua=cn(Ea)``,Ya=cn(Ia)`
|
|
297
|
-
display: grid;
|
|
298
|
-
place-content: center;
|
|
299
|
-
margin-bottom: 8px;
|
|
300
|
-
`,Xa=cn(_a)`
|
|
301
|
-
display: grid;
|
|
302
|
-
place-content: center;
|
|
303
|
-
margin-top: 8px;
|
|
304
|
-
transform: rotate(-180deg);
|
|
305
|
-
`,Ga=cn(ma)`
|
|
306
|
-
transform: rotate(-180deg);
|
|
307
|
-
transition: transform 0.2s ease-in-out;
|
|
308
|
-
display: grid;
|
|
309
|
-
place-content: center;
|
|
310
|
-
`,Ja=cn(fa)`
|
|
311
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
312
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
313
|
-
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
314
|
-
color: ${({theme:e})=>e.colors.text.primary};
|
|
315
|
-
width: ${({width:e})=>e||"100%"};
|
|
316
|
-
padding: 6px 12px;
|
|
317
|
-
display: flex;
|
|
318
|
-
gap: 8px;
|
|
319
|
-
align-items: center;
|
|
320
|
-
justify-content: space-between;
|
|
321
|
-
outline: none;
|
|
322
|
-
border: 1px solid
|
|
323
|
-
${({theme:e,disabled:t,isErrored:n})=>t?e.colors.border.disabled:n?e.colors.border.error:e.colors.border.normal};
|
|
324
|
-
background-color: ${({theme:e,disabled:t})=>t?e.colors.fill.disabled:e.colors.fill.surface};
|
|
325
|
-
border-radius: 4px;
|
|
326
|
-
transition: all 0.2s ease-in-out;
|
|
327
|
-
span:first-child {
|
|
328
|
-
flex: 1;
|
|
329
|
-
text-align: left;
|
|
330
|
-
}
|
|
331
|
-
&:hover {
|
|
332
|
-
border-color: ${({theme:e,disabled:t,isErrored:n})=>t?e.colors.border.disabled:n?e.colors.border.error:e.colors.border.hover};
|
|
333
|
-
}
|
|
334
|
-
&:focus,
|
|
335
|
-
&[data-state='open'] {
|
|
336
|
-
box-shadow: ${({theme:e,isErrored:t})=>t?e.colors.border.error:e.colors.border.active}
|
|
337
|
-
0px 0px 0px 1px;
|
|
338
|
-
border-color: ${({theme:e,isErrored:t})=>t?e.colors.border.error:e.colors.border.active};
|
|
339
|
-
}
|
|
340
|
-
&[data-placeholder] {
|
|
341
|
-
color: ${({theme:e})=>e.colors.text.placeholder};
|
|
342
|
-
white-space: nowrap;
|
|
343
|
-
}
|
|
344
|
-
&[data-state='open'] {
|
|
345
|
-
.SelectIcon {
|
|
346
|
-
transform: rotate(0deg);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
&[data-disabled] {
|
|
350
|
-
border-color: ${({theme:e,disabled:t,isErrored:n})=>e.colors.border.disabled};
|
|
351
|
-
}
|
|
352
|
-
`;function Za(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Qa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function es(e,t){return es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},es(e,t)}var ts,ns={exports:{}},rs={exports:{}},os={};var is,as,ss,ls,cs,us,ds,ps,fs,hs,ms,gs,vs,ys,bs={};
|
|
353
|
-
/** @license React v16.13.1
|
|
354
|
-
* react-is.development.js
|
|
355
|
-
*
|
|
356
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
357
|
-
*
|
|
358
|
-
* This source code is licensed under the MIT license found in the
|
|
359
|
-
* LICENSE file in the root directory of this source tree.
|
|
360
|
-
*/function ws(){return as||(as=1,"production"===process.env.NODE_ENV?rs.exports=function(){if(ts)return os;ts=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function w(e){return b(e)===c}return os.AsyncMode=l,os.ConcurrentMode=c,os.ContextConsumer=s,os.ContextProvider=a,os.Element=t,os.ForwardRef=u,os.Fragment=r,os.Lazy=h,os.Memo=f,os.Portal=n,os.Profiler=i,os.StrictMode=o,os.Suspense=d,os.isAsyncMode=function(e){return w(e)||b(e)===l},os.isConcurrentMode=w,os.isContextConsumer=function(e){return b(e)===s},os.isContextProvider=function(e){return b(e)===a},os.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},os.isForwardRef=function(e){return b(e)===u},os.isFragment=function(e){return b(e)===r},os.isLazy=function(e){return b(e)===h},os.isMemo=function(e){return b(e)===f},os.isPortal=function(e){return b(e)===n},os.isProfiler=function(e){return b(e)===i},os.isStrictMode=function(e){return b(e)===o},os.isSuspense=function(e){return b(e)===d},os.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},os.typeOf=b,os}():rs.exports=(is||(is=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case f:case a:return g;default:return p}}case n:return p}}}var w=l,x=c,E=s,I=a,_=t,S=u,C=r,O=h,D=f,N=n,k=i,P=o,T=d,A=!1;function M(e){return b(e)===c}bs.AsyncMode=w,bs.ConcurrentMode=x,bs.ContextConsumer=E,bs.ContextProvider=I,bs.Element=_,bs.ForwardRef=S,bs.Fragment=C,bs.Lazy=O,bs.Memo=D,bs.Portal=N,bs.Profiler=k,bs.StrictMode=P,bs.Suspense=T,bs.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||b(e)===l},bs.isConcurrentMode=M,bs.isContextConsumer=function(e){return b(e)===s},bs.isContextProvider=function(e){return b(e)===a},bs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},bs.isForwardRef=function(e){return b(e)===u},bs.isFragment=function(e){return b(e)===r},bs.isLazy=function(e){return b(e)===h},bs.isMemo=function(e){return b(e)===f},bs.isPortal=function(e){return b(e)===n},bs.isProfiler=function(e){return b(e)===i},bs.isStrictMode=function(e){return b(e)===o},bs.isSuspense=function(e){return b(e)===d},bs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},bs.typeOf=b}()),bs)),rs.exports}
|
|
361
|
-
/*
|
|
362
|
-
object-assign
|
|
363
|
-
(c) Sindre Sorhus
|
|
364
|
-
@license MIT
|
|
365
|
-
*/function xs(){if(ls)return ss;ls=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ss=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},ss}function Es(){if(us)return cs;us=1;return cs="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Is(){return ps?ds:(ps=1,ds=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var _s=ws();ns.exports=function(){if(gs)return ms;gs=1;var e=ws(),t=xs(),n=Es(),r=Is(),o=function(){if(hs)return fs;hs=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Es(),n={},r=Is();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},fs=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),ms=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(a),arrayOf:function(e){return m((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,r,o){var i=e[t];return s(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,a,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new h("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return m((function(t,o,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,i,a){var s=t[r],l=b(s);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return v(o,i,a,c,w(u));var d=u(s,c,o,i,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return m((function(o,i,a,s,l){var c=o[i],u=b(c);if("object"!==u)return new h("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var p in d){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,s,l,p,w(f));if(!f)return new h("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,p,a,s,l+"."+p,n);if(m)return m}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,c,u,p,f){if(c=c||d,p=p||s,f!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,u,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function g(e){return m((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},ms}()(_s.isElement,!0)}else ns.exports=function(){if(ys)return vs;ys=1;var e=Es();function t(){}function n(){}return n.resetWarningCache=t,vs=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var Ss,Cs=N(ns.exports),Os={exports:{}},Ds={};var Ns,ks={};
|
|
366
|
-
/**
|
|
367
|
-
* @license React
|
|
368
|
-
* react-is.development.js
|
|
369
|
-
*
|
|
370
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
371
|
-
*
|
|
372
|
-
* This source code is licensed under the MIT license found in the
|
|
373
|
-
* LICENSE file in the root directory of this source tree.
|
|
374
|
-
*/"production"===process.env.NODE_ENV?Os.exports=function(){if(Ss)return Ds;Ss=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Ds.ContextConsumer=s,Ds.ContextProvider=a,Ds.Element=t,Ds.ForwardRef=c,Ds.Fragment=r,Ds.Lazy=f,Ds.Memo=p,Ds.Portal=n,Ds.Profiler=i,Ds.StrictMode=o,Ds.Suspense=u,Ds.SuspenseList=d,Ds.isAsyncMode=function(){return!1},Ds.isConcurrentMode=function(){return!1},Ds.isContextConsumer=function(e){return m(e)===s},Ds.isContextProvider=function(e){return m(e)===a},Ds.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ds.isForwardRef=function(e){return m(e)===c},Ds.isFragment=function(e){return m(e)===r},Ds.isLazy=function(e){return m(e)===f},Ds.isMemo=function(e){return m(e)===p},Ds.isPortal=function(e){return m(e)===n},Ds.isProfiler=function(e){return m(e)===i},Ds.isStrictMode=function(e){return m(e)===o},Ds.isSuspense=function(e){return m(e)===u},Ds.isSuspenseList=function(e){return m(e)===d},Ds.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Ds.typeOf=m,Ds}():Os.exports=(Ns||(Ns=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case r:case i:case o:case u:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case f:case p:case a:return g;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var g=s,v=a,y=t,b=c,w=r,x=f,E=p,I=n,_=i,S=o,C=u,O=d,D=!1,N=!1;ks.ContextConsumer=g,ks.ContextProvider=v,ks.Element=y,ks.ForwardRef=b,ks.Fragment=w,ks.Lazy=x,ks.Memo=E,ks.Portal=I,ks.Profiler=_,ks.StrictMode=S,ks.Suspense=C,ks.SuspenseList=O,ks.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},ks.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},ks.isContextConsumer=function(e){return m(e)===s},ks.isContextProvider=function(e){return m(e)===a},ks.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ks.isForwardRef=function(e){return m(e)===c},ks.isFragment=function(e){return m(e)===r},ks.isLazy=function(e){return m(e)===f},ks.isMemo=function(e){return m(e)===p},ks.isPortal=function(e){return m(e)===n},ks.isProfiler=function(e){return m(e)===i},ks.isStrictMode=function(e){return m(e)===o},ks.isSuspense=function(e){return m(e)===u},ks.isSuspenseList=function(e){return m(e)===d},ks.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},ks.typeOf=m}()),ks);var Ps=Os.exports;const Ts=e=>"object"==typeof e&&null!=e&&1===e.nodeType,As=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Ms=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return As(n.overflowY,t)||As(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Rs=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,$s=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Vs=0;function Ls(e){return"function"==typeof e?e:Fs}function Fs(){}function Hs(e,t){if(e){var n=((e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Ts(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;Ts(h)&&d(h);){if(h=$s(h),h===p){f.push(h);break}null!=h&&h===document.body&&Ms(h)&&!Ms(document.documentElement)||null!=h&&Ms(h,u)&&f.push(h)}const m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:x,right:E,bottom:I,left:_}=e.getBoundingClientRect(),{top:S,right:C,bottom:O,left:D}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let N="start"===s||"nearest"===s?x-S:"end"===s?I+O:x+b/2-S+O,k="center"===l?_+w/2-D+C:"end"===l?E+C:_-D;const P=[];for(let e=0;e<f.length;e++){const t=f[e],{height:n,width:r,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&x>=0&&_>=0&&I<=g&&E<=m&&x>=o&&I<=c&&_>=u&&E<=i)return P;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),S=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10);let D=0,T=0;const A="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-C:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-S-O:0,R="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,$="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)D="start"===s?N:"end"===s?N-g:"nearest"===s?Rs(y,y+g,g,S,O,y+N,y+N+b,b):N-g/2,T="start"===l?k:"center"===l?k-m/2:"end"===l?k-m:Rs(v,v+m,m,h,C,v+k,v+k+w,w),D=Math.max(0,D+y),T=Math.max(0,T+v);else{D="start"===s?N-o-S:"end"===s?N-c+O+M:"nearest"===s?Rs(o,c,n,S,O+M,N,N+b,b):N-(o+n/2)+M/2,T="start"===l?k-u-h:"center"===l?k-(u+r/2)+A/2:"end"===l?k-i+C+A:Rs(u,i,r,h,C+A,k,k+w,w);const{scrollLeft:e,scrollTop:a}=t;D=0===$?0:Math.max(0,Math.min(a+D/$,t.scrollHeight-n/$+M)),T=0===R?0:Math.max(0,Math.min(e+T/R,t.scrollWidth-r/R+A)),N+=a-D,k+=e-T}P.push({el:t,top:D,left:T})}return P})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}}function Bs(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function js(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function zs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Ks(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function Ws(){return String(Vs++)}function qs(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Us(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function Ys(e){return"string"==typeof e.type}function Xs(e){return e.props}var Gs=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Js(e){void 0===e&&(e={});var t={};return Gs.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function Zs(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Qs(t,r)?t[r]:e[r],n}),{})}function Qs(e,t){return void 0!==e[t]}function el(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function tl(e,t,n,r,o){void 0===o&&(o=!1);var i=n.length;if(0===i)return-1;var a=i-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=o?a:0:s>a&&(s=o?0:a);var l=nl(s,t<0,n,r,o);return-1===l?e>=i?-1:e:l}function nl(e,t,n,r,o){void 0===o&&(o=!1);var i=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var s=e;s<i;s++)if(!r(n[s],s))return s;return o?nl(t?i-1:0,t,n,r):-1}function rl(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(Bs(t,e,n)||r&&Bs(t,n.document.activeElement,n))}))}var ol=Fs;"production"!==process.env.NODE_ENV&&(ol=function(e,t,n){var r="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach((function(e){void 0!==t[e]&&void 0===n[e]?console.error('downshift: A component has changed the controlled prop "'+e+'" to be uncontrolled. '+r):void 0===t[e]&&void 0!==n[e]&&console.error('downshift: A component has changed the uncontrolled prop "'+e+'" to be controlled. '+r)}))});var il=js((function(e){al(e).textContent=""}),500);function al(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function sl(e,t){e&&t&&(al(t).textContent=e,il(t))}var ll="production"!==process.env.NODE_ENV?"__autocomplete_unknown__":0,cl="production"!==process.env.NODE_ENV?"__autocomplete_mouseup__":1,ul="production"!==process.env.NODE_ENV?"__autocomplete_item_mouseenter__":2,dl="production"!==process.env.NODE_ENV?"__autocomplete_keydown_arrow_up__":3,pl="production"!==process.env.NODE_ENV?"__autocomplete_keydown_arrow_down__":4,fl="production"!==process.env.NODE_ENV?"__autocomplete_keydown_escape__":5,hl="production"!==process.env.NODE_ENV?"__autocomplete_keydown_enter__":6,ml="production"!==process.env.NODE_ENV?"__autocomplete_keydown_home__":7,gl="production"!==process.env.NODE_ENV?"__autocomplete_keydown_end__":8,vl="production"!==process.env.NODE_ENV?"__autocomplete_click_item__":9,yl="production"!==process.env.NODE_ENV?"__autocomplete_blur_input__":10,bl="production"!==process.env.NODE_ENV?"__autocomplete_change_input__":11,wl="production"!==process.env.NODE_ENV?"__autocomplete_keydown_space_button__":12,xl="production"!==process.env.NODE_ENV?"__autocomplete_click_button__":13,El="production"!==process.env.NODE_ENV?"__autocomplete_blur_button__":14,Il="production"!==process.env.NODE_ENV?"__autocomplete_controlled_prop_updated_selected_item__":15,_l="production"!==process.env.NODE_ENV?"__autocomplete_touchend__":16,Sl=Object.freeze({__proto__:null,unknown:ll,mouseUp:cl,itemMouseEnter:ul,keyDownArrowUp:dl,keyDownArrowDown:pl,keyDownEscape:fl,keyDownEnter:hl,keyDownHome:ml,keyDownEnd:gl,clickItem:vl,blurInput:yl,changeInput:bl,keyDownSpaceButton:wl,clickButton:xl,blurButton:El,controlledPropUpdatedSelectedItem:Il,touchEnd:_l}),Cl=["refKey","ref"],Ol=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Dl=["onKeyDown","onBlur","onChange","onInput","onChangeText"],Nl=["refKey","ref"],kl=["onMouseMove","onMouseDown","onClick","onPress","index","item"],Pl=function(){var e=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+Ws(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.isItemDisabled=function(e,t){var r=n.getItemNodeFromIndex(t);return r&&r.hasAttribute("disabled")},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=Js(t),n.internalSetState(pn({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=Js(t),n.internalSetState(pn({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,i={},a="function"==typeof e;return!a&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,pn({},n.getStateAndHelpers(),e)),n.setState((function(t){var s;t=n.getState(t);var l=a?e(t):e;l=n.props.stateReducer(t,l),r=l.hasOwnProperty("selectedItem");var c={};return r&&l.selectedItem!==t.selectedItem&&(o=l.selectedItem),(s=l).type||(s.type=ll),Object.keys(l).forEach((function(e){t[e]!==l[e]&&(i[e]=l[e]),"type"!==e&&(l[e],Qs(n.props,e)||(c[e]=l[e]))})),a&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,pn({},n.getStateAndHelpers(),l)),c}),(function(){Ls(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,s=o.ref,l=Za(o,Cl),c=(void 0===t?{}:t).suppressRefError,u=void 0!==c&&c;n.getRootProps.called=!0,n.getRootProps.refKey=a,n.getRootProps.suppressRefError=u;var d=n.getState().isOpen;return pn(((r={})[a]=Ks(s,n.rootRef),r.role="combobox",r["aria-expanded"]=d,r["aria-haspopup"]="listbox",r["aria-owns"]=d?n.menuId:void 0,r["aria-labelledby"]=n.labelId,r),l)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:pl})}else this.internalSetState({isOpen:!0,type:pl},(function(){var e=t.getItemCount();if(e>0){var n=tl(t.getState().highlightedIndex,1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:pl})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:dl})}else this.internalSetState({isOpen:!0,type:dl},(function(){var e=t.getItemCount();if(e>0){var n=tl(t.getState().highlightedIndex,-1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:dl})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:hl})}}},Escape:function(e){e.preventDefault(),this.reset(pn({type:fl},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=pn({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:wl})}}),n.inputKeyDownHandlers=pn({},n.keyDownHandlers,{Home:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var r=nl(0,!1,{length:n},this.isItemDisabled);this.setHighlightedIndex(r,{type:ml})}}},End:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var r=nl(n-1,!0,{length:n},this.isItemDisabled);this.setHighlightedIndex(r,{type:gl})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick;t.onPress;var o=t.onKeyDown,i=t.onKeyUp,a=t.onBlur,s=Za(t,Ol),l=n.getState().isOpen,c={onClick:zs(r,n.buttonHandleClick),onKeyDown:zs(o,n.buttonHandleKeyDown),onKeyUp:zs(i,n.buttonHandleKeyUp),onBlur:zs(a,n.buttonHandleBlur)};return pn({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},s.disabled?{}:c,s)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=el(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(Qa(n),e)},n.buttonHandleClick=function(e){if(e.preventDefault(),n.props.environment){var t=n.props.environment.document,r=t.body,o=t.activeElement;r&&r===o&&e.target.focus()}"test"===process.env.NODE_ENV?n.toggleMenu({type:xl}):n.internalSetTimeout((function(){return n.toggleMenu({type:xl})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){if(!n.isMouseDown&&n.props.environment){var e=n.props.environment.document.activeElement;null!=e&&e.id===n.inputId||e===t||n.reset({type:El})}}))},n.getLabelProps=function(e){return pn({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,o=t.onBlur,i=t.onChange,a=t.onInput;t.onChangeText;var s=Za(t,Dl),l={};var c,u=n.getState(),d=u.inputValue,p=u.isOpen,f=u.highlightedIndex;s.disabled||((c={}).onChange=zs(i,a,n.inputHandleChange),c.onKeyDown=zs(r,n.inputHandleKeyDown),c.onBlur=zs(o,n.inputHandleBlur),l=c);return pn({"aria-autocomplete":"list","aria-activedescendant":p&&"number"==typeof f&&f>=0?n.getItemId(f):void 0,"aria-controls":p?n.menuId:void 0,"aria-labelledby":s&&s["aria-label"]?void 0:n.labelId,autoComplete:"off",value:d,id:n.inputId},l,s)},n.inputHandleKeyDown=function(e){var t=el(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(Qa(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:bl,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e;if(!n.isMouseDown&&n.props.environment){var t=n.props.environment.document.activeElement;(null==t||null==(e=t.dataset)?void 0:e.toggle)&&n._rootNode&&n._rootNode.contains(t)||n.reset({type:yl})}}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,s=o.ref,l=Za(o,Nl),c=(void 0===t?{}:t).suppressRefError,u=void 0!==c&&c;return n.getMenuProps.called=!0,n.getMenuProps.refKey=a,n.getMenuProps.suppressRefError=u,pn(((r={})[a]=Ks(s,n.menuRef),r.role="listbox",r["aria-labelledby"]=l&&l["aria-label"]?void 0:n.labelId,r.id=n.menuId,r),l)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,o=r.onMouseMove,i=r.onMouseDown,a=r.onClick;r.onPress;var s,l,c=r.index,u=r.item,d=void 0===u?"production"===process.env.NODE_ENV?void 0:(s="getItemProps",l="item",void console.error('The property "'+l+'" is required in "'+s+'"')):u,p=Za(r,kl);void 0===c?(n.items.push(d),c=n.items.indexOf(d)):n.items[c]=d;var f=a,h=((t={onMouseMove:zs(o,(function(){c!==n.getState().highlightedIndex&&(n.setHighlightedIndex(c,{type:ul}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:zs(i,(function(e){e.preventDefault()}))}).onClick=zs(f,(function(){n.selectItemAtIndex(c,{type:vl})})),t),m=p.disabled?{onMouseDown:h.onMouseDown}:h;return pn({id:n.getItemId(c),role:"option","aria-selected":n.getState().highlightedIndex===c},m,p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=Js(e),n.internalSetState((function(t){var r=t.selectedItem;return pn({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=Js(e),n.internalSetState((function(t){var r=t.isOpen;return pn({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),Ls(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=js((function(){var e;if(null!=(e=n.props)&&null!=(e=e.environment)&&e.document){var t=n.getState(),r=n.items[t.highlightedIndex],o=n.getItemCount(),i=n.props.getA11yStatusMessage(pn({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:o,highlightedItem:r},t));n.previousResultCount=o,sl(i,n.props.environment.document)}}),200);var r=n.props,o=r.defaultHighlightedIndex,i=r.initialHighlightedIndex,a=void 0===i?o:i,s=r.defaultIsOpen,l=r.initialIsOpen,c=void 0===l?s:l,u=r.initialInputValue,d=void 0===u?"":u,p=r.initialSelectedItem,f=void 0===p?null:p,h=n.getState({highlightedIndex:a,isOpen:c,inputValue:d,selectedItem:f});return null!=h.selectedItem&&void 0===n.props.initialInputValue&&(h.inputValue=n.props.itemToString(h.selectedItem)),n.state=h,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,es(t,n);var o=r.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},o.getState=function(e){return void 0===e&&(e=this.state),Zs(e,this.props)},o.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},o.getItemNodeFromIndex=function(e){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(e)):null},o.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},o.moveHighlightedIndex=function(e,t){var n=this.getItemCount(),r=this.getState().highlightedIndex;if(n>0){var o=tl(r,e,{length:n},this.isItemDisabled,!0);this.setHighlightedIndex(o,t)}},o.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,l=this.getToggleButtonProps,c=this.getLabelProps,u=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,g=this.selectItem,v=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,w=this.clearSelection,x=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:c,getMenuProps:u,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:g,selectItemAtIndex:v,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:w,clearItems:x,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},o.componentDidMount=function(){var e=this;if("production"!==process.env.NODE_ENV&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Tl(this._menuNode,this.getMenuProps),this.props.environment){var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!rl(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:cl},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},r=function(){e.isTouchMove=!1},o=function(){e.isTouchMove=!0},i=function(t){var n=rl(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:_l},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",o),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",o),a.removeEventListener("touchend",i)}}else this.cleanup=function(){e.internalClearTimeouts()}},o.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},o.componentDidUpdate=function(e,t){"production"!==process.env.NODE_ENV&&(ol(this.state,e,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Tl(this._menuNode,this.getMenuProps)),Qs(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Il,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var e=Us(this.props.children,Fs);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=Us(e(this.getStateAndHelpers()));if(!t)return null;if(this.getRootProps.called||this.props.suppressRefError)return"production"===process.env.NODE_ENV||this.getRootProps.suppressRefError||this.props.suppressRefError||function(e,t){var n=t.refKey,r="ref"!==n,o=!Ys(e);!o||r||Ps.isForwardRef(e)?!o&&r&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'):console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps");Ps.isForwardRef(e)||Xs(e)[n]||console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}(t,this.getRootProps),t;if(Ys(t))return p(t,this.getRootProps(Xs(t)));if("production"!==process.env.NODE_ENV)throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r}(v);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:qs,itemToString:function(e){return null==e?"":("production"===process.env.NODE_ENV||(t=e,"[object Object]"!==Object.prototype.toString.call(t))||e.hasOwnProperty("toString")||console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",e),String(e));var t},onStateChange:Fs,onInputValueChange:Fs,onUserAction:Fs,onChange:Fs,onSelect:Fs,onOuterClick:Fs,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?void 0:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:Hs},e.stateChangeTypes=Sl,e}();function Tl(e,t){var n=t.refKey;e||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}"production"!==process.env.NODE_ENV&&(Pl.propTypes={children:Cs.func,defaultHighlightedIndex:Cs.number,defaultIsOpen:Cs.bool,initialHighlightedIndex:Cs.number,initialSelectedItem:Cs.any,initialInputValue:Cs.string,initialIsOpen:Cs.bool,getA11yStatusMessage:Cs.func,itemToString:Cs.func,onChange:Cs.func,onSelect:Cs.func,onStateChange:Cs.func,onInputValueChange:Cs.func,onUserAction:Cs.func,onOuterClick:Cs.func,selectedItemChanged:Cs.func,stateReducer:Cs.func,itemCount:Cs.number,id:Cs.string,environment:Cs.shape({addEventListener:Cs.func.isRequired,removeEventListener:Cs.func.isRequired,document:Cs.shape({createElement:Cs.func.isRequired,getElementById:Cs.func.isRequired,activeElement:Cs.any.isRequired,body:Cs.any.isRequired}).isRequired,Node:Cs.func.isRequired}),suppressRefError:Cs.bool,scrollIntoView:Cs.func,selectedItem:Cs.any,isOpen:Cs.bool,inputValue:Cs.string,highlightedIndex:Cs.number,labelId:Cs.string,inputId:Cs.string,menuId:Cs.string,getItemId:Cs.func});var Al=["isInitialMount","highlightedIndex","items","environment"],Ml={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Rl(e,t,n){var r=e.props,o=e.type,i={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var o=t.props,i=t.type,a="on"+Hl(e)+"Change";o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a](pn({type:i},r))}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange(pn({type:o},i))}var $l=js((function(e,t){sl(e(),t)}),200),Vl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g:h,Ll="useId"in t?function(e){var r=e.id,o=e.labelId,i=e.menuId,a=e.getItemId,s=e.toggleButtonId,l=e.inputId,c="downshift-"+t.useId();r||(r=c);var u=n({labelId:o||r+"-label",menuId:i||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"});return u.current}:function(e){var t=e.id,r=void 0===t?"downshift-"+Ws():t,o=e.labelId,i=e.menuId,a=e.getItemId,s=e.toggleButtonId,l=e.inputId,c=n({labelId:o||r+"-label",menuId:i||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"});return c.current};function Fl(e,t,n,r){var o,i;if(void 0===e){if(void 0===t)throw new Error(r);o=n[t],i=t}else i=void 0===t?n.indexOf(e):t,o=e;return[o,i]}function Hl(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Bl(e){var t=n(e);return t.current=e,t}function jl(e,t,r){var o=n(),i=n(),a=l((function(t,n){i.current=n,t=Zs(t,n.props);var r=e(t,n);return n.props.stateReducer(t,pn({},n,{changes:r}))}),[e]),s=y(a,t,r),c=s[0],u=s[1],d=Bl(t),p=l((function(e){return u(pn({props:d.current},e))}),[d]),f=i.current;return h((function(){f&&o.current&&o.current!==c&&Rl(f,Zs(o.current,f.props),c),o.current=c}),[c,t,f]),[c,p]}var zl={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:Hs,environment:"undefined"==typeof window?void 0:window};function Kl(e,t,n){void 0===n&&(n=Ml);var r=e["default"+Hl(t)];return void 0!==r?r:n[t]}function Wl(e,t,n){void 0===n&&(n=Ml);var r=e[t];if(void 0!==r)return r;var o=e["initial"+Hl(t)];return void 0!==o?o:Kl(e,t,n)}function ql(e){var t=Wl(e,"selectedItem"),n=Wl(e,"isOpen"),r=Wl(e,"highlightedIndex"),o=Wl(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Ul(e,t,n){var r=e.items,o=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,a=t.selectedItem,s=t.highlightedIndex;return 0===r.length?-1:void 0!==o&&s===o?o:void 0!==i?i:a?r.indexOf(a):0===n?-1:n<0?r.length-1:0}function Yl(e,t,r,o){var i=n({isMouseDown:!1,isTouchMove:!1});return h((function(){if(r){var n=function(){i.current.isMouseDown=!0},a=function(n){i.current.isMouseDown=!1,e&&!rl(n.target,t.map((function(e){return e.current})),r)&&o()},s=function(){i.current.isTouchMove=!1},l=function(){i.current.isTouchMove=!0},c=function(n){!e||i.current.isTouchMove||rl(n.target,t.map((function(e){return e.current})),r,!1)||o()};return r.addEventListener("mousedown",n),r.addEventListener("mouseup",a),r.addEventListener("touchstart",s),r.addEventListener("touchmove",l),r.addEventListener("touchend",c),function(){r.removeEventListener("mousedown",n),r.removeEventListener("mouseup",a),r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",l),r.removeEventListener("touchend",c)}}}),[e,r]),i}var Xl=function(){return Fs};function Gl(e,t,n){var r=n.isInitialMount,o=n.highlightedIndex,i=n.items,a=n.environment,s=Za(n,Al);h((function(){!r&&null!=a&&a.document&&$l((function(){return e(pn({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length},s))}),a.document)}),t)}function Jl(e){var t=e.highlightedIndex,r=e.isOpen,o=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,s=e.scrollIntoView,l=n(!0);return Vl((function(){t<0||!r||!Object.keys(o.current).length||(!1===l.current?l.current=!0:s(i(t),a))}),[t]),l}"production"!==process.env.NODE_ENV&&(Xl=function(){for(var e=n(!0),t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=n(r.reduce((function(e,t){return e[t]={},e}),{}));return h((function(){Object.keys(i.current).forEach((function(t){var n=i.current[t];if(!e.current||Object.keys(n).length){var r=n.suppressRefError,o=n.refKey,a=n.elementRef;a&&a.current||r||console.error('downshift: The ref prop "'+o+'" from '+t+" was not applied correctly on your element.")}else console.error("downshift: You forgot to call the "+t+" getter function on your component / element.")})),e.current=!1})),l((function(e,t,n,r){i.current[e]={suppressRefError:t,refKey:n,elementRef:r}}),[])});var Zl=Fs;function Ql(e,t,n){var r;return void 0===n&&(n=!0),pn({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&pn({selectedItem:e.items[t],isOpen:Kl(e,"isOpen"),highlightedIndex:Kl(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}"production"!==process.env.NODE_ENV&&(Zl=function(e){var t=e.isInitialMount,r=e.props,o=e.state,i=n(r);h((function(){t||(ol(o,i.current,r),i.current=r)}),[o,r,t])});var ec={environment:Cs.shape({addEventListener:Cs.func.isRequired,removeEventListener:Cs.func.isRequired,document:Cs.shape({createElement:Cs.func.isRequired,getElementById:Cs.func.isRequired,activeElement:Cs.any.isRequired,body:Cs.any.isRequired}).isRequired,Node:Cs.func.isRequired}),itemToString:Cs.func,stateReducer:Cs.func},tc=pn({},ec,{getA11yStatusMessage:Cs.func,highlightedIndex:Cs.number,defaultHighlightedIndex:Cs.number,initialHighlightedIndex:Cs.number,isOpen:Cs.bool,defaultIsOpen:Cs.bool,initialIsOpen:Cs.bool,selectedItem:Cs.any,initialSelectedItem:Cs.any,defaultSelectedItem:Cs.any,id:Cs.string,labelId:Cs.string,menuId:Cs.string,getItemId:Cs.func,toggleButtonId:Cs.string,onSelectedItemChange:Cs.func,onHighlightedIndexChange:Cs.func,onStateChange:Cs.func,onIsOpenChange:Cs.func,scrollIntoView:Cs.func});function nc(e,t,n){var r,o=t.type,i=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ul(i,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Ul(i,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:Kl(i,"highlightedIndex"),isOpen:Kl(i,"isOpen"),selectedItem:Kl(i,"selectedItem"),inputValue:Kl(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return pn({},e,r)}var rc=I(I({},tc),{items:Cs.array.isRequired,isItemDisabled:Cs.func,getA11ySelectionMessage:Cs.func});var oc=I(I({},zl),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""},isItemDisabled:function(){return!1}}),ic=Fs;"production"!==process.env.NODE_ENV&&(ic=function(e,t){Cs.checkPropTypes(rc,e,"prop",t.name)});var ac="production"!==process.env.NODE_ENV?"__togglebutton_click__":0,sc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_arrow_down__":1,lc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_arrow_up__":2,cc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_character__":3,uc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_escape__":4,dc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_home__":5,pc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_end__":6,fc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_enter__":7,hc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_space_button__":8,mc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_page_up__":9,gc="production"!==process.env.NODE_ENV?"__togglebutton_keydown_page_down__":10,vc="production"!==process.env.NODE_ENV?"__togglebutton_blur__":11,yc="production"!==process.env.NODE_ENV?"__menu_mouse_leave__":12,bc="production"!==process.env.NODE_ENV?"__item_mouse_move__":13,wc="production"!==process.env.NODE_ENV?"__item_click__":14,xc="production"!==process.env.NODE_ENV?"__function_toggle_menu__":15,Ec="production"!==process.env.NODE_ENV?"__function_open_menu__":16,Ic="production"!==process.env.NODE_ENV?"__function_close_menu__":17,_c="production"!==process.env.NODE_ENV?"__function_set_highlighted_index__":18,Sc="production"!==process.env.NODE_ENV?"__function_select_item__":19,Cc="production"!==process.env.NODE_ENV?"__function_set_input_value__":20,Oc="production"!==process.env.NODE_ENV?"__function_reset__":21,Dc=Object.freeze({__proto__:null,ToggleButtonClick:ac,ToggleButtonKeyDownArrowDown:sc,ToggleButtonKeyDownArrowUp:lc,ToggleButtonKeyDownCharacter:cc,ToggleButtonKeyDownEscape:uc,ToggleButtonKeyDownHome:dc,ToggleButtonKeyDownEnd:pc,ToggleButtonKeyDownEnter:fc,ToggleButtonKeyDownSpaceButton:hc,ToggleButtonKeyDownPageUp:mc,ToggleButtonKeyDownPageDown:gc,ToggleButtonBlur:vc,MenuMouseLeave:yc,ItemMouseMove:bc,ItemClick:wc,FunctionToggleMenu:xc,FunctionOpenMenu:Ec,FunctionCloseMenu:Ic,FunctionSetHighlightedIndex:_c,FunctionSelectItem:Sc,FunctionSetInputValue:Cc,FunctionReset:Oc});function Nc(e,t){var n,r,o=t.type,i=t.props,a=t.altKey;switch(o){case wc:r={isOpen:Kl(i,"isOpen"),highlightedIndex:Kl(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case cc:var s=t.key,l=""+e.inputValue+s,c=function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.isItemDisabled,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)&&!i(c,l))return l}return n}({keysSoFar:l,highlightedIndex:!e.isOpen&&e.selectedItem?i.items.indexOf(e.selectedItem):e.highlightedIndex,items:i.items,itemToString:i.itemToString,isItemDisabled:i.isItemDisabled});r={inputValue:l,highlightedIndex:c,isOpen:!0};break;case sc:r={highlightedIndex:e.isOpen?tl(e.highlightedIndex,1,i.items,i.isItemDisabled):a&&null==e.selectedItem?-1:Ul(i,e,1),isOpen:!0};break;case lc:if(e.isOpen&&a)r=Ql(i,e.highlightedIndex,!1);else r={highlightedIndex:e.isOpen?tl(e.highlightedIndex,-1,i.items,i.isItemDisabled):Ul(i,e,-1),isOpen:!0};break;case fc:case hc:r=Ql(i,e.highlightedIndex,!1);break;case dc:r={highlightedIndex:nl(0,!1,i.items,i.isItemDisabled),isOpen:!0};break;case pc:r={highlightedIndex:nl(i.items.length-1,!0,i.items,i.isItemDisabled),isOpen:!0};break;case mc:r={highlightedIndex:tl(e.highlightedIndex,-10,i.items,i.isItemDisabled)};break;case gc:r={highlightedIndex:tl(e.highlightedIndex,10,i.items,i.isItemDisabled)};break;case uc:r={isOpen:!1,highlightedIndex:-1};break;case vc:r=pn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=i.items)?void 0:n.length)&&{selectedItem:i.items[e.highlightedIndex]});break;case Sc:r={selectedItem:t.selectedItem};break;default:return nc(e,t,Dc)}return pn({},e,r)}var kc=["onMouseLeave","refKey","ref"],Pc=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],Tc=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Ac(e){void 0===e&&(e={}),ic(e,Ac);var t=pn({},oc,e),r=t.items,o=t.scrollIntoView,i=t.environment,a=t.itemToString,c=t.getA11ySelectionMessage,u=t.getA11yStatusMessage,d=function(e,t,n){var r=jl(e,t,n),o=r[0],i=r[1];return[Zs(o,t),i]}(Nc,t,ql),p=d[0],f=d[1],m=p.isOpen,g=p.highlightedIndex,v=p.selectedItem,y=p.inputValue,b=n(null),w=n(null),x=n({}),E=n(null),I=Ll(t),_=n(),S=n(!0),C=Bl({state:p,props:t}),O=l((function(e){return x.current[I.getItemId(e)]}),[I]);Gl(u,[m,g,y,r],pn({isInitialMount:S.current,previousResultCount:_.current,items:r,environment:i,itemToString:a},p)),Gl(c,[v],pn({isInitialMount:S.current,previousResultCount:_.current,items:r,environment:i,itemToString:a},p));var D=Jl({menuElement:w.current,highlightedIndex:g,isOpen:m,itemRefs:x,scrollIntoView:o,getItemNodeFromIndex:O});h((function(){return E.current=js((function(e){e({type:Cc,inputValue:""})}),500),function(){E.current.cancel()}}),[]),h((function(){y&&E.current(f)}),[f,y]),Zl({isInitialMount:S.current,props:t,state:p}),h((function(){S.current||(_.current=r.length)})),h((function(){Wl(t,"isOpen")&&b.current&&b.current.focus()}),[]);var N=Yl(m,[w,b],i,(function(){f({type:vc})})),k=Xl("getMenuProps","getToggleButtonProps");h((function(){return S.current=!1,function(){S.current=!0}}),[]),h((function(){m||(x.current={})}),[m]);var P=s((function(){return{ArrowDown:function(e){e.preventDefault(),f({type:sc,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),f({type:lc,altKey:e.altKey})},Home:function(e){e.preventDefault(),f({type:dc})},End:function(e){e.preventDefault(),f({type:pc})},Escape:function(){C.current.state.isOpen&&f({type:uc})},Enter:function(e){e.preventDefault(),f({type:C.current.state.isOpen?fc:ac})},PageUp:function(e){C.current.state.isOpen&&(e.preventDefault(),f({type:mc}))},PageDown:function(e){C.current.state.isOpen&&(e.preventDefault(),f({type:gc}))}," ":function(e){e.preventDefault();var t=C.current.state;t.isOpen?t.inputValue?f({type:cc,key:" "}):f({type:hc}):f({type:ac})}}}),[f,C]),T=l((function(){f({type:xc})}),[f]),A=l((function(){f({type:Ic})}),[f]),M=l((function(){f({type:Ec})}),[f]),R=l((function(e){f({type:_c,highlightedIndex:e})}),[f]),$=l((function(e){f({type:Sc,selectedItem:e})}),[f]),V=l((function(){f({type:Oc})}),[f]),L=l((function(e){f({type:Cc,inputValue:e})}),[f]),F=l((function(e){return pn({id:I.labelId,htmlFor:I.toggleButtonId},e)}),[I]),H=l((function(e,t){var n,r=void 0===e?{}:e,o=r.onMouseLeave,i=r.refKey,a=void 0===i?"ref":i,s=r.ref,l=Za(r,kc),c=(void 0===t?{}:t).suppressRefError;return k("getMenuProps",void 0!==c&&c,a,w),pn(((n={})[a]=Ks(s,(function(e){w.current=e})),n.id=I.menuId,n.role="listbox",n["aria-labelledby"]=l&&l["aria-label"]?void 0:""+I.labelId,n.onMouseLeave=zs(o,(function(){f({type:yc})})),n),l)}),[f,k,I]),B=l((function(e,t){var n,r=void 0===e?{}:e,o=r.onBlur,i=r.onClick;r.onPress;var a=r.onKeyDown,s=r.refKey,l=void 0===s?"ref":s,c=r.ref,u=Za(r,Pc),d=(void 0===t?{}:t).suppressRefError,p=void 0!==d&&d,h=C.current.state,m=pn(((n={})[l]=Ks(c,(function(e){b.current=e})),n["aria-activedescendant"]=h.isOpen&&h.highlightedIndex>-1?I.getItemId(h.highlightedIndex):"",n["aria-controls"]=I.menuId,n["aria-expanded"]=C.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=u&&u["aria-label"]?void 0:""+I.labelId,n.id=I.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=zs(o,(function(){h.isOpen&&!N.current.isMouseDown&&f({type:vc})})),n),u);return u.disabled||(m.onClick=zs(i,(function(){f({type:ac})})),m.onKeyDown=zs(a,(function(e){var t=el(e);t&&P[t]?P[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&f({type:cc,key:t})}))),k("getToggleButtonProps",p,l,b),m}),[C,I,k,f,N,P]),j=l((function(e){var t,n=void 0===e?{}:e,r=n.item,o=n.index,i=n.onMouseMove,a=n.onClick,s=n.onMouseDown;n.onPress;var l=n.refKey,c=void 0===l?"ref":l,u=n.disabled,d=n.ref,p=Za(n,Tc);void 0!==u&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var h=C.current,m=h.state,g=h.props,v=Fl(r,o,g.items,"Pass either item or index to getItemProps!"),y=v[0],b=v[1],w=g.isItemDisabled(y,b),E=pn(((t={})[c]=Ks(d,(function(e){e&&(x.current[I.getItemId(b)]=e)})),t["aria-disabled"]=w,t["aria-selected"]=""+(y===m.selectedItem),t.id=I.getItemId(b),t.role="option",t),p);return w||(E.onClick=zs(a,(function(){f({type:wc,index:b})}))),E.onMouseMove=zs(i,(function(){b!==m.highlightedIndex&&(D.current=!1,f({type:bc,index:b,disabled:w}))})),E.onMouseDown=zs(s,(function(e){return e.preventDefault()})),E}),[C,I,D,f]);return{getToggleButtonProps:B,getLabelProps:F,getMenuProps:H,getItemProps:j,toggleMenu:T,openMenu:M,closeMenu:A,setHighlightedIndex:R,selectItem:$,reset:V,setInputValue:L,highlightedIndex:g,isOpen:m,selectedItem:v,inputValue:y}}Ac.stateChangeTypes=Dc;var Mc="production"!==process.env.NODE_ENV?"__input_keydown_arrow_down__":0,Rc="production"!==process.env.NODE_ENV?"__input_keydown_arrow_up__":1,$c="production"!==process.env.NODE_ENV?"__input_keydown_escape__":2,Vc="production"!==process.env.NODE_ENV?"__input_keydown_home__":3,Lc="production"!==process.env.NODE_ENV?"__input_keydown_end__":4,Fc="production"!==process.env.NODE_ENV?"__input_keydown_page_up__":5,Hc="production"!==process.env.NODE_ENV?"__input_keydown_page_down__":6,Bc="production"!==process.env.NODE_ENV?"__input_keydown_enter__":7,jc="production"!==process.env.NODE_ENV?"__input_change__":8,zc="production"!==process.env.NODE_ENV?"__input_blur__":9,Kc="production"!==process.env.NODE_ENV?"__input_click__":10,Wc="production"!==process.env.NODE_ENV?"__menu_mouse_leave__":11,qc="production"!==process.env.NODE_ENV?"__item_mouse_move__":12,Uc="production"!==process.env.NODE_ENV?"__item_click__":13,Yc="production"!==process.env.NODE_ENV?"__togglebutton_click__":14,Xc="production"!==process.env.NODE_ENV?"__function_toggle_menu__":15,Gc="production"!==process.env.NODE_ENV?"__function_open_menu__":16,Jc="production"!==process.env.NODE_ENV?"__function_close_menu__":17,Zc="production"!==process.env.NODE_ENV?"__function_set_highlighted_index__":18,Qc="production"!==process.env.NODE_ENV?"__function_select_item__":19,eu="production"!==process.env.NODE_ENV?"__function_set_input_value__":20,tu="production"!==process.env.NODE_ENV?"__function_reset__":21,nu="production"!==process.env.NODE_ENV?"__controlled_prop_updated_selected_item__":22,ru=Object.freeze({__proto__:null,InputKeyDownArrowDown:Mc,InputKeyDownArrowUp:Rc,InputKeyDownEscape:$c,InputKeyDownHome:Vc,InputKeyDownEnd:Lc,InputKeyDownPageUp:Fc,InputKeyDownPageDown:Hc,InputKeyDownEnter:Bc,InputChange:jc,InputBlur:zc,InputClick:Kc,MenuMouseLeave:Wc,ItemMouseMove:qc,ItemClick:Uc,ToggleButtonClick:Yc,FunctionToggleMenu:Xc,FunctionOpenMenu:Gc,FunctionCloseMenu:Jc,FunctionSetHighlightedIndex:Zc,FunctionSelectItem:Qc,FunctionSetInputValue:eu,FunctionReset:tu,ControlledPropUpdatedSelectedItem:nu});function ou(e){var t=ql(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),pn({},t,{inputValue:r})}var iu=pn({},tc,{items:Cs.array.isRequired,isItemDisabled:Cs.func,selectedItemChanged:Cs.func,getA11ySelectionMessage:Cs.func,inputValue:Cs.string,defaultInputValue:Cs.string,initialInputValue:Cs.string,inputId:Cs.string,onInputValueChange:Cs.func});var au=Fs;"production"!==process.env.NODE_ENV&&(au=function(e,t){Cs.checkPropTypes(iu,e,"prop",t.name)});var su=pn({},zl,{selectedItemChanged:function(e,t){return e!==t},getA11yStatusMessage:qs,isItemDisabled:function(){return!1}});function lu(e,t){var n,r,o=t.type,i=t.props,a=t.altKey;switch(o){case Uc:r={isOpen:Kl(i,"isOpen"),highlightedIndex:Kl(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Mc:r=e.isOpen?{highlightedIndex:tl(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:a&&null==e.selectedItem?-1:Ul(i,e,1),isOpen:i.items.length>=0};break;case Rc:r=e.isOpen?a?Ql(i,e.highlightedIndex):{highlightedIndex:tl(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:Ul(i,e,-1),isOpen:i.items.length>=0};break;case Bc:r=Ql(i,e.highlightedIndex);break;case $c:r=pn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Fc:r={highlightedIndex:tl(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case Hc:r={highlightedIndex:tl(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case Vc:r={highlightedIndex:nl(0,!1,i.items,i.isItemDisabled)};break;case Lc:r={highlightedIndex:nl(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case zc:r=pn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=i.items)?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case jc:r={isOpen:!0,highlightedIndex:Kl(i,"highlightedIndex"),inputValue:t.inputValue};break;case Kc:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ul(i,e,0)};break;case Qc:r={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case nu:r={inputValue:t.inputValue};break;default:return nc(e,t,ru)}return pn({},e,r)}var cu=["onMouseLeave","refKey","ref"],uu=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],du=["onClick","onPress","refKey","ref"],pu=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function fu(e){void 0===e&&(e={}),au(e,fu);var t=pn({},su,e),r=t.items,o=t.scrollIntoView,i=t.environment,a=t.getA11yStatusMessage,c=t.getA11ySelectionMessage,u=t.itemToString,d=function(e,t,r){var o=n(),i=jl(e,t,r),a=i[0],s=i[1];return h((function(){Qs(t,"selectedItem")&&(t.selectedItemChanged(o.current,t.selectedItem)&&s({type:nu,inputValue:t.itemToString(t.selectedItem)}),o.current=a.selectedItem===o.current?t.selectedItem:a.selectedItem)}),[a.selectedItem,t.selectedItem]),[Zs(a,t),s]}(lu,t,ou),p=d[0],f=d[1],m=p.isOpen,g=p.highlightedIndex,v=p.selectedItem,y=p.inputValue,b=n(null),w=n({}),x=n(null),E=n(null),I=n(!0),_=Ll(t),S=n(),C=Bl({state:p,props:t}),O=l((function(e){return w.current[_.getItemId(e)]}),[_]);Gl(a,[m,g,y,r],pn({isInitialMount:I.current,previousResultCount:S.current,items:r,environment:i,itemToString:u},p)),Gl(c,[v],pn({isInitialMount:I.current,previousResultCount:S.current,items:r,environment:i,itemToString:u},p));var D=Jl({menuElement:b.current,highlightedIndex:g,isOpen:m,itemRefs:w,scrollIntoView:o,getItemNodeFromIndex:O});Zl({isInitialMount:I.current,props:t,state:p}),h((function(){Wl(t,"isOpen")&&x.current&&x.current.focus()}),[]),h((function(){I.current||(S.current=r.length)}));var N=Yl(m,[x,b,E],i,(function(){f({type:zc,selectItem:!1})})),k=Xl("getInputProps","getMenuProps");h((function(){return I.current=!1,function(){I.current=!0}}),[]),h((function(){m||(w.current={})}),[m]),h((function(){var e;m&&null!=i&&i.document&&null!=x&&null!=(e=x.current)&&e.focus&&i.document.activeElement!==x.current&&x.current.focus()}),[m,i]);var P=s((function(){return{ArrowDown:function(e){e.preventDefault(),f({type:Mc,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),f({type:Rc,altKey:e.altKey})},Home:function(e){C.current.state.isOpen&&(e.preventDefault(),f({type:Vc}))},End:function(e){C.current.state.isOpen&&(e.preventDefault(),f({type:Lc}))},Escape:function(e){var t=C.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),f({type:$c}))},Enter:function(e){C.current.state.isOpen&&229!==e.which&&(e.preventDefault(),f({type:Bc}))},PageUp:function(e){C.current.state.isOpen&&(e.preventDefault(),f({type:Fc}))},PageDown:function(e){C.current.state.isOpen&&(e.preventDefault(),f({type:Hc}))}}}),[f,C]),T=l((function(e){return pn({id:_.labelId,htmlFor:_.inputId},e)}),[_]),A=l((function(e,t){var n,r=void 0===e?{}:e,o=r.onMouseLeave,i=r.refKey,a=void 0===i?"ref":i,s=r.ref,l=Za(r,cu),c=(void 0===t?{}:t).suppressRefError;return k("getMenuProps",void 0!==c&&c,a,b),pn(((n={})[a]=Ks(s,(function(e){b.current=e})),n.id=_.menuId,n.role="listbox",n["aria-labelledby"]=l&&l["aria-label"]?void 0:""+_.labelId,n.onMouseLeave=zs(o,(function(){f({type:Wc})})),n),l)}),[f,k,_]),M=l((function(e){var t,n,r=void 0===e?{}:e,o=r.item,i=r.index,a=r.refKey,s=void 0===a?"ref":a,l=r.ref,c=r.onMouseMove,u=r.onMouseDown,d=r.onClick;r.onPress;var p=r.disabled,h=Za(r,uu);void 0!==p&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var m=C.current,g=m.props,v=m.state,y=Fl(o,i,g.items,"Pass either item or index to getItemProps!"),b=y[0],x=y[1],E=g.isItemDisabled(b,x),I=d;return pn(((t={})[s]=Ks(l,(function(e){e&&(w.current[_.getItemId(x)]=e)})),t["aria-disabled"]=E,t["aria-selected"]=""+(x===v.highlightedIndex),t.id=_.getItemId(x),t.role="option",t),!E&&((n={}).onClick=zs(I,(function(){f({type:Uc,index:x})})),n),{onMouseMove:zs(c,(function(){x!==v.highlightedIndex&&(D.current=!1,f({type:qc,index:x,disabled:E}))})),onMouseDown:zs(u,(function(e){return e.preventDefault()}))},h)}),[f,C,D,_]),R=l((function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var o=n.refKey,i=void 0===o?"ref":o,a=n.ref,s=Za(n,du),l=C.current.state;return pn(((t={})[i]=Ks(a,(function(e){E.current=e})),t["aria-controls"]=_.menuId,t["aria-expanded"]=l.isOpen,t.id=_.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&pn({},{onClick:zs(r,(function(){f({type:Yc})}))}),s)}),[f,C,_]),$=l((function(e,t){var n,r=void 0===e?{}:e,o=r.onKeyDown,a=r.onChange,s=r.onInput,l=r.onBlur;r.onChangeText;var c=r.onClick,u=r.refKey,d=void 0===u?"ref":u,p=r.ref,h=Za(r,pu),m=(void 0===t?{}:t).suppressRefError;k("getInputProps",void 0!==m&&m,d,x);var g,v=C.current.state,y={};h.disabled||((g={}).onChange=zs(a,s,(function(e){f({type:jc,inputValue:e.target.value})})),g.onKeyDown=zs(o,(function(e){var t=el(e);t&&P[t]&&P[t](e)})),g.onBlur=zs(l,(function(e){if(null!=i&&i.document&&v.isOpen&&!N.current.isMouseDown){var t=null===e.relatedTarget&&i.document.activeElement!==i.document.body;f({type:zc,selectItem:!t})}})),g.onClick=zs(c,(function(){f({type:Kc})})),y=g);return pn(((n={})[d]=Ks(p,(function(e){x.current=e})),n["aria-activedescendant"]=v.isOpen&&v.highlightedIndex>-1?_.getItemId(v.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=_.menuId,n["aria-expanded"]=v.isOpen,n["aria-labelledby"]=h&&h["aria-label"]?void 0:_.labelId,n.autoComplete="off",n.id=_.inputId,n.role="combobox",n.value=v.inputValue,n),y,h)}),[k,C,_,P,f,N,i]),V=l((function(){f({type:Xc})}),[f]),L=l((function(){f({type:Jc})}),[f]),F=l((function(){f({type:Gc})}),[f]),H=l((function(e){f({type:Zc,highlightedIndex:e})}),[f]),B=l((function(e){f({type:Qc,selectedItem:e})}),[f]);return{getItemProps:M,getLabelProps:T,getMenuProps:A,getInputProps:$,getToggleButtonProps:R,toggleMenu:V,openMenu:F,closeMenu:L,setHighlightedIndex:H,setInputValue:l((function(e){f({type:eu,inputValue:e})}),[f]),selectItem:B,reset:l((function(){f({type:tu})}),[f]),highlightedIndex:g,isOpen:m,selectedItem:v,inputValue:y}}fu.stateChangeTypes=ru,pn({},ec,{selectedItems:Cs.array,initialSelectedItems:Cs.array,defaultSelectedItems:Cs.array,getA11yRemovalMessage:Cs.func,activeIndex:Cs.number,initialActiveIndex:Cs.number,defaultActiveIndex:Cs.number,onActiveIndexChange:Cs.func,onSelectedItemsChange:Cs.func,keyNavigationNext:Cs.string,keyNavigationPrevious:Cs.string}),process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const hu=e=>t.createElement("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M3.79398 7.44662C3.56997 7.44983 3.35397 7.36343 3.19398 7.20662L0.445976 4.49462C0.281619 4.33832 0.188576 4.12144 0.188576 3.89462C0.188576 3.66781 0.281619 3.45093 0.445976 3.29462C0.778133 2.96516 1.31382 2.96516 1.64598 3.29462L3.79398 5.41862L8.35398 0.810623C8.51028 0.646266 8.72716 0.553223 8.95398 0.553223C9.18079 0.553223 9.39767 0.646266 9.55398 0.810623C9.71833 0.966927 9.81138 1.18381 9.81138 1.41062C9.81138 1.63744 9.71833 1.85432 9.55398 2.01062L4.33398 7.20662C4.18899 7.34939 3.9971 7.43467 3.79398 7.44662Z",fill:e.fill||Ca.A800})),mu=e=>t.createElement("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M0.696495 5.3465C0.882365 5.34499 1.06086 5.27359 1.19649 5.1465L3.99649 2.3365L6.79649 5.1465C7.07264 5.42264 7.52035 5.42264 7.79649 5.1465C8.07264 4.87035 8.07264 4.42264 7.79649 4.1465L4.49649 0.856495C4.36483 0.722118 4.18462 0.646393 3.99649 0.646393C3.80837 0.646393 3.62816 0.722118 3.49649 0.856495L0.206495 4.1465C0.00332102 4.34556 -0.0591904 4.64778 0.0483378 4.91112C0.155867 5.17445 0.412052 5.34654 0.696495 5.3465Z",fill:e.fill||Sa.E800}));cn.textarea`
|
|
375
|
-
resize: none;
|
|
376
|
-
border: unset;
|
|
377
|
-
outline: unset;
|
|
378
|
-
padding: unset;
|
|
379
|
-
margin: unset;
|
|
380
|
-
color: ${({theme:e})=>e.colors.text.primary};
|
|
381
|
-
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
382
|
-
font-weight: ${({theme:e})=>e.typography.primary.fontWeight};
|
|
383
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
384
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
385
|
-
&::placeholder {
|
|
386
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
387
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
388
|
-
color: ${({theme:e})=>e.colors.text.placeholder};
|
|
389
|
-
}
|
|
390
|
-
&:disabled {
|
|
391
|
-
background-color: ${({theme:e})=>e.colors.fill.disabled};
|
|
392
|
-
color: ${({theme:e})=>e.colors.text.disabled};
|
|
393
|
-
}
|
|
394
|
-
`;const gu=cn.input`
|
|
395
|
-
flex: 1;
|
|
396
|
-
border: unset;
|
|
397
|
-
outline: unset;
|
|
398
|
-
padding: unset;
|
|
399
|
-
margin: unset;
|
|
400
|
-
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
401
|
-
font-weight: ${({theme:e})=>e.typography.primary.fontWeight};
|
|
402
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
403
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
404
|
-
&::placeholder {
|
|
405
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
406
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
407
|
-
color: ${({theme:e})=>e.colors.text.placeholder};
|
|
408
|
-
}
|
|
409
|
-
&:disabled {
|
|
410
|
-
background-color: ${({theme:e})=>e.colors.fill.disabled};
|
|
411
|
-
color: ${({theme:e})=>e.colors.text.disabled};
|
|
412
|
-
}
|
|
413
|
-
`,vu=cn.div`
|
|
414
|
-
display: flex;
|
|
415
|
-
flex: 1;
|
|
416
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
417
|
-
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
418
|
-
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
419
|
-
color: ${({theme:e})=>e.colors.text.primary};
|
|
420
|
-
div.end-adornment {
|
|
421
|
-
margin-left: 8px;
|
|
422
|
-
display: grid;
|
|
423
|
-
place-content: center;
|
|
424
|
-
}
|
|
425
|
-
div.start-adornment {
|
|
426
|
-
margin-right: 8px;
|
|
427
|
-
display: grid;
|
|
428
|
-
place-content: center;
|
|
429
|
-
}
|
|
430
|
-
`;cn.div`
|
|
431
|
-
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
432
|
-
margin-left: 4px;
|
|
433
|
-
align-self: ${({isTa:e})=>e?"flex-end":"center"};
|
|
434
|
-
`;const yu=cn.div`
|
|
435
|
-
padding: 6px 12px;
|
|
436
|
-
display: flex;
|
|
437
|
-
border: 1px solid
|
|
438
|
-
${({theme:e,disabled:t,isErrored:n})=>t?e.colors.border.disabled:n?e.colors.border.error:e.colors.border.normal};
|
|
439
|
-
background-color: ${({theme:e,disabled:t})=>t?e.colors.fill.disabled:e.colors.fill.surface};
|
|
440
|
-
border-radius: 4px;
|
|
441
|
-
transition: all 0.2s ease-in-out;
|
|
442
|
-
&:hover {
|
|
443
|
-
border-color: ${({theme:e,disabled:t,isErrored:n})=>t?e.colors.border.disabled:n?e.colors.border.error:e.colors.border.hover};
|
|
444
|
-
}
|
|
445
|
-
&:focus-within {
|
|
446
|
-
box-shadow: ${({theme:e,isErrored:t})=>t?e.colors.border.error:e.colors.border.active}
|
|
447
|
-
0px 0px 0px 1px;
|
|
448
|
-
border-color: ${({theme:e,isErrored:t})=>t?e.colors.border.error:e.colors.border.active};
|
|
449
|
-
}
|
|
450
|
-
`,bu=cn.div`
|
|
451
|
-
min-width: 200px;
|
|
452
|
-
display: ${({inline:e})=>e?"inline-block":"block"};
|
|
453
|
-
label.input-label {
|
|
454
|
-
margin-bottom: 4px;
|
|
455
|
-
margin-left: 2px;
|
|
456
|
-
}
|
|
457
|
-
span.input-helper {
|
|
458
|
-
margin-left: 2px;
|
|
459
|
-
margin-top: 2px;
|
|
460
|
-
display: block;
|
|
461
|
-
}
|
|
462
|
-
`,wu=({label:e,inline:n,startLabel:r,startAdornment:o,endLabel:i,endAdornment:a,isRequired:s,isErrored:l,showCount:c,inputStyle:u,style:d,errorText:p,ref:f,maxLength:h,labelProps:m,containerProps:g,...v})=>t.createElement(bu,{inline:n,isErrored:l,disabled:v.disabled,style:d},e&&t.createElement(Oa,{htmlFor:v.id,className:"input-label",...m},e,s&&t.createElement(Da,null,"*")),t.createElement(yu,{className:"input-container",disabled:v.disabled,isErrored:l,...g},r&&t.createElement("div",{className:"start-label"},r),t.createElement(vu,{className:"input-basic"},o&&t.createElement("div",{className:"start-adornment"},o),t.createElement(gu,{maxLength:h,...v,ref:f,style:u}),c&&(h||0)>0&&t.createElement("div",{className:"end-max-length"},`${"string"==typeof v.value?v.value.length:`${v.value||""}`.length}/${h||0}`),a&&t.createElement("div",{className:"end-adornment"},a)),i&&t.createElement("div",{className:"end-label"},i)),l&&p&&t.createElement(Na,{className:"input-helper"},p)),xu=e=>t.createElement("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M5.29058 3.96971L7.72863 1.59934C8.09046 1.23484 8.09046 0.646977 7.72863 0.28247C7.55697 0.102105 7.31879 0 7.0697 0C6.8206 0 6.58242 0.102105 6.41076 0.28247L3.97271 2.65284L1.60055 0.295638C1.42889 0.115274 1.19071 0.0131687 0.941616 0.0131687C0.692525 0.0131687 0.454339 0.115274 0.282683 0.295638C0.102182 0.467165 0 0.705171 0 0.954075C0 1.20298 0.102182 1.44098 0.282683 1.61251L2.65484 3.96971L0.295861 6.4191C0.115361 6.59062 0.0131787 6.82863 0.0131787 7.07753C0.0131787 7.32644 0.115361 7.56444 0.295861 7.73597C0.468326 7.90482 0.700166 7.99938 0.941616 7.99934C1.18657 7.99736 1.4218 7.90334 1.60055 7.73597L3.97271 5.28659L6.42394 7.7228C6.59641 7.89165 6.82825 7.98621 7.0697 7.98618C7.31465 7.98419 7.54988 7.89017 7.72863 7.7228C8.09046 7.35829 8.09046 6.77044 7.72863 6.40593L5.29058 3.96971Z",fill:e.fill||Sa.S600})),Eu={mini:2,small:2.5,medium:4,big:5},Iu={slow:1,medium:.7,fast:.4},_u={mini:12,small:16,medium:24,big:32},Su=un`
|
|
463
|
-
to { transform: rotate(360deg); }
|
|
464
|
-
`,Cu=cn.div`
|
|
465
|
-
position: relative;
|
|
466
|
-
border: ${({size:e})=>Eu[e]}px solid
|
|
467
|
-
${({theme:e})=>e.colors.common.accent};
|
|
468
|
-
border-radius: 50%;
|
|
469
|
-
border-top: ${({size:e})=>Eu[e]}px solid
|
|
470
|
-
${({theme:e})=>e.colors.text.inverse};
|
|
471
|
-
width: ${({size:e})=>_u[e]}px;
|
|
472
|
-
height: ${({size:e})=>_u[e]}px;
|
|
473
|
-
animation: ${Su} ${({speed:e})=>Iu[e]}s linear infinite;
|
|
474
|
-
`,Ou=e=>{const{size:n="medium",speed:r="medium"}=e;return t.createElement(Cu,{className:"fui-loader",speed:r,size:n})},Du=e=>"button"===e.type?t.createElement(Nu,{...e}):t.createElement(ku,{...e}),Nu=e=>{const{itemIdentifier:n="id",label:r,id:o,items:i=[],onChange:a,placeholder:s,readOnly:l=!1,disabled:c=!1,isRequired:u=!1,itemToString:d,name:p,width:f,className:h,style:m,useSelectProps:g,defaultSelectedItem:v,isErrored:y,isMenuLoading:b,errorText:w}=e,{isOpen:x,openMenu:E,selectItem:I,selectedItem:_,closeMenu:S}=Ac({items:i,selectedItem:v,onSelectedItemChange:({selectedItem:e})=>{a?.(e)},itemToString:d,...g});return t.createElement(La,null,t.createElement(Oa,{className:"input-label","aria-label":r,htmlFor:o},r,u&&t.createElement(Da,null,"*")),t.createElement(Fa,{name:p,required:u,disabled:c,value:_?.[n]??"",open:x,onOpenChange:e=>{e?E():S()},onValueChange:e=>{if(l)return;const t=i.find((t=>t?.[n]===e));I(t??null)}},t.createElement(Ja,{className:`SelectTrigger ${h||""}`.trim(),"aria-label":"Food",disabled:c,id:o,isErrored:!!y,width:f,style:m},t.createElement(Ba,{className:"SelectValue",placeholder:s}),t.createElement(Ga,{className:"SelectIcon"},t.createElement(mu,{fill:"#000",className:"dropdown-up-icon"}))),t.createElement(ja,null,t.createElement(Ka,{className:"SelectContent",position:"popper",side:"bottom",sideOffset:4,sticky:"partial"},b?t.createElement($a,null,t.createElement(Ou,null)):t.createElement(t.Fragment,null,t.createElement(Ya,{className:"SelectScrollButton"},t.createElement(mu,null)),t.createElement(qa,{className:"SelectViewport"},t.createElement(Ha,{className:"SelectGroup"},i.map((e=>{const r="string"==typeof e?e:e?.[n];return t.createElement(Pu,{key:r,value:e?.[n]??"",disabled:!!e.disabled},d(e,"list-item"))})))),t.createElement(Xa,{className:"SelectScrollButton"},t.createElement(mu,null)))))),y&&w&&t.createElement(Na,{className:"input-helper"},w))},ku=({itemIdentifier:e="id",label:n,id:r,items:o=[],placeholder:i,readOnly:a=!1,disabled:s=!1,isRequired:l=!1,hideClear:c=!1,itemToString:u,name:d,filterKey:p,width:f,customValues:h,onCustomValueAdd:m,emptyItemsText:g,getCustomMessage:v,onChange:y,useComboboxProps:b,isErrored:w,errorText:x,defaultSelectedItem:E,isMenuLoading:I})=>{const[_,S]=t.useState(o),{isOpen:C,selectedItem:O,getToggleButtonProps:D,getLabelProps:N,getMenuProps:k,reset:P,openMenu:T,highlightedIndex:A,setHighlightedIndex:M,setInputValue:R,inputValue:$,getItemProps:V,getInputProps:L}=fu({selectedItem:E,items:_,onSelectedItemChange:({selectedItem:e})=>{y?.(e)},onIsOpenChange:({isOpen:t})=>{if(t&&(""===$||O&&p&&($||"").toLowerCase()===`${O?.[p||e]||""}`.toLowerCase()))S(o),M(O?o.indexOf(O):-1);else{const e=u(O);O&&!t&&e!==$&&R(e)}t||S(o)},onInputValueChange:({inputValue:t})=>{C&&(""===t||O&&p&&(t||"").toLowerCase()===`${O?.[p||e]||""}`.toLowerCase())?S(o):S((n=>n.filter((n=>!t||("string"==typeof n?n:n?.[p||e]).toLowerCase().includes(t.toLowerCase())))))},itemToString:u,...b});return t.createElement(Ta,{width:f,isOpen:!s&&!a&&C},t.createElement(Oa,{className:"input-label",...N({disabled:s,readOnly:a})},n,l&&t.createElement(Da,null,"*")),t.createElement(wu,{...L({name:d,readOnly:a,disabled:s,id:r}),placeholder:i,endAdornment:t.createElement(Va,null,!s&&!a&&!c&&t.createElement("button",{onClick:()=>{P(),T()}},t.createElement(xu,null)),t.createElement("button",{...D({disabled:s,readOnly:a})},t.createElement(mu,{className:"dropdown-up-icon"})))}),!a&&!s&&t.createElement(Aa,{isOpen:C,...k({disabled:s,readOnly:a})},I?t.createElement($a,null,t.createElement(Ou,null)):t.createElement(t.Fragment,null,C&&0===_.length&&t.createElement(Ma,{readOnly:!0},h?t.createElement(Ra,{onClick:e=>{e.stopPropagation(),m&&m({inputValue:$,customValues:!0}),P()}},v?.($)||"Click to add"):g||"No items"),C&&_.map(((n,r)=>{const o="string"==typeof n?n:n?.[e];return t.createElement(Ma,{isHilighted:A===r,isSelected:O===n,key:o,...V({item:n,index:r})},u(n),O===n&&t.createElement(hu,null))})))),w&&x&&t.createElement(Na,{className:"input-helper"},x))},Pu=t.forwardRef((({children:e,...n},r)=>t.createElement(za,{className:"SelectItem",...n,ref:r},t.createElement(Wa,{className:"SelectItemText"},e),t.createElement(Ua,{className:"SelectItemIndicator"},t.createElement(hu,null)))));export{Du as Dropdown};
|