@sledge-app/js 0.0.78 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},r={},o={exports:{}},i={},a=Symbol.for("react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}function x(){}function S(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=E.prototype;var C=S.prototype=new x;C.constructor=S,b(C,E.prototype),C.isPureReactComponent=!0;var k=Array.isArray,P=Object.prototype.hasOwnProperty,T={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function D(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)P.call(t,r)&&!R.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:T.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var L=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var l=!1;if(null===e)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case s:l=!0}}if(l)return o=o(l=e),e=""===r?"."+A(l,0):r,k(o)?(n="",null!=e&&(n=e.replace(L,"$&/")+"/"),M(o,t,n,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(L,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",k(e))for(var u=0;u<e.length;u++){var c=r+A(i=e[u],u);l+=M(i,t,n,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=g&&e[g]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(i=e.next()).done;)l+=M(i=i.value,t,n,c=r+A(i,u++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return M(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var F={current:null},I={transition:null},V={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:I,ReactCurrentOwner:T};i.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i.Component=E,i.Fragment=l,i.Profiler=c,i.PureComponent=S,i.StrictMode=u,i.Suspense=h,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,i.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=b({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=T.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)P.call(t,u)&&!R.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:a,type:e.type,key:o,ref:i,props:r,_owner:s}},i.createContext=function(e){return(e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:d,_context:e},e.Consumer=e},i.createElement=D,i.createFactory=function(e){var t=D.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:p,render:e}},i.isValidElement=_,i.lazy=function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:N}},i.memo=function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},i.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},i.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},i.useCallback=function(e,t){return F.current.useCallback(e,t)},i.useContext=function(e){return F.current.useContext(e)},i.useDebugValue=function(){},i.useDeferredValue=function(e){return F.current.useDeferredValue(e)},i.useEffect=function(e,t){return F.current.useEffect(e,t)},i.useId=function(){return F.current.useId()},i.useImperativeHandle=function(e,t,n){return F.current.useImperativeHandle(e,t,n)},i.useInsertionEffect=function(e,t){return F.current.useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return F.current.useLayoutEffect(e,t)},i.useMemo=function(e,t){return F.current.useMemo(e,t)},i.useReducer=function(e,t,n){return F.current.useReducer(e,t,n)},i.useRef=function(e){return F.current.useRef(e)},i.useState=function(e){return F.current.useState(e)},i.useSyncExternalStore=function(e,t,n){return F.current.useSyncExternalStore(e,t,n)},i.useTransition=function(){return F.current.useTransition()},i.version="18.2.0",o.exports=i;var z=o.exports;const B=t(z),j=e({__proto__:null,default:B},[z]);var U=z,H=Symbol.for("react.element"),W=Symbol.for("react.fragment"),$=Object.prototype.hasOwnProperty,K=U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Y={key:!0,ref:!0,__self:!0,__source:!0};function X(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)$.call(t,r)&&!Y.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:H,type:e,key:i,ref:a,props:o,_owner:K.current}}r.Fragment=W,r.jsx=X,r.jsxs=X,n.exports=r;var q=n.exports;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}function G(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>z.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return z.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=z.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=z.useMemo((()=>a),Object.values(a));return z.createElement(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=z.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Z(r,...t)]}function Z(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return z.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function J(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function ee(...e){return z.useCallback(J(...e),e)}function te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const ne=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?z.useLayoutEffect:()=>{},re=j["useId".toString()]||(()=>{});let oe=0;function ie(e){const[t,n]=z.useState(re());return ne((()=>{e||n((e=>null!=e?e:String(oe++)))}),[e]),e||(t?`radix-${t}`:"")}function ae(e){const t=z.useRef(e);return z.useEffect((()=>{t.current=e})),z.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function se({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=z.useState(e),[r]=n,o=z.useRef(r),i=ae(t);return z.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=ae(n);return[a,z.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}var le={exports:{}},ue={},ce={exports:{}},de={};!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,A(E);else{var t=n(u);null!==t&&M(w,t.startTime-e)}}function E(t,o){h=!1,m&&(m=!1,g(k),k=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!R());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var v=n(u);null!==v&&M(w,v.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,C=null,k=-1,P=5,T=-1;function R(){return!(e.unstable_now()-T<P)}function D(){if(null!==C){var t=e.unstable_now();T=t;var n=!0;try{n=C(!0,t)}finally{n?x():(S=!1,C=null)}}else S=!1}if("function"==typeof y)x=function(){y(D)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,L=_.port2;_.port1.onmessage=D,x=function(){L.postMessage(null)}}else x=function(){v(D,0)};function A(e){C=e,S||(S=!0,x())}function M(t,n){k=v((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,A(E))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(g(k),k=-1):m=!0,M(w,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,A(E))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(de),ce.exports=de;var fe=ce.exports,pe=z,he=fe;function me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ve=new Set,ge={};function ye(e,t){be(e,t),be(e+"Capture",t)}function be(e,t){for(ge[e]=t,e=0;e<t.length;e++)ve.add(t[e])}var we=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ee=Object.prototype.hasOwnProperty,xe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Se={},Ce={};function ke(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Pe[e]=new ke(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Pe[t]=new ke(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Pe[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Pe[e]=new ke(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Pe[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Pe[e]=new ke(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Pe[e]=new ke(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Pe[e]=new ke(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Pe[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Te=/[\-:]([a-z])/g;function Re(e){return e[1].toUpperCase()}function De(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Ee.call(Ce,e)||!Ee.call(Se,e)&&(xe.test(e)?Ce[e]=!0:(Se[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Te,Re);Pe[t]=new ke(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Te,Re);Pe[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Te,Re);Pe[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)})),Pe.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _e=pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Le=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),Fe=Symbol.for("react.provider"),Ie=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),ze=Symbol.for("react.suspense"),Be=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),He=Symbol.for("react.offscreen"),We=Symbol.iterator;function $e(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=We&&e[We]||e["@@iterator"])?e:null}var Ke,Ye=Object.assign;function Xe(e){if(void 0===Ke)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||""}return"\n"+Ke+e}var qe=!1;function Qe(e,t){if(!e||qe)return"";qe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"==typeof u.stack){for(var o=u.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{qe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xe(e):""}function Ge(e){switch(e.tag){case 5:return Xe(e.type);case 16:return Xe("Lazy");case 13:return Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 2:case 15:return e=Qe(e.type,!1);case 11:return e=Qe(e.type.render,!1);case 1:return e=Qe(e.type,!0);default:return""}}function Ze(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Me:return"Fragment";case Ae:return"Portal";case Ne:return"Profiler";case Oe:return"StrictMode";case ze:return"Suspense";case Be:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ie:return(e.displayName||"Context")+".Consumer";case Fe:return(e._context.displayName||"Context")+".Provider";case Ve:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case je:return null!==(t=e.displayName||null)?t:Ze(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return Ze(e(t))}catch(n){}}return null}function Je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ze(t);case 8:return t===Oe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function tt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function nt(e){e._valueTracker||(e._valueTracker=function(e){var t=tt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function rt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ot(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function it(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function at(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=et(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function st(e,t){null!=(t=t.checked)&&De(e,"checked",t,!1)}function lt(e,t){st(e,t);var n=et(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ct(e,t.type,n):t.hasOwnProperty("defaultValue")&&ct(e,t.type,et(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ut(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ct(e,t,n){"number"===t&&ot(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dt=Array.isArray;function ft(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+et(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function pt(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(me(91));return Ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ht(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(me(92));if(dt(n)){if(1<n.length)throw Error(me(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:et(n)}}function mt(e,t){var n=et(t.value),r=et(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function vt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function gt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function yt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?gt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var bt,wt,Et=(wt=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((bt=bt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return wt(e,t)}))}:wt);function xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var St={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ct=["Webkit","ms","Moz","O"];function kt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||St.hasOwnProperty(e)&&St[e]?(""+t).trim():t+"px"}function Pt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=kt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(St).forEach((function(e){Ct.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),St[t]=St[e]}))}));var Tt=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rt(e,t){if(t){if(Tt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(me(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(me(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(me(62))}}function Dt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _t=null;function Lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Mt=null,Ot=null;function Nt(e){if(e=_i(e)){if("function"!=typeof At)throw Error(me(280));var t=e.stateNode;t&&(t=Ai(t),At(e.stateNode,e.type,t))}}function Ft(e){Mt?Ot?Ot.push(e):Ot=[e]:Mt=e}function It(){if(Mt){var e=Mt,t=Ot;if(Ot=Mt=null,Nt(e),t)for(e=0;e<t.length;e++)Nt(t[e])}}function Vt(e,t){return e(t)}function zt(){}var Bt=!1;function jt(e,t,n){if(Bt)return e(t,n);Bt=!0;try{return Vt(e,t,n)}finally{Bt=!1,(null!==Mt||null!==Ot)&&(zt(),It())}}function Ut(e,t){var n=e.stateNode;if(null===n)return null;var r=Ai(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(me(231,t,typeof n));return n}var Ht=!1;if(we)try{var Wt={};Object.defineProperty(Wt,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",Wt,Wt),window.removeEventListener("test",Wt,Wt)}catch(wt){Ht=!1}function $t(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Kt=!1,Yt=null,Xt=!1,qt=null,Qt={onError:function(e){Kt=!0,Yt=e}};function Gt(e,t,n,r,o,i,a,s,l){Kt=!1,Yt=null,$t.apply(Qt,arguments)}function Zt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Jt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function en(e){if(Zt(e)!==e)throw Error(me(188))}function tn(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Zt(e)))throw Error(me(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return en(o),e;if(i===r)return en(o),t;i=i.sibling}throw Error(me(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(me(189))}}if(n.alternate!==r)throw Error(me(190))}if(3!==n.tag)throw Error(me(188));return n.stateNode.current===n?e:t}(e))?nn(e):null}function nn(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=nn(e);if(null!==t)return t;e=e.sibling}return null}var rn=he.unstable_scheduleCallback,on=he.unstable_cancelCallback,an=he.unstable_shouldYield,sn=he.unstable_requestPaint,ln=he.unstable_now,un=he.unstable_getCurrentPriorityLevel,cn=he.unstable_ImmediatePriority,dn=he.unstable_UserBlockingPriority,fn=he.unstable_NormalPriority,pn=he.unstable_LowPriority,hn=he.unstable_IdlePriority,mn=null,vn=null;var gn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(yn(e)/bn|0)|0},yn=Math.log,bn=Math.LN2;var wn=64,En=4194304;function xn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=xn(s):0!==(i&=a)&&(r=xn(i))}else 0!==(a=n&~o)?r=xn(a):0!==i&&(r=xn(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-gn(t)),r|=e[n],t&=~o;return r}function Cn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function kn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Pn(){var e=wn;return 0==(4194240&(wn<<=1))&&(wn=64),e}function Tn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-gn(t)]=n}function Dn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-gn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var _n=0;function Ln(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var An,Mn,On,Nn,Fn,In=!1,Vn=[],zn=null,Bn=null,jn=null,Un=new Map,Hn=new Map,Wn=[],$n="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Kn(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":Un.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(t.pointerId)}}function Yn(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=_i(t))&&Mn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Xn(e){var t=Di(e.target);if(null!==t){var n=Zt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Jt(n)))return e.blockedOn=t,void Fn(e.priority,(function(){On(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function qn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ar(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=_i(n))&&Mn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_t=r,n.target.dispatchEvent(r),_t=null,t.shift()}return!0}function Qn(e,t,n){qn(e)&&n.delete(t)}function Gn(){In=!1,null!==zn&&qn(zn)&&(zn=null),null!==Bn&&qn(Bn)&&(Bn=null),null!==jn&&qn(jn)&&(jn=null),Un.forEach(Qn),Hn.forEach(Qn)}function Zn(e,t){e.blockedOn===t&&(e.blockedOn=null,In||(In=!0,he.unstable_scheduleCallback(he.unstable_NormalPriority,Gn)))}function Jn(e){function t(t){return Zn(t,e)}if(0<Vn.length){Zn(Vn[0],e);for(var n=1;n<Vn.length;n++){var r=Vn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==zn&&Zn(zn,e),null!==Bn&&Zn(Bn,e),null!==jn&&Zn(jn,e),Un.forEach(t),Hn.forEach(t),n=0;n<Wn.length;n++)(r=Wn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Wn.length&&null===(n=Wn[0]).blockedOn;)Xn(n),null===n.blockedOn&&Wn.shift()}var er=_e.ReactCurrentBatchConfig,tr=!0;function nr(e,t,n,r){var o=_n,i=er.transition;er.transition=null;try{_n=1,or(e,t,n,r)}finally{_n=o,er.transition=i}}function rr(e,t,n,r){var o=_n,i=er.transition;er.transition=null;try{_n=4,or(e,t,n,r)}finally{_n=o,er.transition=i}}function or(e,t,n,r){if(tr){var o=ar(e,t,n,r);if(null===o)ti(e,t,r,ir,n),Kn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return zn=Yn(zn,e,t,n,r,o),!0;case"dragenter":return Bn=Yn(Bn,e,t,n,r,o),!0;case"mouseover":return jn=Yn(jn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Un.set(i,Yn(Un.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Hn.set(i,Yn(Hn.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Kn(e,r),4&t&&-1<$n.indexOf(e)){for(;null!==o;){var i=_i(o);if(null!==i&&An(i),null===(i=ar(e,t,n,r))&&ti(e,t,r,ir,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else ti(e,t,r,null,n)}}var ir=null;function ar(e,t,n,r){if(ir=null,null!==(e=Di(e=Lt(r))))if(null===(t=Zt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Jt(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ir=e,null}function sr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(un()){case cn:return 1;case dn:return 4;case fn:case pn:return 16;case hn:return 536870912;default:return 16}default:return 16}}var lr=null,ur=null,cr=null;function dr(){if(cr)return cr;var e,t,n=ur,r=n.length,o="value"in lr?lr.value:lr.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return cr=o.slice(e,1<t?1-t:void 0)}function fr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function pr(){return!0}function hr(){return!1}function mr(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?pr:hr,this.isPropagationStopped=hr,this}return Ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=pr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=pr)},persist:function(){},isPersistent:pr}),t}var vr,gr,yr,br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wr=mr(br),Er=Ye({},br,{view:0,detail:0}),xr=mr(Er),Sr=Ye({},Er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yr&&(yr&&"mousemove"===e.type?(vr=e.screenX-yr.screenX,gr=e.screenY-yr.screenY):gr=vr=0,yr=e),vr)},movementY:function(e){return"movementY"in e?e.movementY:gr}}),Cr=mr(Sr),kr=mr(Ye({},Sr,{dataTransfer:0})),Pr=mr(Ye({},Er,{relatedTarget:0})),Tr=mr(Ye({},br,{animationName:0,elapsedTime:0,pseudoElement:0})),Rr=Ye({},br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dr=mr(Rr),_r=mr(Ye({},br,{data:0})),Lr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ar={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Or(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mr[e])&&!!t[e]}function Nr(){return Or}var Fr=Ye({},Er,{key:function(e){if(e.key){var t=Lr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=fr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ar[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nr,charCode:function(e){return"keypress"===e.type?fr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?fr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ir=mr(Fr),Vr=mr(Ye({},Sr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zr=mr(Ye({},Er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nr})),Br=mr(Ye({},br,{propertyName:0,elapsedTime:0,pseudoElement:0})),jr=Ye({},Sr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ur=mr(jr),Hr=[9,13,27,32],Wr=we&&"CompositionEvent"in window,$r=null;we&&"documentMode"in document&&($r=document.documentMode);var Kr=we&&"TextEvent"in window&&!$r,Yr=we&&(!Wr||$r&&8<$r&&11>=$r),Xr=String.fromCharCode(32),qr=!1;function Qr(e,t){switch(e){case"keyup":return-1!==Hr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Zr=!1;var Jr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function eo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Jr[e.type]:"textarea"===t}function to(e,t,n,r){Ft(r),0<(t=ri(t,"onChange")).length&&(n=new wr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var no=null,ro=null;function oo(e){qo(e,0)}function io(e){if(rt(Li(e)))return e}function ao(e,t){if("change"===e)return t}var so=!1;if(we){var lo;if(we){var uo="oninput"in document;if(!uo){var co=document.createElement("div");co.setAttribute("oninput","return;"),uo="function"==typeof co.oninput}lo=uo}else lo=!1;so=lo&&(!document.documentMode||9<document.documentMode)}function fo(){no&&(no.detachEvent("onpropertychange",po),ro=no=null)}function po(e){if("value"===e.propertyName&&io(ro)){var t=[];to(t,ro,e,Lt(e)),jt(oo,t)}}function ho(e,t,n){"focusin"===e?(fo(),ro=n,(no=t).attachEvent("onpropertychange",po)):"focusout"===e&&fo()}function mo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return io(ro)}function vo(e,t){if("click"===e)return io(t)}function go(e,t){if("input"===e||"change"===e)return io(t)}var yo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function bo(e,t){if(yo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ee.call(t,o)||!yo(e[o],t[o]))return!1}return!0}function wo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Eo(e,t){var n,r=wo(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wo(r)}}function xo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?xo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function So(){for(var e=window,t=ot();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ot((e=t.contentWindow).document)}return t}function Co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ko(e){var t=So(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xo(n.ownerDocument.documentElement,n)){if(null!==r&&Co(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Eo(n,i);var a=Eo(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Po=we&&"documentMode"in document&&11>=document.documentMode,To=null,Ro=null,Do=null,_o=!1;function Lo(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_o||null==To||To!==ot(r)||("selectionStart"in(r=To)&&Co(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Do&&bo(Do,r)||(Do=r,0<(r=ri(Ro,"onSelect")).length&&(t=new wr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=To)))}function Ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mo={animationend:Ao("Animation","AnimationEnd"),animationiteration:Ao("Animation","AnimationIteration"),animationstart:Ao("Animation","AnimationStart"),transitionend:Ao("Transition","TransitionEnd")},Oo={},No={};function Fo(e){if(Oo[e])return Oo[e];if(!Mo[e])return e;var t,n=Mo[e];for(t in n)if(n.hasOwnProperty(t)&&t in No)return Oo[e]=n[t];return e}we&&(No=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);var Io=Fo("animationend"),Vo=Fo("animationiteration"),zo=Fo("animationstart"),Bo=Fo("transitionend"),jo=new Map,Uo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ho(e,t){jo.set(e,t),ye(t,[e])}for(var Wo=0;Wo<Uo.length;Wo++){var $o=Uo[Wo];Ho($o.toLowerCase(),"on"+($o[0].toUpperCase()+$o.slice(1)))}Ho(Io,"onAnimationEnd"),Ho(Vo,"onAnimationIteration"),Ho(zo,"onAnimationStart"),Ho("dblclick","onDoubleClick"),Ho("focusin","onFocus"),Ho("focusout","onBlur"),Ho(Bo,"onTransitionEnd"),be("onMouseEnter",["mouseout","mouseover"]),be("onMouseLeave",["mouseout","mouseover"]),be("onPointerEnter",["pointerout","pointerover"]),be("onPointerLeave",["pointerout","pointerover"]),ye("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ye("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ye("onBeforeInput",["compositionend","keypress","textInput","paste"]),ye("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ye("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ye("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ko="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ko));function Xo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,s,l){if(Gt.apply(this,arguments),Kt){if(!Kt)throw Error(me(198));var u=Yt;Kt=!1,Yt=null,Xt||(Xt=!0,qt=u)}}(r,t,void 0,e),e.currentTarget=null}function qo(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Xo(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Xo(o,s,u),i=l}}}if(Xt)throw e=qt,Xt=!1,qt=null,e}function Qo(e,t){var n=t[Pi];void 0===n&&(n=t[Pi]=new Set);var r=e+"__bubble";n.has(r)||(ei(t,e,2,!1),n.add(r))}function Go(e,t,n){var r=0;t&&(r|=4),ei(n,e,r,t)}var Zo="_reactListening"+Math.random().toString(36).slice(2);function Jo(e){if(!e[Zo]){e[Zo]=!0,ve.forEach((function(t){"selectionchange"!==t&&(Yo.has(t)||Go(t,!1,e),Go(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Zo]||(t[Zo]=!0,Go("selectionchange",!1,t))}}function ei(e,t,n,r){switch(sr(t)){case 1:var o=nr;break;case 4:o=rr;break;default:o=or}n=o.bind(null,t,n,e),o=void 0,!Ht||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ti(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=Di(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}jt((function(){var r=i,o=Lt(n),a=[];e:{var s=jo.get(e);if(void 0!==s){var l=wr,u=e;switch(e){case"keypress":if(0===fr(n))break e;case"keydown":case"keyup":l=Ir;break;case"focusin":u="focus",l=Pr;break;case"focusout":u="blur",l=Pr;break;case"beforeblur":case"afterblur":l=Pr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Cr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=kr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=zr;break;case Io:case Vo:case zo:l=Tr;break;case Bo:l=Br;break;case"scroll":l=xr;break;case"wheel":l=Ur;break;case"copy":case"cut":case"paste":l=Dr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Vr}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ut(h,f))&&c.push(ni(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_t||!(u=n.relatedTarget||n.fromElement)||!Di(u)&&!u[ki])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?Di(u):null)&&(u!==(d=Zt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=Cr,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Vr,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:Li(l),p=null==u?s:Li(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,Di(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=oi(p))h++;for(p=0,m=f;m;m=oi(m))p++;for(;0<h-p;)c=oi(c),h--;for(;0<p-h;)f=oi(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=oi(c),f=oi(f)}c=null}else c=null;null!==l&&ii(a,s,l,c,!1),null!==u&&null!==d&&ii(a,d,u,c,!0)}if("select"===(l=(s=r?Li(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=ao;else if(eo(s))if(so)v=go;else{v=mo;var g=ho}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=vo);switch(v&&(v=v(e,r))?to(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ct(s,"number",s.value)),g=r?Li(r):window,e){case"focusin":(eo(g)||"true"===g.contentEditable)&&(To=g,Ro=r,Do=null);break;case"focusout":Do=Ro=To=null;break;case"mousedown":_o=!0;break;case"contextmenu":case"mouseup":case"dragend":_o=!1,Lo(a,n,o);break;case"selectionchange":if(Po)break;case"keydown":case"keyup":Lo(a,n,o)}var y;if(Wr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Zr?Qr(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Yr&&"ko"!==n.locale&&(Zr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Zr&&(y=dr()):(ur="value"in(lr=o)?lr.value:lr.textContent,Zr=!0)),0<(g=ri(r,b)).length&&(b=new _r(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Gr(n))&&(b.data=y))),(y=Kr?function(e,t){switch(e){case"compositionend":return Gr(t);case"keypress":return 32!==t.which?null:(qr=!0,Xr);case"textInput":return(e=t.data)===Xr&&qr?null:e;default:return null}}(e,n):function(e,t){if(Zr)return"compositionend"===e||!Wr&&Qr(e,t)?(e=dr(),cr=ur=lr=null,Zr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=ri(r,"onBeforeInput")).length&&(o=new _r("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}qo(a,t)}))}function ni(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ri(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ut(e,n))&&r.unshift(ni(e,i,o)),null!=(i=Ut(e,t))&&r.push(ni(e,i,o))),e=e.return}return r}function oi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ii(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Ut(n,i))&&a.unshift(ni(n,l,s)):o||null!=(l=Ut(n,i))&&a.push(ni(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ai=/\r\n?/g,si=/\u0000|\uFFFD/g;function li(e){return("string"==typeof e?e:""+e).replace(ai,"\n").replace(si,"")}function ui(e,t,n){if(t=li(t),li(e)!==t&&n)throw Error(me(425))}function ci(){}var di=null,fi=null;function pi(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var hi="function"==typeof setTimeout?setTimeout:void 0,mi="function"==typeof clearTimeout?clearTimeout:void 0,vi="function"==typeof Promise?Promise:void 0,gi="function"==typeof queueMicrotask?queueMicrotask:void 0!==vi?function(e){return vi.resolve(null).then(e).catch(yi)}:hi;function yi(e){setTimeout((function(){throw e}))}function bi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Jn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Jn(t)}function wi(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Ei(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var xi=Math.random().toString(36).slice(2),Si="__reactFiber$"+xi,Ci="__reactProps$"+xi,ki="__reactContainer$"+xi,Pi="__reactEvents$"+xi,Ti="__reactListeners$"+xi,Ri="__reactHandles$"+xi;function Di(e){var t=e[Si];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ki]||n[Si]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ei(e);null!==e;){if(n=e[Si])return n;e=Ei(e)}return t}n=(e=n).parentNode}return null}function _i(e){return!(e=e[Si]||e[ki])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Li(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(me(33))}function Ai(e){return e[Ci]||null}var Mi=[],Oi=-1;function Ni(e){return{current:e}}function Fi(e){0>Oi||(e.current=Mi[Oi],Mi[Oi]=null,Oi--)}function Ii(e,t){Oi++,Mi[Oi]=e.current,e.current=t}var Vi={},zi=Ni(Vi),Bi=Ni(!1),ji=Vi;function Ui(e,t){var n=e.type.contextTypes;if(!n)return Vi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Hi(e){return null!=(e=e.childContextTypes)}function Wi(){Fi(Bi),Fi(zi)}function $i(e,t,n){if(zi.current!==Vi)throw Error(me(168));Ii(zi,t),Ii(Bi,n)}function Ki(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(me(108,Je(e)||"Unknown",o));return Ye({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vi,ji=zi.current,Ii(zi,e),Ii(Bi,Bi.current),!0}function Xi(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=Ki(e,t,ji),r.__reactInternalMemoizedMergedChildContext=e,Fi(Bi),Fi(zi),Ii(zi,e)):Fi(Bi),Ii(Bi,n)}var qi=null,Qi=!1,Gi=!1;function Zi(e){null===qi?qi=[e]:qi.push(e)}function Ji(){if(!Gi&&null!==qi){Gi=!0;var e=0,t=_n;try{var n=qi;for(_n=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qi=null,Qi=!1}catch(o){throw null!==qi&&(qi=qi.slice(e+1)),rn(cn,Ji),o}finally{_n=t,Gi=!1}}return null}var ea=[],ta=0,na=null,ra=0,oa=[],ia=0,aa=null,sa=1,la="";function ua(e,t){ea[ta++]=ra,ea[ta++]=na,na=e,ra=t}function ca(e,t,n){oa[ia++]=sa,oa[ia++]=la,oa[ia++]=aa,aa=e;var r=sa;e=la;var o=32-gn(r)-1;r&=~(1<<o),n+=1;var i=32-gn(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,sa=1<<32-gn(t)+o|n<<o|r,la=i+e}else sa=1<<i|n<<o|r,la=e}function da(e){null!==e.return&&(ua(e,1),ca(e,1,0))}function fa(e){for(;e===na;)na=ea[--ta],ea[ta]=null,ra=ea[--ta],ea[ta]=null;for(;e===aa;)aa=oa[--ia],oa[ia]=null,la=oa[--ia],oa[ia]=null,sa=oa[--ia],oa[ia]=null}var pa=null,ha=null,ma=!1,va=null;function ga(e,t){var n=Uc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ya(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,pa=e,ha=wi(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,pa=e,ha=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==aa?{id:sa,overflow:la}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Uc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,pa=e,ha=null,!0);default:return!1}}function ba(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function wa(e){if(ma){var t=ha;if(t){var n=t;if(!ya(e,t)){if(ba(e))throw Error(me(418));t=wi(n.nextSibling);var r=pa;t&&ya(e,t)?ga(r,n):(e.flags=-4097&e.flags|2,ma=!1,pa=e)}}else{if(ba(e))throw Error(me(418));e.flags=-4097&e.flags|2,ma=!1,pa=e}}}function Ea(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;pa=e}function xa(e){if(e!==pa)return!1;if(!ma)return Ea(e),ma=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!pi(e.type,e.memoizedProps)),t&&(t=ha)){if(ba(e))throw Sa(),Error(me(418));for(;t;)ga(e,t),t=wi(t.nextSibling)}if(Ea(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(me(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ha=wi(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ha=null}}else ha=pa?wi(e.stateNode.nextSibling):null;return!0}function Sa(){for(var e=ha;e;)e=wi(e.nextSibling)}function Ca(){ha=pa=null,ma=!1}function ka(e){null===va?va=[e]:va.push(e)}var Pa=_e.ReactCurrentBatchConfig;function Ta(e,t){if(e&&e.defaultProps){for(var n in t=Ye({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ra=Ni(null),Da=null,_a=null,La=null;function Aa(){La=_a=Da=null}function Ma(e){var t=Ra.current;Fi(Ra),e._currentValue=t}function Oa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Na(e,t){Da=e,La=_a=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(_l=!0),e.firstContext=null)}function Fa(e){var t=e._currentValue;if(La!==e)if(e={context:e,memoizedValue:t,next:null},null===_a){if(null===Da)throw Error(me(308));_a=e,Da.dependencies={lanes:0,firstContext:e}}else _a=_a.next=e;return t}var Ia=null;function Va(e){null===Ia?Ia=[e]:Ia.push(e)}function za(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Va(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ba(e,r)}function Ba(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $a(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&zu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ba(e,n)}return null===(o=r.interleaved)?(t.next=t,Va(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ba(e,n)}function Ka(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Dn(e,n)}}function Ya(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xa(e,t,n,r){var o=e.updateQueue;ja=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=Ye({},d,f);break e;case 2:ja=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Yu|=a,e.lanes=a,e.memoizedState=d}}function qa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(me(191,o));o.call(r)}}}var Qa=(new pe.Component).refs;function Ga(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ye({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Za={isMounted:function(e){return!!(e=e._reactInternals)&&Zt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dc(),o=fc(e),i=Wa(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=$a(e,i,o))&&(pc(t,e,o,r),Ka(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dc(),o=fc(e),i=Wa(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=$a(e,i,o))&&(pc(t,e,o,r),Ka(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dc(),r=fc(e),o=Wa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=$a(e,o,r))&&(pc(t,e,r,n),Ka(t,e,r))}};function Ja(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!bo(n,r)||!bo(o,i))}function es(e,t,n){var r=!1,o=Vi,i=t.contextType;return"object"==typeof i&&null!==i?i=Fa(i):(o=Hi(t)?ji:zi.current,i=(r=null!=(r=t.contextTypes))?Ui(e,o):Vi),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Za,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ts(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Za.enqueueReplaceState(t,t.state,null)}function ns(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Qa,Ua(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Fa(i):(i=Hi(t)?ji:zi.current,o.context=Ui(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ga(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Za.enqueueReplaceState(o,o.state,null),Xa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function rs(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(me(309));var r=n.stateNode}if(!r)throw Error(me(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===Qa&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(me(284));if(!n._owner)throw Error(me(290,e))}return e}function os(e,t){throw e=Object.prototype.toString.call(t),Error(me(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function is(e){return(0,e._init)(e._payload)}function as(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Wc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Xc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===Me?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ue&&is(i)===t.type)?((r=o(t,n.props)).ref=rs(e,t,n),r.return=e,r):((r=$c(n.type,n.key,n.props,null,e.mode,r)).ref=rs(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Kc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Xc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Le:return(n=$c(t.type,t.key,t.props,null,e.mode,n)).ref=rs(e,null,t),n.return=e,n;case Ae:return(t=qc(t,e.mode,n)).return=e,t;case Ue:return d(e,(0,t._init)(t._payload),n)}if(dt(t)||$e(t))return(t=Kc(t,e.mode,n,null)).return=e,t;os(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Le:return n.key===o?l(e,t,n,r):null;case Ae:return n.key===o?u(e,t,n,r):null;case Ue:return f(e,t,(o=n._init)(n._payload),r)}if(dt(n)||$e(n))return null!==o?null:c(e,t,n,r,null);os(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Le:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ae:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ue:return p(e,t,n,(0,r._init)(r._payload),o)}if(dt(r)||$e(r))return c(t,e=e.get(n)||null,r,o,null);os(t,r)}return null}return function s(l,u,c,h){if("object"==typeof c&&null!==c&&c.type===Me&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case Le:e:{for(var m=c.key,v=u;null!==v;){if(v.key===m){if((m=c.type)===Me){if(7===v.tag){n(l,v.sibling),(u=o(v,c.props.children)).return=l,l=u;break e}}else if(v.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===Ue&&is(m)===v.type){n(l,v.sibling),(u=o(v,c.props)).ref=rs(l,v,c),u.return=l,l=u;break e}n(l,v);break}t(l,v),v=v.sibling}c.type===Me?((u=Kc(c.props.children,l.mode,h,c.key)).return=l,l=u):((h=$c(c.type,c.key,c.props,null,l.mode,h)).ref=rs(l,u,c),h.return=l,l=h)}return a(l);case Ae:e:{for(v=c.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(u=o(u,c.children||[])).return=l,l=u;break e}n(l,u);break}t(l,u),u=u.sibling}(u=qc(c,l.mode,h)).return=l,l=u}return a(l);case Ue:return s(l,u,(v=c._init)(c._payload),h)}if(dt(c))return function(o,a,s,l){for(var u=null,c=null,h=a,m=a=0,v=null;null!==h&&m<s.length;m++){h.index>m?(v=h,h=null):v=h.sibling;var g=f(o,h,s[m],l);if(null===g){null===h&&(h=v);break}e&&h&&null===g.alternate&&t(o,h),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g,h=v}if(m===s.length)return n(o,h),ma&&ua(o,m),u;if(null===h){for(;m<s.length;m++)null!==(h=d(o,s[m],l))&&(a=i(h,a,m),null===c?u=h:c.sibling=h,c=h);return ma&&ua(o,m),u}for(h=r(o,h);m<s.length;m++)null!==(v=p(h,o,m,s[m],l))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),ma&&ua(o,m),u}(l,u,c,h);if($e(c))return function(o,a,s,l){var u=$e(s);if("function"!=typeof u)throw Error(me(150));if(null==(s=u.call(s)))throw Error(me(151));for(var c=u=null,h=a,m=a=0,v=null,g=s.next();null!==h&&!g.done;m++,g=s.next()){h.index>m?(v=h,h=null):v=h.sibling;var y=f(o,h,g.value,l);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),a=i(y,a,m),null===c?u=y:c.sibling=y,c=y,h=v}if(g.done)return n(o,h),ma&&ua(o,m),u;if(null===h){for(;!g.done;m++,g=s.next())null!==(g=d(o,g.value,l))&&(a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return ma&&ua(o,m),u}for(h=r(o,h);!g.done;m++,g=s.next())null!==(g=p(h,o,m,g.value,l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),ma&&ua(o,m),u}(l,u,c,h);os(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(u=o(u,c)).return=l,l=u):(n(l,u),(u=Xc(c,l.mode,h)).return=l,l=u),a(l)):n(l,u)}}var ss=as(!0),ls=as(!1),us={},cs=Ni(us),ds=Ni(us),fs=Ni(us);function ps(e){if(e===us)throw Error(me(174));return e}function hs(e,t){switch(Ii(fs,t),Ii(ds,e),Ii(cs,us),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yt(null,"");break;default:t=yt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Fi(cs),Ii(cs,t)}function ms(){Fi(cs),Fi(ds),Fi(fs)}function vs(e){ps(fs.current);var t=ps(cs.current),n=yt(t,e.type);t!==n&&(Ii(ds,e),Ii(cs,n))}function gs(e){ds.current===e&&(Fi(cs),Fi(ds))}var ys=Ni(0);function bs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ws=[];function Es(){for(var e=0;e<ws.length;e++)ws[e]._workInProgressVersionPrimary=null;ws.length=0}var xs=_e.ReactCurrentDispatcher,Ss=_e.ReactCurrentBatchConfig,Cs=0,ks=null,Ps=null,Ts=null,Rs=!1,Ds=!1,_s=0,Ls=0;function As(){throw Error(me(321))}function Ms(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yo(e[n],t[n]))return!1;return!0}function Os(e,t,n,r,o,i){if(Cs=i,ks=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xs.current=null===e||null===e.memoizedState?gl:yl,e=n(r,o),Ds){i=0;do{if(Ds=!1,_s=0,25<=i)throw Error(me(301));i+=1,Ts=Ps=null,t.updateQueue=null,xs.current=bl,e=n(r,o)}while(Ds)}if(xs.current=vl,t=null!==Ps&&null!==Ps.next,Cs=0,Ts=Ps=ks=null,Rs=!1,t)throw Error(me(300));return e}function Ns(){var e=0!==_s;return _s=0,e}function Fs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ts?ks.memoizedState=Ts=e:Ts=Ts.next=e,Ts}function Is(){if(null===Ps){var e=ks.alternate;e=null!==e?e.memoizedState:null}else e=Ps.next;var t=null===Ts?ks.memoizedState:Ts.next;if(null!==t)Ts=t,Ps=e;else{if(null===e)throw Error(me(310));e={memoizedState:(Ps=e).memoizedState,baseState:Ps.baseState,baseQueue:Ps.baseQueue,queue:Ps.queue,next:null},null===Ts?ks.memoizedState=Ts=e:Ts=Ts.next=e}return Ts}function Vs(e,t){return"function"==typeof t?t(e):t}function zs(e){var t=Is(),n=t.queue;if(null===n)throw Error(me(311));n.lastRenderedReducer=e;var r=Ps,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=a=null,l=null,u=i;do{var c=u.lane;if((Cs&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,ks.lanes|=c,Yu|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=s,yo(r,t.memoizedState)||(_l=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,ks.lanes|=i,Yu|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bs(e){var t=Is(),n=t.queue;if(null===n)throw Error(me(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);yo(i,t.memoizedState)||(_l=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function js(){}function Us(e,t){var n=ks,r=Is(),o=t(),i=!yo(r.memoizedState,o);if(i&&(r.memoizedState=o,_l=!0),r=r.queue,el($s.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Ts&&1&Ts.memoizedState.tag){if(n.flags|=2048,qs(9,Ws.bind(null,n,r,o,t),void 0,null),null===Bu)throw Error(me(349));0!=(30&Cs)||Hs(n,t,o)}return o}function Hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ks.updateQueue)?(t={lastEffect:null,stores:null},ks.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ws(e,t,n,r){t.value=n,t.getSnapshot=r,Ks(t)&&Ys(e)}function $s(e,t,n){return n((function(){Ks(t)&&Ys(e)}))}function Ks(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yo(e,n)}catch(r){return!0}}function Ys(e){var t=Ba(e,1);null!==t&&pc(t,e,1,-1)}function Xs(e){var t=Fs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:e},t.queue=e,e=e.dispatch=fl.bind(null,ks,e),[t.memoizedState,e]}function qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ks.updateQueue)?(t={lastEffect:null,stores:null},ks.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Qs(){return Is().memoizedState}function Gs(e,t,n,r){var o=Fs();ks.flags|=e,o.memoizedState=qs(1|t,n,void 0,void 0===r?null:r)}function Zs(e,t,n,r){var o=Is();r=void 0===r?null:r;var i=void 0;if(null!==Ps){var a=Ps.memoizedState;if(i=a.destroy,null!==r&&Ms(r,a.deps))return void(o.memoizedState=qs(t,n,i,r))}ks.flags|=e,o.memoizedState=qs(1|t,n,i,r)}function Js(e,t){return Gs(8390656,8,e,t)}function el(e,t){return Zs(2048,8,e,t)}function tl(e,t){return Zs(4,2,e,t)}function nl(e,t){return Zs(4,4,e,t)}function rl(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ol(e,t,n){return n=null!=n?n.concat([e]):null,Zs(4,4,rl.bind(null,t,e),n)}function il(){}function al(e,t){var n=Is();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ms(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function sl(e,t){var n=Is();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ms(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ll(e,t,n){return 0==(21&Cs)?(e.baseState&&(e.baseState=!1,_l=!0),e.memoizedState=n):(yo(n,t)||(n=Pn(),ks.lanes|=n,Yu|=n,e.baseState=!0),t)}function ul(e,t){var n=_n;_n=0!==n&&4>n?n:4,e(!0);var r=Ss.transition;Ss.transition={};try{e(!1),t()}finally{_n=n,Ss.transition=r}}function cl(){return Is().memoizedState}function dl(e,t,n){var r=fc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pl(e))hl(t,n);else if(null!==(n=za(e,t,n,r))){pc(n,e,r,dc()),ml(n,t,r)}}function fl(e,t,n){var r=fc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pl(e))hl(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,yo(s,a)){var l=t.interleaved;return null===l?(o.next=o,Va(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(u){}null!==(n=za(e,t,o,r))&&(pc(n,e,r,o=dc()),ml(n,t,r))}}function pl(e){var t=e.alternate;return e===ks||null!==t&&t===ks}function hl(e,t){Ds=Rs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ml(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Dn(e,n)}}var vl={readContext:Fa,useCallback:As,useContext:As,useEffect:As,useImperativeHandle:As,useInsertionEffect:As,useLayoutEffect:As,useMemo:As,useReducer:As,useRef:As,useState:As,useDebugValue:As,useDeferredValue:As,useTransition:As,useMutableSource:As,useSyncExternalStore:As,useId:As,unstable_isNewReconciler:!1},gl={readContext:Fa,useCallback:function(e,t){return Fs().memoizedState=[e,void 0===t?null:t],e},useContext:Fa,useEffect:Js,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Gs(4194308,4,rl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gs(4,2,e,t)},useMemo:function(e,t){var n=Fs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dl.bind(null,ks,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Fs().memoizedState=e},useState:Xs,useDebugValue:il,useDeferredValue:function(e){return Fs().memoizedState=e},useTransition:function(){var e=Xs(!1),t=e[0];return e=ul.bind(null,e[1]),Fs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ks,o=Fs();if(ma){if(void 0===n)throw Error(me(407));n=n()}else{if(n=t(),null===Bu)throw Error(me(349));0!=(30&Cs)||Hs(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Js($s.bind(null,r,i,e),[e]),r.flags|=2048,qs(9,Ws.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Fs(),t=Bu.identifierPrefix;if(ma){var n=la;t=":"+t+"R"+(n=(sa&~(1<<32-gn(sa)-1)).toString(32)+n),0<(n=_s++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ls++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yl={readContext:Fa,useCallback:al,useContext:Fa,useEffect:el,useImperativeHandle:ol,useInsertionEffect:tl,useLayoutEffect:nl,useMemo:sl,useReducer:zs,useRef:Qs,useState:function(){return zs(Vs)},useDebugValue:il,useDeferredValue:function(e){return ll(Is(),Ps.memoizedState,e)},useTransition:function(){return[zs(Vs)[0],Is().memoizedState]},useMutableSource:js,useSyncExternalStore:Us,useId:cl,unstable_isNewReconciler:!1},bl={readContext:Fa,useCallback:al,useContext:Fa,useEffect:el,useImperativeHandle:ol,useInsertionEffect:tl,useLayoutEffect:nl,useMemo:sl,useReducer:Bs,useRef:Qs,useState:function(){return Bs(Vs)},useDebugValue:il,useDeferredValue:function(e){var t=Is();return null===Ps?t.memoizedState=e:ll(t,Ps.memoizedState,e)},useTransition:function(){return[Bs(Vs)[0],Is().memoizedState]},useMutableSource:js,useSyncExternalStore:Us,useId:cl,unstable_isNewReconciler:!1};function wl(e,t){try{var n="",r=t;do{n+=Ge(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function El(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function xl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var Sl="function"==typeof WeakMap?WeakMap:Map;function Cl(e,t,n){(n=Wa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tc||(tc=!0,nc=r),xl(0,t)},n}function kl(e,t,n){(n=Wa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){xl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){xl(0,t),"function"!=typeof r&&(null===rc?rc=new Set([this]):rc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Pl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Sl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Fc.bind(null,e,t,n),t.then(e,e))}function Tl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Rl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Wa(-1,1)).tag=2,$a(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Dl=_e.ReactCurrentOwner,_l=!1;function Ll(e,t,n,r){t.child=null===e?ls(t,null,n,r):ss(t,e.child,n,r)}function Al(e,t,n,r,o){n=n.render;var i=t.ref;return Na(t,o),r=Os(e,t,n,r,i,o),n=Ns(),null===e||_l?(ma&&n&&da(t),t.flags|=1,Ll(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tu(e,t,o))}function Ml(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Hc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$c(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ol(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:bo)(a,r)&&e.ref===t.ref)return tu(e,t,o)}return t.flags|=1,(e=Wc(i,r)).ref=t.ref,e.return=t,t.child=e}function Ol(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(bo(i,r)&&e.ref===t.ref){if(_l=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,tu(e,t,o);0!=(131072&e.flags)&&(_l=!0)}}return Il(e,t,n,r,o)}function Nl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ii(Wu,Hu),Hu|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ii(Wu,Hu),Hu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ii(Wu,Hu),Hu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ii(Wu,Hu),Hu|=r;return Ll(e,t,o,n),t.child}function Fl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Il(e,t,n,r,o){var i=Hi(n)?ji:zi.current;return i=Ui(t,i),Na(t,o),n=Os(e,t,n,r,i,o),r=Ns(),null===e||_l?(ma&&r&&da(t),t.flags|=1,Ll(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tu(e,t,o))}function Vl(e,t,n,r,o){if(Hi(n)){var i=!0;Yi(t)}else i=!1;if(Na(t,o),null===t.stateNode)eu(e,t),es(t,n,r),ns(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Fa(u):u=Ui(t,u=Hi(n)?ji:zi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ts(t,a,r,u),ja=!1;var f=t.memoizedState;a.state=f,Xa(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Bi.current||ja?("function"==typeof c&&(Ga(t,n,c,r),l=t.memoizedState),(s=ja||Ja(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ta(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Fa(l):l=Ui(t,l=Hi(n)?ji:zi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ts(t,a,r,l),ja=!1,f=t.memoizedState,a.state=f,Xa(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Bi.current||ja?("function"==typeof p&&(Ga(t,n,p,r),h=t.memoizedState),(u=ja||Ja(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return zl(e,t,n,r,i,o)}function zl(e,t,n,r,o,i){Fl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Xi(t,n,!1),tu(e,t,i);r=t.stateNode,Dl.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ss(t,e.child,null,i),t.child=ss(t,null,s,i)):Ll(e,t,s,i),t.memoizedState=r.state,o&&Xi(t,n,!0),t.child}function Bl(e){var t=e.stateNode;t.pendingContext?$i(0,t.pendingContext,t.pendingContext!==t.context):t.context&&$i(0,t.context,!1),hs(e,t.containerInfo)}function jl(e,t,n,r,o){return Ca(),ka(o),t.flags|=256,Ll(e,t,n,r),t.child}var Ul,Hl,Wl,$l,Kl={dehydrated:null,treeContext:null,retryLane:0};function Yl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xl(e,t,n){var r,o=t.pendingProps,i=ys.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ii(ys,1&i),null===e)return wa(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,a?(o=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=Yc(s,o,0,null),e=Kc(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Yl(n),t.memoizedState=Kl,e):ql(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Ql(e,t,a,r=El(Error(me(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Yc({mode:"visible",children:r.children},o,0,null),(i=Kc(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ss(t,e.child,null,a),t.child.memoizedState=Yl(a),t.memoizedState=Kl,i);if(0==(1&t.mode))return Ql(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Ql(e,t,a,r=El(i=Error(me(419)),r,void 0))}if(s=0!=(a&e.childLanes),_l||s){if(null!==(r=Bu)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ba(e,o),pc(r,e,o,-1))}return Pc(),Ql(e,t,a,r=El(Error(me(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Vc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ha=wi(o.nextSibling),pa=t,ma=!0,va=null,null!==e&&(oa[ia++]=sa,oa[ia++]=la,oa[ia++]=aa,sa=e.id,la=e.overflow,aa=t),t=ql(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(a){a=o.fallback,s=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Wc(i,l)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=Wc(r,a):(a=Kc(a,s,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,s=null===(s=e.child.memoizedState)?Yl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Kl,o}return e=(a=e.child).sibling,o=Wc(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ql(e,t){return(t=Yc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ql(e,t,n,r){return null!==r&&ka(r),ss(t,e.child,null,n),(e=ql(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oa(e.return,t,n)}function Zl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Jl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ll(e,t,r.children,n),0!=(2&(r=ys.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gl(e,n,t);else if(19===e.tag)Gl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ii(ys,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===bs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Zl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===bs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Zl(t,!0,n,null,i);break;case"together":Zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function eu(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Yu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(me(153));if(null!==t.child){for(n=Wc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function nu(e,t){if(!ma)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ru(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ou(e,t,n){var r=t.pendingProps;switch(fa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ru(t),null;case 1:case 17:return Hi(t.type)&&Wi(),ru(t),null;case 3:return r=t.stateNode,ms(),Fi(Bi),Fi(zi),Es(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(xa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==va&&(gc(va),va=null))),Hl(e,t),ru(t),null;case 5:gs(t);var o=ps(fs.current);if(n=t.type,null!==e&&null!=t.stateNode)Wl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(me(166));return ru(t),null}if(e=ps(cs.current),xa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Si]=t,r[Ci]=i,e=0!=(1&t.mode),n){case"dialog":Qo("cancel",r),Qo("close",r);break;case"iframe":case"object":case"embed":Qo("load",r);break;case"video":case"audio":for(o=0;o<Ko.length;o++)Qo(Ko[o],r);break;case"source":Qo("error",r);break;case"img":case"image":case"link":Qo("error",r),Qo("load",r);break;case"details":Qo("toggle",r);break;case"input":at(r,i),Qo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Qo("invalid",r);break;case"textarea":ht(r,i),Qo("invalid",r)}for(var a in Rt(n,i),o=null,i)if(i.hasOwnProperty(a)){var s=i[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==i.suppressHydrationWarning&&ui(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&ui(r.textContent,s,e),o=["children",""+s]):ge.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&Qo("scroll",r)}switch(n){case"input":nt(r),ut(r,i,!0);break;case"textarea":nt(r),vt(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=ci)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=gt(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Si]=t,e[Ci]=r,Ul(e,t,!1,!1),t.stateNode=e;e:{switch(a=Dt(n,r),n){case"dialog":Qo("cancel",e),Qo("close",e),o=r;break;case"iframe":case"object":case"embed":Qo("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ko.length;o++)Qo(Ko[o],e);o=r;break;case"source":Qo("error",e),o=r;break;case"img":case"image":case"link":Qo("error",e),Qo("load",e),o=r;break;case"details":Qo("toggle",e),o=r;break;case"input":at(e,r),o=it(e,r),Qo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ye({},r,{value:void 0}),Qo("invalid",e);break;case"textarea":ht(e,r),o=pt(e,r),Qo("invalid",e)}for(i in Rt(n,o),s=o)if(s.hasOwnProperty(i)){var l=s[i];"style"===i?Pt(e,l):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&Et(e,l):"children"===i?"string"==typeof l?("textarea"!==n||""!==l)&&xt(e,l):"number"==typeof l&&xt(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(ge.hasOwnProperty(i)?null!=l&&"onScroll"===i&&Qo("scroll",e):null!=l&&De(e,i,l,a))}switch(n){case"input":nt(e),ut(e,r,!1);break;case"textarea":nt(e),vt(e);break;case"option":null!=r.value&&e.setAttribute("value",""+et(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ft(e,!!r.multiple,i,!1):null!=r.defaultValue&&ft(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ci)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ru(t),null;case 6:if(e&&null!=t.stateNode)$l(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(me(166));if(n=ps(fs.current),ps(cs.current),xa(t)){if(r=t.stateNode,n=t.memoizedProps,r[Si]=t,(i=r.nodeValue!==n)&&null!==(e=pa))switch(e.tag){case 3:ui(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ui(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Si]=t,t.stateNode=r}return ru(t),null;case 13:if(Fi(ys),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ma&&null!==ha&&0!=(1&t.mode)&&0==(128&t.flags))Sa(),Ca(),t.flags|=98560,i=!1;else if(i=xa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(me(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(me(317));i[Si]=t}else Ca(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ru(t),i=!1}else null!==va&&(gc(va),va=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ys.current)?0===$u&&($u=3):Pc())),null!==t.updateQueue&&(t.flags|=4),ru(t),null);case 4:return ms(),Hl(e,t),null===e&&Jo(t.stateNode.containerInfo),ru(t),null;case 10:return Ma(t.type._context),ru(t),null;case 19:if(Fi(ys),null===(i=t.memoizedState))return ru(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)nu(i,!1);else{if(0!==$u||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=bs(e))){for(t.flags|=128,nu(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ii(ys,1&ys.current|2),t.child}e=e.sibling}null!==i.tail&&ln()>Ju&&(t.flags|=128,r=!0,nu(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=bs(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),nu(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!ma)return ru(t),null}else 2*ln()-i.renderingStartTime>Ju&&1073741824!==n&&(t.flags|=128,r=!0,nu(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ln(),t.sibling=null,n=ys.current,Ii(ys,r?1&n|2:1&n),t):(ru(t),null);case 22:case 23:return xc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Hu)&&(ru(t),6&t.subtreeFlags&&(t.flags|=8192)):ru(t),null;case 24:case 25:return null}throw Error(me(156,t.tag))}function iu(e,t){switch(fa(t),t.tag){case 1:return Hi(t.type)&&Wi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ms(),Fi(Bi),Fi(zi),Es(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return gs(t),null;case 13:if(Fi(ys),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(me(340));Ca()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Fi(ys),null;case 4:return ms(),null;case 10:return Ma(t.type._context),null;case 22:case 23:return xc(),null;default:return null}}Ul=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Hl=function(){},Wl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ps(cs.current);var i,a=null;switch(n){case"input":o=it(e,o),r=it(e,r),a=[];break;case"select":o=Ye({},o,{value:void 0}),r=Ye({},r,{value:void 0}),a=[];break;case"textarea":o=pt(e,o),r=pt(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ci)}for(u in Rt(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ge.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ge.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Qo("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},$l=function(e,t,n,r){n!==r&&(t.flags|=4)};var au=!1,su=!1,lu="function"==typeof WeakSet?WeakSet:Set,uu=null;function cu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Nc(e,t,r)}else n.current=null}function du(e,t,n){try{n()}catch(r){Nc(e,t,r)}}var fu=!1;function pu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&du(t,n,i)}o=o.next}while(o!==r)}}function hu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function vu(e){var t=e.alternate;null!==t&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Si],delete t[Ci],delete t[Pi],delete t[Ti],delete t[Ri])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gu(e){return 5===e.tag||3===e.tag||4===e.tag}function yu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function bu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ci));else if(4!==r&&null!==(e=e.child))for(bu(e,t,n),e=e.sibling;null!==e;)bu(e,t,n),e=e.sibling}function wu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(wu(e,t,n),e=e.sibling;null!==e;)wu(e,t,n),e=e.sibling}var Eu=null,xu=!1;function Su(e,t,n){for(n=n.child;null!==n;)Cu(e,t,n),n=n.sibling}function Cu(e,t,n){if(vn&&"function"==typeof vn.onCommitFiberUnmount)try{vn.onCommitFiberUnmount(mn,n)}catch(s){}switch(n.tag){case 5:su||cu(n,t);case 6:var r=Eu,o=xu;Eu=null,Su(e,t,n),xu=o,null!==(Eu=r)&&(xu?(e=Eu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Eu.removeChild(n.stateNode));break;case 18:null!==Eu&&(xu?(e=Eu,n=n.stateNode,8===e.nodeType?bi(e.parentNode,n):1===e.nodeType&&bi(e,n),Jn(e)):bi(Eu,n.stateNode));break;case 4:r=Eu,o=xu,Eu=n.stateNode.containerInfo,xu=!0,Su(e,t,n),Eu=r,xu=o;break;case 0:case 11:case 14:case 15:if(!su&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&du(n,t,a),o=o.next}while(o!==r)}Su(e,t,n);break;case 1:if(!su&&(cu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Nc(n,t,s)}Su(e,t,n);break;case 21:Su(e,t,n);break;case 22:1&n.mode?(su=(r=su)||null!==n.memoizedState,Su(e,t,n),su=r):Su(e,t,n);break;default:Su(e,t,n)}}function ku(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new lu),t.forEach((function(t){var r=zc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Pu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:Eu=s.stateNode,xu=!1;break e;case 3:case 4:Eu=s.stateNode.containerInfo,xu=!0;break e}s=s.return}if(null===Eu)throw Error(me(160));Cu(i,a,o),Eu=null,xu=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(u){Nc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Tu(t,e),t=t.sibling}function Tu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pu(t,e),Ru(e),4&r){try{pu(3,e,e.return),hu(3,e)}catch(m){Nc(e,e.return,m)}try{pu(5,e,e.return)}catch(m){Nc(e,e.return,m)}}break;case 1:Pu(t,e),Ru(e),512&r&&null!==n&&cu(n,n.return);break;case 5:if(Pu(t,e),Ru(e),512&r&&null!==n&&cu(n,n.return),32&e.flags){var o=e.stateNode;try{xt(o,"")}catch(m){Nc(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===i.type&&null!=i.name&&st(o,i),Dt(s,a);var u=Dt(s,i);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];"style"===c?Pt(o,d):"dangerouslySetInnerHTML"===c?Et(o,d):"children"===c?xt(o,d):De(o,c,d,u)}switch(s){case"input":lt(o,i);break;case"textarea":mt(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?ft(o,!!i.multiple,p,!1):f!==!!i.multiple&&(null!=i.defaultValue?ft(o,!!i.multiple,i.defaultValue,!0):ft(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ci]=i}catch(m){Nc(e,e.return,m)}}break;case 6:if(Pu(t,e),Ru(e),4&r){if(null===e.stateNode)throw Error(me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(m){Nc(e,e.return,m)}}break;case 3:if(Pu(t,e),Ru(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Jn(t.containerInfo)}catch(m){Nc(e,e.return,m)}break;case 4:default:Pu(t,e),Ru(e);break;case 13:Pu(t,e),Ru(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Zu=ln())),4&r&&ku(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(su=(u=su)||c,Pu(t,e),su=u):Pu(t,e),Ru(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(uu=e,c=e.child;null!==c;){for(d=uu=c;null!==uu;){switch(p=(f=uu).child,f.tag){case 0:case 11:case 14:case 15:pu(4,f,f.return);break;case 1:cu(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){Nc(r,n,m)}}break;case 5:cu(f,f.return);break;case 22:if(null!==f.memoizedState){Au(d);continue}}null!==p?(p.return=f,uu=p):Au(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=kt("display",a))}catch(m){Nc(e,e.return,m)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){Nc(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Pu(t,e),Ru(e),4&r&&ku(e);case 21:}}function Ru(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(gu(n)){var r=n;break e}n=n.return}throw Error(me(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(xt(o,""),r.flags&=-33),wu(e,yu(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;bu(e,yu(e),i);break;default:throw Error(me(161))}}catch(a){Nc(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Du(e,t,n){uu=e,_u(e)}function _u(e,t,n){for(var r=0!=(1&e.mode);null!==uu;){var o=uu,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||au;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||su;s=au;var u=su;if(au=a,(su=l)&&!u)for(uu=o;null!==uu;)l=(a=uu).child,22===a.tag&&null!==a.memoizedState?Mu(o):null!==l?(l.return=a,uu=l):Mu(o);for(;null!==i;)uu=i,_u(i),i=i.sibling;uu=o,au=s,su=u}Lu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,uu=i):Lu(e)}}function Lu(e){for(;null!==uu;){var t=uu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:su||hu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!su)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ta(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&qa(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qa(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Jn(d)}}}break;default:throw Error(me(163))}su||512&t.flags&&mu(t)}catch(f){Nc(t,t.return,f)}}if(t===e){uu=null;break}if(null!==(n=t.sibling)){n.return=t.return,uu=n;break}uu=t.return}}function Au(e){for(;null!==uu;){var t=uu;if(t===e){uu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,uu=n;break}uu=t.return}}function Mu(e){for(;null!==uu;){var t=uu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hu(4,t)}catch(l){Nc(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Nc(t,o,l)}}var i=t.return;try{mu(t)}catch(l){Nc(t,i,l)}break;case 5:var a=t.return;try{mu(t)}catch(l){Nc(t,a,l)}}}catch(l){Nc(t,t.return,l)}if(t===e){uu=null;break}var s=t.sibling;if(null!==s){s.return=t.return,uu=s;break}uu=t.return}}var Ou,Nu=Math.ceil,Fu=_e.ReactCurrentDispatcher,Iu=_e.ReactCurrentOwner,Vu=_e.ReactCurrentBatchConfig,zu=0,Bu=null,ju=null,Uu=0,Hu=0,Wu=Ni(0),$u=0,Ku=null,Yu=0,Xu=0,qu=0,Qu=null,Gu=null,Zu=0,Ju=1/0,ec=null,tc=!1,nc=null,rc=null,oc=!1,ic=null,ac=0,sc=0,lc=null,uc=-1,cc=0;function dc(){return 0!=(6&zu)?ln():-1!==uc?uc:uc=ln()}function fc(e){return 0==(1&e.mode)?1:0!=(2&zu)&&0!==Uu?Uu&-Uu:null!==Pa.transition?(0===cc&&(cc=Pn()),cc):0!==(e=_n)?e:e=void 0===(e=window.event)?16:sr(e.type)}function pc(e,t,n,r){if(50<sc)throw sc=0,lc=null,Error(me(185));Rn(e,n,r),0!=(2&zu)&&e===Bu||(e===Bu&&(0==(2&zu)&&(Xu|=n),4===$u&&yc(e,Uu)),hc(e,r),1===n&&0===zu&&0==(1&t.mode)&&(Ju=ln()+500,Qi&&Ji()))}function hc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-gn(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=Cn(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=Sn(e,e===Bu?Uu:0);if(0===r)null!==n&&on(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&on(n),1===t)0===e.tag?function(e){Qi=!0,Zi(e)}(bc.bind(null,e)):Zi(bc.bind(null,e)),gi((function(){0==(6&zu)&&Ji()})),n=null;else{switch(Ln(r)){case 1:n=cn;break;case 4:n=dn;break;case 16:default:n=fn;break;case 536870912:n=hn}n=Bc(n,mc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function mc(e,t){if(uc=-1,cc=0,0!=(6&zu))throw Error(me(327));var n=e.callbackNode;if(Mc()&&e.callbackNode!==n)return null;var r=Sn(e,e===Bu?Uu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Tc(e,r);else{t=r;var o=zu;zu|=2;var i=kc();for(Bu===e&&Uu===t||(ec=null,Ju=ln()+500,Sc(e,t));;)try{Dc();break}catch(s){Cc(e,s)}Aa(),Fu.current=i,zu=o,null!==ju?t=0:(Bu=null,Uu=0,t=$u)}if(0!==t){if(2===t&&(0!==(o=kn(e))&&(r=o,t=vc(e,o))),1===t)throw n=Ku,Sc(e,0),yc(e,r),hc(e,ln()),n;if(6===t)yc(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!yo(i(),o))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Tc(e,r))&&(0!==(i=kn(e))&&(r=i,t=vc(e,i))),1===t))throw n=Ku,Sc(e,0),yc(e,r),hc(e,ln()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(me(345));case 2:case 5:Ac(e,Gu,ec);break;case 3:if(yc(e,r),(130023424&r)===r&&10<(t=Zu+500-ln())){if(0!==Sn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){dc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hi(Ac.bind(null,e,Gu,ec),t);break}Ac(e,Gu,ec);break;case 4:if(yc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-gn(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=ln()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nu(r/1960))-r)){e.timeoutHandle=hi(Ac.bind(null,e,Gu,ec),r);break}Ac(e,Gu,ec);break;default:throw Error(me(329))}}}return hc(e,ln()),e.callbackNode===n?mc.bind(null,e):null}function vc(e,t){var n=Qu;return e.current.memoizedState.isDehydrated&&(Sc(e,t).flags|=256),2!==(e=Tc(e,t))&&(t=Gu,Gu=n,null!==t&&gc(t)),e}function gc(e){null===Gu?Gu=e:Gu.push.apply(Gu,e)}function yc(e,t){for(t&=~qu,t&=~Xu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-gn(t),r=1<<n;e[n]=-1,t&=~r}}function bc(e){if(0!=(6&zu))throw Error(me(327));Mc();var t=Sn(e,0);if(0==(1&t))return hc(e,ln()),null;var n=Tc(e,t);if(0!==e.tag&&2===n){var r=kn(e);0!==r&&(t=r,n=vc(e,r))}if(1===n)throw n=Ku,Sc(e,0),yc(e,t),hc(e,ln()),n;if(6===n)throw Error(me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ac(e,Gu,ec),hc(e,ln()),null}function wc(e,t){var n=zu;zu|=1;try{return e(t)}finally{0===(zu=n)&&(Ju=ln()+500,Qi&&Ji())}}function Ec(e){null!==ic&&0===ic.tag&&0==(6&zu)&&Mc();var t=zu;zu|=1;var n=Vu.transition,r=_n;try{if(Vu.transition=null,_n=1,e)return e()}finally{_n=r,Vu.transition=n,0==(6&(zu=t))&&Ji()}}function xc(){Hu=Wu.current,Fi(Wu)}function Sc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,mi(n)),null!==ju)for(n=ju.return;null!==n;){var r=n;switch(fa(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Wi();break;case 3:ms(),Fi(Bi),Fi(zi),Es();break;case 5:gs(r);break;case 4:ms();break;case 13:case 19:Fi(ys);break;case 10:Ma(r.type._context);break;case 22:case 23:xc()}n=n.return}if(Bu=e,ju=e=Wc(e.current,null),Uu=Hu=t,$u=0,Ku=null,qu=Xu=Yu=0,Gu=Qu=null,null!==Ia){for(t=0;t<Ia.length;t++)if(null!==(r=(n=Ia[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ia=null}return e}function Cc(e,t){for(;;){var n=ju;try{if(Aa(),xs.current=vl,Rs){for(var r=ks.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Rs=!1}if(Cs=0,Ts=Ps=ks=null,Ds=!1,_s=0,Iu.current=null,null===n||null===n.return){$u=1,Ku=t,ju=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Uu,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Tl(a);if(null!==p){p.flags&=-257,Rl(p,a,s,0,t),1&p.mode&&Pl(i,u,t),l=u;var h=(t=p).updateQueue;if(null===h){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}if(0==(1&t)){Pl(i,u,t),Pc();break e}l=Error(me(426))}else if(ma&&1&s.mode){var v=Tl(a);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),Rl(v,a,s,0,t),ka(wl(l,s));break e}}i=l=wl(l,s),4!==$u&&($u=2),null===Qu?Qu=[i]:Qu.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ya(i,Cl(0,l,t));break e;case 1:s=l;var g=i.type,y=i.stateNode;if(0==(128&i.flags)&&("function"==typeof g.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===rc||!rc.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ya(i,kl(i,s,t));break e}}i=i.return}while(null!==i)}Lc(n)}catch(b){t=b,ju===n&&null!==n&&(ju=n=n.return);continue}break}}function kc(){var e=Fu.current;return Fu.current=vl,null===e?vl:e}function Pc(){0!==$u&&3!==$u&&2!==$u||($u=4),null===Bu||0==(268435455&Yu)&&0==(268435455&Xu)||yc(Bu,Uu)}function Tc(e,t){var n=zu;zu|=2;var r=kc();for(Bu===e&&Uu===t||(ec=null,Sc(e,t));;)try{Rc();break}catch(o){Cc(e,o)}if(Aa(),zu=n,Fu.current=r,null!==ju)throw Error(me(261));return Bu=null,Uu=0,$u}function Rc(){for(;null!==ju;)_c(ju)}function Dc(){for(;null!==ju&&!an();)_c(ju)}function _c(e){var t=Ou(e.alternate,e,Hu);e.memoizedProps=e.pendingProps,null===t?Lc(e):ju=t,Iu.current=null}function Lc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=ou(n,t,Hu)))return void(ju=n)}else{if(null!==(n=iu(n,t)))return n.flags&=32767,void(ju=n);if(null===e)return $u=6,void(ju=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(ju=t);ju=t=e}while(null!==t);0===$u&&($u=5)}function Ac(e,t,n){var r=_n,o=Vu.transition;try{Vu.transition=null,_n=1,function(e,t,n,r){do{Mc()}while(null!==ic);if(0!=(6&zu))throw Error(me(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(me(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-gn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Bu&&(ju=Bu=null,Uu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||oc||(oc=!0,Bc(fn,(function(){return Mc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Vu.transition,Vu.transition=null;var a=_n;_n=1;var s=zu;zu|=4,Iu.current=null,function(e,t){if(di=tr,Co(e=So())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(s=a+o),d!==i||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=a),f===i&&++c===r&&(l=a),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fi={focusedElem:e,selectionRange:n},tr=!1,uu=t;null!==uu;)if(e=(t=uu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,uu=e;else for(;null!==uu;){t=uu;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,v=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ta(t.type,m),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(me(163))}}catch(w){Nc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,uu=e;break}uu=t.return}h=fu,fu=!1}(e,n),Tu(n,e),ko(fi),tr=!!di,fi=di=null,e.current=n,Du(n),sn(),zu=s,_n=a,Vu.transition=i}else e.current=n;if(oc&&(oc=!1,ic=e,ac=o),i=e.pendingLanes,0===i&&(rc=null),function(e){if(vn&&"function"==typeof vn.onCommitFiberRoot)try{vn.onCommitFiberRoot(mn,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),hc(e,ln()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(tc)throw tc=!1,e=nc,nc=null,e;0!=(1&ac)&&0!==e.tag&&Mc(),i=e.pendingLanes,0!=(1&i)?e===lc?sc++:(sc=0,lc=e):sc=0,Ji()}(e,t,n,r)}finally{Vu.transition=o,_n=r}return null}function Mc(){if(null!==ic){var e=Ln(ac),t=Vu.transition,n=_n;try{if(Vu.transition=null,_n=16>e?16:e,null===ic)var r=!1;else{if(e=ic,ic=null,ac=0,0!=(6&zu))throw Error(me(331));var o=zu;for(zu|=4,uu=e.current;null!==uu;){var i=uu,a=i.child;if(0!=(16&uu.flags)){var s=i.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(uu=u;null!==uu;){var c=uu;switch(c.tag){case 0:case 11:case 15:pu(8,c,i)}var d=c.child;if(null!==d)d.return=c,uu=d;else for(;null!==uu;){var f=(c=uu).sibling,p=c.return;if(vu(c),c===u){uu=null;break}if(null!==f){f.return=p,uu=f;break}uu=p}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}uu=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,uu=a;else e:for(;null!==uu;){if(0!=(2048&(i=uu).flags))switch(i.tag){case 0:case 11:case 15:pu(9,i,i.return)}var g=i.sibling;if(null!==g){g.return=i.return,uu=g;break e}uu=i.return}}var y=e.current;for(uu=y;null!==uu;){var b=(a=uu).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,uu=b;else e:for(a=y;null!==uu;){if(0!=(2048&(s=uu).flags))try{switch(s.tag){case 0:case 11:case 15:hu(9,s)}}catch(E){Nc(s,s.return,E)}if(s===a){uu=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,uu=w;break e}uu=s.return}}if(zu=o,Ji(),vn&&"function"==typeof vn.onPostCommitFiberRoot)try{vn.onPostCommitFiberRoot(mn,e)}catch(E){}r=!0}return r}finally{_n=n,Vu.transition=t}}return!1}function Oc(e,t,n){e=$a(e,t=Cl(0,t=wl(n,t),1),1),t=dc(),null!==e&&(Rn(e,1,t),hc(e,t))}function Nc(e,t,n){if(3===e.tag)Oc(e,e,n);else for(;null!==t;){if(3===t.tag){Oc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===rc||!rc.has(r))){t=$a(t,e=kl(t,e=wl(n,e),1),1),e=dc(),null!==t&&(Rn(t,1,e),hc(t,e));break}}t=t.return}}function Fc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=dc(),e.pingedLanes|=e.suspendedLanes&n,Bu===e&&(Uu&n)===n&&(4===$u||3===$u&&(130023424&Uu)===Uu&&500>ln()-Zu?Sc(e,0):qu|=n),hc(e,t)}function Ic(e,t){0===t&&(0==(1&e.mode)?t=1:(t=En,0==(130023424&(En<<=1))&&(En=4194304)));var n=dc();null!==(e=Ba(e,t))&&(Rn(e,t,n),hc(e,n))}function Vc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ic(e,n)}function zc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(me(314))}null!==r&&r.delete(t),Ic(e,n)}function Bc(e,t){return rn(e,t)}function jc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Uc(e,t,n,r){return new jc(e,t,n,r)}function Hc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wc(e,t){var n=e.alternate;return null===n?((n=Uc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $c(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Hc(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Me:return Kc(n.children,o,i,t);case Oe:a=8,o|=8;break;case Ne:return(e=Uc(12,n,t,2|o)).elementType=Ne,e.lanes=i,e;case ze:return(e=Uc(13,n,t,o)).elementType=ze,e.lanes=i,e;case Be:return(e=Uc(19,n,t,o)).elementType=Be,e.lanes=i,e;case He:return Yc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Fe:a=10;break e;case Ie:a=9;break e;case Ve:a=11;break e;case je:a=14;break e;case Ue:a=16,r=null;break e}throw Error(me(130,null==e?e:typeof e,""))}return(t=Uc(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Kc(e,t,n,r){return(e=Uc(7,e,r,t)).lanes=n,e}function Yc(e,t,n,r){return(e=Uc(22,e,r,t)).elementType=He,e.lanes=n,e.stateNode={isHidden:!1},e}function Xc(e,t,n){return(e=Uc(6,e,null,t)).lanes=n,e}function qc(e,t,n){return(t=Uc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tn(0),this.expirationTimes=Tn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gc(e,t,n,r,o,i,a,s,l){return e=new Qc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Uc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ua(i),e}function Zc(e){if(!e)return Vi;e:{if(Zt(e=e._reactInternals)!==e||1!==e.tag)throw Error(me(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Hi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(me(171))}if(1===e.tag){var n=e.type;if(Hi(n))return Ki(e,n,t)}return t}function Jc(e,t,n,r,o,i,a,s,l){return(e=Gc(n,r,!0,e,0,i,0,s,l)).context=Zc(null),n=e.current,(i=Wa(r=dc(),o=fc(n))).callback=null!=t?t:null,$a(n,i,o),e.current.lanes=o,Rn(e,o,r),hc(e,r),e}function ed(e,t,n,r){var o=t.current,i=dc(),a=fc(o);return n=Zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Wa(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=$a(o,t,a))&&(pc(e,o,a,i),Ka(e,o,a)),a}function td(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nd(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rd(e,t){nd(e,t),(e=e.alternate)&&nd(e,t)}Ou=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Bi.current)_l=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return _l=!1,function(e,t,n){switch(t.tag){case 3:Bl(t),Ca();break;case 5:vs(t);break;case 1:Hi(t.type)&&Yi(t);break;case 4:hs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ii(Ra,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ii(ys,1&ys.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Xl(e,t,n):(Ii(ys,1&ys.current),null!==(e=tu(e,t,n))?e.sibling:null);Ii(ys,1&ys.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Jl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ii(ys,ys.current),r)break;return null;case 22:case 23:return t.lanes=0,Nl(e,t,n)}return tu(e,t,n)}(e,t,n);_l=0!=(131072&e.flags)}else _l=!1,ma&&0!=(1048576&t.flags)&&ca(t,ra,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;eu(e,t),e=t.pendingProps;var o=Ui(t,zi.current);Na(t,n),o=Os(null,t,r,e,o,n);var i=Ns();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Hi(r)?(i=!0,Yi(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ua(t),o.updater=Za,t.stateNode=o,o._reactInternals=t,ns(t,r,e,n),t=zl(null,t,r,!0,i,n)):(t.tag=0,ma&&i&&da(t),Ll(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(eu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Hc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ve)return 11;if(e===je)return 14}return 2}(r),e=Ta(r,e),o){case 0:t=Il(null,t,r,e,n);break e;case 1:t=Vl(null,t,r,e,n);break e;case 11:t=Al(null,t,r,e,n);break e;case 14:t=Ml(null,t,r,Ta(r.type,e),n);break e}throw Error(me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Il(e,t,r,o=t.elementType===r?o:Ta(r,o),n);case 1:return r=t.type,o=t.pendingProps,Vl(e,t,r,o=t.elementType===r?o:Ta(r,o),n);case 3:e:{if(Bl(t),null===e)throw Error(me(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ha(e,t),Xa(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=jl(e,t,r,n,o=wl(Error(me(423)),t));break e}if(r!==o){t=jl(e,t,r,n,o=wl(Error(me(424)),t));break e}for(ha=wi(t.stateNode.containerInfo.firstChild),pa=t,ma=!0,va=null,n=ls(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ca(),r===o){t=tu(e,t,n);break e}Ll(e,t,r,n)}t=t.child}return t;case 5:return vs(t),null===e&&wa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,pi(r,o)?a=null:null!==i&&pi(r,i)&&(t.flags|=32),Fl(e,t),Ll(e,t,a,n),t.child;case 6:return null===e&&wa(t),null;case 13:return Xl(e,t,n);case 4:return hs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ss(t,null,r,n):Ll(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Al(e,t,r,o=t.elementType===r?o:Ta(r,o),n);case 7:return Ll(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ll(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ii(Ra,r._currentValue),r._currentValue=a,null!==i)if(yo(i.value,a)){if(i.children===o.children&&!Bi.current){t=tu(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){a=i.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=Wa(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Oa(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(me(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Oa(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Ll(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Na(t,n),r=r(o=Fa(o)),t.flags|=1,Ll(e,t,r,n),t.child;case 14:return o=Ta(r=t.type,t.pendingProps),Ml(e,t,r,o=Ta(r.type,o),n);case 15:return Ol(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ta(r,o),eu(e,t),t.tag=1,Hi(r)?(e=!0,Yi(t)):e=!1,Na(t,n),es(t,r,o),ns(t,r,o,n),zl(null,t,r,!0,e,n);case 19:return Jl(e,t,n);case 22:return Nl(e,t,n)}throw Error(me(156,t.tag))};var od="function"==typeof reportError?reportError:function(e){console.error(e)};function id(e){this._internalRoot=e}function ad(e){this._internalRoot=e}function sd(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ld(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ud(){}function cd(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=td(a);s.call(e)}}ed(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=td(a);i.call(e)}}var a=Jc(t,r,e,0,null,!1,0,"",ud);return e._reactRootContainer=a,e[ki]=a.current,Jo(8===e.nodeType?e.parentNode:e),Ec(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=td(l);s.call(e)}}var l=Gc(e,0,!1,null,0,!1,0,"",ud);return e._reactRootContainer=l,e[ki]=l.current,Jo(8===e.nodeType?e.parentNode:e),Ec((function(){ed(t,l,n,r)})),l}(n,t,e,o,r);return td(a)}ad.prototype.render=id.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(me(409));ed(e,t,null,null)},ad.prototype.unmount=id.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Ec((function(){ed(null,e,null,null)})),t[ki]=null}},ad.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wn.length&&0!==t&&t<Wn[n].priority;n++);Wn.splice(n,0,e),0===n&&Xn(e)}},An=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xn(t.pendingLanes);0!==n&&(Dn(t,1|n),hc(t,ln()),0==(6&zu)&&(Ju=ln()+500,Ji()))}break;case 13:Ec((function(){var t=Ba(e,1);if(null!==t){var n=dc();pc(t,e,1,n)}})),rd(e,1)}},Mn=function(e){if(13===e.tag){var t=Ba(e,134217728);if(null!==t)pc(t,e,134217728,dc());rd(e,134217728)}},On=function(e){if(13===e.tag){var t=fc(e),n=Ba(e,t);if(null!==n)pc(n,e,t,dc());rd(e,t)}},Nn=function(){return _n},Fn=function(e,t){var n=_n;try{return _n=e,t()}finally{_n=n}},At=function(e,t,n){switch(t){case"input":if(lt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ai(r);if(!o)throw Error(me(90));rt(r),lt(r,o)}}}break;case"textarea":mt(e,n);break;case"select":null!=(t=n.value)&&ft(e,!!n.multiple,t,!1)}},Vt=wc,zt=Ec;var dd={usingClientEntryPoint:!1,Events:[_i,Li,Ai,Ft,It,wc]},fd={findFiberByHostInstance:Di,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},pd={bundleType:fd.bundleType,version:fd.version,rendererPackageName:fd.rendererPackageName,rendererConfig:fd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_e.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tn(e))?null:e.stateNode},findFiberByHostInstance:fd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var hd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hd.isDisabled&&hd.supportsFiber)try{mn=hd.inject(pd),vn=hd}catch(wt){}}ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dd,ue.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!sd(t))throw Error(me(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ae,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ue.createRoot=function(e,t){if(!sd(e))throw Error(me(299));var n=!1,r="",o=od;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Gc(e,1,!1,null,0,n,0,r,o),e[ki]=t.current,Jo(8===e.nodeType?e.parentNode:e),new id(t)},ue.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(me(188));throw e=Object.keys(e).join(","),Error(me(268,e))}return e=null===(e=tn(t))?null:e.stateNode},ue.flushSync=function(e){return Ec(e)},ue.hydrate=function(e,t,n){if(!ld(t))throw Error(me(200));return cd(null,e,t,!0,n)},ue.hydrateRoot=function(e,t,n){if(!sd(e))throw Error(me(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=od;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Jc(t,null,e,1,null!=n?n:null,o,0,i,a),e[ki]=t.current,Jo(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ad(t)},ue.render=function(e,t,n){if(!ld(t))throw Error(me(200));return cd(null,e,t,!1,n)},ue.unmountComponentAtNode=function(e){if(!ld(e))throw Error(me(40));return!!e._reactRootContainer&&(Ec((function(){cd(null,null,e,!1,(function(){e._reactRootContainer=null,e[ki]=null}))})),!0)},ue.unstable_batchedUpdates=wc,ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ld(n))throw Error(me(200));if(null==e||void 0===e._reactInternals)throw Error(me(38));return cd(e,t,n,!1,r)},ue.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),le.exports=ue;var md=le.exports;const vd=t(md),gd=z.forwardRef(((e,t)=>{const{children:n,...r}=e,o=z.Children.toArray(n),i=o.find(wd);if(i){const e=i.props.children,n=o.map((t=>t===i?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t));return z.createElement(yd,Q({},r,{ref:t}),z.isValidElement(e)?z.cloneElement(e,void 0,n):null)}return z.createElement(yd,Q({},r,{ref:t}),n)}));gd.displayName="Slot";const yd=z.forwardRef(((e,t)=>{const{children:n,...r}=e;return z.isValidElement(n)?z.cloneElement(n,{...Ed(r,n.props),ref:J(t,n.ref)}):z.Children.count(n)>1?z.Children.only(null):null}));yd.displayName="SlotClone";const bd=({children:e})=>z.createElement(z.Fragment,null,e);function wd(e){return z.isValidElement(e)&&e.type===bd}function Ed(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const xd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=z.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?gd:t;return z.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),z.createElement(i,Q({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Sd(e,t){e&&md.flushSync((()=>e.dispatchEvent(t)))}const Cd="dismissableLayer.update",kd="dismissableLayer.pointerDownOutside",Pd="dismissableLayer.focusOutside";let Td;const Rd=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dd=z.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=z.useContext(Rd),[d,f]=z.useState(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,h]=z.useState({}),m=ee(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,x=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ae(e),r=z.useRef(!1),o=z.useRef((()=>{}));return z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Ld(kd,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),S=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ae(e),r=z.useRef(!1);return z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){Ld(Pd,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ae(e);z.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),z.useEffect((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(Td=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),_d(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Td)}}),[d,p,r,c]),z.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),_d())}),[d,c]),z.useEffect((()=>{const e=()=>h({});return document.addEventListener(Cd,e),()=>document.removeEventListener(Cd,e)}),[]),z.createElement(xd.div,Q({},u,{ref:m,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,S.onFocusCapture),onBlurCapture:te(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function _d(){const e=new CustomEvent(Cd);document.dispatchEvent(e)}function Ld(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Sd(o,i):o.dispatchEvent(i)}const Ad=Dd,Md=z.forwardRef(((e,t)=>{const n=z.useContext(Rd),r=z.useRef(null),o=ee(t,r);return z.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),z.createElement(xd.div,Q({},e,{ref:o}))})),Od="focusScope.autoFocusOnMount",Nd="focusScope.autoFocusOnUnmount",Fd={bubbles:!1,cancelable:!0},Id=z.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=z.useState(null),u=ae(o),c=ae(i),d=z.useRef(null),f=ee(t,(e=>l(e))),p=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:jd(d.current,{select:!0})},t=function(e){!p.paused&&s&&(s.contains(e.relatedTarget)||jd(d.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,p.paused]),z.useEffect((()=>{if(s){Ud.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Od,Fd);s.addEventListener(Od,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(jd(r,{select:t}),document.activeElement!==n)return}((e=Vd(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&jd(s))}return()=>{s.removeEventListener(Od,u),setTimeout((()=>{const e=new CustomEvent(Nd,Fd);s.addEventListener(Nd,c),s.dispatchEvent(e),e.defaultPrevented||jd(null!=t?t:document.body,{select:!0}),s.removeEventListener(Nd,c),Ud.remove(p)}),0)}}var e}),[s,u,c,p]);const h=z.useCallback((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Vd(e),n=zd(t,e),r=zd(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&jd(i,{select:!0})):(e.preventDefault(),n&&jd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return z.createElement(xd.div,Q({tabIndex:-1},a,{ref:f,onKeyDown:h}))}));function Vd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zd(e,t){for(const n of e)if(!Bd(n,{upTo:t}))return n}function Bd(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function jd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Ud=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Hd(e,t),e.unshift(t)},remove(t){var n;e=Hd(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Hd(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Wd=z.forwardRef(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?vd.createPortal(z.createElement(xd.div,Q({},o,{ref:t})),r):null}));const $d=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=z.useState(),r=z.useRef({}),o=z.useRef(e),i=z.useRef("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return z.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect((()=>{const e=Kd(r.current);i.current="mounted"===s?e:"none"}),[s]),ne((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Kd(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),ne((()=>{if(t){const e=e=>{const n=Kd(r.current).includes(e.animationName);e.target===t&&n&&md.flushSync((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Kd(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:z.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):z.Children.only(n),i=ee(r.ref,o.ref);return"function"==typeof n||r.isPresent?z.cloneElement(o,{ref:i}):null};function Kd(e){return(null==e?void 0:e.animationName)||"none"}$d.displayName="Presence";let Yd=0;function Xd(){z.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:qd()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:qd()),Yd++,()=>{1===Yd&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Yd--}}),[])}function qd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Qd=function(){return Qd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qd.apply(this,arguments)};function Gd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Zd="right-scroll-bar-position",Jd="width-before-scroll-bar";function ef(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=z.useState((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}function tf(e){return e}var nf=function(e){var t=e.sideCar,n=Gd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return z.createElement(r,Qd({},n))};nf.isSideCarExport=!0;var rf=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=tf);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Qd({async:!0,ssr:!1},e),t}(),of=function(){},af=z.forwardRef((function(e,t){var n=z.useRef(null),r=z.useState({onScrollCapture:of,onWheelCapture:of,onTouchMoveCapture:of}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=Gd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=f,w=ef([n,t]),E=Qd(Qd({},y),o);return z.createElement(z.Fragment,null,c&&z.createElement(b,{sideCar:rf,removeScrollBar:u,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?z.cloneElement(z.Children.only(s),Qd(Qd({},E),{ref:w})):z.createElement(g,Qd({},E,{className:l,ref:w}),s))}));af.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},af.classNames={fullWidth:Jd,zeroRight:Zd};function sf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var lf=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=sf())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uf=function(){var e,t=(e=lf(),function(t,n){z.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},cf={left:0,top:0,right:0,gap:0},df=function(e){return parseInt(e||"",10)||0},ff=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return cf;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[df(n),df(r),df(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pf=uf(),hf=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Zd," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Jd," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Zd," .").concat(Zd," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Jd," .").concat(Jd," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},mf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=z.useMemo((function(){return ff(o)}),[o]);return z.createElement(pf,{styles:hf(i,!t,o,n?"":"!important")})},vf=!1;if("undefined"!=typeof window)try{var gf=Object.defineProperty({},"passive",{get:function(){return vf=!0,!0}});window.addEventListener("test",gf,gf),window.removeEventListener("test",gf,gf)}catch(R_){vf=!1}var yf=!!vf&&{passive:!1},bf=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},wf=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Ef(e,n)){var r=xf(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ef=function(e,t){return"v"===e?function(e){return bf(e,"overflowY")}(t):function(e){return bf(e,"overflowX")}(t)},xf=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Sf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cf=function(e){return[e.deltaX,e.deltaY]},kf=function(e){return e&&"current"in e?e.current:e},Pf=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Tf=0,Rf=[];const Df=(_f=function(e){var t=z.useRef([]),n=z.useRef([0,0]),r=z.useRef(),o=z.useState(Tf++)[0],i=z.useState((function(){return uf()}))[0],a=z.useRef(e);z.useEffect((function(){a.current=e}),[e]),z.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(kf),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=z.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Sf(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=wf(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=wf(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=xf(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&Ef(e,s)&&(d+=m,f+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&0===d||!o&&a>d)||!c&&(o&&0===f||!o&&-a>f))&&(u=!0),u}(p,t,e,"h"===p?l:u,!0)}),[]),l=z.useCallback((function(e){var n=e;if(Rf.length&&Rf[Rf.length-1]===i){var r="deltaY"in n?Cf(n):Sf(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(kf).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=z.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=z.useCallback((function(e){n.current=Sf(e),r.current=void 0}),[]),d=z.useCallback((function(t){u(t.type,Cf(t),t.target,s(t,e.lockRef.current))}),[]),f=z.useCallback((function(t){u(t.type,Sf(t),t.target,s(t,e.lockRef.current))}),[]);z.useEffect((function(){return Rf.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,yf),document.addEventListener("touchmove",l,yf),document.addEventListener("touchstart",c,yf),function(){Rf=Rf.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,yf),document.removeEventListener("touchmove",l,yf),document.removeEventListener("touchstart",c,yf)}}),[]);var p=e.removeScrollBar,h=e.inert;return z.createElement(z.Fragment,null,h?z.createElement(i,{styles:Pf(o)}):null,p?z.createElement(mf,{gapMode:"margin"}):null)},rf.useMedium(_f),nf);var _f,Lf=z.forwardRef((function(e,t){return z.createElement(af,Qd({},e,{ref:t,sideCar:Df}))}));Lf.classNames=af.classNames;const Af=Lf;var Mf=new WeakMap,Of=new WeakMap,Nf={},Ff=0,If=function(e){return e&&(e.host||If(e.parentNode))},Vf=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=If(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Nf[n]||(Nf[n]=new WeakMap);var i=Nf[n],a=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Mf.get(e)||0)+1,u=(i.get(e)||0)+1;Mf.set(e,l),i.set(e,u),a.push(e),1===l&&o&&Of.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return c(t),s.clear(),Ff++,function(){a.forEach((function(e){var t=Mf.get(e)-1,o=i.get(e)-1;Mf.set(e,t),i.set(e,o),t||(Of.has(e)||e.removeAttribute(r),Of.delete(e)),o||e.removeAttribute(n)})),--Ff||(Mf=new WeakMap,Mf=new WeakMap,Of=new WeakMap,Nf={})}},zf=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Vf(r,o,n,"aria-hidden")):function(){return null}};const Bf="Dialog",[jf,Uf]=G(Bf),[Hf,Wf]=jf(Bf),$f="DialogPortal",[Kf,Yf]=jf($f,{forceMount:void 0}),Xf="DialogOverlay",qf=z.forwardRef(((e,t)=>{const n=Yf(Xf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Wf(Xf,e.__scopeDialog);return i.modal?z.createElement($d,{present:r||i.open},z.createElement(Qf,Q({},o,{ref:t}))):null})),Qf=z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wf(Xf,n);return z.createElement(Af,{as:gd,allowPinchZoom:!0,shards:[o.contentRef]},z.createElement(xd.div,Q({"data-state":ap(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Gf="DialogContent",Zf=z.forwardRef(((e,t)=>{const n=Yf(Gf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Wf(Gf,e.__scopeDialog);return z.createElement($d,{present:r||i.open},i.modal?z.createElement(Jf,Q({},o,{ref:t})):z.createElement(ep,Q({},o,{ref:t})))})),Jf=z.forwardRef(((e,t)=>{const n=Wf(Gf,e.__scopeDialog),r=z.useRef(null),o=ee(t,n.contentRef,r);return z.useEffect((()=>{const e=r.current;if(e)return zf(e)}),[]),z.createElement(tp,Q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:te(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:te(e.onFocusOutside,(e=>e.preventDefault()))}))})),ep=z.forwardRef(((e,t)=>{const n=Wf(Gf,e.__scopeDialog),r=z.useRef(!1);return z.createElement(tp,Q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),tp=z.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Wf(Gf,n),l=ee(t,z.useRef(null));return Xd(),z.createElement(z.Fragment,null,z.createElement(Id,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},z.createElement(Dd,Q({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ap(s.open)},a,{ref:l,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),np="DialogTitle",rp=z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wf(np,n);return z.createElement(xd.h2,Q({id:o.titleId},r,{ref:t}))})),op=z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wf("DialogDescription",n);return z.createElement(xd.p,Q({id:o.descriptionId},r,{ref:t}))})),ip=z.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wf("DialogClose",n);return z.createElement(xd.button,Q({type:"button"},r,{ref:t,onClick:te(e.onClick,(()=>o.onOpenChange(!1)))}))}));function ap(e){return e?"open":"closed"}const[sp,lp]=function(e,t){const n=z.createContext(t);function r(e){const{children:t,...r}=e,o=z.useMemo((()=>r),Object.values(r));return z.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=z.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:Gf,titleName:np,docsSlug:"dialog"}),up=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=z.useRef(null),l=z.useRef(null),[u=!1,c]=se({prop:r,defaultProp:o,onChange:i});return z.createElement(Hf,{scope:t,triggerRef:s,contentRef:l,contentId:ie(),titleId:ie(),descriptionId:ie(),open:u,onOpenChange:c,onOpenToggle:z.useCallback((()=>c((e=>!e))),[c]),modal:a},n)},cp=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Wf($f,t);return z.createElement(Kf,{scope:t,forceMount:n},z.Children.map(r,(e=>z.createElement($d,{present:n||i.open},z.createElement(Wd,{asChild:!0,container:o},e)))))},dp=qf,fp=Zf,pp=rp,hp=op,mp=ip,[vp,gp]=G("AlertDialog",[Uf]),yp=Uf(),bp=z.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yp(n);return z.createElement(dp,Q({},o,r,{ref:t}))})),wp="AlertDialogContent",[Ep,xp]=vp(wp),Sp=z.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=yp(n),a=ee(t,z.useRef(null)),s=z.useRef(null);return z.createElement(sp,{contentName:wp,titleName:Cp,docsSlug:"alert-dialog"},z.createElement(Ep,{scope:n,cancelRef:s},z.createElement(fp,Q({role:"alertdialog"},i,o,{ref:a,onOpenAutoFocus:te(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),z.createElement(bd,null,r),!1)))})),Cp="AlertDialogTitle",kp=z.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yp(n);return z.createElement(pp,Q({},o,r,{ref:t}))})),Pp=z.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yp(n);return z.createElement(hp,Q({},o,r,{ref:t}))})),Tp=e=>{const{__scopeAlertDialog:t,...n}=e,r=yp(t);return z.createElement(up,Q({},r,n,{modal:!0}))},Rp=e=>{const{__scopeAlertDialog:t,...n}=e,r=yp(t);return z.createElement(cp,Q({},r,n))},Dp=bp,_p=Sp,Lp=z.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yp(n);return z.createElement(mp,Q({},o,r,{ref:t}))})),Ap=z.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=xp("AlertDialogCancel",n),i=yp(n),a=ee(t,o);return z.createElement(mp,Q({},i,r,{ref:a}))})),Mp=kp,Op=Pp;var Np={},Fp=md;function Ip(e){const t=e+"CollectionProvider",[n,r]=G(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=B.useRef(null),i=B.useRef(new Map).current;return B.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:B.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=ee(t,i(a,n).collectionRef);return B.createElement(gd,{ref:o},r)})),ItemSlot:B.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=B.useRef(null),u=ee(t,a),c=i(s,n);return B.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),B.createElement(gd,{[l]:"",ref:u},r)}))},function(t){const n=i(e+"CollectionConsumer",t),r=B.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}Np.createRoot=Fp.createRoot,Np.hydrateRoot=Fp.hydrateRoot;const Vp=z.forwardRef(((e,t)=>z.createElement(xd.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),zp="ToastProvider",[Bp,jp,Up]=Ip("Toast"),[Hp,Wp]=G("Toast",[Up]),[$p,Kp]=Hp(zp),Yp=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=z.useState(null),[u,c]=z.useState(0),d=z.useRef(!1),f=z.useRef(!1);return z.createElement(Bp.Provider,{scope:t},z.createElement($p,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:s,onViewportChange:l,onToastAdd:z.useCallback((()=>c((e=>e+1))),[]),onToastRemove:z.useCallback((()=>c((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f},a))};Yp.propTypes={label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){return new Error(`Invalid prop \`label\` supplied to \`${zp}\`. Expected non-empty \`string\`.`)}return null}};const Xp=["F8"],qp="toast.viewportPause",Qp="toast.viewportResume",Gp=z.forwardRef(((e,t)=>{const{__scopeToast:n,hotkey:r=Xp,label:o="Notifications ({hotkey})",...i}=e,a=Kp("ToastViewport",n),s=jp(n),l=z.useRef(null),u=z.useRef(null),c=z.useRef(null),d=z.useRef(null),f=ee(t,d,a.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=a.toastCount>0;z.useEffect((()=>{const e=e=>{var t;r.every((t=>e[t]||e.code===t))&&(null===(t=d.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r]),z.useEffect((()=>{const e=l.current,t=d.current;if(h&&e&&t){const n=()=>{if(!a.isClosePausedRef.current){const e=new CustomEvent(qp);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){const e=new CustomEvent(Qp);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},i=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[h,a.isClosePausedRef]);const m=z.useCallback((({tabbingDirection:e})=>{const t=s().map((t=>{const n=t.ref.current,r=[n,...ph(n)];return"forwards"===e?r:r.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[s]);return z.useEffect((()=>{const e=d.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,a=t.shiftKey;var r;if(t.target===e&&a)return void(null===(r=u.current)||void 0===r||r.focus());const s=m({tabbingDirection:a?"backwards":"forwards"}),l=s.findIndex((e=>e===n));var o,i;if(hh(s.slice(l+1)))t.preventDefault();else a?null===(o=u.current)||void 0===o||o.focus():null===(i=c.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[s,m]),z.createElement(Md,{ref:l,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:h?void 0:"none"}},h&&z.createElement(Zp,{ref:u,onFocusFromOutsideViewport:()=>{hh(m({tabbingDirection:"forwards"}))}}),z.createElement(Bp.Slot,{scope:n},z.createElement(xd.ol,Q({tabIndex:-1},i,{ref:f}))),h&&z.createElement(Zp,{ref:c,onFocusFromOutsideViewport:()=>{hh(m({tabbingDirection:"backwards"}))}}))})),Zp=z.forwardRef(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Kp("ToastFocusProxy",n);return z.createElement(Vp,Q({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null!==(t=i.viewport)&&void 0!==t&&t.contains(n))&&r()}}))})),Jp="Toast",eh=z.forwardRef(((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[s=!0,l]=se({prop:r,defaultProp:o,onChange:i});return z.createElement($d,{present:n||s},z.createElement(rh,Q({open:s},a,{ref:t,onClose:()=>l(!1),onPause:ae(e.onPause),onResume:ae(e.onResume),onSwipeStart:te(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:te(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:te(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:te(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),l(!1)}))})))})),[th,nh]=Hp(Jp,{onClose(){}}),rh=z.forwardRef(((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...h}=e,m=Kp(Jp,n),[v,g]=z.useState(null),y=ee(t,(e=>g(e))),b=z.useRef(null),w=z.useRef(null),E=o||m.duration,x=z.useRef(0),S=z.useRef(E),C=z.useRef(0),{onToastAdd:k,onToastRemove:P}=m,T=ae((()=>{var e;(null==v?void 0:v.contains(document.activeElement))&&(null===(e=m.viewport)||void 0===e||e.focus()),a()})),R=z.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(C.current),x.current=(new Date).getTime(),C.current=window.setTimeout(T,e))}),[T]);z.useEffect((()=>{const e=m.viewport;if(e){const t=()=>{R(S.current),null==u||u()},n=()=>{const e=(new Date).getTime()-x.current;S.current=S.current-e,window.clearTimeout(C.current),null==l||l()};return e.addEventListener(qp,n),e.addEventListener(Qp,t),()=>{e.removeEventListener(qp,n),e.removeEventListener(Qp,t)}}}),[m.viewport,E,l,u,R]),z.useEffect((()=>{i&&!m.isClosePausedRef.current&&R(E)}),[i,E,m.isClosePausedRef,R]),z.useEffect((()=>(k(),()=>P())),[k,P]);const D=z.useMemo((()=>v?ch(v):null),[v]);return m.viewport?z.createElement(z.Fragment,null,D&&z.createElement(oh,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0},D),z.createElement(th,{scope:n,onClose:T},md.createPortal(z.createElement(Bp.ItemSlot,{scope:n},z.createElement(Ad,{asChild:!0,onEscapeKeyDown:te(s,(()=>{m.isFocusedToastEscapeKeyDownRef.current||T(),m.isFocusedToastEscapeKeyDownRef.current=!1}))},z.createElement(xd.li,Q({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection},h,{ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:te(e.onKeyDown,(e=>{"Escape"===e.key&&(null==s||s(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,T()))})),onPointerDown:te(e.onPointerDown,(e=>{0===e.button&&(b.current={x:e.clientX,y:e.clientY})})),onPointerMove:te(e.onPointerMove,(e=>{if(!b.current)return;const t=e.clientX-b.current.x,n=e.clientY-b.current.y,r=Boolean(w.current),o=["left","right"].includes(m.swipeDirection),i=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,s=o?0:i(0,n),l="touch"===e.pointerType?10:2,u={x:a,y:s},f={originalEvent:e,delta:u};r?(w.current=u,dh("toast.swipeMove",d,f,{discrete:!1})):fh(u,m.swipeDirection,l)?(w.current=u,dh("toast.swipeStart",c,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(b.current=null)})),onPointerUp:te(e.onPointerUp,(e=>{const t=w.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),w.current=null,b.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};fh(t,m.swipeDirection,m.swipeThreshold)?dh("toast.swipeEnd",p,r,{discrete:!0}):dh("toast.swipeCancel",f,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),m.viewport))):null}));rh.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${Jp}\`. Expected \`foreground | background\`.`)}return null}};const oh=e=>{const{__scopeToast:t,children:n,...r}=e,o=Kp(Jp,t),[i,a]=z.useState(!1),[s,l]=z.useState(!1);return function(e=(()=>{})){const t=ae(e);ne((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>a(!0))),z.useEffect((()=>{const e=window.setTimeout((()=>l(!0)),1e3);return()=>window.clearTimeout(e)}),[]),s?null:z.createElement(Wd,{asChild:!0},z.createElement(Vp,r,i&&z.createElement(z.Fragment,null,o.label," ",n)))},ih=z.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return z.createElement(xd.div,Q({},r,{ref:t}))})),ah=z.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return z.createElement(xd.div,Q({},r,{ref:t}))})),sh=z.forwardRef(((e,t)=>{const{altText:n,...r}=e;return n?z.createElement(uh,{altText:n,asChild:!0},z.createElement(lh,Q({},r,{ref:t}))):null}));sh.propTypes={altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")};const lh=z.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e,o=nh("ToastClose",n);return z.createElement(uh,{asChild:!0},z.createElement(xd.button,Q({type:"button"},r,{ref:t,onClick:te(e.onClick,o.onClose)})))})),uh=z.forwardRef(((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return z.createElement(xd.div,Q({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))}));function ch(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...ch(e))}})),t}function dh(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Sd(o,i):o.dispatchEvent(i)}const fh=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};function ph(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hh(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}const mh=Yp,vh=Gp,gh=eh,yh=ih,bh=ah,wh=sh;function Eh(e){return e.split("-")[0]}function xh(e){return e.split("-")[1]}function Sh(e){return["top","bottom"].includes(Eh(e))?"x":"y"}function Ch(e){return"y"===e?"height":"width"}function kh(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Sh(t),l=Ch(s),u=r[l]/2-o[l]/2,c="x"===s;let d;switch(Eh(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(xh(t)){case"start":d[s]-=u*(n&&c?-1:1);break;case"end":d[s]+=u*(n&&c?-1:1)}return d}function Ph(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function Th(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Rh(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,h=Ph(p),m=s[f?"floating"===d?"reference":"floating":d],v=Th(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g=Th(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:v.top-g.top+h.top,bottom:g.bottom-v.bottom+h.bottom,left:v.left-g.left+h.left,right:g.right-v.right+h.right}}const Dh=Math.min,_h=Math.max;function Lh(e,t,n){return _h(e,Dh(t,n))}const Ah=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const u=Ph(r),c={x:o,y:i},d=Sh(a),f=xh(a),p=Ch(d),h=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[p]+s.reference[d]-c[d]-s.floating[p],y=c[d]-s.reference[d],b=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=s.floating[p]);const E=g/2-y/2,x=u[m],S=w-h[p]-u[v],C=w/2-h[p]/2+E,k=Lh(x,C,S),P=("start"===f?u[m]:u[v])>0&&C!==k&&s.reference[p]<=s.floating[p];return{[d]:c[d]-(P?C<x?x-C:S-C:0),data:{[d]:k,centerOffset:C-k}}}}),Mh={left:"right",right:"left",bottom:"top",top:"bottom"};function Oh(e){return e.replace(/left|right|bottom|top/g,(e=>Mh[e]))}const Nh={start:"end",end:"start"};function Fh(e){return e.replace(/start|end/g,(e=>Nh[e]))}const Ih=["top","right","bottom","left"];Ih.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const Vh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...h}=e,m=Eh(r),v=[a,...d||(m!==a&&p?function(e){const t=Oh(e);return[Fh(e),t,Fh(t)]}(a):[Oh(a)])],g=await Rh(t,h),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&y.push(g[m]),c){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=xh(e),o=Sh(e),i=Ch(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Oh(a)),{main:a,cross:Oh(a)}}(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,E;const e=(null!=(w=null==(E=o.flip)?void 0:E.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var x;const e=null==(x=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:x[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function zh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bh(e){return Ih.some((t=>e[t]>=0))}const jh=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=zh(await Rh(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Bh(t)}}}case"escaped":{const t=zh(await Rh(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:Bh(t)}}}default:return{}}}}};function Uh(e){return"x"===e?"y":"x"}const Hh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await Rh(t,l),d=Sh(Eh(o)),f=Uh(d);let p=u[d],h=u[f];if(i){const e="y"===d?"bottom":"right";p=Lh(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";h=Lh(h+c["y"===f?"top":"left"],h,h-c[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Wh(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function $h(e){if(null==e)return window;if(!Wh(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kh(e){return $h(e).getComputedStyle(e)}function Yh(e){return Wh(e)?"":e?(e.nodeName||"").toLowerCase():""}function Xh(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function qh(e){return e instanceof $h(e).HTMLElement}function Qh(e){return e instanceof $h(e).Element}function Gh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof $h(e).ShadowRoot||e instanceof ShadowRoot)}function Zh(e){const{overflow:t,overflowX:n,overflowY:r}=Kh(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Jh(e){return["table","td","th"].includes(Yh(e))}function em(e){const t=/firefox/i.test(Xh()),n=Kh(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function tm(){return!/^((?!chrome|android).)*safari/i.test(Xh())}const nm=Math.min,rm=Math.max,om=Math.round;function im(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,u=1;t&&qh(e)&&(l=e.offsetWidth>0&&om(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&om(s.height)/e.offsetHeight||1);const c=Qh(e)?$h(e):window,d=!tm()&&n,f=(s.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=s.width/l,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function am(e){return(t=e,(t instanceof $h(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function sm(e){return Qh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lm(e){return im(am(e)).left+sm(e).scrollLeft}function um(e,t,n){const r=qh(t),o=am(t),i=im(e,r&&function(e){const t=im(e);return om(t.width)!==e.offsetWidth||om(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Yh(t)||Zh(o))&&(a=sm(t)),qh(t)){const e=im(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=lm(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function cm(e){return"html"===Yh(e)?e:e.assignedSlot||e.parentNode||(Gh(e)?e.host:null)||am(e)}function dm(e){return qh(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function fm(e){const t=$h(e);let n=dm(e);for(;n&&Jh(n)&&"static"===getComputedStyle(n).position;)n=dm(n);return n&&("html"===Yh(n)||"body"===Yh(n)&&"static"===getComputedStyle(n).position&&!em(n))?t:n||function(e){let t=cm(e);for(Gh(t)&&(t=t.host);qh(t)&&!["html","body"].includes(Yh(t));){if(em(t))return t;t=t.parentNode}return null}(e)||t}function pm(e){if(qh(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=im(e);return{width:t.width,height:t.height}}function hm(e){const t=cm(e);return["html","body","#document"].includes(Yh(t))?e.ownerDocument.body:qh(t)&&Zh(t)?t:hm(t)}function mm(e,t){var n;void 0===t&&(t=[]);const r=hm(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=$h(r),a=o?[i].concat(i.visualViewport||[],Zh(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(mm(a))}function vm(e,t,n){return"viewport"===t?Th(function(e,t){const n=$h(e),r=am(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=tm();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):Qh(t)?function(e,t){const n=im(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):Th(function(e){var t;const n=am(e),r=sm(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=rm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=rm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+lm(e);const l=-r.scrollTop;return"rtl"===Kh(o||n).direction&&(s+=rm(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(am(e)))}function gm(e){const t=mm(e),n=["absolute","fixed"].includes(Kh(e).position)&&qh(e)?fm(e):e;return Qh(n)?t.filter((e=>Qh(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Gh(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Yh(e))):[]}const ym={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?gm(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=vm(t,n,o);return e.top=rm(r.top,e.top),e.right=nm(r.right,e.right),e.bottom=nm(r.bottom,e.bottom),e.left=rm(r.left,e.left),e}),vm(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=qh(n),i=am(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Yh(n)||Zh(i))&&(a=sm(n)),qh(n))){const e=im(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:Qh,getDimensions:pm,getOffsetParent:fm,getDocumentElement:am,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:um(t,fm(n),r),floating:{...pm(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Kh(e).direction};function bm(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,u=i&&!s,c=l||u?[...Qh(e)?mm(e):[],...mm(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),Qh(e)&&!s&&f.observe(e),f.observe(t)}let p=s?im(e):null;return s&&function t(){const r=im(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const wm=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=kh(l,r,s),d=r,f={},p=0;for(let h=0;h<i.length;h++){const{name:n,fn:m}=i[h],{x:v,y:g,data:y,reset:b}=await m({x:u,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,c=null!=g?g:c,f={...f,[n]:{...f[n],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:c}=kh(l,d,s))),h=-1)}return{x:u,y:c,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:ym,...n});var Em="undefined"!=typeof document?z.useLayoutEffect:z.useEffect;function xm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!xm(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!xm(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Sm(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=z.useRef(null),a=z.useRef(null),s=function(e){const t=z.useRef(e);return Em((()=>{t.current=e})),t}(o),l=z.useRef(null),[u,c]=z.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=z.useState(t);xm(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=z.useCallback((()=>{i.current&&a.current&&wm(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{h.current&&md.flushSync((()=>{c(e)}))}))}),[d,n,r]);Em((()=>{h.current&&p()}),[p]);const h=z.useRef(!1);Em((()=>(h.current=!0,()=>{h.current=!1})),[]);const m=z.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);l.current=e}else p()}),[p,s]),v=z.useCallback((e=>{i.current=e,m()}),[m]),g=z.useCallback((e=>{a.current=e,m()}),[m]),y=z.useMemo((()=>({reference:i,floating:a})),[]);return z.useMemo((()=>({...u,update:p,refs:y,reference:v,floating:g})),[u,p,y,v,g])}const Cm=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Ah({element:t.current,padding:n}).fn(e):{}:t?Ah({element:t,padding:n}).fn(e):{};var r}}},km=z.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return z.createElement(xd.svg,Q({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:z.createElement("polygon",{points:"0,0 30,0 15,10"}))}));function Pm(e){const[t,n]=z.useState(void 0);return ne((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const Tm="Popper",[Rm,Dm]=G(Tm),[_m,Lm]=Rm(Tm),Am=z.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Lm("PopperAnchor",n),a=z.useRef(null),s=ee(t,a);return z.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:z.createElement(xd.div,Q({},o,{ref:s}))})),Mm="PopperContent",[Om,Nm]=Rm(Mm),[Fm,Im]=Rm(Mm,{hasParent:!1,positionUpdateFns:new Set}),Vm=z.forwardRef(((e,t)=>{var n,r,o,i,a,s,l,u;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:E,...x}=e,S=Lm(Mm,c),[C,k]=z.useState(null),P=ee(t,(e=>k(e))),[T,R]=z.useState(null),D=Pm(T),_=null!==(n=null==D?void 0:D.width)&&void 0!==n?n:0,L=null!==(r=null==D?void 0:D.height)&&void 0!==r?r:0,A=d+("center"!==p?"-"+p:""),M="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},O=Array.isArray(v)?v:[v],N=O.length>0,F={padding:M,boundary:O.filter(jm),altBoundary:N},{reference:I,floating:V,strategy:B,x:j,y:U,placement:H,middlewareData:W,update:$}=Sm({strategy:"fixed",placement:A,whileElementsMounted:bm,middleware:[Um(),(X={mainAxis:f+L,alignmentAxis:h},void 0===X&&(X=0),{name:"offset",options:X,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Eh(n),s=xh(n),l="x"===Sh(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(e,X);return{x:t+r.x,y:n+r.y,data:r}}}),w?Hh({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?(void 0===Y&&(Y={}),{options:Y,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=Y,u={x:t,y:n},c=Sh(r),d=Uh(c);let f=u[c],p=u[d];const h="function"==typeof a?a({...o,placement:r}):a,m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===c?"height":"width",t=o.reference[c]-o.floating[e]+m.mainAxis,n=o.reference[c]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var v,g,y,b;const e="y"===c?"width":"height",t=["top","left"].includes(Eh(r)),n=o.reference[d]-o.floating[e]+(t&&null!=(v=null==(g=i.offset)?void 0:g[d])?v:0)+(t?0:m.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:null!=(y=null==(b=i.offset)?void 0:b[d])?y:0)-(t?m.crossAxis:0);p<n?p=n:p>a&&(p=a)}return{[c]:f,[d]:p}}}):void 0,...F}):void 0,T?Cm({element:T,padding:m}):void 0,w?Vh({...F}):void 0,(K={...F,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},void 0===K&&(K={}),{name:"size",options:K,async fn(e){const{placement:t,rects:n,platform:r,elements:o}=e,{apply:i,...a}=K,s=await Rh(e,a),l=Eh(t),u=xh(t);let c,d;"top"===l||"bottom"===l?(c=l,d=u===(await(null==r.isRTL?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(d=l,c="end"===u?"top":"bottom");const f=_h(s.left,0),p=_h(s.right,0),h=_h(s.top,0),m=_h(s.bottom,0),v={availableHeight:n.floating.height-(["left","right"].includes(t)?2*(0!==h||0!==m?h+m:_h(s.top,s.bottom)):s[c]),availableWidth:n.floating.width-(["top","bottom"].includes(t)?2*(0!==f||0!==p?f+p:_h(s.left,s.right)):s[d])},g=await r.getDimensions(o.floating);null==i||i({...e,...v});const y=await r.getDimensions(o.floating);return g.width!==y.width||g.height!==y.height?{reset:{rects:!0}}:{}}}),Hm({arrowWidth:_,arrowHeight:L}),b?jh({strategy:"referenceHidden"}):void 0].filter(Bm)});var K,Y,X;ne((()=>{I(S.anchor)}),[I,S.anchor]);const q=null!==j&&null!==U,[Q,G]=Wm(H),Z=ae(E);ne((()=>{q&&(null==Z||Z())}),[q,Z]);const J=null===(o=W.arrow)||void 0===o?void 0:o.x,te=null===(i=W.arrow)||void 0===i?void 0:i.y,re=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[oe,ie]=z.useState();ne((()=>{C&&ie(window.getComputedStyle(C).zIndex)}),[C]);const{hasParent:se,positionUpdateFns:le}=Im(Mm,c),ue=!se;z.useLayoutEffect((()=>{if(!ue)return le.add($),()=>{le.delete($)}}),[ue,le,$]),ne((()=>{ue&&q&&Array.from(le).reverse().forEach((e=>requestAnimationFrame(e)))}),[ue,q,le]);const ce={"data-side":Q,"data-align":G,...x,ref:P,style:{...x.style,animation:q?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return z.createElement("div",{ref:V,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:q?`translate3d(${Math.round(j)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},z.createElement(Om,{scope:c,placedSide:Q,onArrowChange:R,arrowX:J,arrowY:te,shouldHideArrow:re},ue?z.createElement(Fm,{scope:c,hasParent:!0,positionUpdateFns:le},z.createElement(xd.div,ce)):z.createElement(xd.div,ce)))})),zm={top:"bottom",right:"left",bottom:"top",left:"right"};function Bm(e){return void 0!==e}function jm(e){return null!==e}const Um=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),Hm=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Wm(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?m:`${v}px`,b=-f+"px"):"top"===p?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?m:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function Wm(e){const[t,n="center"]=e.split("-");return[t,n]}const $m=e=>{const{__scopePopper:t,children:n}=e,[r,o]=z.useState(null);return z.createElement(_m,{scope:t,anchor:r,onAnchorChange:o},n)},Km=Am,Ym=Vm,Xm=z.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Nm("PopperArrow",n),i=zm[o.placedSide];return z.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},z.createElement(km,Q({},r,{ref:t,style:{...r.style,display:"block"}})))})),qm="Popover",[Qm,Gm]=G(qm,[Dm]),Zm=Dm(),[Jm,ev]=Qm(qm),tv=z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=ev("PopoverTrigger",n),i=Zm(n),a=ee(t,o.triggerRef),s=z.createElement(xd.button,Q({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cv(o.open)},r,{ref:a,onClick:te(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:z.createElement(Km,Q({asChild:!0},i),s)})),nv="PopoverPortal",[rv,ov]=Qm(nv,{forceMount:void 0}),iv="PopoverContent",av=z.forwardRef(((e,t)=>{const n=ov(iv,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=ev(iv,e.__scopePopover);return z.createElement($d,{present:r||i.open},i.modal?z.createElement(sv,Q({},o,{ref:t})):z.createElement(lv,Q({},o,{ref:t})))})),sv=z.forwardRef(((e,t)=>{const n=ev(iv,e.__scopePopover),r=z.useRef(null),o=ee(t,r),i=z.useRef(!1);return z.useEffect((()=>{const e=r.current;if(e)return zf(e)}),[]),z.createElement(Af,{as:gd,allowPinchZoom:!0},z.createElement(uv,Q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:te(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:te(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),lv=z.forwardRef(((e,t)=>{const n=ev(iv,e.__scopePopover),r=z.useRef(!1);return z.createElement(uv,Q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),uv=z.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=ev(iv,n),p=Zm(n);return Xd(),z.createElement(Id,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},z.createElement(Dd,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},z.createElement(Ym,Q({"data-state":cv(f.open),role:"dialog",id:f.contentId},p,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}));function cv(e){return e?"open":"closed"}const dv=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Zm(t),l=z.useRef(null),[u,c]=z.useState(!1),[d=!1,f]=se({prop:r,defaultProp:o,onChange:i});return z.createElement($m,s,z.createElement(Jm,{scope:t,contentId:ie(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:z.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:u,onCustomAnchorAdd:z.useCallback((()=>c(!0)),[]),onCustomAnchorRemove:z.useCallback((()=>c(!1)),[]),modal:a},n))},fv=tv,pv=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=ev(nv,t);return z.createElement(rv,{scope:t,forceMount:n},z.createElement($d,{present:n||i.open},z.createElement(Wd,{asChild:!0,container:o},r)))},hv=av,mv=z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=ev("PopoverClose",n);return z.createElement(xd.button,Q({type:"button"},r,{ref:t,onClick:te(e.onClick,(()=>o.onOpenChange(!1)))}))})),vv=z.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Zm(n);return z.createElement(Xm,Q({},o,r,{ref:t}))})),gv="Progress",yv=100,[bv,wv]=G(gv),[Ev,xv]=bv(gv),Sv=z.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:i=Cv,...a}=e,s=Tv(o)?o:yv,l=Rv(r,s)?r:null,u=Pv(l)?i(l,s):void 0;return z.createElement(Ev,{scope:n,value:l,max:s},z.createElement(xd.div,Q({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Pv(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":kv(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))}));Sv.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!Tv(r)?new Error(function(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}(o,n)):null},value(e,t,n){const r=e[t],o=String(r),i=Tv(e.max)?e.max:yv;return null==r||Rv(r,i)?null:new Error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(o,n))}};function Cv(e,t){return`${Math.round(e/t*100)}%`}function kv(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function Pv(e){return"number"==typeof e}function Tv(e){return Pv(e)&&!isNaN(e)&&e>0}function Rv(e,t){return Pv(e)&&!isNaN(e)&&e<=t&&e>=0}const Dv=Sv,_v=z.forwardRef(((e,t)=>{var n;const{__scopeProgress:r,...o}=e,i=xv("ProgressIndicator",r);return z.createElement(xd.div,Q({"data-state":kv(i.value,i.max),"data-value":null!==(n=i.value)&&void 0!==n?n:void 0,"data-max":i.max},o,{ref:t}))}));function Lv(e){const t=z.useRef({value:e,previous:e});return z.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const Av="Checkbox",[Mv,Ov]=G(Av),[Nv,Fv]=Mv(Av),Iv=z.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:u,...c}=e,[d,f]=z.useState(null),p=ee(t,(e=>f(e))),h=z.useRef(!1),m=!d||Boolean(d.closest("form")),[v=!1,g]=se({prop:o,defaultProp:i,onChange:u}),y=z.useRef(v);return z.useEffect((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>g(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,g]),z.createElement(Nv,{scope:n,state:v,disabled:s},z.createElement(xd.button,Q({type:"button",role:"checkbox","aria-checked":zv(v)?"mixed":v,"aria-required":a,"data-state":Bv(v),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:p,onKeyDown:te(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:te(e.onClick,(e=>{g((e=>!!zv(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&z.createElement(Vv,{control:d,bubbles:!h.current,name:r,value:l,checked:v,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),Vv=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=z.useRef(null),a=Lv(n),s=Pm(t);return z.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=zv(n),o.call(e,!zv(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),z.createElement("input",Q({type:"checkbox","aria-hidden":!0,defaultChecked:!zv(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function zv(e){return"indeterminate"===e}function Bv(e){return zv(e)?"indeterminate":e?"checked":"unchecked"}const jv=Iv,Uv=z.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Fv("CheckboxIndicator",n);return z.createElement($d,{present:r||zv(i.state)||!0===i.state},z.createElement(xd.span,Q({"data-state":Bv(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}));function Hv(e,[t,n]){return Math.min(n,Math.max(t,e))}const Wv=z.createContext(void 0);function $v(e){const t=z.useContext(Wv);return e||t||"ltr"}const Kv=["PageUp","PageDown"],Yv=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xv={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},qv="Slider",[Qv,Gv,Zv]=Ip(qv),[Jv,eg]=G(qv,[Zv]),[tg,ng]=Jv(qv),rg=z.forwardRef(((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:d=(()=>{}),onValueCommit:f=(()=>{}),inverted:p=!1,...h}=e,[m,v]=z.useState(null),g=ee(t,(e=>v(e))),y=z.useRef(new Set),b=z.useRef(0),w="horizontal"===a,E=!m||Boolean(m.closest("form")),x=w?ag:sg,[S=[],C]=se({prop:c,defaultProp:u,onChange:e=>{var t;null===(t=[...y.current][b.current])||void 0===t||t.focus(),d(e)}}),k=z.useRef(S);function P(e,t,{commit:n}={commit:!1}){const a=function(e){return(String(e).split(".")[1]||"").length}(i),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/i)*i+r,a),u=Hv(s,[r,o]);C(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,u,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,l*i)){b.current=r.indexOf(u);const t=String(r)!==String(e);return t&&n&&f(r),t?r:e}return e}))}return z.createElement(tg,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:b,thumbs:y.current,values:S,orientation:a},z.createElement(Qv.Provider,{scope:e.__scopeSlider},z.createElement(Qv.Slot,{scope:e.__scopeSlider},z.createElement(x,Q({"aria-disabled":s,"data-disabled":s?"":void 0},h,{ref:g,onPointerDown:te(h.onPointerDown,(()=>{s||(k.current=S)})),min:r,max:o,inverted:p,onSlideStart:s?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(S,e);P(e,t)},onSlideMove:s?void 0:function(e){P(e,b.current)},onSlideEnd:s?void 0:function(){const e=k.current[b.current];S[b.current]!==e&&f(S)},onHomeKeyDown:()=>!s&&P(r,0,{commit:!0}),onEndKeyDown:()=>!s&&P(o,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){const n=Kv.includes(e.key)||e.shiftKey&&Yv.includes(e.key)?10:1,r=b.current;P(S[r]+i*n*t,r,{commit:!0})}}})))),E&&S.map(((e,t)=>z.createElement(mg,{key:t,name:n?n+(S.length>1?"[]":""):void 0,value:e}))))})),[og,ig]=Jv(qv,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ag=z.forwardRef(((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...c}=e,[d,f]=z.useState(null),p=ee(t,(e=>f(e))),h=z.useRef(),m=$v(o),v="ltr"===m,g=v&&!i||!v&&i;function y(e){const t=h.current||d.getBoundingClientRect(),o=gg([0,t.width],g?[n,r]:[r,n]);return h.current=t,o(e-t.left)}return z.createElement(og,{scope:e.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width"},z.createElement(lg,Q({dir:m,"data-orientation":"horizontal"},c,{ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=y(e.clientX);null==a||a(t)},onSlideMove:e=>{const t=y(e.clientX);null==s||s(t)},onSlideEnd:()=>{h.current=void 0,null==l||l()},onStepKeyDown:e=>{const t=Xv[g?"from-left":"from-right"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})))})),sg=z.forwardRef(((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...u}=e,c=z.useRef(null),d=ee(t,c),f=z.useRef(),p=!o;function h(e){const t=f.current||c.current.getBoundingClientRect(),o=gg([0,t.height],p?[r,n]:[n,r]);return f.current=t,o(e-t.top)}return z.createElement(og,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1},z.createElement(lg,Q({"data-orientation":"vertical"},u,{ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=h(e.clientY);null==i||i(t)},onSlideMove:e=>{const t=h(e.clientY);null==a||a(t)},onSlideEnd:()=>{f.current=void 0,null==s||s()},onStepKeyDown:e=>{const t=Xv[p?"from-bottom":"from-top"].includes(e.key);null==l||l({event:e,direction:t?-1:1})}})))})),lg=z.forwardRef(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...u}=e,c=ng(qv,n);return z.createElement(xd.span,Q({},u,{ref:t,onKeyDown:te(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):Kv.concat(Yv).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:te(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus():r(e)})),onPointerMove:te(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:te(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))}))})),ug=z.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=ng("SliderTrack",n);return z.createElement(xd.span,Q({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))})),cg="SliderRange",dg=z.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=ng(cg,n),i=ig(cg,n),a=ee(t,z.useRef(null)),s=o.values.length,l=o.values.map((e=>vg(e,o.min,o.max))),u=s>1?Math.min(...l):0,c=100-Math.max(...l);return z.createElement(xd.span,Q({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:a,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:c+"%"}}))})),fg="SliderThumb",pg=z.forwardRef(((e,t)=>{const n=Gv(e.__scopeSlider),[r,o]=z.useState(null),i=ee(t,(e=>o(e))),a=z.useMemo((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return z.createElement(hg,Q({},e,{ref:i,index:a}))})),hg=z.forwardRef(((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,i=ng(fg,n),a=ig(fg,n),[s,l]=z.useState(null),u=ee(t,(e=>l(e))),c=Pm(s),d=i.values[r],f=void 0===d?0:vg(d,i.min,i.max),p=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,i.values.length),h=null==c?void 0:c[a.size],m=h?function(e,t,n){const r=e/2,o=gg([0,50],[0,r]);return(r-o(t)*n)*n}(h,f,a.direction):0;return z.useEffect((()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}}),[s,i.thumbs]),z.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${f}% + ${m}px)`}},z.createElement(Qv.ItemSlot,{scope:e.__scopeSlider},z.createElement(xd.span,Q({role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":i.min,"aria-valuenow":d,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},o,{ref:u,style:void 0===d?{display:"none"}:e.style,onFocus:te(e.onFocus,(()=>{i.valueIndexToChangeRef.current=r}))}))))})),mg=e=>{const{value:t,...n}=e,r=z.useRef(null),o=Lv(t);return z.useEffect((()=>{const e=r.current,n=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(n,"value").set;if(o!==t&&i){const n=new Event("input",{bubbles:!0});i.call(e,t),e.dispatchEvent(n)}}),[o,t]),z.createElement("input",Q({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function vg(e,t,n){return 100/(n-t)*(e-t)}function gg(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}const yg=rg,bg=ug,wg=dg,Eg=pg;function xg(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Sg(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Cg(...e){return z.useCallback(Sg(...e),e)}function kg(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>z.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return z.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=z.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=z.useMemo((()=>a),Object.values(a));return z.createElement(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=z.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Pg(r,...t)]}function Pg(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return z.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const Tg=z.forwardRef(((e,t)=>{const{children:n,...r}=e,o=z.Children.toArray(n),i=o.find(_g);if(i){const e=i.props.children,n=o.map((t=>t===i?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t));return z.createElement(Rg,Q({},r,{ref:t}),z.isValidElement(e)?z.cloneElement(e,void 0,n):null)}return z.createElement(Rg,Q({},r,{ref:t}),n)}));Tg.displayName="Slot";const Rg=z.forwardRef(((e,t)=>{const{children:n,...r}=e;return z.isValidElement(n)?z.cloneElement(n,{...Lg(r,n.props),ref:t?Sg(t,n.ref):n.ref}):z.Children.count(n)>1?z.Children.only(null):null}));Rg.displayName="SlotClone";const Dg=({children:e})=>z.createElement(z.Fragment,null,e);function _g(e){return z.isValidElement(e)&&e.type===Dg}function Lg(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Ag=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=z.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Tg:t;return z.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),z.createElement(i,Q({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Mg(e){const t=e+"CollectionProvider",[n,r]=kg(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=B.useRef(null),i=B.useRef(new Map).current;return B.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:B.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Cg(t,i(a,n).collectionRef);return B.createElement(Tg,{ref:o},r)})),ItemSlot:B.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=B.useRef(null),u=Cg(t,a),c=i(s,n);return B.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),B.createElement(Tg,{[l]:"",ref:u},r)}))},function(t){const n=i(e+"CollectionConsumer",t),r=B.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const Og=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?z.useLayoutEffect:()=>{},Ng=j["useId".toString()]||(()=>{});let Fg=0;function Ig(e){const[t,n]=z.useState(Ng());return Og((()=>{e||n((e=>null!=e?e:String(Fg++)))}),[e]),e||(t?`radix-${t}`:"")}function Vg(e){const t=z.useRef(e);return z.useEffect((()=>{t.current=e})),z.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function zg({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=z.useState(e),[r]=n,o=z.useRef(r),i=Vg(t);return z.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Vg(n);return[a,z.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const Bg=z.createContext(void 0);function jg(e){const t=z.useContext(Bg);return e||t||"ltr"}const Ug="rovingFocusGroup.onEntryFocus",Hg={bubbles:!1,cancelable:!0},Wg="RovingFocusGroup",[$g,Kg,Yg]=Mg(Wg),[Xg,qg]=kg(Wg,[Yg]),[Qg,Gg]=Xg(Wg),Zg=z.forwardRef(((e,t)=>z.createElement($g.Provider,{scope:e.__scopeRovingFocusGroup},z.createElement($g.Slot,{scope:e.__scopeRovingFocusGroup},z.createElement(Jg,Q({},e,{ref:t})))))),Jg=z.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=z.useRef(null),f=Cg(t,d),p=jg(i),[h=null,m]=zg({prop:a,defaultProp:s,onChange:l}),[v,g]=z.useState(!1),y=Vg(u),b=Kg(n),w=z.useRef(!1),[E,x]=z.useState(0);return z.useEffect((()=>{const e=d.current;if(e)return e.addEventListener(Ug,y),()=>e.removeEventListener(Ug,y)}),[y]),z.createElement(Qg,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:h,onItemFocus:z.useCallback((e=>m(e)),[m]),onItemShiftTab:z.useCallback((()=>g(!0)),[]),onFocusableItemAdd:z.useCallback((()=>x((e=>e+1))),[]),onFocusableItemRemove:z.useCallback((()=>x((e=>e-1))),[])},z.createElement(Ag.div,Q({tabIndex:v||0===E?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:xg(e.onMouseDown,(()=>{w.current=!0})),onFocus:xg(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(Ug,Hg);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));ny([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:xg(e.onBlur,(()=>g(!1)))})))})),ey=z.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=Ig(),l=i||s,u=Gg("RovingFocusGroupItem",n),c=u.currentTabStopId===l,d=Kg(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=u;return z.useEffect((()=>{if(r)return f(),()=>p()}),[r,f,p]),z.createElement($g.ItemSlot,{scope:n,id:l,focusable:r,active:o},z.createElement(Ag.span,Q({tabIndex:c?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:xg(e.onMouseDown,(e=>{r?u.onItemFocus(l):e.preventDefault()})),onFocus:xg(e.onFocus,(()=>u.onItemFocus(l))),onKeyDown:xg(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:ty[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>ny(o)))}var n,r}))})))})),ty={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ny(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const ry=Zg,oy=ey;function iy(e){const[t,n]=z.useState(void 0);return Og((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}function ay(e){const t=z.useRef({value:e,previous:e});return z.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const sy=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=z.useState(),r=z.useRef({}),o=z.useRef(e),i=z.useRef("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return z.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect((()=>{const e=ly(r.current);i.current="mounted"===s?e:"none"}),[s]),Og((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=ly(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),Og((()=>{if(t){const e=e=>{const n=ly(r.current).includes(e.animationName);e.target===t&&n&&md.flushSync((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=ly(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:z.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):z.Children.only(n),i=Cg(r.ref,o.ref);return"function"==typeof n||r.isPresent?z.cloneElement(o,{ref:i}):null};function ly(e){return(null==e?void 0:e.animationName)||"none"}sy.displayName="Presence";const uy="Radio",[cy,dy]=kg(uy),[fy,py]=cy(uy),hy=z.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,...u}=e,[c,d]=z.useState(null),f=Cg(t,(e=>d(e))),p=z.useRef(!1),h=!c||Boolean(c.closest("form"));return z.createElement(fy,{scope:n,checked:o,disabled:a},z.createElement(Ag.button,Q({type:"button",role:"radio","aria-checked":o,"data-state":gy(o),"data-disabled":a?"":void 0,disabled:a,value:s},u,{ref:f,onClick:xg(e.onClick,(e=>{o||null==l||l(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&z.createElement(vy,{control:c,bubbles:!p.current,name:r,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),my=z.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=py("RadioIndicator",n);return z.createElement(sy,{present:r||i.checked},z.createElement(Ag.span,Q({"data-state":gy(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),vy=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=z.useRef(null),a=ay(n),s=iy(t);return z.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),z.createElement("input",Q({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function gy(e){return e?"checked":"unchecked"}const yy=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],by="RadioGroup",[wy,Ey]=kg(by,[qg,dy]),xy=qg(),Sy=dy(),[Cy,ky]=wy(by),Py=z.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,p=xy(n),h=jg(u),[m,v]=zg({prop:i,defaultProp:o,onChange:d});return z.createElement(Cy,{scope:n,name:r,required:a,disabled:s,value:m,onValueChange:v},z.createElement(ry,Q({asChild:!0},p,{orientation:l,dir:h,loop:c}),z.createElement(Ag.div,Q({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:h},f,{ref:t}))))})),Ty=z.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=ky("RadioGroupItem",n),a=i.disabled||r,s=xy(n),l=Sy(n),u=z.useRef(null),c=Cg(t,u),d=i.value===o.value,f=z.useRef(!1);return z.useEffect((()=>{const e=e=>{yy.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),z.createElement(oy,Q({asChild:!0},s,{focusable:!a,active:d}),z.createElement(hy,Q({disabled:a,required:i.required,checked:d},l,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:xg((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:xg(o.onFocus,(()=>{var e;f.current&&(null===(e=u.current)||void 0===e||e.click())}))})))})),Ry=z.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Sy(n);return z.createElement(my,Q({},o,r,{ref:t}))}));function Dy(e,[t,n]){return Math.min(n,Math.max(t,e))}const _y="dismissableLayer.update",Ly="dismissableLayer.pointerDownOutside",Ay="dismissableLayer.focusOutside";let My;const Oy=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ny=z.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=z.useContext(Oy),[d,f]=z.useState(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,h]=z.useState({}),m=Cg(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,x=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Vg(e),r=z.useRef(!1),o=z.useRef((()=>{}));return z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Iy(Ly,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),S=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Vg(e),r=z.useRef(!1);return z.useEffect((()=>{const e=e=>{if(e.target&&!r.current){Iy(Ay,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Vg(e);z.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),z.useEffect((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(My=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Fy(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=My)}}),[d,p,r,c]),z.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Fy())}),[d,c]),z.useEffect((()=>{const e=()=>h({});return document.addEventListener(_y,e),()=>document.removeEventListener(_y,e)}),[]),z.createElement(Ag.div,Q({},u,{ref:m,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:xg(e.onFocusCapture,S.onFocusCapture),onBlurCapture:xg(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:xg(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function Fy(){const e=new CustomEvent(_y);document.dispatchEvent(e)}function Iy(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&md.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}let Vy=0;function zy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const By="focusScope.autoFocusOnMount",jy="focusScope.autoFocusOnUnmount",Uy={bubbles:!1,cancelable:!0},Hy=z.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=z.useState(null),u=Vg(o),c=Vg(i),d=z.useRef(null),f=Cg(t,(e=>l(e))),p=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:Yy(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Yy(d.current,{select:!0}))},n=function(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=s&&s.contains(t)||Yy(s))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),z.useEffect((()=>{if(s){Xy.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(By,Uy);s.addEventListener(By,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Yy(r,{select:t}),document.activeElement!==n)return}((e=Wy(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Yy(s))}return()=>{s.removeEventListener(By,u),setTimeout((()=>{const e=new CustomEvent(jy,Uy);s.addEventListener(jy,c),s.dispatchEvent(e),e.defaultPrevented||Yy(null!=t?t:document.body,{select:!0}),s.removeEventListener(jy,c),Xy.remove(p)}),0)}}var e}),[s,u,c,p]);const h=z.useCallback((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Wy(e),n=$y(t,e),r=$y(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Yy(i,{select:!0})):(e.preventDefault(),n&&Yy(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return z.createElement(Ag.div,Q({tabIndex:-1},a,{ref:f,onKeyDown:h}))}));function Wy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $y(e,t){for(const n of e)if(!Ky(n,{upTo:t}))return n}function Ky(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Yy(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Xy=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=qy(e,t),e.unshift(t)},remove(t){var n;e=qy(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function qy(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Qy(e){return e.split("-")[1]}function Gy(e){return"y"===e?"height":"width"}function Zy(e){return e.split("-")[0]}function Jy(e){return["top","bottom"].includes(Zy(e))?"x":"y"}function eb(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Jy(t),l=Gy(s),u=r[l]/2-o[l]/2,c="x"===s;let d;switch(Zy(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Qy(t)){case"start":d[s]-=u*(n&&c?-1:1);break;case"end":d[s]+=u*(n&&c?-1:1)}return d}function tb(e,t){return"function"==typeof e?e(t):e}function nb(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function rb(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ob(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=tb(t,e),h=nb(p),m=s[f?"floating"===d?"reference":"floating":d],v=rb(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=rb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}const ib=Math.min,ab=Math.max;function sb(e,t,n){return ab(e,ib(t,n))}const lb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:l,padding:u=0}=tb(e,t)||{};if(null==l)return{};const c=nb(u),d={x:n,y:r},f=Jy(o),p=Gy(f),h=await a.getDimensions(l),m="y"===f,v=m?"top":"left",g=m?"bottom":"right",y=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[f]-d[f]-i.floating[p],w=d[f]-i.reference[f],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let x=E?E[y]:0;x&&await(null==a.isElement?void 0:a.isElement(E))||(x=s.floating[y]||i.floating[p]);const S=b/2-w/2,C=x/2-h[p]/2-1,k=ib(c[v],C),P=ib(c[g],C),T=k,R=x-h[p]-P,D=x/2-h[p]/2+S,_=sb(T,D,R),L=null!=Qy(o)&&D!=_&&i.reference[p]/2-(D<T?k:P)-h[p]/2<0?D<T?T-D:R-D:0;return{[f]:d[f]-L,data:{[f]:_,centerOffset:D-_+L}}}}),ub=["top","right","bottom","left"];ub.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const cb={left:"right",right:"left",bottom:"top",top:"bottom"};function db(e){return e.replace(/left|right|bottom|top/g,(e=>cb[e]))}const fb={start:"end",end:"start"};function pb(e){return e.replace(/start|end/g,(e=>fb[e]))}const hb=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...m}=tb(e,t),v=Zy(r),g=Zy(a)===a,y=await(null==s.isRTL?void 0:s.isRTL(l.floating)),b=d||(g||!h?[db(a)]:function(e){const t=db(e);return[pb(e),t,pb(t)]}(a));d||"none"===p||b.push(...function(e,t,n,r){const o=Qy(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Zy(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(pb)))),i}(a,h,p,y));const w=[a,...b],E=await ob(t,m),x=[];let S=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&x.push(E[v]),c){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=Qy(e),o=Jy(e),i=Gy(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=db(a)),{main:a,cross:db(a)}}(r,i,y);x.push(E[e],E[t])}if(S=[...S,{placement:r,overflows:x}],!x.every((e=>e<=0))){var C,k;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(f){case"bestFit":{var P;const e=null==(P=S.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:P[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function mb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vb(e){return ub.some((t=>e[t]>=0))}const gb=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=tb(e,t);switch(r){case"referenceHidden":{const e=mb(await ob(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:vb(e)}}}case"escaped":{const e=mb(await ob(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:vb(e)}}}default:return{}}}}};function yb(e){return"x"===e?"y":"x"}const bb=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=tb(e,t),u={x:n,y:r},c=await ob(t,l),d=Jy(Zy(o)),f=yb(d);let p=u[d],h=u[f];if(i){const e="y"===d?"bottom":"right";p=sb(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";h=sb(h+c["y"===f?"top":"left"],h,h-c[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},wb=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=tb(e,t),l=await ob(t,s),u=Zy(n),c=Qy(n),d="x"===Jy(n),{width:f,height:p}=r.floating;let h,m;"top"===u||"bottom"===u?(h=u,m=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,h="end"===c?"top":"bottom");const v=p-l[h],g=f-l[m],y=!t.middlewareData.shift;let b=v,w=g;if(d){const e=f-l.left-l.right;w=c||y?ib(g,e):e}else{const e=p-l.top-l.bottom;b=c||y?ib(v,e):e}if(y&&!c){const e=ab(l.left,0),t=ab(l.right,0),n=ab(l.top,0),r=ab(l.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:ab(l.left,l.right)):b=p-2*(0!==n||0!==r?n+r:ab(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:b});const E=await o.getDimensions(i.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function Eb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function xb(e){return Eb(e).getComputedStyle(e)}function Sb(e){return e instanceof Eb(e).Node}function Cb(e){return Sb(e)?(e.nodeName||"").toLowerCase():"#document"}function kb(e){return e instanceof HTMLElement||e instanceof Eb(e).HTMLElement}function Pb(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Eb(e).ShadowRoot||e instanceof ShadowRoot)}function Tb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rb(e){return["table","td","th"].includes(Cb(e))}function Db(e){const t=_b(),n=xb(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 _b(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lb(e){return["html","body","#document"].includes(Cb(e))}const Ab=Math.min,Mb=Math.max,Ob=Math.round,Nb=Math.floor,Fb=e=>({x:e,y:e});function Ib(e){const t=xb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kb(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ob(n)!==i||Ob(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Vb(e){return e instanceof Element||e instanceof Eb(e).Element}function zb(e){return Vb(e)?e:e.contextElement}function Bb(e){const t=zb(e);if(!kb(t))return Fb(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ib(t);let a=(i?Ob(n.width):n.width)/r,s=(i?Ob(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const jb=Fb(0);function Ub(e){const t=Eb(e);return _b()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:jb}function Hb(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=zb(e);let a=Fb(1);t&&(r?Vb(r)&&(a=Bb(r)):a=Bb(e));const s=(l=i,void 0===(u=n)&&(u=!1),!(c=r)||u&&c!==Eb(l)||!u?Fb(0):Ub(i));var l,u,c;let d=(o.left+s.x)/a.x,f=(o.top+s.y)/a.y,p=o.width/a.x,h=o.height/a.y;if(i){const e=Eb(i),t=r&&Vb(r)?Eb(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Bb(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,f*=e.y,p*=e.x,h*=e.y,d+=o,f+=i,n=Eb(n).frameElement}}return rb({width:p,height:h,x:d,y:f})}function Wb(e){return Vb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $b(e){var t;return null==(t=(Sb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kb(e){return Hb($b(e)).left+Wb(e).scrollLeft}function Yb(e){if("html"===Cb(e))return e;const t=e.assignedSlot||e.parentNode||Pb(e)&&e.host||$b(e);return Pb(t)?t.host:t}function Xb(e){const t=Yb(e);return Lb(t)?e.ownerDocument?e.ownerDocument.body:e.body:kb(t)&&Tb(t)?t:Xb(t)}function qb(e,t){var n;void 0===t&&(t=[]);const r=Xb(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Eb(r);return o?t.concat(i,i.visualViewport||[],Tb(r)?r:[]):t.concat(r,qb(r))}function Qb(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Eb(e),r=$b(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=_b();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=$b(e),n=Wb(e),r=e.ownerDocument.body,o=Mb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Mb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kb(e);const s=-n.scrollTop;return"rtl"===xb(r).direction&&(a+=Mb(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}($b(e));else if(Vb(t))r=function(e,t){const n=Hb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=kb(e)?Bb(e):Fb(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ub(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return rb(r)}function Gb(e,t){const n=Yb(e);return!(n===t||!Vb(n)||Lb(n))&&("fixed"===xb(n).position||Gb(n,t))}function Zb(e,t,n){const r=kb(t),o=$b(t),i="fixed"===n,a=Hb(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Fb(0);if(r||!r&&!i)if(("body"!==Cb(t)||Tb(o))&&(s=Wb(t)),kb(t)){const e=Hb(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Kb(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Jb(e,t){return kb(e)&&"fixed"!==xb(e).position?t?t(e):e.offsetParent:null}function ew(e,t){const n=Eb(e);if(!kb(e))return n;let r=Jb(e,t);for(;r&&Rb(r)&&"static"===xb(r).position;)r=Jb(r,t);return r&&("html"===Cb(r)||"body"===Cb(r)&&"static"===xb(r).position&&!Db(r))?n:r||function(e){let t=Yb(e);for(;kb(t)&&!Lb(t);){if(Db(t))return t;t=Yb(t)}return null}(e)||n}const tw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=kb(n),i=$b(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Fb(1);const l=Fb(0);if((o||!o&&"fixed"!==r)&&(("body"!==Cb(n)||Tb(i))&&(a=Wb(n)),kb(n))){const e=Hb(n);s=Bb(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:$b,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=qb(e).filter((e=>Vb(e)&&"body"!==Cb(e))),o=null;const i="fixed"===xb(e).position;let a=i?Yb(e):e;for(;Vb(a)&&!Lb(a);){const t=xb(a),n=Db(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Tb(a)&&!n&&Gb(e,a))?r=r.filter((e=>e!==a)):o=t,a=Yb(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Qb(t,n,o);return e.top=Mb(r.top,e.top),e.right=Ab(r.right,e.right),e.bottom=Ab(r.bottom,e.bottom),e.left=Mb(r.left,e.left),e}),Qb(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ew,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ew,i=this.getDimensions;return{reference:Zb(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Ib(e)},getScale:Bb,isElement:Vb,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function nw(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=zb(e),c=o||i?[...u?qb(u):[],...qb(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=$b(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Nb(c)+"px "+-Nb(o.clientWidth-(u+d))+"px "+-Nb(o.clientHeight-(c+f))+"px "+-Nb(u)+"px",threshold:Mb(0,Ab(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(v){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let m=l?Hb(e):null;return l&&function t(){const r=Hb(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const rw=(e,t,n)=>{const r=new Map,o={platform:tw,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=eb(u,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:i}=s[m],{x:v,y:g,data:y,reset:b}=await i({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[n]:{...p[n],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=eb(u,f,l))),m=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},ow=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?lb({element:n.current,padding:r}).fn(t):{}:n?lb({element:n,padding:r}).fn(t):{};var o}});var iw="undefined"!=typeof document?z.useLayoutEffect:z.useEffect;function aw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!aw(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!aw(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function sw(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lw(e,t){const n=sw(e);return Math.round(t*n)/n}function uw(e){const t=z.useRef(e);return iw((()=>{t.current=e})),t}const cw=z.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return z.createElement(Ag.svg,Q({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:z.createElement("polygon",{points:"0,0 30,0 15,10"}))})),dw="Popper",[fw,pw]=kg(dw),[hw,mw]=fw(dw),vw=z.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=mw("PopperAnchor",n),a=z.useRef(null),s=Cg(t,a);return z.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:z.createElement(Ag.div,Q({},o,{ref:s}))})),gw="PopperContent",[yw,bw]=fw(gw),ww=z.forwardRef(((e,t)=>{var n,r,o,i,a,s,l,u;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:E,...x}=e,S=mw(gw,c),[C,k]=z.useState(null),P=Cg(t,(e=>k(e))),[T,R]=z.useState(null),D=iy(T),_=null!==(n=null==D?void 0:D.width)&&void 0!==n?n:0,L=null!==(r=null==D?void 0:D.height)&&void 0!==r?r:0,A=d+("center"!==p?"-"+p:""),M="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},O=Array.isArray(v)?v:[v],N=O.length>0,F={padding:M,boundary:O.filter(xw),altBoundary:N},{refs:I,floatingStyles:V,placement:B,isPositioned:j,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=z.useState(r);aw(f,r)||p(r);const[h,m]=z.useState(null),[v,g]=z.useState(null),y=z.useCallback((e=>{e!=x.current&&(x.current=e,m(e))}),[m]),b=z.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[g]),w=i||h,E=a||v,x=z.useRef(null),S=z.useRef(null),C=z.useRef(c),k=uw(l),P=uw(o),T=z.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};P.current&&(e.platform=P.current),rw(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};R.current&&!aw(C.current,t)&&(C.current=t,md.flushSync((()=>{d(t)})))}))}),[f,t,n,P]);iw((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const R=z.useRef(!1);iw((()=>(R.current=!0,()=>{R.current=!1})),[]),iw((()=>{if(w&&(x.current=w),E&&(S.current=E),w&&E){if(k.current)return k.current(w,E,T);T()}}),[w,E,T,k]);const D=z.useMemo((()=>({reference:x,floating:S,setReference:y,setFloating:b})),[y,b]),_=z.useMemo((()=>({reference:w,floating:E})),[w,E]),L=z.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=lw(_.floating,c.x),r=lw(_.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...sw(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,_.floating,c.x,c.y]);return z.useMemo((()=>({...c,update:T,refs:D,elements:_,floatingStyles:L})),[c,T,D,_,L])}({strategy:"fixed",placement:A,whileElementsMounted:nw,elements:{reference:S.anchor},middleware:[(W={mainAxis:f+L,alignmentAxis:h},void 0===W&&(W=0),{name:"offset",options:W,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Zy(n),s=Qy(n),l="x"===Jy(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=tb(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(e,W);return{x:t+r.x,y:n+r.y,data:r}}}),w&&bb({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?(void 0===H&&(H={}),{options:H,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=tb(H,e),u={x:t,y:n},c=Jy(r),d=yb(c);let f=u[c],p=u[d];const h=tb(a,e),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===c?"height":"width",t=o.reference[c]-o.floating[e]+m.mainAxis,n=o.reference[c]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var v,g;const e="y"===c?"width":"height",t=["top","left"].includes(Zy(r)),n=o.reference[d]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:(null==(g=i.offset)?void 0:g[d])||0)-(t?m.crossAxis:0);p<n?p=n:p>a&&(p=a)}return{[c]:f,[d]:p}}}):void 0,...F}),w&&hb({...F}),wb({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),T&&ow({element:T,padding:m}),Sw({arrowWidth:_,arrowHeight:L}),b&&gb({strategy:"referenceHidden"})]});var H,W;const[$,K]=Cw(B),Y=Vg(E);Og((()=>{j&&(null==Y||Y())}),[j,Y]);const X=null===(o=U.arrow)||void 0===o?void 0:o.x,q=null===(i=U.arrow)||void 0===i?void 0:i.y,G=0!==(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset),[Z,J]=z.useState();return Og((()=>{C&&J(window.getComputedStyle(C).zIndex)}),[C]),z.createElement("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:j?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(l=U.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},z.createElement(yw,{scope:c,placedSide:$,onArrowChange:R,arrowX:X,arrowY:q,shouldHideArrow:G},z.createElement(Ag.div,Q({"data-side":$,"data-align":K},x,{ref:P,style:{...x.style,animation:j?void 0:"none",opacity:null!==(u=U.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))})),Ew={top:"bottom",right:"left",bottom:"top",left:"right"};function xw(e){return null!==e}const Sw=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Cw(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?m:`${v}px`,b=-f+"px"):"top"===p?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?m:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function Cw(e){const[t,n="center"]=e.split("-");return[t,n]}const kw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=z.useState(null);return z.createElement(hw,{scope:t,anchor:r,onAnchorChange:o},n)},Pw=vw,Tw=ww,Rw=z.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=bw("PopperArrow",n),i=Ew[o.placedSide];return z.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},z.createElement(cw,Q({},r,{ref:t,style:{...r.style,display:"block"}})))})),Dw=z.forwardRef(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?vd.createPortal(z.createElement(Ag.div,Q({},o,{ref:t})),r):null})),_w=z.forwardRef(((e,t)=>z.createElement(Ag.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Lw=_w,Aw=[" ","Enter","ArrowUp","ArrowDown"],Mw=[" ","Enter"],Ow="Select",[Nw,Fw,Iw]=Mg(Ow),[Vw,zw]=kg(Ow,[Iw,pw]),Bw=pw(),[jw,Uw]=Vw(Ow),[Hw,Ww]=Vw(Ow),$w=z.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Bw(n),a=Uw("SelectTrigger",n),s=a.disabled||r,l=Cg(t,a.onTriggerChange),u=Fw(n),[c,d,f]=bE((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=wE(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{s||(a.onOpenChange(!0),f())};return z.createElement(Pw,Q({asChild:!0},i),z.createElement(Ag.button,Q({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":void 0===a.value?"":void 0},o,{ref:l,onClick:xg(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:xg(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:xg(o.onKeyDown,(e=>{const t=""!==c.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||d(e.key),t&&" "===e.key||Aw.includes(e.key)&&(p(),e.preventDefault())}))})))})),Kw=z.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a,...s}=e,l=Uw("SelectValue",n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==i,d=Cg(t,l.onValueNodeChange);return Og((()=>{u(c)}),[u,c]),z.createElement(Ag.span,Q({},s,{ref:d,style:{pointerEvents:"none"}}),void 0===l.value&&void 0!==a?a:i)})),Yw=z.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return z.createElement(Ag.span,Q({"aria-hidden":!0},o,{ref:t}),r||"▼")})),Xw="SelectContent",qw=z.forwardRef(((e,t)=>{const n=Uw(Xw,e.__scopeSelect),[r,o]=z.useState();if(Og((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?md.createPortal(z.createElement(Gw,{scope:e.__scopeSelect},z.createElement(Nw.Slot,{scope:e.__scopeSelect},z.createElement("div",null,e.children))),t):null}return z.createElement(Jw,Q({},e,{ref:t}))})),Qw=10,[Gw,Zw]=Vw(Xw),Jw=z.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v,...g}=e,y=Uw(Xw,n),[b,w]=z.useState(null),[E,x]=z.useState(null),S=Cg(t,(e=>w(e))),[C,k]=z.useState(null),[P,T]=z.useState(null),R=Fw(n),[D,_]=z.useState(!1),L=z.useRef(!1);z.useEffect((()=>{if(b)return zf(b)}),[b]),z.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:zy()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:zy()),Vy++,()=>{1===Vy&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Vy--}}),[]);const A=z.useCallback((e=>{const[t,...n]=R().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(null==i||i.scrollIntoView({block:"nearest"}),i===t&&E&&(E.scrollTop=0),i===r&&E&&(E.scrollTop=E.scrollHeight),null==i||i.focus(),document.activeElement!==o)return}}),[R,E]),M=z.useCallback((()=>A([C,b])),[A,C,b]);z.useEffect((()=>{D&&M()}),[D,M]);const{onOpenChange:O,triggerPointerDownPosRef:N}=y;z.useEffect((()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=N.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=N.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||O(!1),document.removeEventListener("pointermove",t),N.current=null};return null!==N.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[b,O,N]),z.useEffect((()=>{const e=()=>O(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[O]);const[F,I]=bE((e=>{const t=R().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=wE(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),V=z.useCallback(((e,t,n)=>{const r=!L.current&&!n;(void 0!==y.value&&y.value===t||r)&&(k(e),r&&(L.current=!0))}),[y.value]),B=z.useCallback((()=>null==b?void 0:b.focus()),[b]),j=z.useCallback(((e,t,n)=>{const r=!L.current&&!n;(void 0!==y.value&&y.value===t||r)&&T(e)}),[y.value]),U="popper"===r?tE:eE,H=U===tE?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v}:{};return z.createElement(Gw,{scope:n,content:b,viewport:E,onViewportChange:x,itemRefCallback:V,selectedItem:C,onItemLeave:B,itemTextRefCallback:j,focusSelectedItem:M,selectedItemText:P,position:r,isPositioned:D,searchRef:F},z.createElement(Af,{as:Tg,allowPinchZoom:!0},z.createElement(Hy,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:xg(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},z.createElement(Ny,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},z.createElement(U,Q({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},g,H,{onPlaced:()=>_(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:xg(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||I(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=R().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>A(t))),e.preventDefault()}}))}))))))})),eE=z.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Uw(Xw,n),a=Zw(Xw,n),[s,l]=z.useState(null),[u,c]=z.useState(null),d=Cg(t,(e=>c(e))),f=Fw(n),p=z.useRef(!1),h=z.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:g,focusSelectedItem:y}=a,b=z.useCallback((()=>{if(i.trigger&&i.valueNode&&s&&u&&m&&v&&g){const e=i.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-Qw,d=Dy(i,[Qw,c-u]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-Qw,d=Dy(i,[Qw,c-u]);s.style.minWidth=l+"px",s.style.right=d+"px"}const a=f(),l=window.innerHeight-2*Qw,c=m.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+y+c+parseInt(d.paddingBottom,10)+b,E=Math.min(5*v.offsetHeight,w),x=window.getComputedStyle(m),S=parseInt(x.paddingTop,10),C=parseInt(x.paddingBottom,10),k=e.top+e.height/2-Qw,P=l-k,T=v.offsetHeight/2,R=h+y+(v.offsetTop+T),D=w-R;if(R<=k){const e=v===a[a.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-m.offsetTop-m.offsetHeight,n=R+Math.max(P,T+(e?C:0)+t+b);s.style.height=n+"px"}else{const e=v===a[0].ref.current;s.style.top="0px";const t=Math.max(k,h+m.offsetTop+(e?S:0)+T)+D;s.style.height=t+"px",m.scrollTop=R-k+m.offsetTop}s.style.margin=`${Qw}px 0`,s.style.minHeight=E+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,s,u,m,v,g,i.dir,r]);Og((()=>b()),[b]);const[w,E]=z.useState();Og((()=>{u&&E(window.getComputedStyle(u).zIndex)}),[u]);const x=z.useCallback((e=>{e&&!0===h.current&&(b(),null==y||y(),h.current=!1)}),[b,y]);return z.createElement(nE,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:x},z.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},z.createElement(Ag.div,Q({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),tE=z.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Qw,...i}=e,a=Bw(n);return z.createElement(Tw,Q({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[nE,rE]=Vw(Xw,{}),oE="SelectViewport",iE=z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Zw(oE,n),i=rE(oE,n),a=Cg(t,o.onViewportChange),s=z.useRef(0);return z.createElement(z.Fragment,null,z.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),z.createElement(Nw.Slot,{scope:n},z.createElement(Ag.div,Q({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:xg(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Qw,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))}));Vw("SelectGroup");const aE="SelectItem",[sE,lE]=Vw(aE),uE=z.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Uw(aE,n),l=Zw(aE,n),u=s.value===r,[c,d]=z.useState(null!=i?i:""),[f,p]=z.useState(!1),h=Cg(t,(e=>{var t;return null===(t=l.itemRefCallback)||void 0===t?void 0:t.call(l,e,r,o)})),m=Ig(),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};return z.createElement(sE,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:z.useCallback((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},z.createElement(Nw.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},z.createElement(Ag.div,Q({role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:h,onFocus:xg(a.onFocus,(()=>p(!0))),onBlur:xg(a.onBlur,(()=>p(!1))),onPointerUp:xg(a.onPointerUp,v),onPointerMove:xg(a.onPointerMove,(e=>{var t;o?null===(t=l.onItemLeave)||void 0===t||t.call(l):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:xg(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=l.onItemLeave)||void 0===t||t.call(l))})),onKeyDown:xg(a.onKeyDown,(e=>{var t;""!==(null===(t=l.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Mw.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),cE="SelectItemText",dE=z.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Uw(cE,n),s=Zw(cE,n),l=lE(cE,n),u=Ww(cE,n),[c,d]=z.useState(null),f=Cg(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,l.value,l.disabled)})),p=null==c?void 0:c.textContent,h=z.useMemo((()=>z.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},p)),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=u;return Og((()=>(m(h),()=>v(h))),[m,v,h]),z.createElement(z.Fragment,null,z.createElement(Ag.span,Q({id:l.textId},i,{ref:f})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?md.createPortal(i.children,a.valueNode):null)})),fE=z.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return lE("SelectItemIndicator",n).isSelected?z.createElement(Ag.span,Q({"aria-hidden":!0},r,{ref:t})):null})),pE="SelectScrollUpButton",hE=z.forwardRef(((e,t)=>{const n=Zw(pE,e.__scopeSelect),r=rE(pE,e.__scopeSelect),[o,i]=z.useState(!1),a=Cg(t,r.onScrollButtonChange);return Og((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?z.createElement(gE,Q({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),mE="SelectScrollDownButton",vE=z.forwardRef(((e,t)=>{const n=Zw(mE,e.__scopeSelect),r=rE(mE,e.__scopeSelect),[o,i]=z.useState(!1),a=Cg(t,r.onScrollButtonChange);return Og((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?z.createElement(gE,Q({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),gE=z.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Zw("SelectScrollButton",n),a=z.useRef(null),s=Fw(n),l=z.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return z.useEffect((()=>()=>l()),[l]),Og((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),z.createElement(Ag.div,Q({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:xg(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:xg(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:xg(o.onPointerLeave,(()=>{l()}))}))})),yE=z.forwardRef(((e,t)=>{const{value:n,...r}=e,o=z.useRef(null),i=Cg(t,o),a=ay(n);return z.useEffect((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),z.createElement(_w,{asChild:!0},z.createElement("select",Q({},r,{ref:i,defaultValue:n})))}));function bE(e){const t=Vg(e),n=z.useRef(""),r=z.useRef(0),o=z.useCallback((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=z.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return z.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function wE(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(o,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===r.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}yE.displayName="BubbleSelect";const EE=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:p}=e,h=Bw(t),[m,v]=z.useState(null),[g,y]=z.useState(null),[b,w]=z.useState(!1),E=jg(u),[x=!1,S]=zg({prop:r,defaultProp:o,onChange:i}),[C,k]=zg({prop:a,defaultProp:s,onChange:l}),P=z.useRef(null),T=!m||Boolean(m.closest("form")),[R,D]=z.useState(new Set),_=Array.from(R).map((e=>e.props.value)).join(";");return z.createElement(kw,h,z.createElement(jw,{required:p,scope:t,trigger:m,onTriggerChange:v,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:Ig(),value:C,onValueChange:k,open:x,onOpenChange:S,dir:E,triggerPointerDownPosRef:P,disabled:f},z.createElement(Nw.Provider,{scope:t},z.createElement(Hw,{scope:e.__scopeSelect,onNativeOptionAdd:z.useCallback((e=>{D((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:z.useCallback((e=>{D((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),T?z.createElement(yE,{key:_,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:C,onChange:e=>k(e.target.value),disabled:f},void 0===C?z.createElement("option",{value:""}):null,Array.from(R)):null))},xE=$w,SE=Kw,CE=Yw,kE=e=>z.createElement(Dw,Q({asChild:!0},e)),PE=qw,TE=iE,RE=uE,DE=dE,_E=fE,LE=hE,AE=vE,ME=z.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),OE=z.createContext({}),NE=z.createContext(null),FE="undefined"!=typeof document,IE=FE?z.useLayoutEffect:z.useEffect,VE=z.createContext({strict:!1});function zE(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function BE(e){return"string"==typeof e||Array.isArray(e)}function jE(e){return"object"==typeof e&&"function"==typeof e.start}const UE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HE=["initial",...UE];function WE(e){return jE(e.animate)||HE.some((t=>BE(e[t])))}function $E(e){return Boolean(WE(e)||e.variants)}function KE(e){const{initial:t,animate:n}=function(e,t){if(WE(e)){const{initial:t,animate:n}=e;return{initial:!1===t||BE(t)?t:void 0,animate:BE(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,z.useContext(OE));return z.useMemo((()=>({initial:t,animate:n})),[YE(t),YE(n)])}function YE(e){return Array.isArray(e)?e.join(" "):e}const XE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},qE={};for(const __ in XE)qE[__]={isEnabled:e=>XE[__].some((t=>!!e[t]))};function QE(e){const t=z.useRef(null);return null===t.current&&(t.current=e()),t.current}const GE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ZE=1;const JE=z.createContext({}),ex=z.createContext({}),tx=Symbol.for("motionComponentSymbol");function nx({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)qE[t]={...qE[t],...e[t]}}(e);const i=z.forwardRef((function(i,a){let s;const l={...z.useContext(ME),...i,layoutId:rx(i)},{isStatic:u}=l,c=KE(i),d=u?void 0:QE((()=>{if(GE.hasEverUpdated)return ZE++})),f=r(i,u);if(!u&&FE){c.visualElement=function(e,t,n,r){const{visualElement:o}=z.useContext(OE),i=z.useContext(VE),a=z.useContext(NE),s=z.useContext(ME).reducedMotion,l=z.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const u=l.current;return z.useInsertionEffect((()=>{u&&u.update(n,a)})),IE((()=>{u&&u.render()})),z.useEffect((()=>{u&&u.updateFeatures()})),(window.HandoffAppearAnimations?IE:z.useEffect)((()=>{u&&u.animationState&&u.animationState.animateChanges()})),u}(o,f,l,t);const n=z.useContext(ex),r=z.useContext(VE).strict;c.visualElement&&(s=c.visualElement.loadFeatures(l,r,e,d,n))}return z.createElement(OE.Provider,{value:c},s&&c.visualElement?z.createElement(s,{visualElement:c.visualElement,...l}):null,n(o,i,d,function(e,t,n){return z.useCallback((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):zE(n)&&(n.current=r))}),[t])}(f,c.visualElement,a),f,u,c.visualElement))}));return i[tx]=o,i}function rx({layoutId:e}){const t=z.useContext(JE).id;return t&&void 0!==e?t+"-"+e:e}function ox(e){function t(t,n={}){return nx(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const ix=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ax(e){return"string"==typeof e&&!e.includes("-")&&!!(ix.indexOf(e)>-1||/[A-Z]/.test(e))}const sx={};const lx=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ux=new Set(lx);function cx(e,{layout:t,layoutId:n}){return ux.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!sx[e]||"opacity"===e)}const dx=e=>Boolean(e&&e.getVelocity),fx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},px=lx.length;const hx=e=>t=>"string"==typeof t&&t.startsWith(e),mx=hx("--"),vx=hx("var(--"),gx=(e,t)=>t&&"number"==typeof e?t.transform(e):e,yx=(e,t,n)=>Math.min(Math.max(n,e),t),bx={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wx={...bx,transform:e=>yx(0,1,e)},Ex={...bx,default:1},xx=e=>Math.round(1e5*e)/1e5,Sx=/(-)?([\d]*\.?[\d])+/g,Cx=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kx=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Px(e){return"string"==typeof e}const Tx=e=>({test:t=>Px(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Rx=Tx("deg"),Dx=Tx("%"),_x=Tx("px"),Lx=Tx("vh"),Ax=Tx("vw"),Mx={...Dx,parse:e=>Dx.parse(e)/100,transform:e=>Dx.transform(100*e)},Ox={...bx,transform:Math.round},Nx={borderWidth:_x,borderTopWidth:_x,borderRightWidth:_x,borderBottomWidth:_x,borderLeftWidth:_x,borderRadius:_x,radius:_x,borderTopLeftRadius:_x,borderTopRightRadius:_x,borderBottomRightRadius:_x,borderBottomLeftRadius:_x,width:_x,maxWidth:_x,height:_x,maxHeight:_x,size:_x,top:_x,right:_x,bottom:_x,left:_x,padding:_x,paddingTop:_x,paddingRight:_x,paddingBottom:_x,paddingLeft:_x,margin:_x,marginTop:_x,marginRight:_x,marginBottom:_x,marginLeft:_x,rotate:Rx,rotateX:Rx,rotateY:Rx,rotateZ:Rx,scale:Ex,scaleX:Ex,scaleY:Ex,scaleZ:Ex,skew:Rx,skewX:Rx,skewY:Rx,distance:_x,translateX:_x,translateY:_x,translateZ:_x,x:_x,y:_x,z:_x,perspective:_x,transformPerspective:_x,opacity:wx,originX:Mx,originY:Mx,originZ:_x,zIndex:Ox,fillOpacity:wx,strokeOpacity:wx,numOctaves:Ox};function Fx(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const e=t[d];if(mx(d)){i[d]=e;continue}const n=Nx[d],r=gx(e,n);if(ux.has(d)){if(l=!0,a[d]=r,!c)continue;e!==(n.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=r):o[d]=r}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<px;a++){const t=lx[a];void 0!==e[t]&&(i+=`${fx[t]||t}(${e[t]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const Ix=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vx(e,t,n){for(const r in t)dx(t[r])||cx(r,n)||(e[r]=t[r])}function zx(e,t,n){const r={};return Vx(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return z.useMemo((()=>{const r=Ix();return Fx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function Bx(e,t,n){const r={},o=zx(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const jx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Ux(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||jx.has(e)}let Hx=e=>!Ux(e);try{(Wx=require("@emotion/is-prop-valid").default)&&(Hx=e=>e.startsWith("on")?!Ux(e):Wx(e))}catch(D_){}var Wx;function $x(e,t,n){return"string"==typeof e?e:_x.transform(t+n*e)}const Kx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yx={offset:"strokeDashoffset",array:"strokeDasharray"};function Xx(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},u,c,d){if(Fx(e,l,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${$x(t,e.x,e.width)} ${$x(n,e.y,e.height)}`}(h,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Kx:Yx;e[i.offset]=_x.transform(-r);const a=_x.transform(t),s=_x.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const qx=()=>({...Ix(),attrs:{}}),Qx=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Gx(e,t,n,r){const o=z.useMemo((()=>{const n=qx();return Xx(n,t,{enableHardwareAcceleration:!1},Qx(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Vx(t,e.style,e),o.style={...t,...o.style}}return o}function Zx(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(ax(t)?Gx:Bx)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Hx(o)||!0===n&&Ux(o)||!t&&!Ux(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u={...l,...s,ref:o},{children:c}=n,d=z.useMemo((()=>dx(c)?c.get():c),[c]);return r&&(u["data-projection-id"]=r),z.createElement(t,{...u,children:d})}}const Jx=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function eS(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const tS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nS(e,t,n,r){eS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(tS.has(o)?o:Jx(o),t.attrs[o])}function rS(e,t){const{style:n}=e,r={};for(const o in n)(dx(n[o])||t.style&&dx(t.style[o])||cx(o,e))&&(r[o]=n[o]);return r}function oS(e,t){const n=rS(e,t);for(const r in e)if(dx(e[r])||dx(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function iS(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const aS=e=>Array.isArray(e),sS=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),lS=e=>aS(e)?e[e.length-1]||0:e;function uS(e){const t=dx(e)?e.get():e;return sS(t)?t.toValue():t}const cS=e=>(t,n)=>{const r=z.useContext(OE),o=z.useContext(NE),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:dS(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():QE(i)};function dS(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=uS(i[f]);let{initial:a,animate:s}=e;const l=WE(e),u=$E(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!jE(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=iS(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const fS={useVisualState:cS({scrapeMotionValuesFromProps:oS,createRenderState:qx,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){n.dimensions={x:0,y:0,width:0,height:0}}Xx(n,r,{enableHardwareAcceleration:!1},Qx(t.tagName),e.transformTemplate),nS(t,n)}})},pS={useVisualState:cS({scrapeMotionValuesFromProps:rS,createRenderState:Ix})};function hS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const mS=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function vS(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const gS=e=>t=>mS(t)&&e(t,vS(t));function yS(e,t,n,r){return hS(e,t,gS(n),r)}const bS=(e,t)=>n=>t(e(n)),wS=(...e)=>e.reduce(bS);function ES(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const xS=ES("dragHorizontal"),SS=ES("dragVertical");function CS(e){let t=!1;if("y"===e)t=SS();else if("x"===e)t=xS();else{const e=xS(),n=SS();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function kS(){const e=CS(!0);return!e||(e(),!1)}class PS{constructor(e){this.isMounted=!1,this.node=e}update(){}}const TS={delta:0,timestamp:0,isProcessing:!1};let RS=!0,DS=!1;const _S=["read","update","preRender","render","postRender"],LS=_S.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,u=l?t:n;return i&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>DS=!0)),e)),{}),AS=_S.reduce(((e,t)=>{const n=LS[t];return e[t]=(e,t=!1,r=!1)=>(DS||IS(),n.schedule(e,t,r)),e}),{}),MS=_S.reduce(((e,t)=>(e[t]=LS[t].cancel,e)),{}),OS=_S.reduce(((e,t)=>(e[t]=()=>LS[t].process(TS),e)),{}),NS=e=>LS[e].process(TS),FS=e=>{DS=!1,TS.delta=RS?1e3/60:Math.max(Math.min(e-TS.timestamp,40),1),TS.timestamp=e,TS.isProcessing=!0,_S.forEach(NS),TS.isProcessing=!1,DS&&(RS=!1,requestAnimationFrame(FS))},IS=()=>{DS=!0,RS=!0,TS.isProcessing||requestAnimationFrame(FS)};function VS(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return yS(e.current,n,((n,o)=>{if("touch"===n.type||kS())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&AS.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const zS=(e,t)=>!!t&&(e===t||zS(e,t.parentElement)),BS=e=>e;function jS(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,vS(n))}const US=new WeakMap,HS=new WeakMap,WS=e=>{const t=US.get(e.target);t&&t(e)},$S=e=>{e.forEach(WS)};function KS(e,t,n){const r=function({root:e,...t}){const n=e||document;HS.has(n)||HS.set(n,{});const r=HS.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver($S,{root:e,...t})),r[o]}(t);return US.set(e,n),r.observe(e),()=>{US.delete(e),r.unobserve(e)}}const YS={some:0,all:1};const XS={inView:{Feature:class extends PS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:YS[r]};return KS(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends PS{constructor(){super(...arguments),this.removeStartListeners=BS,this.removeEndListeners=BS,this.removeAccessibleListeners=BS,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=yS(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();AS.update((()=>{zS(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=yS(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=wS(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=hS(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=hS(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&jS("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&AS.update((()=>n(e,t)))}))})),jS("down",((e,t)=>{this.startPress(e,t)}))})),t=hS(this.node.current,"blur",(()=>{this.isPressing&&jS("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=wS(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&AS.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!kS()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&AS.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=yS(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=hS(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=wS(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends PS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wS(hS(this.node.current,"focus",(()=>this.onFocus())),hS(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends PS{mount(){this.unmount=wS(VS(this.node,!0),VS(this.node,!1))}unmount(){}}}};function qS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function QS(e,t,n){const r=e.getProps();return iS(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const GS="data-"+Jx("framerAppearId");let ZS=BS,JS=BS;const eC=e=>1e3*e,tC=e=>e/1e3,nC=!1,rC=e=>Array.isArray(e)&&"number"==typeof e[0];function oC(e){return Boolean(!e||"string"==typeof e&&aC[e]||rC(e)||Array.isArray(e)&&e.every(oC))}const iC=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,aC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iC([0,.65,.55,1]),circOut:iC([.55,0,1,.45]),backIn:iC([.31,.01,.66,-.59]),backOut:iC([.33,1.53,.69,.99])};function sC(e){if(e)return rC(e)?iC(e):Array.isArray(e)?e.map(sC):aC[e]}const lC={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},uC={},cC={};for(const __ in lC)cC[__]=()=>(void 0===uC[__]&&(uC[__]=lC[__]()),uC[__]);const dC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fC=1e-7,pC=12;function hC(e,t,n,r){if(e===t&&n===r)return BS;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=dC(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>fC&&++s<pC);return a}(t,0,1,e,n);return e=>0===e||1===e?e:dC(o(e),t,r)}const mC=hC(.42,0,1,1),vC=hC(0,0,.58,1),gC=hC(.42,0,.58,1),yC=e=>Array.isArray(e)&&"number"!=typeof e[0],bC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wC=e=>t=>1-e(1-t),EC=e=>1-Math.sin(Math.acos(e)),xC=wC(EC),SC=bC(xC),CC=hC(.33,1.53,.69,.99),kC=wC(CC),PC=bC(kC),TC={linear:BS,easeIn:mC,easeInOut:gC,easeOut:vC,circIn:EC,circInOut:SC,circOut:xC,backIn:kC,backInOut:PC,backOut:CC,anticipate:e=>(e*=2)<1?.5*kC(e):.5*(2-Math.pow(2,-10*(e-1)))},RC=e=>{if(Array.isArray(e)){JS(4===e.length);const[t,n,r,o]=e;return hC(t,n,r,o)}return"string"==typeof e?TC[e]:e},DC=(e,t)=>n=>Boolean(Px(n)&&kx.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),_C=(e,t,n)=>r=>{if(!Px(r))return r;const[o,i,a,s]=r.match(Sx);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},LC={...bx,transform:e=>Math.round((e=>yx(0,255,e))(e))},AC={test:DC("rgb","red"),parse:_C("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+LC.transform(e)+", "+LC.transform(t)+", "+LC.transform(n)+", "+xx(wx.transform(r))+")"};const MC={test:DC("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:AC.transform},OC={test:DC("hsl","hue"),parse:_C("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Dx.transform(xx(t))+", "+Dx.transform(xx(n))+", "+xx(wx.transform(r))+")"},NC={test:e=>AC.test(e)||MC.test(e)||OC.test(e),parse:e=>AC.test(e)?AC.parse(e):OC.test(e)?OC.parse(e):MC.parse(e),transform:e=>Px(e)?e:e.hasOwnProperty("red")?AC.transform(e):OC.transform(e)},FC=(e,t,n)=>-n*e+n*t+e;function IC(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const VC=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},zC=[MC,AC,OC];function BC(e){const t=(n=e,zC.find((e=>e.test(n))));var n;let r=t.parse(e);return t===OC&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=IC(s,r,e+1/3),i=IC(s,r,e),a=IC(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const jC=(e,t)=>{const n=BC(e),r=BC(t),o={...n};return e=>(o.red=VC(n.red,r.red,e),o.green=VC(n.green,r.green,e),o.blue=VC(n.blue,r.blue,e),o.alpha=FC(n.alpha,r.alpha,e),AC.transform(o))},UC="${c}",HC="${n}";function WC(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(Cx);o&&(n=o.length,e=e.replace(Cx,UC),t.push(...o.map(NC.parse)));const i=e.match(Sx);return i&&(r=i.length,e=e.replace(Sx,HC),t.push(...i.map(bx.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function $C(e){return WC(e).values}function KC(e){const{values:t,numColors:n,tokenised:r}=WC(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?UC:HC,r<n?NC.transform(e[r]):xx(e[r]));return t}}const YC=e=>"number"==typeof e?0:e;const XC={test:function(e){var t,n;return isNaN(e)&&Px(e)&&((null===(t=e.match(Sx))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Cx))||void 0===n?void 0:n.length)||0)>0},parse:$C,createTransformer:KC,getAnimatableNone:function(e){const t=$C(e);return KC(e)(t.map(YC))}};function qC(e,t){return"number"==typeof e?n=>FC(e,t,n):NC.test(e)?jC(e,t):ZC(e,t)}const QC=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>qC(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},GC=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=qC(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ZC=(e,t)=>{const n=XC.createTransformer(t),r=WC(e),o=WC(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?wS(QC(r.values,o.values),n):n=>`${n>0?t:e}`},JC=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ek=(e,t)=>n=>FC(e,t,n);function tk(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?ek:"string"==typeof i?NC.test(i)?jC:ZC:Array.isArray(i)?QC:"object"==typeof i?GC:ek);var i;const a=e.length-1;for(let s=0;s<a;s++){let n=o(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]||BS:t;n=wS(e,n)}r.push(n)}return r}function nk(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(JS(i===t.length),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=tk(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=JC(e[n],e[n+1],t);return a[n](r)};return n?t=>l(yx(e[0],e[i-1],t)):l}function rk(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=JC(0,t,r);e.push(FC(n,1,o))}}(t,e.length-1),t}function ok({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=yC(r)?r.map(RC):RC(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:rk(t),e),s=nk(a,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map((()=>u||gC)).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function ik(e,t){return t?e*(1e3/t):0}const ak=5;function sk(e,t,n){const r=Math.max(t-ak,0);return ik(n-e(r),t-r)}const lk=.001,uk=.01,ck=10,dk=.05,fk=1;function pk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ZS(e<=eC(ck));let a=1-t;a=yx(dk,fk,a),e=yx(uk,ck,tC(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=mk(t,a),l=Math.exp(-o);return lk-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=mk(Math.pow(t,2),a);return(-o(t)+lk>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-lk,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let o=1;o<hk;o++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=eC(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const hk=12;function mk(e,t){return e*Math.sqrt(1-t*t)}const vk=["duration","bounce"],gk=["stiffness","damping","mass"];function yk(e,t){return t.some((t=>void 0!==e[t]))}function bk({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!yk(e,gk)&&yk(e,vk)){const n=pk(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=c?-tC(c):0,h=l/(2*Math.sqrt(s*u)),m=i-o,v=tC(Math.sqrt(s/u)),g=Math.abs(m)<5;let y;if(n||(n=g?.01:2),t||(t=g?.005:.5),h<1){const e=mk(v,h);y=t=>{const n=Math.exp(-h*v*t);return i-n*((p+h*v*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)y=e=>i-Math.exp(-v*e)*(m+(p+v*m)*e);else{const e=v*Math.sqrt(h*h-1);y=t=>{const n=Math.exp(-h*v*t),r=Math.min(e*t,300);return i-n*((p+h*v*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=y(e);if(f)a.done=e>=d;else{let o=p;0!==e&&(o=h<1?sk(y,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function wk({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,v=void 0===a?m:a(m);v!==m&&(h=v-d);const g=e=>-h*Math.exp(-e/r),y=e=>v+g(e),b=e=>{const t=g(e),n=y(e);f.done=Math.abs(t)<=u,f.value=f.done?v:n};let w,E;const x=e=>{var t;(t=f.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,E=bk({keyframes:[f.value,p(f.value)],velocity:sk(y,e,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return E||void 0!==w||(t=!0,b(e),x(e)),void 0!==w&&e>w?E.next(e-w):(!t&&b(e),f)}}}const Ek=e=>{const t=({timestamp:t})=>e(t);return{start:()=>AS.update(t,!0),stop:()=>MS.update(t),now:()=>TS.isProcessing?TS.timestamp:performance.now()}},xk={decay:wk,inertia:wk,tween:ok,keyframes:ok,spring:bk},Sk=2e4;function Ck(e){let t=0;let n=e.next(t);for(;!n.done&&t<Sk;)t+=50,n=e.next(t);return t>=Sk?1/0:t}function kk({autoplay:e=!0,delay:t=0,driver:n=Ek,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p,h,m=1,v=!1;const g=()=>{p&&p(),h=new Promise((e=>{p=e}))};let y;g();const b=xk[o]||ok;let w;b!==ok&&"number"!=typeof r[0]&&(w=nk([0,100],r,{clamp:!1}),r=[0,100]);const E=b({...f,keyframes:r});let x;"mirror"===s&&(x=b({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let S="idle",C=null,k=null,P=null;null===E.calculatedDuration&&i&&(E.calculatedDuration=Ck(E));const{calculatedDuration:T}=E;let R=1/0,D=1/0;null!==T&&(R=T+a,D=R*(i+1)-a);let _=0;const L=e=>{if(null===k)return;m>0&&(k=Math.min(k,e)),_=null!==C?C:(e-k)*m;const n=_-t,o=n<0;_=Math.max(n,0),"finished"===S&&null===C&&(_=D);let l=_,u=E;if(i){const e=_/R;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(u=x));let o=yx(0,1,n);_>D&&(o="reverse"===s&&r?1:0),l=o*R}const c=o?{done:!1,value:r[0]}:u.next(l);w&&(c.value=w(c.value));let{done:f}=c;o||null===T||(f=_>=D);const p=null===C&&("finished"===S||"running"===S&&f||m<0&&_<=0);return d&&d(c.value),p&&O(),c},A=()=>{y&&y.stop(),y=void 0},M=()=>{S="idle",A(),g(),k=P=null},O=()=>{S="finished",c&&c(),A(),g()},N=()=>{if(v)return;y||(y=n(L));const e=y.now();l&&l(),S="running",null!==C?k=e-C:k||(k=e),P=k,C=null,y.start()};e&&N();const F={then:(e,t)=>h.then(e,t),get time(){return tC(_)},set time(e){e=eC(e),_=e,null===C&&y&&0!==m?k=y.now()-e/m:C=e},get duration(){const e=null===E.calculatedDuration?Ck(E):E.calculatedDuration;return tC(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,F.time=tC(_))},get state(){return S},play:N,pause:()=>{S="paused",C=_},stop:()=>{v=!0,"idle"!==S&&(S="idle",u&&u(),M())},cancel:()=>{null!==P&&L(P),M()},complete:()=>{S="finished"},sample:e=>(k=0,L(e))};return F}const Pk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Tk(e,t,{onUpdate:n,onComplete:r,...o}){if(!(cC.waapi()&&Pk.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:u,duration:c=300,ease:d}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!oC(t.ease))(t,o)){const e=kk({...o,repeat:0,delay:0});let t={done:!1,value:u[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;u=n,c=r-10,d="linear"}const f=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=sC(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,u,{...o,duration:c,ease:d}),p=()=>{AS.update((()=>f.cancel())),i(),l()};return f.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(u,o)),r&&r(),p()},{then:(e,t)=>a.then(e,t),get time(){return tC(f.currentTime||0)},set time(e){f.currentTime=eC(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return tC(c)},play:()=>{s||f.play()},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=kk({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}p()},complete:()=>f.finish(),cancel:p}}const Rk={type:"spring",stiffness:500,damping:25,restSpeed:10},Dk={type:"keyframes",duration:.8},_k={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lk=(e,{keyframes:t})=>t.length>2?Dk:ux.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Rk:_k,Ak=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!XC.test(t)||t.startsWith("url("))),Mk=new Set(["brightness","contrast","saturate","opacity"]);function Ok(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Sx)||[];if(!r)return e;const o=n.replace(r,"");let i=Mk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Nk=/([a-z-]*)\(.*?\)/g,Fk={...XC,getAnimatableNone:e=>{const t=e.match(Nk);return t?t.map(Ok).join(" "):e}},Ik={...Nx,color:NC,backgroundColor:NC,outlineColor:NC,fill:NC,stroke:NC,borderColor:NC,borderTopColor:NC,borderRightColor:NC,borderBottomColor:NC,borderLeftColor:NC,filter:Fk,WebkitFilter:Fk},Vk=e=>Ik[e];function zk(e,t){let n=Vk(e);return n!==Fk&&(n=XC),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Bk(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function jk(e){return"number"==typeof e?0:zk("",e)}function Uk(e,t){return e[t]||e.default||e}const Hk=(e,t,n,r={})=>o=>{const i=Uk(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=eC(a);const l=function(e,t,n,r){const o=Ak(t,n);let i=void 0!==r.from?r.from:e.get();if("none"===i&&o&&"string"==typeof n?i=zk(t,n):Bk(i)&&"string"==typeof n?i=jk(n):!Array.isArray(n)&&Bk(n)&&"string"==typeof i&&(n=jk(i)),Array.isArray(n)){for(let e=0;e<n.length;e++)null===n[e]&&(n[e]=0===e?i:n[e-1]);return n}return[i,n]}(t,e,n,i),u=l[0],c=l[l.length-1],d=Ak(e,u),f=Ak(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(p={...p,...Lk(e,p)}),p.duration&&(p.duration=eC(p.duration)),p.repeatDelay&&(p.repeatDelay=eC(p.repeatDelay)),!d||!f||nC||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:BS,pause:BS,stop:BS,then:e=>(e(),Promise.resolve()),cancel:BS,complete:BS});return t?kk({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Tk(t,e,p);if(n)return n}return kk(p)};function Wk(e){return Boolean(dx(e)&&e.add)}const $k=e=>/^0[^.\s]+$/.test(e);function Kk(e,t){-1===e.indexOf(t)&&e.push(t)}function Yk(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xk{constructor(){this.subscriptions=[]}add(e){return Kk(this.subscriptions,e),()=>Yk(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class qk{constructor(e,t={}){var n;this.version="10.10.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=TS;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,AS.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>AS.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Xk);const n=this.events[e].add(t);return"change"===e?()=>{n(),AS.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ik(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qk(e,t){return new qk(e,t)}const Gk=e=>t=>t.test(e),Zk=[bx,_x,Dx,Rx,Ax,Lx,{test:e=>"auto"===e,parse:e=>e}],Jk=e=>Zk.find(Gk(e)),eP=[...Zk,NC,XC],tP=e=>eP.find(Gk(e));function nP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qk(n))}function rP(e,t){if(!t)return;return(t[e]||t.default||t).from}function oP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function iP(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in s){const t=e.getValue(d),r=s[d];if(!t||void 0===r||c&&oP(c,d))continue;const o={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!t.hasAnimated){const n=e.getProps()[GS];n&&(o.elapsed=window.HandoffAppearAnimations(n,d,t,AS))}t.start(Hk(d,t,r,e.shouldReduceMotion&&ux.has(d)?{type:!1}:o));const a=t.animation;Wk(l)&&(l.add(d),a.then((()=>l.remove(d)))),u.push(a)}return a&&Promise.all(u).then((()=>{a&&function(e,t){const n=QS(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i)nP(e,a,lS(i[a]))}(e,a)})),u}function aP(e,t,n={}){const r=QS(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(iP(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(sP).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(aP(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function sP(e,t){return e.sortNodePosition(t)}const lP=[...UE].reverse(),uP=UE.length;function cP(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>aP(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=aP(e,t,n);else{const o="function"==typeof t?QS(e,t,n.custom):t;r=Promise.all(iP(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function dP(e){let t=cP(e);const n={animate:pP(!0),whileInView:pP(),whileHover:pP(),whileTap:pP(),whileDrag:pP(),whileFocus:pP(),exit:pP()};let r=!0;const o=(t,n)=>{const r=QS(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set;let d={},f=1/0;for(let t=0;t<uP;t++){const p=lP[t],h=n[p],m=void 0!==s[p]?s[p]:l[p],v=BE(m),g=p===a?h.isActive:null;!1===g&&(f=t);let y=m===l[p]&&m!==s[p]&&v;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===g||!m&&!h.prevProp||jE(m)||"boolean"==typeof m)continue;const b=fP(h.prevProp,m);let w=b||p===a&&h.isActive&&!y&&v||t>f&&v;const E=Array.isArray(m)?m:[m];let x=E.reduce(o,{});!1===g&&(x={});const{prevResolvedValues:S={}}=h,C={...S,...x},k=e=>{w=!0,c.delete(e),h.needsAnimating[e]=!0};for(const e in C){const t=x[e],n=S[e];d.hasOwnProperty(e)||(t!==n?aS(t)&&aS(n)?!qS(t,n)||b?k(e):h.protectedKeys[e]=!0:void 0!==t?k(e):c.add(e):void 0!==t&&c.has(e)?k(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=x,h.isActive&&(d={...d,...x}),r&&e.blockInitialAnimation&&(w=!1),w&&!y&&u.push(...E.map((e=>({animation:e,options:{type:p,...i}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),u.push({animation:t})}let p=Boolean(u.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(u):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function fP(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!qS(t,e)}function pP(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let hP=0;const mP={animation:{Feature:class extends PS{constructor(e){super(e),e.animationState||(e.animationState=dP(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),jE(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends PS{constructor(){super(...arguments),this.id=hP++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},vP=(e,t)=>Math.abs(e-t);class gP{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=wP(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=vP(e.x,t.x),r=vP(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=TS;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=yP(t,this.transformPagePoint),AS.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=wP("pointercancel"===e.type?this.lastMoveEventInfo:yP(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!mS(e))return;this.handlers=t,this.transformPagePoint=n;const r=yP(vS(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=TS;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,wP(r,this.history)),this.removeListeners=wS(yS(window,"pointermove",this.handlePointerMove),yS(window,"pointerup",this.handlePointerUp),yS(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),MS.update(this.updatePoint)}}function yP(e,t){return t?{point:t(e.point)}:e}function bP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wP({point:e},t){return{point:e,delta:bP(e,xP(t)),offset:bP(e,EP(t)),velocity:SP(t,.1)}}function EP(e){return e[0]}function xP(e){return e[e.length-1]}function SP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=xP(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>eC(t)));)n--;if(!r)return{x:0,y:0};const i=tC(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function CP(e){return e.max-e.min}function kP(e,t=0,n=.01){return Math.abs(e-t)<=n}function PP(e,t,n,r=.5){e.origin=r,e.originPoint=FC(t.min,t.max,e.origin),e.scale=CP(n)/CP(t),(kP(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=FC(n.min,n.max,e.origin)-e.originPoint,(kP(e.translate)||isNaN(e.translate))&&(e.translate=0)}function TP(e,t,n,r){PP(e.x,t.x,n.x,r?r.originX:void 0),PP(e.y,t.y,n.y,r?r.originY:void 0)}function RP(e,t,n){e.min=n.min+t.min,e.max=e.min+CP(t)}function DP(e,t,n){e.min=t.min-n.min,e.max=e.min+CP(t)}function _P(e,t,n){DP(e.x,t.x,n.x),DP(e.y,t.y,n.y)}function LP(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function AP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const MP=.35;function OP(e,t,n){return{min:NP(e,t),max:NP(e,n)}}function NP(e,t){return"number"==typeof e?e:e[t]||0}const FP=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),IP=()=>({x:{min:0,max:0},y:{min:0,max:0}});function VP(e){return[e("x"),e("y")]}function zP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BP(e){return void 0===e||1===e}function jP({scale:e,scaleX:t,scaleY:n}){return!BP(e)||!BP(t)||!BP(n)}function UP(e){return jP(e)||HP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function HP(e){return WP(e.x)||WP(e.y)}function WP(e){return e&&"0%"!==e}function $P(e,t,n){return n+t*(e-n)}function KP(e,t,n,r,o){return void 0!==o&&(e=$P(e,o,r)),$P(e,n,r)+t}function YP(e,t=0,n=1,r,o){e.min=KP(e.min,t,n,r,o),e.max=KP(e.max,t,n,r,o)}function XP(e,{x:t,y:n}){YP(e.x,t.translate,t.scale,t.originPoint),YP(e.y,n.translate,n.scale,n.originPoint)}function qP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function QP(e,t){e.min=e.min+t,e.max=e.max+t}function GP(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=FC(e.min,e.max,i);YP(e,t[n],t[r],a,t.scale)}const ZP=["x","scaleX","originX"],JP=["y","scaleY","originY"];function eT(e,t){GP(e.x,t,ZP),GP(e.y,t,JP)}function tT(e,t){return zP(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const nT=new WeakMap;class rT{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=IP(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new gP(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(vS(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=CS(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),VP((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Dx.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=CP(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&AS.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&AS.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!oT(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?FC(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?FC(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&zE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:LP(e.x,n,o),y:LP(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=MP){return!1===e?e=0:!0===e&&(e=MP),{x:OP(e,"left","right"),y:OP(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&VP((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!zE(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=tT(e,n),{scroll:o}=t;return o&&(QP(r.x,o.offset.x),QP(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:AP(e.x,t.x),y:AP(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=zP(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=VP((a=>{if(!oT(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Hk(e,n,0,t))}stopAnimation(){VP((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){VP((t=>{const{drag:n}=this.getProps();if(!oT(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-FC(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!zE(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};VP((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=CP(e),o=CP(t);return o>r?n=JC(t.min,t.max-r,e.min):r>o&&(n=JC(e.min,e.max-o,t.min)),yx(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),VP((t=>{if(!oT(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(FC(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;nT.set(this.visualElement,this);const e=yS(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();zE(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=hS(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(VP((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=MP,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function oT(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const iT=e=>(t,n)=>{e&&AS.update((()=>e(t,n)))};function aT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sT={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!_x.test(e))return e;e=parseFloat(e)}return`${aT(e,t.target.x)}% ${aT(e,t.target.y)}%`}},lT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function uT(e,t,n=1){const[r,o]=function(e){const t=lT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():vx(o)?uT(o,t,n+1):o}const cT="_$css",dT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(lT,(e=>(i.push(e),cT))));const a=XC.parse(e);if(a.length>5)return r;const s=XC.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;const d=FC(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(cT,(()=>{const t=i[e];return e++,t}))}return f}};class fT extends B.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=hT,Object.assign(sx,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),GE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||AS.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pT(e){const[t,n]=function(){const e=z.useContext(NE);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=z.useId();return z.useEffect((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=z.useContext(JE);return B.createElement(fT,{...e,layoutGroup:r,switchLayoutGroup:z.useContext(ex),isPresent:t,safeToRemove:n})}const hT={borderRadius:{...sT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sT,borderTopRightRadius:sT,borderBottomLeftRadius:sT,borderBottomRightRadius:sT,boxShadow:dT},mT=["TopLeft","TopRight","BottomLeft","BottomRight"],vT=mT.length,gT=e=>"string"==typeof e?parseFloat(e):e,yT=e=>"number"==typeof e||_x.test(e);function bT(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const wT=xT(0,.5,xC),ET=xT(.5,.95,BS);function xT(e,t,n){return r=>r<e?0:r>t?1:n(JC(e,t,r))}function ST(e,t){e.min=t.min,e.max=t.max}function CT(e,t){ST(e.x,t.x),ST(e.y,t.y)}function kT(e,t,n,r,o){return e=$P(e-=t,1/n,r),void 0!==o&&(e=$P(e,1/o,r)),e}function PT(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Dx.test(t)&&(t=parseFloat(t),t=FC(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=FC(i.min,i.max,r);e===i&&(s-=t),e.min=kT(e.min,t,n,s,o),e.max=kT(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const TT=["x","scaleX","originX"],RT=["y","scaleY","originY"];function DT(e,t,n,r){PT(e.x,t,TT,n?n.x:void 0,r?r.x:void 0),PT(e.y,t,RT,n?n.y:void 0,r?r.y:void 0)}function _T(e){return 0===e.translate&&1===e.scale}function LT(e){return _T(e.x)&&_T(e.y)}function AT(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function MT(e){return CP(e.x)/CP(e.y)}class OT{constructor(){this.members=[]}add(e){Kk(this.members,e),e.scheduleRender()}remove(e){if(Yk(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function NT(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const FT=(e,t)=>e.depth-t.depth;class IT{constructor(){this.children=[],this.isDirty=!1}add(e){Kk(this.children,e),this.isDirty=!0}remove(e){Yk(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(FT),this.isDirty=!1,this.children.forEach(e)}}const VT=["","X","Y","Z"];let zT=0;const BT={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=zT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;BT.totalNodes=BT.resolvedTargetDeltas=BT.recalculatedProjection=0,this.nodes.forEach(WT),this.nodes.forEach(QT),this.nodes.forEach(GT),this.nodes.forEach($T),e=BT,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new IT)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Xk),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(MS.read(r),e(i-t))};return AS.read(r,!0),()=>MS.read(r)}(r,250),GE.hasAnimatedSinceResize&&(GE.hasAnimatedSinceResize=!1,this.nodes.forEach(qT))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||rR,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!AT(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...Uk(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||qT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,MS.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZT),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(YT);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(oR),this.potentialNodes.clear()),this.nodes.forEach(XT),this.nodes.forEach(UT),this.nodes.forEach(HT),this.clearAllSnapshots(),OS.update(),OS.preRender(),OS.render())}clearAllSnapshots(){this.nodes.forEach(KT),this.sharedNodes.forEach(JT)}scheduleUpdateProjection(){AS.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){AS.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=IP(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!LT(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||UP(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),iR((r=n).x),iR(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return IP();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(QP(t.x,n.offset.x),QP(t.y,n.offset.y)),t}removeElementScroll(e){const t=IP();CT(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){CT(t,e);const{scroll:n}=this.root;n&&(QP(t.x,-n.offset.x),QP(t.y,-n.offset.y))}QP(t.x,o.offset.x),QP(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=IP();CT(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&eT(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),UP(e.latestValues)&&eT(n,e.latestValues)}return UP(this.latestValues)&&eT(n,this.latestValues),n}removeTransform(e){const t=IP();CT(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!UP(e.latestValues))continue;jP(e.latestValues)&&e.updateSnapshot();const r=IP();CT(r,e.measurePageBox()),DT(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return UP(this.latestValues)&&DT(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=TS.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=IP(),this.relativeTargetOrigin=IP(),_P(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),CT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=IP(),this.targetWithTransforms=IP()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.relativeParent.resolvedRelativeTargetAt!==TS.timestamp&&this.relativeParent.resolveTargetDelta(!0),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,RP(a.x,s.x,l.x),RP(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):CT(this.target,this.layout.layoutBox),XP(this.target,this.targetDelta)):CT(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=IP(),this.relativeTargetOrigin=IP(),_P(this.relativeTargetOrigin,this.target,e.target),CT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}BT.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!jP(this.parent.latestValues)&&!HP(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===TS.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;CT(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&eT(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,XP(e,a)),r&&UP(i.latestValues)&&eT(e,i.latestValues))}t.x=qP(t.x),t.y=qP(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:a}=t;if(!a)return;this.projectionDelta||(this.projectionDelta=FP(),this.projectionDeltaWithTransform=FP());const s=this.treeScale.x,l=this.treeScale.y,u=this.projectionTransform;TP(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=NT(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===s&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),BT.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=FP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=IP(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(nR));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,p,h;eR(i.x,e.x,n),eR(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_P(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,f=this.relativeTargetOrigin,p=a,h=n,tR(l.x,f.x,p.x,h),tR(l.y,f.y,p.y,h),d&&AT(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=IP()),CT(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=FC(0,void 0!==n.opacity?n.opacity:1,wT(r)),e.opacityExit=FC(void 0!==t.opacity?t.opacity:1,0,ET(r))):i&&(e.opacity=FC(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a<vT;a++){const o=`border${mT[a]}Radius`;let i=bT(t,o),s=bT(n,o);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||yT(i)===yT(s)?(e[o]=Math.max(FC(gT(i),gT(s),r),0),(Dx.test(s)||Dx.test(i))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=FC(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(MS.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=AS.update((()=>{GE.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=dx(e)?e:Qk(e);return r.start(Hk("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&aR(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||IP();const t=CP(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=CP(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}CT(t,n),eT(t,o),TP(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new OT);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let o=0;o<VT.length;o++){const t="rotate"+VT[o];n[t]&&(r[t]=n[t],e.setStaticValue(t,0))}e.render();for(const o in r)e.setStaticValue(o,r[o]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=uS(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=uS(e.pointerEvents)||""),this.hasProjected&&!UP(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=NT(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const u in sx){if(void 0===a[u])continue;const{correct:e,applyTo:t}=sx[u],n="none"===r.transform?a[u]:e(a[u],i);if(t){const e=t.length;for(let o=0;o<e;o++)r[t[o]]=n}else r[u]=n}return this.options.layoutId&&(r.pointerEvents=i===this?uS(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(YT),this.root.sharedNodes.clear()}}}function UT(e){e.updateLayout()}function HT(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?VP((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=CP(r);r.min=t[e].min,r.max=r.min+o})):aR(o,n.layoutBox,t)&&VP((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=CP(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=FP();TP(a,t,n.layoutBox);const s=FP();i?TP(s,e.applyTransform(r,!0),n.measuredBox):TP(s,t,n.layoutBox);const l=!LT(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=IP();_P(a,n.layoutBox,o.layoutBox);const s=IP();_P(s,t,i.layoutBox),AT(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function WT(e){BT.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $T(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function KT(e){e.clearSnapshot()}function YT(e){e.clearMeasurements()}function XT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function QT(e){e.resolveTargetDelta()}function GT(e){e.calcProjection()}function ZT(e){e.resetRotation()}function JT(e){e.removeLeadSnapshot()}function eR(e,t,n){e.translate=FC(t.translate,0,n),e.scale=FC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tR(e,t,n,r){e.min=FC(t.min,n.min,r),e.max=FC(t.max,n.max,r)}function nR(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const rR={duration:.45,ease:[.4,0,.1,1]};function oR(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function iR(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function aR(e,t,n){return"position"===e||"preserve-aspect"===e&&!kP(MT(t),MT(n),.2)}const sR=jT({attachResizeListener:(e,t)=>hS(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lR={current:void 0},uR=jT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lR.current){const e=new sR(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lR.current=e}return lR.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),cR={pan:{Feature:class extends PS{constructor(){super(...arguments),this.removePointerDownListener=BS}onPointerDown(e){this.session=new gP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:iT(e),onStart:iT(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&AS.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=yS(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends PS{constructor(e){super(e),this.removeGroupControls=BS,this.removeListeners=BS,this.controls=new rT(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||BS}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:uR,MeasureLayout:pT}},dR=new Set(["width","height","top","left","right","bottom","x","y"]),fR=e=>dR.has(e),pR=e=>e===bx||e===_x,hR=(e,t)=>parseFloat(e.split(", ")[t]),mR=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return hR(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?hR(t[1],e):0}},vR=new Set(["x","y","z"]),gR=lx.filter((e=>!vR.has(e)));const yR={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mR(4,13),y:mR(5,14)},bR=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(fR);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let u=n[o],c=Jk(u);const d=t[o];let f;if(aS(d)){const e=d.length,t=null===d[0]?1:0;u=d[t],c=Jk(u);for(let n=t;n<e;n++)f?JS(Jk(d[n])===f):f=Jk(d[n])}else f=Jk(d);if(c!==f)if(pR(c)&&pR(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===_x&&(t[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==f?void 0:f.transform)&&(0===u||0===d)?0===u?l.set(f.transform(u)):t[o]=c.transform(d):(a||(i=function(e){const t=[];return gR.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=yR[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=yR[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),FE&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function wR(e,t,n,r){return(e=>Object.keys(e).some(fR))(t)?bR(e,t,n,r):{target:t,transitionEnd:r}}const ER=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!vx(t))return;const n=uT(t,r);n&&e.set(n)}));for(const o in t){const e=t[o];if(!vx(e))continue;const i=uT(e,r);i&&(t[o]=i,n||(n={}),void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return wR(e,t=o.target,n,r=o.transitionEnd)},xR={current:null},SR={current:!1};const CR=new WeakMap,kR=Object.keys(qE),PR=kR.length,TR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],RR=HE.length;class DR{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>AS.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=WE(t),this.isVariantNode=$E(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(const c in u){const e=u[c];void 0!==a[c]&&dx(e)&&(e.set(a[c],!1),Wk(l)&&l.add(c))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,CR.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),SR.current||function(){if(SR.current=!0,FE)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xR.current=e.matches;e.addListener(t),t()}else xR.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||xR.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){CR.delete(this.current),this.projection&&this.projection.unmount(),MS.update(this.notifyUpdate),MS.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=ux.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&AS.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let a,s;for(let l=0;l<PR;l++){const e=kR[l],{isEnabled:n,Feature:r,ProjectionNode:o,MeasureLayout:i}=qE[e];o&&(a=o),n(t)&&(!this.features[e]&&r&&(this.features[e]=new r(this)),i&&(s=i))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&zE(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):IP()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<TR.length;n++){const t=TR[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(dx(i))e.addValue(o,i),Wk(r)&&r.add(o);else if(dx(a))e.addValue(o,Qk(i,{owner:e})),Wk(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Qk(void 0!==t?t:i,{owner:e}))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let n=0;n<RR;n++){const e=HE[n],r=this.props[e];(BE(r)||!1===r)&&(t[e]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Qk(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=iS(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||dx(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Xk),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class _R extends DR{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=rP(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=u&&("string"==typeof u&&(/^\-?\d*\.?\d+$/.test(u)||$k(u))?u=parseFloat(u):!tP(u)&&XC.test(l)&&(u=zk(a,l)),e.addValue(a,Qk(u,{owner:e})),void 0===n[a]&&(n[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,n,i);const e=ER(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class LR extends _R{readValueFromInstance(e,t){if(ux.has(t)){const e=Vk(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(mx(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return tT(e,t)}build(e,t,n,r){Fx(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return rS(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;dx(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){eS(e,t,n,r)}}class AR extends _R{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ux.has(t)){const e=Vk(t);return e&&e.default||0}return t=tS.has(t)?t:Jx(t),e.getAttribute(t)}measureInstanceViewportBox(){return IP()}scrapeMotionValuesFromProps(e,t){return oS(e,t)}build(e,t,n,r){Xx(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){nS(e,t,0,r)}mount(e){this.isSVGTag=Qx(e.tagName),super.mount(e)}}const MR=(e,t)=>ax(e)?new AR(t,{enableHardwareAcceleration:!1}):new LR(t,{enableHardwareAcceleration:!0}),OR={...mP,...XS,...cR,...{layout:{ProjectionNode:uR,MeasureLayout:pT}}},NR=ox(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...ax(e)?fS:pS,preloadedFeatures:n,useRender:Zx(t),createVisualElement:r,Component:e}}(e,t,OR,MR)));function FR(){return FR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FR.apply(this,arguments)}function IR(e,t){return(IR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var VR=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,IR(t,n);var o=r.prototype;return o.getColumns=function(){var e=this.props,t=e.children,n=e.columnsCount,r=Array.from({length:n},(function(){return[]}));return B.Children.forEach(t,(function(e,t){e&&B.isValidElement(e)&&r[t%n].push(e)})),r},o.renderColumns=function(){var e=this.props.gutter;return this.getColumns().map((function(t,n){return B.createElement("div",{key:n,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:e}},t.map((function(e){return e})))}))},o.render=function(){var e=this.props,t=e.gutter,n=e.className,r=e.style;return B.createElement("div",{style:FR({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:t},r),className:n},this.renderColumns())},r}(B.Component);VR.propTypes={},VR.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var zR="undefined"!=typeof window?z.useLayoutEffect:z.useEffect,BR=function(){var e=function(){var e=z.useState(!1),t=e[0],n=e[1];return zR((function(){n(!0)}),[]),t}(),t=z.useState(0),n=t[0],r=t[1],o=z.useCallback((function(){e&&r(window.innerWidth)}),[e]);return zR((function(){if(e)return window.addEventListener("resize",o),o(),function(){return window.removeEventListener("resize",o)}}),[e,o]),n},jR=function(e){var t=e.columnsCountBreakPoints,n=void 0===t?{350:1,750:2,900:3}:t,r=e.children,o=e.className,i=void 0===o?null:o,a=e.style,s=void 0===a?null:a,l=BR(),u=z.useMemo((function(){var e=Object.keys(n).sort((function(e,t){return e-t})),t=e.length>0?n[e[0]]:1;return e.forEach((function(e){e<l&&(t=n[e])})),t}),[l,n]);return B.createElement("div",{className:i,style:s},B.Children.map(r,(function(e,t){return B.cloneElement(e,{key:t,columnsCount:u})})))};jR.propTypes={};const[UR,HR]=G("Form"),WR="Form",[$R,KR]=UR(WR),[YR,XR]=UR(WR),qR=z.forwardRef(((e,t)=>{const{__scopeForm:n,onClearServerErrors:r=(()=>{}),...o}=e,i=ee(t,z.useRef(null)),[a,s]=z.useState({}),l=z.useCallback((e=>a[e]),[a]),u=z.useCallback(((e,t)=>s((n=>{var r;return{...n,[e]:{...null!==(r=n[e])&&void 0!==r?r:{},...t}}}))),[]),c=z.useCallback((e=>{s((t=>({...t,[e]:void 0}))),g((t=>({...t,[e]:{}})))}),[]),[d,f]=z.useState({}),p=z.useCallback((e=>{var t;return null!==(t=d[e])&&void 0!==t?t:[]}),[d]),h=z.useCallback(((e,t)=>{f((n=>{var r;return{...n,[e]:[...null!==(r=n[e])&&void 0!==r?r:[],t]}}))}),[]),m=z.useCallback(((e,t)=>{f((n=>{var r;return{...n,[e]:(null!==(r=n[e])&&void 0!==r?r:[]).filter((e=>e.id!==t))}}))}),[]),[v,g]=z.useState({}),y=z.useCallback((e=>{var t;return null!==(t=v[e])&&void 0!==t?t:{}}),[v]),b=z.useCallback(((e,t)=>{g((n=>{var r;return{...n,[e]:{...null!==(r=n[e])&&void 0!==r?r:{},...t}}}))}),[]),[w,E]=z.useState({}),x=z.useCallback(((e,t)=>{E((n=>{const r=new Set(n[e]).add(t);return{...n,[e]:r}}))}),[]),S=z.useCallback(((e,t)=>{E((n=>{const r=new Set(n[e]);return r.delete(t),{...n,[e]:r}}))}),[]),C=z.useCallback((e=>{var t;return Array.from(null!==(t=w[e])&&void 0!==t?t:[]).join(" ")||void 0}),[w]);return z.createElement($R,{scope:n,getFieldValidity:l,onFieldValidityChange:u,getFieldCustomMatcherEntries:p,onFieldCustomMatcherEntryAdd:h,onFieldCustomMatcherEntryRemove:m,getFieldCustomErrors:y,onFieldCustomErrorsChange:b,onFieldValiditionClear:c},z.createElement(YR,{scope:n,onFieldMessageIdAdd:x,onFieldMessageIdRemove:S,getFieldDescription:C},z.createElement(xd.form,Q({},o,{ref:i,onInvalid:te(e.onInvalid,(e=>{const t=fD(e.currentTarget);t===e.target&&t.focus(),e.preventDefault()})),onSubmit:te(e.onSubmit,r,{checkForDefaultPrevented:!1}),onReset:te(e.onReset,r)}))))})),QR="FormField",[GR,ZR]=UR(QR),JR=z.forwardRef(((e,t)=>{const{__scopeForm:n,name:r,serverInvalid:o=!1,...i}=e,a=KR(QR,n).getFieldValidity(r),s=ie();return z.createElement(GR,{scope:n,id:s,name:r,serverInvalid:o},z.createElement(xd.div,Q({"data-valid":hD(a,o),"data-invalid":mD(a,o)},i,{ref:t})))})),eD="FormControl",tD=z.forwardRef(((e,t)=>{const{__scopeForm:n,...r}=e,o=KR(eD,n),i=ZR(eD,n),a=XR(eD,n),s=z.useRef(null),l=ee(t,s),u=r.name||i.name,c=r.id||i.id,d=o.getFieldCustomMatcherEntries(u),{onFieldValidityChange:f,onFieldCustomErrorsChange:p,onFieldValiditionClear:h}=o,m=z.useCallback((async e=>{if(pD(e.validity)){const t=uD(e.validity);return void f(u,t)}const t=e.form?new FormData(e.form):new FormData,n=[e.value,t],r=[],o=[];d.forEach((e=>{var t,i;i=n,"AsyncFunction"===(t=e).match.constructor.name||function(e,t){return e(...t)instanceof Promise}(t.match,i)?o.push(e):function(e){return"Function"===e.match.constructor.name}(e)&&r.push(e)}));const i=r.map((({id:e,match:t})=>[e,t(...n)])),a=Object.fromEntries(i),s=Object.values(a).some(Boolean),l=s;e.setCustomValidity(l?nD:"");const c=uD(e.validity);if(f(u,c),p(u,a),!s&&o.length>0){const t=o.map((({id:e,match:t})=>t(...n).then((t=>[e,t])))),r=await Promise.all(t),i=Object.fromEntries(r),a=Object.values(i).some(Boolean);e.setCustomValidity(a?nD:"");const s=uD(e.validity);f(u,s),p(u,i)}}),[d,u,p,f]);z.useEffect((()=>{const e=s.current;if(e){const t=()=>m(e);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}}),[m]);const v=z.useCallback((()=>{const e=s.current;e&&(e.setCustomValidity(""),h(u))}),[u,h]);z.useEffect((()=>{var e;const t=null===(e=s.current)||void 0===e?void 0:e.form;if(t)return t.addEventListener("reset",v),()=>t.removeEventListener("reset",v)}),[v]),z.useEffect((()=>{const e=s.current,t=null==e?void 0:e.closest("form");if(t&&i.serverInvalid){const n=fD(t);n===e&&n.focus()}}),[i.serverInvalid]);const g=o.getFieldValidity(u);return z.createElement(xd.input,Q({"data-valid":hD(g,i.serverInvalid),"data-invalid":mD(g,i.serverInvalid),"aria-invalid":!!i.serverInvalid||void 0,"aria-describedby":a.getFieldDescription(u),title:""},r,{ref:l,id:c,name:u,onInvalid:te(e.onInvalid,(e=>{const t=e.currentTarget;m(t)})),onChange:te(e.onChange,(e=>{v()}))}))})),nD="This value is not valid",rD={badInput:nD,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},oD="FormMessage",iD=z.forwardRef(((e,t)=>{const{match:n,name:r,...o}=e,i=ZR(oD,e.__scopeForm),a=null!=r?r:i.name;return void 0===n?z.createElement(lD,Q({},o,{ref:t,name:a}),e.children||nD):"function"==typeof n?z.createElement(sD,Q({match:n},o,{ref:t,name:a})):z.createElement(aD,Q({match:n},o,{ref:t,name:a}))})),aD=z.forwardRef(((e,t)=>{const{match:n,forceMatch:r=!1,name:o,children:i,...a}=e,s=KR(oD,a.__scopeForm).getFieldValidity(o);return r||(null==s?void 0:s[n])?z.createElement(lD,Q({ref:t},a,{name:o}),null!=i?i:rD[n]):null})),sD=z.forwardRef(((e,t)=>{const{match:n,forceMatch:r=!1,name:o,id:i,children:a,...s}=e,l=KR(oD,s.__scopeForm),u=ee(t,z.useRef(null)),c=ie(),d=null!=i?i:c,f=z.useMemo((()=>({id:d,match:n})),[d,n]),{onFieldCustomMatcherEntryAdd:p,onFieldCustomMatcherEntryRemove:h}=l;z.useEffect((()=>(p(o,f),()=>h(o,f.id))),[f,o,p,h]);const m=l.getFieldValidity(o),v=l.getFieldCustomErrors(o)[d];return r||m&&!pD(m)&&v?z.createElement(lD,Q({id:d,ref:u},s,{name:o}),null!=a?a:nD):null})),lD=z.forwardRef(((e,t)=>{const{__scopeForm:n,id:r,name:o,...i}=e,a=XR(oD,n),s=ie(),l=null!=r?r:s,{onFieldMessageIdAdd:u,onFieldMessageIdRemove:c}=a;return z.useEffect((()=>(u(o,l),()=>c(o,l))),[o,l,u,c]),z.createElement(xd.span,Q({id:l},i,{ref:t}))}));function uD(e){const t={};for(const n in e)t[n]=e[n];return t}function cD(e){return e instanceof HTMLElement}function dD(e){return"validity"in e&&(!1===e.validity.valid||"true"===e.getAttribute("aria-invalid"))}function fD(e){const t=e.elements,[n]=Array.from(t).filter(cD).filter(dD);return n}function pD(e){let t=!1;for(const n in e){if("valid"!==n&&"customError"!==n&&e[n]){t=!0;break}}return t}function hD(e,t){if(!0===(null==e?void 0:e.valid)&&!t)return!0}function mD(e,t){if(!1===(null==e?void 0:e.valid)||t)return!0}const vD=qR,gD=JR,yD=tD,bD=iD,wD=z.forwardRef(((e,t)=>{const{__scopeForm:n,...r}=e;return z.createElement(xd.button,Q({type:"submit"},r,{ref:t}))})),[ED,xD]=kg("Tooltip",[pw]),SD=pw(),CD=700,kD="tooltip.open",[PD,TD]=ED("TooltipProvider"),RD="Tooltip",[DD,_D]=ED(RD),LD="TooltipTrigger",AD=z.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_D(LD,n),i=TD(LD,n),a=SD(n),s=Cg(t,z.useRef(null),o.onTriggerChange),l=z.useRef(!1),u=z.useRef(!1),c=z.useCallback((()=>l.current=!1),[]);return z.useEffect((()=>()=>document.removeEventListener("pointerup",c)),[c]),z.createElement(Pw,Q({asChild:!0},a),z.createElement(Ag.button,Q({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:xg(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))})),onPointerLeave:xg(e.onPointerLeave,(()=>{o.onTriggerLeave(),u.current=!1})),onPointerDown:xg(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:xg(e.onFocus,(()=>{l.current||o.onOpen()})),onBlur:xg(e.onBlur,o.onClose),onClick:xg(e.onClick,o.onClose)})))})),MD="TooltipPortal",[OD,ND]=ED(MD,{forceMount:void 0}),FD="TooltipContent",ID=z.forwardRef(((e,t)=>{const n=ND(FD,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=_D(FD,e.__scopeTooltip);return z.createElement(sy,{present:r||a.open},a.disableHoverableContent?z.createElement(jD,Q({side:o},i,{ref:t})):z.createElement(VD,Q({side:o},i,{ref:t})))})),VD=z.forwardRef(((e,t)=>{const n=_D(FD,e.__scopeTooltip),r=TD(FD,e.__scopeTooltip),o=z.useRef(null),i=Cg(t,o),[a,s]=z.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,f=z.useCallback((()=>{s(null),d(!1)}),[d]),p=z.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);s(i),d(!0)}),[d]);return z.useEffect((()=>()=>f()),[f]),z.useEffect((()=>{if(l&&c){const e=e=>p(e,c),t=e=>p(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}}),[l,c,p,f]),z.useEffect((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i].x,s=t[i].y,l=t[a].x,u=t[a].y;s>r!=u>r&&n<(l-e)*(r-s)/(u-s)+e&&(o=!o)}return o}(n,a);r?f():o&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,c,a,u,f]),z.createElement(jD,Q({},e,{ref:i}))})),[zD,BD]=ED(RD,{isInside:!1}),jD=z.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=_D(FD,n),u=SD(n),{onClose:c}=l;return z.useEffect((()=>(document.addEventListener(kD,c),()=>document.removeEventListener(kD,c))),[c]),z.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,c]),z.createElement(Ny,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},z.createElement(Tw,Q({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),z.createElement(Dg,null,r),z.createElement(zD,{scope:n,isInside:!0},z.createElement(Lw,{id:l.contentId,role:"tooltip"},o||r))))}));const UD=e=>{const{__scopeTooltip:t,delayDuration:n=CD,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=z.useState(!0),l=z.useRef(!1),u=z.useRef(0);return z.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),z.createElement(PD,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:z.useCallback((()=>{window.clearTimeout(u.current),s(!1)}),[]),onClose:z.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:z.useCallback((e=>{l.current=e}),[]),disableHoverableContent:o},i)},HD=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=TD(RD,e.__scopeTooltip),u=SD(t),[c,d]=z.useState(null),f=Ig(),p=z.useRef(0),h=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=z.useRef(!1),[g=!1,y]=zg({prop:r,defaultProp:o,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(kD))):l.onClose(),null==i||i(e)}}),b=z.useMemo((()=>g?v.current?"delayed-open":"instant-open":"closed"),[g]),w=z.useCallback((()=>{window.clearTimeout(p.current),v.current=!1,y(!0)}),[y]),E=z.useCallback((()=>{window.clearTimeout(p.current),y(!1)}),[y]),x=z.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{v.current=!0,y(!0)}),m)}),[m,y]);return z.useEffect((()=>()=>window.clearTimeout(p.current)),[]),z.createElement(kw,u,z.createElement(DD,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:z.useCallback((()=>{l.isOpenDelayed?x():w()}),[l.isOpenDelayed,x,w]),onTriggerLeave:z.useCallback((()=>{h?E():window.clearTimeout(p.current)}),[E,h]),onOpen:w,onClose:E,disableHoverableContent:h},n))},WD=AD,$D=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=_D(MD,t);return z.createElement(OD,{scope:t,forceMount:n},z.createElement(sy,{present:n||i.open},z.createElement(Dw,{asChild:!0,container:o},r)))},KD=ID,YD=z.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=SD(n);return BD("TooltipArrow",n).isInside?null:z.createElement(Rw,Q({},o,r,{ref:t}))}));const XD="ScrollArea",[qD,QD]=G(XD),[GD,ZD]=qD(XD),JD=z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=e,[s,l]=z.useState(null),[u,c]=z.useState(null),[d,f]=z.useState(null),[p,h]=z.useState(null),[m,v]=z.useState(null),[g,y]=z.useState(0),[b,w]=z.useState(0),[E,x]=z.useState(!1),[S,C]=z.useState(!1),k=ee(t,(e=>l(e))),P=$v(o);return z.createElement(GD,{scope:n,type:r,dir:P,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:E,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:S,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:w},z.createElement(xd.div,Q({dir:P},a,{ref:k,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))})),e_=z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,i=ZD("ScrollAreaViewport",n),a=ee(t,z.useRef(null),i.onViewportChange);return z.createElement(z.Fragment,null,z.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),z.createElement(xd.div,Q({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),z.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},r)))})),t_="ScrollAreaScrollbar",n_=z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ZD(t_,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s="horizontal"===e.orientation;return z.useEffect((()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)})),[s,i,a]),"hover"===o.type?z.createElement(r_,Q({},r,{ref:t,forceMount:n})):"scroll"===o.type?z.createElement(o_,Q({},r,{ref:t,forceMount:n})):"auto"===o.type?z.createElement(i_,Q({},r,{ref:t,forceMount:n})):"always"===o.type?z.createElement(a_,Q({},r,{ref:t})):null})),r_=z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ZD(t_,e.__scopeScrollArea),[i,a]=z.useState(!1);return z.useEffect((()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout((()=>a(!1)),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[o.scrollArea,o.scrollHideDelay]),z.createElement($d,{present:n||i},z.createElement(i_,Q({"data-state":i?"visible":"hidden"},r,{ref:t})))})),o_=z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ZD(t_,e.__scopeScrollArea),i="horizontal"===e.orientation,a=x_((()=>l("SCROLL_END")),100),[s,l]=(u="hidden",c={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},z.useReducer(((e,t)=>{const n=c[e][t];return null!=n?n:e}),u));var u,c;return z.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),o.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,o.scrollHideDelay,l]),z.useEffect((()=>{const e=o.viewport,t=i?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),a()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[o.viewport,i,l,a]),z.createElement($d,{present:n||"hidden"!==s},z.createElement(a_,Q({"data-state":"hidden"===s?"hidden":"visible"},r,{ref:t,onPointerEnter:te(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:te(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})))})),i_=z.forwardRef(((e,t)=>{const n=ZD(t_,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,a]=z.useState(!1),s="horizontal"===e.orientation,l=x_((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?e:t)}}),10);return S_(n.viewport,l),S_(n.content,l),z.createElement($d,{present:r||i},z.createElement(a_,Q({"data-state":i?"visible":"hidden"},o,{ref:t})))})),a_=z.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,o=ZD(t_,e.__scopeScrollArea),i=z.useRef(null),a=z.useRef(0),[s,l]=z.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=v_(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=g_(n),i=o/2,a=t||i,s=o-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d="ltr"===r?[0,c]:[-1*c,0];return b_([l,u],d)(e)}(e,a.current,s,t)}return"horizontal"===n?z.createElement(s_,Q({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const e=y_(o.viewport.scrollLeft,s,o.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}})):"vertical"===n?z.createElement(l_,Q({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const e=y_(o.viewport.scrollTop,s);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}})):null})),s_=z.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=ZD(t_,e.__scopeScrollArea),[a,s]=z.useState(),l=z.useRef(null),u=ee(t,l,i.onScrollbarXChange);return z.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),z.createElement(d_,Q({"data-orientation":"horizontal"},o,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":g_(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(i.viewport){const r=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),w_(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:m_(a.paddingLeft),paddingEnd:m_(a.paddingRight)}})}}))})),l_=z.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=ZD(t_,e.__scopeScrollArea),[a,s]=z.useState(),l=z.useRef(null),u=ee(t,l,i.onScrollbarYChange);return z.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),z.createElement(d_,Q({"data-orientation":"vertical"},o,{ref:u,sizes:n,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":g_(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(i.viewport){const r=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),w_(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:m_(a.paddingTop),paddingEnd:m_(a.paddingBottom)}})}}))})),[u_,c_]=qD(t_),d_=z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=ZD(t_,n),[h,m]=z.useState(null),v=ee(t,(e=>m(e))),g=z.useRef(null),y=z.useRef(""),b=p.viewport,w=r.content-r.viewport,E=ae(c),x=ae(l),S=x_(d,10);function C(e){if(g.current){const t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return z.useEffect((()=>{const e=e=>{const t=e.target;(null==h?void 0:h.contains(t))&&E(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[b,h,w,E]),z.useEffect(x,[r,x]),S_(h,S),S_(p.content,S),z.createElement(u_,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:ae(i),onThumbPointerUp:ae(a),onThumbPositionChange:x,onThumbPointerDown:ae(s)},z.createElement(xd.div,Q({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:te(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),g.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(e)}})),onPointerMove:te(e.onPointerMove,C),onPointerUp:te(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null}))})))})),f_="ScrollAreaThumb",p_=z.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=c_(f_,e.__scopeScrollArea);return z.createElement($d,{present:n||o.hasThumb},z.createElement(h_,Q({ref:t},r)))})),h_=z.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,i=ZD(f_,n),a=c_(f_,n),{onThumbPositionChange:s}=a,l=ee(t,(e=>a.onThumbChange(e))),u=z.useRef(),c=x_((()=>{u.current&&(u.current(),u.current=void 0)}),100);return z.useEffect((()=>{const e=i.viewport;if(e){const t=()=>{if(c(),!u.current){const t=E_(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[i.viewport,c,s]),z.createElement(xd.div,Q({"data-state":a.hasThumb?"visible":"hidden"},o,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:te(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})})),onPointerUp:te(e.onPointerUp,a.onThumbPointerUp)}))}));function m_(e){return e?parseInt(e,10):0}function v_(e,t){const n=e/t;return isNaN(n)?0:n}function g_(e){const t=v_(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function y_(e,t,n="ltr"){const r=g_(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=i-r,l=Hv(e,"ltr"===n?[0,a]:[-1*a,0]);return b_([0,a],[0,s])(l)}function b_(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function w_(e,t){return e>0&&e<t}const E_=(e,t=(()=>{}))=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function x_(e,t){const n=ae(e),r=z.useRef(0);return z.useEffect((()=>()=>window.clearTimeout(r.current)),[]),z.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function S_(e,t){const n=ae(t);ne((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}const C_=JD,k_=e_,P_=n_,T_=p_;export{Tp as $,vv as A,Dv as B,_v as C,jv as D,Uv as E,yg as F,bg as G,wg as H,Eg as I,Py as J,Ty as K,Ry as L,RE as M,DE as N,_E as O,EE as P,xE as Q,B as R,SE as S,CE as T,kE as U,PE as V,LE as W,TE as X,AE as Y,NR as Z,z as _,Rp as a,jR as a0,VR as a1,vD as a2,wD as a3,gD as a4,yD as a5,bD as a6,UD as a7,HD as a8,WD as a9,$D as aa,KD as ab,YD as ac,C_ as ad,k_ as ae,P_ as af,T_ as ag,Dp as b,_p as c,Mp as d,Op as e,Ap as f,Lp as g,Np as h,up as i,q as j,cp as k,dp as l,fp as m,pp as n,hp as o,mh as p,gh as q,yh as r,bh as s,wh as t,vh as u,dv as v,fv as w,pv as x,hv as y,mv as z};
1
+ function e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}},r={},o=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=b.prototype;var x=E.prototype=new w;x.constructor=E,g(x,b.prototype),x.isPureReactComponent=!0;var S=Array.isArray,C=Object.prototype.hasOwnProperty,k={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,r)&&!P.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:k.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var D=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+_(l,0):r,S(a)?(n="",null!=e&&(n=e.replace(D,"$&/")+"/"),L(a,t,n,"",(function(e){return e}))):null!=a&&(R(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(D,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",S(e))for(var u=0;u<e.length;u++){var c=r+_(s=e[u],u);l+=L(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=m&&e[m]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=L(s=s.value,t,n,c=r+_(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],o=0;return L(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},N={transition:null},F={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:N,ReactCurrentOwner:k};r.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=b,r.Fragment=a,r.Profiler=l,r.PureComponent=E,r.StrictMode=s,r.Suspense=f,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,r.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)C.call(t,u)&&!P.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:o,type:e.type,key:i,ref:a,props:r,_owner:s}},r.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},r.createElement=T,r.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:d,render:e}},r.isValidElement=R,r.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:M}},r.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},r.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},r.useCallback=function(e,t){return O.current.useCallback(e,t)},r.useContext=function(e){return O.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return O.current.useDeferredValue(e)},r.useEffect=function(e,t){return O.current.useEffect(e,t)},r.useId=function(){return O.current.useId()},r.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},r.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return O.current.useMemo(e,t)},r.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},r.useRef=function(e){return O.current.useRef(e)},r.useState=function(e){return O.current.useState(e)},r.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},r.useTransition=function(){return O.current.useTransition()},r.version="18.2.0",n.exports=r;var I=n.exports;const V=t(I),z=e({__proto__:null,default:V},[I]);var B={exports:{}},j={},U=I,H=Symbol.for("react.element"),W=Symbol.for("react.fragment"),$=Object.prototype.hasOwnProperty,K=U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Y={key:!0,ref:!0,__self:!0,__source:!0};function X(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)$.call(t,r)&&!Y.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:H,type:e,key:i,ref:a,props:o,_owner:K.current}}j.Fragment=W,j.jsx=X,j.jsxs=X,B.exports=j;var q=B.exports;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}function G(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>I.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return I.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=I.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=I.useMemo((()=>a),Object.values(a));return I.createElement(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=I.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Z(r,...t)]}function Z(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return I.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function J(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function ee(...e){return I.useCallback(J(...e),e)}function te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const ne=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?I.useLayoutEffect:()=>{},re=z["useId".toString()]||(()=>{});let oe=0;function ie(e){const[t,n]=I.useState(re());return ne((()=>{e||n((e=>null!=e?e:String(oe++)))}),[e]),e||(t?`radix-${t}`:"")}function ae(e){const t=I.useRef(e);return I.useEffect((()=>{t.current=e})),I.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function se({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=I.useState(e),[r]=n,o=I.useRef(r),i=ae(t);return I.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=ae(n);return[a,I.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}var le={exports:{}},ue={},ce={exports:{}},de={};!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,A(E);else{var t=n(u);null!==t&&M(w,t.startTime-e)}}function E(t,o){h=!1,m&&(m=!1,g(k),k=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!R());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var v=n(u);null!==v&&M(w,v.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,C=null,k=-1,P=5,T=-1;function R(){return!(e.unstable_now()-T<P)}function D(){if(null!==C){var t=e.unstable_now();T=t;var n=!0;try{n=C(!0,t)}finally{n?x():(S=!1,C=null)}}else S=!1}if("function"==typeof y)x=function(){y(D)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,L=_.port2;_.port1.onmessage=D,x=function(){L.postMessage(null)}}else x=function(){v(D,0)};function A(e){C=e,S||(S=!0,x())}function M(t,n){k=v((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,A(E))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(g(k),k=-1):m=!0,M(w,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,A(E))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(de),ce.exports=de;var fe=ce.exports,pe=I,he=fe;function me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ve=new Set,ge={};function ye(e,t){be(e,t),be(e+"Capture",t)}function be(e,t){for(ge[e]=t,e=0;e<t.length;e++)ve.add(t[e])}var we=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ee=Object.prototype.hasOwnProperty,xe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Se={},Ce={};function ke(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Pe[e]=new ke(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Pe[t]=new ke(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Pe[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Pe[e]=new ke(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Pe[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Pe[e]=new ke(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Pe[e]=new ke(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Pe[e]=new ke(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Pe[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Te=/[\-:]([a-z])/g;function Re(e){return e[1].toUpperCase()}function De(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Ee.call(Ce,e)||!Ee.call(Se,e)&&(xe.test(e)?Ce[e]=!0:(Se[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Te,Re);Pe[t]=new ke(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Te,Re);Pe[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Te,Re);Pe[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)})),Pe.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Pe[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _e=pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Le=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),Fe=Symbol.for("react.provider"),Ie=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),ze=Symbol.for("react.suspense"),Be=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),He=Symbol.for("react.offscreen"),We=Symbol.iterator;function $e(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=We&&e[We]||e["@@iterator"])?e:null}var Ke,Ye=Object.assign;function Xe(e){if(void 0===Ke)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||""}return"\n"+Ke+e}var qe=!1;function Qe(e,t){if(!e||qe)return"";qe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"==typeof u.stack){for(var o=u.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{qe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xe(e):""}function Ge(e){switch(e.tag){case 5:return Xe(e.type);case 16:return Xe("Lazy");case 13:return Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 2:case 15:return e=Qe(e.type,!1);case 11:return e=Qe(e.type.render,!1);case 1:return e=Qe(e.type,!0);default:return""}}function Ze(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Me:return"Fragment";case Ae:return"Portal";case Ne:return"Profiler";case Oe:return"StrictMode";case ze:return"Suspense";case Be:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ie:return(e.displayName||"Context")+".Consumer";case Fe:return(e._context.displayName||"Context")+".Provider";case Ve:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case je:return null!==(t=e.displayName||null)?t:Ze(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return Ze(e(t))}catch(n){}}return null}function Je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ze(t);case 8:return t===Oe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function tt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function nt(e){e._valueTracker||(e._valueTracker=function(e){var t=tt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function rt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ot(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function it(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function at(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=et(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function st(e,t){null!=(t=t.checked)&&De(e,"checked",t,!1)}function lt(e,t){st(e,t);var n=et(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ct(e,t.type,n):t.hasOwnProperty("defaultValue")&&ct(e,t.type,et(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ut(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ct(e,t,n){"number"===t&&ot(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dt=Array.isArray;function ft(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+et(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function pt(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(me(91));return Ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ht(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(me(92));if(dt(n)){if(1<n.length)throw Error(me(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:et(n)}}function mt(e,t){var n=et(t.value),r=et(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function vt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function gt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function yt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?gt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var bt,wt,Et=(wt=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((bt=bt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return wt(e,t)}))}:wt);function xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var St={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ct=["Webkit","ms","Moz","O"];function kt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||St.hasOwnProperty(e)&&St[e]?(""+t).trim():t+"px"}function Pt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=kt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(St).forEach((function(e){Ct.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),St[t]=St[e]}))}));var Tt=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rt(e,t){if(t){if(Tt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(me(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(me(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(me(62))}}function Dt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _t=null;function Lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Mt=null,Ot=null;function Nt(e){if(e=_i(e)){if("function"!=typeof At)throw Error(me(280));var t=e.stateNode;t&&(t=Ai(t),At(e.stateNode,e.type,t))}}function Ft(e){Mt?Ot?Ot.push(e):Ot=[e]:Mt=e}function It(){if(Mt){var e=Mt,t=Ot;if(Ot=Mt=null,Nt(e),t)for(e=0;e<t.length;e++)Nt(t[e])}}function Vt(e,t){return e(t)}function zt(){}var Bt=!1;function jt(e,t,n){if(Bt)return e(t,n);Bt=!0;try{return Vt(e,t,n)}finally{Bt=!1,(null!==Mt||null!==Ot)&&(zt(),It())}}function Ut(e,t){var n=e.stateNode;if(null===n)return null;var r=Ai(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(me(231,t,typeof n));return n}var Ht=!1;if(we)try{var Wt={};Object.defineProperty(Wt,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",Wt,Wt),window.removeEventListener("test",Wt,Wt)}catch(wt){Ht=!1}function $t(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Kt=!1,Yt=null,Xt=!1,qt=null,Qt={onError:function(e){Kt=!0,Yt=e}};function Gt(e,t,n,r,o,i,a,s,l){Kt=!1,Yt=null,$t.apply(Qt,arguments)}function Zt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Jt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function en(e){if(Zt(e)!==e)throw Error(me(188))}function tn(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Zt(e)))throw Error(me(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return en(o),e;if(i===r)return en(o),t;i=i.sibling}throw Error(me(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(me(189))}}if(n.alternate!==r)throw Error(me(190))}if(3!==n.tag)throw Error(me(188));return n.stateNode.current===n?e:t}(e))?nn(e):null}function nn(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=nn(e);if(null!==t)return t;e=e.sibling}return null}var rn=he.unstable_scheduleCallback,on=he.unstable_cancelCallback,an=he.unstable_shouldYield,sn=he.unstable_requestPaint,ln=he.unstable_now,un=he.unstable_getCurrentPriorityLevel,cn=he.unstable_ImmediatePriority,dn=he.unstable_UserBlockingPriority,fn=he.unstable_NormalPriority,pn=he.unstable_LowPriority,hn=he.unstable_IdlePriority,mn=null,vn=null;var gn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(yn(e)/bn|0)|0},yn=Math.log,bn=Math.LN2;var wn=64,En=4194304;function xn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=xn(s):0!==(i&=a)&&(r=xn(i))}else 0!==(a=n&~o)?r=xn(a):0!==i&&(r=xn(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-gn(t)),r|=e[n],t&=~o;return r}function Cn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function kn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Pn(){var e=wn;return 0==(4194240&(wn<<=1))&&(wn=64),e}function Tn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-gn(t)]=n}function Dn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-gn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var _n=0;function Ln(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var An,Mn,On,Nn,Fn,In=!1,Vn=[],zn=null,Bn=null,jn=null,Un=new Map,Hn=new Map,Wn=[],$n="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Kn(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":Un.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(t.pointerId)}}function Yn(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=_i(t))&&Mn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Xn(e){var t=Di(e.target);if(null!==t){var n=Zt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Jt(n)))return e.blockedOn=t,void Fn(e.priority,(function(){On(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function qn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ar(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=_i(n))&&Mn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_t=r,n.target.dispatchEvent(r),_t=null,t.shift()}return!0}function Qn(e,t,n){qn(e)&&n.delete(t)}function Gn(){In=!1,null!==zn&&qn(zn)&&(zn=null),null!==Bn&&qn(Bn)&&(Bn=null),null!==jn&&qn(jn)&&(jn=null),Un.forEach(Qn),Hn.forEach(Qn)}function Zn(e,t){e.blockedOn===t&&(e.blockedOn=null,In||(In=!0,he.unstable_scheduleCallback(he.unstable_NormalPriority,Gn)))}function Jn(e){function t(t){return Zn(t,e)}if(0<Vn.length){Zn(Vn[0],e);for(var n=1;n<Vn.length;n++){var r=Vn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==zn&&Zn(zn,e),null!==Bn&&Zn(Bn,e),null!==jn&&Zn(jn,e),Un.forEach(t),Hn.forEach(t),n=0;n<Wn.length;n++)(r=Wn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Wn.length&&null===(n=Wn[0]).blockedOn;)Xn(n),null===n.blockedOn&&Wn.shift()}var er=_e.ReactCurrentBatchConfig,tr=!0;function nr(e,t,n,r){var o=_n,i=er.transition;er.transition=null;try{_n=1,or(e,t,n,r)}finally{_n=o,er.transition=i}}function rr(e,t,n,r){var o=_n,i=er.transition;er.transition=null;try{_n=4,or(e,t,n,r)}finally{_n=o,er.transition=i}}function or(e,t,n,r){if(tr){var o=ar(e,t,n,r);if(null===o)ti(e,t,r,ir,n),Kn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return zn=Yn(zn,e,t,n,r,o),!0;case"dragenter":return Bn=Yn(Bn,e,t,n,r,o),!0;case"mouseover":return jn=Yn(jn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Un.set(i,Yn(Un.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Hn.set(i,Yn(Hn.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Kn(e,r),4&t&&-1<$n.indexOf(e)){for(;null!==o;){var i=_i(o);if(null!==i&&An(i),null===(i=ar(e,t,n,r))&&ti(e,t,r,ir,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else ti(e,t,r,null,n)}}var ir=null;function ar(e,t,n,r){if(ir=null,null!==(e=Di(e=Lt(r))))if(null===(t=Zt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Jt(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ir=e,null}function sr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(un()){case cn:return 1;case dn:return 4;case fn:case pn:return 16;case hn:return 536870912;default:return 16}default:return 16}}var lr=null,ur=null,cr=null;function dr(){if(cr)return cr;var e,t,n=ur,r=n.length,o="value"in lr?lr.value:lr.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return cr=o.slice(e,1<t?1-t:void 0)}function fr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function pr(){return!0}function hr(){return!1}function mr(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?pr:hr,this.isPropagationStopped=hr,this}return Ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=pr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=pr)},persist:function(){},isPersistent:pr}),t}var vr,gr,yr,br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wr=mr(br),Er=Ye({},br,{view:0,detail:0}),xr=mr(Er),Sr=Ye({},Er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yr&&(yr&&"mousemove"===e.type?(vr=e.screenX-yr.screenX,gr=e.screenY-yr.screenY):gr=vr=0,yr=e),vr)},movementY:function(e){return"movementY"in e?e.movementY:gr}}),Cr=mr(Sr),kr=mr(Ye({},Sr,{dataTransfer:0})),Pr=mr(Ye({},Er,{relatedTarget:0})),Tr=mr(Ye({},br,{animationName:0,elapsedTime:0,pseudoElement:0})),Rr=Ye({},br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dr=mr(Rr),_r=mr(Ye({},br,{data:0})),Lr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ar={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Or(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mr[e])&&!!t[e]}function Nr(){return Or}var Fr=Ye({},Er,{key:function(e){if(e.key){var t=Lr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=fr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ar[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nr,charCode:function(e){return"keypress"===e.type?fr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?fr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ir=mr(Fr),Vr=mr(Ye({},Sr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zr=mr(Ye({},Er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nr})),Br=mr(Ye({},br,{propertyName:0,elapsedTime:0,pseudoElement:0})),jr=Ye({},Sr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ur=mr(jr),Hr=[9,13,27,32],Wr=we&&"CompositionEvent"in window,$r=null;we&&"documentMode"in document&&($r=document.documentMode);var Kr=we&&"TextEvent"in window&&!$r,Yr=we&&(!Wr||$r&&8<$r&&11>=$r),Xr=String.fromCharCode(32),qr=!1;function Qr(e,t){switch(e){case"keyup":return-1!==Hr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Zr=!1;var Jr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function eo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Jr[e.type]:"textarea"===t}function to(e,t,n,r){Ft(r),0<(t=ri(t,"onChange")).length&&(n=new wr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var no=null,ro=null;function oo(e){qo(e,0)}function io(e){if(rt(Li(e)))return e}function ao(e,t){if("change"===e)return t}var so=!1;if(we){var lo;if(we){var uo="oninput"in document;if(!uo){var co=document.createElement("div");co.setAttribute("oninput","return;"),uo="function"==typeof co.oninput}lo=uo}else lo=!1;so=lo&&(!document.documentMode||9<document.documentMode)}function fo(){no&&(no.detachEvent("onpropertychange",po),ro=no=null)}function po(e){if("value"===e.propertyName&&io(ro)){var t=[];to(t,ro,e,Lt(e)),jt(oo,t)}}function ho(e,t,n){"focusin"===e?(fo(),ro=n,(no=t).attachEvent("onpropertychange",po)):"focusout"===e&&fo()}function mo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return io(ro)}function vo(e,t){if("click"===e)return io(t)}function go(e,t){if("input"===e||"change"===e)return io(t)}var yo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function bo(e,t){if(yo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ee.call(t,o)||!yo(e[o],t[o]))return!1}return!0}function wo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Eo(e,t){var n,r=wo(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wo(r)}}function xo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?xo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function So(){for(var e=window,t=ot();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ot((e=t.contentWindow).document)}return t}function Co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ko(e){var t=So(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xo(n.ownerDocument.documentElement,n)){if(null!==r&&Co(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Eo(n,i);var a=Eo(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Po=we&&"documentMode"in document&&11>=document.documentMode,To=null,Ro=null,Do=null,_o=!1;function Lo(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_o||null==To||To!==ot(r)||("selectionStart"in(r=To)&&Co(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Do&&bo(Do,r)||(Do=r,0<(r=ri(Ro,"onSelect")).length&&(t=new wr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=To)))}function Ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mo={animationend:Ao("Animation","AnimationEnd"),animationiteration:Ao("Animation","AnimationIteration"),animationstart:Ao("Animation","AnimationStart"),transitionend:Ao("Transition","TransitionEnd")},Oo={},No={};function Fo(e){if(Oo[e])return Oo[e];if(!Mo[e])return e;var t,n=Mo[e];for(t in n)if(n.hasOwnProperty(t)&&t in No)return Oo[e]=n[t];return e}we&&(No=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);var Io=Fo("animationend"),Vo=Fo("animationiteration"),zo=Fo("animationstart"),Bo=Fo("transitionend"),jo=new Map,Uo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ho(e,t){jo.set(e,t),ye(t,[e])}for(var Wo=0;Wo<Uo.length;Wo++){var $o=Uo[Wo];Ho($o.toLowerCase(),"on"+($o[0].toUpperCase()+$o.slice(1)))}Ho(Io,"onAnimationEnd"),Ho(Vo,"onAnimationIteration"),Ho(zo,"onAnimationStart"),Ho("dblclick","onDoubleClick"),Ho("focusin","onFocus"),Ho("focusout","onBlur"),Ho(Bo,"onTransitionEnd"),be("onMouseEnter",["mouseout","mouseover"]),be("onMouseLeave",["mouseout","mouseover"]),be("onPointerEnter",["pointerout","pointerover"]),be("onPointerLeave",["pointerout","pointerover"]),ye("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ye("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ye("onBeforeInput",["compositionend","keypress","textInput","paste"]),ye("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ye("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ye("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ko="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ko));function Xo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,s,l){if(Gt.apply(this,arguments),Kt){if(!Kt)throw Error(me(198));var u=Yt;Kt=!1,Yt=null,Xt||(Xt=!0,qt=u)}}(r,t,void 0,e),e.currentTarget=null}function qo(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Xo(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Xo(o,s,u),i=l}}}if(Xt)throw e=qt,Xt=!1,qt=null,e}function Qo(e,t){var n=t[Pi];void 0===n&&(n=t[Pi]=new Set);var r=e+"__bubble";n.has(r)||(ei(t,e,2,!1),n.add(r))}function Go(e,t,n){var r=0;t&&(r|=4),ei(n,e,r,t)}var Zo="_reactListening"+Math.random().toString(36).slice(2);function Jo(e){if(!e[Zo]){e[Zo]=!0,ve.forEach((function(t){"selectionchange"!==t&&(Yo.has(t)||Go(t,!1,e),Go(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Zo]||(t[Zo]=!0,Go("selectionchange",!1,t))}}function ei(e,t,n,r){switch(sr(t)){case 1:var o=nr;break;case 4:o=rr;break;default:o=or}n=o.bind(null,t,n,e),o=void 0,!Ht||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ti(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=Di(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}jt((function(){var r=i,o=Lt(n),a=[];e:{var s=jo.get(e);if(void 0!==s){var l=wr,u=e;switch(e){case"keypress":if(0===fr(n))break e;case"keydown":case"keyup":l=Ir;break;case"focusin":u="focus",l=Pr;break;case"focusout":u="blur",l=Pr;break;case"beforeblur":case"afterblur":l=Pr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Cr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=kr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=zr;break;case Io:case Vo:case zo:l=Tr;break;case Bo:l=Br;break;case"scroll":l=xr;break;case"wheel":l=Ur;break;case"copy":case"cut":case"paste":l=Dr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Vr}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ut(h,f))&&c.push(ni(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_t||!(u=n.relatedTarget||n.fromElement)||!Di(u)&&!u[ki])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?Di(u):null)&&(u!==(d=Zt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=Cr,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Vr,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:Li(l),p=null==u?s:Li(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,Di(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=oi(p))h++;for(p=0,m=f;m;m=oi(m))p++;for(;0<h-p;)c=oi(c),h--;for(;0<p-h;)f=oi(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=oi(c),f=oi(f)}c=null}else c=null;null!==l&&ii(a,s,l,c,!1),null!==u&&null!==d&&ii(a,d,u,c,!0)}if("select"===(l=(s=r?Li(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=ao;else if(eo(s))if(so)v=go;else{v=mo;var g=ho}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=vo);switch(v&&(v=v(e,r))?to(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ct(s,"number",s.value)),g=r?Li(r):window,e){case"focusin":(eo(g)||"true"===g.contentEditable)&&(To=g,Ro=r,Do=null);break;case"focusout":Do=Ro=To=null;break;case"mousedown":_o=!0;break;case"contextmenu":case"mouseup":case"dragend":_o=!1,Lo(a,n,o);break;case"selectionchange":if(Po)break;case"keydown":case"keyup":Lo(a,n,o)}var y;if(Wr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Zr?Qr(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Yr&&"ko"!==n.locale&&(Zr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Zr&&(y=dr()):(ur="value"in(lr=o)?lr.value:lr.textContent,Zr=!0)),0<(g=ri(r,b)).length&&(b=new _r(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Gr(n))&&(b.data=y))),(y=Kr?function(e,t){switch(e){case"compositionend":return Gr(t);case"keypress":return 32!==t.which?null:(qr=!0,Xr);case"textInput":return(e=t.data)===Xr&&qr?null:e;default:return null}}(e,n):function(e,t){if(Zr)return"compositionend"===e||!Wr&&Qr(e,t)?(e=dr(),cr=ur=lr=null,Zr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=ri(r,"onBeforeInput")).length&&(o=new _r("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}qo(a,t)}))}function ni(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ri(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ut(e,n))&&r.unshift(ni(e,i,o)),null!=(i=Ut(e,t))&&r.push(ni(e,i,o))),e=e.return}return r}function oi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ii(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Ut(n,i))&&a.unshift(ni(n,l,s)):o||null!=(l=Ut(n,i))&&a.push(ni(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ai=/\r\n?/g,si=/\u0000|\uFFFD/g;function li(e){return("string"==typeof e?e:""+e).replace(ai,"\n").replace(si,"")}function ui(e,t,n){if(t=li(t),li(e)!==t&&n)throw Error(me(425))}function ci(){}var di=null,fi=null;function pi(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var hi="function"==typeof setTimeout?setTimeout:void 0,mi="function"==typeof clearTimeout?clearTimeout:void 0,vi="function"==typeof Promise?Promise:void 0,gi="function"==typeof queueMicrotask?queueMicrotask:void 0!==vi?function(e){return vi.resolve(null).then(e).catch(yi)}:hi;function yi(e){setTimeout((function(){throw e}))}function bi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Jn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Jn(t)}function wi(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Ei(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var xi=Math.random().toString(36).slice(2),Si="__reactFiber$"+xi,Ci="__reactProps$"+xi,ki="__reactContainer$"+xi,Pi="__reactEvents$"+xi,Ti="__reactListeners$"+xi,Ri="__reactHandles$"+xi;function Di(e){var t=e[Si];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ki]||n[Si]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ei(e);null!==e;){if(n=e[Si])return n;e=Ei(e)}return t}n=(e=n).parentNode}return null}function _i(e){return!(e=e[Si]||e[ki])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Li(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(me(33))}function Ai(e){return e[Ci]||null}var Mi=[],Oi=-1;function Ni(e){return{current:e}}function Fi(e){0>Oi||(e.current=Mi[Oi],Mi[Oi]=null,Oi--)}function Ii(e,t){Oi++,Mi[Oi]=e.current,e.current=t}var Vi={},zi=Ni(Vi),Bi=Ni(!1),ji=Vi;function Ui(e,t){var n=e.type.contextTypes;if(!n)return Vi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Hi(e){return null!=(e=e.childContextTypes)}function Wi(){Fi(Bi),Fi(zi)}function $i(e,t,n){if(zi.current!==Vi)throw Error(me(168));Ii(zi,t),Ii(Bi,n)}function Ki(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(me(108,Je(e)||"Unknown",o));return Ye({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vi,ji=zi.current,Ii(zi,e),Ii(Bi,Bi.current),!0}function Xi(e,t,n){var r=e.stateNode;if(!r)throw Error(me(169));n?(e=Ki(e,t,ji),r.__reactInternalMemoizedMergedChildContext=e,Fi(Bi),Fi(zi),Ii(zi,e)):Fi(Bi),Ii(Bi,n)}var qi=null,Qi=!1,Gi=!1;function Zi(e){null===qi?qi=[e]:qi.push(e)}function Ji(){if(!Gi&&null!==qi){Gi=!0;var e=0,t=_n;try{var n=qi;for(_n=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qi=null,Qi=!1}catch(o){throw null!==qi&&(qi=qi.slice(e+1)),rn(cn,Ji),o}finally{_n=t,Gi=!1}}return null}var ea=[],ta=0,na=null,ra=0,oa=[],ia=0,aa=null,sa=1,la="";function ua(e,t){ea[ta++]=ra,ea[ta++]=na,na=e,ra=t}function ca(e,t,n){oa[ia++]=sa,oa[ia++]=la,oa[ia++]=aa,aa=e;var r=sa;e=la;var o=32-gn(r)-1;r&=~(1<<o),n+=1;var i=32-gn(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,sa=1<<32-gn(t)+o|n<<o|r,la=i+e}else sa=1<<i|n<<o|r,la=e}function da(e){null!==e.return&&(ua(e,1),ca(e,1,0))}function fa(e){for(;e===na;)na=ea[--ta],ea[ta]=null,ra=ea[--ta],ea[ta]=null;for(;e===aa;)aa=oa[--ia],oa[ia]=null,la=oa[--ia],oa[ia]=null,sa=oa[--ia],oa[ia]=null}var pa=null,ha=null,ma=!1,va=null;function ga(e,t){var n=Uc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ya(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,pa=e,ha=wi(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,pa=e,ha=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==aa?{id:sa,overflow:la}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Uc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,pa=e,ha=null,!0);default:return!1}}function ba(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function wa(e){if(ma){var t=ha;if(t){var n=t;if(!ya(e,t)){if(ba(e))throw Error(me(418));t=wi(n.nextSibling);var r=pa;t&&ya(e,t)?ga(r,n):(e.flags=-4097&e.flags|2,ma=!1,pa=e)}}else{if(ba(e))throw Error(me(418));e.flags=-4097&e.flags|2,ma=!1,pa=e}}}function Ea(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;pa=e}function xa(e){if(e!==pa)return!1;if(!ma)return Ea(e),ma=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!pi(e.type,e.memoizedProps)),t&&(t=ha)){if(ba(e))throw Sa(),Error(me(418));for(;t;)ga(e,t),t=wi(t.nextSibling)}if(Ea(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(me(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ha=wi(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ha=null}}else ha=pa?wi(e.stateNode.nextSibling):null;return!0}function Sa(){for(var e=ha;e;)e=wi(e.nextSibling)}function Ca(){ha=pa=null,ma=!1}function ka(e){null===va?va=[e]:va.push(e)}var Pa=_e.ReactCurrentBatchConfig;function Ta(e,t){if(e&&e.defaultProps){for(var n in t=Ye({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ra=Ni(null),Da=null,_a=null,La=null;function Aa(){La=_a=Da=null}function Ma(e){var t=Ra.current;Fi(Ra),e._currentValue=t}function Oa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Na(e,t){Da=e,La=_a=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(_l=!0),e.firstContext=null)}function Fa(e){var t=e._currentValue;if(La!==e)if(e={context:e,memoizedValue:t,next:null},null===_a){if(null===Da)throw Error(me(308));_a=e,Da.dependencies={lanes:0,firstContext:e}}else _a=_a.next=e;return t}var Ia=null;function Va(e){null===Ia?Ia=[e]:Ia.push(e)}function za(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Va(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ba(e,r)}function Ba(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $a(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&zu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ba(e,n)}return null===(o=r.interleaved)?(t.next=t,Va(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ba(e,n)}function Ka(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Dn(e,n)}}function Ya(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xa(e,t,n,r){var o=e.updateQueue;ja=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=Ye({},d,f);break e;case 2:ja=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Yu|=a,e.lanes=a,e.memoizedState=d}}function qa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(me(191,o));o.call(r)}}}var Qa=(new pe.Component).refs;function Ga(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ye({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Za={isMounted:function(e){return!!(e=e._reactInternals)&&Zt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dc(),o=fc(e),i=Wa(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=$a(e,i,o))&&(pc(t,e,o,r),Ka(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dc(),o=fc(e),i=Wa(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=$a(e,i,o))&&(pc(t,e,o,r),Ka(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dc(),r=fc(e),o=Wa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=$a(e,o,r))&&(pc(t,e,r,n),Ka(t,e,r))}};function Ja(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!bo(n,r)||!bo(o,i))}function es(e,t,n){var r=!1,o=Vi,i=t.contextType;return"object"==typeof i&&null!==i?i=Fa(i):(o=Hi(t)?ji:zi.current,i=(r=null!=(r=t.contextTypes))?Ui(e,o):Vi),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Za,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ts(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Za.enqueueReplaceState(t,t.state,null)}function ns(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Qa,Ua(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Fa(i):(i=Hi(t)?ji:zi.current,o.context=Ui(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ga(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Za.enqueueReplaceState(o,o.state,null),Xa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function rs(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(me(309));var r=n.stateNode}if(!r)throw Error(me(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===Qa&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(me(284));if(!n._owner)throw Error(me(290,e))}return e}function os(e,t){throw e=Object.prototype.toString.call(t),Error(me(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function is(e){return(0,e._init)(e._payload)}function as(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Wc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Xc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var i=n.type;return i===Me?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ue&&is(i)===t.type)?((r=o(t,n.props)).ref=rs(e,t,n),r.return=e,r):((r=$c(n.type,n.key,n.props,null,e.mode,r)).ref=rs(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Kc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Xc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Le:return(n=$c(t.type,t.key,t.props,null,e.mode,n)).ref=rs(e,null,t),n.return=e,n;case Ae:return(t=qc(t,e.mode,n)).return=e,t;case Ue:return d(e,(0,t._init)(t._payload),n)}if(dt(t)||$e(t))return(t=Kc(t,e.mode,n,null)).return=e,t;os(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Le:return n.key===o?l(e,t,n,r):null;case Ae:return n.key===o?u(e,t,n,r):null;case Ue:return f(e,t,(o=n._init)(n._payload),r)}if(dt(n)||$e(n))return null!==o?null:c(e,t,n,r,null);os(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Le:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ae:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ue:return p(e,t,n,(0,r._init)(r._payload),o)}if(dt(r)||$e(r))return c(t,e=e.get(n)||null,r,o,null);os(t,r)}return null}return function s(l,u,c,h){if("object"==typeof c&&null!==c&&c.type===Me&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case Le:e:{for(var m=c.key,v=u;null!==v;){if(v.key===m){if((m=c.type)===Me){if(7===v.tag){n(l,v.sibling),(u=o(v,c.props.children)).return=l,l=u;break e}}else if(v.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===Ue&&is(m)===v.type){n(l,v.sibling),(u=o(v,c.props)).ref=rs(l,v,c),u.return=l,l=u;break e}n(l,v);break}t(l,v),v=v.sibling}c.type===Me?((u=Kc(c.props.children,l.mode,h,c.key)).return=l,l=u):((h=$c(c.type,c.key,c.props,null,l.mode,h)).ref=rs(l,u,c),h.return=l,l=h)}return a(l);case Ae:e:{for(v=c.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(u=o(u,c.children||[])).return=l,l=u;break e}n(l,u);break}t(l,u),u=u.sibling}(u=qc(c,l.mode,h)).return=l,l=u}return a(l);case Ue:return s(l,u,(v=c._init)(c._payload),h)}if(dt(c))return function(o,a,s,l){for(var u=null,c=null,h=a,m=a=0,v=null;null!==h&&m<s.length;m++){h.index>m?(v=h,h=null):v=h.sibling;var g=f(o,h,s[m],l);if(null===g){null===h&&(h=v);break}e&&h&&null===g.alternate&&t(o,h),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g,h=v}if(m===s.length)return n(o,h),ma&&ua(o,m),u;if(null===h){for(;m<s.length;m++)null!==(h=d(o,s[m],l))&&(a=i(h,a,m),null===c?u=h:c.sibling=h,c=h);return ma&&ua(o,m),u}for(h=r(o,h);m<s.length;m++)null!==(v=p(h,o,m,s[m],l))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),ma&&ua(o,m),u}(l,u,c,h);if($e(c))return function(o,a,s,l){var u=$e(s);if("function"!=typeof u)throw Error(me(150));if(null==(s=u.call(s)))throw Error(me(151));for(var c=u=null,h=a,m=a=0,v=null,g=s.next();null!==h&&!g.done;m++,g=s.next()){h.index>m?(v=h,h=null):v=h.sibling;var y=f(o,h,g.value,l);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),a=i(y,a,m),null===c?u=y:c.sibling=y,c=y,h=v}if(g.done)return n(o,h),ma&&ua(o,m),u;if(null===h){for(;!g.done;m++,g=s.next())null!==(g=d(o,g.value,l))&&(a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return ma&&ua(o,m),u}for(h=r(o,h);!g.done;m++,g=s.next())null!==(g=p(h,o,m,g.value,l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),ma&&ua(o,m),u}(l,u,c,h);os(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(u=o(u,c)).return=l,l=u):(n(l,u),(u=Xc(c,l.mode,h)).return=l,l=u),a(l)):n(l,u)}}var ss=as(!0),ls=as(!1),us={},cs=Ni(us),ds=Ni(us),fs=Ni(us);function ps(e){if(e===us)throw Error(me(174));return e}function hs(e,t){switch(Ii(fs,t),Ii(ds,e),Ii(cs,us),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yt(null,"");break;default:t=yt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Fi(cs),Ii(cs,t)}function ms(){Fi(cs),Fi(ds),Fi(fs)}function vs(e){ps(fs.current);var t=ps(cs.current),n=yt(t,e.type);t!==n&&(Ii(ds,e),Ii(cs,n))}function gs(e){ds.current===e&&(Fi(cs),Fi(ds))}var ys=Ni(0);function bs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ws=[];function Es(){for(var e=0;e<ws.length;e++)ws[e]._workInProgressVersionPrimary=null;ws.length=0}var xs=_e.ReactCurrentDispatcher,Ss=_e.ReactCurrentBatchConfig,Cs=0,ks=null,Ps=null,Ts=null,Rs=!1,Ds=!1,_s=0,Ls=0;function As(){throw Error(me(321))}function Ms(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yo(e[n],t[n]))return!1;return!0}function Os(e,t,n,r,o,i){if(Cs=i,ks=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xs.current=null===e||null===e.memoizedState?gl:yl,e=n(r,o),Ds){i=0;do{if(Ds=!1,_s=0,25<=i)throw Error(me(301));i+=1,Ts=Ps=null,t.updateQueue=null,xs.current=bl,e=n(r,o)}while(Ds)}if(xs.current=vl,t=null!==Ps&&null!==Ps.next,Cs=0,Ts=Ps=ks=null,Rs=!1,t)throw Error(me(300));return e}function Ns(){var e=0!==_s;return _s=0,e}function Fs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ts?ks.memoizedState=Ts=e:Ts=Ts.next=e,Ts}function Is(){if(null===Ps){var e=ks.alternate;e=null!==e?e.memoizedState:null}else e=Ps.next;var t=null===Ts?ks.memoizedState:Ts.next;if(null!==t)Ts=t,Ps=e;else{if(null===e)throw Error(me(310));e={memoizedState:(Ps=e).memoizedState,baseState:Ps.baseState,baseQueue:Ps.baseQueue,queue:Ps.queue,next:null},null===Ts?ks.memoizedState=Ts=e:Ts=Ts.next=e}return Ts}function Vs(e,t){return"function"==typeof t?t(e):t}function zs(e){var t=Is(),n=t.queue;if(null===n)throw Error(me(311));n.lastRenderedReducer=e;var r=Ps,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=a=null,l=null,u=i;do{var c=u.lane;if((Cs&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,ks.lanes|=c,Yu|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=s,yo(r,t.memoizedState)||(_l=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,ks.lanes|=i,Yu|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bs(e){var t=Is(),n=t.queue;if(null===n)throw Error(me(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);yo(i,t.memoizedState)||(_l=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function js(){}function Us(e,t){var n=ks,r=Is(),o=t(),i=!yo(r.memoizedState,o);if(i&&(r.memoizedState=o,_l=!0),r=r.queue,el($s.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Ts&&1&Ts.memoizedState.tag){if(n.flags|=2048,qs(9,Ws.bind(null,n,r,o,t),void 0,null),null===Bu)throw Error(me(349));0!=(30&Cs)||Hs(n,t,o)}return o}function Hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ks.updateQueue)?(t={lastEffect:null,stores:null},ks.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ws(e,t,n,r){t.value=n,t.getSnapshot=r,Ks(t)&&Ys(e)}function $s(e,t,n){return n((function(){Ks(t)&&Ys(e)}))}function Ks(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yo(e,n)}catch(r){return!0}}function Ys(e){var t=Ba(e,1);null!==t&&pc(t,e,1,-1)}function Xs(e){var t=Fs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:e},t.queue=e,e=e.dispatch=fl.bind(null,ks,e),[t.memoizedState,e]}function qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ks.updateQueue)?(t={lastEffect:null,stores:null},ks.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Qs(){return Is().memoizedState}function Gs(e,t,n,r){var o=Fs();ks.flags|=e,o.memoizedState=qs(1|t,n,void 0,void 0===r?null:r)}function Zs(e,t,n,r){var o=Is();r=void 0===r?null:r;var i=void 0;if(null!==Ps){var a=Ps.memoizedState;if(i=a.destroy,null!==r&&Ms(r,a.deps))return void(o.memoizedState=qs(t,n,i,r))}ks.flags|=e,o.memoizedState=qs(1|t,n,i,r)}function Js(e,t){return Gs(8390656,8,e,t)}function el(e,t){return Zs(2048,8,e,t)}function tl(e,t){return Zs(4,2,e,t)}function nl(e,t){return Zs(4,4,e,t)}function rl(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ol(e,t,n){return n=null!=n?n.concat([e]):null,Zs(4,4,rl.bind(null,t,e),n)}function il(){}function al(e,t){var n=Is();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ms(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function sl(e,t){var n=Is();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ms(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ll(e,t,n){return 0==(21&Cs)?(e.baseState&&(e.baseState=!1,_l=!0),e.memoizedState=n):(yo(n,t)||(n=Pn(),ks.lanes|=n,Yu|=n,e.baseState=!0),t)}function ul(e,t){var n=_n;_n=0!==n&&4>n?n:4,e(!0);var r=Ss.transition;Ss.transition={};try{e(!1),t()}finally{_n=n,Ss.transition=r}}function cl(){return Is().memoizedState}function dl(e,t,n){var r=fc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pl(e))hl(t,n);else if(null!==(n=za(e,t,n,r))){pc(n,e,r,dc()),ml(n,t,r)}}function fl(e,t,n){var r=fc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pl(e))hl(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,yo(s,a)){var l=t.interleaved;return null===l?(o.next=o,Va(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(u){}null!==(n=za(e,t,o,r))&&(pc(n,e,r,o=dc()),ml(n,t,r))}}function pl(e){var t=e.alternate;return e===ks||null!==t&&t===ks}function hl(e,t){Ds=Rs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ml(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Dn(e,n)}}var vl={readContext:Fa,useCallback:As,useContext:As,useEffect:As,useImperativeHandle:As,useInsertionEffect:As,useLayoutEffect:As,useMemo:As,useReducer:As,useRef:As,useState:As,useDebugValue:As,useDeferredValue:As,useTransition:As,useMutableSource:As,useSyncExternalStore:As,useId:As,unstable_isNewReconciler:!1},gl={readContext:Fa,useCallback:function(e,t){return Fs().memoizedState=[e,void 0===t?null:t],e},useContext:Fa,useEffect:Js,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Gs(4194308,4,rl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gs(4,2,e,t)},useMemo:function(e,t){var n=Fs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dl.bind(null,ks,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Fs().memoizedState=e},useState:Xs,useDebugValue:il,useDeferredValue:function(e){return Fs().memoizedState=e},useTransition:function(){var e=Xs(!1),t=e[0];return e=ul.bind(null,e[1]),Fs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ks,o=Fs();if(ma){if(void 0===n)throw Error(me(407));n=n()}else{if(n=t(),null===Bu)throw Error(me(349));0!=(30&Cs)||Hs(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Js($s.bind(null,r,i,e),[e]),r.flags|=2048,qs(9,Ws.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Fs(),t=Bu.identifierPrefix;if(ma){var n=la;t=":"+t+"R"+(n=(sa&~(1<<32-gn(sa)-1)).toString(32)+n),0<(n=_s++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ls++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yl={readContext:Fa,useCallback:al,useContext:Fa,useEffect:el,useImperativeHandle:ol,useInsertionEffect:tl,useLayoutEffect:nl,useMemo:sl,useReducer:zs,useRef:Qs,useState:function(){return zs(Vs)},useDebugValue:il,useDeferredValue:function(e){return ll(Is(),Ps.memoizedState,e)},useTransition:function(){return[zs(Vs)[0],Is().memoizedState]},useMutableSource:js,useSyncExternalStore:Us,useId:cl,unstable_isNewReconciler:!1},bl={readContext:Fa,useCallback:al,useContext:Fa,useEffect:el,useImperativeHandle:ol,useInsertionEffect:tl,useLayoutEffect:nl,useMemo:sl,useReducer:Bs,useRef:Qs,useState:function(){return Bs(Vs)},useDebugValue:il,useDeferredValue:function(e){var t=Is();return null===Ps?t.memoizedState=e:ll(t,Ps.memoizedState,e)},useTransition:function(){return[Bs(Vs)[0],Is().memoizedState]},useMutableSource:js,useSyncExternalStore:Us,useId:cl,unstable_isNewReconciler:!1};function wl(e,t){try{var n="",r=t;do{n+=Ge(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function El(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function xl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var Sl="function"==typeof WeakMap?WeakMap:Map;function Cl(e,t,n){(n=Wa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tc||(tc=!0,nc=r),xl(0,t)},n}function kl(e,t,n){(n=Wa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){xl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){xl(0,t),"function"!=typeof r&&(null===rc?rc=new Set([this]):rc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Pl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Sl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Fc.bind(null,e,t,n),t.then(e,e))}function Tl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Rl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Wa(-1,1)).tag=2,$a(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Dl=_e.ReactCurrentOwner,_l=!1;function Ll(e,t,n,r){t.child=null===e?ls(t,null,n,r):ss(t,e.child,n,r)}function Al(e,t,n,r,o){n=n.render;var i=t.ref;return Na(t,o),r=Os(e,t,n,r,i,o),n=Ns(),null===e||_l?(ma&&n&&da(t),t.flags|=1,Ll(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tu(e,t,o))}function Ml(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Hc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$c(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ol(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:bo)(a,r)&&e.ref===t.ref)return tu(e,t,o)}return t.flags|=1,(e=Wc(i,r)).ref=t.ref,e.return=t,t.child=e}function Ol(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(bo(i,r)&&e.ref===t.ref){if(_l=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,tu(e,t,o);0!=(131072&e.flags)&&(_l=!0)}}return Il(e,t,n,r,o)}function Nl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ii(Wu,Hu),Hu|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ii(Wu,Hu),Hu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ii(Wu,Hu),Hu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ii(Wu,Hu),Hu|=r;return Ll(e,t,o,n),t.child}function Fl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Il(e,t,n,r,o){var i=Hi(n)?ji:zi.current;return i=Ui(t,i),Na(t,o),n=Os(e,t,n,r,i,o),r=Ns(),null===e||_l?(ma&&r&&da(t),t.flags|=1,Ll(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tu(e,t,o))}function Vl(e,t,n,r,o){if(Hi(n)){var i=!0;Yi(t)}else i=!1;if(Na(t,o),null===t.stateNode)eu(e,t),es(t,n,r),ns(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Fa(u):u=Ui(t,u=Hi(n)?ji:zi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ts(t,a,r,u),ja=!1;var f=t.memoizedState;a.state=f,Xa(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Bi.current||ja?("function"==typeof c&&(Ga(t,n,c,r),l=t.memoizedState),(s=ja||Ja(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ta(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Fa(l):l=Ui(t,l=Hi(n)?ji:zi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ts(t,a,r,l),ja=!1,f=t.memoizedState,a.state=f,Xa(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Bi.current||ja?("function"==typeof p&&(Ga(t,n,p,r),h=t.memoizedState),(u=ja||Ja(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return zl(e,t,n,r,i,o)}function zl(e,t,n,r,o,i){Fl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Xi(t,n,!1),tu(e,t,i);r=t.stateNode,Dl.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ss(t,e.child,null,i),t.child=ss(t,null,s,i)):Ll(e,t,s,i),t.memoizedState=r.state,o&&Xi(t,n,!0),t.child}function Bl(e){var t=e.stateNode;t.pendingContext?$i(0,t.pendingContext,t.pendingContext!==t.context):t.context&&$i(0,t.context,!1),hs(e,t.containerInfo)}function jl(e,t,n,r,o){return Ca(),ka(o),t.flags|=256,Ll(e,t,n,r),t.child}var Ul,Hl,Wl,$l,Kl={dehydrated:null,treeContext:null,retryLane:0};function Yl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xl(e,t,n){var r,o=t.pendingProps,i=ys.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ii(ys,1&i),null===e)return wa(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,a?(o=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=Yc(s,o,0,null),e=Kc(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Yl(n),t.memoizedState=Kl,e):ql(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Ql(e,t,a,r=El(Error(me(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Yc({mode:"visible",children:r.children},o,0,null),(i=Kc(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ss(t,e.child,null,a),t.child.memoizedState=Yl(a),t.memoizedState=Kl,i);if(0==(1&t.mode))return Ql(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Ql(e,t,a,r=El(i=Error(me(419)),r,void 0))}if(s=0!=(a&e.childLanes),_l||s){if(null!==(r=Bu)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ba(e,o),pc(r,e,o,-1))}return Pc(),Ql(e,t,a,r=El(Error(me(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Vc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ha=wi(o.nextSibling),pa=t,ma=!0,va=null,null!==e&&(oa[ia++]=sa,oa[ia++]=la,oa[ia++]=aa,sa=e.id,la=e.overflow,aa=t),t=ql(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(a){a=o.fallback,s=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Wc(i,l)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=Wc(r,a):(a=Kc(a,s,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,s=null===(s=e.child.memoizedState)?Yl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=Kl,o}return e=(a=e.child).sibling,o=Wc(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ql(e,t){return(t=Yc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ql(e,t,n,r){return null!==r&&ka(r),ss(t,e.child,null,n),(e=ql(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oa(e.return,t,n)}function Zl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Jl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ll(e,t,r.children,n),0!=(2&(r=ys.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gl(e,n,t);else if(19===e.tag)Gl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ii(ys,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===bs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Zl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===bs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Zl(t,!0,n,null,i);break;case"together":Zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function eu(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Yu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(me(153));if(null!==t.child){for(n=Wc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function nu(e,t){if(!ma)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ru(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ou(e,t,n){var r=t.pendingProps;switch(fa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ru(t),null;case 1:case 17:return Hi(t.type)&&Wi(),ru(t),null;case 3:return r=t.stateNode,ms(),Fi(Bi),Fi(zi),Es(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(xa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==va&&(gc(va),va=null))),Hl(e,t),ru(t),null;case 5:gs(t);var o=ps(fs.current);if(n=t.type,null!==e&&null!=t.stateNode)Wl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(me(166));return ru(t),null}if(e=ps(cs.current),xa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Si]=t,r[Ci]=i,e=0!=(1&t.mode),n){case"dialog":Qo("cancel",r),Qo("close",r);break;case"iframe":case"object":case"embed":Qo("load",r);break;case"video":case"audio":for(o=0;o<Ko.length;o++)Qo(Ko[o],r);break;case"source":Qo("error",r);break;case"img":case"image":case"link":Qo("error",r),Qo("load",r);break;case"details":Qo("toggle",r);break;case"input":at(r,i),Qo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Qo("invalid",r);break;case"textarea":ht(r,i),Qo("invalid",r)}for(var a in Rt(n,i),o=null,i)if(i.hasOwnProperty(a)){var s=i[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==i.suppressHydrationWarning&&ui(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&ui(r.textContent,s,e),o=["children",""+s]):ge.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&Qo("scroll",r)}switch(n){case"input":nt(r),ut(r,i,!0);break;case"textarea":nt(r),vt(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=ci)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=gt(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Si]=t,e[Ci]=r,Ul(e,t,!1,!1),t.stateNode=e;e:{switch(a=Dt(n,r),n){case"dialog":Qo("cancel",e),Qo("close",e),o=r;break;case"iframe":case"object":case"embed":Qo("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ko.length;o++)Qo(Ko[o],e);o=r;break;case"source":Qo("error",e),o=r;break;case"img":case"image":case"link":Qo("error",e),Qo("load",e),o=r;break;case"details":Qo("toggle",e),o=r;break;case"input":at(e,r),o=it(e,r),Qo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ye({},r,{value:void 0}),Qo("invalid",e);break;case"textarea":ht(e,r),o=pt(e,r),Qo("invalid",e)}for(i in Rt(n,o),s=o)if(s.hasOwnProperty(i)){var l=s[i];"style"===i?Pt(e,l):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&Et(e,l):"children"===i?"string"==typeof l?("textarea"!==n||""!==l)&&xt(e,l):"number"==typeof l&&xt(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(ge.hasOwnProperty(i)?null!=l&&"onScroll"===i&&Qo("scroll",e):null!=l&&De(e,i,l,a))}switch(n){case"input":nt(e),ut(e,r,!1);break;case"textarea":nt(e),vt(e);break;case"option":null!=r.value&&e.setAttribute("value",""+et(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ft(e,!!r.multiple,i,!1):null!=r.defaultValue&&ft(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ci)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ru(t),null;case 6:if(e&&null!=t.stateNode)$l(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(me(166));if(n=ps(fs.current),ps(cs.current),xa(t)){if(r=t.stateNode,n=t.memoizedProps,r[Si]=t,(i=r.nodeValue!==n)&&null!==(e=pa))switch(e.tag){case 3:ui(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ui(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Si]=t,t.stateNode=r}return ru(t),null;case 13:if(Fi(ys),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ma&&null!==ha&&0!=(1&t.mode)&&0==(128&t.flags))Sa(),Ca(),t.flags|=98560,i=!1;else if(i=xa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(me(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(me(317));i[Si]=t}else Ca(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ru(t),i=!1}else null!==va&&(gc(va),va=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ys.current)?0===$u&&($u=3):Pc())),null!==t.updateQueue&&(t.flags|=4),ru(t),null);case 4:return ms(),Hl(e,t),null===e&&Jo(t.stateNode.containerInfo),ru(t),null;case 10:return Ma(t.type._context),ru(t),null;case 19:if(Fi(ys),null===(i=t.memoizedState))return ru(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)nu(i,!1);else{if(0!==$u||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=bs(e))){for(t.flags|=128,nu(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ii(ys,1&ys.current|2),t.child}e=e.sibling}null!==i.tail&&ln()>Ju&&(t.flags|=128,r=!0,nu(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=bs(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),nu(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!ma)return ru(t),null}else 2*ln()-i.renderingStartTime>Ju&&1073741824!==n&&(t.flags|=128,r=!0,nu(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ln(),t.sibling=null,n=ys.current,Ii(ys,r?1&n|2:1&n),t):(ru(t),null);case 22:case 23:return xc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Hu)&&(ru(t),6&t.subtreeFlags&&(t.flags|=8192)):ru(t),null;case 24:case 25:return null}throw Error(me(156,t.tag))}function iu(e,t){switch(fa(t),t.tag){case 1:return Hi(t.type)&&Wi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ms(),Fi(Bi),Fi(zi),Es(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return gs(t),null;case 13:if(Fi(ys),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(me(340));Ca()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Fi(ys),null;case 4:return ms(),null;case 10:return Ma(t.type._context),null;case 22:case 23:return xc(),null;default:return null}}Ul=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Hl=function(){},Wl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ps(cs.current);var i,a=null;switch(n){case"input":o=it(e,o),r=it(e,r),a=[];break;case"select":o=Ye({},o,{value:void 0}),r=Ye({},r,{value:void 0}),a=[];break;case"textarea":o=pt(e,o),r=pt(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ci)}for(u in Rt(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ge.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ge.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Qo("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},$l=function(e,t,n,r){n!==r&&(t.flags|=4)};var au=!1,su=!1,lu="function"==typeof WeakSet?WeakSet:Set,uu=null;function cu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Nc(e,t,r)}else n.current=null}function du(e,t,n){try{n()}catch(r){Nc(e,t,r)}}var fu=!1;function pu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&du(t,n,i)}o=o.next}while(o!==r)}}function hu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function vu(e){var t=e.alternate;null!==t&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Si],delete t[Ci],delete t[Pi],delete t[Ti],delete t[Ri])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gu(e){return 5===e.tag||3===e.tag||4===e.tag}function yu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function bu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ci));else if(4!==r&&null!==(e=e.child))for(bu(e,t,n),e=e.sibling;null!==e;)bu(e,t,n),e=e.sibling}function wu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(wu(e,t,n),e=e.sibling;null!==e;)wu(e,t,n),e=e.sibling}var Eu=null,xu=!1;function Su(e,t,n){for(n=n.child;null!==n;)Cu(e,t,n),n=n.sibling}function Cu(e,t,n){if(vn&&"function"==typeof vn.onCommitFiberUnmount)try{vn.onCommitFiberUnmount(mn,n)}catch(s){}switch(n.tag){case 5:su||cu(n,t);case 6:var r=Eu,o=xu;Eu=null,Su(e,t,n),xu=o,null!==(Eu=r)&&(xu?(e=Eu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Eu.removeChild(n.stateNode));break;case 18:null!==Eu&&(xu?(e=Eu,n=n.stateNode,8===e.nodeType?bi(e.parentNode,n):1===e.nodeType&&bi(e,n),Jn(e)):bi(Eu,n.stateNode));break;case 4:r=Eu,o=xu,Eu=n.stateNode.containerInfo,xu=!0,Su(e,t,n),Eu=r,xu=o;break;case 0:case 11:case 14:case 15:if(!su&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&du(n,t,a),o=o.next}while(o!==r)}Su(e,t,n);break;case 1:if(!su&&(cu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Nc(n,t,s)}Su(e,t,n);break;case 21:Su(e,t,n);break;case 22:1&n.mode?(su=(r=su)||null!==n.memoizedState,Su(e,t,n),su=r):Su(e,t,n);break;default:Su(e,t,n)}}function ku(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new lu),t.forEach((function(t){var r=zc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Pu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:Eu=s.stateNode,xu=!1;break e;case 3:case 4:Eu=s.stateNode.containerInfo,xu=!0;break e}s=s.return}if(null===Eu)throw Error(me(160));Cu(i,a,o),Eu=null,xu=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(u){Nc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Tu(t,e),t=t.sibling}function Tu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pu(t,e),Ru(e),4&r){try{pu(3,e,e.return),hu(3,e)}catch(m){Nc(e,e.return,m)}try{pu(5,e,e.return)}catch(m){Nc(e,e.return,m)}}break;case 1:Pu(t,e),Ru(e),512&r&&null!==n&&cu(n,n.return);break;case 5:if(Pu(t,e),Ru(e),512&r&&null!==n&&cu(n,n.return),32&e.flags){var o=e.stateNode;try{xt(o,"")}catch(m){Nc(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===i.type&&null!=i.name&&st(o,i),Dt(s,a);var u=Dt(s,i);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];"style"===c?Pt(o,d):"dangerouslySetInnerHTML"===c?Et(o,d):"children"===c?xt(o,d):De(o,c,d,u)}switch(s){case"input":lt(o,i);break;case"textarea":mt(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?ft(o,!!i.multiple,p,!1):f!==!!i.multiple&&(null!=i.defaultValue?ft(o,!!i.multiple,i.defaultValue,!0):ft(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ci]=i}catch(m){Nc(e,e.return,m)}}break;case 6:if(Pu(t,e),Ru(e),4&r){if(null===e.stateNode)throw Error(me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(m){Nc(e,e.return,m)}}break;case 3:if(Pu(t,e),Ru(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Jn(t.containerInfo)}catch(m){Nc(e,e.return,m)}break;case 4:default:Pu(t,e),Ru(e);break;case 13:Pu(t,e),Ru(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Zu=ln())),4&r&&ku(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(su=(u=su)||c,Pu(t,e),su=u):Pu(t,e),Ru(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(uu=e,c=e.child;null!==c;){for(d=uu=c;null!==uu;){switch(p=(f=uu).child,f.tag){case 0:case 11:case 14:case 15:pu(4,f,f.return);break;case 1:cu(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){Nc(r,n,m)}}break;case 5:cu(f,f.return);break;case 22:if(null!==f.memoizedState){Au(d);continue}}null!==p?(p.return=f,uu=p):Au(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=kt("display",a))}catch(m){Nc(e,e.return,m)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){Nc(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Pu(t,e),Ru(e),4&r&&ku(e);case 21:}}function Ru(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(gu(n)){var r=n;break e}n=n.return}throw Error(me(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(xt(o,""),r.flags&=-33),wu(e,yu(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;bu(e,yu(e),i);break;default:throw Error(me(161))}}catch(a){Nc(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Du(e,t,n){uu=e,_u(e)}function _u(e,t,n){for(var r=0!=(1&e.mode);null!==uu;){var o=uu,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||au;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||su;s=au;var u=su;if(au=a,(su=l)&&!u)for(uu=o;null!==uu;)l=(a=uu).child,22===a.tag&&null!==a.memoizedState?Mu(o):null!==l?(l.return=a,uu=l):Mu(o);for(;null!==i;)uu=i,_u(i),i=i.sibling;uu=o,au=s,su=u}Lu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,uu=i):Lu(e)}}function Lu(e){for(;null!==uu;){var t=uu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:su||hu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!su)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ta(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&qa(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qa(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Jn(d)}}}break;default:throw Error(me(163))}su||512&t.flags&&mu(t)}catch(f){Nc(t,t.return,f)}}if(t===e){uu=null;break}if(null!==(n=t.sibling)){n.return=t.return,uu=n;break}uu=t.return}}function Au(e){for(;null!==uu;){var t=uu;if(t===e){uu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,uu=n;break}uu=t.return}}function Mu(e){for(;null!==uu;){var t=uu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hu(4,t)}catch(l){Nc(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Nc(t,o,l)}}var i=t.return;try{mu(t)}catch(l){Nc(t,i,l)}break;case 5:var a=t.return;try{mu(t)}catch(l){Nc(t,a,l)}}}catch(l){Nc(t,t.return,l)}if(t===e){uu=null;break}var s=t.sibling;if(null!==s){s.return=t.return,uu=s;break}uu=t.return}}var Ou,Nu=Math.ceil,Fu=_e.ReactCurrentDispatcher,Iu=_e.ReactCurrentOwner,Vu=_e.ReactCurrentBatchConfig,zu=0,Bu=null,ju=null,Uu=0,Hu=0,Wu=Ni(0),$u=0,Ku=null,Yu=0,Xu=0,qu=0,Qu=null,Gu=null,Zu=0,Ju=1/0,ec=null,tc=!1,nc=null,rc=null,oc=!1,ic=null,ac=0,sc=0,lc=null,uc=-1,cc=0;function dc(){return 0!=(6&zu)?ln():-1!==uc?uc:uc=ln()}function fc(e){return 0==(1&e.mode)?1:0!=(2&zu)&&0!==Uu?Uu&-Uu:null!==Pa.transition?(0===cc&&(cc=Pn()),cc):0!==(e=_n)?e:e=void 0===(e=window.event)?16:sr(e.type)}function pc(e,t,n,r){if(50<sc)throw sc=0,lc=null,Error(me(185));Rn(e,n,r),0!=(2&zu)&&e===Bu||(e===Bu&&(0==(2&zu)&&(Xu|=n),4===$u&&yc(e,Uu)),hc(e,r),1===n&&0===zu&&0==(1&t.mode)&&(Ju=ln()+500,Qi&&Ji()))}function hc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-gn(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=Cn(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=Sn(e,e===Bu?Uu:0);if(0===r)null!==n&&on(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&on(n),1===t)0===e.tag?function(e){Qi=!0,Zi(e)}(bc.bind(null,e)):Zi(bc.bind(null,e)),gi((function(){0==(6&zu)&&Ji()})),n=null;else{switch(Ln(r)){case 1:n=cn;break;case 4:n=dn;break;case 16:default:n=fn;break;case 536870912:n=hn}n=Bc(n,mc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function mc(e,t){if(uc=-1,cc=0,0!=(6&zu))throw Error(me(327));var n=e.callbackNode;if(Mc()&&e.callbackNode!==n)return null;var r=Sn(e,e===Bu?Uu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Tc(e,r);else{t=r;var o=zu;zu|=2;var i=kc();for(Bu===e&&Uu===t||(ec=null,Ju=ln()+500,Sc(e,t));;)try{Dc();break}catch(s){Cc(e,s)}Aa(),Fu.current=i,zu=o,null!==ju?t=0:(Bu=null,Uu=0,t=$u)}if(0!==t){if(2===t&&(0!==(o=kn(e))&&(r=o,t=vc(e,o))),1===t)throw n=Ku,Sc(e,0),yc(e,r),hc(e,ln()),n;if(6===t)yc(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!yo(i(),o))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Tc(e,r))&&(0!==(i=kn(e))&&(r=i,t=vc(e,i))),1===t))throw n=Ku,Sc(e,0),yc(e,r),hc(e,ln()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(me(345));case 2:case 5:Ac(e,Gu,ec);break;case 3:if(yc(e,r),(130023424&r)===r&&10<(t=Zu+500-ln())){if(0!==Sn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){dc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hi(Ac.bind(null,e,Gu,ec),t);break}Ac(e,Gu,ec);break;case 4:if(yc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-gn(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=ln()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nu(r/1960))-r)){e.timeoutHandle=hi(Ac.bind(null,e,Gu,ec),r);break}Ac(e,Gu,ec);break;default:throw Error(me(329))}}}return hc(e,ln()),e.callbackNode===n?mc.bind(null,e):null}function vc(e,t){var n=Qu;return e.current.memoizedState.isDehydrated&&(Sc(e,t).flags|=256),2!==(e=Tc(e,t))&&(t=Gu,Gu=n,null!==t&&gc(t)),e}function gc(e){null===Gu?Gu=e:Gu.push.apply(Gu,e)}function yc(e,t){for(t&=~qu,t&=~Xu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-gn(t),r=1<<n;e[n]=-1,t&=~r}}function bc(e){if(0!=(6&zu))throw Error(me(327));Mc();var t=Sn(e,0);if(0==(1&t))return hc(e,ln()),null;var n=Tc(e,t);if(0!==e.tag&&2===n){var r=kn(e);0!==r&&(t=r,n=vc(e,r))}if(1===n)throw n=Ku,Sc(e,0),yc(e,t),hc(e,ln()),n;if(6===n)throw Error(me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ac(e,Gu,ec),hc(e,ln()),null}function wc(e,t){var n=zu;zu|=1;try{return e(t)}finally{0===(zu=n)&&(Ju=ln()+500,Qi&&Ji())}}function Ec(e){null!==ic&&0===ic.tag&&0==(6&zu)&&Mc();var t=zu;zu|=1;var n=Vu.transition,r=_n;try{if(Vu.transition=null,_n=1,e)return e()}finally{_n=r,Vu.transition=n,0==(6&(zu=t))&&Ji()}}function xc(){Hu=Wu.current,Fi(Wu)}function Sc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,mi(n)),null!==ju)for(n=ju.return;null!==n;){var r=n;switch(fa(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Wi();break;case 3:ms(),Fi(Bi),Fi(zi),Es();break;case 5:gs(r);break;case 4:ms();break;case 13:case 19:Fi(ys);break;case 10:Ma(r.type._context);break;case 22:case 23:xc()}n=n.return}if(Bu=e,ju=e=Wc(e.current,null),Uu=Hu=t,$u=0,Ku=null,qu=Xu=Yu=0,Gu=Qu=null,null!==Ia){for(t=0;t<Ia.length;t++)if(null!==(r=(n=Ia[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ia=null}return e}function Cc(e,t){for(;;){var n=ju;try{if(Aa(),xs.current=vl,Rs){for(var r=ks.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Rs=!1}if(Cs=0,Ts=Ps=ks=null,Ds=!1,_s=0,Iu.current=null,null===n||null===n.return){$u=1,Ku=t,ju=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Uu,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Tl(a);if(null!==p){p.flags&=-257,Rl(p,a,s,0,t),1&p.mode&&Pl(i,u,t),l=u;var h=(t=p).updateQueue;if(null===h){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}if(0==(1&t)){Pl(i,u,t),Pc();break e}l=Error(me(426))}else if(ma&&1&s.mode){var v=Tl(a);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),Rl(v,a,s,0,t),ka(wl(l,s));break e}}i=l=wl(l,s),4!==$u&&($u=2),null===Qu?Qu=[i]:Qu.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ya(i,Cl(0,l,t));break e;case 1:s=l;var g=i.type,y=i.stateNode;if(0==(128&i.flags)&&("function"==typeof g.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===rc||!rc.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ya(i,kl(i,s,t));break e}}i=i.return}while(null!==i)}Lc(n)}catch(b){t=b,ju===n&&null!==n&&(ju=n=n.return);continue}break}}function kc(){var e=Fu.current;return Fu.current=vl,null===e?vl:e}function Pc(){0!==$u&&3!==$u&&2!==$u||($u=4),null===Bu||0==(268435455&Yu)&&0==(268435455&Xu)||yc(Bu,Uu)}function Tc(e,t){var n=zu;zu|=2;var r=kc();for(Bu===e&&Uu===t||(ec=null,Sc(e,t));;)try{Rc();break}catch(o){Cc(e,o)}if(Aa(),zu=n,Fu.current=r,null!==ju)throw Error(me(261));return Bu=null,Uu=0,$u}function Rc(){for(;null!==ju;)_c(ju)}function Dc(){for(;null!==ju&&!an();)_c(ju)}function _c(e){var t=Ou(e.alternate,e,Hu);e.memoizedProps=e.pendingProps,null===t?Lc(e):ju=t,Iu.current=null}function Lc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=ou(n,t,Hu)))return void(ju=n)}else{if(null!==(n=iu(n,t)))return n.flags&=32767,void(ju=n);if(null===e)return $u=6,void(ju=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(ju=t);ju=t=e}while(null!==t);0===$u&&($u=5)}function Ac(e,t,n){var r=_n,o=Vu.transition;try{Vu.transition=null,_n=1,function(e,t,n,r){do{Mc()}while(null!==ic);if(0!=(6&zu))throw Error(me(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(me(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-gn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Bu&&(ju=Bu=null,Uu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||oc||(oc=!0,Bc(fn,(function(){return Mc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Vu.transition,Vu.transition=null;var a=_n;_n=1;var s=zu;zu|=4,Iu.current=null,function(e,t){if(di=tr,Co(e=So())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(s=a+o),d!==i||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=a),f===i&&++c===r&&(l=a),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fi={focusedElem:e,selectionRange:n},tr=!1,uu=t;null!==uu;)if(e=(t=uu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,uu=e;else for(;null!==uu;){t=uu;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,v=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ta(t.type,m),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(me(163))}}catch(w){Nc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,uu=e;break}uu=t.return}h=fu,fu=!1}(e,n),Tu(n,e),ko(fi),tr=!!di,fi=di=null,e.current=n,Du(n),sn(),zu=s,_n=a,Vu.transition=i}else e.current=n;if(oc&&(oc=!1,ic=e,ac=o),i=e.pendingLanes,0===i&&(rc=null),function(e){if(vn&&"function"==typeof vn.onCommitFiberRoot)try{vn.onCommitFiberRoot(mn,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),hc(e,ln()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(tc)throw tc=!1,e=nc,nc=null,e;0!=(1&ac)&&0!==e.tag&&Mc(),i=e.pendingLanes,0!=(1&i)?e===lc?sc++:(sc=0,lc=e):sc=0,Ji()}(e,t,n,r)}finally{Vu.transition=o,_n=r}return null}function Mc(){if(null!==ic){var e=Ln(ac),t=Vu.transition,n=_n;try{if(Vu.transition=null,_n=16>e?16:e,null===ic)var r=!1;else{if(e=ic,ic=null,ac=0,0!=(6&zu))throw Error(me(331));var o=zu;for(zu|=4,uu=e.current;null!==uu;){var i=uu,a=i.child;if(0!=(16&uu.flags)){var s=i.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(uu=u;null!==uu;){var c=uu;switch(c.tag){case 0:case 11:case 15:pu(8,c,i)}var d=c.child;if(null!==d)d.return=c,uu=d;else for(;null!==uu;){var f=(c=uu).sibling,p=c.return;if(vu(c),c===u){uu=null;break}if(null!==f){f.return=p,uu=f;break}uu=p}}}var h=i.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}uu=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,uu=a;else e:for(;null!==uu;){if(0!=(2048&(i=uu).flags))switch(i.tag){case 0:case 11:case 15:pu(9,i,i.return)}var g=i.sibling;if(null!==g){g.return=i.return,uu=g;break e}uu=i.return}}var y=e.current;for(uu=y;null!==uu;){var b=(a=uu).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,uu=b;else e:for(a=y;null!==uu;){if(0!=(2048&(s=uu).flags))try{switch(s.tag){case 0:case 11:case 15:hu(9,s)}}catch(E){Nc(s,s.return,E)}if(s===a){uu=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,uu=w;break e}uu=s.return}}if(zu=o,Ji(),vn&&"function"==typeof vn.onPostCommitFiberRoot)try{vn.onPostCommitFiberRoot(mn,e)}catch(E){}r=!0}return r}finally{_n=n,Vu.transition=t}}return!1}function Oc(e,t,n){e=$a(e,t=Cl(0,t=wl(n,t),1),1),t=dc(),null!==e&&(Rn(e,1,t),hc(e,t))}function Nc(e,t,n){if(3===e.tag)Oc(e,e,n);else for(;null!==t;){if(3===t.tag){Oc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===rc||!rc.has(r))){t=$a(t,e=kl(t,e=wl(n,e),1),1),e=dc(),null!==t&&(Rn(t,1,e),hc(t,e));break}}t=t.return}}function Fc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=dc(),e.pingedLanes|=e.suspendedLanes&n,Bu===e&&(Uu&n)===n&&(4===$u||3===$u&&(130023424&Uu)===Uu&&500>ln()-Zu?Sc(e,0):qu|=n),hc(e,t)}function Ic(e,t){0===t&&(0==(1&e.mode)?t=1:(t=En,0==(130023424&(En<<=1))&&(En=4194304)));var n=dc();null!==(e=Ba(e,t))&&(Rn(e,t,n),hc(e,n))}function Vc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ic(e,n)}function zc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(me(314))}null!==r&&r.delete(t),Ic(e,n)}function Bc(e,t){return rn(e,t)}function jc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Uc(e,t,n,r){return new jc(e,t,n,r)}function Hc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wc(e,t){var n=e.alternate;return null===n?((n=Uc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $c(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Hc(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Me:return Kc(n.children,o,i,t);case Oe:a=8,o|=8;break;case Ne:return(e=Uc(12,n,t,2|o)).elementType=Ne,e.lanes=i,e;case ze:return(e=Uc(13,n,t,o)).elementType=ze,e.lanes=i,e;case Be:return(e=Uc(19,n,t,o)).elementType=Be,e.lanes=i,e;case He:return Yc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Fe:a=10;break e;case Ie:a=9;break e;case Ve:a=11;break e;case je:a=14;break e;case Ue:a=16,r=null;break e}throw Error(me(130,null==e?e:typeof e,""))}return(t=Uc(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Kc(e,t,n,r){return(e=Uc(7,e,r,t)).lanes=n,e}function Yc(e,t,n,r){return(e=Uc(22,e,r,t)).elementType=He,e.lanes=n,e.stateNode={isHidden:!1},e}function Xc(e,t,n){return(e=Uc(6,e,null,t)).lanes=n,e}function qc(e,t,n){return(t=Uc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tn(0),this.expirationTimes=Tn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gc(e,t,n,r,o,i,a,s,l){return e=new Qc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Uc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ua(i),e}function Zc(e){if(!e)return Vi;e:{if(Zt(e=e._reactInternals)!==e||1!==e.tag)throw Error(me(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Hi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(me(171))}if(1===e.tag){var n=e.type;if(Hi(n))return Ki(e,n,t)}return t}function Jc(e,t,n,r,o,i,a,s,l){return(e=Gc(n,r,!0,e,0,i,0,s,l)).context=Zc(null),n=e.current,(i=Wa(r=dc(),o=fc(n))).callback=null!=t?t:null,$a(n,i,o),e.current.lanes=o,Rn(e,o,r),hc(e,r),e}function ed(e,t,n,r){var o=t.current,i=dc(),a=fc(o);return n=Zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Wa(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=$a(o,t,a))&&(pc(e,o,a,i),Ka(e,o,a)),a}function td(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nd(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rd(e,t){nd(e,t),(e=e.alternate)&&nd(e,t)}Ou=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Bi.current)_l=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return _l=!1,function(e,t,n){switch(t.tag){case 3:Bl(t),Ca();break;case 5:vs(t);break;case 1:Hi(t.type)&&Yi(t);break;case 4:hs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ii(Ra,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ii(ys,1&ys.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Xl(e,t,n):(Ii(ys,1&ys.current),null!==(e=tu(e,t,n))?e.sibling:null);Ii(ys,1&ys.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Jl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ii(ys,ys.current),r)break;return null;case 22:case 23:return t.lanes=0,Nl(e,t,n)}return tu(e,t,n)}(e,t,n);_l=0!=(131072&e.flags)}else _l=!1,ma&&0!=(1048576&t.flags)&&ca(t,ra,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;eu(e,t),e=t.pendingProps;var o=Ui(t,zi.current);Na(t,n),o=Os(null,t,r,e,o,n);var i=Ns();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Hi(r)?(i=!0,Yi(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ua(t),o.updater=Za,t.stateNode=o,o._reactInternals=t,ns(t,r,e,n),t=zl(null,t,r,!0,i,n)):(t.tag=0,ma&&i&&da(t),Ll(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(eu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Hc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ve)return 11;if(e===je)return 14}return 2}(r),e=Ta(r,e),o){case 0:t=Il(null,t,r,e,n);break e;case 1:t=Vl(null,t,r,e,n);break e;case 11:t=Al(null,t,r,e,n);break e;case 14:t=Ml(null,t,r,Ta(r.type,e),n);break e}throw Error(me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Il(e,t,r,o=t.elementType===r?o:Ta(r,o),n);case 1:return r=t.type,o=t.pendingProps,Vl(e,t,r,o=t.elementType===r?o:Ta(r,o),n);case 3:e:{if(Bl(t),null===e)throw Error(me(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ha(e,t),Xa(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=jl(e,t,r,n,o=wl(Error(me(423)),t));break e}if(r!==o){t=jl(e,t,r,n,o=wl(Error(me(424)),t));break e}for(ha=wi(t.stateNode.containerInfo.firstChild),pa=t,ma=!0,va=null,n=ls(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ca(),r===o){t=tu(e,t,n);break e}Ll(e,t,r,n)}t=t.child}return t;case 5:return vs(t),null===e&&wa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,pi(r,o)?a=null:null!==i&&pi(r,i)&&(t.flags|=32),Fl(e,t),Ll(e,t,a,n),t.child;case 6:return null===e&&wa(t),null;case 13:return Xl(e,t,n);case 4:return hs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ss(t,null,r,n):Ll(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Al(e,t,r,o=t.elementType===r?o:Ta(r,o),n);case 7:return Ll(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ll(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ii(Ra,r._currentValue),r._currentValue=a,null!==i)if(yo(i.value,a)){if(i.children===o.children&&!Bi.current){t=tu(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){a=i.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===i.tag){(l=Wa(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Oa(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(me(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Oa(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Ll(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Na(t,n),r=r(o=Fa(o)),t.flags|=1,Ll(e,t,r,n),t.child;case 14:return o=Ta(r=t.type,t.pendingProps),Ml(e,t,r,o=Ta(r.type,o),n);case 15:return Ol(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ta(r,o),eu(e,t),t.tag=1,Hi(r)?(e=!0,Yi(t)):e=!1,Na(t,n),es(t,r,o),ns(t,r,o,n),zl(null,t,r,!0,e,n);case 19:return Jl(e,t,n);case 22:return Nl(e,t,n)}throw Error(me(156,t.tag))};var od="function"==typeof reportError?reportError:function(e){console.error(e)};function id(e){this._internalRoot=e}function ad(e){this._internalRoot=e}function sd(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ld(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ud(){}function cd(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=td(a);s.call(e)}}ed(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=td(a);i.call(e)}}var a=Jc(t,r,e,0,null,!1,0,"",ud);return e._reactRootContainer=a,e[ki]=a.current,Jo(8===e.nodeType?e.parentNode:e),Ec(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=td(l);s.call(e)}}var l=Gc(e,0,!1,null,0,!1,0,"",ud);return e._reactRootContainer=l,e[ki]=l.current,Jo(8===e.nodeType?e.parentNode:e),Ec((function(){ed(t,l,n,r)})),l}(n,t,e,o,r);return td(a)}ad.prototype.render=id.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(me(409));ed(e,t,null,null)},ad.prototype.unmount=id.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Ec((function(){ed(null,e,null,null)})),t[ki]=null}},ad.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wn.length&&0!==t&&t<Wn[n].priority;n++);Wn.splice(n,0,e),0===n&&Xn(e)}},An=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xn(t.pendingLanes);0!==n&&(Dn(t,1|n),hc(t,ln()),0==(6&zu)&&(Ju=ln()+500,Ji()))}break;case 13:Ec((function(){var t=Ba(e,1);if(null!==t){var n=dc();pc(t,e,1,n)}})),rd(e,1)}},Mn=function(e){if(13===e.tag){var t=Ba(e,134217728);if(null!==t)pc(t,e,134217728,dc());rd(e,134217728)}},On=function(e){if(13===e.tag){var t=fc(e),n=Ba(e,t);if(null!==n)pc(n,e,t,dc());rd(e,t)}},Nn=function(){return _n},Fn=function(e,t){var n=_n;try{return _n=e,t()}finally{_n=n}},At=function(e,t,n){switch(t){case"input":if(lt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ai(r);if(!o)throw Error(me(90));rt(r),lt(r,o)}}}break;case"textarea":mt(e,n);break;case"select":null!=(t=n.value)&&ft(e,!!n.multiple,t,!1)}},Vt=wc,zt=Ec;var dd={usingClientEntryPoint:!1,Events:[_i,Li,Ai,Ft,It,wc]},fd={findFiberByHostInstance:Di,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},pd={bundleType:fd.bundleType,version:fd.version,rendererPackageName:fd.rendererPackageName,rendererConfig:fd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_e.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tn(e))?null:e.stateNode},findFiberByHostInstance:fd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var hd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hd.isDisabled&&hd.supportsFiber)try{mn=hd.inject(pd),vn=hd}catch(wt){}}ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dd,ue.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!sd(t))throw Error(me(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ae,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ue.createRoot=function(e,t){if(!sd(e))throw Error(me(299));var n=!1,r="",o=od;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Gc(e,1,!1,null,0,n,0,r,o),e[ki]=t.current,Jo(8===e.nodeType?e.parentNode:e),new id(t)},ue.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(me(188));throw e=Object.keys(e).join(","),Error(me(268,e))}return e=null===(e=tn(t))?null:e.stateNode},ue.flushSync=function(e){return Ec(e)},ue.hydrate=function(e,t,n){if(!ld(t))throw Error(me(200));return cd(null,e,t,!0,n)},ue.hydrateRoot=function(e,t,n){if(!sd(e))throw Error(me(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=od;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Jc(t,null,e,1,null!=n?n:null,o,0,i,a),e[ki]=t.current,Jo(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ad(t)},ue.render=function(e,t,n){if(!ld(t))throw Error(me(200));return cd(null,e,t,!1,n)},ue.unmountComponentAtNode=function(e){if(!ld(e))throw Error(me(40));return!!e._reactRootContainer&&(Ec((function(){cd(null,null,e,!1,(function(){e._reactRootContainer=null,e[ki]=null}))})),!0)},ue.unstable_batchedUpdates=wc,ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ld(n))throw Error(me(200));if(null==e||void 0===e._reactInternals)throw Error(me(38));return cd(e,t,n,!1,r)},ue.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),le.exports=ue;var md=le.exports;const vd=t(md),gd=I.forwardRef(((e,t)=>{const{children:n,...r}=e,o=I.Children.toArray(n),i=o.find(wd);if(i){const e=i.props.children,n=o.map((t=>t===i?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t));return I.createElement(yd,Q({},r,{ref:t}),I.isValidElement(e)?I.cloneElement(e,void 0,n):null)}return I.createElement(yd,Q({},r,{ref:t}),n)}));gd.displayName="Slot";const yd=I.forwardRef(((e,t)=>{const{children:n,...r}=e;return I.isValidElement(n)?I.cloneElement(n,{...Ed(r,n.props),ref:J(t,n.ref)}):I.Children.count(n)>1?I.Children.only(null):null}));yd.displayName="SlotClone";const bd=({children:e})=>I.createElement(I.Fragment,null,e);function wd(e){return I.isValidElement(e)&&e.type===bd}function Ed(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const xd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=I.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?gd:t;return I.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),I.createElement(i,Q({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Sd(e,t){e&&md.flushSync((()=>e.dispatchEvent(t)))}const Cd="dismissableLayer.update",kd="dismissableLayer.pointerDownOutside",Pd="dismissableLayer.focusOutside";let Td;const Rd=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dd=I.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=I.useContext(Rd),[d,f]=I.useState(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,h]=I.useState({}),m=ee(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,x=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ae(e),r=I.useRef(!1),o=I.useRef((()=>{}));return I.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Ld(kd,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),S=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ae(e),r=I.useRef(!1);return I.useEffect((()=>{const e=e=>{if(e.target&&!r.current){Ld(Pd,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ae(e);I.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),I.useEffect((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(Td=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),_d(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Td)}}),[d,p,r,c]),I.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),_d())}),[d,c]),I.useEffect((()=>{const e=()=>h({});return document.addEventListener(Cd,e),()=>document.removeEventListener(Cd,e)}),[]),I.createElement(xd.div,Q({},u,{ref:m,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,S.onFocusCapture),onBlurCapture:te(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function _d(){const e=new CustomEvent(Cd);document.dispatchEvent(e)}function Ld(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Sd(o,i):o.dispatchEvent(i)}const Ad=Dd,Md=I.forwardRef(((e,t)=>{const n=I.useContext(Rd),r=I.useRef(null),o=ee(t,r);return I.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),I.createElement(xd.div,Q({},e,{ref:o}))})),Od="focusScope.autoFocusOnMount",Nd="focusScope.autoFocusOnUnmount",Fd={bubbles:!1,cancelable:!0},Id=I.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=I.useState(null),u=ae(o),c=ae(i),d=I.useRef(null),f=ee(t,(e=>l(e))),p=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:jd(d.current,{select:!0})},t=function(e){!p.paused&&s&&(s.contains(e.relatedTarget)||jd(d.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,p.paused]),I.useEffect((()=>{if(s){Ud.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Od,Fd);s.addEventListener(Od,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(jd(r,{select:t}),document.activeElement!==n)return}((e=Vd(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&jd(s))}return()=>{s.removeEventListener(Od,u),setTimeout((()=>{const e=new CustomEvent(Nd,Fd);s.addEventListener(Nd,c),s.dispatchEvent(e),e.defaultPrevented||jd(null!=t?t:document.body,{select:!0}),s.removeEventListener(Nd,c),Ud.remove(p)}),0)}}var e}),[s,u,c,p]);const h=I.useCallback((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Vd(e),n=zd(t,e),r=zd(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&jd(i,{select:!0})):(e.preventDefault(),n&&jd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return I.createElement(xd.div,Q({tabIndex:-1},a,{ref:f,onKeyDown:h}))}));function Vd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zd(e,t){for(const n of e)if(!Bd(n,{upTo:t}))return n}function Bd(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function jd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Ud=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Hd(e,t),e.unshift(t)},remove(t){var n;e=Hd(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Hd(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Wd=I.forwardRef(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?vd.createPortal(I.createElement(xd.div,Q({},o,{ref:t})),r):null}));const $d=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=I.useState(),r=I.useRef({}),o=I.useRef(e),i=I.useRef("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return I.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect((()=>{const e=Kd(r.current);i.current="mounted"===s?e:"none"}),[s]),ne((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Kd(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),ne((()=>{if(t){const e=e=>{const n=Kd(r.current).includes(e.animationName);e.target===t&&n&&md.flushSync((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Kd(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:I.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):I.Children.only(n),i=ee(r.ref,o.ref);return"function"==typeof n||r.isPresent?I.cloneElement(o,{ref:i}):null};function Kd(e){return(null==e?void 0:e.animationName)||"none"}$d.displayName="Presence";let Yd=0;function Xd(){I.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:qd()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:qd()),Yd++,()=>{1===Yd&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Yd--}}),[])}function qd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Qd=function(){return Qd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qd.apply(this,arguments)};function Gd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Zd="right-scroll-bar-position",Jd="width-before-scroll-bar";function ef(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=I.useState((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}function tf(e){return e}var nf=function(e){var t=e.sideCar,n=Gd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return I.createElement(r,Qd({},n))};nf.isSideCarExport=!0;var rf=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=tf);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Qd({async:!0,ssr:!1},e),t}(),of=function(){},af=I.forwardRef((function(e,t){var n=I.useRef(null),r=I.useState({onScrollCapture:of,onWheelCapture:of,onTouchMoveCapture:of}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=Gd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=f,w=ef([n,t]),E=Qd(Qd({},y),o);return I.createElement(I.Fragment,null,c&&I.createElement(b,{sideCar:rf,removeScrollBar:u,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?I.cloneElement(I.Children.only(s),Qd(Qd({},E),{ref:w})):I.createElement(g,Qd({},E,{className:l,ref:w}),s))}));af.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},af.classNames={fullWidth:Jd,zeroRight:Zd};function sf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var lf=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=sf())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uf=function(){var e,t=(e=lf(),function(t,n){I.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},cf={left:0,top:0,right:0,gap:0},df=function(e){return parseInt(e||"",10)||0},ff=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return cf;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[df(n),df(r),df(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pf=uf(),hf=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Zd," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Jd," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Zd," .").concat(Zd," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Jd," .").concat(Jd," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},mf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=I.useMemo((function(){return ff(o)}),[o]);return I.createElement(pf,{styles:hf(i,!t,o,n?"":"!important")})},vf=!1;if("undefined"!=typeof window)try{var gf=Object.defineProperty({},"passive",{get:function(){return vf=!0,!0}});window.addEventListener("test",gf,gf),window.removeEventListener("test",gf,gf)}catch(R_){vf=!1}var yf=!!vf&&{passive:!1},bf=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},wf=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Ef(e,n)){var r=xf(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ef=function(e,t){return"v"===e?function(e){return bf(e,"overflowY")}(t):function(e){return bf(e,"overflowX")}(t)},xf=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Sf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cf=function(e){return[e.deltaX,e.deltaY]},kf=function(e){return e&&"current"in e?e.current:e},Pf=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Tf=0,Rf=[];const Df=(_f=function(e){var t=I.useRef([]),n=I.useRef([0,0]),r=I.useRef(),o=I.useState(Tf++)[0],i=I.useState((function(){return uf()}))[0],a=I.useRef(e);I.useEffect((function(){a.current=e}),[e]),I.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(kf),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=I.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Sf(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=wf(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=wf(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=xf(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&Ef(e,s)&&(d+=m,f+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&0===d||!o&&a>d)||!c&&(o&&0===f||!o&&-a>f))&&(u=!0),u}(p,t,e,"h"===p?l:u,!0)}),[]),l=I.useCallback((function(e){var n=e;if(Rf.length&&Rf[Rf.length-1]===i){var r="deltaY"in n?Cf(n):Sf(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(kf).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=I.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=I.useCallback((function(e){n.current=Sf(e),r.current=void 0}),[]),d=I.useCallback((function(t){u(t.type,Cf(t),t.target,s(t,e.lockRef.current))}),[]),f=I.useCallback((function(t){u(t.type,Sf(t),t.target,s(t,e.lockRef.current))}),[]);I.useEffect((function(){return Rf.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,yf),document.addEventListener("touchmove",l,yf),document.addEventListener("touchstart",c,yf),function(){Rf=Rf.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,yf),document.removeEventListener("touchmove",l,yf),document.removeEventListener("touchstart",c,yf)}}),[]);var p=e.removeScrollBar,h=e.inert;return I.createElement(I.Fragment,null,h?I.createElement(i,{styles:Pf(o)}):null,p?I.createElement(mf,{gapMode:"margin"}):null)},rf.useMedium(_f),nf);var _f,Lf=I.forwardRef((function(e,t){return I.createElement(af,Qd({},e,{ref:t,sideCar:Df}))}));Lf.classNames=af.classNames;const Af=Lf;var Mf=new WeakMap,Of=new WeakMap,Nf={},Ff=0,If=function(e){return e&&(e.host||If(e.parentNode))},Vf=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=If(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Nf[n]||(Nf[n]=new WeakMap);var i=Nf[n],a=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Mf.get(e)||0)+1,u=(i.get(e)||0)+1;Mf.set(e,l),i.set(e,u),a.push(e),1===l&&o&&Of.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return c(t),s.clear(),Ff++,function(){a.forEach((function(e){var t=Mf.get(e)-1,o=i.get(e)-1;Mf.set(e,t),i.set(e,o),t||(Of.has(e)||e.removeAttribute(r),Of.delete(e)),o||e.removeAttribute(n)})),--Ff||(Mf=new WeakMap,Mf=new WeakMap,Of=new WeakMap,Nf={})}},zf=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Vf(r,o,n,"aria-hidden")):function(){return null}};const Bf="Dialog",[jf,Uf]=G(Bf),[Hf,Wf]=jf(Bf),$f="DialogPortal",[Kf,Yf]=jf($f,{forceMount:void 0}),Xf="DialogOverlay",qf=I.forwardRef(((e,t)=>{const n=Yf(Xf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Wf(Xf,e.__scopeDialog);return i.modal?I.createElement($d,{present:r||i.open},I.createElement(Qf,Q({},o,{ref:t}))):null})),Qf=I.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wf(Xf,n);return I.createElement(Af,{as:gd,allowPinchZoom:!0,shards:[o.contentRef]},I.createElement(xd.div,Q({"data-state":ap(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Gf="DialogContent",Zf=I.forwardRef(((e,t)=>{const n=Yf(Gf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Wf(Gf,e.__scopeDialog);return I.createElement($d,{present:r||i.open},i.modal?I.createElement(Jf,Q({},o,{ref:t})):I.createElement(ep,Q({},o,{ref:t})))})),Jf=I.forwardRef(((e,t)=>{const n=Wf(Gf,e.__scopeDialog),r=I.useRef(null),o=ee(t,n.contentRef,r);return I.useEffect((()=>{const e=r.current;if(e)return zf(e)}),[]),I.createElement(tp,Q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:te(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:te(e.onFocusOutside,(e=>e.preventDefault()))}))})),ep=I.forwardRef(((e,t)=>{const n=Wf(Gf,e.__scopeDialog),r=I.useRef(!1);return I.createElement(tp,Q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),tp=I.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Wf(Gf,n),l=ee(t,I.useRef(null));return Xd(),I.createElement(I.Fragment,null,I.createElement(Id,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},I.createElement(Dd,Q({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ap(s.open)},a,{ref:l,onDismiss:()=>s.onOpenChange(!1)}))),!1)})),np="DialogTitle",rp=I.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wf(np,n);return I.createElement(xd.h2,Q({id:o.titleId},r,{ref:t}))})),op=I.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wf("DialogDescription",n);return I.createElement(xd.p,Q({id:o.descriptionId},r,{ref:t}))})),ip=I.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wf("DialogClose",n);return I.createElement(xd.button,Q({type:"button"},r,{ref:t,onClick:te(e.onClick,(()=>o.onOpenChange(!1)))}))}));function ap(e){return e?"open":"closed"}const[sp,lp]=function(e,t){const n=I.createContext(t);function r(e){const{children:t,...r}=e,o=I.useMemo((()=>r),Object.values(r));return I.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=I.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:Gf,titleName:np,docsSlug:"dialog"}),up=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=I.useRef(null),l=I.useRef(null),[u=!1,c]=se({prop:r,defaultProp:o,onChange:i});return I.createElement(Hf,{scope:t,triggerRef:s,contentRef:l,contentId:ie(),titleId:ie(),descriptionId:ie(),open:u,onOpenChange:c,onOpenToggle:I.useCallback((()=>c((e=>!e))),[c]),modal:a},n)},cp=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Wf($f,t);return I.createElement(Kf,{scope:t,forceMount:n},I.Children.map(r,(e=>I.createElement($d,{present:n||i.open},I.createElement(Wd,{asChild:!0,container:o},e)))))},dp=qf,fp=Zf,pp=rp,hp=op,mp=ip,[vp,gp]=G("AlertDialog",[Uf]),yp=Uf(),bp=I.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yp(n);return I.createElement(dp,Q({},o,r,{ref:t}))})),wp="AlertDialogContent",[Ep,xp]=vp(wp),Sp=I.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=yp(n),a=ee(t,I.useRef(null)),s=I.useRef(null);return I.createElement(sp,{contentName:wp,titleName:Cp,docsSlug:"alert-dialog"},I.createElement(Ep,{scope:n,cancelRef:s},I.createElement(fp,Q({role:"alertdialog"},i,o,{ref:a,onOpenAutoFocus:te(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),I.createElement(bd,null,r),!1)))})),Cp="AlertDialogTitle",kp=I.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yp(n);return I.createElement(pp,Q({},o,r,{ref:t}))})),Pp=I.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yp(n);return I.createElement(hp,Q({},o,r,{ref:t}))})),Tp=e=>{const{__scopeAlertDialog:t,...n}=e,r=yp(t);return I.createElement(up,Q({},r,n,{modal:!0}))},Rp=e=>{const{__scopeAlertDialog:t,...n}=e,r=yp(t);return I.createElement(cp,Q({},r,n))},Dp=bp,_p=Sp,Lp=I.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=yp(n);return I.createElement(mp,Q({},o,r,{ref:t}))})),Ap=I.forwardRef(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=xp("AlertDialogCancel",n),i=yp(n),a=ee(t,o);return I.createElement(mp,Q({},i,r,{ref:a}))})),Mp=kp,Op=Pp;var Np={},Fp=md;function Ip(e){const t=e+"CollectionProvider",[n,r]=G(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=V.useRef(null),i=V.useRef(new Map).current;return V.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:V.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=ee(t,i(a,n).collectionRef);return V.createElement(gd,{ref:o},r)})),ItemSlot:V.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=V.useRef(null),u=ee(t,a),c=i(s,n);return V.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),V.createElement(gd,{[l]:"",ref:u},r)}))},function(t){const n=i(e+"CollectionConsumer",t),r=V.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}Np.createRoot=Fp.createRoot,Np.hydrateRoot=Fp.hydrateRoot;const Vp=I.forwardRef(((e,t)=>I.createElement(xd.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),zp="ToastProvider",[Bp,jp,Up]=Ip("Toast"),[Hp,Wp]=G("Toast",[Up]),[$p,Kp]=Hp(zp),Yp=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=I.useState(null),[u,c]=I.useState(0),d=I.useRef(!1),f=I.useRef(!1);return I.createElement(Bp.Provider,{scope:t},I.createElement($p,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:s,onViewportChange:l,onToastAdd:I.useCallback((()=>c((e=>e+1))),[]),onToastRemove:I.useCallback((()=>c((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f},a))};Yp.propTypes={label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){return new Error(`Invalid prop \`label\` supplied to \`${zp}\`. Expected non-empty \`string\`.`)}return null}};const Xp=["F8"],qp="toast.viewportPause",Qp="toast.viewportResume",Gp=I.forwardRef(((e,t)=>{const{__scopeToast:n,hotkey:r=Xp,label:o="Notifications ({hotkey})",...i}=e,a=Kp("ToastViewport",n),s=jp(n),l=I.useRef(null),u=I.useRef(null),c=I.useRef(null),d=I.useRef(null),f=ee(t,d,a.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=a.toastCount>0;I.useEffect((()=>{const e=e=>{var t;r.every((t=>e[t]||e.code===t))&&(null===(t=d.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r]),I.useEffect((()=>{const e=l.current,t=d.current;if(h&&e&&t){const n=()=>{if(!a.isClosePausedRef.current){const e=new CustomEvent(qp);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){const e=new CustomEvent(Qp);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},i=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[h,a.isClosePausedRef]);const m=I.useCallback((({tabbingDirection:e})=>{const t=s().map((t=>{const n=t.ref.current,r=[n,...ph(n)];return"forwards"===e?r:r.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[s]);return I.useEffect((()=>{const e=d.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,a=t.shiftKey;var r;if(t.target===e&&a)return void(null===(r=u.current)||void 0===r||r.focus());const s=m({tabbingDirection:a?"backwards":"forwards"}),l=s.findIndex((e=>e===n));var o,i;if(hh(s.slice(l+1)))t.preventDefault();else a?null===(o=u.current)||void 0===o||o.focus():null===(i=c.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[s,m]),I.createElement(Md,{ref:l,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:h?void 0:"none"}},h&&I.createElement(Zp,{ref:u,onFocusFromOutsideViewport:()=>{hh(m({tabbingDirection:"forwards"}))}}),I.createElement(Bp.Slot,{scope:n},I.createElement(xd.ol,Q({tabIndex:-1},i,{ref:f}))),h&&I.createElement(Zp,{ref:c,onFocusFromOutsideViewport:()=>{hh(m({tabbingDirection:"backwards"}))}}))})),Zp=I.forwardRef(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Kp("ToastFocusProxy",n);return I.createElement(Vp,Q({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null!==(t=i.viewport)&&void 0!==t&&t.contains(n))&&r()}}))})),Jp="Toast",eh=I.forwardRef(((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[s=!0,l]=se({prop:r,defaultProp:o,onChange:i});return I.createElement($d,{present:n||s},I.createElement(rh,Q({open:s},a,{ref:t,onClose:()=>l(!1),onPause:ae(e.onPause),onResume:ae(e.onResume),onSwipeStart:te(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:te(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:te(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:te(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),l(!1)}))})))})),[th,nh]=Hp(Jp,{onClose(){}}),rh=I.forwardRef(((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...h}=e,m=Kp(Jp,n),[v,g]=I.useState(null),y=ee(t,(e=>g(e))),b=I.useRef(null),w=I.useRef(null),E=o||m.duration,x=I.useRef(0),S=I.useRef(E),C=I.useRef(0),{onToastAdd:k,onToastRemove:P}=m,T=ae((()=>{var e;(null==v?void 0:v.contains(document.activeElement))&&(null===(e=m.viewport)||void 0===e||e.focus()),a()})),R=I.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(C.current),x.current=(new Date).getTime(),C.current=window.setTimeout(T,e))}),[T]);I.useEffect((()=>{const e=m.viewport;if(e){const t=()=>{R(S.current),null==u||u()},n=()=>{const e=(new Date).getTime()-x.current;S.current=S.current-e,window.clearTimeout(C.current),null==l||l()};return e.addEventListener(qp,n),e.addEventListener(Qp,t),()=>{e.removeEventListener(qp,n),e.removeEventListener(Qp,t)}}}),[m.viewport,E,l,u,R]),I.useEffect((()=>{i&&!m.isClosePausedRef.current&&R(E)}),[i,E,m.isClosePausedRef,R]),I.useEffect((()=>(k(),()=>P())),[k,P]);const D=I.useMemo((()=>v?ch(v):null),[v]);return m.viewport?I.createElement(I.Fragment,null,D&&I.createElement(oh,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0},D),I.createElement(th,{scope:n,onClose:T},md.createPortal(I.createElement(Bp.ItemSlot,{scope:n},I.createElement(Ad,{asChild:!0,onEscapeKeyDown:te(s,(()=>{m.isFocusedToastEscapeKeyDownRef.current||T(),m.isFocusedToastEscapeKeyDownRef.current=!1}))},I.createElement(xd.li,Q({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection},h,{ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:te(e.onKeyDown,(e=>{"Escape"===e.key&&(null==s||s(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,T()))})),onPointerDown:te(e.onPointerDown,(e=>{0===e.button&&(b.current={x:e.clientX,y:e.clientY})})),onPointerMove:te(e.onPointerMove,(e=>{if(!b.current)return;const t=e.clientX-b.current.x,n=e.clientY-b.current.y,r=Boolean(w.current),o=["left","right"].includes(m.swipeDirection),i=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,s=o?0:i(0,n),l="touch"===e.pointerType?10:2,u={x:a,y:s},f={originalEvent:e,delta:u};r?(w.current=u,dh("toast.swipeMove",d,f,{discrete:!1})):fh(u,m.swipeDirection,l)?(w.current=u,dh("toast.swipeStart",c,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(b.current=null)})),onPointerUp:te(e.onPointerUp,(e=>{const t=w.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),w.current=null,b.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};fh(t,m.swipeDirection,m.swipeThreshold)?dh("toast.swipeEnd",p,r,{discrete:!0}):dh("toast.swipeCancel",f,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),m.viewport))):null}));rh.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${Jp}\`. Expected \`foreground | background\`.`)}return null}};const oh=e=>{const{__scopeToast:t,children:n,...r}=e,o=Kp(Jp,t),[i,a]=I.useState(!1),[s,l]=I.useState(!1);return function(e=(()=>{})){const t=ae(e);ne((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>a(!0))),I.useEffect((()=>{const e=window.setTimeout((()=>l(!0)),1e3);return()=>window.clearTimeout(e)}),[]),s?null:I.createElement(Wd,{asChild:!0},I.createElement(Vp,r,i&&I.createElement(I.Fragment,null,o.label," ",n)))},ih=I.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return I.createElement(xd.div,Q({},r,{ref:t}))})),ah=I.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return I.createElement(xd.div,Q({},r,{ref:t}))})),sh=I.forwardRef(((e,t)=>{const{altText:n,...r}=e;return n?I.createElement(uh,{altText:n,asChild:!0},I.createElement(lh,Q({},r,{ref:t}))):null}));sh.propTypes={altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")};const lh=I.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e,o=nh("ToastClose",n);return I.createElement(uh,{asChild:!0},I.createElement(xd.button,Q({type:"button"},r,{ref:t,onClick:te(e.onClick,o.onClose)})))})),uh=I.forwardRef(((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return I.createElement(xd.div,Q({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))}));function ch(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...ch(e))}})),t}function dh(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Sd(o,i):o.dispatchEvent(i)}const fh=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};function ph(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hh(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}const mh=Yp,vh=Gp,gh=eh,yh=ih,bh=ah,wh=sh;function Eh(e){return e.split("-")[0]}function xh(e){return e.split("-")[1]}function Sh(e){return["top","bottom"].includes(Eh(e))?"x":"y"}function Ch(e){return"y"===e?"height":"width"}function kh(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Sh(t),l=Ch(s),u=r[l]/2-o[l]/2,c="x"===s;let d;switch(Eh(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(xh(t)){case"start":d[s]-=u*(n&&c?-1:1);break;case"end":d[s]+=u*(n&&c?-1:1)}return d}function Ph(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function Th(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Rh(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,h=Ph(p),m=s[f?"floating"===d?"reference":"floating":d],v=Th(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g=Th(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:v.top-g.top+h.top,bottom:g.bottom-v.bottom+h.bottom,left:v.left-g.left+h.left,right:g.right-v.right+h.right}}const Dh=Math.min,_h=Math.max;function Lh(e,t,n){return _h(e,Dh(t,n))}const Ah=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const u=Ph(r),c={x:o,y:i},d=Sh(a),f=xh(a),p=Ch(d),h=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[p]+s.reference[d]-c[d]-s.floating[p],y=c[d]-s.reference[d],b=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=s.floating[p]);const E=g/2-y/2,x=u[m],S=w-h[p]-u[v],C=w/2-h[p]/2+E,k=Lh(x,C,S),P=("start"===f?u[m]:u[v])>0&&C!==k&&s.reference[p]<=s.floating[p];return{[d]:c[d]-(P?C<x?x-C:S-C:0),data:{[d]:k,centerOffset:C-k}}}}),Mh={left:"right",right:"left",bottom:"top",top:"bottom"};function Oh(e){return e.replace(/left|right|bottom|top/g,(e=>Mh[e]))}const Nh={start:"end",end:"start"};function Fh(e){return e.replace(/start|end/g,(e=>Nh[e]))}const Ih=["top","right","bottom","left"];Ih.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const Vh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...h}=e,m=Eh(r),v=[a,...d||(m!==a&&p?function(e){const t=Oh(e);return[Fh(e),t,Fh(t)]}(a):[Oh(a)])],g=await Rh(t,h),y=[];let b=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&y.push(g[m]),c){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=xh(e),o=Sh(e),i=Ch(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Oh(a)),{main:a,cross:Oh(a)}}(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(g[e],g[t])}if(b=[...b,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,E;const e=(null!=(w=null==(E=o.flip)?void 0:E.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var x;const e=null==(x=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:x[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function zh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bh(e){return Ih.some((t=>e[t]>=0))}const jh=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=zh(await Rh(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Bh(t)}}}case"escaped":{const t=zh(await Rh(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:Bh(t)}}}default:return{}}}}};function Uh(e){return"x"===e?"y":"x"}const Hh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await Rh(t,l),d=Sh(Eh(o)),f=Uh(d);let p=u[d],h=u[f];if(i){const e="y"===d?"bottom":"right";p=Lh(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";h=Lh(h+c["y"===f?"top":"left"],h,h-c[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Wh(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function $h(e){if(null==e)return window;if(!Wh(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kh(e){return $h(e).getComputedStyle(e)}function Yh(e){return Wh(e)?"":e?(e.nodeName||"").toLowerCase():""}function Xh(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function qh(e){return e instanceof $h(e).HTMLElement}function Qh(e){return e instanceof $h(e).Element}function Gh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof $h(e).ShadowRoot||e instanceof ShadowRoot)}function Zh(e){const{overflow:t,overflowX:n,overflowY:r}=Kh(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Jh(e){return["table","td","th"].includes(Yh(e))}function em(e){const t=/firefox/i.test(Xh()),n=Kh(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function tm(){return!/^((?!chrome|android).)*safari/i.test(Xh())}const nm=Math.min,rm=Math.max,om=Math.round;function im(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,u=1;t&&qh(e)&&(l=e.offsetWidth>0&&om(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&om(s.height)/e.offsetHeight||1);const c=Qh(e)?$h(e):window,d=!tm()&&n,f=(s.left+(d&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=c.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=s.width/l,m=s.height/u;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function am(e){return(t=e,(t instanceof $h(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function sm(e){return Qh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lm(e){return im(am(e)).left+sm(e).scrollLeft}function um(e,t,n){const r=qh(t),o=am(t),i=im(e,r&&function(e){const t=im(e);return om(t.width)!==e.offsetWidth||om(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Yh(t)||Zh(o))&&(a=sm(t)),qh(t)){const e=im(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=lm(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function cm(e){return"html"===Yh(e)?e:e.assignedSlot||e.parentNode||(Gh(e)?e.host:null)||am(e)}function dm(e){return qh(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function fm(e){const t=$h(e);let n=dm(e);for(;n&&Jh(n)&&"static"===getComputedStyle(n).position;)n=dm(n);return n&&("html"===Yh(n)||"body"===Yh(n)&&"static"===getComputedStyle(n).position&&!em(n))?t:n||function(e){let t=cm(e);for(Gh(t)&&(t=t.host);qh(t)&&!["html","body"].includes(Yh(t));){if(em(t))return t;t=t.parentNode}return null}(e)||t}function pm(e){if(qh(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=im(e);return{width:t.width,height:t.height}}function hm(e){const t=cm(e);return["html","body","#document"].includes(Yh(t))?e.ownerDocument.body:qh(t)&&Zh(t)?t:hm(t)}function mm(e,t){var n;void 0===t&&(t=[]);const r=hm(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=$h(r),a=o?[i].concat(i.visualViewport||[],Zh(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(mm(a))}function vm(e,t,n){return"viewport"===t?Th(function(e,t){const n=$h(e),r=am(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=tm();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):Qh(t)?function(e,t){const n=im(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):Th(function(e){var t;const n=am(e),r=sm(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=rm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=rm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+lm(e);const l=-r.scrollTop;return"rtl"===Kh(o||n).direction&&(s+=rm(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(am(e)))}function gm(e){const t=mm(e),n=["absolute","fixed"].includes(Kh(e).position)&&qh(e)?fm(e):e;return Qh(n)?t.filter((e=>Qh(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Gh(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Yh(e))):[]}const ym={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?gm(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=vm(t,n,o);return e.top=rm(r.top,e.top),e.right=nm(r.right,e.right),e.bottom=nm(r.bottom,e.bottom),e.left=rm(r.left,e.left),e}),vm(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=qh(n),i=am(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Yh(n)||Zh(i))&&(a=sm(n)),qh(n))){const e=im(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:Qh,getDimensions:pm,getOffsetParent:fm,getDocumentElement:am,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:um(t,fm(n),r),floating:{...pm(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Kh(e).direction};function bm(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,u=i&&!s,c=l||u?[...Qh(e)?mm(e):[],...mm(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),Qh(e)&&!s&&f.observe(e),f.observe(t)}let p=s?im(e):null;return s&&function t(){const r=im(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const wm=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=kh(l,r,s),d=r,f={},p=0;for(let h=0;h<i.length;h++){const{name:n,fn:m}=i[h],{x:v,y:g,data:y,reset:b}=await m({x:u,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,c=null!=g?g:c,f={...f,[n]:{...f[n],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:c}=kh(l,d,s))),h=-1)}return{x:u,y:c,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:ym,...n});var Em="undefined"!=typeof document?I.useLayoutEffect:I.useEffect;function xm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!xm(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!xm(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Sm(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=I.useRef(null),a=I.useRef(null),s=function(e){const t=I.useRef(e);return Em((()=>{t.current=e})),t}(o),l=I.useRef(null),[u,c]=I.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=I.useState(t);xm(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=I.useCallback((()=>{i.current&&a.current&&wm(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{h.current&&md.flushSync((()=>{c(e)}))}))}),[d,n,r]);Em((()=>{h.current&&p()}),[p]);const h=I.useRef(!1);Em((()=>(h.current=!0,()=>{h.current=!1})),[]);const m=I.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);l.current=e}else p()}),[p,s]),v=I.useCallback((e=>{i.current=e,m()}),[m]),g=I.useCallback((e=>{a.current=e,m()}),[m]),y=I.useMemo((()=>({reference:i,floating:a})),[]);return I.useMemo((()=>({...u,update:p,refs:y,reference:v,floating:g})),[u,p,y,v,g])}const Cm=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Ah({element:t.current,padding:n}).fn(e):{}:t?Ah({element:t,padding:n}).fn(e):{};var r}}},km=I.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return I.createElement(xd.svg,Q({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:I.createElement("polygon",{points:"0,0 30,0 15,10"}))}));function Pm(e){const[t,n]=I.useState(void 0);return ne((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const Tm="Popper",[Rm,Dm]=G(Tm),[_m,Lm]=Rm(Tm),Am=I.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Lm("PopperAnchor",n),a=I.useRef(null),s=ee(t,a);return I.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:I.createElement(xd.div,Q({},o,{ref:s}))})),Mm="PopperContent",[Om,Nm]=Rm(Mm),[Fm,Im]=Rm(Mm,{hasParent:!1,positionUpdateFns:new Set}),Vm=I.forwardRef(((e,t)=>{var n,r,o,i,a,s,l,u;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:E,...x}=e,S=Lm(Mm,c),[C,k]=I.useState(null),P=ee(t,(e=>k(e))),[T,R]=I.useState(null),D=Pm(T),_=null!==(n=null==D?void 0:D.width)&&void 0!==n?n:0,L=null!==(r=null==D?void 0:D.height)&&void 0!==r?r:0,A=d+("center"!==p?"-"+p:""),M="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},O=Array.isArray(v)?v:[v],N=O.length>0,F={padding:M,boundary:O.filter(jm),altBoundary:N},{reference:V,floating:z,strategy:B,x:j,y:U,placement:H,middlewareData:W,update:$}=Sm({strategy:"fixed",placement:A,whileElementsMounted:bm,middleware:[Um(),(X={mainAxis:f+L,alignmentAxis:h},void 0===X&&(X=0),{name:"offset",options:X,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Eh(n),s=xh(n),l="x"===Sh(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(e,X);return{x:t+r.x,y:n+r.y,data:r}}}),w?Hh({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?(void 0===Y&&(Y={}),{options:Y,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=Y,u={x:t,y:n},c=Sh(r),d=Uh(c);let f=u[c],p=u[d];const h="function"==typeof a?a({...o,placement:r}):a,m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===c?"height":"width",t=o.reference[c]-o.floating[e]+m.mainAxis,n=o.reference[c]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var v,g,y,b;const e="y"===c?"width":"height",t=["top","left"].includes(Eh(r)),n=o.reference[d]-o.floating[e]+(t&&null!=(v=null==(g=i.offset)?void 0:g[d])?v:0)+(t?0:m.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:null!=(y=null==(b=i.offset)?void 0:b[d])?y:0)-(t?m.crossAxis:0);p<n?p=n:p>a&&(p=a)}return{[c]:f,[d]:p}}}):void 0,...F}):void 0,T?Cm({element:T,padding:m}):void 0,w?Vh({...F}):void 0,(K={...F,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},void 0===K&&(K={}),{name:"size",options:K,async fn(e){const{placement:t,rects:n,platform:r,elements:o}=e,{apply:i,...a}=K,s=await Rh(e,a),l=Eh(t),u=xh(t);let c,d;"top"===l||"bottom"===l?(c=l,d=u===(await(null==r.isRTL?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(d=l,c="end"===u?"top":"bottom");const f=_h(s.left,0),p=_h(s.right,0),h=_h(s.top,0),m=_h(s.bottom,0),v={availableHeight:n.floating.height-(["left","right"].includes(t)?2*(0!==h||0!==m?h+m:_h(s.top,s.bottom)):s[c]),availableWidth:n.floating.width-(["top","bottom"].includes(t)?2*(0!==f||0!==p?f+p:_h(s.left,s.right)):s[d])},g=await r.getDimensions(o.floating);null==i||i({...e,...v});const y=await r.getDimensions(o.floating);return g.width!==y.width||g.height!==y.height?{reset:{rects:!0}}:{}}}),Hm({arrowWidth:_,arrowHeight:L}),b?jh({strategy:"referenceHidden"}):void 0].filter(Bm)});var K,Y,X;ne((()=>{V(S.anchor)}),[V,S.anchor]);const q=null!==j&&null!==U,[Q,G]=Wm(H),Z=ae(E);ne((()=>{q&&(null==Z||Z())}),[q,Z]);const J=null===(o=W.arrow)||void 0===o?void 0:o.x,te=null===(i=W.arrow)||void 0===i?void 0:i.y,re=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[oe,ie]=I.useState();ne((()=>{C&&ie(window.getComputedStyle(C).zIndex)}),[C]);const{hasParent:se,positionUpdateFns:le}=Im(Mm,c),ue=!se;I.useLayoutEffect((()=>{if(!ue)return le.add($),()=>{le.delete($)}}),[ue,le,$]),ne((()=>{ue&&q&&Array.from(le).reverse().forEach((e=>requestAnimationFrame(e)))}),[ue,q,le]);const ce={"data-side":Q,"data-align":G,...x,ref:P,style:{...x.style,animation:q?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return I.createElement("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:q?`translate3d(${Math.round(j)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},I.createElement(Om,{scope:c,placedSide:Q,onArrowChange:R,arrowX:J,arrowY:te,shouldHideArrow:re},ue?I.createElement(Fm,{scope:c,hasParent:!0,positionUpdateFns:le},I.createElement(xd.div,ce)):I.createElement(xd.div,ce)))})),zm={top:"bottom",right:"left",bottom:"top",left:"right"};function Bm(e){return void 0!==e}function jm(e){return null!==e}const Um=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),Hm=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Wm(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?m:`${v}px`,b=-f+"px"):"top"===p?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?m:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function Wm(e){const[t,n="center"]=e.split("-");return[t,n]}const $m=e=>{const{__scopePopper:t,children:n}=e,[r,o]=I.useState(null);return I.createElement(_m,{scope:t,anchor:r,onAnchorChange:o},n)},Km=Am,Ym=Vm,Xm=I.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Nm("PopperArrow",n),i=zm[o.placedSide];return I.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},I.createElement(km,Q({},r,{ref:t,style:{...r.style,display:"block"}})))})),qm="Popover",[Qm,Gm]=G(qm,[Dm]),Zm=Dm(),[Jm,ev]=Qm(qm),tv=I.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=ev("PopoverTrigger",n),i=Zm(n),a=ee(t,o.triggerRef),s=I.createElement(xd.button,Q({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cv(o.open)},r,{ref:a,onClick:te(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:I.createElement(Km,Q({asChild:!0},i),s)})),nv="PopoverPortal",[rv,ov]=Qm(nv,{forceMount:void 0}),iv="PopoverContent",av=I.forwardRef(((e,t)=>{const n=ov(iv,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=ev(iv,e.__scopePopover);return I.createElement($d,{present:r||i.open},i.modal?I.createElement(sv,Q({},o,{ref:t})):I.createElement(lv,Q({},o,{ref:t})))})),sv=I.forwardRef(((e,t)=>{const n=ev(iv,e.__scopePopover),r=I.useRef(null),o=ee(t,r),i=I.useRef(!1);return I.useEffect((()=>{const e=r.current;if(e)return zf(e)}),[]),I.createElement(Af,{as:gd,allowPinchZoom:!0},I.createElement(uv,Q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:te(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:te(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),lv=I.forwardRef(((e,t)=>{const n=ev(iv,e.__scopePopover),r=I.useRef(!1);return I.createElement(uv,Q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),uv=I.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=ev(iv,n),p=Zm(n);return Xd(),I.createElement(Id,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},I.createElement(Dd,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},I.createElement(Ym,Q({"data-state":cv(f.open),role:"dialog",id:f.contentId},p,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}));function cv(e){return e?"open":"closed"}const dv=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Zm(t),l=I.useRef(null),[u,c]=I.useState(!1),[d=!1,f]=se({prop:r,defaultProp:o,onChange:i});return I.createElement($m,s,I.createElement(Jm,{scope:t,contentId:ie(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:I.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:u,onCustomAnchorAdd:I.useCallback((()=>c(!0)),[]),onCustomAnchorRemove:I.useCallback((()=>c(!1)),[]),modal:a},n))},fv=tv,pv=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=ev(nv,t);return I.createElement(rv,{scope:t,forceMount:n},I.createElement($d,{present:n||i.open},I.createElement(Wd,{asChild:!0,container:o},r)))},hv=av,mv=I.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=ev("PopoverClose",n);return I.createElement(xd.button,Q({type:"button"},r,{ref:t,onClick:te(e.onClick,(()=>o.onOpenChange(!1)))}))})),vv=I.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Zm(n);return I.createElement(Xm,Q({},o,r,{ref:t}))})),gv="Progress",yv=100,[bv,wv]=G(gv),[Ev,xv]=bv(gv),Sv=I.forwardRef(((e,t)=>{const{__scopeProgress:n,value:r,max:o,getValueLabel:i=Cv,...a}=e,s=Tv(o)?o:yv,l=Rv(r,s)?r:null,u=Pv(l)?i(l,s):void 0;return I.createElement(Ev,{scope:n,value:l,max:s},I.createElement(xd.div,Q({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Pv(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":kv(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))}));Sv.propTypes={max(e,t,n){const r=e[t],o=String(r);return r&&!Tv(r)?new Error(function(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}(o,n)):null},value(e,t,n){const r=e[t],o=String(r),i=Tv(e.max)?e.max:yv;return null==r||Rv(r,i)?null:new Error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(o,n))}};function Cv(e,t){return`${Math.round(e/t*100)}%`}function kv(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function Pv(e){return"number"==typeof e}function Tv(e){return Pv(e)&&!isNaN(e)&&e>0}function Rv(e,t){return Pv(e)&&!isNaN(e)&&e<=t&&e>=0}const Dv=Sv,_v=I.forwardRef(((e,t)=>{var n;const{__scopeProgress:r,...o}=e,i=xv("ProgressIndicator",r);return I.createElement(xd.div,Q({"data-state":kv(i.value,i.max),"data-value":null!==(n=i.value)&&void 0!==n?n:void 0,"data-max":i.max},o,{ref:t}))}));function Lv(e){const t=I.useRef({value:e,previous:e});return I.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const Av="Checkbox",[Mv,Ov]=G(Av),[Nv,Fv]=Mv(Av),Iv=I.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:u,...c}=e,[d,f]=I.useState(null),p=ee(t,(e=>f(e))),h=I.useRef(!1),m=!d||Boolean(d.closest("form")),[v=!1,g]=se({prop:o,defaultProp:i,onChange:u}),y=I.useRef(v);return I.useEffect((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>g(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,g]),I.createElement(Nv,{scope:n,state:v,disabled:s},I.createElement(xd.button,Q({type:"button",role:"checkbox","aria-checked":zv(v)?"mixed":v,"aria-required":a,"data-state":Bv(v),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:p,onKeyDown:te(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:te(e.onClick,(e=>{g((e=>!!zv(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&I.createElement(Vv,{control:d,bubbles:!h.current,name:r,value:l,checked:v,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),Vv=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=I.useRef(null),a=Lv(n),s=Pm(t);return I.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=zv(n),o.call(e,!zv(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),I.createElement("input",Q({type:"checkbox","aria-hidden":!0,defaultChecked:!zv(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function zv(e){return"indeterminate"===e}function Bv(e){return zv(e)?"indeterminate":e?"checked":"unchecked"}const jv=Iv,Uv=I.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Fv("CheckboxIndicator",n);return I.createElement($d,{present:r||zv(i.state)||!0===i.state},I.createElement(xd.span,Q({"data-state":Bv(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}));function Hv(e,[t,n]){return Math.min(n,Math.max(t,e))}const Wv=I.createContext(void 0);function $v(e){const t=I.useContext(Wv);return e||t||"ltr"}const Kv=["PageUp","PageDown"],Yv=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xv={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},qv="Slider",[Qv,Gv,Zv]=Ip(qv),[Jv,eg]=G(qv,[Zv]),[tg,ng]=Jv(qv),rg=I.forwardRef(((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:d=(()=>{}),onValueCommit:f=(()=>{}),inverted:p=!1,...h}=e,[m,v]=I.useState(null),g=ee(t,(e=>v(e))),y=I.useRef(new Set),b=I.useRef(0),w="horizontal"===a,E=!m||Boolean(m.closest("form")),x=w?ag:sg,[S=[],C]=se({prop:c,defaultProp:u,onChange:e=>{var t;null===(t=[...y.current][b.current])||void 0===t||t.focus(),d(e)}}),k=I.useRef(S);function P(e,t,{commit:n}={commit:!1}){const a=function(e){return(String(e).split(".")[1]||"").length}(i),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/i)*i+r,a),u=Hv(s,[r,o]);C(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,u,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,l*i)){b.current=r.indexOf(u);const t=String(r)!==String(e);return t&&n&&f(r),t?r:e}return e}))}return I.createElement(tg,{scope:e.__scopeSlider,disabled:s,min:r,max:o,valueIndexToChangeRef:b,thumbs:y.current,values:S,orientation:a},I.createElement(Qv.Provider,{scope:e.__scopeSlider},I.createElement(Qv.Slot,{scope:e.__scopeSlider},I.createElement(x,Q({"aria-disabled":s,"data-disabled":s?"":void 0},h,{ref:g,onPointerDown:te(h.onPointerDown,(()=>{s||(k.current=S)})),min:r,max:o,inverted:p,onSlideStart:s?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(S,e);P(e,t)},onSlideMove:s?void 0:function(e){P(e,b.current)},onSlideEnd:s?void 0:function(){const e=k.current[b.current];S[b.current]!==e&&f(S)},onHomeKeyDown:()=>!s&&P(r,0,{commit:!0}),onEndKeyDown:()=>!s&&P(o,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){const n=Kv.includes(e.key)||e.shiftKey&&Yv.includes(e.key)?10:1,r=b.current;P(S[r]+i*n*t,r,{commit:!0})}}})))),E&&S.map(((e,t)=>I.createElement(mg,{key:t,name:n?n+(S.length>1?"[]":""):void 0,value:e}))))})),[og,ig]=Jv(qv,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ag=I.forwardRef(((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...c}=e,[d,f]=I.useState(null),p=ee(t,(e=>f(e))),h=I.useRef(),m=$v(o),v="ltr"===m,g=v&&!i||!v&&i;function y(e){const t=h.current||d.getBoundingClientRect(),o=gg([0,t.width],g?[n,r]:[r,n]);return h.current=t,o(e-t.left)}return I.createElement(og,{scope:e.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width"},I.createElement(lg,Q({dir:m,"data-orientation":"horizontal"},c,{ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=y(e.clientX);null==a||a(t)},onSlideMove:e=>{const t=y(e.clientX);null==s||s(t)},onSlideEnd:()=>{h.current=void 0,null==l||l()},onStepKeyDown:e=>{const t=Xv[g?"from-left":"from-right"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})))})),sg=I.forwardRef(((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...u}=e,c=I.useRef(null),d=ee(t,c),f=I.useRef(),p=!o;function h(e){const t=f.current||c.current.getBoundingClientRect(),o=gg([0,t.height],p?[r,n]:[n,r]);return f.current=t,o(e-t.top)}return I.createElement(og,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1},I.createElement(lg,Q({"data-orientation":"vertical"},u,{ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=h(e.clientY);null==i||i(t)},onSlideMove:e=>{const t=h(e.clientY);null==a||a(t)},onSlideEnd:()=>{f.current=void 0,null==s||s()},onStepKeyDown:e=>{const t=Xv[p?"from-bottom":"from-top"].includes(e.key);null==l||l({event:e,direction:t?-1:1})}})))})),lg=I.forwardRef(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...u}=e,c=ng(qv,n);return I.createElement(xd.span,Q({},u,{ref:t,onKeyDown:te(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):Kv.concat(Yv).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:te(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus():r(e)})),onPointerMove:te(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:te(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))}))})),ug=I.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=ng("SliderTrack",n);return I.createElement(xd.span,Q({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))})),cg="SliderRange",dg=I.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=ng(cg,n),i=ig(cg,n),a=ee(t,I.useRef(null)),s=o.values.length,l=o.values.map((e=>vg(e,o.min,o.max))),u=s>1?Math.min(...l):0,c=100-Math.max(...l);return I.createElement(xd.span,Q({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:a,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:c+"%"}}))})),fg="SliderThumb",pg=I.forwardRef(((e,t)=>{const n=Gv(e.__scopeSlider),[r,o]=I.useState(null),i=ee(t,(e=>o(e))),a=I.useMemo((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return I.createElement(hg,Q({},e,{ref:i,index:a}))})),hg=I.forwardRef(((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,i=ng(fg,n),a=ig(fg,n),[s,l]=I.useState(null),u=ee(t,(e=>l(e))),c=Pm(s),d=i.values[r],f=void 0===d?0:vg(d,i.min,i.max),p=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,i.values.length),h=null==c?void 0:c[a.size],m=h?function(e,t,n){const r=e/2,o=gg([0,50],[0,r]);return(r-o(t)*n)*n}(h,f,a.direction):0;return I.useEffect((()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}}),[s,i.thumbs]),I.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${f}% + ${m}px)`}},I.createElement(Qv.ItemSlot,{scope:e.__scopeSlider},I.createElement(xd.span,Q({role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":i.min,"aria-valuenow":d,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},o,{ref:u,style:void 0===d?{display:"none"}:e.style,onFocus:te(e.onFocus,(()=>{i.valueIndexToChangeRef.current=r}))}))))})),mg=e=>{const{value:t,...n}=e,r=I.useRef(null),o=Lv(t);return I.useEffect((()=>{const e=r.current,n=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(n,"value").set;if(o!==t&&i){const n=new Event("input",{bubbles:!0});i.call(e,t),e.dispatchEvent(n)}}),[o,t]),I.createElement("input",Q({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function vg(e,t,n){return 100/(n-t)*(e-t)}function gg(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}const yg=rg,bg=ug,wg=dg,Eg=pg;function xg(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Sg(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Cg(...e){return I.useCallback(Sg(...e),e)}function kg(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>I.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return I.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=I.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=I.useMemo((()=>a),Object.values(a));return I.createElement(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=I.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Pg(r,...t)]}function Pg(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return I.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const Tg=I.forwardRef(((e,t)=>{const{children:n,...r}=e,o=I.Children.toArray(n),i=o.find(_g);if(i){const e=i.props.children,n=o.map((t=>t===i?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t));return I.createElement(Rg,Q({},r,{ref:t}),I.isValidElement(e)?I.cloneElement(e,void 0,n):null)}return I.createElement(Rg,Q({},r,{ref:t}),n)}));Tg.displayName="Slot";const Rg=I.forwardRef(((e,t)=>{const{children:n,...r}=e;return I.isValidElement(n)?I.cloneElement(n,{...Lg(r,n.props),ref:t?Sg(t,n.ref):n.ref}):I.Children.count(n)>1?I.Children.only(null):null}));Rg.displayName="SlotClone";const Dg=({children:e})=>I.createElement(I.Fragment,null,e);function _g(e){return I.isValidElement(e)&&e.type===Dg}function Lg(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Ag=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=I.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Tg:t;return I.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),I.createElement(i,Q({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Mg(e){const t=e+"CollectionProvider",[n,r]=kg(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=V.useRef(null),i=V.useRef(new Map).current;return V.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:V.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Cg(t,i(a,n).collectionRef);return V.createElement(Tg,{ref:o},r)})),ItemSlot:V.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=V.useRef(null),u=Cg(t,a),c=i(s,n);return V.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),V.createElement(Tg,{[l]:"",ref:u},r)}))},function(t){const n=i(e+"CollectionConsumer",t),r=V.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const Og=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?I.useLayoutEffect:()=>{},Ng=z["useId".toString()]||(()=>{});let Fg=0;function Ig(e){const[t,n]=I.useState(Ng());return Og((()=>{e||n((e=>null!=e?e:String(Fg++)))}),[e]),e||(t?`radix-${t}`:"")}function Vg(e){const t=I.useRef(e);return I.useEffect((()=>{t.current=e})),I.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function zg({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=I.useState(e),[r]=n,o=I.useRef(r),i=Vg(t);return I.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Vg(n);return[a,I.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const Bg=I.createContext(void 0);function jg(e){const t=I.useContext(Bg);return e||t||"ltr"}const Ug="rovingFocusGroup.onEntryFocus",Hg={bubbles:!1,cancelable:!0},Wg="RovingFocusGroup",[$g,Kg,Yg]=Mg(Wg),[Xg,qg]=kg(Wg,[Yg]),[Qg,Gg]=Xg(Wg),Zg=I.forwardRef(((e,t)=>I.createElement($g.Provider,{scope:e.__scopeRovingFocusGroup},I.createElement($g.Slot,{scope:e.__scopeRovingFocusGroup},I.createElement(Jg,Q({},e,{ref:t})))))),Jg=I.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=I.useRef(null),f=Cg(t,d),p=jg(i),[h=null,m]=zg({prop:a,defaultProp:s,onChange:l}),[v,g]=I.useState(!1),y=Vg(u),b=Kg(n),w=I.useRef(!1),[E,x]=I.useState(0);return I.useEffect((()=>{const e=d.current;if(e)return e.addEventListener(Ug,y),()=>e.removeEventListener(Ug,y)}),[y]),I.createElement(Qg,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:h,onItemFocus:I.useCallback((e=>m(e)),[m]),onItemShiftTab:I.useCallback((()=>g(!0)),[]),onFocusableItemAdd:I.useCallback((()=>x((e=>e+1))),[]),onFocusableItemRemove:I.useCallback((()=>x((e=>e-1))),[])},I.createElement(Ag.div,Q({tabIndex:v||0===E?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:xg(e.onMouseDown,(()=>{w.current=!0})),onFocus:xg(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(Ug,Hg);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));ny([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:xg(e.onBlur,(()=>g(!1)))})))})),ey=I.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=Ig(),l=i||s,u=Gg("RovingFocusGroupItem",n),c=u.currentTabStopId===l,d=Kg(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=u;return I.useEffect((()=>{if(r)return f(),()=>p()}),[r,f,p]),I.createElement($g.ItemSlot,{scope:n,id:l,focusable:r,active:o},I.createElement(Ag.span,Q({tabIndex:c?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:xg(e.onMouseDown,(e=>{r?u.onItemFocus(l):e.preventDefault()})),onFocus:xg(e.onFocus,(()=>u.onItemFocus(l))),onKeyDown:xg(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:ty[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>ny(o)))}var n,r}))})))})),ty={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ny(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const ry=Zg,oy=ey;function iy(e){const[t,n]=I.useState(void 0);return Og((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}function ay(e){const t=I.useRef({value:e,previous:e});return I.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const sy=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=I.useState(),r=I.useRef({}),o=I.useRef(e),i=I.useRef("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return I.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect((()=>{const e=ly(r.current);i.current="mounted"===s?e:"none"}),[s]),Og((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=ly(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),Og((()=>{if(t){const e=e=>{const n=ly(r.current).includes(e.animationName);e.target===t&&n&&md.flushSync((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=ly(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:I.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):I.Children.only(n),i=Cg(r.ref,o.ref);return"function"==typeof n||r.isPresent?I.cloneElement(o,{ref:i}):null};function ly(e){return(null==e?void 0:e.animationName)||"none"}sy.displayName="Presence";const uy="Radio",[cy,dy]=kg(uy),[fy,py]=cy(uy),hy=I.forwardRef(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,...u}=e,[c,d]=I.useState(null),f=Cg(t,(e=>d(e))),p=I.useRef(!1),h=!c||Boolean(c.closest("form"));return I.createElement(fy,{scope:n,checked:o,disabled:a},I.createElement(Ag.button,Q({type:"button",role:"radio","aria-checked":o,"data-state":gy(o),"data-disabled":a?"":void 0,disabled:a,value:s},u,{ref:f,onClick:xg(e.onClick,(e=>{o||null==l||l(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&I.createElement(vy,{control:c,bubbles:!p.current,name:r,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),my=I.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=py("RadioIndicator",n);return I.createElement(sy,{present:r||i.checked},I.createElement(Ag.span,Q({"data-state":gy(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),vy=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=I.useRef(null),a=ay(n),s=iy(t);return I.useEffect((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),I.createElement("input",Q({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function gy(e){return e?"checked":"unchecked"}const yy=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],by="RadioGroup",[wy,Ey]=kg(by,[qg,dy]),xy=qg(),Sy=dy(),[Cy,ky]=wy(by),Py=I.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,p=xy(n),h=jg(u),[m,v]=zg({prop:i,defaultProp:o,onChange:d});return I.createElement(Cy,{scope:n,name:r,required:a,disabled:s,value:m,onValueChange:v},I.createElement(ry,Q({asChild:!0},p,{orientation:l,dir:h,loop:c}),I.createElement(Ag.div,Q({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:h},f,{ref:t}))))})),Ty=I.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=ky("RadioGroupItem",n),a=i.disabled||r,s=xy(n),l=Sy(n),u=I.useRef(null),c=Cg(t,u),d=i.value===o.value,f=I.useRef(!1);return I.useEffect((()=>{const e=e=>{yy.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),I.createElement(oy,Q({asChild:!0},s,{focusable:!a,active:d}),I.createElement(hy,Q({disabled:a,required:i.required,checked:d},l,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:xg((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:xg(o.onFocus,(()=>{var e;f.current&&(null===(e=u.current)||void 0===e||e.click())}))})))})),Ry=I.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Sy(n);return I.createElement(my,Q({},o,r,{ref:t}))}));function Dy(e,[t,n]){return Math.min(n,Math.max(t,e))}const _y="dismissableLayer.update",Ly="dismissableLayer.pointerDownOutside",Ay="dismissableLayer.focusOutside";let My;const Oy=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ny=I.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=I.useContext(Oy),[d,f]=I.useState(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,h]=I.useState({}),m=Cg(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,x=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Vg(e),r=I.useRef(!1),o=I.useRef((()=>{}));return I.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Iy(Ly,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),S=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Vg(e),r=I.useRef(!1);return I.useEffect((()=>{const e=e=>{if(e.target&&!r.current){Iy(Ay,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Vg(e);I.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),I.useEffect((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(My=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Fy(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=My)}}),[d,p,r,c]),I.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Fy())}),[d,c]),I.useEffect((()=>{const e=()=>h({});return document.addEventListener(_y,e),()=>document.removeEventListener(_y,e)}),[]),I.createElement(Ag.div,Q({},u,{ref:m,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:xg(e.onFocusCapture,S.onFocusCapture),onBlurCapture:xg(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:xg(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function Fy(){const e=new CustomEvent(_y);document.dispatchEvent(e)}function Iy(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&md.flushSync((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}let Vy=0;function zy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const By="focusScope.autoFocusOnMount",jy="focusScope.autoFocusOnUnmount",Uy={bubbles:!1,cancelable:!0},Hy=I.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=I.useState(null),u=Vg(o),c=Vg(i),d=I.useRef(null),f=Cg(t,(e=>l(e))),p=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:Yy(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Yy(d.current,{select:!0}))},n=function(e){const t=document.activeElement;for(const n of e)n.removedNodes.length>0&&(null!=s&&s.contains(t)||Yy(s))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),I.useEffect((()=>{if(s){Xy.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(By,Uy);s.addEventListener(By,u),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Yy(r,{select:t}),document.activeElement!==n)return}((e=Wy(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Yy(s))}return()=>{s.removeEventListener(By,u),setTimeout((()=>{const e=new CustomEvent(jy,Uy);s.addEventListener(jy,c),s.dispatchEvent(e),e.defaultPrevented||Yy(null!=t?t:document.body,{select:!0}),s.removeEventListener(jy,c),Xy.remove(p)}),0)}}var e}),[s,u,c,p]);const h=I.useCallback((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Wy(e),n=$y(t,e),r=$y(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Yy(i,{select:!0})):(e.preventDefault(),n&&Yy(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return I.createElement(Ag.div,Q({tabIndex:-1},a,{ref:f,onKeyDown:h}))}));function Wy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $y(e,t){for(const n of e)if(!Ky(n,{upTo:t}))return n}function Ky(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Yy(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Xy=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=qy(e,t),e.unshift(t)},remove(t){var n;e=qy(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function qy(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Qy(e){return e.split("-")[1]}function Gy(e){return"y"===e?"height":"width"}function Zy(e){return e.split("-")[0]}function Jy(e){return["top","bottom"].includes(Zy(e))?"x":"y"}function eb(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Jy(t),l=Gy(s),u=r[l]/2-o[l]/2,c="x"===s;let d;switch(Zy(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Qy(t)){case"start":d[s]-=u*(n&&c?-1:1);break;case"end":d[s]+=u*(n&&c?-1:1)}return d}function tb(e,t){return"function"==typeof e?e(t):e}function nb(e){return"number"!=typeof e?(t=e,{top:0,right:0,bottom:0,left:0,...t}):{top:e,right:e,bottom:e,left:e};var t}function rb(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ob(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=tb(t,e),h=nb(p),m=s[f?"floating"===d?"reference":"floating":d],v=rb(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=rb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}const ib=Math.min,ab=Math.max;function sb(e,t,n){return ab(e,ib(t,n))}const lb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:l,padding:u=0}=tb(e,t)||{};if(null==l)return{};const c=nb(u),d={x:n,y:r},f=Jy(o),p=Gy(f),h=await a.getDimensions(l),m="y"===f,v=m?"top":"left",g=m?"bottom":"right",y=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[f]-d[f]-i.floating[p],w=d[f]-i.reference[f],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let x=E?E[y]:0;x&&await(null==a.isElement?void 0:a.isElement(E))||(x=s.floating[y]||i.floating[p]);const S=b/2-w/2,C=x/2-h[p]/2-1,k=ib(c[v],C),P=ib(c[g],C),T=k,R=x-h[p]-P,D=x/2-h[p]/2+S,_=sb(T,D,R),L=null!=Qy(o)&&D!=_&&i.reference[p]/2-(D<T?k:P)-h[p]/2<0?D<T?T-D:R-D:0;return{[f]:d[f]-L,data:{[f]:_,centerOffset:D-_+L}}}}),ub=["top","right","bottom","left"];ub.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const cb={left:"right",right:"left",bottom:"top",top:"bottom"};function db(e){return e.replace(/left|right|bottom|top/g,(e=>cb[e]))}const fb={start:"end",end:"start"};function pb(e){return e.replace(/start|end/g,(e=>fb[e]))}const hb=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...m}=tb(e,t),v=Zy(r),g=Zy(a)===a,y=await(null==s.isRTL?void 0:s.isRTL(l.floating)),b=d||(g||!h?[db(a)]:function(e){const t=db(e);return[pb(e),t,pb(t)]}(a));d||"none"===p||b.push(...function(e,t,n,r){const o=Qy(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Zy(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(pb)))),i}(a,h,p,y));const w=[a,...b],E=await ob(t,m),x=[];let S=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&x.push(E[v]),c){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=Qy(e),o=Jy(e),i=Gy(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=db(a)),{main:a,cross:db(a)}}(r,i,y);x.push(E[e],E[t])}if(S=[...S,{placement:r,overflows:x}],!x.every((e=>e<=0))){var C,k;const e=((null==(C=o.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(f){case"bestFit":{var P;const e=null==(P=S.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:P[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function mb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vb(e){return ub.some((t=>e[t]>=0))}const gb=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=tb(e,t);switch(r){case"referenceHidden":{const e=mb(await ob(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:vb(e)}}}case"escaped":{const e=mb(await ob(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:vb(e)}}}default:return{}}}}};function yb(e){return"x"===e?"y":"x"}const bb=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=tb(e,t),u={x:n,y:r},c=await ob(t,l),d=Jy(Zy(o)),f=yb(d);let p=u[d],h=u[f];if(i){const e="y"===d?"bottom":"right";p=sb(p+c["y"===d?"top":"left"],p,p-c[e])}if(a){const e="y"===f?"bottom":"right";h=sb(h+c["y"===f?"top":"left"],h,h-c[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},wb=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=tb(e,t),l=await ob(t,s),u=Zy(n),c=Qy(n),d="x"===Jy(n),{width:f,height:p}=r.floating;let h,m;"top"===u||"bottom"===u?(h=u,m=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,h="end"===c?"top":"bottom");const v=p-l[h],g=f-l[m],y=!t.middlewareData.shift;let b=v,w=g;if(d){const e=f-l.left-l.right;w=c||y?ib(g,e):e}else{const e=p-l.top-l.bottom;b=c||y?ib(v,e):e}if(y&&!c){const e=ab(l.left,0),t=ab(l.right,0),n=ab(l.top,0),r=ab(l.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:ab(l.left,l.right)):b=p-2*(0!==n||0!==r?n+r:ab(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:b});const E=await o.getDimensions(i.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function Eb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function xb(e){return Eb(e).getComputedStyle(e)}function Sb(e){return e instanceof Eb(e).Node}function Cb(e){return Sb(e)?(e.nodeName||"").toLowerCase():"#document"}function kb(e){return e instanceof HTMLElement||e instanceof Eb(e).HTMLElement}function Pb(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Eb(e).ShadowRoot||e instanceof ShadowRoot)}function Tb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rb(e){return["table","td","th"].includes(Cb(e))}function Db(e){const t=_b(),n=xb(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 _b(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lb(e){return["html","body","#document"].includes(Cb(e))}const Ab=Math.min,Mb=Math.max,Ob=Math.round,Nb=Math.floor,Fb=e=>({x:e,y:e});function Ib(e){const t=xb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kb(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ob(n)!==i||Ob(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Vb(e){return e instanceof Element||e instanceof Eb(e).Element}function zb(e){return Vb(e)?e:e.contextElement}function Bb(e){const t=zb(e);if(!kb(t))return Fb(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ib(t);let a=(i?Ob(n.width):n.width)/r,s=(i?Ob(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const jb=Fb(0);function Ub(e){const t=Eb(e);return _b()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:jb}function Hb(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=zb(e);let a=Fb(1);t&&(r?Vb(r)&&(a=Bb(r)):a=Bb(e));const s=(l=i,void 0===(u=n)&&(u=!1),!(c=r)||u&&c!==Eb(l)||!u?Fb(0):Ub(i));var l,u,c;let d=(o.left+s.x)/a.x,f=(o.top+s.y)/a.y,p=o.width/a.x,h=o.height/a.y;if(i){const e=Eb(i),t=r&&Vb(r)?Eb(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Bb(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,f*=e.y,p*=e.x,h*=e.y,d+=o,f+=i,n=Eb(n).frameElement}}return rb({width:p,height:h,x:d,y:f})}function Wb(e){return Vb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $b(e){var t;return null==(t=(Sb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kb(e){return Hb($b(e)).left+Wb(e).scrollLeft}function Yb(e){if("html"===Cb(e))return e;const t=e.assignedSlot||e.parentNode||Pb(e)&&e.host||$b(e);return Pb(t)?t.host:t}function Xb(e){const t=Yb(e);return Lb(t)?e.ownerDocument?e.ownerDocument.body:e.body:kb(t)&&Tb(t)?t:Xb(t)}function qb(e,t){var n;void 0===t&&(t=[]);const r=Xb(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Eb(r);return o?t.concat(i,i.visualViewport||[],Tb(r)?r:[]):t.concat(r,qb(r))}function Qb(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Eb(e),r=$b(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=_b();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=$b(e),n=Wb(e),r=e.ownerDocument.body,o=Mb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Mb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kb(e);const s=-n.scrollTop;return"rtl"===xb(r).direction&&(a+=Mb(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}($b(e));else if(Vb(t))r=function(e,t){const n=Hb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=kb(e)?Bb(e):Fb(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ub(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return rb(r)}function Gb(e,t){const n=Yb(e);return!(n===t||!Vb(n)||Lb(n))&&("fixed"===xb(n).position||Gb(n,t))}function Zb(e,t,n){const r=kb(t),o=$b(t),i="fixed"===n,a=Hb(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Fb(0);if(r||!r&&!i)if(("body"!==Cb(t)||Tb(o))&&(s=Wb(t)),kb(t)){const e=Hb(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Kb(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Jb(e,t){return kb(e)&&"fixed"!==xb(e).position?t?t(e):e.offsetParent:null}function ew(e,t){const n=Eb(e);if(!kb(e))return n;let r=Jb(e,t);for(;r&&Rb(r)&&"static"===xb(r).position;)r=Jb(r,t);return r&&("html"===Cb(r)||"body"===Cb(r)&&"static"===xb(r).position&&!Db(r))?n:r||function(e){let t=Yb(e);for(;kb(t)&&!Lb(t);){if(Db(t))return t;t=Yb(t)}return null}(e)||n}const tw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=kb(n),i=$b(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Fb(1);const l=Fb(0);if((o||!o&&"fixed"!==r)&&(("body"!==Cb(n)||Tb(i))&&(a=Wb(n)),kb(n))){const e=Hb(n);s=Bb(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:$b,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=qb(e).filter((e=>Vb(e)&&"body"!==Cb(e))),o=null;const i="fixed"===xb(e).position;let a=i?Yb(e):e;for(;Vb(a)&&!Lb(a);){const t=xb(a),n=Db(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Tb(a)&&!n&&Gb(e,a))?r=r.filter((e=>e!==a)):o=t,a=Yb(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Qb(t,n,o);return e.top=Mb(r.top,e.top),e.right=Ab(r.right,e.right),e.bottom=Ab(r.bottom,e.bottom),e.left=Mb(r.left,e.left),e}),Qb(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ew,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ew,i=this.getDimensions;return{reference:Zb(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Ib(e)},getScale:Bb,isElement:Vb,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function nw(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=zb(e),c=o||i?[...u?qb(u):[],...qb(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=$b(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Nb(c)+"px "+-Nb(o.clientWidth-(u+d))+"px "+-Nb(o.clientHeight-(c+f))+"px "+-Nb(u)+"px",threshold:Mb(0,Ab(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(v){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let m=l?Hb(e):null;return l&&function t(){const r=Hb(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const rw=(e,t,n)=>{const r=new Map,o={platform:tw,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=eb(u,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:i}=s[m],{x:v,y:g,data:y,reset:b}=await i({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[n]:{...p[n],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=eb(u,f,l))),m=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},ow=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?lb({element:n.current,padding:r}).fn(t):{}:n?lb({element:n,padding:r}).fn(t):{};var o}});var iw="undefined"!=typeof document?I.useLayoutEffect:I.useEffect;function aw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!aw(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!aw(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function sw(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lw(e,t){const n=sw(e);return Math.round(t*n)/n}function uw(e){const t=I.useRef(e);return iw((()=>{t.current=e})),t}const cw=I.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return I.createElement(Ag.svg,Q({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:I.createElement("polygon",{points:"0,0 30,0 15,10"}))})),dw="Popper",[fw,pw]=kg(dw),[hw,mw]=fw(dw),vw=I.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=mw("PopperAnchor",n),a=I.useRef(null),s=Cg(t,a);return I.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:I.createElement(Ag.div,Q({},o,{ref:s}))})),gw="PopperContent",[yw,bw]=fw(gw),ww=I.forwardRef(((e,t)=>{var n,r,o,i,a,s,l,u;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,onPlaced:E,...x}=e,S=mw(gw,c),[C,k]=I.useState(null),P=Cg(t,(e=>k(e))),[T,R]=I.useState(null),D=iy(T),_=null!==(n=null==D?void 0:D.width)&&void 0!==n?n:0,L=null!==(r=null==D?void 0:D.height)&&void 0!==r?r:0,A=d+("center"!==p?"-"+p:""),M="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},O=Array.isArray(v)?v:[v],N=O.length>0,F={padding:M,boundary:O.filter(xw),altBoundary:N},{refs:V,floatingStyles:z,placement:B,isPositioned:j,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=I.useState(r);aw(f,r)||p(r);const[h,m]=I.useState(null),[v,g]=I.useState(null),y=I.useCallback((e=>{e!=x.current&&(x.current=e,m(e))}),[m]),b=I.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[g]),w=i||h,E=a||v,x=I.useRef(null),S=I.useRef(null),C=I.useRef(c),k=uw(l),P=uw(o),T=I.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};P.current&&(e.platform=P.current),rw(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};R.current&&!aw(C.current,t)&&(C.current=t,md.flushSync((()=>{d(t)})))}))}),[f,t,n,P]);iw((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const R=I.useRef(!1);iw((()=>(R.current=!0,()=>{R.current=!1})),[]),iw((()=>{if(w&&(x.current=w),E&&(S.current=E),w&&E){if(k.current)return k.current(w,E,T);T()}}),[w,E,T,k]);const D=I.useMemo((()=>({reference:x,floating:S,setReference:y,setFloating:b})),[y,b]),_=I.useMemo((()=>({reference:w,floating:E})),[w,E]),L=I.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=lw(_.floating,c.x),r=lw(_.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...sw(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,_.floating,c.x,c.y]);return I.useMemo((()=>({...c,update:T,refs:D,elements:_,floatingStyles:L})),[c,T,D,_,L])}({strategy:"fixed",placement:A,whileElementsMounted:nw,elements:{reference:S.anchor},middleware:[(W={mainAxis:f+L,alignmentAxis:h},void 0===W&&(W=0),{name:"offset",options:W,async fn(e){const{x:t,y:n}=e,r=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Zy(n),s=Qy(n),l="x"===Jy(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=tb(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(e,W);return{x:t+r.x,y:n+r.y,data:r}}}),w&&bb({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?(void 0===H&&(H={}),{options:H,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=tb(H,e),u={x:t,y:n},c=Jy(r),d=yb(c);let f=u[c],p=u[d];const h=tb(a,e),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){const e="y"===c?"height":"width",t=o.reference[c]-o.floating[e]+m.mainAxis,n=o.reference[c]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var v,g;const e="y"===c?"width":"height",t=["top","left"].includes(Zy(r)),n=o.reference[d]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:(null==(g=i.offset)?void 0:g[d])||0)-(t?m.crossAxis:0);p<n?p=n:p>a&&(p=a)}return{[c]:f,[d]:p}}}):void 0,...F}),w&&hb({...F}),wb({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),T&&ow({element:T,padding:m}),Sw({arrowWidth:_,arrowHeight:L}),b&&gb({strategy:"referenceHidden"})]});var H,W;const[$,K]=Cw(B),Y=Vg(E);Og((()=>{j&&(null==Y||Y())}),[j,Y]);const X=null===(o=U.arrow)||void 0===o?void 0:o.x,q=null===(i=U.arrow)||void 0===i?void 0:i.y,G=0!==(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset),[Z,J]=I.useState();return Og((()=>{C&&J(window.getComputedStyle(C).zIndex)}),[C]),I.createElement("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:j?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(l=U.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},I.createElement(yw,{scope:c,placedSide:$,onArrowChange:R,arrowX:X,arrowY:q,shouldHideArrow:G},I.createElement(Ag.div,Q({"data-side":$,"data-align":K},x,{ref:P,style:{...x.style,animation:j?void 0:"none",opacity:null!==(u=U.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))})),Ew={top:"bottom",right:"left",bottom:"top",left:"right"};function xw(e){return null!==e}const Sw=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Cw(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?m:`${v}px`,b=-f+"px"):"top"===p?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?m:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function Cw(e){const[t,n="center"]=e.split("-");return[t,n]}const kw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=I.useState(null);return I.createElement(hw,{scope:t,anchor:r,onAnchorChange:o},n)},Pw=vw,Tw=ww,Rw=I.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=bw("PopperArrow",n),i=Ew[o.placedSide];return I.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},I.createElement(cw,Q({},r,{ref:t,style:{...r.style,display:"block"}})))})),Dw=I.forwardRef(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?vd.createPortal(I.createElement(Ag.div,Q({},o,{ref:t})),r):null})),_w=I.forwardRef(((e,t)=>I.createElement(Ag.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Lw=_w,Aw=[" ","Enter","ArrowUp","ArrowDown"],Mw=[" ","Enter"],Ow="Select",[Nw,Fw,Iw]=Mg(Ow),[Vw,zw]=kg(Ow,[Iw,pw]),Bw=pw(),[jw,Uw]=Vw(Ow),[Hw,Ww]=Vw(Ow),$w=I.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Bw(n),a=Uw("SelectTrigger",n),s=a.disabled||r,l=Cg(t,a.onTriggerChange),u=Fw(n),[c,d,f]=bE((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=wE(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{s||(a.onOpenChange(!0),f())};return I.createElement(Pw,Q({asChild:!0},i),I.createElement(Ag.button,Q({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":void 0===a.value?"":void 0},o,{ref:l,onClick:xg(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:xg(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:xg(o.onKeyDown,(e=>{const t=""!==c.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||d(e.key),t&&" "===e.key||Aw.includes(e.key)&&(p(),e.preventDefault())}))})))})),Kw=I.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a,...s}=e,l=Uw("SelectValue",n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==i,d=Cg(t,l.onValueNodeChange);return Og((()=>{u(c)}),[u,c]),I.createElement(Ag.span,Q({},s,{ref:d,style:{pointerEvents:"none"}}),void 0===l.value&&void 0!==a?a:i)})),Yw=I.forwardRef(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return I.createElement(Ag.span,Q({"aria-hidden":!0},o,{ref:t}),r||"▼")})),Xw="SelectContent",qw=I.forwardRef(((e,t)=>{const n=Uw(Xw,e.__scopeSelect),[r,o]=I.useState();if(Og((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?md.createPortal(I.createElement(Gw,{scope:e.__scopeSelect},I.createElement(Nw.Slot,{scope:e.__scopeSelect},I.createElement("div",null,e.children))),t):null}return I.createElement(Jw,Q({},e,{ref:t}))})),Qw=10,[Gw,Zw]=Vw(Xw),Jw=I.forwardRef(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v,...g}=e,y=Uw(Xw,n),[b,w]=I.useState(null),[E,x]=I.useState(null),S=Cg(t,(e=>w(e))),[C,k]=I.useState(null),[P,T]=I.useState(null),R=Fw(n),[D,_]=I.useState(!1),L=I.useRef(!1);I.useEffect((()=>{if(b)return zf(b)}),[b]),I.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:zy()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:zy()),Vy++,()=>{1===Vy&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Vy--}}),[]);const A=I.useCallback((e=>{const[t,...n]=R().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const i of e){if(i===o)return;if(null==i||i.scrollIntoView({block:"nearest"}),i===t&&E&&(E.scrollTop=0),i===r&&E&&(E.scrollTop=E.scrollHeight),null==i||i.focus(),document.activeElement!==o)return}}),[R,E]),M=I.useCallback((()=>A([C,b])),[A,C,b]);I.useEffect((()=>{D&&M()}),[D,M]);const{onOpenChange:O,triggerPointerDownPosRef:N}=y;I.useEffect((()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=N.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=N.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||O(!1),document.removeEventListener("pointermove",t),N.current=null};return null!==N.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[b,O,N]),I.useEffect((()=>{const e=()=>O(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[O]);const[F,V]=bE((e=>{const t=R().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=wE(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),z=I.useCallback(((e,t,n)=>{const r=!L.current&&!n;(void 0!==y.value&&y.value===t||r)&&(k(e),r&&(L.current=!0))}),[y.value]),B=I.useCallback((()=>null==b?void 0:b.focus()),[b]),j=I.useCallback(((e,t,n)=>{const r=!L.current&&!n;(void 0!==y.value&&y.value===t||r)&&T(e)}),[y.value]),U="popper"===r?tE:eE,H=U===tE?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v}:{};return I.createElement(Gw,{scope:n,content:b,viewport:E,onViewportChange:x,itemRefCallback:z,selectedItem:C,onItemLeave:B,itemTextRefCallback:j,focusSelectedItem:M,selectedItemText:P,position:r,isPositioned:D,searchRef:F},I.createElement(Af,{as:Tg,allowPinchZoom:!0},I.createElement(Hy,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:xg(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},I.createElement(Ny,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},I.createElement(U,Q({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},g,H,{onPlaced:()=>_(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:xg(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||V(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=R().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>A(t))),e.preventDefault()}}))}))))))})),eE=I.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Uw(Xw,n),a=Zw(Xw,n),[s,l]=I.useState(null),[u,c]=I.useState(null),d=Cg(t,(e=>c(e))),f=Fw(n),p=I.useRef(!1),h=I.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:g,focusSelectedItem:y}=a,b=I.useCallback((()=>{if(i.trigger&&i.valueNode&&s&&u&&m&&v&&g){const e=i.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-Qw,d=Dy(i,[Qw,c-u]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-Qw,d=Dy(i,[Qw,c-u]);s.style.minWidth=l+"px",s.style.right=d+"px"}const a=f(),l=window.innerHeight-2*Qw,c=m.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=h+y+c+parseInt(d.paddingBottom,10)+b,E=Math.min(5*v.offsetHeight,w),x=window.getComputedStyle(m),S=parseInt(x.paddingTop,10),C=parseInt(x.paddingBottom,10),k=e.top+e.height/2-Qw,P=l-k,T=v.offsetHeight/2,R=h+y+(v.offsetTop+T),D=w-R;if(R<=k){const e=v===a[a.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-m.offsetTop-m.offsetHeight,n=R+Math.max(P,T+(e?C:0)+t+b);s.style.height=n+"px"}else{const e=v===a[0].ref.current;s.style.top="0px";const t=Math.max(k,h+m.offsetTop+(e?S:0)+T)+D;s.style.height=t+"px",m.scrollTop=R-k+m.offsetTop}s.style.margin=`${Qw}px 0`,s.style.minHeight=E+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,s,u,m,v,g,i.dir,r]);Og((()=>b()),[b]);const[w,E]=I.useState();Og((()=>{u&&E(window.getComputedStyle(u).zIndex)}),[u]);const x=I.useCallback((e=>{e&&!0===h.current&&(b(),null==y||y(),h.current=!1)}),[b,y]);return I.createElement(nE,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:x},I.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},I.createElement(Ag.div,Q({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),tE=I.forwardRef(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Qw,...i}=e,a=Bw(n);return I.createElement(Tw,Q({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[nE,rE]=Vw(Xw,{}),oE="SelectViewport",iE=I.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Zw(oE,n),i=rE(oE,n),a=Cg(t,o.onViewportChange),s=I.useRef(0);return I.createElement(I.Fragment,null,I.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),I.createElement(Nw.Slot,{scope:n},I.createElement(Ag.div,Q({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:xg(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Qw,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))}));Vw("SelectGroup");const aE="SelectItem",[sE,lE]=Vw(aE),uE=I.forwardRef(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Uw(aE,n),l=Zw(aE,n),u=s.value===r,[c,d]=I.useState(null!=i?i:""),[f,p]=I.useState(!1),h=Cg(t,(e=>{var t;return null===(t=l.itemRefCallback)||void 0===t?void 0:t.call(l,e,r,o)})),m=Ig(),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};return I.createElement(sE,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:I.useCallback((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},I.createElement(Nw.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},I.createElement(Ag.div,Q({role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:h,onFocus:xg(a.onFocus,(()=>p(!0))),onBlur:xg(a.onBlur,(()=>p(!1))),onPointerUp:xg(a.onPointerUp,v),onPointerMove:xg(a.onPointerMove,(e=>{var t;o?null===(t=l.onItemLeave)||void 0===t||t.call(l):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:xg(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=l.onItemLeave)||void 0===t||t.call(l))})),onKeyDown:xg(a.onKeyDown,(e=>{var t;""!==(null===(t=l.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Mw.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),cE="SelectItemText",dE=I.forwardRef(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Uw(cE,n),s=Zw(cE,n),l=lE(cE,n),u=Ww(cE,n),[c,d]=I.useState(null),f=Cg(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,l.value,l.disabled)})),p=null==c?void 0:c.textContent,h=I.useMemo((()=>I.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},p)),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=u;return Og((()=>(m(h),()=>v(h))),[m,v,h]),I.createElement(I.Fragment,null,I.createElement(Ag.span,Q({id:l.textId},i,{ref:f})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?md.createPortal(i.children,a.valueNode):null)})),fE=I.forwardRef(((e,t)=>{const{__scopeSelect:n,...r}=e;return lE("SelectItemIndicator",n).isSelected?I.createElement(Ag.span,Q({"aria-hidden":!0},r,{ref:t})):null})),pE="SelectScrollUpButton",hE=I.forwardRef(((e,t)=>{const n=Zw(pE,e.__scopeSelect),r=rE(pE,e.__scopeSelect),[o,i]=I.useState(!1),a=Cg(t,r.onScrollButtonChange);return Og((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?I.createElement(gE,Q({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),mE="SelectScrollDownButton",vE=I.forwardRef(((e,t)=>{const n=Zw(mE,e.__scopeSelect),r=rE(mE,e.__scopeSelect),[o,i]=I.useState(!1),a=Cg(t,r.onScrollButtonChange);return Og((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?I.createElement(gE,Q({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),gE=I.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Zw("SelectScrollButton",n),a=I.useRef(null),s=Fw(n),l=I.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return I.useEffect((()=>()=>l()),[l]),Og((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),I.createElement(Ag.div,Q({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:xg(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:xg(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:xg(o.onPointerLeave,(()=>{l()}))}))})),yE=I.forwardRef(((e,t)=>{const{value:n,...r}=e,o=I.useRef(null),i=Cg(t,o),a=ay(n);return I.useEffect((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),I.createElement(_w,{asChild:!0},I.createElement("select",Q({},r,{ref:i,defaultValue:n})))}));function bE(e){const t=Vg(e),n=I.useRef(""),r=I.useRef(0),o=I.useCallback((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=I.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return I.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function wE(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(o,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===r.length&&(i=i.filter((e=>e!==n)));const l=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}yE.displayName="BubbleSelect";const EE=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:p}=e,h=Bw(t),[m,v]=I.useState(null),[g,y]=I.useState(null),[b,w]=I.useState(!1),E=jg(u),[x=!1,S]=zg({prop:r,defaultProp:o,onChange:i}),[C,k]=zg({prop:a,defaultProp:s,onChange:l}),P=I.useRef(null),T=!m||Boolean(m.closest("form")),[R,D]=I.useState(new Set),_=Array.from(R).map((e=>e.props.value)).join(";");return I.createElement(kw,h,I.createElement(jw,{required:p,scope:t,trigger:m,onTriggerChange:v,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:Ig(),value:C,onValueChange:k,open:x,onOpenChange:S,dir:E,triggerPointerDownPosRef:P,disabled:f},I.createElement(Nw.Provider,{scope:t},I.createElement(Hw,{scope:e.__scopeSelect,onNativeOptionAdd:I.useCallback((e=>{D((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:I.useCallback((e=>{D((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),T?I.createElement(yE,{key:_,"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:C,onChange:e=>k(e.target.value),disabled:f},void 0===C?I.createElement("option",{value:""}):null,Array.from(R)):null))},xE=$w,SE=Kw,CE=Yw,kE=e=>I.createElement(Dw,Q({asChild:!0},e)),PE=qw,TE=iE,RE=uE,DE=dE,_E=fE,LE=hE,AE=vE,ME=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),OE=I.createContext({}),NE=I.createContext(null),FE="undefined"!=typeof document,IE=FE?I.useLayoutEffect:I.useEffect,VE=I.createContext({strict:!1});function zE(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function BE(e){return"string"==typeof e||Array.isArray(e)}function jE(e){return"object"==typeof e&&"function"==typeof e.start}const UE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HE=["initial",...UE];function WE(e){return jE(e.animate)||HE.some((t=>BE(e[t])))}function $E(e){return Boolean(WE(e)||e.variants)}function KE(e){const{initial:t,animate:n}=function(e,t){if(WE(e)){const{initial:t,animate:n}=e;return{initial:!1===t||BE(t)?t:void 0,animate:BE(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,I.useContext(OE));return I.useMemo((()=>({initial:t,animate:n})),[YE(t),YE(n)])}function YE(e){return Array.isArray(e)?e.join(" "):e}const XE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},qE={};for(const __ in XE)qE[__]={isEnabled:e=>XE[__].some((t=>!!e[t]))};function QE(e){const t=I.useRef(null);return null===t.current&&(t.current=e()),t.current}const GE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ZE=1;const JE=I.createContext({}),ex=I.createContext({}),tx=Symbol.for("motionComponentSymbol");function nx({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)qE[t]={...qE[t],...e[t]}}(e);const i=I.forwardRef((function(i,a){let s;const l={...I.useContext(ME),...i,layoutId:rx(i)},{isStatic:u}=l,c=KE(i),d=u?void 0:QE((()=>{if(GE.hasEverUpdated)return ZE++})),f=r(i,u);if(!u&&FE){c.visualElement=function(e,t,n,r){const{visualElement:o}=I.useContext(OE),i=I.useContext(VE),a=I.useContext(NE),s=I.useContext(ME).reducedMotion,l=I.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const u=l.current;return I.useInsertionEffect((()=>{u&&u.update(n,a)})),IE((()=>{u&&u.render()})),I.useEffect((()=>{u&&u.updateFeatures()})),(window.HandoffAppearAnimations?IE:I.useEffect)((()=>{u&&u.animationState&&u.animationState.animateChanges()})),u}(o,f,l,t);const n=I.useContext(ex),r=I.useContext(VE).strict;c.visualElement&&(s=c.visualElement.loadFeatures(l,r,e,d,n))}return I.createElement(OE.Provider,{value:c},s&&c.visualElement?I.createElement(s,{visualElement:c.visualElement,...l}):null,n(o,i,d,function(e,t,n){return I.useCallback((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):zE(n)&&(n.current=r))}),[t])}(f,c.visualElement,a),f,u,c.visualElement))}));return i[tx]=o,i}function rx({layoutId:e}){const t=I.useContext(JE).id;return t&&void 0!==e?t+"-"+e:e}function ox(e){function t(t,n={}){return nx(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const ix=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ax(e){return"string"==typeof e&&!e.includes("-")&&!!(ix.indexOf(e)>-1||/[A-Z]/.test(e))}const sx={};const lx=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ux=new Set(lx);function cx(e,{layout:t,layoutId:n}){return ux.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!sx[e]||"opacity"===e)}const dx=e=>Boolean(e&&e.getVelocity),fx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},px=lx.length;const hx=e=>t=>"string"==typeof t&&t.startsWith(e),mx=hx("--"),vx=hx("var(--"),gx=(e,t)=>t&&"number"==typeof e?t.transform(e):e,yx=(e,t,n)=>Math.min(Math.max(n,e),t),bx={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wx={...bx,transform:e=>yx(0,1,e)},Ex={...bx,default:1},xx=e=>Math.round(1e5*e)/1e5,Sx=/(-)?([\d]*\.?[\d])+/g,Cx=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kx=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Px(e){return"string"==typeof e}const Tx=e=>({test:t=>Px(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Rx=Tx("deg"),Dx=Tx("%"),_x=Tx("px"),Lx=Tx("vh"),Ax=Tx("vw"),Mx={...Dx,parse:e=>Dx.parse(e)/100,transform:e=>Dx.transform(100*e)},Ox={...bx,transform:Math.round},Nx={borderWidth:_x,borderTopWidth:_x,borderRightWidth:_x,borderBottomWidth:_x,borderLeftWidth:_x,borderRadius:_x,radius:_x,borderTopLeftRadius:_x,borderTopRightRadius:_x,borderBottomRightRadius:_x,borderBottomLeftRadius:_x,width:_x,maxWidth:_x,height:_x,maxHeight:_x,size:_x,top:_x,right:_x,bottom:_x,left:_x,padding:_x,paddingTop:_x,paddingRight:_x,paddingBottom:_x,paddingLeft:_x,margin:_x,marginTop:_x,marginRight:_x,marginBottom:_x,marginLeft:_x,rotate:Rx,rotateX:Rx,rotateY:Rx,rotateZ:Rx,scale:Ex,scaleX:Ex,scaleY:Ex,scaleZ:Ex,skew:Rx,skewX:Rx,skewY:Rx,distance:_x,translateX:_x,translateY:_x,translateZ:_x,x:_x,y:_x,z:_x,perspective:_x,transformPerspective:_x,opacity:wx,originX:Mx,originY:Mx,originZ:_x,zIndex:Ox,fillOpacity:wx,strokeOpacity:wx,numOctaves:Ox};function Fx(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const e=t[d];if(mx(d)){i[d]=e;continue}const n=Nx[d],r=gx(e,n);if(ux.has(d)){if(l=!0,a[d]=r,!c)continue;e!==(n.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=r):o[d]=r}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<px;a++){const t=lx[a];void 0!==e[t]&&(i+=`${fx[t]||t}(${e[t]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const Ix=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vx(e,t,n){for(const r in t)dx(t[r])||cx(r,n)||(e[r]=t[r])}function zx(e,t,n){const r={};return Vx(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return I.useMemo((()=>{const r=Ix();return Fx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function Bx(e,t,n){const r={},o=zx(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const jx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Ux(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||jx.has(e)}let Hx=e=>!Ux(e);try{(Wx=require("@emotion/is-prop-valid").default)&&(Hx=e=>e.startsWith("on")?!Ux(e):Wx(e))}catch(D_){}var Wx;function $x(e,t,n){return"string"==typeof e?e:_x.transform(t+n*e)}const Kx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yx={offset:"strokeDashoffset",array:"strokeDasharray"};function Xx(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},u,c,d){if(Fx(e,l,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${$x(t,e.x,e.width)} ${$x(n,e.y,e.height)}`}(h,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Kx:Yx;e[i.offset]=_x.transform(-r);const a=_x.transform(t),s=_x.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const qx=()=>({...Ix(),attrs:{}}),Qx=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Gx(e,t,n,r){const o=I.useMemo((()=>{const n=qx();return Xx(n,t,{enableHardwareAcceleration:!1},Qx(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Vx(t,e.style,e),o.style={...t,...o.style}}return o}function Zx(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(ax(t)?Gx:Bx)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Hx(o)||!0===n&&Ux(o)||!t&&!Ux(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),u={...l,...s,ref:o},{children:c}=n,d=I.useMemo((()=>dx(c)?c.get():c),[c]);return r&&(u["data-projection-id"]=r),I.createElement(t,{...u,children:d})}}const Jx=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function eS(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const tS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nS(e,t,n,r){eS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(tS.has(o)?o:Jx(o),t.attrs[o])}function rS(e,t){const{style:n}=e,r={};for(const o in n)(dx(n[o])||t.style&&dx(t.style[o])||cx(o,e))&&(r[o]=n[o]);return r}function oS(e,t){const n=rS(e,t);for(const r in e)if(dx(e[r])||dx(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function iS(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const aS=e=>Array.isArray(e),sS=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),lS=e=>aS(e)?e[e.length-1]||0:e;function uS(e){const t=dx(e)?e.get():e;return sS(t)?t.toValue():t}const cS=e=>(t,n)=>{const r=I.useContext(OE),o=I.useContext(NE),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:dS(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():QE(i)};function dS(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=uS(i[f]);let{initial:a,animate:s}=e;const l=WE(e),u=$E(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!jE(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=iS(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const fS={useVisualState:cS({scrapeMotionValuesFromProps:oS,createRenderState:qx,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){n.dimensions={x:0,y:0,width:0,height:0}}Xx(n,r,{enableHardwareAcceleration:!1},Qx(t.tagName),e.transformTemplate),nS(t,n)}})},pS={useVisualState:cS({scrapeMotionValuesFromProps:rS,createRenderState:Ix})};function hS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const mS=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function vS(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const gS=e=>t=>mS(t)&&e(t,vS(t));function yS(e,t,n,r){return hS(e,t,gS(n),r)}const bS=(e,t)=>n=>t(e(n)),wS=(...e)=>e.reduce(bS);function ES(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const xS=ES("dragHorizontal"),SS=ES("dragVertical");function CS(e){let t=!1;if("y"===e)t=SS();else if("x"===e)t=xS();else{const e=xS(),n=SS();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function kS(){const e=CS(!0);return!e||(e(),!1)}class PS{constructor(e){this.isMounted=!1,this.node=e}update(){}}const TS={delta:0,timestamp:0,isProcessing:!1};let RS=!0,DS=!1;const _S=["read","update","preRender","render","postRender"],LS=_S.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,u=l?t:n;return i&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>DS=!0)),e)),{}),AS=_S.reduce(((e,t)=>{const n=LS[t];return e[t]=(e,t=!1,r=!1)=>(DS||IS(),n.schedule(e,t,r)),e}),{}),MS=_S.reduce(((e,t)=>(e[t]=LS[t].cancel,e)),{}),OS=_S.reduce(((e,t)=>(e[t]=()=>LS[t].process(TS),e)),{}),NS=e=>LS[e].process(TS),FS=e=>{DS=!1,TS.delta=RS?1e3/60:Math.max(Math.min(e-TS.timestamp,40),1),TS.timestamp=e,TS.isProcessing=!0,_S.forEach(NS),TS.isProcessing=!1,DS&&(RS=!1,requestAnimationFrame(FS))},IS=()=>{DS=!0,RS=!0,TS.isProcessing||requestAnimationFrame(FS)};function VS(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return yS(e.current,n,((n,o)=>{if("touch"===n.type||kS())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&AS.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const zS=(e,t)=>!!t&&(e===t||zS(e,t.parentElement)),BS=e=>e;function jS(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,vS(n))}const US=new WeakMap,HS=new WeakMap,WS=e=>{const t=US.get(e.target);t&&t(e)},$S=e=>{e.forEach(WS)};function KS(e,t,n){const r=function({root:e,...t}){const n=e||document;HS.has(n)||HS.set(n,{});const r=HS.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver($S,{root:e,...t})),r[o]}(t);return US.set(e,n),r.observe(e),()=>{US.delete(e),r.unobserve(e)}}const YS={some:0,all:1};const XS={inView:{Feature:class extends PS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:YS[r]};return KS(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends PS{constructor(){super(...arguments),this.removeStartListeners=BS,this.removeEndListeners=BS,this.removeAccessibleListeners=BS,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=yS(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();AS.update((()=>{zS(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=yS(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=wS(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=hS(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=hS(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&jS("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&AS.update((()=>n(e,t)))}))})),jS("down",((e,t)=>{this.startPress(e,t)}))})),t=hS(this.node.current,"blur",(()=>{this.isPressing&&jS("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=wS(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&AS.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!kS()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&AS.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=yS(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=hS(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=wS(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends PS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wS(hS(this.node.current,"focus",(()=>this.onFocus())),hS(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends PS{mount(){this.unmount=wS(VS(this.node,!0),VS(this.node,!1))}unmount(){}}}};function qS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function QS(e,t,n){const r=e.getProps();return iS(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const GS="data-"+Jx("framerAppearId");let ZS=BS,JS=BS;const eC=e=>1e3*e,tC=e=>e/1e3,nC=!1,rC=e=>Array.isArray(e)&&"number"==typeof e[0];function oC(e){return Boolean(!e||"string"==typeof e&&aC[e]||rC(e)||Array.isArray(e)&&e.every(oC))}const iC=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,aC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iC([0,.65,.55,1]),circOut:iC([.55,0,1,.45]),backIn:iC([.31,.01,.66,-.59]),backOut:iC([.33,1.53,.69,.99])};function sC(e){if(e)return rC(e)?iC(e):Array.isArray(e)?e.map(sC):aC[e]}const lC={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},uC={},cC={};for(const __ in lC)cC[__]=()=>(void 0===uC[__]&&(uC[__]=lC[__]()),uC[__]);const dC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fC=1e-7,pC=12;function hC(e,t,n,r){if(e===t&&n===r)return BS;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=dC(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>fC&&++s<pC);return a}(t,0,1,e,n);return e=>0===e||1===e?e:dC(o(e),t,r)}const mC=hC(.42,0,1,1),vC=hC(0,0,.58,1),gC=hC(.42,0,.58,1),yC=e=>Array.isArray(e)&&"number"!=typeof e[0],bC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wC=e=>t=>1-e(1-t),EC=e=>1-Math.sin(Math.acos(e)),xC=wC(EC),SC=bC(xC),CC=hC(.33,1.53,.69,.99),kC=wC(CC),PC=bC(kC),TC={linear:BS,easeIn:mC,easeInOut:gC,easeOut:vC,circIn:EC,circInOut:SC,circOut:xC,backIn:kC,backInOut:PC,backOut:CC,anticipate:e=>(e*=2)<1?.5*kC(e):.5*(2-Math.pow(2,-10*(e-1)))},RC=e=>{if(Array.isArray(e)){JS(4===e.length);const[t,n,r,o]=e;return hC(t,n,r,o)}return"string"==typeof e?TC[e]:e},DC=(e,t)=>n=>Boolean(Px(n)&&kx.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),_C=(e,t,n)=>r=>{if(!Px(r))return r;const[o,i,a,s]=r.match(Sx);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},LC={...bx,transform:e=>Math.round((e=>yx(0,255,e))(e))},AC={test:DC("rgb","red"),parse:_C("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+LC.transform(e)+", "+LC.transform(t)+", "+LC.transform(n)+", "+xx(wx.transform(r))+")"};const MC={test:DC("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:AC.transform},OC={test:DC("hsl","hue"),parse:_C("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Dx.transform(xx(t))+", "+Dx.transform(xx(n))+", "+xx(wx.transform(r))+")"},NC={test:e=>AC.test(e)||MC.test(e)||OC.test(e),parse:e=>AC.test(e)?AC.parse(e):OC.test(e)?OC.parse(e):MC.parse(e),transform:e=>Px(e)?e:e.hasOwnProperty("red")?AC.transform(e):OC.transform(e)},FC=(e,t,n)=>-n*e+n*t+e;function IC(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const VC=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},zC=[MC,AC,OC];function BC(e){const t=(n=e,zC.find((e=>e.test(n))));var n;let r=t.parse(e);return t===OC&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=IC(s,r,e+1/3),i=IC(s,r,e),a=IC(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const jC=(e,t)=>{const n=BC(e),r=BC(t),o={...n};return e=>(o.red=VC(n.red,r.red,e),o.green=VC(n.green,r.green,e),o.blue=VC(n.blue,r.blue,e),o.alpha=FC(n.alpha,r.alpha,e),AC.transform(o))},UC="${c}",HC="${n}";function WC(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(Cx);o&&(n=o.length,e=e.replace(Cx,UC),t.push(...o.map(NC.parse)));const i=e.match(Sx);return i&&(r=i.length,e=e.replace(Sx,HC),t.push(...i.map(bx.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function $C(e){return WC(e).values}function KC(e){const{values:t,numColors:n,tokenised:r}=WC(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?UC:HC,r<n?NC.transform(e[r]):xx(e[r]));return t}}const YC=e=>"number"==typeof e?0:e;const XC={test:function(e){var t,n;return isNaN(e)&&Px(e)&&((null===(t=e.match(Sx))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Cx))||void 0===n?void 0:n.length)||0)>0},parse:$C,createTransformer:KC,getAnimatableNone:function(e){const t=$C(e);return KC(e)(t.map(YC))}};function qC(e,t){return"number"==typeof e?n=>FC(e,t,n):NC.test(e)?jC(e,t):ZC(e,t)}const QC=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>qC(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},GC=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=qC(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ZC=(e,t)=>{const n=XC.createTransformer(t),r=WC(e),o=WC(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?wS(QC(r.values,o.values),n):n=>`${n>0?t:e}`},JC=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ek=(e,t)=>n=>FC(e,t,n);function tk(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?ek:"string"==typeof i?NC.test(i)?jC:ZC:Array.isArray(i)?QC:"object"==typeof i?GC:ek);var i;const a=e.length-1;for(let s=0;s<a;s++){let n=o(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]||BS:t;n=wS(e,n)}r.push(n)}return r}function nk(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(JS(i===t.length),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=tk(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=JC(e[n],e[n+1],t);return a[n](r)};return n?t=>l(yx(e[0],e[i-1],t)):l}function rk(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=JC(0,t,r);e.push(FC(n,1,o))}}(t,e.length-1),t}function ok({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=yC(r)?r.map(RC):RC(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:rk(t),e),s=nk(a,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map((()=>u||gC)).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function ik(e,t){return t?e*(1e3/t):0}const ak=5;function sk(e,t,n){const r=Math.max(t-ak,0);return ik(n-e(r),t-r)}const lk=.001,uk=.01,ck=10,dk=.05,fk=1;function pk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ZS(e<=eC(ck));let a=1-t;a=yx(dk,fk,a),e=yx(uk,ck,tC(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=mk(t,a),l=Math.exp(-o);return lk-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=mk(Math.pow(t,2),a);return(-o(t)+lk>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-lk,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let o=1;o<hk;o++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=eC(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const hk=12;function mk(e,t){return e*Math.sqrt(1-t*t)}const vk=["duration","bounce"],gk=["stiffness","damping","mass"];function yk(e,t){return t.some((t=>void 0!==e[t]))}function bk({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!yk(e,gk)&&yk(e,vk)){const n=pk(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=c?-tC(c):0,h=l/(2*Math.sqrt(s*u)),m=i-o,v=tC(Math.sqrt(s/u)),g=Math.abs(m)<5;let y;if(n||(n=g?.01:2),t||(t=g?.005:.5),h<1){const e=mk(v,h);y=t=>{const n=Math.exp(-h*v*t);return i-n*((p+h*v*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)y=e=>i-Math.exp(-v*e)*(m+(p+v*m)*e);else{const e=v*Math.sqrt(h*h-1);y=t=>{const n=Math.exp(-h*v*t),r=Math.min(e*t,300);return i-n*((p+h*v*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=y(e);if(f)a.done=e>=d;else{let o=p;0!==e&&(o=h<1?sk(y,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function wk({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,v=void 0===a?m:a(m);v!==m&&(h=v-d);const g=e=>-h*Math.exp(-e/r),y=e=>v+g(e),b=e=>{const t=g(e),n=y(e);f.done=Math.abs(t)<=u,f.value=f.done?v:n};let w,E;const x=e=>{var t;(t=f.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,E=bk({keyframes:[f.value,p(f.value)],velocity:sk(y,e,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return E||void 0!==w||(t=!0,b(e),x(e)),void 0!==w&&e>w?E.next(e-w):(!t&&b(e),f)}}}const Ek=e=>{const t=({timestamp:t})=>e(t);return{start:()=>AS.update(t,!0),stop:()=>MS.update(t),now:()=>TS.isProcessing?TS.timestamp:performance.now()}},xk={decay:wk,inertia:wk,tween:ok,keyframes:ok,spring:bk},Sk=2e4;function Ck(e){let t=0;let n=e.next(t);for(;!n.done&&t<Sk;)t+=50,n=e.next(t);return t>=Sk?1/0:t}function kk({autoplay:e=!0,delay:t=0,driver:n=Ek,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p,h,m=1,v=!1;const g=()=>{p&&p(),h=new Promise((e=>{p=e}))};let y;g();const b=xk[o]||ok;let w;b!==ok&&"number"!=typeof r[0]&&(w=nk([0,100],r,{clamp:!1}),r=[0,100]);const E=b({...f,keyframes:r});let x;"mirror"===s&&(x=b({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let S="idle",C=null,k=null,P=null;null===E.calculatedDuration&&i&&(E.calculatedDuration=Ck(E));const{calculatedDuration:T}=E;let R=1/0,D=1/0;null!==T&&(R=T+a,D=R*(i+1)-a);let _=0;const L=e=>{if(null===k)return;m>0&&(k=Math.min(k,e)),_=null!==C?C:(e-k)*m;const n=_-t,o=n<0;_=Math.max(n,0),"finished"===S&&null===C&&(_=D);let l=_,u=E;if(i){const e=_/R;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(u=x));let o=yx(0,1,n);_>D&&(o="reverse"===s&&r?1:0),l=o*R}const c=o?{done:!1,value:r[0]}:u.next(l);w&&(c.value=w(c.value));let{done:f}=c;o||null===T||(f=_>=D);const p=null===C&&("finished"===S||"running"===S&&f||m<0&&_<=0);return d&&d(c.value),p&&O(),c},A=()=>{y&&y.stop(),y=void 0},M=()=>{S="idle",A(),g(),k=P=null},O=()=>{S="finished",c&&c(),A(),g()},N=()=>{if(v)return;y||(y=n(L));const e=y.now();l&&l(),S="running",null!==C?k=e-C:k||(k=e),P=k,C=null,y.start()};e&&N();const F={then:(e,t)=>h.then(e,t),get time(){return tC(_)},set time(e){e=eC(e),_=e,null===C&&y&&0!==m?k=y.now()-e/m:C=e},get duration(){const e=null===E.calculatedDuration?Ck(E):E.calculatedDuration;return tC(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,F.time=tC(_))},get state(){return S},play:N,pause:()=>{S="paused",C=_},stop:()=>{v=!0,"idle"!==S&&(S="idle",u&&u(),M())},cancel:()=>{null!==P&&L(P),M()},complete:()=>{S="finished"},sample:e=>(k=0,L(e))};return F}const Pk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Tk(e,t,{onUpdate:n,onComplete:r,...o}){if(!(cC.waapi()&&Pk.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:u,duration:c=300,ease:d}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!oC(t.ease))(t,o)){const e=kk({...o,repeat:0,delay:0});let t={done:!1,value:u[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;u=n,c=r-10,d="linear"}const f=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=sC(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,u,{...o,duration:c,ease:d}),p=()=>{AS.update((()=>f.cancel())),i(),l()};return f.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(u,o)),r&&r(),p()},{then:(e,t)=>a.then(e,t),get time(){return tC(f.currentTime||0)},set time(e){f.currentTime=eC(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return tC(c)},play:()=>{s||f.play()},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=kk({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}p()},complete:()=>f.finish(),cancel:p}}const Rk={type:"spring",stiffness:500,damping:25,restSpeed:10},Dk={type:"keyframes",duration:.8},_k={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lk=(e,{keyframes:t})=>t.length>2?Dk:ux.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Rk:_k,Ak=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!XC.test(t)||t.startsWith("url("))),Mk=new Set(["brightness","contrast","saturate","opacity"]);function Ok(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Sx)||[];if(!r)return e;const o=n.replace(r,"");let i=Mk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Nk=/([a-z-]*)\(.*?\)/g,Fk={...XC,getAnimatableNone:e=>{const t=e.match(Nk);return t?t.map(Ok).join(" "):e}},Ik={...Nx,color:NC,backgroundColor:NC,outlineColor:NC,fill:NC,stroke:NC,borderColor:NC,borderTopColor:NC,borderRightColor:NC,borderBottomColor:NC,borderLeftColor:NC,filter:Fk,WebkitFilter:Fk},Vk=e=>Ik[e];function zk(e,t){let n=Vk(e);return n!==Fk&&(n=XC),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Bk(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function jk(e){return"number"==typeof e?0:zk("",e)}function Uk(e,t){return e[t]||e.default||e}const Hk=(e,t,n,r={})=>o=>{const i=Uk(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=eC(a);const l=function(e,t,n,r){const o=Ak(t,n);let i=void 0!==r.from?r.from:e.get();if("none"===i&&o&&"string"==typeof n?i=zk(t,n):Bk(i)&&"string"==typeof n?i=jk(n):!Array.isArray(n)&&Bk(n)&&"string"==typeof i&&(n=jk(i)),Array.isArray(n)){for(let e=0;e<n.length;e++)null===n[e]&&(n[e]=0===e?i:n[e-1]);return n}return[i,n]}(t,e,n,i),u=l[0],c=l[l.length-1],d=Ak(e,u),f=Ak(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(p={...p,...Lk(e,p)}),p.duration&&(p.duration=eC(p.duration)),p.repeatDelay&&(p.repeatDelay=eC(p.repeatDelay)),!d||!f||nC||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:BS,pause:BS,stop:BS,then:e=>(e(),Promise.resolve()),cancel:BS,complete:BS});return t?kk({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Tk(t,e,p);if(n)return n}return kk(p)};function Wk(e){return Boolean(dx(e)&&e.add)}const $k=e=>/^0[^.\s]+$/.test(e);function Kk(e,t){-1===e.indexOf(t)&&e.push(t)}function Yk(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xk{constructor(){this.subscriptions=[]}add(e){return Kk(this.subscriptions,e),()=>Yk(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class qk{constructor(e,t={}){var n;this.version="10.10.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=TS;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,AS.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>AS.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Xk);const n=this.events[e].add(t);return"change"===e?()=>{n(),AS.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ik(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qk(e,t){return new qk(e,t)}const Gk=e=>t=>t.test(e),Zk=[bx,_x,Dx,Rx,Ax,Lx,{test:e=>"auto"===e,parse:e=>e}],Jk=e=>Zk.find(Gk(e)),eP=[...Zk,NC,XC],tP=e=>eP.find(Gk(e));function nP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qk(n))}function rP(e,t){if(!t)return;return(t[e]||t.default||t).from}function oP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function iP(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in s){const t=e.getValue(d),r=s[d];if(!t||void 0===r||c&&oP(c,d))continue;const o={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!t.hasAnimated){const n=e.getProps()[GS];n&&(o.elapsed=window.HandoffAppearAnimations(n,d,t,AS))}t.start(Hk(d,t,r,e.shouldReduceMotion&&ux.has(d)?{type:!1}:o));const a=t.animation;Wk(l)&&(l.add(d),a.then((()=>l.remove(d)))),u.push(a)}return a&&Promise.all(u).then((()=>{a&&function(e,t){const n=QS(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i)nP(e,a,lS(i[a]))}(e,a)})),u}function aP(e,t,n={}){const r=QS(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(iP(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(sP).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(aP(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function sP(e,t){return e.sortNodePosition(t)}const lP=[...UE].reverse(),uP=UE.length;function cP(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>aP(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=aP(e,t,n);else{const o="function"==typeof t?QS(e,t,n.custom):t;r=Promise.all(iP(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function dP(e){let t=cP(e);const n={animate:pP(!0),whileInView:pP(),whileHover:pP(),whileTap:pP(),whileDrag:pP(),whileFocus:pP(),exit:pP()};let r=!0;const o=(t,n)=>{const r=QS(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set;let d={},f=1/0;for(let t=0;t<uP;t++){const p=lP[t],h=n[p],m=void 0!==s[p]?s[p]:l[p],v=BE(m),g=p===a?h.isActive:null;!1===g&&(f=t);let y=m===l[p]&&m!==s[p]&&v;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===g||!m&&!h.prevProp||jE(m)||"boolean"==typeof m)continue;const b=fP(h.prevProp,m);let w=b||p===a&&h.isActive&&!y&&v||t>f&&v;const E=Array.isArray(m)?m:[m];let x=E.reduce(o,{});!1===g&&(x={});const{prevResolvedValues:S={}}=h,C={...S,...x},k=e=>{w=!0,c.delete(e),h.needsAnimating[e]=!0};for(const e in C){const t=x[e],n=S[e];d.hasOwnProperty(e)||(t!==n?aS(t)&&aS(n)?!qS(t,n)||b?k(e):h.protectedKeys[e]=!0:void 0!==t?k(e):c.add(e):void 0!==t&&c.has(e)?k(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=x,h.isActive&&(d={...d,...x}),r&&e.blockInitialAnimation&&(w=!1),w&&!y&&u.push(...E.map((e=>({animation:e,options:{type:p,...i}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),u.push({animation:t})}let p=Boolean(u.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(u):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function fP(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!qS(t,e)}function pP(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let hP=0;const mP={animation:{Feature:class extends PS{constructor(e){super(e),e.animationState||(e.animationState=dP(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),jE(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends PS{constructor(){super(...arguments),this.id=hP++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},vP=(e,t)=>Math.abs(e-t);class gP{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=wP(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=vP(e.x,t.x),r=vP(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=TS;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=yP(t,this.transformPagePoint),AS.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=wP("pointercancel"===e.type?this.lastMoveEventInfo:yP(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!mS(e))return;this.handlers=t,this.transformPagePoint=n;const r=yP(vS(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=TS;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,wP(r,this.history)),this.removeListeners=wS(yS(window,"pointermove",this.handlePointerMove),yS(window,"pointerup",this.handlePointerUp),yS(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),MS.update(this.updatePoint)}}function yP(e,t){return t?{point:t(e.point)}:e}function bP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wP({point:e},t){return{point:e,delta:bP(e,xP(t)),offset:bP(e,EP(t)),velocity:SP(t,.1)}}function EP(e){return e[0]}function xP(e){return e[e.length-1]}function SP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=xP(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>eC(t)));)n--;if(!r)return{x:0,y:0};const i=tC(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function CP(e){return e.max-e.min}function kP(e,t=0,n=.01){return Math.abs(e-t)<=n}function PP(e,t,n,r=.5){e.origin=r,e.originPoint=FC(t.min,t.max,e.origin),e.scale=CP(n)/CP(t),(kP(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=FC(n.min,n.max,e.origin)-e.originPoint,(kP(e.translate)||isNaN(e.translate))&&(e.translate=0)}function TP(e,t,n,r){PP(e.x,t.x,n.x,r?r.originX:void 0),PP(e.y,t.y,n.y,r?r.originY:void 0)}function RP(e,t,n){e.min=n.min+t.min,e.max=e.min+CP(t)}function DP(e,t,n){e.min=t.min-n.min,e.max=e.min+CP(t)}function _P(e,t,n){DP(e.x,t.x,n.x),DP(e.y,t.y,n.y)}function LP(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function AP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const MP=.35;function OP(e,t,n){return{min:NP(e,t),max:NP(e,n)}}function NP(e,t){return"number"==typeof e?e:e[t]||0}const FP=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),IP=()=>({x:{min:0,max:0},y:{min:0,max:0}});function VP(e){return[e("x"),e("y")]}function zP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BP(e){return void 0===e||1===e}function jP({scale:e,scaleX:t,scaleY:n}){return!BP(e)||!BP(t)||!BP(n)}function UP(e){return jP(e)||HP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function HP(e){return WP(e.x)||WP(e.y)}function WP(e){return e&&"0%"!==e}function $P(e,t,n){return n+t*(e-n)}function KP(e,t,n,r,o){return void 0!==o&&(e=$P(e,o,r)),$P(e,n,r)+t}function YP(e,t=0,n=1,r,o){e.min=KP(e.min,t,n,r,o),e.max=KP(e.max,t,n,r,o)}function XP(e,{x:t,y:n}){YP(e.x,t.translate,t.scale,t.originPoint),YP(e.y,n.translate,n.scale,n.originPoint)}function qP(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function QP(e,t){e.min=e.min+t,e.max=e.max+t}function GP(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=FC(e.min,e.max,i);YP(e,t[n],t[r],a,t.scale)}const ZP=["x","scaleX","originX"],JP=["y","scaleY","originY"];function eT(e,t){GP(e.x,t,ZP),GP(e.y,t,JP)}function tT(e,t){return zP(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const nT=new WeakMap;class rT{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=IP(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new gP(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(vS(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=CS(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),VP((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Dx.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=CP(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&AS.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&AS.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!oT(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?FC(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?FC(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&zE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:LP(e.x,n,o),y:LP(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=MP){return!1===e?e=0:!0===e&&(e=MP),{x:OP(e,"left","right"),y:OP(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&VP((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!zE(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=tT(e,n),{scroll:o}=t;return o&&(QP(r.x,o.offset.x),QP(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:AP(e.x,t.x),y:AP(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=zP(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=VP((a=>{if(!oT(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Hk(e,n,0,t))}stopAnimation(){VP((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){VP((t=>{const{drag:n}=this.getProps();if(!oT(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-FC(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!zE(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};VP((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=CP(e),o=CP(t);return o>r?n=JC(t.min,t.max-r,e.min):r>o&&(n=JC(e.min,e.max-o,t.min)),yx(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),VP((t=>{if(!oT(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(FC(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;nT.set(this.visualElement,this);const e=yS(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();zE(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=hS(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(VP((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=MP,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function oT(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const iT=e=>(t,n)=>{e&&AS.update((()=>e(t,n)))};function aT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sT={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!_x.test(e))return e;e=parseFloat(e)}return`${aT(e,t.target.x)}% ${aT(e,t.target.y)}%`}},lT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function uT(e,t,n=1){const[r,o]=function(e){const t=lT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():vx(o)?uT(o,t,n+1):o}const cT="_$css",dT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(lT,(e=>(i.push(e),cT))));const a=XC.parse(e);if(a.length>5)return r;const s=XC.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;const d=FC(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(cT,(()=>{const t=i[e];return e++,t}))}return f}};class fT extends V.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=hT,Object.assign(sx,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),GE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||AS.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function pT(e){const[t,n]=function(){const e=I.useContext(NE);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=I.useId();return I.useEffect((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=I.useContext(JE);return V.createElement(fT,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(ex),isPresent:t,safeToRemove:n})}const hT={borderRadius:{...sT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sT,borderTopRightRadius:sT,borderBottomLeftRadius:sT,borderBottomRightRadius:sT,boxShadow:dT},mT=["TopLeft","TopRight","BottomLeft","BottomRight"],vT=mT.length,gT=e=>"string"==typeof e?parseFloat(e):e,yT=e=>"number"==typeof e||_x.test(e);function bT(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const wT=xT(0,.5,xC),ET=xT(.5,.95,BS);function xT(e,t,n){return r=>r<e?0:r>t?1:n(JC(e,t,r))}function ST(e,t){e.min=t.min,e.max=t.max}function CT(e,t){ST(e.x,t.x),ST(e.y,t.y)}function kT(e,t,n,r,o){return e=$P(e-=t,1/n,r),void 0!==o&&(e=$P(e,1/o,r)),e}function PT(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Dx.test(t)&&(t=parseFloat(t),t=FC(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=FC(i.min,i.max,r);e===i&&(s-=t),e.min=kT(e.min,t,n,s,o),e.max=kT(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const TT=["x","scaleX","originX"],RT=["y","scaleY","originY"];function DT(e,t,n,r){PT(e.x,t,TT,n?n.x:void 0,r?r.x:void 0),PT(e.y,t,RT,n?n.y:void 0,r?r.y:void 0)}function _T(e){return 0===e.translate&&1===e.scale}function LT(e){return _T(e.x)&&_T(e.y)}function AT(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function MT(e){return CP(e.x)/CP(e.y)}class OT{constructor(){this.members=[]}add(e){Kk(this.members,e),e.scheduleRender()}remove(e){if(Yk(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function NT(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const FT=(e,t)=>e.depth-t.depth;class IT{constructor(){this.children=[],this.isDirty=!1}add(e){Kk(this.children,e),this.isDirty=!0}remove(e){Yk(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(FT),this.isDirty=!1,this.children.forEach(e)}}const VT=["","X","Y","Z"];let zT=0;const BT={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=zT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;BT.totalNodes=BT.resolvedTargetDeltas=BT.recalculatedProjection=0,this.nodes.forEach(WT),this.nodes.forEach(QT),this.nodes.forEach(GT),this.nodes.forEach($T),e=BT,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new IT)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Xk),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(MS.read(r),e(i-t))};return AS.read(r,!0),()=>MS.read(r)}(r,250),GE.hasAnimatedSinceResize&&(GE.hasAnimatedSinceResize=!1,this.nodes.forEach(qT))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||rR,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!AT(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...Uk(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||qT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,MS.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZT),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(YT);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(oR),this.potentialNodes.clear()),this.nodes.forEach(XT),this.nodes.forEach(UT),this.nodes.forEach(HT),this.clearAllSnapshots(),OS.update(),OS.preRender(),OS.render())}clearAllSnapshots(){this.nodes.forEach(KT),this.sharedNodes.forEach(JT)}scheduleUpdateProjection(){AS.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){AS.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=IP(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!LT(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||UP(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),iR((r=n).x),iR(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return IP();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(QP(t.x,n.offset.x),QP(t.y,n.offset.y)),t}removeElementScroll(e){const t=IP();CT(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){CT(t,e);const{scroll:n}=this.root;n&&(QP(t.x,-n.offset.x),QP(t.y,-n.offset.y))}QP(t.x,o.offset.x),QP(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=IP();CT(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&eT(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),UP(e.latestValues)&&eT(n,e.latestValues)}return UP(this.latestValues)&&eT(n,this.latestValues),n}removeTransform(e){const t=IP();CT(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!UP(e.latestValues))continue;jP(e.latestValues)&&e.updateSnapshot();const r=IP();CT(r,e.measurePageBox()),DT(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return UP(this.latestValues)&&DT(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=TS.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=IP(),this.relativeTargetOrigin=IP(),_P(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),CT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=IP(),this.targetWithTransforms=IP()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.relativeParent.resolvedRelativeTargetAt!==TS.timestamp&&this.relativeParent.resolveTargetDelta(!0),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,RP(a.x,s.x,l.x),RP(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):CT(this.target,this.layout.layoutBox),XP(this.target,this.targetDelta)):CT(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=IP(),this.relativeTargetOrigin=IP(),_P(this.relativeTargetOrigin,this.target,e.target),CT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}BT.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!jP(this.parent.latestValues)&&!HP(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===TS.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;CT(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&eT(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,XP(e,a)),r&&UP(i.latestValues)&&eT(e,i.latestValues))}t.x=qP(t.x),t.y=qP(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:a}=t;if(!a)return;this.projectionDelta||(this.projectionDelta=FP(),this.projectionDeltaWithTransform=FP());const s=this.treeScale.x,l=this.treeScale.y,u=this.projectionTransform;TP(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=NT(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===s&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),BT.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=FP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=IP(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(nR));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,p,h;eR(i.x,e.x,n),eR(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_P(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,f=this.relativeTargetOrigin,p=a,h=n,tR(l.x,f.x,p.x,h),tR(l.y,f.y,p.y,h),d&&AT(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=IP()),CT(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=FC(0,void 0!==n.opacity?n.opacity:1,wT(r)),e.opacityExit=FC(void 0!==t.opacity?t.opacity:1,0,ET(r))):i&&(e.opacity=FC(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a<vT;a++){const o=`border${mT[a]}Radius`;let i=bT(t,o),s=bT(n,o);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||yT(i)===yT(s)?(e[o]=Math.max(FC(gT(i),gT(s),r),0),(Dx.test(s)||Dx.test(i))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=FC(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(MS.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=AS.update((()=>{GE.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=dx(e)?e:Qk(e);return r.start(Hk("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&aR(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||IP();const t=CP(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=CP(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}CT(t,n),eT(t,o),TP(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new OT);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let o=0;o<VT.length;o++){const t="rotate"+VT[o];n[t]&&(r[t]=n[t],e.setStaticValue(t,0))}e.render();for(const o in r)e.setStaticValue(o,r[o]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=uS(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=uS(e.pointerEvents)||""),this.hasProjected&&!UP(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=NT(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const u in sx){if(void 0===a[u])continue;const{correct:e,applyTo:t}=sx[u],n="none"===r.transform?a[u]:e(a[u],i);if(t){const e=t.length;for(let o=0;o<e;o++)r[t[o]]=n}else r[u]=n}return this.options.layoutId&&(r.pointerEvents=i===this?uS(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(YT),this.root.sharedNodes.clear()}}}function UT(e){e.updateLayout()}function HT(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?VP((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=CP(r);r.min=t[e].min,r.max=r.min+o})):aR(o,n.layoutBox,t)&&VP((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=CP(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=FP();TP(a,t,n.layoutBox);const s=FP();i?TP(s,e.applyTransform(r,!0),n.measuredBox):TP(s,t,n.layoutBox);const l=!LT(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=IP();_P(a,n.layoutBox,o.layoutBox);const s=IP();_P(s,t,i.layoutBox),AT(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function WT(e){BT.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $T(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function KT(e){e.clearSnapshot()}function YT(e){e.clearMeasurements()}function XT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function QT(e){e.resolveTargetDelta()}function GT(e){e.calcProjection()}function ZT(e){e.resetRotation()}function JT(e){e.removeLeadSnapshot()}function eR(e,t,n){e.translate=FC(t.translate,0,n),e.scale=FC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tR(e,t,n,r){e.min=FC(t.min,n.min,r),e.max=FC(t.max,n.max,r)}function nR(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const rR={duration:.45,ease:[.4,0,.1,1]};function oR(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function iR(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function aR(e,t,n){return"position"===e||"preserve-aspect"===e&&!kP(MT(t),MT(n),.2)}const sR=jT({attachResizeListener:(e,t)=>hS(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lR={current:void 0},uR=jT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lR.current){const e=new sR(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),lR.current=e}return lR.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),cR={pan:{Feature:class extends PS{constructor(){super(...arguments),this.removePointerDownListener=BS}onPointerDown(e){this.session=new gP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:iT(e),onStart:iT(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&AS.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=yS(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends PS{constructor(e){super(e),this.removeGroupControls=BS,this.removeListeners=BS,this.controls=new rT(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||BS}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:uR,MeasureLayout:pT}},dR=new Set(["width","height","top","left","right","bottom","x","y"]),fR=e=>dR.has(e),pR=e=>e===bx||e===_x,hR=(e,t)=>parseFloat(e.split(", ")[t]),mR=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return hR(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?hR(t[1],e):0}},vR=new Set(["x","y","z"]),gR=lx.filter((e=>!vR.has(e)));const yR={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:mR(4,13),y:mR(5,14)},bR=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(fR);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let u=n[o],c=Jk(u);const d=t[o];let f;if(aS(d)){const e=d.length,t=null===d[0]?1:0;u=d[t],c=Jk(u);for(let n=t;n<e;n++)f?JS(Jk(d[n])===f):f=Jk(d[n])}else f=Jk(d);if(c!==f)if(pR(c)&&pR(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===_x&&(t[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==f?void 0:f.transform)&&(0===u||0===d)?0===u?l.set(f.transform(u)):t[o]=c.transform(d):(a||(i=function(e){const t=[];return gR.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=yR[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=yR[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),FE&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function wR(e,t,n,r){return(e=>Object.keys(e).some(fR))(t)?bR(e,t,n,r):{target:t,transitionEnd:r}}const ER=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!vx(t))return;const n=uT(t,r);n&&e.set(n)}));for(const o in t){const e=t[o];if(!vx(e))continue;const i=uT(e,r);i&&(t[o]=i,n||(n={}),void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return wR(e,t=o.target,n,r=o.transitionEnd)},xR={current:null},SR={current:!1};const CR=new WeakMap,kR=Object.keys(qE),PR=kR.length,TR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],RR=HE.length;class DR{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>AS.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=WE(t),this.isVariantNode=$E(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(const c in u){const e=u[c];void 0!==a[c]&&dx(e)&&(e.set(a[c],!1),Wk(l)&&l.add(c))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,CR.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),SR.current||function(){if(SR.current=!0,FE)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xR.current=e.matches;e.addListener(t),t()}else xR.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||xR.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){CR.delete(this.current),this.projection&&this.projection.unmount(),MS.update(this.notifyUpdate),MS.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=ux.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&AS.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let a,s;for(let l=0;l<PR;l++){const e=kR[l],{isEnabled:n,Feature:r,ProjectionNode:o,MeasureLayout:i}=qE[e];o&&(a=o),n(t)&&(!this.features[e]&&r&&(this.features[e]=new r(this)),i&&(s=i))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&zE(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):IP()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<TR.length;n++){const t=TR[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(dx(i))e.addValue(o,i),Wk(r)&&r.add(o);else if(dx(a))e.addValue(o,Qk(i,{owner:e})),Wk(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Qk(void 0!==t?t:i,{owner:e}))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let n=0;n<RR;n++){const e=HE[n],r=this.props[e];(BE(r)||!1===r)&&(t[e]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Qk(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=iS(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||dx(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Xk),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class _R extends DR{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=rP(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=u&&("string"==typeof u&&(/^\-?\d*\.?\d+$/.test(u)||$k(u))?u=parseFloat(u):!tP(u)&&XC.test(l)&&(u=zk(a,l)),e.addValue(a,Qk(u,{owner:e})),void 0===n[a]&&(n[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,n,i);const e=ER(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class LR extends _R{readValueFromInstance(e,t){if(ux.has(t)){const e=Vk(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(mx(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return tT(e,t)}build(e,t,n,r){Fx(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return rS(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;dx(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){eS(e,t,n,r)}}class AR extends _R{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ux.has(t)){const e=Vk(t);return e&&e.default||0}return t=tS.has(t)?t:Jx(t),e.getAttribute(t)}measureInstanceViewportBox(){return IP()}scrapeMotionValuesFromProps(e,t){return oS(e,t)}build(e,t,n,r){Xx(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){nS(e,t,0,r)}mount(e){this.isSVGTag=Qx(e.tagName),super.mount(e)}}const MR=(e,t)=>ax(e)?new AR(t,{enableHardwareAcceleration:!1}):new LR(t,{enableHardwareAcceleration:!0}),OR={...mP,...XS,...cR,...{layout:{ProjectionNode:uR,MeasureLayout:pT}}},NR=ox(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...ax(e)?fS:pS,preloadedFeatures:n,useRender:Zx(t),createVisualElement:r,Component:e}}(e,t,OR,MR)));function FR(){return FR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FR.apply(this,arguments)}function IR(e,t){return(IR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var VR=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,IR(t,n);var o=r.prototype;return o.getColumns=function(){var e=this.props,t=e.children,n=e.columnsCount,r=Array.from({length:n},(function(){return[]}));return V.Children.forEach(t,(function(e,t){e&&V.isValidElement(e)&&r[t%n].push(e)})),r},o.renderColumns=function(){var e=this.props.gutter;return this.getColumns().map((function(t,n){return V.createElement("div",{key:n,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:e}},t.map((function(e){return e})))}))},o.render=function(){var e=this.props,t=e.gutter,n=e.className,r=e.style;return V.createElement("div",{style:FR({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:t},r),className:n},this.renderColumns())},r}(V.Component);VR.propTypes={},VR.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var zR="undefined"!=typeof window?I.useLayoutEffect:I.useEffect,BR=function(){var e=function(){var e=I.useState(!1),t=e[0],n=e[1];return zR((function(){n(!0)}),[]),t}(),t=I.useState(0),n=t[0],r=t[1],o=I.useCallback((function(){e&&r(window.innerWidth)}),[e]);return zR((function(){if(e)return window.addEventListener("resize",o),o(),function(){return window.removeEventListener("resize",o)}}),[e,o]),n},jR=function(e){var t=e.columnsCountBreakPoints,n=void 0===t?{350:1,750:2,900:3}:t,r=e.children,o=e.className,i=void 0===o?null:o,a=e.style,s=void 0===a?null:a,l=BR(),u=I.useMemo((function(){var e=Object.keys(n).sort((function(e,t){return e-t})),t=e.length>0?n[e[0]]:1;return e.forEach((function(e){e<l&&(t=n[e])})),t}),[l,n]);return V.createElement("div",{className:i,style:s},V.Children.map(r,(function(e,t){return V.cloneElement(e,{key:t,columnsCount:u})})))};jR.propTypes={};const[UR,HR]=G("Form"),WR="Form",[$R,KR]=UR(WR),[YR,XR]=UR(WR),qR=I.forwardRef(((e,t)=>{const{__scopeForm:n,onClearServerErrors:r=(()=>{}),...o}=e,i=ee(t,I.useRef(null)),[a,s]=I.useState({}),l=I.useCallback((e=>a[e]),[a]),u=I.useCallback(((e,t)=>s((n=>{var r;return{...n,[e]:{...null!==(r=n[e])&&void 0!==r?r:{},...t}}}))),[]),c=I.useCallback((e=>{s((t=>({...t,[e]:void 0}))),g((t=>({...t,[e]:{}})))}),[]),[d,f]=I.useState({}),p=I.useCallback((e=>{var t;return null!==(t=d[e])&&void 0!==t?t:[]}),[d]),h=I.useCallback(((e,t)=>{f((n=>{var r;return{...n,[e]:[...null!==(r=n[e])&&void 0!==r?r:[],t]}}))}),[]),m=I.useCallback(((e,t)=>{f((n=>{var r;return{...n,[e]:(null!==(r=n[e])&&void 0!==r?r:[]).filter((e=>e.id!==t))}}))}),[]),[v,g]=I.useState({}),y=I.useCallback((e=>{var t;return null!==(t=v[e])&&void 0!==t?t:{}}),[v]),b=I.useCallback(((e,t)=>{g((n=>{var r;return{...n,[e]:{...null!==(r=n[e])&&void 0!==r?r:{},...t}}}))}),[]),[w,E]=I.useState({}),x=I.useCallback(((e,t)=>{E((n=>{const r=new Set(n[e]).add(t);return{...n,[e]:r}}))}),[]),S=I.useCallback(((e,t)=>{E((n=>{const r=new Set(n[e]);return r.delete(t),{...n,[e]:r}}))}),[]),C=I.useCallback((e=>{var t;return Array.from(null!==(t=w[e])&&void 0!==t?t:[]).join(" ")||void 0}),[w]);return I.createElement($R,{scope:n,getFieldValidity:l,onFieldValidityChange:u,getFieldCustomMatcherEntries:p,onFieldCustomMatcherEntryAdd:h,onFieldCustomMatcherEntryRemove:m,getFieldCustomErrors:y,onFieldCustomErrorsChange:b,onFieldValiditionClear:c},I.createElement(YR,{scope:n,onFieldMessageIdAdd:x,onFieldMessageIdRemove:S,getFieldDescription:C},I.createElement(xd.form,Q({},o,{ref:i,onInvalid:te(e.onInvalid,(e=>{const t=fD(e.currentTarget);t===e.target&&t.focus(),e.preventDefault()})),onSubmit:te(e.onSubmit,r,{checkForDefaultPrevented:!1}),onReset:te(e.onReset,r)}))))})),QR="FormField",[GR,ZR]=UR(QR),JR=I.forwardRef(((e,t)=>{const{__scopeForm:n,name:r,serverInvalid:o=!1,...i}=e,a=KR(QR,n).getFieldValidity(r),s=ie();return I.createElement(GR,{scope:n,id:s,name:r,serverInvalid:o},I.createElement(xd.div,Q({"data-valid":hD(a,o),"data-invalid":mD(a,o)},i,{ref:t})))})),eD="FormControl",tD=I.forwardRef(((e,t)=>{const{__scopeForm:n,...r}=e,o=KR(eD,n),i=ZR(eD,n),a=XR(eD,n),s=I.useRef(null),l=ee(t,s),u=r.name||i.name,c=r.id||i.id,d=o.getFieldCustomMatcherEntries(u),{onFieldValidityChange:f,onFieldCustomErrorsChange:p,onFieldValiditionClear:h}=o,m=I.useCallback((async e=>{if(pD(e.validity)){const t=uD(e.validity);return void f(u,t)}const t=e.form?new FormData(e.form):new FormData,n=[e.value,t],r=[],o=[];d.forEach((e=>{var t,i;i=n,"AsyncFunction"===(t=e).match.constructor.name||function(e,t){return e(...t)instanceof Promise}(t.match,i)?o.push(e):function(e){return"Function"===e.match.constructor.name}(e)&&r.push(e)}));const i=r.map((({id:e,match:t})=>[e,t(...n)])),a=Object.fromEntries(i),s=Object.values(a).some(Boolean),l=s;e.setCustomValidity(l?nD:"");const c=uD(e.validity);if(f(u,c),p(u,a),!s&&o.length>0){const t=o.map((({id:e,match:t})=>t(...n).then((t=>[e,t])))),r=await Promise.all(t),i=Object.fromEntries(r),a=Object.values(i).some(Boolean);e.setCustomValidity(a?nD:"");const s=uD(e.validity);f(u,s),p(u,i)}}),[d,u,p,f]);I.useEffect((()=>{const e=s.current;if(e){const t=()=>m(e);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}}),[m]);const v=I.useCallback((()=>{const e=s.current;e&&(e.setCustomValidity(""),h(u))}),[u,h]);I.useEffect((()=>{var e;const t=null===(e=s.current)||void 0===e?void 0:e.form;if(t)return t.addEventListener("reset",v),()=>t.removeEventListener("reset",v)}),[v]),I.useEffect((()=>{const e=s.current,t=null==e?void 0:e.closest("form");if(t&&i.serverInvalid){const n=fD(t);n===e&&n.focus()}}),[i.serverInvalid]);const g=o.getFieldValidity(u);return I.createElement(xd.input,Q({"data-valid":hD(g,i.serverInvalid),"data-invalid":mD(g,i.serverInvalid),"aria-invalid":!!i.serverInvalid||void 0,"aria-describedby":a.getFieldDescription(u),title:""},r,{ref:l,id:c,name:u,onInvalid:te(e.onInvalid,(e=>{const t=e.currentTarget;m(t)})),onChange:te(e.onChange,(e=>{v()}))}))})),nD="This value is not valid",rD={badInput:nD,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},oD="FormMessage",iD=I.forwardRef(((e,t)=>{const{match:n,name:r,...o}=e,i=ZR(oD,e.__scopeForm),a=null!=r?r:i.name;return void 0===n?I.createElement(lD,Q({},o,{ref:t,name:a}),e.children||nD):"function"==typeof n?I.createElement(sD,Q({match:n},o,{ref:t,name:a})):I.createElement(aD,Q({match:n},o,{ref:t,name:a}))})),aD=I.forwardRef(((e,t)=>{const{match:n,forceMatch:r=!1,name:o,children:i,...a}=e,s=KR(oD,a.__scopeForm).getFieldValidity(o);return r||(null==s?void 0:s[n])?I.createElement(lD,Q({ref:t},a,{name:o}),null!=i?i:rD[n]):null})),sD=I.forwardRef(((e,t)=>{const{match:n,forceMatch:r=!1,name:o,id:i,children:a,...s}=e,l=KR(oD,s.__scopeForm),u=ee(t,I.useRef(null)),c=ie(),d=null!=i?i:c,f=I.useMemo((()=>({id:d,match:n})),[d,n]),{onFieldCustomMatcherEntryAdd:p,onFieldCustomMatcherEntryRemove:h}=l;I.useEffect((()=>(p(o,f),()=>h(o,f.id))),[f,o,p,h]);const m=l.getFieldValidity(o),v=l.getFieldCustomErrors(o)[d];return r||m&&!pD(m)&&v?I.createElement(lD,Q({id:d,ref:u},s,{name:o}),null!=a?a:nD):null})),lD=I.forwardRef(((e,t)=>{const{__scopeForm:n,id:r,name:o,...i}=e,a=XR(oD,n),s=ie(),l=null!=r?r:s,{onFieldMessageIdAdd:u,onFieldMessageIdRemove:c}=a;return I.useEffect((()=>(u(o,l),()=>c(o,l))),[o,l,u,c]),I.createElement(xd.span,Q({id:l},i,{ref:t}))}));function uD(e){const t={};for(const n in e)t[n]=e[n];return t}function cD(e){return e instanceof HTMLElement}function dD(e){return"validity"in e&&(!1===e.validity.valid||"true"===e.getAttribute("aria-invalid"))}function fD(e){const t=e.elements,[n]=Array.from(t).filter(cD).filter(dD);return n}function pD(e){let t=!1;for(const n in e){if("valid"!==n&&"customError"!==n&&e[n]){t=!0;break}}return t}function hD(e,t){if(!0===(null==e?void 0:e.valid)&&!t)return!0}function mD(e,t){if(!1===(null==e?void 0:e.valid)||t)return!0}const vD=qR,gD=JR,yD=tD,bD=iD,wD=I.forwardRef(((e,t)=>{const{__scopeForm:n,...r}=e;return I.createElement(xd.button,Q({type:"submit"},r,{ref:t}))})),[ED,xD]=kg("Tooltip",[pw]),SD=pw(),CD=700,kD="tooltip.open",[PD,TD]=ED("TooltipProvider"),RD="Tooltip",[DD,_D]=ED(RD),LD="TooltipTrigger",AD=I.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_D(LD,n),i=TD(LD,n),a=SD(n),s=Cg(t,I.useRef(null),o.onTriggerChange),l=I.useRef(!1),u=I.useRef(!1),c=I.useCallback((()=>l.current=!1),[]);return I.useEffect((()=>()=>document.removeEventListener("pointerup",c)),[c]),I.createElement(Pw,Q({asChild:!0},a),I.createElement(Ag.button,Q({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:xg(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))})),onPointerLeave:xg(e.onPointerLeave,(()=>{o.onTriggerLeave(),u.current=!1})),onPointerDown:xg(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",c,{once:!0})})),onFocus:xg(e.onFocus,(()=>{l.current||o.onOpen()})),onBlur:xg(e.onBlur,o.onClose),onClick:xg(e.onClick,o.onClose)})))})),MD="TooltipPortal",[OD,ND]=ED(MD,{forceMount:void 0}),FD="TooltipContent",ID=I.forwardRef(((e,t)=>{const n=ND(FD,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=_D(FD,e.__scopeTooltip);return I.createElement(sy,{present:r||a.open},a.disableHoverableContent?I.createElement(jD,Q({side:o},i,{ref:t})):I.createElement(VD,Q({side:o},i,{ref:t})))})),VD=I.forwardRef(((e,t)=>{const n=_D(FD,e.__scopeTooltip),r=TD(FD,e.__scopeTooltip),o=I.useRef(null),i=Cg(t,o),[a,s]=I.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,f=I.useCallback((()=>{s(null),d(!1)}),[d]),p=I.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);s(i),d(!0)}),[d]);return I.useEffect((()=>()=>f()),[f]),I.useEffect((()=>{if(l&&c){const e=e=>p(e,c),t=e=>p(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}}),[l,c,p,f]),I.useEffect((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i].x,s=t[i].y,l=t[a].x,u=t[a].y;s>r!=u>r&&n<(l-e)*(r-s)/(u-s)+e&&(o=!o)}return o}(n,a);r?f():o&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,c,a,u,f]),I.createElement(jD,Q({},e,{ref:i}))})),[zD,BD]=ED(RD,{isInside:!1}),jD=I.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=_D(FD,n),u=SD(n),{onClose:c}=l;return I.useEffect((()=>(document.addEventListener(kD,c),()=>document.removeEventListener(kD,c))),[c]),I.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,c]),I.createElement(Ny,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},I.createElement(Tw,Q({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),I.createElement(Dg,null,r),I.createElement(zD,{scope:n,isInside:!0},I.createElement(Lw,{id:l.contentId,role:"tooltip"},o||r))))}));const UD=e=>{const{__scopeTooltip:t,delayDuration:n=CD,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=I.useState(!0),l=I.useRef(!1),u=I.useRef(0);return I.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),I.createElement(PD,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:I.useCallback((()=>{window.clearTimeout(u.current),s(!1)}),[]),onClose:I.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:l,onPointerInTransitChange:I.useCallback((e=>{l.current=e}),[]),disableHoverableContent:o},i)},HD=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=TD(RD,e.__scopeTooltip),u=SD(t),[c,d]=I.useState(null),f=Ig(),p=I.useRef(0),h=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=I.useRef(!1),[g=!1,y]=zg({prop:r,defaultProp:o,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(kD))):l.onClose(),null==i||i(e)}}),b=I.useMemo((()=>g?v.current?"delayed-open":"instant-open":"closed"),[g]),w=I.useCallback((()=>{window.clearTimeout(p.current),v.current=!1,y(!0)}),[y]),E=I.useCallback((()=>{window.clearTimeout(p.current),y(!1)}),[y]),x=I.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{v.current=!0,y(!0)}),m)}),[m,y]);return I.useEffect((()=>()=>window.clearTimeout(p.current)),[]),I.createElement(kw,u,I.createElement(DD,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:I.useCallback((()=>{l.isOpenDelayed?x():w()}),[l.isOpenDelayed,x,w]),onTriggerLeave:I.useCallback((()=>{h?E():window.clearTimeout(p.current)}),[E,h]),onOpen:w,onClose:E,disableHoverableContent:h},n))},WD=AD,$D=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=_D(MD,t);return I.createElement(OD,{scope:t,forceMount:n},I.createElement(sy,{present:n||i.open},I.createElement(Dw,{asChild:!0,container:o},r)))},KD=ID,YD=I.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=SD(n);return BD("TooltipArrow",n).isInside?null:I.createElement(Rw,Q({},o,r,{ref:t}))}));const XD="ScrollArea",[qD,QD]=G(XD),[GD,ZD]=qD(XD),JD=I.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=e,[s,l]=I.useState(null),[u,c]=I.useState(null),[d,f]=I.useState(null),[p,h]=I.useState(null),[m,v]=I.useState(null),[g,y]=I.useState(0),[b,w]=I.useState(0),[E,x]=I.useState(!1),[S,C]=I.useState(!1),k=ee(t,(e=>l(e))),P=$v(o);return I.createElement(GD,{scope:n,type:r,dir:P,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:E,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:S,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:w},I.createElement(xd.div,Q({dir:P},a,{ref:k,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))})),e_=I.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:r,...o}=e,i=ZD("ScrollAreaViewport",n),a=ee(t,I.useRef(null),i.onViewportChange);return I.createElement(I.Fragment,null,I.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),I.createElement(xd.div,Q({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),I.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},r)))})),t_="ScrollAreaScrollbar",n_=I.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ZD(t_,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s="horizontal"===e.orientation;return I.useEffect((()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)})),[s,i,a]),"hover"===o.type?I.createElement(r_,Q({},r,{ref:t,forceMount:n})):"scroll"===o.type?I.createElement(o_,Q({},r,{ref:t,forceMount:n})):"auto"===o.type?I.createElement(i_,Q({},r,{ref:t,forceMount:n})):"always"===o.type?I.createElement(a_,Q({},r,{ref:t})):null})),r_=I.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ZD(t_,e.__scopeScrollArea),[i,a]=I.useState(!1);return I.useEffect((()=>{const e=o.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout((()=>a(!1)),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}}),[o.scrollArea,o.scrollHideDelay]),I.createElement($d,{present:n||i},I.createElement(i_,Q({"data-state":i?"visible":"hidden"},r,{ref:t})))})),o_=I.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ZD(t_,e.__scopeScrollArea),i="horizontal"===e.orientation,a=x_((()=>l("SCROLL_END")),100),[s,l]=(u="hidden",c={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},I.useReducer(((e,t)=>{const n=c[e][t];return null!=n?n:e}),u));var u,c;return I.useEffect((()=>{if("idle"===s){const e=window.setTimeout((()=>l("HIDE")),o.scrollHideDelay);return()=>window.clearTimeout(e)}}),[s,o.scrollHideDelay,l]),I.useEffect((()=>{const e=o.viewport,t=i?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),a()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[o.viewport,i,l,a]),I.createElement($d,{present:n||"hidden"!==s},I.createElement(a_,Q({"data-state":"hidden"===s?"hidden":"visible"},r,{ref:t,onPointerEnter:te(e.onPointerEnter,(()=>l("POINTER_ENTER"))),onPointerLeave:te(e.onPointerLeave,(()=>l("POINTER_LEAVE")))})))})),i_=I.forwardRef(((e,t)=>{const n=ZD(t_,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,a]=I.useState(!1),s="horizontal"===e.orientation,l=x_((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?e:t)}}),10);return S_(n.viewport,l),S_(n.content,l),I.createElement($d,{present:r||i},I.createElement(a_,Q({"data-state":i?"visible":"hidden"},o,{ref:t})))})),a_=I.forwardRef(((e,t)=>{const{orientation:n="vertical",...r}=e,o=ZD(t_,e.__scopeScrollArea),i=I.useRef(null),a=I.useRef(0),[s,l]=I.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=v_(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){const o=g_(n),i=o/2,a=t||i,s=o-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d="ltr"===r?[0,c]:[-1*c,0];return b_([l,u],d)(e)}(e,a.current,s,t)}return"horizontal"===n?I.createElement(s_,Q({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const e=y_(o.viewport.scrollLeft,s,o.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}})):"vertical"===n?I.createElement(l_,Q({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const e=y_(o.viewport.scrollTop,s);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}})):null})),s_=I.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=ZD(t_,e.__scopeScrollArea),[a,s]=I.useState(),l=I.useRef(null),u=ee(t,l,i.onScrollbarXChange);return I.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),I.createElement(d_,Q({"data-orientation":"horizontal"},o,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":g_(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(i.viewport){const r=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),w_(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:m_(a.paddingLeft),paddingEnd:m_(a.paddingRight)}})}}))})),l_=I.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=ZD(t_,e.__scopeScrollArea),[a,s]=I.useState(),l=I.useRef(null),u=ee(t,l,i.onScrollbarYChange);return I.useEffect((()=>{l.current&&s(getComputedStyle(l.current))}),[l]),I.createElement(d_,Q({"data-orientation":"vertical"},o,{ref:u,sizes:n,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":g_(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(i.viewport){const r=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),w_(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:m_(a.paddingTop),paddingEnd:m_(a.paddingBottom)}})}}))})),[u_,c_]=qD(t_),d_=I.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=ZD(t_,n),[h,m]=I.useState(null),v=ee(t,(e=>m(e))),g=I.useRef(null),y=I.useRef(""),b=p.viewport,w=r.content-r.viewport,E=ae(c),x=ae(l),S=x_(d,10);function C(e){if(g.current){const t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return I.useEffect((()=>{const e=e=>{const t=e.target;(null==h?void 0:h.contains(t))&&E(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[b,h,w,E]),I.useEffect(x,[r,x]),S_(h,S),S_(p.content,S),I.createElement(u_,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:ae(i),onThumbPointerUp:ae(a),onThumbPositionChange:x,onThumbPointerDown:ae(s)},I.createElement(xd.div,Q({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:te(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),g.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(e)}})),onPointerMove:te(e.onPointerMove,C),onPointerUp:te(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null}))})))})),f_="ScrollAreaThumb",p_=I.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=c_(f_,e.__scopeScrollArea);return I.createElement($d,{present:n||o.hasThumb},I.createElement(h_,Q({ref:t},r)))})),h_=I.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,i=ZD(f_,n),a=c_(f_,n),{onThumbPositionChange:s}=a,l=ee(t,(e=>a.onThumbChange(e))),u=I.useRef(),c=x_((()=>{u.current&&(u.current(),u.current=void 0)}),100);return I.useEffect((()=>{const e=i.viewport;if(e){const t=()=>{if(c(),!u.current){const t=E_(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[i.viewport,c,s]),I.createElement(xd.div,Q({"data-state":a.hasThumb?"visible":"hidden"},o,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:te(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})})),onPointerUp:te(e.onPointerUp,a.onThumbPointerUp)}))}));function m_(e){return e?parseInt(e,10):0}function v_(e,t){const n=e/t;return isNaN(n)?0:n}function g_(e){const t=v_(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function y_(e,t,n="ltr"){const r=g_(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=i-r,l=Hv(e,"ltr"===n?[0,a]:[-1*a,0]);return b_([0,a],[0,s])(l)}function b_(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function w_(e,t){return e>0&&e<t}const E_=(e,t=(()=>{}))=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function x_(e,t){const n=ae(e),r=I.useRef(0);return I.useEffect((()=>()=>window.clearTimeout(r.current)),[]),I.useCallback((()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)}),[n,t])}function S_(e,t){const n=ae(t);ne((()=>{let t=0;if(e){const r=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}),[e,n])}const C_=JD,k_=e_,P_=n_,T_=p_;export{Tp as $,mv as A,vv as B,Dv as C,_v as D,jv as E,Uv as F,yg as G,bg as H,wg as I,Eg as J,Py as K,Ty as L,Ry as M,RE as N,DE as O,_E as P,EE as Q,V as R,xE as S,SE as T,CE as U,kE as V,PE as W,LE as X,TE as Y,AE as Z,NR as _,Rp as a,jR as a0,VR as a1,vD as a2,wD as a3,gD as a4,yD as a5,bD as a6,UD as a7,HD as a8,WD as a9,$D as aa,KD as ab,YD as ac,C_ as ad,k_ as ae,P_ as af,T_ as ag,Dp as b,_p as c,Mp as d,Op as e,Ap as f,Lp as g,Np as h,up as i,q as j,cp as k,dp as l,fp as m,pp as n,hp as o,mh as p,gh as q,I as r,yh as s,bh as t,wh as u,vh as v,dv as w,fv as x,pv as y,hv as z};