/*! For license information please see 5.1dcc63f9af5d63d47fdc.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"+e+K":function(module,e,t){"use strict";var n=t("q1tI"),o=t("bwSB");function activeElement(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function contains(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Object(o.n)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function getPlatform(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function getUserAgent(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function isVirtualClick(e){return!(0!==e.mozInputSource||!e.isTrusted)||(isAndroid()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function isVirtualPointerEvent(e){return!getUserAgent().includes("jsdom/")&&(!isAndroid()&&0===e.width&&0===e.height||isAndroid()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function isSafari(){return/apple/i.test(navigator.vendor)}function isAndroid(){const e=/android/i;return e.test(getPlatform())||e.test(getUserAgent())}function isMac(){return getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function isMouseLikePointerType(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function getDocument(e){return(null==e?void 0:e.ownerDocument)||document}function isEventTargetWithin(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function getTarget(e){return"composedPath"in e?e.composedPath()[0]:e.target}const r="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function isTypeableElement(e){return Object(o.k)(e)&&e.matches(r)}function stopEvent(e){e.preventDefault(),e.stopPropagation()}function isTypeableCombobox(e){return!!e&&("combobox"===e.getAttribute("role")&&isTypeableElement(e))}t("V1XD"),t("4gpy");var i=t("U+Em"),a=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],c=a.join(","),l="undefined"==typeof Element,s=l?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!l&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},d=function isInert(e,t){var n;void 0===t&&(t=!0);var o=null==e?void 0:null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===o||"true"===o||t&&e&&isInert(e.parentNode)},getCandidates=function(e,t,n){if(d(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(c));return t&&s.call(e,c)&&o.unshift(e),o=o.filter(n)},f=function getCandidatesIteratively(e,t,n){for(var o=[],r=Array.from(e);r.length;){var i=r.shift();if(!d(i,!1))if("SLOT"===i.tagName){var a=i.assignedElements(),l=getCandidatesIteratively(a.length?a:i.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{s.call(i,c)&&n.filter(i)&&(t||!e.includes(i))&&o.push(i);var u=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),f=!d(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(u&&f){var p=getCandidatesIteratively(!0===u?i.children:u.children,!0,n);n.flatten?o.push.apply(o,p):o.push({scopeParent:i,candidates:p})}else r.unshift.apply(r,i.children)}}return o},hasTabIndex=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},getTabIndex=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!hasTabIndex(e)?0:e.tabIndex},sortOrderedTabbables=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},isInput=function(e){return"INPUT"===e.tagName},isNonTabbableRadio=function(e){return function(e){return isInput(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||u(e),queryRadios=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=queryRadios(window.CSS.escape(e.name));else try{t=queryRadios(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(s.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return isZeroArea(e)}else{if("function"==typeof o){for(var i=e;e;){var a=e.parentElement,c=u(e);if(a&&!a.shadowRoot&&!0===o(a))return isZeroArea(e);e=e.assignedSlot?e.assignedSlot:a||c===e.ownerDocument?a:c.host}e=i}if(function(e){var t,n,o,r,i=e&&u(e),a=null===(t=i)||void 0===t?void 0:t.host,c=!1;if(i&&i!==e)for(c=!!(null!==(n=a)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(a)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!c&&a;){var l,s,d;c=!(null===(s=a=null===(l=i=u(a))||void 0===l?void 0:l.host)||void 0===s||null===(d=s.ownerDocument)||void 0===d||!d.contains(a))}return c}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},isNodeMatchingSelectorFocusable=function(e,t){return!(t.disabled||d(t)||function(e){return isInput(e)&&"hidden"===e.type}(t)||isHidden(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},p=function sortByOrder(e){var t=[],n=[];return e.forEach((function(e,o){var r=!!e.scopeParent,i=r?e.scopeParent:e,a=function(e,t){var n=getTabIndex(e);return n<0&&t&&!hasTabIndex(e)?0:n}(i,r),c=r?sortByOrder(e.candidates):i;0===a?r?t.push.apply(t,c):t.push(i):n.push({documentOrder:o,tabIndex:a,item:e,isScope:r,content:c})})),n.sort(sortOrderedTabbables).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(t)},tabbable=function(e,t){var n;return n=(t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(e,t.includeContainer,isNodeMatchingSelectorTabbable.bind(null,t)),p(n)},isTabbable=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==s.call(e,c)&&isNodeMatchingSelectorTabbable(t,e)},m=t("i8i4");t.d(e,"a",(function(){return FloatingFocusManager})),t.d(e,"b",(function(){return FloatingPortal})),t.d(e,"c",(function(){return useClick})),t.d(e,"d",(function(){return useDismiss})),t.d(e,"e",(function(){return useFloating})),t.d(e,"f",(function(){return useFocus})),t.d(e,"g",(function(){return useHover})),t.d(e,"h",(function(){return useInteractions})),t.d(e,"i",(function(){return useRole}));const b={...n},v=b.useInsertionEffect||(e=>e());function useEffectEvent(e){const t=n.useRef(()=>{0});return v(()=>{t.current=e}),n.useCallback((function(){for(var e=arguments.length,n=new Array(e),o=0;onull==e?void 0:e.focus({preventScroll:n});r?exec():j=requestAnimationFrame(exec)}var w="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;const E=[y,O],x=[g,h];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+R++;const P=b.useId||function(){const[e,t]=n.useState(()=>C?genId():void 0);return w(()=>{null==e&&t(genId())},[]),n.useEffect(()=>{C=!0},[]),e};function createPubSub(){const e=new Map;return{emit(t,n){var o;null==(o=e.get(t))||o.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var o;e.set(t,(null==(o=e.get(t))?void 0:o.filter(e=>e!==n))||[])}}}const S=n.createContext(null),k=n.createContext(null),useFloatingParentNodeId=()=>{var e;return(null==(e=n.useContext(S))?void 0:e.id)||null},useFloatingTree=()=>n.useContext(k);function createAttribute(e){return"data-floating-ui-"+e}function useLatestRef(e){const t=Object(n.useRef)(e);return w(()=>{t.current=e}),t}const T=createAttribute("safe-polygon");function getDelay(e,t,n){return n&&!isMouseLikePointerType(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function useHover(e,t){void 0===t&&(t={});const{open:r,onOpenChange:i,dataRef:a,events:c,elements:{domReference:l,floating:s}}=e,{enabled:u=!0,delay:d=0,handleClose:f=null,mouseOnly:p=!1,restMs:m=0,move:b=!0}=t,v=useFloatingTree(),g=useFloatingParentNodeId(),h=useLatestRef(f),y=useLatestRef(d),O=n.useRef(),j=n.useRef(-1),E=n.useRef(),x=n.useRef(-1),C=n.useRef(!0),R=n.useRef(!1),P=n.useRef(()=>{}),S=n.useCallback(()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[a]);n.useEffect(()=>{if(u)return c.on("openchange",onOpenChange),()=>{c.off("openchange",onOpenChange)};function onOpenChange(e){let{open:t}=e;t||(clearTimeout(j.current),clearTimeout(x.current),C.current=!0)}},[u,c]),n.useEffect(()=>{if(!u||!h.current||!r)return;function onLeave(e){S()&&i(!1,e,"hover")}const e=getDocument(s).documentElement;return e.addEventListener("mouseleave",onLeave),()=>{e.removeEventListener("mouseleave",onLeave)}},[s,r,i,u,h,S]);const k=n.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=getDelay(y.current,"close",O.current);o&&!E.current?(clearTimeout(j.current),j.current=window.setTimeout(()=>i(!1,e,n),o)):t&&(clearTimeout(j.current),i(!1,e,n))}),[y,i]),A=useEffectEvent(()=>{P.current(),E.current=void 0}),L=useEffectEvent(()=>{if(R.current){const e=getDocument(s).body;e.style.pointerEvents="",e.removeAttribute(T),R.current=!1}});return n.useEffect(()=>{if(u&&Object(o.j)(l)){const e=l;return r&&e.addEventListener("mouseleave",onScrollMouseLeave),null==s||s.addEventListener("mouseleave",onScrollMouseLeave),b&&e.addEventListener("mousemove",onMouseEnter,{once:!0}),e.addEventListener("mouseenter",onMouseEnter),e.addEventListener("mouseleave",onMouseLeave),()=>{r&&e.removeEventListener("mouseleave",onScrollMouseLeave),null==s||s.removeEventListener("mouseleave",onScrollMouseLeave),b&&e.removeEventListener("mousemove",onMouseEnter),e.removeEventListener("mouseenter",onMouseEnter),e.removeEventListener("mouseleave",onMouseLeave)}}function isClickLikeOpenEvent(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function onMouseEnter(e){if(clearTimeout(j.current),C.current=!1,p&&!isMouseLikePointerType(O.current)||m>0&&!getDelay(y.current,"open"))return;const t=getDelay(y.current,"open",O.current);t?j.current=window.setTimeout(()=>{i(!0,e,"hover")},t):i(!0,e,"hover")}function onMouseLeave(e){if(isClickLikeOpenEvent())return;P.current();const t=getDocument(s);if(clearTimeout(x.current),h.current&&a.current.floatingContext){r||clearTimeout(j.current),E.current=h.current({...a.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){L(),A(),k(e,!0,"safe-polygon")}});const n=E.current;return t.addEventListener("mousemove",n),void(P.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==O.current||!contains(s,e.relatedTarget))&&k(e)}function onScrollMouseLeave(e){isClickLikeOpenEvent()||a.current.floatingContext&&(null==h.current||h.current({...a.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){L(),A(),k(e)}})(e))}},[l,s,u,e,p,m,b,k,A,L,i,r,v,y,h,a]),w(()=>{var e;if(u&&r&&null!=(e=h.current)&&e.__options.blockPointerEvents&&S()){const e=getDocument(s).body;if(e.setAttribute(T,""),e.style.pointerEvents="none",R.current=!0,Object(o.j)(l)&&s){var t;const e=l,n=null==v||null==(t=v.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}},[u,r,g,s,l,v,h,S]),w(()=>{r||(O.current=void 0,A(),L())},[r,A,L]),n.useEffect(()=>()=>{A(),clearTimeout(j.current),clearTimeout(x.current),L()},[u,l,A,L]),n.useMemo(()=>{if(!u)return{};function setPointerRef(e){O.current=e.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(e){const{nativeEvent:t}=e;function handleMouseMove(){C.current||i(!0,t,"hover")}p&&!isMouseLikePointerType(O.current)||r||0===m||(clearTimeout(x.current),"touch"===O.current?handleMouseMove():x.current=window.setTimeout(handleMouseMove,m))}},floating:{onMouseEnter(){clearTimeout(j.current)},onMouseLeave(e){k(e.nativeEvent,!1)}}}},[u,p,r,m,i,k])}function getChildren(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),o=n;for(;o.length;)o=e.filter(e=>{var t;return null==(t=o)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(o);return n}let A=new WeakMap,L=new WeakSet,D={},I=0;const supportsInert=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,unwrapHost=e=>e&&(e.host||unwrapHost(e.parentNode)),correctElements=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=unwrapHost(t);return e.contains(n)?n:null}).filter(e=>null!=e);function markOthers(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=getDocument(e[0]).body;return function(e,t,n,r){const i="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,c=correctElements(t,e),l=new Set,s=new Set(c),u=[];D[i]||(D[i]=new WeakMap);const d=D[i];return c.forEach((function keep(e){if(!e||l.has(e))return;l.add(e),e.parentNode&&keep(e.parentNode)})),function deep(e){if(!e||s.has(e))return;[].forEach.call(e.children,e=>{if("script"!==Object(o.d)(e))if(l.has(e))deep(e);else{const t=a?e.getAttribute(a):null,n=null!==t&&"false"!==t,o=(A.get(e)||0)+1,r=(d.get(e)||0)+1;A.set(e,o),d.set(e,r),u.push(e),1===o&&n&&L.add(e),1===r&&e.setAttribute(i,""),!n&&a&&e.setAttribute(a,"true")}})}(t),l.clear(),I++,()=>{u.forEach(e=>{const t=(A.get(e)||0)-1,n=(d.get(e)||0)-1;A.set(e,t),d.set(e,n),t||(!L.has(e)&&a&&e.removeAttribute(a),L.delete(e)),n||e.removeAttribute(i)}),I--,I||(A=new WeakMap,A=new WeakMap,L=new WeakSet,D={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(e,t){const n=tabbable(e,getTabbableOptions());"prev"===t&&n.reverse();const o=n.indexOf(activeElement(getDocument(e)));return n.slice(o+1)[0]}function getNextTabbable(){return getTabbableIn(document.body,"next")}function getPreviousTabbable(){return getTabbableIn(document.body,"prev")}function isOutsideEvent(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!contains(n,o)}function disableFocusInside(e){tabbable(e,getTabbableOptions()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function enableFocusInside(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const M={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let F;function setActiveElementOnTab(e){"Tab"===e.key&&(e.target,clearTimeout(F))}const N=n.forwardRef((function(e,t){const[o,r]=n.useState();w(()=>(isSafari()&&r("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)}),[]);const i={ref:t,tabIndex:0,role:o,"aria-hidden":!o||void 0,[createAttribute("focus-guard")]:"",style:M};return(n.createElement("span",_extends({},e,i)))})),B=n.createContext(null),W=createAttribute("portal");function FloatingPortal(e){const{children:t,id:r,root:i=null,preserveTabOrder:a=!0}=e,c=function(e){void 0===e&&(e={});const{id:t,root:r}=e,i=P(),a=usePortalContext(),[c,l]=n.useState(null),s=n.useRef(null);return w(()=>()=>{null==c||c.remove(),queueMicrotask(()=>{s.current=null})},[c]),w(()=>{if(!i)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(W,""),e.appendChild(n),s.current=n,l(n)},[t,i]),w(()=>{if(!i)return;if(s.current)return;let e=r||(null==a?void 0:a.portalNode);e&&!Object(o.j)(e)&&(e=e.current),e=e||document.body;let n=null;t&&(n=document.createElement("div"),n.id=t,e.appendChild(n));const c=document.createElement("div");c.id=i,c.setAttribute(W,""),e=n||e,e.appendChild(c),s.current=c,l(c)},[t,r,i,a]),c}({id:r,root:i}),[l,s]=n.useState(null),u=n.useRef(null),d=n.useRef(null),f=n.useRef(null),p=n.useRef(null),b=!!l&&!l.modal&&l.open&&a&&!(!i&&!c);return n.useEffect(()=>{if(c&&a&&(null==l||!l.modal))return c.addEventListener("focusin",onFocus,!0),c.addEventListener("focusout",onFocus,!0),()=>{c.removeEventListener("focusin",onFocus,!0),c.removeEventListener("focusout",onFocus,!0)};function onFocus(e){if(c&&isOutsideEvent(e)){("focusin"===e.type?enableFocusInside:disableFocusInside)(c)}}},[c,a,null==l?void 0:l.modal]),n.createElement(B.Provider,{value:n.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:c,setFocusManagerState:s}),[a,c])},b&&c&&n.createElement(N,{"data-type":"outside",ref:u,onFocus:e=>{if(isOutsideEvent(e,c)){var t;null==(t=f.current)||t.focus()}else{const e=getPreviousTabbable()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),b&&c&&n.createElement("span",{"aria-owns":c.id,style:M}),c&&Object(m.createPortal)(t,c),b&&c&&n.createElement(N,{"data-type":"outside",ref:d,onFocus:e=>{if(isOutsideEvent(e,c)){var t;null==(t=p.current)||t.focus()}else{const t=getNextTabbable()||(null==l?void 0:l.refs.domReference.current);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent))}}}))}const usePortalContext=()=>n.useContext(B),V=20;let q=[];function addPreviouslyFocusedElement(e){q=q.filter(e=>e.isConnected);let t=e;if(t&&"body"!==Object(o.d)(t)){if(!isTabbable(t,getTabbableOptions())){const e=tabbable(t,getTabbableOptions())[0];e&&(t=e)}q.push(t),q.length>V&&(q=q.slice(-V))}}function getPreviouslyFocusedElement(){return q.slice().reverse().find(e=>e.isConnected)}const H=n.forwardRef((function(e,t){return n.createElement("button",_extends({},e,{type:"button",ref:t,tabIndex:-1,style:M}))}));function FloatingFocusManager(e){const{context:t,children:r,disabled:i=!1,order:a=["content"],guards:c=!0,initialFocus:l=0,returnFocus:s=!0,restoreFocus:u=!1,modal:d=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:p=!0}=e,{open:m,refs:b,nodeId:v,onOpenChange:g,events:h,dataRef:y,floatingId:O,elements:{domReference:j,floating:E}}=t,x="number"==typeof l&&l<0,C=isTypeableCombobox(j)&&x,R=!supportsInert()||c,P=useLatestRef(a),S=useLatestRef(l),k=useLatestRef(s),T=useFloatingTree(),A=usePortalContext(),L=n.useRef(null),D=n.useRef(null),I=n.useRef(!1),M=n.useRef(!1),F=n.useRef(-1),B=null!=A,W=null==E?void 0:E.firstElementChild,V=(null==W?void 0:W.id)===O?W:E,q=useEffectEvent((function(e){return void 0===e&&(e=V),e?tabbable(e,getTabbableOptions()):[]})),K=useEffectEvent(e=>{const t=q(e);return P.current.map(e=>j&&"reference"===e?j:V&&"floating"===e?V:t).filter(Boolean).flat()});function renderDismissButton(e){return!i&&f&&d?n.createElement(H,{ref:"start"===e?L:D,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof f?f:"Dismiss"):null}n.useEffect(()=>{if(i)return;if(!d)return;function onKeyDown(e){if("Tab"===e.key){contains(V,activeElement(getDocument(V)))&&0===q().length&&!C&&stopEvent(e);const t=K(),n=getTarget(e);"reference"===P.current[0]&&n===j&&(stopEvent(e),e.shiftKey?enqueueFocus(t[t.length-1]):enqueueFocus(t[1])),"floating"===P.current[1]&&n===V&&e.shiftKey&&(stopEvent(e),enqueueFocus(t[0]))}}const e=getDocument(V);return e.addEventListener("keydown",onKeyDown),()=>{e.removeEventListener("keydown",onKeyDown)}},[i,j,V,d,P,C,q,K]),n.useEffect(()=>{if(!i&&E)return E.addEventListener("focusin",handleFocusIn),()=>{E.removeEventListener("focusin",handleFocusIn)};function handleFocusIn(e){const t=getTarget(e),n=q().indexOf(t);-1!==n&&(F.current=n)}},[i,E,q]),n.useEffect(()=>{if(!i&&p)return E&&Object(o.k)(j)?(j.addEventListener("focusout",handleFocusOutside),j.addEventListener("pointerdown",handlePointerDown),E.addEventListener("focusout",handleFocusOutside),()=>{j.removeEventListener("focusout",handleFocusOutside),j.removeEventListener("pointerdown",handlePointerDown),E.removeEventListener("focusout",handleFocusOutside)}):void 0;function handlePointerDown(){M.current=!0,setTimeout(()=>{M.current=!1})}function handleFocusOutside(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(contains(j,t)||contains(E,t)||contains(t,E)||contains(null==A?void 0:A.portalNode,t)||null!=t&&t.hasAttribute(createAttribute("focus-guard"))||T&&(getChildren(T.nodesRef.current,v).find(e=>{var n,o;return contains(null==(n=e.context)?void 0:n.elements.floating,t)||contains(null==(o=e.context)?void 0:o.elements.domReference,t)})||function(e,t){var n;let o=[],r=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;r;){const t=e.find(e=>e.id===r);r=null==t?void 0:t.parentId,t&&(o=o.concat(t))}return o}(T.nodesRef.current,v).find(e=>{var n,o;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(u&&n&&activeElement(getDocument(V))===getDocument(V).body){Object(o.k)(V)&&(null==V||V.focus());const e=F.current,t=q(),n=t[e]||t[t.length-1]||V;Object(o.k)(n)&&n.focus()}!d&&t&&n&&!M.current&&t!==getPreviouslyFocusedElement()&&(I.current=!0,g(!1,e))})}},[i,j,E,V,d,v,T,A,g,p,u,q]),n.useEffect(()=>{var e;if(i)return;const t=Array.from((null==A||null==(e=A.portalNode)?void 0:e.querySelectorAll("["+createAttribute("portal")+"]"))||[]);if(E){const e=[E,...t,L.current,D.current,P.current.includes("reference")||C?j:null].filter(e=>null!=e),n=d||C?markOthers(e,R,!R):markOthers(e);return()=>{n()}}},[i,j,E,d,P,A,C,R]),w(()=>{if(i||!Object(o.k)(V))return;const e=activeElement(getDocument(V));queueMicrotask(()=>{const t=K(V),n=S.current,o=("number"==typeof n?t[n]:n.current)||V,r=contains(V,e);x||r||!m||enqueueFocus(o,{preventScroll:o===V})})},[i,m,V,x,K,S]),w(()=>{if(i||!V)return;let e=!1;const t=getDocument(V),n=activeElement(t);let r=y.current.openEvent;function onOpenChange(t){let{open:n,reason:o,event:i,nested:a}=t;n&&(r=i),"escape-key"===o&&b.domReference.current&&addPreviouslyFocusedElement(b.domReference.current),"hover"===o&&"mouseleave"===i.type&&(I.current=!0),"outside-press"===o&&(a?(I.current=!1,e=!0):I.current=!(isVirtualClick(i)||isVirtualPointerEvent(i)))}return addPreviouslyFocusedElement(n),h.on("openchange",onOpenChange),()=>{h.off("openchange",onOpenChange);const n=activeElement(t),i=contains(E,n)||T&&getChildren(T.nodesRef.current,v).some(e=>{var t;return contains(null==(t=e.context)?void 0:t.elements.floating,n)});(i||r&&["click","mousedown"].includes(r.type))&&b.domReference.current&&addPreviouslyFocusedElement(b.domReference.current);const a=getPreviouslyFocusedElement();k.current&&!I.current&&Object(o.k)(a)&&(a===n||n===t.body||i)&&enqueueFocus(a,{cancelPrevious:!1,preventScroll:e})}},[i,E,V,k,y,b,h,T,v]),w(()=>{if(!i&&A)return A.setFocusManagerState({modal:d,closeOnFocusOut:p,open:m,onOpenChange:g,refs:b}),()=>{A.setFocusManagerState(null)}},[i,A,d,m,g,b,p]),w(()=>{if(i)return;if(!V)return;if("function"!=typeof MutationObserver)return;if(x)return;const handleMutation=()=>{const e=V.getAttribute("tabindex"),t=q(),n=activeElement(getDocument(E)),o=t.indexOf(n);-1!==o&&(F.current=o),P.current.includes("floating")||n!==b.domReference.current&&0===t.length?"0"!==e&&V.setAttribute("tabindex","0"):"-1"!==e&&V.setAttribute("tabindex","-1")};handleMutation();const e=new MutationObserver(handleMutation);return e.observe(V,{childList:!0,subtree:!0,attributes:!0}),()=>{e.disconnect()}},[i,E,V,b,P,q,x]);const U=!i&&R&&(B||d);return(n.createElement(n.Fragment,null,U&&n.createElement(N,{"data-type":"inside",ref:null==A?void 0:A.beforeInsideRef,onFocus:e=>{if(d){const e=K();enqueueFocus("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(I.current=!1,isOutsideEvent(e,A.portalNode)){const e=getNextTabbable()||j;null==e||e.focus()}else{var t;null==(t=A.beforeOutsideRef.current)||t.focus()}}}),!C&&renderDismissButton("start"),r,renderDismissButton("end"),U&&n.createElement(N,{"data-type":"inside",ref:null==A?void 0:A.afterInsideRef,onFocus:e=>{if(d)enqueueFocus(K()[0]);else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(p&&(I.current=!0),isOutsideEvent(e,A.portalNode)){const e=getPreviousTabbable()||j;null==e||e.focus()}else{var t;null==(t=A.afterOutsideRef.current)||t.focus()}}})))}function isButtonTarget(e){return Object(o.k)(e.target)&&"BUTTON"===e.target.tagName}function isSpaceIgnored(e){return isTypeableElement(e)}function useClick(e,t){void 0===t&&(t={});const{open:o,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:c=!0,event:l="click",toggle:s=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,f=n.useRef(),p=n.useRef(!1);return n.useMemo(()=>c?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0===e.button&&(isMouseLikePointerType(f.current,!0)&&u||"click"!==l&&(!o||!s||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===l&&f.current?f.current=void 0:isMouseLikePointerType(f.current,!0)&&u||(!o||!s||i.current.openEvent&&"click"!==i.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||isButtonTarget(e)||(" "!==e.key||isSpaceIgnored(a)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&r(!o||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||isButtonTarget(e)||isSpaceIgnored(a)||" "===e.key&&p.current&&(p.current=!1,r(!o||!s,e.nativeEvent,"click"))}}}:{},[c,i,l,u,d,a,s,o,r])}const K={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},U={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeProp=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function useDismiss(e,t){void 0===t&&(t={});const{open:r,onOpenChange:i,elements:{reference:a,domReference:c,floating:l},dataRef:s}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:p="pointerdown",referencePress:m=!1,referencePressEvent:b="pointerdown",ancestorScroll:v=!1,bubbles:g,capture:h}=t,y=useFloatingTree(),O=useEffectEvent("function"==typeof f?f:()=>!1),j="function"==typeof f?O:f,w=n.useRef(!1),E=n.useRef(!1),{escapeKey:x,outsidePress:C}=normalizeProp(g),{escapeKey:R,outsidePress:P}=normalizeProp(h),S=useEffectEvent(e=>{var t;if(!r||!u||!d||"Escape"!==e.key)return;const n=null==(t=s.current.floatingContext)?void 0:t.nodeId,o=y?getChildren(y.nodesRef.current,n):[];if(!x&&(e.stopPropagation(),o.length>0)){let e=!0;if(o.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),k=useEffectEvent(e=>{var t;const callback=()=>{var t;S(e),null==(t=getTarget(e))||t.removeEventListener("keydown",callback)};null==(t=getTarget(e))||t.addEventListener("keydown",callback)}),T=useEffectEvent(e=>{var t;const n=w.current;w.current=!1;const r=E.current;if(E.current=!1,"click"===p&&r)return;if(n)return;if("function"==typeof j&&!j(e))return;const a=getTarget(e),u="["+createAttribute("inert")+"]",d=getDocument(l).querySelectorAll(u);let f=Object(o.j)(a)?a:null;for(;f&&!Object(o.l)(f);){const e=Object(o.g)(f);if(Object(o.l)(e)||!Object(o.j)(e))break;f=e}if(d.length&&Object(o.j)(a)&&!function(e){return e.matches("html,body")}(a)&&!contains(a,l)&&Array.from(d).every(e=>!contains(f,e)))return;if(Object(o.k)(a)&&l){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n){"rtl"===Object(o.a)(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth)}if(r||t&&e.offsetY>a.clientHeight)return}const m=null==(t=s.current.floatingContext)?void 0:t.nodeId,b=y&&getChildren(y.nodesRef.current,m).some(t=>{var n;return isEventTargetWithin(e,null==(n=t.context)?void 0:n.elements.floating)});if(isEventTargetWithin(e,l)||isEventTargetWithin(e,c)||b)return;const v=y?getChildren(y.nodesRef.current,m):[];if(v.length>0){let e=!0;if(v.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}i(!1,e,"outside-press")}),A=useEffectEvent(e=>{var t;const callback=()=>{var t;T(e),null==(t=getTarget(e))||t.removeEventListener(p,callback)};null==(t=getTarget(e))||t.addEventListener(p,callback)});return n.useEffect(()=>{if(!r||!u)return;function onScroll(e){i(!1,e,"ancestor-scroll")}s.current.__escapeKeyBubbles=x,s.current.__outsidePressBubbles=C;const e=getDocument(l);d&&e.addEventListener("keydown",R?k:S,R),j&&e.addEventListener(p,P?A:T,P);let t=[];return v&&(Object(o.j)(c)&&(t=Object(o.f)(c)),Object(o.j)(l)&&(t=t.concat(Object(o.f)(l))),!Object(o.j)(a)&&a&&a.contextElement&&(t=t.concat(Object(o.f)(a.contextElement)))),t=t.filter(t=>{var n;return t!==(null==(n=e.defaultView)?void 0:n.visualViewport)}),t.forEach(e=>{e.addEventListener("scroll",onScroll,{passive:!0})}),()=>{d&&e.removeEventListener("keydown",R?k:S,R),j&&e.removeEventListener(p,P?A:T,P),t.forEach(e=>{e.removeEventListener("scroll",onScroll)})}},[s,l,c,a,d,j,p,r,i,v,u,x,C,S,R,k,T,P,A]),n.useEffect(()=>{w.current=!1},[j,p]),n.useMemo(()=>u?{reference:{onKeyDown:S,[K[b]]:e=>{m&&i(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:S,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[U[p]]:()=>{w.current=!0}}}:{},[u,m,p,b,i,S])}function useFloating(e){void 0===e&&(e={});const{nodeId:t}=e,r=function(e){const{open:t=!1,onOpenChange:o,elements:r}=e,i=P(),a=n.useRef({}),[c]=n.useState(()=>createPubSub()),l=null!=useFloatingParentNodeId(),[s,u]=n.useState(r.reference),d=useEffectEvent((e,t,n)=>{a.current.openEvent=e?t:void 0,c.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==o||o(e,t,n)}),f=n.useMemo(()=>({setPositionReference:u}),[]),p=n.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return n.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:c,floatingId:i,refs:f}),[t,d,p,c,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||r,c=a.elements,[l,s]=n.useState(null),[u,d]=n.useState(null),f=(null==c?void 0:c.reference)||l,p=n.useRef(null),m=useFloatingTree();w(()=>{f&&(p.current=f)},[f]);const b=Object(i.g)({...e,elements:{...c,...u&&{reference:u}}}),v=n.useCallback(e=>{const t=Object(o.j)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d(t),b.refs.setReference(t)},[b.refs]),g=n.useCallback(e=>{(Object(o.j)(e)||null===e)&&(p.current=e,s(e)),(Object(o.j)(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!Object(o.j)(e))&&b.refs.setReference(e)},[b.refs]),h=n.useMemo(()=>({...b.refs,setReference:g,setPositionReference:v,domReference:p}),[b.refs,g,v]),y=n.useMemo(()=>({...b.elements,domReference:f}),[b.elements,f]),O=n.useMemo(()=>({...b,...a,refs:h,elements:y,nodeId:t}),[b,h,y,t,a]);return w(()=>{a.dataRef.current.floatingContext=O;const e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),n.useMemo(()=>({...b,context:O,refs:h,elements:y}),[b,h,y,O])}function useFocus(e,t){void 0===t&&(t={});const{open:r,onOpenChange:i,events:a,dataRef:c,elements:{domReference:l}}=e,{enabled:s=!0,visibleOnly:u=!0}=t,d=n.useRef(!1),f=n.useRef(),p=n.useRef(!0);return n.useEffect(()=>{if(!s)return;const e=Object(o.h)(l);function onBlur(){!r&&Object(o.k)(l)&&l===activeElement(getDocument(l))&&(d.current=!0)}function onKeyDown(){p.current=!0}return e.addEventListener("blur",onBlur),e.addEventListener("keydown",onKeyDown,!0),()=>{e.removeEventListener("blur",onBlur),e.removeEventListener("keydown",onKeyDown,!0)}},[l,r,s]),n.useEffect(()=>{if(s)return a.on("openchange",onOpenChange),()=>{a.off("openchange",onOpenChange)};function onOpenChange(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(d.current=!0)}},[a,s]),n.useEffect(()=>()=>{clearTimeout(f.current)},[]),n.useMemo(()=>s?{reference:{onPointerDown(e){isVirtualPointerEvent(e.nativeEvent)||(p.current=!1)},onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;const t=getTarget(e.nativeEvent);if(u&&Object(o.j)(t))try{if(isSafari()&&isMac())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!p.current&&!isTypeableElement(t))return}i(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;const t=e.relatedTarget,n=Object(o.j)(t)&&t.hasAttribute(createAttribute("focus-guard"))&&"outside"===t.getAttribute("data-type");f.current=window.setTimeout(()=>{var o;const r=activeElement(l?l.ownerDocument:document);(t||r!==l)&&(contains(null==(o=c.current.floatingContext)?void 0:o.refs.floating.current,r)||contains(l,r)||n||i(!1,e.nativeEvent,"focus"))})}}}:{},[s,u,c,l,i])}const z="active",X="selected";function mergeProps(e,t,n){const o=new Map,r="item"===n;let i=e;if(r&&e){const{[z]:_,[X]:t,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1},...i,...t.map(t=>{const o=t?t[n]:null;return"function"==typeof o?e?o(e):null:o}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var a;r&&[z,X].includes(n)||(0===n.indexOf("on")?(o.has(n)||o.set(n,[]),"function"==typeof i&&(null==(a=o.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),i=0;ie(...r)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function useInteractions(e){void 0===e&&(e=[]);const t=e,o=n.useCallback(t=>mergeProps(t,e,"reference"),t),r=n.useCallback(t=>mergeProps(t,e,"floating"),t),i=n.useCallback(t=>mergeProps(t,e,"item"),e.map(e=>null==e?void 0:e.item));return n.useMemo(()=>({getReferenceProps:o,getFloatingProps:r,getItemProps:i}),[o,r,i])}const G=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(e,t){var o;void 0===t&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:c="dialog"}=t,l=null!=(o=G.get(c))?o:c,s=P(),u=null!=useFloatingParentNodeId();return n.useMemo(()=>{if(!a)return{};const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===c?{reference:{["aria-"+("label"===c?"labelledby":"describedby")]:r?i:void 0},floating:e}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:s},..."menu"===l&&u&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===l&&{"aria-labelledby":s}},item(e){let{active:t,selected:n}=e;const o={role:"option",...t&&{id:i+"-option"}};switch(c){case"select":return{...o,"aria-selected":t&&n};case"combobox":return{...o,...t&&{"aria-selected":!0}}}return{}}}},[a,c,l,r,i,s,u])}},"4gpy":function(module,e,t){"use strict";var n=t("V1XD");function computeCoordsFromPlacement(e,t,o){let{reference:r,floating:i}=e;const a=Object(n.p)(t),c=Object(n.f)(t),l=Object(n.h)(c),s=Object(n.o)(t),u="y"===a,d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,p=r[l]/2-i[l]/2;let m;switch(s){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Object(n.e)(t)){case"start":m[c]-=p*(o&&u?-1:1);break;case"end":m[c]+=p*(o&&u?-1:1)}return m}async function detectOverflow(e,t){var o;void 0===t&&(t={});const{x:r,y:i,platform:a,rects:c,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Object(n.c)(t,e),b=Object(n.n)(m),v=l[p?"floating"===f?"reference":"floating":f],g=Object(n.t)(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(v)))||o?v:v.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:s})),h="floating"===f?{x:r,y:i,width:c.floating.width,height:c.floating.height}:c.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),O=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},j=Object(n.t)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:h,offsetParent:y,strategy:s}):h);return{top:(g.top-j.top+b.top)/O.y,bottom:(j.bottom-g.bottom+b.bottom)/O.y,left:(g.left-j.left+b.left)/O.x,right:(j.right-g.right+b.right)/O.x}}function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return n.v.some(t=>e[t]>=0)}function getBoundingRect(e){const t=Object(n.r)(...e.map(e=>e.left)),o=Object(n.r)(...e.map(e=>e.top));return{x:t,y:o,width:Object(n.q)(...e.map(e=>e.right))-t,height:Object(n.q)(...e.map(e=>e.bottom))-o}}var o=t("bwSB");function getCssDimensions(e){const t=Object(o.a)(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Object(o.k)(e),c=a?e.offsetWidth:r,l=a?e.offsetHeight:i,s=Object(n.u)(r)!==c||Object(n.u)(i)!==l;return s&&(r=c,i=l),{width:r,height:i,$:s}}function unwrapElement(e){return Object(o.j)(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!Object(o.k)(t))return Object(n.b)(1);const r=t.getBoundingClientRect(),{width:i,height:a,$:$}=getCssDimensions(t);let c=($?Object(n.u)(r.width):r.width)/i,l=($?Object(n.u)(r.height):r.height)/a;return c&&Number.isFinite(c)||(c=1),l&&Number.isFinite(l)||(l=1),{x:c,y:l}}t.d(e,"a",(function(){return floating_ui_dom_esm_arrow})),t.d(e,"b",(function(){return floating_ui_dom_esm_autoPlacement})),t.d(e,"c",(function(){return autoUpdate})),t.d(e,"d",(function(){return floating_ui_dom_esm_computePosition})),t.d(e,"e",(function(){return c})),t.d(e,"f",(function(){return floating_ui_dom_esm_flip})),t.d(e,"g",(function(){return floating_ui_dom_esm_hide})),t.d(e,"h",(function(){return floating_ui_dom_esm_inline})),t.d(e,"i",(function(){return floating_ui_dom_esm_limitShift})),t.d(e,"j",(function(){return floating_ui_dom_esm_offset})),t.d(e,"k",(function(){return a})),t.d(e,"l",(function(){return floating_ui_dom_esm_shift})),t.d(e,"m",(function(){return floating_ui_dom_esm_size}));const r=Object(n.b)(0);function getVisualOffsets(e){const t=Object(o.h)(e);return Object(o.p)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:r}function floating_ui_dom_esm_getBoundingClientRect(e,t,r,i){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),c=unwrapElement(e);let l=Object(n.b)(1);t&&(i?Object(o.j)(i)&&(l=getScale(i)):l=getScale(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Object(o.h)(e))&&t}(c,r,i)?getVisualOffsets(c):Object(n.b)(0);let u=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,f=a.width/l.x,p=a.height/l.y;if(c){const e=Object(o.h)(c),t=i&&Object(o.j)(i)?Object(o.h)(i):i;let n=e,r=n.frameElement;for(;r&&i&&t!==n;){const e=getScale(r),t=r.getBoundingClientRect(),i=Object(o.a)(r),a=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,c=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,p*=e.y,u+=a,d+=c,n=Object(o.h)(r),r=n.frameElement}}return Object(n.t)({width:f,height:p,x:u,y:d})}const i=[":popover-open",":modal"];function isTopLayer(e){return i.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function getWindowScrollBarX(e){return floating_ui_dom_esm_getBoundingClientRect(Object(o.c)(e)).left+Object(o.e)(e).scrollLeft}function getClientRectFromClippingAncestor(e,t,r){let i;if("viewport"===t)i=function(e,t){const n=Object(o.h)(e),r=Object(o.c)(e),i=n.visualViewport;let a=r.clientWidth,c=r.clientHeight,l=0,s=0;if(i){a=i.width,c=i.height;const e=Object(o.p)();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:c,x:l,y:s}}(e,r);else if("document"===t)i=function(e){const t=Object(o.c)(e),r=Object(o.e)(e),i=e.ownerDocument.body,a=Object(n.q)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),c=Object(n.q)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-r.scrollLeft+getWindowScrollBarX(e);const s=-r.scrollTop;return"rtl"===Object(o.a)(i).direction&&(l+=Object(n.q)(t.clientWidth,i.clientWidth)-a),{width:a,height:c,x:l,y:s}}(Object(o.c)(e));else if(Object(o.j)(t))i=function(e,t){const r=floating_ui_dom_esm_getBoundingClientRect(e,!0,"fixed"===t),i=r.top+e.clientTop,a=r.left+e.clientLeft,c=Object(o.k)(e)?getScale(e):Object(n.b)(1);return{width:e.clientWidth*c.x,height:e.clientHeight*c.y,x:a*c.x,y:i*c.y}}(t,r);else{const n=getVisualOffsets(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return Object(n.t)(i)}function hasFixedPositionAncestor(e,t){const n=Object(o.g)(e);return!(n===t||!Object(o.j)(n)||Object(o.l)(n))&&("fixed"===Object(o.a)(n).position||hasFixedPositionAncestor(n,t))}function getRectRelativeToOffsetParent(e,t,r){const i=Object(o.k)(t),a=Object(o.c)(t),c="fixed"===r,l=floating_ui_dom_esm_getBoundingClientRect(e,!0,c,t);let s={scrollLeft:0,scrollTop:0};const u=Object(n.b)(0);if(i||!i&&!c)if(("body"!==Object(o.d)(t)||Object(o.m)(a))&&(s=Object(o.e)(t)),i){const e=floating_ui_dom_esm_getBoundingClientRect(t,!0,c,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&(u.x=getWindowScrollBarX(a));return{x:l.left+s.scrollLeft-u.x,y:l.top+s.scrollTop-u.y,width:l.width,height:l.height}}function isStaticPositioned(e){return"static"===Object(o.a)(e).position}function getTrueOffsetParent(e,t){return Object(o.k)(e)&&"fixed"!==Object(o.a)(e).position?t?t(e):e.offsetParent:null}function getOffsetParent(e,t){const n=Object(o.h)(e);if(isTopLayer(e))return n;if(!Object(o.k)(e)){let t=Object(o.g)(e);for(;t&&!Object(o.l)(t);){if(Object(o.j)(t)&&!isStaticPositioned(t))return t;t=Object(o.g)(t)}return n}let r=getTrueOffsetParent(e,t);for(;r&&Object(o.o)(r)&&isStaticPositioned(r);)r=getTrueOffsetParent(r,t);return r&&Object(o.l)(r)&&isStaticPositioned(r)&&!Object(o.i)(r)?n:r||Object(o.b)(e)||n}const a={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:a}=e;const c="fixed"===a,l=Object(o.c)(i),s=!!t&&isTopLayer(t.floating);if(i===l||s&&c)return r;let u={scrollLeft:0,scrollTop:0},d=Object(n.b)(1);const f=Object(n.b)(0),p=Object(o.k)(i);if((p||!p&&!c)&&(("body"!==Object(o.d)(i)||Object(o.m)(l))&&(u=Object(o.e)(i)),Object(o.k)(i))){const e=floating_ui_dom_esm_getBoundingClientRect(i);d=getScale(i),f.x=e.x+i.clientLeft,f.y=e.y+i.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+f.x,y:r.y*d.y-u.scrollTop*d.y+f.y}},getDocumentElement:o.c,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:a}=e;const c=[..."clippingAncestors"===r?isTopLayer(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Object(o.f)(e,[],!1).filter(e=>Object(o.j)(e)&&"body"!==Object(o.d)(e)),i=null;const a="fixed"===Object(o.a)(e).position;let c=a?Object(o.g)(e):e;for(;Object(o.j)(c)&&!Object(o.l)(c);){const t=Object(o.a)(c),n=Object(o.i)(c);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||Object(o.m)(c)&&!n&&hasFixedPositionAncestor(e,c))?r=r.filter(e=>e!==c):i=t,c=Object(o.g)(c)}return t.set(e,r),r}(t,this._c):[].concat(r),i],l=c[0],s=c.reduce((e,o)=>{const r=getClientRectFromClippingAncestor(t,o,a);return e.top=Object(n.q)(r.top,e.top),e.right=Object(n.r)(r.right,e.right),e.bottom=Object(n.r)(r.bottom,e.bottom),e.left=Object(n.q)(r.left,e.left),e},getClientRectFromClippingAncestor(t,l,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:getOffsetParent,getElementRects:async function(e){const t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,o=await n(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}},getScale:getScale,isElement:o.j,isRTL:function(e){return"rtl"===Object(o.a)(e).direction}};function autoUpdate(e,t,r,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,d=unwrapElement(e),f=a||c?[...d?Object(o.f)(d):[],...Object(o.f)(t)]:[];f.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),c&&e.addEventListener("resize",r)});const p=d&&s?function(e,t){let r,i=null;const a=Object(o.c)(e);function cleanup(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}return function refresh(o,c){void 0===o&&(o=!1),void 0===c&&(c=1),cleanup();const{left:l,top:s,width:u,height:d}=e.getBoundingClientRect();if(o||t(),!u||!d)return;const f={rootMargin:-Object(n.d)(s)+"px "+-Object(n.d)(a.clientWidth-(l+u))+"px "+-Object(n.d)(a.clientHeight-(s+d))+"px "+-Object(n.d)(l)+"px",threshold:Object(n.q)(0,Object(n.r)(1,c))||1};let p=!0;function handleObserve(e){const t=e[0].intersectionRatio;if(t!==c){if(!p)return refresh();t?refresh(!1,t):r=setTimeout(()=>{refresh(!1,1e-7)},1e3)}p=!1}try{i=new IntersectionObserver(handleObserve,{...f,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(handleObserve,f)}i.observe(e)}(!0),cleanup}(d,r):null;let m,b=-1,v=null;l&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),d&&!u&&v.observe(d),v.observe(t));let g=u?floating_ui_dom_esm_getBoundingClientRect(e):null;return u&&function frameLoop(){const t=floating_ui_dom_esm_getBoundingClientRect(e);!g||t.x===g.x&&t.y===g.y&&t.width===g.width&&t.height===g.height||r();g=t,m=requestAnimationFrame(frameLoop)}(),r(),()=>{var e;f.forEach(e=>{a&&e.removeEventListener("scroll",r),c&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=v)||e.disconnect(),v=null,u&&cancelAnimationFrame(m)}}const c=detectOverflow,floating_ui_dom_esm_offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,r;const{x:i,y:a,placement:c,middlewareData:l}=t,s=await async function(e,t){const{placement:o,platform:r,elements:i}=e,a=await(null==r.isRTL?void 0:r.isRTL(i.floating)),c=Object(n.o)(o),l=Object(n.e)(o),s="y"===Object(n.p)(o),u=["left","top"].includes(c)?-1:1,d=a&&s?-1:1,f=Object(n.c)(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:b}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof b&&(m="end"===l?-1*b:b),s?{x:m*d,y:p*u}:{x:p*u,y:m*d}}(t,e);return c===(null==(o=l.offset)?void 0:o.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:a+s.y,data:{...s,placement:c}}}}},floating_ui_dom_esm_autoPlacement=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,r,i;const{rects:a,middlewareData:c,placement:l,platform:s,elements:u}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:p=n.s,autoAlignment:m=!0,...b}=Object(n.c)(e,t),v=void 0!==f||p===n.s?function(e,t,o){return(e?[...o.filter(t=>Object(n.e)(t)===e),...o.filter(t=>Object(n.e)(t)!==e)]:o.filter(e=>Object(n.o)(e)===e)).filter(o=>!e||(Object(n.e)(o)===e||!!t&&Object(n.j)(o)!==o))}(f||null,m,p):p,g=await detectOverflow(t,b),h=(null==(o=c.autoPlacement)?void 0:o.index)||0,y=v[h];if(null==y)return{};const O=Object(n.g)(y,a,await(null==s.isRTL?void 0:s.isRTL(u.floating)));if(l!==y)return{reset:{placement:v[0]}};const j=[g[Object(n.o)(y)],g[O[0]],g[O[1]]],w=[...(null==(r=c.autoPlacement)?void 0:r.overflows)||[],{placement:y,overflows:j}],E=v[h+1];if(E)return{data:{index:h+1,overflows:w},reset:{placement:E}};const x=w.map(e=>{const t=Object(n.e)(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(i=x.filter(e=>e[2].slice(0,Object(n.e)(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||x[0][0];return C!==l?{data:{index:h+1,overflows:w},reset:{placement:C}}:{}}}},floating_ui_dom_esm_shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Object(n.c)(e,t),u={x:o,y:r},d=await detectOverflow(t,s),f=Object(n.p)(Object(n.o)(i)),p=Object(n.k)(f);let m=u[p],b=u[f];if(a){const e="y"===p?"bottom":"right",t=m+d["y"===p?"top":"left"],o=m-d[e];m=Object(n.a)(t,m,o)}if(c){const e="y"===f?"bottom":"right",t=b+d["y"===f?"top":"left"],o=b-d[e];b=Object(n.a)(t,b,o)}const v=l.fn({...t,[p]:m,[f]:b});return{...v,data:{x:v.x-o,y:v.y-r}}}}},floating_ui_dom_esm_flip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:i,middlewareData:a,rects:c,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...g}=Object(n.c)(e,t);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const h=Object(n.o)(i),y=Object(n.o)(l)===l,O=await(null==s.isRTL?void 0:s.isRTL(u.floating)),j=p||(y||!v?[Object(n.m)(l)]:Object(n.i)(l));p||"none"===b||j.push(...Object(n.l)(l,v,b,O));const w=[l,...j],E=await detectOverflow(t,g),x=[];let C=(null==(r=a.flip)?void 0:r.overflows)||[];if(d&&x.push(E[h]),f){const e=Object(n.g)(i,c,O);x.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:i,overflows:x}],!x.every(e=>e<=0)){var R,P;const e=((null==(R=a.flip)?void 0:R.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(P=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(m){case"bestFit":{var S;const e=null==(S=C.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:S[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}},floating_ui_dom_esm_size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:r,platform:i,elements:a}=t,{apply:c=(()=>{}),...l}=Object(n.c)(e,t),s=await detectOverflow(t,l),u=Object(n.o)(o),d=Object(n.e)(o),f="y"===Object(n.p)(o),{width:p,height:m}=r.floating;let b,v;"top"===u||"bottom"===u?(b=u,v=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=u,b="end"===d?"top":"bottom");const g=m-s.top-s.bottom,h=p-s.left-s.right,y=Object(n.r)(m-s[b],g),O=Object(n.r)(p-s[v],h),j=!t.middlewareData.shift;let w=y,E=O;if(f?E=d||j?Object(n.r)(O,h):h:w=d||j?Object(n.r)(y,g):g,j&&!d){const e=Object(n.q)(s.left,0),t=Object(n.q)(s.right,0),o=Object(n.q)(s.top,0),r=Object(n.q)(s.bottom,0);f?E=p-2*(0!==e||0!==t?e+t:Object(n.q)(s.left,s.right)):w=m-2*(0!==o||0!==r?o+r:Object(n.q)(s.top,s.bottom))}await c({...t,availableWidth:E,availableHeight:w});const x=await i.getDimensions(a.floating);return p!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}},floating_ui_dom_esm_hide=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:r="referenceHidden",...i}=Object(n.c)(e,t);switch(r){case"referenceHidden":{const e=getSideOffsets(await detectOverflow(t,{...i,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:isAnySideFullyClipped(e)}}}case"escaped":{const e=getSideOffsets(await detectOverflow(t,{...i,altBoundary:!0}),o.floating);return{data:{escapedOffsets:e,escaped:isAnySideFullyClipped(e)}}}default:return{}}}}},floating_ui_dom_esm_arrow=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:i,rects:a,platform:c,elements:l,middlewareData:s}=t,{element:u,padding:d=0}=Object(n.c)(e,t)||{};if(null==u)return{};const f=Object(n.n)(d),p={x:o,y:r},m=Object(n.f)(i),b=Object(n.h)(m),v=await c.getDimensions(u),g="y"===m,h=g?"top":"left",y=g?"bottom":"right",O=g?"clientHeight":"clientWidth",j=a.reference[b]+a.reference[m]-p[m]-a.floating[b],w=p[m]-a.reference[m],E=await(null==c.getOffsetParent?void 0:c.getOffsetParent(u));let x=E?E[O]:0;x&&await(null==c.isElement?void 0:c.isElement(E))||(x=l.floating[O]||a.floating[b]);const C=j/2-w/2,R=x/2-v[b]/2-1,P=Object(n.r)(f[h],R),S=Object(n.r)(f[y],R),k=P,T=x-v[b]-S,A=x/2-v[b]/2+C,L=Object(n.a)(k,A,T),D=!s.arrow&&null!=Object(n.e)(i)&&A!==L&&a.reference[b]/2-(Ae.y-t.y),o=[];let r=null;for(let e=0;er.height/2?o.push([n]):o[o.length-1].push(n),r=n}return o.map(e=>Object(n.t)(getBoundingRect(e)))}(d),p=Object(n.t)(getBoundingRect(d)),m=Object(n.n)(l);const b=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=s&&null!=u)return f.find(e=>s>e.left-m.left&&se.top-m.top&&u=2){if("y"===Object(n.p)(o)){const e=f[0],t=f[f.length-1],r="top"===Object(n.o)(o),i=e.top,a=t.bottom,c=r?e.left:t.left,l=r?e.right:t.right;return{top:i,bottom:a,left:c,right:l,width:l-c,height:a-i,x:c,y:i}}const e="left"===Object(n.o)(o),t=Object(n.q)(...f.map(e=>e.right)),r=Object(n.r)(...f.map(e=>e.left)),i=f.filter(n=>e?n.left===r:n.right===t),a=i[0].top,c=i[i.length-1].bottom;return{top:a,bottom:c,left:r,right:t,width:t-r,height:c-a,x:r,y:a}}return p}},floating:r.floating,strategy:c});return i.reference.x!==b.reference.x||i.reference.y!==b.reference.y||i.reference.width!==b.reference.width||i.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},floating_ui_dom_esm_limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:o,y:r,placement:i,rects:a,middlewareData:c}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=Object(n.c)(e,t),d={x:o,y:r},f=Object(n.p)(i),p=Object(n.k)(f);let m=d[p],b=d[f];const v=Object(n.c)(l,t),g="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+g.mainAxis,n=a.reference[p]+a.reference[e]-g.mainAxis;mn&&(m=n)}if(u){var h,y;const e="y"===p?"width":"height",t=["top","left"].includes(Object(n.o)(i)),o=a.reference[f]-a.floating[e]+(t&&(null==(h=c.offset)?void 0:h[f])||0)+(t?0:g.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(y=c.offset)?void 0:y[f])||0)-(t?g.crossAxis:0);br&&(b=r)}return{[p]:m,[f]:b}}}},floating_ui_dom_esm_computePosition=(e,t,n)=>{const o=new Map,r={platform:a,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,c=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=computeCoordsFromPlacement(s,o,l),f=o,p={},m=0;for(let n=0;n{t.current=e}),t}function useFloating(e){void 0===e&&(e={});const{placement:t="bottom",strategy:a="absolute",middleware:c=[],platform:l,elements:{reference:s,floating:u}={},transform:d=!0,whileElementsMounted:f,open:p}=e,[m,b]=o.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=o.useState(c);deepEqual(v,c)||g(c);const[h,y]=o.useState(null),[O,j]=o.useState(null),w=o.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),E=o.useCallback(e=>{e!==P.current&&(P.current=e,j(e))},[]),x=s||h,C=u||O,R=o.useRef(null),P=o.useRef(null),S=o.useRef(m),k=null!=f,T=useLatestRef(f),A=useLatestRef(l),L=o.useCallback(()=>{if(!R.current||!P.current)return;const e={placement:t,strategy:a,middleware:v};A.current&&(e.platform=A.current),Object(n.d)(R.current,P.current,e).then(e=>{const t={...e,isPositioned:!0};D.current&&!deepEqual(S.current,t)&&(S.current=t,r.flushSync(()=>{b(t)}))})},[v,t,a,A]);i(()=>{!1===p&&S.current.isPositioned&&(S.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[p]);const D=o.useRef(!1);i(()=>(D.current=!0,()=>{D.current=!1}),[]),i(()=>{if(x&&(R.current=x),C&&(P.current=C),x&&C){if(T.current)return T.current(x,C,L);L()}},[x,C,L,T,k]);const I=o.useMemo(()=>({reference:R,floating:P,setReference:w,setFloating:E}),[w,E]),M=o.useMemo(()=>({reference:x,floating:C}),[x,C]),F=o.useMemo(()=>{const e={position:a,left:0,top:0};if(!M.floating)return e;const t=roundByDPR(M.floating,m.x),n=roundByDPR(M.floating,m.y);return d?{...e,transform:"translate("+t+"px, "+n+"px)",...getDPR(M.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:t,top:n}},[a,d,M.floating,m.x,m.y]);return o.useMemo(()=>({...m,update:L,refs:I,elements:M,floatingStyles:F}),[m,L,I,M,F])}const arrow$1=e=>{return{name:"arrow",options:e,fn(t){const{element:o,padding:r}="function"==typeof e?e(t):e;return o&&(i=o,{}.hasOwnProperty.call(i,"current"))?null!=o.current?Object(n.a)({element:o.current,padding:r}).fn(t):{}:o?Object(n.a)({element:o,padding:r}).fn(t):{};var i}}},offset=(e,t)=>({...Object(n.j)(e),options:[e,t]}),shift=(e,t)=>({...Object(n.l)(e),options:[e,t]}),limitShift=(e,t)=>({...Object(n.i)(e),options:[e,t]}),flip=(e,t)=>({...Object(n.f)(e),options:[e,t]}),hide=(e,t)=>({...Object(n.g)(e),options:[e,t]}),arrow=(e,t)=>({...arrow$1(e),options:[e,t]})},USxY:function(module,exports,e){"use strict";module.exports=e("r2IW")},V1XD:function(module,e,t){"use strict";t.d(e,"a",(function(){return clamp})),t.d(e,"b",(function(){return createCoords})),t.d(e,"c",(function(){return evaluate})),t.d(e,"d",(function(){return l})),t.d(e,"e",(function(){return getAlignment})),t.d(e,"f",(function(){return getAlignmentAxis})),t.d(e,"g",(function(){return getAlignmentSides})),t.d(e,"h",(function(){return getAxisLength})),t.d(e,"i",(function(){return getExpandedPlacements})),t.d(e,"j",(function(){return getOppositeAlignmentPlacement})),t.d(e,"k",(function(){return getOppositeAxis})),t.d(e,"l",(function(){return getOppositeAxisPlacements})),t.d(e,"m",(function(){return getOppositePlacement})),t.d(e,"n",(function(){return getPaddingObject})),t.d(e,"o",(function(){return getSide})),t.d(e,"p",(function(){return getSideAxis})),t.d(e,"q",(function(){return a})),t.d(e,"r",(function(){return i})),t.d(e,"s",(function(){return r})),t.d(e,"t",(function(){return rectToClientRect})),t.d(e,"u",(function(){return c})),t.d(e,"v",(function(){return n}));const n=["top","right","bottom","left"],o=["start","end"],r=n.reduce((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1]),[]),i=Math.min,a=Math.max,c=Math.round,l=Math.floor,createCoords=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function clamp(e,t,n){return a(e,i(t,n))}function evaluate(e,t){return"function"==typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);const o=getAlignment(e),r=getAlignmentAxis(e),i=getAxisLength(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=getOppositePlacement(a)),[a,getOppositePlacement(a)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>u[e])}function getOppositeAxisPlacements(e,t,n,o){const r=getAlignment(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(getSide(e),"start"===n,o);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(getOppositeAlignmentPlacement)))),i}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function getPaddingObject(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 rectToClientRect(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}},bwSB:function(module,e,t){"use strict";function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){const t=isWebKit(),n=getComputedStyle(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 getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;t=getParentNode(t)}return null}function isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getOverflowAncestors(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=getWindow(r);return i?t.concat(a,a.visualViewport||[],isOverflowElement(r)?r:[],a.frameElement&&n?getOverflowAncestors(a.frameElement):[]):t.concat(r,getOverflowAncestors(r,[],n))}t.d(e,"a",(function(){return getComputedStyle})),t.d(e,"b",(function(){return getContainingBlock})),t.d(e,"c",(function(){return getDocumentElement})),t.d(e,"d",(function(){return getNodeName})),t.d(e,"e",(function(){return getNodeScroll})),t.d(e,"f",(function(){return getOverflowAncestors})),t.d(e,"g",(function(){return getParentNode})),t.d(e,"h",(function(){return getWindow})),t.d(e,"i",(function(){return isContainingBlock})),t.d(e,"j",(function(){return isElement})),t.d(e,"k",(function(){return isHTMLElement})),t.d(e,"l",(function(){return isLastTraversableNode})),t.d(e,"m",(function(){return isOverflowElement})),t.d(e,"n",(function(){return isShadowRoot})),t.d(e,"o",(function(){return isTableElement})),t.d(e,"p",(function(){return isWebKit}))},fguj:function(module,e,t){"use strict";var n=t("acd4"),o=t("7dCO"),r=t("/5n7"),i=t("wLNJ"),a=t("q1tI"),c=t.n(a),l=t("A0dR"),s=t("T0OO"),u=t("St8r"),d=t("KpFA"),f=t("i0m8"),p=t("iuhU"),m=t("H2TA"),b=t("VD++"),v=t("ucBr"),g=t("bfFb"),h=t("MquD"),y=t("i8i4"),O="undefined"==typeof window?a.useEffect:a.useLayoutEffect,j=a.forwardRef((function(e,t){var n=e.alignItems,o=void 0===n?"center":n,r=e.autoFocus,i=void 0!==r&&r,c=e.button,l=void 0!==c&&c,s=e.children,d=e.classes,m=e.className,j=e.component,w=e.ContainerComponent,E=void 0===w?"li":w,x=e.ContainerProps,C=(x=void 0===x?{}:x).className,R=Object(u.a)(x,["className"]),P=e.dense,S=void 0!==P&&P,k=e.disabled,T=void 0!==k&&k,A=e.disableGutters,L=void 0!==A&&A,D=e.divider,I=void 0!==D&&D,M=e.focusVisibleClassName,F=e.selected,N=void 0!==F&&F,B=Object(u.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),W=a.useContext(h.a),V={dense:S||W.dense||!1,alignItems:o},q=a.useRef(null);O((function(){i&&q.current&&q.current.focus()}),[i]);var H=a.Children.toArray(s),K=H.length&&Object(v.a)(H[H.length-1],["ListItemSecondaryAction"]),U=a.useCallback((function(e){q.current=y.findDOMNode(e)}),[]),z=Object(g.a)(U,t),X=Object(f.a)({className:Object(p.a)(d.root,m,V.dense&&d.dense,!L&&d.gutters,I&&d.divider,T&&d.disabled,l&&d.button,"center"!==o&&d.alignItemsFlexStart,K&&d.secondaryAction,N&&d.selected),disabled:T},B),G=j||"li";return l&&(X.component=j||"div",X.focusVisibleClassName=Object(p.a)(d.focusVisible,M),G=b.a),K?(G=X.component||j?G:"div","li"===E&&("li"===G?G="div":"li"===X.component&&(X.component="div")),a.createElement(h.a.Provider,{value:V},a.createElement(E,Object(f.a)({className:Object(p.a)(d.container,C),ref:z},R),a.createElement(G,X,H),H.pop()))):a.createElement(h.a.Provider,{value:V},a.createElement(G,Object(f.a)({ref:z},X),H))})),w=Object(m.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(j),E=a.forwardRef((function(e,t){var n,o=e.classes,r=e.className,i=e.component,c=void 0===i?"li":i,l=e.disableGutters,s=void 0!==l&&l,d=e.ListItemClasses,m=e.role,b=void 0===m?"menuitem":m,v=e.selected,g=e.tabIndex,h=Object(u.a)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==g?g:-1),a.createElement(w,Object(f.a)({button:!0,role:b,tabIndex:n,component:c,selected:v,disableGutters:s,classes:Object(f.a)({dense:o.dense},d),className:Object(p.a)(o.root,r,v&&o.selected,!s&&o.gutters),ref:t},h))})),x=Object(m.a)((function(e){return{root:Object(f.a)({},e.typography.body1,Object(d.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(f.a)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(E),C=t("OhL7"),R=t("cnkd"),P=t("Who7");var S=Object(R.a)("selectOption",["root","icon","focusVisible","button","selected","container"]),k={name:"li0rzo",styles:"background:var(--cds-color-interactive-background-primary-hover-weak);color:var(--cds-color-interactive-primary-hover)"},T=Object(C.c)("background-color:var(--cds-color-neutral-background-primary);padding:var(--cds-spacing-50) 0;overflow:visible;white-space:unset;border-radius:var(--cds-border-radius-50);",P.c.bodyPrimary," .",S.container,"{display:flex;padding:var(--cds-spacing-100);flex:1 0 100%;max-width:100%;align-items:flex-start;justify-content:space-between;border-radius:calc(var(--cds-border-radius-50) - 1px);box-sizing:border-box;color:var(--cds-color-neutral-primary);}&.",S.selected,"{background:var(--cds-color-interactive-background-primary-hover-weak);.",S.container,"{background:var(--cds-color-interactive-background-primary-hover-weak);color:var(--cds-color-interactive-primary-hover);}}&.",S.focusVisible,"{position:relative;z-index:1;background:none;.",S.container,"{font-weight:400;",k,";}&::before{content:'';position:absolute;top:2px;bottom:2px;right:0;left:0;border-radius:var(--cds-spacing-50);box-shadow:0 0 0 1px var(--cds-color-interactive-stroke-primary-focus),0 0 0 2px var(--cds-color-interactive-background-primary-hover-weak);outline:1px solid transparent;outline-offset:2px;}}.",S.icon,"{margin-top:2px;margin-left:var(--cds-spacing-150);&>svg{display:block;}}&.",S.button,"{transition:none;}&.",S.root,"{&:hover{background:var(--cds-color-interactive-background-primary-hover-weak);.",S.container,"{",k,";}}}"),A=["selected","children"],SelectOption_esm_SelectOption=function(e,t){var a=e.selected,c=void 0!==a&&a,u=e.children,d=Object(r.c)(e,A),f=c&&!e.disabled,p=Object(n.a)(d.id),m=Object(o.a)(s.a),b=p+"-label",v=p+"-selected-label";return e.hidden?null:Object(i.b)(x,Object.assign({ref:t,button:!0,disableRipple:!0,ListItemClasses:{button:S.button},classes:{root:S.root,selected:S.selected},css:T,focusVisibleClassName:S.focusVisible,selected:f},d,{"aria-labelledby":f?[b,v].join(" "):b,"aria-selected":f,id:p},{children:Object(i.c)("div",Object.assign({className:S.container},{children:[Object(i.b)("div",Object.assign({id:b},{children:u}),void 0),c&&Object(i.b)("div",Object.assign({className:S.icon,id:v},{children:Object(i.b)(l.a,{size:"medium",title:m.format("selected")},void 0)}),void 0)]}),void 0)}),void 0)},L=c.a.forwardRef(SelectOption_esm_SelectOption);e.a=L},r2IW:function(module,exports,e){"use strict";var t=60103,n=60106,o=60107,r=60108,i=60114,a=60109,c=60110,l=60112,s=60113,u=60120,d=60115,f=60116,p=60121,m=60122,b=60117,v=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;t=h("react.element"),n=h("react.portal"),o=h("react.fragment"),r=h("react.strict_mode"),i=h("react.profiler"),a=h("react.provider"),c=h("react.context"),l=h("react.forward_ref"),s=h("react.suspense"),u=h("react.suspense_list"),d=h("react.memo"),f=h("react.lazy"),p=h("react.block"),m=h("react.server.block"),b=h("react.fundamental"),v=h("react.debug_trace_mode"),g=h("react.legacy_hidden")}function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case o:case i:case r:case s:case u:return e;default:switch(e=e&&e.$$typeof){case c:case l:case f:case d:case a:return e;default:return p}}case n:return p}}}var O=a,j=t,w=l,E=o,x=f,C=d,R=n,P=i,S=r,k=s;exports.ContextConsumer=c,exports.ContextProvider=O,exports.Element=j,exports.ForwardRef=w,exports.Fragment=E,exports.Lazy=x,exports.Memo=C,exports.Portal=R,exports.Profiler=P,exports.StrictMode=S,exports.Suspense=k,exports.isAsyncMode=function(){return!1},exports.isConcurrentMode=function(){return!1},exports.isContextConsumer=function(e){return y(e)===c},exports.isContextProvider=function(e){return y(e)===a},exports.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},exports.isForwardRef=function(e){return y(e)===l},exports.isFragment=function(e){return y(e)===o},exports.isLazy=function(e){return y(e)===f},exports.isMemo=function(e){return y(e)===d},exports.isPortal=function(e){return y(e)===n},exports.isProfiler=function(e){return y(e)===i},exports.isStrictMode=function(e){return y(e)===r},exports.isSuspense=function(e){return y(e)===s},exports.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===i||e===v||e===r||e===s||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===b||e.$$typeof===p||e[0]===m)},exports.typeOf=y},rzCt:function(module,e,t){"use strict";var n=t("acd4"),o=t("7dCO"),r=t("/5n7"),i=t("wLNJ"),a=t("q1tI"),c=t.n(a),l=t("iuhU"),s=t("T0OO"),u=t("oDcD"),d=t("8ggn"),f=t("rmOs"),p=t("6SGe"),m=t("64Kq"),b=t("tn4l"),v=t("la4U"),g=t("FdHa"),h=t("QjcJ"),y=t("gksZ"),O=t("OhL7"),j=t("l1rq"),w=t("+H68"),E=t("dYbo"),x=t("DNk0"),C=t("hum/"),R=t("6tXx"),P=t("i0m8"),S=t("St8r"),k=t("XNZ3"),T=t("qVuW");function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var A=t("TrhM"),L=(t("USxY"),t("gk1O")),D=t("NqtD"),I=t("H2TA"),M=t("5Gel"),F=t("i8i4"),N=t("MquD"),B=a.forwardRef((function(e,t){var n=e.children,o=e.classes,r=e.className,i=e.component,c=void 0===i?"ul":i,s=e.dense,u=void 0!==s&&s,d=e.disablePadding,f=void 0!==d&&d,p=e.subheader,m=Object(S.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),b=a.useMemo((function(){return{dense:u}}),[u]);return a.createElement(N.a.Provider,{value:b},a.createElement(c,Object(P.a)({className:Object(l.a)(o.root,r,u&&o.dense,!f&&o.padding,p&&o.subheader),ref:t},m),p,n))})),W=Object(I.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(B),V=t("bwkw"),q=t("bfFb");function nextItem(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function previousItem(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function textCriteriaMatches(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function moveFocus(e,t,n,o,r,i){for(var a=!1,c=r(e,t,!!t&&n);c;){if(c===e.firstChild){if(a)return;a=!0}var l=!o&&(c.disabled||"true"===c.getAttribute("aria-disabled"));if(c.hasAttribute("tabindex")&&textCriteriaMatches(c,i)&&!l)return void c.focus();c=r(e,c,n)}}var H="undefined"==typeof window?a.useEffect:a.useLayoutEffect,K=a.forwardRef((function(e,t){var n=e.actions,o=e.autoFocus,r=void 0!==o&&o,i=e.autoFocusItem,c=void 0!==i&&i,l=e.children,s=e.className,u=e.disabledItemsFocusable,d=void 0!==u&&u,f=e.disableListWrap,p=void 0!==f&&f,m=e.onKeyDown,b=e.variant,v=void 0===b?"selectedMenu":b,g=Object(S.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),h=a.useRef(null),y=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});H((function(){r&&h.current.focus()}),[r]),a.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!h.current.style.width;if(e.clientHeight0&&(a-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&i!==r.keys[0]&&(r.repeating=!1)),r.lastTime=a,r.keys.push(i);var c=o&&!r.repeating&&textCriteriaMatches(o,r);r.previousKeyMatched&&(c||moveFocus(t,o,!1,d,nextItem,r))?e.preventDefault():r.previousKeyMatched=!1}m&&m(e)},tabIndex:r?0:-1},g),E))})),U=t("GIek"),z=t("tr08"),X={vertical:"top",horizontal:"right"},G={vertical:"top",horizontal:"left"},Y=a.forwardRef((function(e,t){var n=e.autoFocus,o=void 0===n||n,r=e.children,i=e.classes,c=e.disableAutoFocusItem,s=void 0!==c&&c,u=e.MenuListProps,d=void 0===u?{}:u,f=e.onClose,p=e.onEntering,m=e.open,b=e.PaperProps,v=void 0===b?{}:b,g=e.PopoverClasses,h=e.transitionDuration,y=void 0===h?"auto":h,O=e.TransitionProps,j=(O=void 0===O?{}:O).onEntering,w=Object(S.a)(O,["onEntering"]),E=e.variant,x=void 0===E?"selectedMenu":E,C=Object(S.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),R=Object(z.a)(),k=o&&!s&&m,T=a.useRef(null),A=a.useRef(null),L=-1;a.Children.map(r,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("menu"!==x&&e.props.selected?L=t:-1===L&&(L=t)))}));var D=a.Children.map(r,(function(e,t){return t===L?a.cloneElement(e,{ref:function(t){A.current=F.findDOMNode(t),Object(U.a)(e.ref,t)}}):e}));return(a.createElement(M.a,Object(P.a)({getContentAnchorEl:function(){return A.current},classes:g,onClose:f,TransitionProps:Object(P.a)({onEntering:function(e,t){T.current&&T.current.adjustStyleForScrollbar(e,R),p&&p(e,t),j&&j(e,t)}},w),anchorOrigin:"rtl"===R.direction?X:G,transformOrigin:"rtl"===R.direction?X:G,PaperProps:Object(P.a)({},v,{classes:Object(P.a)({},v.classes,{root:i.paper})}),open:m,ref:t,transitionDuration:y},C),a.createElement(K,Object(P.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:T,autoFocus:o&&(-1===L||s),autoFocusItem:k,variant:x},d,{className:Object(l.a)(i.list,d.className)}),D)))})),J=Object(I.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Y),Z=t("ByqB"),Q=t("yCxk");function areEqualValues(e,t){return"object"===_typeof(t)&&null!==t?e===t:String(e)===String(t)}var ee=a.forwardRef((function(e,t){var n=e["aria-label"],o=e.autoFocus,r=e.autoWidth,i=e.children,c=e.classes,s=e.className,u=e.defaultValue,d=e.disabled,f=e.displayEmpty,p=e.IconComponent,m=e.inputRef,b=e.labelId,v=e.MenuProps,g=void 0===v?{}:v,h=e.multiple,y=e.name,O=e.onBlur,j=e.onChange,w=e.onClose,E=e.onFocus,x=e.onOpen,C=e.open,R=e.readOnly,k=e.renderValue,I=e.SelectDisplayProps,M=void 0===I?{}:I,F=e.tabIndex,N=(e.type,e.value),B=e.variant,W=void 0===B?"standard":B,V=Object(S.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),H=Object(Q.a)({controlled:N,default:u,name:"Select"}),K=Object(T.a)(H,2),U=K[0],z=K[1],X=a.useRef(null),G=a.useState(null),Y=G[0],ee=G[1],te=a.useRef(null!=C).current,ne=a.useState(),oe=ne[0],re=ne[1],ie=a.useState(!1),ae=ie[0],ce=ie[1],le=Object(q.a)(t,m);a.useImperativeHandle(le,(function(){return{focus:function(){Y.focus()},node:X.current,value:U}}),[Y,U]),a.useEffect((function(){o&&Y&&Y.focus()}),[o,Y]),a.useEffect((function(){if(Y){var e=Object(L.a)(Y).getElementById(b);if(e){var handler=function(){getSelection().isCollapsed&&Y.focus()};return e.addEventListener("click",handler),function(){e.removeEventListener("click",handler)}}}}),[b,Y]);var se,ue,update=function(e,t){e?x&&x(t):w&&w(t),te||(re(r?null:Y.clientWidth),ce(e))},de=a.Children.toArray(i),handleItemClick=function(e){return function(t){var n;if(h||update(!1,t),h){n=Array.isArray(U)?U.slice():[];var o=U.indexOf(e.props.value);-1===o?n.push(e.props.value):n.splice(o,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),U!==n&&(z(n),j&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:y}}),j(t,e)))}},fe=null!==Y&&(te?C:ae);delete V["aria-invalid"];var pe=[],me=!1;(Object(Z.b)({value:U})||f)&&(k?se=k(U):me=!0);var be=de.map((function(e){if(!a.isValidElement(e))return null;var t;if(h){if(!Array.isArray(U))throw new Error(Object(A.a)(2));(t=U.some((function(t){return areEqualValues(t,e.props.value)})))&&me&&pe.push(e.props.children)}else(t=areEqualValues(U,e.props.value))&&me&&(ue=e.props.children);return t&&!0,a.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:handleItemClick(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));me&&(se=h?pe.join(", "):ue);var ve,ge=oe;!r&&te&&Y&&(ge=Y.clientWidth),ve=void 0!==F?F:d?null:0;var he=M.id||(y?"mui-component-select-".concat(y):void 0);return(a.createElement(a.Fragment,null,a.createElement("div",Object(P.a)({className:Object(l.a)(c.root,c.select,c.selectMenu,c[W],s,d&&c.disabled),ref:ee,tabIndex:ve,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":fe?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[b,he].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),update(!0,e))}},onMouseDown:d||R?null:function(e){0===e.button&&(e.preventDefault(),Y.focus(),update(!0,e))},onBlur:function(e){!fe&&O&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:U,name:y}}),O(e))},onFocus:E},M,{id:he}),function(e){return null==e||"string"==typeof e&&!e.trim()}(se)?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):se),a.createElement("input",Object(P.a)({value:Array.isArray(U)?U.join(","):U,name:y,ref:X,"aria-hidden":!0,onChange:function(e){var t=de.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=de[t];z(n.props.value),j&&j(e,n)}},tabIndex:-1,className:c.nativeInput,autoFocus:o},V)),a.createElement(p,{className:Object(l.a)(c.icon,c["icon".concat(Object(D.a)(W))],fe&&c.iconOpen,d&&c.disabled)}),a.createElement(J,Object(P.a)({id:"menu-".concat(y||""),anchorEl:Y,open:fe,onClose:function(e){update(!1,e)}},g,{MenuListProps:Object(P.a)({"aria-labelledby":b,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:Object(P.a)({},g.PaperProps,{style:Object(P.a)({minWidth:ge},null!=g.PaperProps?g.PaperProps.style:null)})}),be)))})),te=t("28cb"),ne=t("EHdT"),oe=t("5AJ6"),re=Object(oe.a)(a.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ie=t("MjS+"),ae=a.forwardRef((function(e,t){var n=e.disableUnderline,o=e.classes,r=e.fullWidth,i=void 0!==r&&r,c=e.inputComponent,s=void 0===c?"input":c,u=e.multiline,d=void 0!==u&&u,f=e.type,p=void 0===f?"text":f,m=Object(S.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return(a.createElement(ie.a,Object(P.a)({classes:Object(P.a)({},o,{root:Object(l.a)(o.root,!n&&o.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:d,ref:t,type:p},m)))}));ae.muiName="Input";var ce=Object(I.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(ae),le=a.forwardRef((function(e,t){var n=e.classes,o=e.className,r=e.disabled,i=e.IconComponent,c=e.inputRef,s=e.variant,u=void 0===s?"standard":s,d=Object(S.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return(a.createElement(a.Fragment,null,a.createElement("select",Object(P.a)({className:Object(l.a)(n.root,n.select,n[u],o,r&&n.disabled),disabled:r,ref:c||t},d)),e.multiple?null:a.createElement(i,{className:Object(l.a)(n.icon,n["icon".concat(Object(D.a)(u))],r&&n.disabled)})))})),NativeSelect_styles=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},se=a.createElement(ce,null),ue=a.forwardRef((function(e,t){var n=e.children,o=e.classes,r=e.IconComponent,i=void 0===r?re:r,c=e.input,l=void 0===c?se:c,s=e.inputProps,u=(e.variant,Object(S.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),d=Object(ne.a)(),f=Object(te.a)({props:e,muiFormControl:d,states:["variant"]});return a.cloneElement(l,Object(P.a)({inputComponent:le,inputProps:Object(P.a)({children:n,classes:o,IconComponent:i,variant:f.variant,type:void 0},s,l?l.props.inputProps:{}),ref:t},u))}));ue.muiName="Select";Object(I.a)(NativeSelect_styles,{name:"MuiNativeSelect"})(ue);var de=a.forwardRef((function(e,t){var n=e.disableUnderline,o=e.classes,r=e.fullWidth,i=void 0!==r&&r,c=e.inputComponent,s=void 0===c?"input":c,u=e.multiline,d=void 0!==u&&u,f=e.type,p=void 0===f?"text":f,m=Object(S.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return(a.createElement(ie.a,Object(P.a)({classes:Object(P.a)({},o,{root:Object(l.a)(o.root,!n&&o.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:d,ref:t,type:p},m)))}));de.muiName="Input";var fe=Object(I.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:o,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:o}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(de),pe=t("KmP9"),me=NativeSelect_styles,be=a.createElement(ce,null),ve=a.createElement(fe,null),ge=a.forwardRef((function Select(e,t){var n=e.autoWidth,o=void 0!==n&&n,r=e.children,i=e.classes,c=e.displayEmpty,l=void 0!==c&&c,s=e.IconComponent,u=void 0===s?re:s,d=e.id,f=e.input,p=e.inputProps,m=e.label,b=e.labelId,v=e.labelWidth,g=void 0===v?0:v,h=e.MenuProps,y=e.multiple,O=void 0!==y&&y,j=e.native,w=void 0!==j&&j,E=e.onClose,x=e.onOpen,C=e.open,R=e.renderValue,T=e.SelectDisplayProps,A=e.variant,L=void 0===A?"standard":A,D=Object(S.a)(e,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),I=w?le:ee,M=Object(ne.a)(),F=Object(te.a)({props:e,muiFormControl:M,states:["variant"]}).variant||L,N=f||{standard:be,outlined:a.createElement(pe.a,{label:m,labelWidth:g}),filled:ve}[F];return a.cloneElement(N,Object(P.a)({inputComponent:I,inputProps:Object(P.a)({children:r,IconComponent:u,variant:F,type:void 0,multiple:O},w?{id:d}:{autoWidth:o,displayEmpty:l,labelId:b,MenuProps:h,onClose:E,onOpen:x,open:C,renderValue:R,SelectDisplayProps:Object(P.a)({id:d},T)},p,{classes:p?Object(k.a)({baseClasses:i,newClasses:p.classes,Component:Select}):i},f?f.props.inputProps:{}),ref:t},D))}));ge.muiName="Select";var he=Object(I.a)(me,{name:"MuiSelect"})(ge),ye=t("tXqT"),Oe=t("gVb4"),je={OPTION_HEIGHT:48,OPTIONS_DIVIDER_HEIGHT:4,DEFAULT_VISIBLE_ITEM_COUNT:5,DROPDOWN_MIN_WIDTH:100,DROPDOWN_MAX_WIDTH:400},we=t("cnkd"),Ee=Object(we.a)("select",["select","opened","focusVisible","paper","mobileMenu","list","icon","valid","invalid","readOnly"]),getSelectCss_esm_getDropdownCss=function(e){return Object(O.c)(".",Ee.paper,"{background-color:var(--cds-color-neutral-background-primary);overflow:hidden;box-sizing:border-box;margin-top:var(--cds-spacing-100);border:1px solid var(--cds-color-interactive-primary-hover);/*! @noflip */padding-right:0;}.",Ee.list,"{overflow:auto;",(t=Array.isArray(e.children)?e.children.length:1,void 0===(n=e.visibleItemCount)&&(n=je.DEFAULT_VISIBLE_ITEM_COUNT),Object(O.c)("padding:",t>n?"var(--cds-spacing-150)":"var(--cds-spacing-200)",";max-height:",je.OPTION_HEIGHT*n+je.OPTIONS_DIVIDER_HEIGHT*(n-1),"px;"))," &>li+li{margin-top:var(--cds-spacing-50);}}.",Ee.valid,"{&.",Ee.paper,"{border-color:var(--cds-color-feedback-success-hover);}}.",Ee.invalid,"{&.",Ee.paper,"{border-color:var(--cds-color-feedback-error-hover);}}&[dir='rtl']{.",Ee.paper,"{/*! @noflip */padding-left:0;}}");var t,n},xe=Object(O.c)(".",Ee.select,"{padding-right:44px;&:focus{background:unset;}}.",Ee.readOnly,"{cursor:not-allowed;}.",Ee.icon,"{top:50%;color:var(--cds-color-neutral-primary);right:var(--cds-spacing-150);left:auto;transform:translate(0, -50%);& svg{display:block;}}&.",Ee.opened,"{.",Ee.select,"{&>span{color:var(--cds-color-neutral-primary);}}.",f.a.notchedOutline,"{border-color:var(--cds-color-interactive-primary-hover);}&.",f.a.valid,"{.",f.a.notchedOutline,"{border-color:var(--cds-color-feedback-success-hover);}}&.",f.a.invalid,"{.",f.a.notchedOutline,"{border-color:var(--cds-color-feedback-error-hover);}}}&.",Ee.focusVisible,"{",f.c,";}");var Ce=Object(we.a)("mobileMenuList",["root"]),Re={name:"ee1468",styles:"outline:none;overflow:auto;max-height:350px;padding:var(--cds-spacing-200);&>li+li{margin-top:var(--cds-spacing-50);}"},Pe=["children","onItemSelection"],MobileMenuList_esm_MobileMenuList=function(e,t){var n=e.children,o=e.onItemSelection,l=Object(r.c)(e,Pe),s=c.a.useRef(null);Object(a.useImperativeHandle)(t,(function(){return{focus:function(){var e;null==(e=s.current)||e.focus()}}}));var u=-1;return Object(i.b)(K,Object.assign({autoFocusItem:!0,classes:Ce,css:Re},l,{children:c.a.Children.map(n,(function(t,n){var r,i,a=(r=t.props.value,"object"==typeof(i=e.value)&&null!==i?r===i:String(r)===String(i)),handleItemSelection=function(e){Object.defineProperty(e,"target",{writable:!0,value:{value:t.props.value,name:void 0}}),null==o||o(e,t)};return t.props.disabled||(a?u=n:-1===u&&(u=n)),c.a.cloneElement(t,{"aria-selected":a?"true":void 0,role:"option",onClick:handleItemSelection,onKeyUp:function(e){" "===e.key&&e.preventDefault(),null==t.props.onKeyUp||t.props.onKeyUp(e)},onKeyDown:function(e){" "===e.key&&handleItemSelection(e)},selected:a,value:void 0,ref:u===n?s:null})}))}),void 0)},Se=c.a.forwardRef(MobileMenuList_esm_MobileMenuList),ke=["SelectDisplayProps","className"],Te=c.a.forwardRef((function(e,t){var n,o=e.SelectDisplayProps,a=e.className,s=Object(r.c)(e,ke),u=null==(n=e.inputProps)?void 0:n.readOnly,d=c.a.useRef(null),p=c.a.useRef(null),m=Object(C.a)({controlled:e.value,default:e.defaultValue,name:"Select",state:"value"}),b=m[0],w=m[1],E=Object(C.a)({controlled:e.open,default:!1,name:"Select",state:"open"}),P=E[0],S=E[1],k=Object(h.a)(),T=k.isFocusVisible,A=k.focusProps,L=Object(v.b)().direction,D=getSelectCss_esm_getDropdownCss(e),I=Object(y.a)(g.a.down("xs")),M="ltr"===L?"left":"right",F=Object(x.b)(),handleOpen=function(t){S(!0),null==e.onOpen||e.onOpen(t)},handleClose=function(t){S(!1),null==e.onClose||e.onClose(t)},handleSelection=function(t){w(t.target.value),S(!1),null==e.onChange||e.onChange(t)};return Object(i.c)(c.a.Fragment,{children:[Object(i.b)(O.a,{children:function(n){var c,d,m,v,g=n.css;return Object(i.b)(he,Object.assign({ref:t,css:xe},s,{IconComponent:function(e){return Object(i.b)(Select_esm_IconComponent,Object.assign({open:P,readOnly:u},e),void 0)},MenuProps:{dir:L,className:g(D),autoFocus:T,classes:{paper:Object(l.a)(Ee.paper,(c={},c[Ee.valid]="success"===F.validationStatus,c[Ee.invalid]="error"===F.validationStatus,c)),list:Ee.list},PaperProps:{style:{maxWidth:je.DROPDOWN_MAX_WIDTH}},MenuListProps:{style:{width:"auto"}},getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:M},elevation:0,transitionDuration:0,transformOrigin:{vertical:"top",horizontal:M}},SelectDisplayProps:Object(r.b)({"aria-describedby":F.ariaDescribedBy,onFocus:A.onFocus,onBlur:A.onBlur,"aria-expanded":P},o),className:Object(l.a)((d={},d[Ee.opened]=P,d[Ee.focusVisible]=T,d[f.a.focused]=T,d[f.a.readOnly]=u,d),a),classes:{select:Object(l.a)(Ee.select,(m={},m[Ee.readOnly]=u,m)),icon:Ee.icon},input:Object(i.b)(R.a,{hideOutline:P,inputProps:e.inputProps,inputRef:p},void 0),labelId:null!=(v=F.labelId)?v:s.labelId,open:!I&&P,value:b,onChange:handleSelection,onClose:handleClose,onOpen:handleOpen}),void 0)}},void 0),I&&Object(i.c)(ye.a,Object.assign({initialFocusRef:d,open:P,returnFocusRef:p,onClose:handleClose},{children:[Object(i.b)(Oe.a,{children:Object(i.b)(j.a,Object.assign({component:"p",variant:"subtitleMedium"},{children:e.label}),void 0)},void 0),Object(i.b)(Se,Object.assign({ref:d,"aria-label":e.label,value:b,onItemSelection:handleSelection},{children:e.children}),void 0)]}),void 0)]},void 0)}));Te.defaultProps={defaultValue:""};var Select_esm_IconComponent=function(e){var t;return e.open?Object(i.b)(w.a,{className:e.className,"data-testid":"chevron-up-icon",size:"large"},void 0):Object(i.b)(E.a,{className:Object(l.a)(e.className,(t={},t[Ee.readOnly]=e.readOnly,t)),"data-testid":"chevron-down-icon",size:"large"},void 0)},Ae=Te,Le=t("fguj"),De=Object(we.a)("select-field",["label","formValidationStatus","formSupportText","readOnly","root"]),Ie=Object(O.c)(".",De.root,"{margin-top:var(--cds-spacing-100);&:only-child{margin-top:0;}}.",De.readOnly,"{background-color:var(--cds-color-neutral-background-primary-weak);}.",De.label,"{margin:0;}.",De.formValidationStatus,"{margin-top:var(--cds-spacing-100);&+.",De.root,"{margin-top:var(--cds-spacing-50);}}.",De.formSupportText,"{margin:var(--cds-spacing-50) 0 0;}"),Me=["name","label","renderLabel","children","placeholder","value","onChange","onClose","onOpen","invert","className","disabled","fullWidth","optional","validationStatus","validationLabel","supportText","defaultValue","inputProps","readOnly","necessityIndicator","aria-label","aria-labelledby"],Fe=c.a.forwardRef((function(e,t){var a,c=e.name,v=e.label,g=e.renderLabel,h=e.children,y=e.placeholder,O=e.value,j=e.onChange,w=e.onClose,E=e.onOpen,x=e.invert,C=e.className,R=e.disabled,P=e.fullWidth,S=e.optional,k=e.validationStatus,T=e.validationLabel,A=e.supportText,L=e.defaultValue,D=e.inputProps,I=e.readOnly,M=e.necessityIndicator,F=e["aria-label"],N=void 0===F?null==D?void 0:D["aria-label"]:F,B=e["aria-labelledby"],W=void 0===B?null==D?void 0:D["aria-labelledby"]:B,V=Object(r.c)(e,Me),q=Object(n.a)(e.id),H=q+"-value",K=q+"-label",U=Object(o.a)(s.a),z=Object(d.a)(K,H),X=!v&&!g,G=null!=W?W:X?void 0:z,Y=N&&[N,S?"":U.format("required")].filter((function(e){return e})).join(", ");return Object(i.c)(b.a,Object.assign({ref:t,className:C,css:Ie,disabled:R,fullWidth:P,id:q,invert:x,optional:S,supportText:A,validationStatus:k},{children:[!X&&Object(i.b)(m.a,Object.assign({announceRequiredIndicator:!0,className:De.label,necessityIndicator:!M&&S?"text":M,renderLabel:g},{children:v}),void 0),A&&Object(i.b)(p.a,Object.assign({className:De.formSupportText},{children:A}),void 0),k&&T&&Object(i.b)(u.a,{className:De.formValidationStatus,label:T},void 0),Object(i.b)(Ae,Object.assign({displayEmpty:!0,SelectDisplayProps:{id:H,"aria-label":v?N:Y,"aria-labelledby":G},className:Object(l.a)(De.root,(a={},a[De.readOnly]=I,a)),defaultValue:L,inputProps:Object(r.b)({},D,{readOnly:I}),label:v,name:c,value:O,onChange:j,onClose:w,onOpen:E},V,{children:Array.isArray(h)?[Object(i.b)(Le.a,Object.assign({disabled:!0,hidden:!0,value:""},{children:Object(i.b)("span",Object.assign({className:f.a.placeholder},{children:y}),void 0)}),"placeholder")].concat(h):h}),void 0)]}),void 0)}));e.a=Fe}}]); //# sourceMappingURL=5.1dcc63f9af5d63d47fdc.js.map