diff --git "a/_next/static/chunks/423-06102cf1584a8fa3.js" "b/_next/static/chunks/423-06102cf1584a8fa3.js" new file mode 100644--- /dev/null +++ "b/_next/static/chunks/423-06102cf1584a8fa3.js" @@ -0,0 +1,11 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[423],{7470:function(e,t,n){n.d(t,{H:function(){return a}});var r=n(3974),o=n(2265),i=n(2281),l=n(357);function a(e,t={defaultThemeColor:l.env.DEFAULT_ICON_THEME_COLOR||"$color",defaultStrokeWidth:2,fallbackColor:"#000"}){return n=>{let[o,l,a]=(0,r.usePropsAndStyle)(n,{...t,forComponent:r.Text,resolveValues:"web"}),s=l.color??t.defaultThemeColor,u=(0,r.getVariable)((s?a[s]:void 0)||l.color||(o.disableTheme?null:a.color)||t.fallbackColor),c="string"==typeof o.size?(0,r.getTokenValue)(o.size,"size"):o.size,d="string"==typeof o.strokeWidth?(0,r.getTokenValue)(o.strokeWidth,"size"):o.strokeWidth??`${t.defaultStrokeWidth}`;return(0,i.jsx)(e,{...o,color:u,size:c,strokeWidth:d,style:l})}}o.keep},1957:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(2265),o=n(8832),i=n(7470),l=n(2281);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,l.jsx)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:(0,l.jsx)(o.y$,{d:"M20 6 9 17l-5-5",stroke:t})})};a.displayName="Check";let s=(0,r.memo)((0,i.H)(a))},1569:function(e,t,n){n.d(t,{_:function(){return s}});var r=n(2265),o=n(8832),i=n(7470),l=n(2281);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,l.jsx)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:(0,l.jsx)(o.y$,{d:"m6 9 6 6 6-6",stroke:t})})};a.displayName="ChevronDown";let s=(0,r.memo)((0,i.H)(a))},1378:function(e,t,n){n.d(t,{K:function(){return s}});var r=n(2265),o=n(8832),i=n(7470),l=n(2281);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,l.jsx)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:(0,l.jsx)(o.y$,{d:"m18 15-6-6-6 6",stroke:t})})};a.displayName="ChevronUp";let s=(0,r.memo)((0,i.H)(a))},6855:function(e,t,n){n.d(t,{u:function(){return s}});var r=n(2265),o=n(8832),i=n(7470),l=n(2281);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,l.jsxs)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,l.jsx)(o.UL,{width:"20",height:"14",x:"2",y:"3",rx:"2",stroke:t}),(0,l.jsx)(o.x1,{x1:"8",x2:"16",y1:"21",y2:"21",stroke:t}),(0,l.jsx)(o.x1,{x1:"12",x2:"12",y1:"17",y2:"21",stroke:t})]})};a.displayName="Monitor";let s=(0,r.memo)((0,i.H)(a))},2890:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(2265),o=n(8832),i=n(7470),l=n(2281);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,l.jsx)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:(0,l.jsx)(o.y$,{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",stroke:t})})};a.displayName="Moon";let s=(0,r.memo)((0,i.H)(a))},896:function(e,t,n){n.d(t,{k:function(){return s}});var r=n(2265),o=n(8832),i=n(7470),l=n(2281);let a=e=>{let{color:t="black",size:n=24,...r}=e;return(0,l.jsxs)(o.ny,{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[(0,l.jsx)(o.Cd,{cx:"12",cy:"12",r:"4",stroke:t}),(0,l.jsx)(o.y$,{d:"M12 2v2",stroke:t}),(0,l.jsx)(o.y$,{d:"M12 20v2",stroke:t}),(0,l.jsx)(o.y$,{d:"m4.93 4.93 1.41 1.41",stroke:t}),(0,l.jsx)(o.y$,{d:"m17.66 17.66 1.41 1.41",stroke:t}),(0,l.jsx)(o.y$,{d:"M2 12h2",stroke:t}),(0,l.jsx)(o.y$,{d:"M20 12h2",stroke:t}),(0,l.jsx)(o.y$,{d:"m6.34 17.66-1.41 1.41",stroke:t}),(0,l.jsx)(o.y$,{d:"m19.07 4.93-1.41 1.41",stroke:t})]})};a.displayName="Sun";let s=(0,r.memo)((0,i.H)(a))},3085:function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2?o-2:0),l=2;l0&&(a[s]=c)}else{var h=(0,o.default)(n,s,u,a,t);h&&(a[s]=h),a=(0,r.default)(t,s,a)}}return a}};var r=a(n(9886)),o=a(n(6054)),i=a(n(2065)),l=a(n(22));function a(e){return e&&e.__esModule?e:{default:e}}},1677:function(e,t){t.Z=function(){return null}},9699:function(e,t,n){t.Z=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return i.map(function(e){return t.replace(o,e+"cross-fade(")})};var r=n(3085),o=/cross-fade\(/g,i=["-webkit-",""]},5019:function(e,t){t.Z=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},8527:function(e,t,n){t.Z=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return i.map(function(e){return t.replace(o,e+"filter(")})};var r=n(3085),o=/filter\(/g,i=["-webkit-",""]},9779:function(e,t,n){t.Z=function(e,t){if("string"==typeof t&&!(0,o.default)(t)&&t.indexOf("image-set(")>-1)return i.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,o=(r=n(2702))&&r.__esModule?r:{default:r},i=["-webkit-",""]},2316:function(e,t){t.Z=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var o=n[e],i=0,l=o.length;i-1&&"order"!==d)for(var f=t[c],p=0,h=f.length;p-1)return c;var d=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,i.default)(e)]=c,n["Moz"+(0,i.default)(e)]=d,u)}};var r=l(n(1442)),o=l(n(2702)),i=l(n(8937));function l(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},2065:function(e,t){function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,o=t.length;r{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,o=n&&n.length>0;return!r&&o?n[0]:r?t[0]:e},y={NOT_RESPONDER:"NOT_RESPONDER",RESPONDER_INACTIVE_PRESS_IN:"RESPONDER_INACTIVE_PRESS_IN",RESPONDER_INACTIVE_PRESS_OUT:"RESPONDER_INACTIVE_PRESS_OUT",RESPONDER_ACTIVE_PRESS_IN:"RESPONDER_ACTIVE_PRESS_IN",RESPONDER_ACTIVE_PRESS_OUT:"RESPONDER_ACTIVE_PRESS_OUT",RESPONDER_ACTIVE_LONG_PRESS_IN:"RESPONDER_ACTIVE_LONG_PRESS_IN",RESPONDER_ACTIVE_LONG_PRESS_OUT:"RESPONDER_ACTIVE_LONG_PRESS_OUT",ERROR:"ERROR"},S={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},E=(0,l.Z)((0,l.Z)({},S),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),R=(0,l.Z)((0,l.Z)({},S),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),w=(0,l.Z)((0,l.Z)({},S),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),x={DELAY:"DELAY",RESPONDER_GRANT:"RESPONDER_GRANT",RESPONDER_RELEASE:"RESPONDER_RELEASE",RESPONDER_TERMINATED:"RESPONDER_TERMINATED",ENTER_PRESS_RECT:"ENTER_PRESS_RECT",LEAVE_PRESS_RECT:"LEAVE_PRESS_RECT",LONG_PRESS_DETECTED:"LONG_PRESS_DETECTED"},T={NOT_RESPONDER:{DELAY:y.ERROR,RESPONDER_GRANT:y.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:y.ERROR,RESPONDER_TERMINATED:y.ERROR,ENTER_PRESS_RECT:y.ERROR,LEAVE_PRESS_RECT:y.ERROR,LONG_PRESS_DETECTED:y.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:y.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:y.ERROR,RESPONDER_RELEASE:y.NOT_RESPONDER,RESPONDER_TERMINATED:y.NOT_RESPONDER,ENTER_PRESS_RECT:y.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:y.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:y.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:y.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:y.ERROR,RESPONDER_RELEASE:y.NOT_RESPONDER,RESPONDER_TERMINATED:y.NOT_RESPONDER,ENTER_PRESS_RECT:y.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:y.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:y.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:y.ERROR,RESPONDER_GRANT:y.ERROR,RESPONDER_RELEASE:y.NOT_RESPONDER,RESPONDER_TERMINATED:y.NOT_RESPONDER,ENTER_PRESS_RECT:y.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:y.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:y.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:y.ERROR,RESPONDER_GRANT:y.ERROR,RESPONDER_RELEASE:y.NOT_RESPONDER,RESPONDER_TERMINATED:y.NOT_RESPONDER,ENTER_PRESS_RECT:y.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:y.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:y.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:y.ERROR,RESPONDER_GRANT:y.ERROR,RESPONDER_RELEASE:y.NOT_RESPONDER,RESPONDER_TERMINATED:y.NOT_RESPONDER,ENTER_PRESS_RECT:y.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:y.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:y.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:y.ERROR,RESPONDER_GRANT:y.ERROR,RESPONDER_RELEASE:y.NOT_RESPONDER,RESPONDER_TERMINATED:y.NOT_RESPONDER,ENTER_PRESS_RECT:y.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:y.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:y.ERROR},error:{DELAY:y.NOT_RESPONDER,RESPONDER_GRANT:y.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:y.NOT_RESPONDER,RESPONDER_TERMINATED:y.NOT_RESPONDER,ENTER_PRESS_RECT:y.NOT_RESPONDER,LEAVE_PRESS_RECT:y.NOT_RESPONDER,LONG_PRESS_DETECTED:y.NOT_RESPONDER}},C={componentDidMount:function(){(0,g.O)("TouchableMixin","TouchableMixin is deprecated. Please use Pressable.");var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==y.NOT_RESPONDER&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=y.NOT_RESPONDER,this.state.touchable.responderID=t,this._receiveSignal(x.RESPONDER_GRANT,e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(n=isNaN(n)?130:n)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;r=isNaN(r)?370:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(x.RESPONDER_RELEASE,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(x.RESPONDER_TERMINATED,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},o=r.left,i=r.top,l=r.right,a=r.bottom,s=this.touchableGetHitSlop?this.touchableGetHitSlop():null;s&&(o+=s.left||0,i+=s.top||0,l+=s.right||0,a+=s.bottom||0);var u=b(e.nativeEvent),c=u&&u.pageX,d=u&&u.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(c,d,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout(),c>t.left-o&&d>t.top-i&&c{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;"Enter"!==n&&" "!==n||("keydown"===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==y.NOT_RESPONDER||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):"keyup"===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==y.NOT_RESPONDER&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),"Enter"===n&&"link"===a.Z.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}};C.touchableHandleFocus,C.touchableHandleBlur;var O=(0,i.Z)(C,["touchableHandleFocus","touchableHandleBlur"]);C.withoutDefaultFocusAndBlur=O;var k={Mixin:C,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!k.TOUCH_TARGET_DEBUG)return null;var o={};for(var i in n=n||{top:0,bottom:0,left:0,right:0})o[i]=-n[i];var a=p()(t);if("number"!=typeof a)return null;var s="#"+("00000000"+a.toString(16)).substr(-8);return r.createElement(v.Z,{pointerEvents:"none",style:(0,l.Z)({position:"absolute",borderColor:s.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:s.slice(0,-2)+"0F"},o)})}};let P={top:20,left:20,right:20,bottom:30},{Mixin:_}=k,{touchableHandleStartShouldSetResponder:A,touchableHandleResponderTerminationRequest:N,touchableHandleResponderGrant:I,touchableHandleResponderMove:D,touchableHandleResponderRelease:M,touchableHandleResponderTerminate:L,touchableGetInitialState:j}=_,H={..._,touchableHandleStartShouldSetResponder(e){let{onStartShouldSetResponder:t}=this.props;return t?t(e):A.call(this,e)},touchableHandleResponderTerminationRequest(e){let{onResponderTerminationRequest:t}=this.props;return t?t(e):N.call(this,e)},touchableHandleResponderGrant(e){let{onResponderGrant:t}=this.props;return t?t(e):I.call(this,e)},touchableHandleResponderMove(e){let{onResponderMove:t}=this.props;return t?t(e):D.call(this,e)},touchableHandleResponderRelease(e){let{onResponderRelease:t}=this.props;return t?t(e):M.call(this,e)},touchableHandleResponderTerminate(e){let{onResponderTerminate:t}=this.props;return t?t(e):L.call(this,e)},touchableHandlePress(e){let{onPress:t}=this.props;t&&t(e)},touchableHandleActivePressIn(e){let{onPressIn:t}=this.props;t&&t(e)},touchableHandleActivePressOut(e){let{onPressOut:t}=this.props;t&&t(e)},touchableHandleLongPress(e){let{onLongPress:t}=this.props;t&&t(e)},touchableGetPressRectOffset(){let{pressRetentionOffset:e}=this.props;return e||P},touchableGetHitSlop(){let{hitSlop:e}=this.props;return e},touchableGetHighlightDelayMS(){let{delayPressIn:e}=this.props;return e||0},touchableGetLongPressDelayMS(){let{delayLongPress:e}=this.props;return 0===e?0:e||500},touchableGetPressOutDelayMS(){let{delayPressOut:e}=this.props;return e||0}},B=Object.keys(H),z=B.map(e=>H[e]),W=B.length;var V=e=>{for(let t=0;te.onPress||e.onPressIn||e.onPressOut||e.onLongPress,Z=e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());function U(e){let t=[];return null!=e.translate&&t.push(`translate(${e.translate})`),(null!=e.translateX||null!=e.translateY)&&t.push(`translate(${e.translateX||0}, ${e.translateY||0})`),null!=e.scale&&t.push(`scale(${e.scale})`),(null!=e.scaleX||null!=e.scaleY)&&t.push(`scale(${e.scaleX||1}, ${e.scaleY||1})`),null!=e.rotation&&t.push(`rotate(${e.rotation})`),null!=e.skewX&&t.push(`skewX(${e.skewX})`),null!=e.skewY&&t.push(`skewY(${e.skewY})`),t}function G(e,t){let n=[];if(t&&n.push(...U(t)),Array.isArray(e)){if("number"==typeof e[0])n.push(`matrix(${e.join(" ")})`);else{let t=function(e){let t={};return null==e||e.forEach(e=>{let n=Object.keys(e);1!==n.length&&console.error("You must specify exactly one property per transform object.");let r=n[0],o=e[r];t[r]=o}),t}(e);n.push(...U(t))}}else"string"==typeof e&&n.push(e);return n.length?n.join(" "):void 0}let Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.props,{transform:n,origin:r,originX:o,originY:i,fontFamily:l,fontSize:a,fontWeight:s,fontStyle:u,style:c,forwardedRef:d,gradientTransform:f,patternTransform:p,...h}=t,m={...$(t)?{onStartShouldSetResponder:e.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:e.touchableHandleResponderTerminationRequest,onResponderGrant:e.touchableHandleResponderGrant,onResponderMove:e.touchableHandleResponderMove,onResponderRelease:e.touchableHandleResponderRelease,onResponderTerminate:e.touchableHandleResponderTerminate}:null,...h};null!=r?m["transform-origin"]=r.toString().replace(","," "):(null!=o||null!=i)&&(m["transform-origin"]=`${o||0} ${i||0}`);let v=G(n,t);v&&(m.transform=v);let g=G(f);g&&(m.gradientTransform=g);let b=G(p);b&&(m.patternTransform=b),m.ref=t=>{e.elementRef.current=t,"function"==typeof d?d(t):d&&(d.current=t)};let y={};return null!=l&&(y.fontFamily=l),null!=a&&(y.fontSize=a),null!=s&&(y.fontWeight=s),null!=u&&(y.fontStyle=u),m.style=c?F.Z?[c,y]:c[Symbol.iterator]?Object.assign({},...c,y):Object.assign({},c,y):y,m},K=e=>{if(e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect();throw Error("Can not get boundingClientRect of "+e)},X=(e,t)=>{let n=null==e?void 0:e.parentNode;n&&setTimeout(()=>{let r=K(n),{height:o,left:i,top:l,width:a}=K(e);t(i-r.left,l-r.top,a,o,i,l)},0)};function q(){let e=this.state.touchable.responderID;null!==e&&X(e,this._handleQueryLayout)}class J extends r.Component{prepareProps(e){return e}elementRef=r.createRef();lastMergedProps={};setNativeProps(e){let t=Object.assign({},this.props,this.lastMergedProps,e.style);this.lastMergedProps=t;let n=Y(this,this.prepareProps(t)),r=this.elementRef.current;if(r)for(let e of Object.keys(n)){let t=n[e];switch(e){case"ref":case"children":break;case"style":for(let e of[].concat(n.style??[]))Object.assign(r.style,e);break;default:r.setAttribute(Z(e),t)}}}constructor(e){super(e),$(e)&&V(this),this._remeasureMetricsOnActivation=q.bind(this)}render(){if(!this.tag)throw Error("When extending `WebShape` you need to overwrite either `tag` or `render`!");return this.lastMergedProps={},(0,o.Z)(this.tag,Y(this,this.prepareProps(this.props)))}}class Q extends J{tag="circle"}class ee extends J{tag="line"}class et extends J{tag="path"}class en extends J{tag="rect"}class er extends J{tag="svg";toDataURL(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.elementRef.current;if(null===r)return;let o=K(r),i=Number(n.width)||o.width,l=Number(n.height)||o.height,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("viewBox",`0 0 ${o.width} ${o.height}`),a.setAttribute("width",String(i)),a.setAttribute("height",String(l)),a.appendChild(r.cloneNode(!0));let s=new window.Image;s.onload=()=>{let t=document.createElement("canvas");t.width=i,t.height=l;let n=t.getContext("2d");null==n||n.drawImage(s,0,0),e(t.toDataURL().replace("data:image/png;base64,",""))},s.src=`data:image/svg+xml;utf8,${(t=new window.XMLSerializer().serializeToString(a)).replace("/g,"%3E").replace(/\s+/g," ")}`}}},7873:function(e){function t(e,n,r,o){this.message=e,this.expected=n,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(t,Error),t.buildMessage=function(e,t){var n={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,n="";for(t=0;t0){for(r=1,o=1;rF&&(F=W,$=[]),$.push(e))}function X(){var e,t,n,r,o;for(e=W,t=[],n=el();n!==d;)t.push(n),n=el();if(t!==d){if((n=function e(){var t,n,r,o,i,l,a,s,u,c,f,p,h,m,v,g,b,y;if(t=W,(n=q())!==d){for(r=[],o=ee();o!==d;)r.push(o),o=ee();r!==d&&(o=e())!==d?(i=n,l=o,a=i[0],s=i[1],u=i[2],c=i[3],f=i[4],p=i[5],h=l[0],m=l[1],v=l[2],g=l[3],t=n=[a*h+s*g,a*m+s*(b=l[4]),a*v+s*(y=l[5])+u,c*h+f*g,c*m+f*b,c*v+f*y+p]):(W=t,t=d)}else W=t,t=d;return t===d&&(t=q()),t}())===d&&(n=null),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();r!==d?e=t=n:(W=e,e=d)}else W=e,e=d}else W=e,e=d;return e}function q(){var t;return(t=function(){var t,n,r,o,i,l,a,s,u,c,f,p,b;if(t=W,e.substr(W,6)===h?(n=h,W+=6):(n=d,0===Z&&K(m)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(W)?(o="(",W++):(o=d,0===Z&&K(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if(ee()!==d){if((a=J())!==d){if(ee()!==d){if((s=J())!==d){if(ee()!==d){if((u=J())!==d){if(ee()!==d){if((c=J())!==d){if(ee()!==d){if((f=J())!==d){for(p=[],b=el();b!==d;)p.push(b),b=el();p!==d&&(41===e.charCodeAt(W)?(b=")",W++):(b=d,0===Z&&K(g)),b!==d)?t=n=[l,s,c,a,u,f]:(W=t,t=d)}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,s,u;if(t=W,e.substr(W,9)===b?(n=b,W+=9):(n=d,0===Z&&K(y)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(W)?(o="(",W++):(o=d,0===Z&&K(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((a=Q())===d&&(a=null),a!==d){for(s=[],u=el();u!==d;)s.push(u),u=el();s!==d&&(41===e.charCodeAt(W)?(u=")",W++):(u=d,0===Z&&K(g)),u!==d)?t=n=[1,0,l,0,1,a||0]:(W=t,t=d)}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,s,u,c,f;if(t=W,e.substr(W,5)===S?(n=S,W+=5):(n=d,0===Z&&K(E)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(W)?(o="(",W++):(o=d,0===Z&&K(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((a=Q())===d&&(a=null),a!==d){for(s=[],u=el();u!==d;)s.push(u),u=el();s!==d&&(41===e.charCodeAt(W)?(u=")",W++):(u=d,0===Z&&K(g)),u!==d)?t=n=[c=l,0,0,0,null===(f=a)?c:f,0]:(W=t,t=d)}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,s,u,c,f,p;if(t=W,e.substr(W,6)===R?(n=R,W+=6):(n=d,0===Z&&K(w)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(W)?(o="(",W++):(o=d,0===Z&&K(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){if((c=W,ee()!==d&&(f=J())!==d&&ee()!==d&&(p=J())!==d)?c=[f,p]:(W=c,c=d),(a=c)===d&&(a=null),a!==d){for(s=[],u=el();u!==d;)s.push(u),u=el();s!==d?(41===e.charCodeAt(W)?(u=")",W++):(u=d,0===Z&&K(g)),u!==d?t=n=x(l,a):(W=t,t=d)):(W=t,t=d)}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,s;if(t=W,e.substr(W,5)===T?(n=T,W+=5):(n=d,0===Z&&K(C)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(W)?(o="(",W++):(o=d,0===Z&&K(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){for(a=[],s=el();s!==d;)a.push(s),s=el();a!==d&&(41===e.charCodeAt(W)?(s=")",W++):(s=d,0===Z&&K(g)),s!==d)?t=n=[1,Math.tan(ea*l),0,0,1,0]:(W=t,t=d)}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d;return t}())===d&&(t=function(){var t,n,r,o,i,l,a,s;if(t=W,e.substr(W,5)===O?(n=O,W+=5):(n=d,0===Z&&K(k)),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();if(r!==d){if(40===e.charCodeAt(W)?(o="(",W++):(o=d,0===Z&&K(v)),o!==d){for(i=[],l=el();l!==d;)i.push(l),l=el();if(i!==d){if((l=J())!==d){for(a=[],s=el();s!==d;)a.push(s),s=el();a!==d&&(41===e.charCodeAt(W)?(s=")",W++):(s=d,0===Z&&K(g)),s!==d)?t=n=[1,0,0,Math.tan(ea*l),1,0]:(W=t,t=d)}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d}else W=t,t=d;return t}()),t}function J(){var t,n,r,o,i,l,a,s,u,c,f,p,h,m;if(t=W,n=W,(r=er())===d&&(r=null),r!==d&&(i=W,l=W,((Z++,c=W,(f=eo())===d&&(f=null),f!==d&&(46===e.charCodeAt(W)?(p=".",W++):(p=d,0===Z&&K(N)),p!==d&&(h=eo())!==d))?c=f=[(m=f)?m.join(""):null,".",h.join("")].join(""):(W=c,c=d),c===d&&(c=W,(f=eo())!==d?(46===e.charCodeAt(W)?(p=".",W++):(p=d,0===Z&&K(N)),p!==d?c=f=_(f):(W=c,c=d)):(W=c,c=d)),Z--,c===d&&(f=d,0===Z&&K(A)),(a=c)!==d)?((s=en())===d&&(s=null),s!==d?l=a=[a,s]:(W=l,l=d)):(W=l,l=d),l!==d&&(l=l.join("")),(i=l)===d&&(i=W,l=W,(a=eo())!==d&&(s=en())!==d?l=a=[a,s]:(W=l,l=d),l!==d&&(l=_(l)),i=l),(o=i)!==d)?n=r=[r,o]:(W=n,n=d),n!==d)n=parseFloat(n.join(""));return(t=n)===d&&(t=W,n=W,(r=er())===d&&(r=null),r!==d&&((u=eo())!==d&&(u=u.join("")),(o=u)!==d)?n=r=[r,o]:(W=n,n=d),n!==d&&(n=parseInt(n.join(""))),t=n),t}function Q(){var e,t;return(e=W,ee()!==d&&(t=J())!==d)?e=t:(W=e,e=d),e}function ee(){var e,t,n,r,o;if(e=W,t=[],(n=el())!==d)for(;n!==d;)t.push(n),n=el();else t=d;if(t!==d){if((n=et())===d&&(n=null),n!==d){for(r=[],o=el();o!==d;)r.push(o),o=el();r!==d?e=t=[t,n,r]:(W=e,e=d)}else W=e,e=d}else W=e,e=d;if(e===d){if(e=W,(t=et())!==d){for(n=[],r=el();r!==d;)n.push(r),r=el();n!==d?e=t=[t,n]:(W=e,e=d)}else W=e,e=d}return e}function et(){var t;return 44===e.charCodeAt(W)?(t=",",W++):(t=d,0===Z&&K(P)),t}function en(){var t,n,r,o,i;return t=W,I.test(e.charAt(W))?(n=e.charAt(W),W++):(n=d,0===Z&&K(D)),n!==d?((r=er())===d&&(r=null),r!==d&&(o=eo())!==d?t=n=[n,r,o]:(W=t,t=d)):(W=t,t=d),t!==d&&(t=[(i=t)[0],i[1],i[2].join("")].join("")),t}function er(){var t;return M.test(e.charAt(W))?(t=e.charAt(W),W++):(t=d,0===Z&&K(L)),t}function eo(){var e,t;if(e=[],(t=ei())!==d)for(;t!==d;)e.push(t),t=ei();else e=d;return e}function ei(){var t;return j.test(e.charAt(W))?(t=e.charAt(W),W++):(t=d,0===Z&&K(H)),t}function el(){var t;return B.test(e.charAt(W))?(t=e.charAt(W),W++):(t=d,0===Z&&K(z)),t}var ea=Math.PI/180;if((c=p())!==d&&W===e.length)return c;throw c!==d&&W"web"in e?e.web:e.default,get isTesting(){return!1}}},1410:function(e,t,n){n.d(t,{Z:function(){return eW}});var r=n(7998),o=n(3950),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!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,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},l=["ms","Moz","O","Webkit"],a=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(i).forEach(e=>{l.forEach(t=>{i[a(t,e)]=i[e]})});var s=e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("),u=n(2206),c=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&s(e))return e;var n=(0,u.Z)(e);if(null!=n){var r=((n>>24&255)/255*t).toFixed(2);return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+r+")"}}},d={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function f(e,t){var n=e;return null!=t&&i[t]||"number"!=typeof e?null!=t&&d[t]&&(n=c(e)):n=e+"px",n}var p=n(1213),h={},m=!p.Z||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),v='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',g={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]},b=(e,t)=>{if(!e)return h;var n={};for(var r in e)if("continue"===function(){var o=e[r];if(null==o)return"continue";if("backgroundClip"===r)"text"===o&&(n.backgroundClip=o,n.WebkitBackgroundClip=o);else if("flex"===r)-1===o?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=o;else if("font"===r)n[r]=o.replace("System",v);else if("fontFamily"===r){if(o.indexOf("System")>-1){var i=o.split(/,\s*/);i[i.indexOf("System")]=v,n[r]=i.join(",")}else"monospace"===o?n[r]="monospace,monospace":n[r]=o}else if("textDecorationLine"===r)m?n.textDecorationLine=o:n.textDecoration=o;else if("writingDirection"===r)n.direction=o;else{var l=f(e[r],r),a=g[r];t&&"inset"===r?(null==e.insetInline&&(n.left=l,n.right=l),null==e.insetBlock&&(n.top=l,n.bottom=l)):t&&"margin"===r?(null==e.marginInline&&(n.marginLeft=l,n.marginRight=l),null==e.marginBlock&&(n.marginTop=l,n.marginBottom=l)):t&&"padding"===r?(null==e.paddingInline&&(n.paddingLeft=l,n.paddingRight=l),null==e.paddingBlock&&(n.paddingTop=l,n.paddingBottom=l)):a?a.forEach((t,r)=>{null==e[t]&&(n[t]=l)}):n[r]=l}}())continue;return n},y=e=>(function(e,t){for(var n,r=e.length,o=1^r,i=0;r>=4;)n=(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))*1540483477+(((n>>>16)*1540483477&65535)<<16),n^=n>>>24,o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16)^(n=(65535&n)*1540483477+(((n>>>16)*1540483477&65535)<<16)),r-=4,++i;switch(r){case 3:o^=(255&e.charCodeAt(i+2))<<16;case 2:o^=(255&e.charCodeAt(i+1))<<8;case 1:o^=255&e.charCodeAt(i),o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(65535&o)*1540483477+(((o>>>16)*1540483477&65535)<<16),(o^=o>>>15)>>>0})(e,0).toString(36),S=/[A-Z]/g,E=/^ms-/,R={};function w(e){return"-"+e.toLowerCase()}var x=function(e){if(e in R)return R[e];var t=e.replace(S,w);return R[e]=E.test(t)?"-"+t:t},T=n(2933),C=n(1677),O=n(9699),k=n(5019),P=n(8527),_=n(9779),A=n(2316),N=n(3550),I=n(8579),D=n(4633),M=["Webkit"],L=["Webkit","ms"],j={plugins:[C.Z,O.Z,k.Z,P.Z,_.Z,A.Z,N.Z,I.Z,D.Z],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:L,textEmphasis:L,textEmphasisStyle:L,textEmphasisColor:L,boxDecorationBreak:L,clipPath:M,maskImage:L,maskMode:L,maskRepeat:L,maskPosition:L,maskClip:L,maskOrigin:L,maskSize:L,maskComposite:L,mask:L,maskBorderSource:L,maskBorderMode:L,maskBorderSlice:L,maskBorderWidth:L,maskBorderOutset:L,maskBorderRepeat:L,maskBorder:L,maskType:L,textDecorationStyle:M,textDecorationSkip:M,textDecorationLine:M,textDecorationColor:M,filter:M,breakAfter:M,breakBefore:M,breakInside:M,columnCount:M,columnFill:M,columnGap:M,columnRule:M,columnRuleColor:M,columnRuleStyle:M,columnRuleWidth:M,columns:M,columnSpan:M,columnWidth:M,backdropFilter:M,hyphens:M,flowInto:M,flowFrom:M,regionFragment:M,textOrientation:M,tabSize:["Moz"],fontKerning:M,textSizeAdjust:M}},H=(0,T.Z)(j),B=["animationKeyframes"],z=new Map,W={},V={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},F="borderTopLeftRadius",$="borderTopRightRadius",Z="borderBottomLeftRadius",U="borderBottomRightRadius",G="borderLeftColor",Y="borderLeftStyle",K="borderLeftWidth",X="borderRightColor",q="borderRightStyle",J="borderRightWidth",Q="right",ee="marginLeft",et="marginRight",en="paddingLeft",er="paddingRight",eo="left",ei={[F]:$,[$]:F,[Z]:U,[U]:Z,[G]:X,[Y]:q,[K]:J,[X]:G,[q]:Y,[J]:K,[eo]:Q,[ee]:et,[et]:ee,[en]:er,[er]:en,[Q]:eo},el={borderStartStartRadius:F,borderStartEndRadius:$,borderEndStartRadius:Z,borderEndEndRadius:U,borderInlineStartColor:G,borderInlineStartStyle:Y,borderInlineStartWidth:K,borderInlineEndColor:X,borderInlineEndStyle:q,borderInlineEndWidth:J,insetInlineEnd:Q,insetInlineStart:eo,marginInlineStart:ee,marginInlineEnd:et,paddingInlineStart:en,paddingInlineEnd:er},ea=["clear","float","textAlign"];function es(e){var t=H(b(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=x(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function eu(e){if("number"==typeof e)throw Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r,o,i,l=(r="r-"+y("animation"+JSON.stringify(e)),o="{"+Object.keys(e).map(t=>{var n=es(e[t]);return""+t+n}).join("")+"}",i=["-webkit-",""].map(e=>"@"+e+"keyframes "+r+o),[r,i]),a=l[0],s=l[1];t.push(a),n.push(...s)}}),[t,n]}function ec(e,t,n){if(!p.Z)return null;var r=null!=t?t:document,o=r.getElementById(e);if(null==o){if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),r instanceof ShadowRoot)r.insertBefore(o,r.firstChild);else{var i=r.head;i&&i.insertBefore(o,i.firstChild)}}return o.sheet}var ed=Array.prototype.slice;function ef(e){var t,n={},r={};function o(e,t,r){var o=eh(n),i=o.indexOf(t)+1,l=o[i],a=null!=l&&null!=n[l].start?n[l].start:e.cssRules.length,s=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,a);if(s){null==n[t].start&&(n[t].start=a);for(var u=i;u{var i=e.cssText;if(i.indexOf("stylesheet-group")>-1)n[t=Number(e.selectorText.split(ep)[1])]={start:o,rules:[i]};else{var l=ev(i);null!=l&&(r[l]=!0,n[t].rules.push(i))}}),{getTextContent:()=>eh(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,i){var l=Number(i);if(null==n[l]){var a='[stylesheet-group="'+l+'"]{}';n[l]={start:null,rules:[a]},null!=e&&o(e,l,a)}var s=ev(t);null==s||null!=r[s]||(r[s]=!0,n[l].rules.push(t),null==e||o(e,l,t)||n[l].rules.pop())}}}var ep=/["']/g;function eh(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var em=/\s*([,])\s*/g;function ev(e){var t=e.split("{")[0].trim();return""!==t?t.replace(em,"$1"):null}var eg=new WeakMap,eb=[],ey=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"],eS=n(7106),eE=n(131),eR={},ew={height:0,width:0},ex=e=>{var t=e.shadowColor,n=e.shadowOffset,r=e.shadowOpacity,o=e.shadowRadius,i=n||ew,l=i.height,a=f(i.width),s=f(l),u=f(o||0),d=c(t||"black",r);if(null!=d&&null!=a&&null!=s&&null!=u)return a+" "+s+" "+u+" "+d},eT=e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||ew,i=o.height,l=o.width,a=r||0,s=f(l),u=f(i),c=f(a),d=f(t,"textShadowColor");if(d&&(0!==i||0!==l||0!==a)&&null!=s&&null!=u&&null!=c)return s+" "+u+" "+c+" "+d},eC=e=>{var t=Object.keys(e)[0],n=e[t];if("matrix"===t||"matrix3d"===t)return t+"("+n.join(",")+")";var r=f(n,t);return t+"("+r+")"},eO=e=>e.map(eC).join(" "),ek={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},eP={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},e_=function(e,t){void 0===t&&(t={});var n=e||eR,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,eE.O)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var o=ex(n);if(null!=o&&null==r.boxShadow){var i=n.boxShadow;r.boxShadow=i?i+", "+o:o}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,eE.O)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var l=eT(n);if(null!=l&&null==r.textShadow){var a=n.textShadow;r.textShadow=a?a+", "+l:l}}for(var s in n)if(null==eP[s]&&"shadowColor"!==s&&"shadowOffset"!==s&&"shadowOpacity"!==s&&"shadowRadius"!==s&&"textShadowColor"!==s&&"textShadowOffset"!==s&&"textShadowRadius"!==s){var u=n[s],c=ek[s]||s,d=u;Object.prototype.hasOwnProperty.call(n,s)&&(c===s||null==n[c])&&("aspectRatio"===c&&"number"==typeof d?r[c]=d.toString():"fontVariant"===c?(Array.isArray(d)&&d.length>0&&((0,eE.O)("fontVariant",'"fontVariant" style array value is deprecated. Use space-separated values.'),d=d.join(" ")),r[c]=d):"textAlignVertical"===c?((0,eE.O)("textAlignVertical",'"textAlignVertical" style is deprecated. Use "verticalAlign".'),null==n.verticalAlign&&(r.verticalAlign="center"===d?"middle":d)):"transform"===c?(Array.isArray(d)&&(d=eO(d)),r.transform=d):r[c]=d)}return r},eA=n(8650),eN=["writingDirection"],eI=new WeakMap,eD=function(e,t){if(void 0===t&&(t="react-native-stylesheet"),p.Z){var n,r=document;if(0===eb.length)n=ef(ec(t)),ey.forEach(e=>{n.insert(e,0)}),eg.set(r,eb.length),eb.push(n);else{var o=eg.get(r);if(null==o){var i=eb[0];n=ef(ec(t,r,null!=i?i.getTextContent():"")),eg.set(r,eb.length),eb.push(n)}else n=eb[o]}}else 0===eb.length?(n=ef(ec(t)),ey.forEach(e=>{n.insert(e,0)}),eb.push(n)):n=eb[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){eb.forEach(n=>{n.insert(e,t)})}}}(),eM={shadow:!0,textShadow:!0};function eL(e){e.forEach(e=>{var t=e[0],n=e[1];null!=eD&&t.forEach(e=>{eD.insert(e,n)})})}var ej={position:"absolute",left:0,right:0,top:0,bottom:0},eH=eB({x:(0,r.Z)({},ej)}).x;function eB(e){return Object.keys(e).forEach(t=>{var n,i,l,a,s,u=e[t];null!=u&&!0!==u.$$css&&(t.indexOf("$raw")>-1?(i=(n=function(e,t){var n,i={$$css:!0},l=[],a=e.animationKeyframes,s=(0,o.Z)(e,B),u="css-"+y(t+JSON.stringify(e));if(null!=a){var c=eu(a),d=c[0],f=c[1];n=d.join(","),l.push(...f)}var p=es((0,r.Z)((0,r.Z)({},s),{},{animationName:n}));return l.push("."+u+p),i[u]=u,[i,[[l,1]]]}(u,t.split("$raw")[0]))[0],eL(n[1]),s=i):(a=(l=function(e){var t={$$css:!0},n=[];function r(e,t,r){var o,i,l="string"!=typeof(o=f(r,t))?JSON.stringify(o||""):o,a=t+l,s=z.get(a);if(null!=s)i=s[0],n.push(s[1]);else{i="r-"+y(e+(e!==t?a:l));var u=V[e]||3,c=[function(e,t,n){var r=[],o="."+e;switch(t){case"animationKeyframes":var i=eu(n),l=i[0],a=i[1],s=es({animationName:l.join(",")});r.push(""+o+s,...a);break;case"placeholderTextColor":var u=es({color:n,opacity:1});r.push(o+"::-webkit-input-placeholder"+u,o+"::-moz-placeholder"+u,o+":-ms-input-placeholder"+u,o+"::placeholder"+u);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=es({pointerEvents:"none"});r.push(o+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var f=es({pointerEvents:"auto"});r.push(o+">*"+f)}var p=es({pointerEvents:c});r.push(""+o+p);break;case"scrollbarWidth":"none"===n&&r.push(o+"::-webkit-scrollbar{display:none}");var h=es({scrollbarWidth:n});r.push(""+o+h);break;default:var m=es({[t]:n});r.push(""+o+m)}return r}(i,t,r),u];n.push(c),z.set(a,[i,c])}return i}return Object.keys(e).sort().forEach(n=>{var o=e[n];if(null!=o){if(ea.indexOf(n)>-1){var i,l=r(n,n,"left"),a=r(n,n,"right");"start"===o?i=[l,a]:"end"===o&&(i=[a,l])}var s=el[n];if(null!=s&&(i=[r(n,s,o),r(n,ei[s],o)]),"transitionProperty"===n){for(var u=Array.isArray(o)?o:[o],c=[],d=0;d0){var p=[...u],h=[...u];c.forEach(e=>{var t=p[e];if("string"==typeof t){var o=el[t],l=ei[o];p[e]=o,h[e]=l,i=[r(n,n,p),r(n,n,h)]}})}}null==i?i=r(n,n,o):t.$$css$localize=!0,t[n]=i}}),[t,n]}(e_(u,eM)))[0],eL(l[1]),s=a),eI.set(u,s))}),e}function ez(e,t){void 0===t&&(t={});var n,i,l,a,s,u="rtl"===t.writingDirection,c=(void 0===(n=t)&&(n={}),l=(i=n).writingDirection,a=(0,o.Z)(i,eN),s="rtl"===l,eA.D.factory({transform(e){var t=eI.get(e);return null!=t?(0,eS.j)(t,s):e_(e,(0,r.Z)((0,r.Z)({},eM),a))}})(e));return Array.isArray(c)&&null!=c[1]&&(c[1]=function(e,t){var n=e||W,r={},o={};for(var i in n)if("continue"===function(){var e=n[i],l=i,a=e;if(!Object.prototype.hasOwnProperty.call(n,i)||null==e)return"continue";ea.indexOf(i)>-1&&("start"===e?a=t?"right":"left":"end"===e&&(a=t?"left":"right"));var s=el[i];if(null!=s&&(l=t?ei[s]:s),"transitionProperty"===i){var u=Array.isArray(e)?e:[e];u.forEach((e,n)=>{if("string"==typeof e){var r=el[e];null!=r&&(u[n]=t?ei[r]:r,a=u.join(" "))}})}r[l]||(o[l]=a),l===i&&(r[l]=!0)}())continue;return b(o,!0)}(c[1],u)),c}ez.absoluteFill=eH,ez.absoluteFillObject=ej,ez.create=eB,ez.compose=function(e,t){return[e,t]},ez.flatten=function(){for(var e=arguments.length,t=Array(e),n=0;ne+t.charAt(0).toUpperCase()+t.substring(1);Object.keys(r).forEach(e=>{o.forEach(t=>{r[i(t,e)]=r[e]})});var l=function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var i,l,a=0===o.indexOf("--"),s=(i=o,null==(l=t[o])||"boolean"==typeof l||""===l?"":a||"number"!=typeof l||0===l||r.hasOwnProperty(i)&&r[i]?(""+l).trim():l+"px");"float"===o&&(o="cssFloat"),a?n.setProperty(o,s):n[o]=s}},a=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,o=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,o+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:o-=window.scrollY,left:r-=window.scrollX}},s=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=a(r),o=a(e),i=o.height,l=o.left,s=o.top,u=o.width;n(l-t.left,s-t.top,u,i,l,s)}},0)},u={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},c={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==u[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){s(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=a(e),r=n.height;t(n.left,n.top,n.width,r)},0)},measureLayout(e,t,n,r){s(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":l(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},5275:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(3950),o=n(2265),i=n(4679),l=n(7792),a=n(9115),s=n(9647),u=n(542),c=n(5158),d=n(4834),f=n(1410),p=(0,o.createContext)(!1),h=n(3201),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],v=Object.assign({},l.lG,l.LO,l._T,l.YB,l.Uy,l.hJ,l.E5,l.vr,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),g=e=>(0,a.Z)(e,v),b=o.forwardRef((e,t)=>{var n=e.hrefAttrs,l=e.onLayout,a=e.onMoveShouldSetResponder,f=e.onMoveShouldSetResponderCapture,v=e.onResponderEnd,b=e.onResponderGrant,S=e.onResponderMove,E=e.onResponderReject,R=e.onResponderRelease,w=e.onResponderStart,x=e.onResponderTerminate,T=e.onResponderTerminationRequest,C=e.onScrollShouldSetResponder,O=e.onScrollShouldSetResponderCapture,k=e.onSelectionChangeShouldSetResponder,P=e.onSelectionChangeShouldSetResponderCapture,_=e.onStartShouldSetResponder,A=e.onStartShouldSetResponderCapture,N=(0,r.Z)(e,m),I=o.useContext(p),D=o.useRef(null),M=(0,h.PE)().direction;(0,s.Z)(D,l),(0,d.Z)(D,{onMoveShouldSetResponder:a,onMoveShouldSetResponderCapture:f,onResponderEnd:v,onResponderGrant:b,onResponderMove:S,onResponderReject:E,onResponderRelease:R,onResponderStart:w,onResponderTerminate:x,onResponderTerminationRequest:T,onScrollShouldSetResponder:C,onScrollShouldSetResponderCapture:O,onSelectionChangeShouldSetResponder:k,onSelectionChangeShouldSetResponderCapture:P,onStartShouldSetResponder:_,onStartShouldSetResponderCapture:A});var L="div",j=null!=e.lang?(0,h.w1)(e.lang):null,H=e.dir||j,B=H||M,z=g(N);if(z.dir=H,z.style=[y.view$raw,I&&y.inline,e.style],null!=e.href&&(L="a",null!=n)){var W=n.download,V=n.rel,F=n.target;null!=W&&(z.download=W),null!=V&&(z.rel=V),"string"==typeof F&&(z.target="_"!==F.charAt(0)?"_"+F:F)}var $=(0,c.Z)(z),Z=(0,u.Z)(D,$,t);return z.ref=Z,(0,i.Z)(L,z,{writingDirection:B})});b.displayName="View";var y=f.Z.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}}),S=b},4679:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(3545),o=n(7998),i=n(3950),l=n(1410),a=n(131),s=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],u={},c=Object.prototype.hasOwnProperty,d=Array.isArray,f=/[A-Z]/g;function p(e){return"-"+e.toLowerCase()}function h(e){return d(e)?e.join(" "):e}var m=l.Z.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}}),v=(e,t,n)=>{t||(t=u);var d=t,v=d["aria-activedescendant"],g=d.accessibilityActiveDescendant,b=d["aria-atomic"],y=d.accessibilityAtomic,S=d["aria-autocomplete"],E=d.accessibilityAutoComplete,R=d["aria-busy"],w=d.accessibilityBusy,x=d["aria-checked"],T=d.accessibilityChecked,C=d["aria-colcount"],O=d.accessibilityColumnCount,k=d["aria-colindex"],P=d.accessibilityColumnIndex,_=d["aria-colspan"],A=d.accessibilityColumnSpan,N=d["aria-controls"],I=d.accessibilityControls,D=d["aria-current"],M=d.accessibilityCurrent,L=d["aria-describedby"],j=d.accessibilityDescribedBy,H=d["aria-details"],B=d.accessibilityDetails,z=d["aria-disabled"],W=d.accessibilityDisabled,V=d["aria-errormessage"],F=d.accessibilityErrorMessage,$=d["aria-expanded"],Z=d.accessibilityExpanded,U=d["aria-flowto"],G=d.accessibilityFlowTo,Y=d["aria-haspopup"],K=d.accessibilityHasPopup,X=d["aria-hidden"],q=d.accessibilityHidden,J=d["aria-invalid"],Q=d.accessibilityInvalid,ee=d["aria-keyshortcuts"],et=d.accessibilityKeyShortcuts,en=d["aria-label"],er=d.accessibilityLabel,eo=d["aria-labelledby"],ei=d.accessibilityLabelledBy,el=d["aria-level"],ea=d.accessibilityLevel,es=d["aria-live"],eu=d.accessibilityLiveRegion,ec=d["aria-modal"],ed=d.accessibilityModal,ef=d["aria-multiline"],ep=d.accessibilityMultiline,eh=d["aria-multiselectable"],em=d.accessibilityMultiSelectable,ev=d["aria-orientation"],eg=d.accessibilityOrientation,eb=d["aria-owns"],ey=d.accessibilityOwns,eS=d["aria-placeholder"],eE=d.accessibilityPlaceholder,eR=d["aria-posinset"],ew=d.accessibilityPosInSet,ex=d["aria-pressed"],eT=d.accessibilityPressed,eC=d["aria-readonly"],eO=d.accessibilityReadOnly,ek=d["aria-required"],eP=d.accessibilityRequired,e_=(d.role,d.accessibilityRole),eA=d["aria-roledescription"],eN=d.accessibilityRoleDescription,eI=d["aria-rowcount"],eD=d.accessibilityRowCount,eM=d["aria-rowindex"],eL=d.accessibilityRowIndex,ej=d["aria-rowspan"],eH=d.accessibilityRowSpan,eB=d["aria-selected"],ez=d.accessibilitySelected,eW=d["aria-setsize"],eV=d.accessibilitySetSize,eF=d["aria-sort"],e$=d.accessibilitySort,eZ=d["aria-valuemax"],eU=d.accessibilityValueMax,eG=d["aria-valuemin"],eY=d.accessibilityValueMin,eK=d["aria-valuenow"],eX=d.accessibilityValueNow,eq=d["aria-valuetext"],eJ=d.accessibilityValueText,eQ=d.dataSet,e0=d.focusable,e1=d.id,e2=d.nativeID,e5=d.pointerEvents,e3=d.style,e4=d.tabIndex,e7=d.testID,e6=(0,i.Z)(d,s);null!=W&&(0,a.O)("accessibilityDisabled","accessibilityDisabled is deprecated.");var e8=r.Z.propsToAriaRole(t);null!=g&&(0,a.O)("accessibilityActiveDescendant","accessibilityActiveDescendant is deprecated. Use aria-activedescendant.");var e9=null!=v?v:g;null!=e9&&(e6["aria-activedescendant"]=e9),null!=y&&(0,a.O)("accessibilityAtomic","accessibilityAtomic is deprecated. Use aria-atomic.");var te=null!=b?v:y;null!=te&&(e6["aria-atomic"]=te),null!=E&&(0,a.O)("accessibilityAutoComplete","accessibilityAutoComplete is deprecated. Use aria-autocomplete.");var tt=null!=S?S:E;null!=tt&&(e6["aria-autocomplete"]=tt),null!=w&&(0,a.O)("accessibilityBusy","accessibilityBusy is deprecated. Use aria-busy.");var tn=null!=R?R:w;null!=tn&&(e6["aria-busy"]=tn),null!=T&&(0,a.O)("accessibilityChecked","accessibilityChecked is deprecated. Use aria-checked.");var tr=null!=x?x:T;null!=tr&&(e6["aria-checked"]=tr),null!=O&&(0,a.O)("accessibilityColumnCount","accessibilityColumnCount is deprecated. Use aria-colcount.");var to=null!=C?C:O;null!=to&&(e6["aria-colcount"]=to),null!=P&&(0,a.O)("accessibilityColumnIndex","accessibilityColumnIndex is deprecated. Use aria-colindex.");var ti=null!=k?k:P;null!=ti&&(e6["aria-colindex"]=ti),null!=A&&(0,a.O)("accessibilityColumnSpan","accessibilityColumnSpan is deprecated. Use aria-colspan.");var tl=null!=_?_:A;null!=tl&&(e6["aria-colspan"]=tl),null!=I&&(0,a.O)("accessibilityControls","accessibilityControls is deprecated. Use aria-controls.");var ta=null!=N?N:I;null!=ta&&(e6["aria-controls"]=h(ta)),null!=M&&(0,a.O)("accessibilityCurrent","accessibilityCurrent is deprecated. Use aria-current.");var ts=null!=D?D:M;null!=ts&&(e6["aria-current"]=ts),null!=j&&(0,a.O)("accessibilityDescribedBy","accessibilityDescribedBy is deprecated. Use aria-describedby.");var tu=null!=L?L:j;null!=tu&&(e6["aria-describedby"]=h(tu)),null!=B&&(0,a.O)("accessibilityDetails","accessibilityDetails is deprecated. Use aria-details.");var tc=null!=H?H:B;null!=tc&&(e6["aria-details"]=tc),!0===(z||W)&&(e6["aria-disabled"]=!0,("button"===e||"form"===e||"input"===e||"select"===e||"textarea"===e)&&(e6.disabled=!0)),null!=F&&(0,a.O)("accessibilityErrorMessage","accessibilityErrorMessage is deprecated. Use aria-errormessage.");var td=null!=V?V:F;null!=td&&(e6["aria-errormessage"]=td),null!=Z&&(0,a.O)("accessibilityExpanded","accessibilityExpanded is deprecated. Use aria-expanded.");var tf=null!=$?$:Z;null!=tf&&(e6["aria-expanded"]=tf),null!=G&&(0,a.O)("accessibilityFlowTo","accessibilityFlowTo is deprecated. Use aria-flowto.");var tp=null!=U?U:G;null!=tp&&(e6["aria-flowto"]=h(tp)),null!=K&&(0,a.O)("accessibilityHasPopup","accessibilityHasPopup is deprecated. Use aria-haspopup.");var th=null!=Y?Y:K;null!=th&&(e6["aria-haspopup"]=th),null!=q&&(0,a.O)("accessibilityHidden","accessibilityHidden is deprecated. Use aria-hidden.");var tm=null!=X?X:q;!0===tm&&(e6["aria-hidden"]=tm),null!=Q&&(0,a.O)("accessibilityInvalid","accessibilityInvalid is deprecated. Use aria-invalid.");var tv=null!=J?J:Q;null!=tv&&(e6["aria-invalid"]=tv),null!=et&&(0,a.O)("accessibilityKeyShortcuts","accessibilityKeyShortcuts is deprecated. Use aria-keyshortcuts.");var tg=null!=ee?ee:et;null!=tg&&(e6["aria-keyshortcuts"]=h(tg)),null!=er&&(0,a.O)("accessibilityLabel","accessibilityLabel is deprecated. Use aria-label.");var tb=null!=en?en:er;null!=tb&&(e6["aria-label"]=tb),null!=ei&&(0,a.O)("accessibilityLabelledBy","accessibilityLabelledBy is deprecated. Use aria-labelledby.");var ty=null!=eo?eo:ei;null!=ty&&(e6["aria-labelledby"]=h(ty)),null!=ea&&(0,a.O)("accessibilityLevel","accessibilityLevel is deprecated. Use aria-level.");var tS=null!=el?el:ea;null!=tS&&(e6["aria-level"]=tS),null!=eu&&(0,a.O)("accessibilityLiveRegion","accessibilityLiveRegion is deprecated. Use aria-live.");var tE=null!=es?es:eu;null!=tE&&(e6["aria-live"]="none"===tE?"off":tE),null!=ed&&(0,a.O)("accessibilityModal","accessibilityModal is deprecated. Use aria-modal.");var tR=null!=ec?ec:ed;null!=tR&&(e6["aria-modal"]=tR),null!=ep&&(0,a.O)("accessibilityMultiline","accessibilityMultiline is deprecated. Use aria-multiline.");var tw=null!=ef?ef:ep;null!=tw&&(e6["aria-multiline"]=tw),null!=em&&(0,a.O)("accessibilityMultiSelectable","accessibilityMultiSelectable is deprecated. Use aria-multiselectable.");var tx=null!=eh?eh:em;null!=tx&&(e6["aria-multiselectable"]=tx),null!=eg&&(0,a.O)("accessibilityOrientation","accessibilityOrientation is deprecated. Use aria-orientation.");var tT=null!=ev?ev:eg;null!=tT&&(e6["aria-orientation"]=tT),null!=ey&&(0,a.O)("accessibilityOwns","accessibilityOwns is deprecated. Use aria-owns.");var tC=null!=eb?eb:ey;null!=tC&&(e6["aria-owns"]=h(tC)),null!=eE&&(0,a.O)("accessibilityPlaceholder","accessibilityPlaceholder is deprecated. Use aria-placeholder.");var tO=null!=eS?eS:eE;null!=tO&&(e6["aria-placeholder"]=tO),null!=ew&&(0,a.O)("accessibilityPosInSet","accessibilityPosInSet is deprecated. Use aria-posinset.");var tk=null!=eR?eR:ew;null!=tk&&(e6["aria-posinset"]=tk),null!=eT&&(0,a.O)("accessibilityPressed","accessibilityPressed is deprecated. Use aria-pressed.");var tP=null!=ex?ex:eT;null!=tP&&(e6["aria-pressed"]=tP),null!=eO&&(0,a.O)("accessibilityReadOnly","accessibilityReadOnly is deprecated. Use aria-readonly.");var t_=null!=eC?eC:eO;null!=t_&&(e6["aria-readonly"]=t_,("input"===e||"select"===e||"textarea"===e)&&(e6.readOnly=!0)),null!=eP&&(0,a.O)("accessibilityRequired","accessibilityRequired is deprecated. Use aria-required.");var tA=null!=ek?ek:eP;null!=tA&&(e6["aria-required"]=tA,("input"===e||"select"===e||"textarea"===e)&&(e6.required=eP)),null!=e_&&(0,a.O)("accessibilityRole","accessibilityRole is deprecated. Use role."),null!=e8&&(e6.role="none"===e8?"presentation":e8),null!=eN&&(0,a.O)("accessibilityRoleDescription","accessibilityRoleDescription is deprecated. Use aria-roledescription.");var tN=null!=eA?eA:eN;null!=tN&&(e6["aria-roledescription"]=tN),null!=eD&&(0,a.O)("accessibilityRowCount","accessibilityRowCount is deprecated. Use aria-rowcount.");var tI=null!=eI?eI:eD;null!=tI&&(e6["aria-rowcount"]=tI),null!=eL&&(0,a.O)("accessibilityRowIndex","accessibilityRowIndex is deprecated. Use aria-rowindex.");var tD=null!=eM?eM:eL;null!=tD&&(e6["aria-rowindex"]=tD),null!=eH&&(0,a.O)("accessibilityRowSpan","accessibilityRowSpan is deprecated. Use aria-rowspan.");var tM=null!=ej?ej:eH;null!=tM&&(e6["aria-rowspan"]=tM),null!=ez&&(0,a.O)("accessibilitySelected","accessibilitySelected is deprecated. Use aria-selected.");var tL=null!=eB?eB:ez;null!=tL&&(e6["aria-selected"]=tL),null!=eV&&(0,a.O)("accessibilitySetSize","accessibilitySetSize is deprecated. Use aria-setsize.");var tj=null!=eW?eW:eV;null!=tj&&(e6["aria-setsize"]=tj),null!=e$&&(0,a.O)("accessibilitySort","accessibilitySort is deprecated. Use aria-sort.");var tH=null!=eF?eF:e$;null!=tH&&(e6["aria-sort"]=tH),null!=eU&&(0,a.O)("accessibilityValueMax","accessibilityValueMax is deprecated. Use aria-valuemax.");var tB=null!=eZ?eZ:eU;null!=tB&&(e6["aria-valuemax"]=tB),null!=eY&&(0,a.O)("accessibilityValueMin","accessibilityValueMin is deprecated. Use aria-valuemin.");var tz=null!=eG?eG:eY;null!=tz&&(e6["aria-valuemin"]=tz),null!=eX&&(0,a.O)("accessibilityValueNow","accessibilityValueNow is deprecated. Use aria-valuenow.");var tW=null!=eK?eK:eX;null!=tW&&(e6["aria-valuenow"]=tW),null!=eJ&&(0,a.O)("accessibilityValueText","accessibilityValueText is deprecated. Use aria-valuetext.");var tV=null!=eq?eq:eJ;if(null!=tV&&(e6["aria-valuetext"]=tV),null!=eQ){for(var tF in eQ)if(c.call(eQ,tF)){var t$=tF.replace(f,p),tZ=eQ[tF];null!=tZ&&(e6["data-"+t$]=tZ)}}0===e4||"0"===e4||-1===e4||"-1"===e4?e6.tabIndex=e4:(null!=e0&&(0,a.O)("focusable","focusable is deprecated."),!1===e0&&(e6.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?(!1===e0||!0===W)&&(e6.tabIndex="-1"):"button"===e8||"checkbox"===e8||"link"===e8||"radio"===e8||"textbox"===e8||"switch"===e8?!1!==e0&&(e6.tabIndex="0"):!0===e0&&(e6.tabIndex="0")),null!=e5&&(0,a.O)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var tU=(0,l.Z)([e3,e5&&m[e5]],(0,o.Z)({writingDirection:"ltr"},n)),tG=tU[0],tY=tU[1];tG&&(e6.className=tG),tY&&(e6.style=tY),null!=e2&&(0,a.O)("nativeID","nativeID is deprecated. Use id.");var tK=null!=e1?e1:e2;return null!=tK&&(e6.id=tK),null!=e7&&(e6["data-testid"]=e7),null==e6.type&&"button"===e&&(e6.type="button"),e6},g=n(2265),b=n(3201),y=(e,t,n)=>{e&&e.constructor===String&&(o=r.Z.propsToAccessibilityComponent(t));var o,i=o||e,l=v(i,t,n),a=g.createElement(i,l);return l.dir?g.createElement(b.Iw,{children:a,direction:l.dir,locale:l.lang}):a}},2206:function(e,t,n){var r=n(44),o=n.n(r);t.Z=e=>{if(null==e)return e;var t=o()(e);if(null!=t)return(t<<24|t>>>8)>>>0}},3545:function(e,t,n){n.d(t,{Z:function(){return a}});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null},o=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var o=r[n];if(null!==o)return o||n}},i={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},l={},a={isDisabled:e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1,propsToAccessibilityComponent:function(e){if(void 0===e&&(e=l),"label"===e.accessibilityRole)return"label";var t=o(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return i[t]}},propsToAriaRole:o}},3013:function(e,t,n){var r=n(2319);t.Z={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.Z.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.Z.blur(e))}}},1213:function(e,t){var n=!!("undefined"!=typeof window&&window.document&&window.document.createElement);t.Z=n},7792:function(e,t,n){n.d(t,{E5:function(){return u},LO:function(){return o},Uy:function(){return a},YB:function(){return l},_T:function(){return i},hJ:function(){return s},lG:function(){return r},vr:function(){return c}});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},o={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},i={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},l={onBlur:!0,onFocus:!0},a={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},s={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},2050:function(e,t,n){function r(){for(var e=arguments.length,t=Array(e),n=0;n{if(null!=t){if("function"==typeof t){t(e);return}if("object"==typeof t){t.current=e;return}console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t))}})}}n.d(t,{Z:function(){return r}}),n(2265)},9115:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}},9647:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1435),o=n(2319),i=n(1213),l="__reactLayoutHandler",a=(i.Z,null);function s(e,t){var n=(i.Z&&void 0!==window.ResizeObserver&&null==a&&(a=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[l];"function"==typeof n&&o.Z.measure(t,(t,r,o,i,l,a)=>{var s={nativeEvent:{layout:{x:t,y:r,width:o,height:i,left:l,top:a}},timeStamp:Date.now()};Object.defineProperty(s.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(s)})})})),a);(0,r.Z)(()=>{var n=e.current;null!=n&&(n[l]=t)},[e,t]),(0,r.Z)(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[l]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}},1435:function(e,t,n){var r=n(2265),o=n(1213).Z?r.useLayoutEffect:r.useEffect;t.Z=o},3201:function(e,t,n){n.d(t,{Iw:function(){return u},w1:function(){return s},PE:function(){return c}});var r=n(2265),o=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),l=new Map,a=(0,r.createContext)({direction:"ltr",locale:"en-US"});function s(e){return!function(e){var t=l.get(e);if(t)return t;var n=!1;if(Intl.Locale){var r=new Intl.Locale(e).maximize().script;n=o.has(r)}else{var a=e.split("-")[0];n=i.has(a)}return l.set(e,n),n}(e)?"ltr":"rtl"}function u(e){var t=e.direction,n=e.locale,o=e.children;return t||n?r.createElement(a.Provider,{children:o,value:{direction:n?s(n):t,locale:n}}):o}function c(){return(0,r.useContext)(a)}},542:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(2265),o=n(2050);function i(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.Z)(...t),[...t])}},5158:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(2319),o=n(2265),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function l(e){var t,n;return e.pointerEvents,e.style,t=()=>e=>{null!=e&&(e.measure=t=>r.Z.measure(e,t),e.measureLayout=(t,n,o)=>r.Z.measureLayout(e,t,o,n),e.measureInWindow=t=>r.Z.measureInWindow(e,t))},(n=o.useRef(i)).current===i&&(n.current=t()),n.current}},4834:function(e,t,n){n.d(t,{Z:function(){return B}});var r=n(2265),o=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()},i=()=>{},l={},a=[];function s(e){return e>20?e%20:e}function u(e,t){var n,r,u,c=!1,d=e.changedTouches,f=e.type,p=!0===e.metaKey,h=!0===e.shiftKey,m=d&&d[0].force||0,v=s(d&&d[0].identifier||0),g=d&&d[0].clientX||e.clientX,b=d&&d[0].clientY||e.clientY,y=d&&d[0].pageX||e.pageX,S=d&&d[0].pageY||e.pageY,E="function"==typeof e.preventDefault?e.preventDefault.bind(e):i,R=e.timeStamp;function w(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:s(e.identifier),get locationX(){return C(e.clientX)},get locationY(){return O(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:R}))}if(null!=d)r=w(d),u=w(e.touches);else{var x=[{force:m,identifier:v,get locationX(){return C(g)},get locationY(){return O(b)},pageX:y,pageY:S,target:e.target,timestamp:R}];r=x,u="mouseup"===f||"dragstart"===f?a:x}var T={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:l,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>c,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:p,shiftKey:h,changedTouches:r,force:m,identifier:v,get locationX(){return C(g)},get locationY(){return O(b)},pageX:y,pageY:S,target:e.target,timestamp:R,touches:u,type:f},persist:i,preventDefault:E,stopPropagation(){c=!0},target:e.target,timeStamp:R,touchHistory:t.touchHistory};function C(e){if(n=n||o(T.currentTarget))return e-n.left}function O(e){if(n=n||o(T.currentTarget))return e-n.top}return T}function c(e){return"touchstart"===e||"mousedown"===e}function d(e){return"touchmove"===e||"mousemove"===e}function f(e){return"touchend"===e||"mouseup"===e||p(e)}function p(e){return"touchcancel"===e||"dragstart"===e}var h="__reactResponderId";function m(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function v(e){return e.timeStamp||e.timestamp}function g(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function b(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:v(e)})}function y(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}class S{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(d(e))t.changedTouches.forEach(e=>{var t;(t=n.touchBank[g(e)])?(t.touchActive=!0,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=v(e),n.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+b(e)+"\n","Touch Bank: "+y(n))});else if(c(e))t.changedTouches.forEach(e=>{var t,r,o,i;return t=e,r=n,o=g(t),void((i=r.touchBank[o])?(i.touchActive=!0,i.startPageX=t.pageX,i.startPageY=t.pageY,i.startTimeStamp=v(t),i.currentPageX=t.pageX,i.currentPageY=t.pageY,i.currentTimeStamp=v(t),i.previousPageX=t.pageX,i.previousPageY=t.pageY,i.previousTimeStamp=v(t)):r.touchBank[o]={touchActive:!0,startPageX:t.pageX,startPageY:t.pageY,startTimeStamp:v(t),currentPageX:t.pageX,currentPageY:t.pageY,currentTimeStamp:v(t),previousPageX:t.pageX,previousPageY:t.pageY,previousTimeStamp:v(t)},r.mostRecentTimeStamp=v(t))}),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(f(e)&&(t.changedTouches.forEach(e=>{var t;(t=n.touchBank[g(e)])?(t.touchActive=!1,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=v(e),n.mostRecentTimeStamp=v(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+b(e)+"\n","Touch Bank: "+y(n))}),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,o=0;o1)&&(k=!1),("mousedown"!==s||!k)&&("mousemove"!==s||!k)&&("mousemove"!==s||!(P<1))){if(k&&"mouseup"===s){0===P&&(k=!1);return}var g=c(s)&&(t=e.altKey,n=e.button,r=e.buttons,o=e.ctrlKey,i=e.type,l=!1===t&&!1===o,"touchstart"===i||"touchmove"===i||"mousedown"===i&&(0===n||1===r)&&!!l||"mousemove"===i&&1===r&&!!l),b=d(s),y=f(s),S="scroll"===s,E="select"===s||"selectionchange"===s,R=u(e,A);(g||b||y)&&(e.touches?P=e.touches.length:g?P=1:y&&(P=0),A.recordTouchTrack(s,R.nativeEvent));var w=function(e){for(var t=[],n=[],r="selectionchange"===e.type?m(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():m(e.target),o=0;o0){var O=_.idPath,I=w.idPath;if(null!=O&&null!=I){var D=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var o=e[0],i=0,l=t[0],a=0;n-r>0&&(o=e[i=n-r],n=r),r-n>0&&(l=t[a=r-n],r=n);for(var s=n;s--;){if(o===l)return o;o=e[i++],l=t[a++]}return null}(O,I);if(null!=D){var M=I.indexOf(D)+(D===_.id?1:0);w={idPath:I.slice(M),nodePath:w.nodePath.slice(M)}}else w=null}null!=w&&null!=(a=function(e,t,n){var r=T[t.type];if(null!=r){for(var o=e.idPath,i=e.nodePath,l=r[0],a=r[1],s=r[2].bubbles,u=function(e,t,r){var i=N(e)[r];if(null!=i&&(n.currentTarget=t,!0===i(n))){var l=o.slice(o.indexOf(e));return{id:e,node:t,idPath:l}}},c=o.length-1;c>=0;c--){var d=u(o[c],i[c],l);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(s)for(var f=0;f=1&&"\n"!==n&&i}return"select"===e.type}(e),G=y&&!U&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;nH++,null==(o=r.useRef(null)).current&&(o.current=n()),o.current),l=r.useRef(!1);r.useEffect(()=>(E.Z&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",I),M.forEach(e=>{document.addEventListener(e,I)}),D.forEach(e=>{document.addEventListener(e,I,!0)}),window.__reactResponderSystemActive=!0),()=>{L(i)}),[i]),r.useEffect(()=>{var n,r=t,o=r.onMoveShouldSetResponder,a=r.onMoveShouldSetResponderCapture,s=r.onScrollShouldSetResponder,u=r.onScrollShouldSetResponderCapture,c=r.onSelectionChangeShouldSetResponder,d=r.onSelectionChangeShouldSetResponderCapture,f=r.onStartShouldSetResponder,p=r.onStartShouldSetResponderCapture,m=e.current;null!=o||null!=a||null!=s||null!=u||null!=c||null!=d||null!=f||null!=p?(n=t,null!=m&&(m[h]=i),O.set(i,n),l.current=!0):l.current&&(L(i),l.current=!1)},[t,e,i]),r.useDebugValue({isResponder:e.current===_.node}),r.useDebugValue(t)}},131:function(e,t,n){n.d(t,{O:function(){return r}});function r(e,t){}},8650:function(e,t){t.D=void 0;var n=new WeakMap;function r(e){var t,r,o;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,o=e.transform),function(){for(var e=[],i="",l=null,a=t?null:n,s=Array(arguments.length),u=0;u0;){var c=s.pop();if(null!=c&&!1!==c){if(Array.isArray(c)){for(var d=0;d=0||(o[n]=e[n]);return o}},3370:function(e,t,n){n.d(t,{Tr:function(){return d},fG:function(){return s},pV:function(){return c}});var r=n(281),o=n(3974),i=n(1308),l=n(2265),a=n(2281);let s=(0,l.createContext)(null),u=e=>{let t=(0,l.useContext)(s);if(!t?.Contents)throw Error("tamagui.dev/docs/intro/errors#warning-002");return(0,l.createElement)(t.Contents,e)};u.shouldForwardSpace=!0;let c=({Contents:e})=>{let[t,n]=(0,l.useState)(null);return{AdaptProvider:(0,l.useMemo)(()=>{let t={Contents:e,setWhen:n};return function(e){return(0,a.jsx)(s.Provider,{value:t,children:e.children})}},[e]),when:t}},d=(0,i.$e)(function({platform:e,when:t,children:n}){let i=(0,l.useContext)(s),a=(0,o.useMedia)(),u=!e;return"touch"===e&&(u=r.wT),"native"===e&&(u=!r.$L),"web"===e&&(u=r.$L),"ios"===e&&(u=r.s),"android"===e&&(u=r.Dt),t&&!a[t]&&(u=!1),(0,r.LI)(()=>{u&&i?.setWhen(t||u)},[t,i,u]),u?n:null},{Contents:u})},9085:function(e,t,n){n.d(t,{M:function(){return p}});var r=n(2265);let o=typeof window>"u",i=()=>{},l=(0,r.createContext)({});var a=n(3020),s=n(5390),u=n(2281);let c=r.memo(({children:e,initial:t,isPresent:n,onExitComplete:o,exitVariant:i,enterVariant:l,enterExitVariant:c,presenceAffectsLayout:f,custom:p})=>{let h=(0,a.h)(d),m=(0,r.useId)()||"",v=r.useMemo(()=>({id:m,initial:t,isPresent:n,custom:p,exitVariant:i,enterVariant:l,enterExitVariant:c,onExitComplete:()=>{for(let e of(h.set(m,!0),h.values()))if(!e)return;o?.()},register:()=>(h.set(m,!1),()=>h.delete(m))}),f?void 0:[n,i,l]);return r.useMemo(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),r.useEffect(()=>{n||h.size||o?.()},[n]),(0,u.jsx)(s.Oy.Provider,{value:v,children:e})});function d(){return new Map}let f=e=>e.key||"",p=({children:e,enterVariant:t,exitVariant:n,enterExitVariant:a,initial:s=!0,onExitComplete:d,exitBeforeEnter:p,presenceAffectsLayout:h=!0,custom:m})=>{let v=(0,r.useContext)(l).forceRender??(o?i:(0,r.useReducer)(e=>Math.random(),0)[1]),g=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),b=(0,r.useRef)(g),y=(0,r.useRef)(new Map).current,S=(0,r.useRef)(new Set).current;!function(e,t){e.forEach(e=>{let n=f(e);t.set(n,e)})}(g,y);let E=(0,r.useRef)(!0);if(E.current)return E.current=!1,(0,u.jsx)(u.Fragment,{children:g.map(e=>(0,u.jsx)(c,{isPresent:!0,enterExitVariant:a,exitVariant:n,enterVariant:t,initial:!!s&&void 0,presenceAffectsLayout:h,custom:m,children:e},f(e)))});let R=[...g],w=b.current.map(f),x=g.map(f),T=w.length;for(let e=0;e{if(-1!==x.indexOf(e))return;let r=y.get(e);if(!r)return;let o=w.indexOf(e),i=(0,u.jsx)(c,{isPresent:!1,onExitComplete:()=>{y.delete(e),S.delete(e);let t=b.current.findIndex(t=>t.key===e);b.current.splice(t,1),S.size||(b.current=g,v(),d?.())},presenceAffectsLayout:h,enterExitVariant:a,enterVariant:t,exitVariant:n,custom:m,children:r},f(r));R.splice(o,0,i)}),R=R.map(e=>{let r=e.key;return S.has(r)?e:(0,u.jsx)(c,{isPresent:!0,exitVariant:n,enterVariant:t,enterExitVariant:a,presenceAffectsLayout:h,custom:m,children:e},f(e))}),b.current=R,(0,u.jsx)(u.Fragment,{children:S.size?R:R.map(e=>(0,r.cloneElement)(e))})};p.displayName="AnimatePresence"},3187:function(e,t,n){n.d(t,{zx:function(){return y}});var r=n(3924),o=n(8306),i=n(1308),l=n(1676),a=n(1092),s=n(2265);let u=(0,s.createContext)(!1);var c=n(2026),d=n(2875),f=n(1013),p=n(2281),h=n(357);let m=(0,f.createStyledContext)({color:void 0,ellipse:void 0,fontFamily:void 0,fontSize:void 0,fontStyle:void 0,fontWeight:void 0,letterSpacing:void 0,maxFontSizeMultiplier:void 0,size:void 0,textAlign:void 0,variant:void 0}),v=(0,f.styled)(a.K,{name:"Button",tag:"button",context:m,role:"button",focusable:!0,variants:{unstyled:{false:{size:"$true",justifyContent:"center",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",cursor:"pointer",hoverTheme:!0,pressTheme:!0,backgrounded:!0,borderWidth:1,borderColor:"transparent",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},variant:{outlined:{backgroundColor:"transparent",borderWidth:2,borderColor:"$borderColor",hoverStyle:{backgroundColor:"transparent",borderColor:"$borderColorHover"},pressStyle:{backgroundColor:"transparent",borderColor:"$borderColorPress"},focusVisibleStyle:{backgroundColor:"transparent",borderColor:"$borderColorFocus"}}},size:{"...size":o.f,":number":o.f},disabled:{true:{pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===h.env.TAMAGUI_HEADLESS}}),g=(0,f.styled)(c.J,{name:"Button",context:m,variants:{unstyled:{false:{userSelect:"none",cursor:"pointer",flexGrow:0,flexShrink:1,ellipse:!0,color:"$color"}}},defaultVariants:{unstyled:"1"===h.env.TAMAGUI_HEADLESS}}),b=v.styleable(function(e,t){let{props:n}=function({textProps:e,...t},{Text:n=y.Text}={Text:y.Text}){let o=(0,s.useContext)(u),i=(0,f.useProps)(t,{noNormalize:!0,noExpand:!0}),{icon:a,iconAfter:c,space:m,spaceFlex:v,scaleIcon:b=1,scaleSpace:S=.66,separator:E,noTextWrap:R,fontFamily:w,fontSize:x,fontWeight:T,fontStyle:C,letterSpacing:O,tag:k,ellipse:P,maxFontSizeMultiplier:_,...A}=i,N=i.size||(i.unstyled?void 0:"$true"),I=i.color,D=("number"==typeof N?.5*N:(0,r.yv)(N,{font:w?.[0]==="$"?w:void 0}))*b,[M,L]=[a,c].map((0,l.Zw)({size:D,color:I})),j=m??(0,f.getVariableValue)(D)*S,H=R?[t.children]:(0,d.k)(n,{children:t.children,fontFamily:w,fontSize:x,textProps:e,fontWeight:T,fontStyle:C,letterSpacing:O,ellipse:P,maxFontSizeMultiplier:_},n===g&&!0!==i.unstyled?{unstyled:"1"===h.env.TAMAGUI_HEADLESS,size:N}:void 0),B=(0,f.spacedChildren)({space:j,spaceFlex:v,separator:E,direction:"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal",children:[M,...H,L]}),z={size:N,...t.disabled&&{focusable:void 0,focusVisibleStyle:{borderColor:"$background"}},tag:k??(o?"span":"link"===i.accessibilityRole||"link"===i.role?"a":"button"),...A,children:(0,p.jsx)(u.Provider,{value:!0,children:B}),disableClassName:!0};return{spaceSize:j,isNested:o,props:z}}(e);return(0,p.jsx)(v,{...n,ref:t})}),y=(0,i.$e)(b,{Text:g,Icon:e=>{let{children:t,scaleIcon:n=1}=e,{size:o,color:i}=(0,s.useContext)(m),a=("number"==typeof o?.5*o:(0,r.yv)(o))*n;return(0,l.Zw)({size:a,color:i})(t)}})},9046:function(e,t,n){n.d(t,{FE:function(){return o},ex:function(){return i}});var r=n(2265);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}function i(...e){return r.useCallback(o(...e),e)}},301:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(2265),o=n(2281);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,u=n?.[e]?.[a]||l,c=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:i})}return n=[...n,i],s.displayName=`${t}Provider`,[s,function(n,o,s){let u=o?.[e]?.[a]||l,c=r.useContext(u);if(c)return c;if(void 0!==i)return i;let d=`\`${n}\` must be used within \`${t}\``;if(s?.fallback)return s?.warn!==!1&&console.warn(d),s.fallback;throw Error(d)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},3924:function(e,t,n){n.d(t,{yv:function(){return o}});var r=n(3974);let o=(e,t)=>{let n=i(e,t);return(0,r.isVariable)(n)?+n.val:n?+n:16},i=(e,t)=>{let n=l(e,t);return n?(0,r.getConfig)().fontsParsed[t?.font||"$body"].size[n]:e},l=(e,t)=>{if("number"==typeof e)return null;let n=t?.relativeSize||0,o=(0,r.getConfig)().fontsParsed[t?.font||"$body"].size,i=("$true"!==e||"$true"in o?e:"$4")??("$true"in o?"$true":"$4"),l=Object.keys(o),a=l.indexOf(i);-1===a&&i.endsWith(".5")&&(a=l.indexOf(i.replace(".5","")));let s=Math.min(Math.max(0,a+n),l.length-1);return l[s]??i}},8306:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(6748);let o=(e,{tokens:t,props:n})=>{if(!e||n.circular)return;if("number"==typeof e)return{paddingHorizontal:.25*e,height:e,borderRadius:n.circular?1e5:.2*e};let o=(0,r.Pj)(e),i=t.radius[e]??t.radius.$true;return{paddingHorizontal:o,height:e,borderRadius:n.circular?1e5:i}}},8970:function(e,t,n){n.d(t,{H:function(){return o}});var r=n(3974);let o=(e="$true",{font:t,fontFamily:n,props:o})=>{if(!t)return;let l="$true"===e?function(e){if("object"==typeof e&&i.has(e))return i.get(e);let t="$true"in e.size?e.size:(0,r.getTokens)().size,n=t.$true,o=n?Object.keys(t).find(e=>"$true"!==e&&t[e].val===n.val):null;return n&&o?(i.set(e,o),o):Object.keys(e.size)[3]}(t):e,a=t.size[l],s=t.lineHeight?.[l],u=t.weight?.[l],c=t.letterSpacing?.[l],d=t.transform?.[l],f=o.fontStyle??t.style?.[l];return{color:o.color??t.color?.[l],fontStyle:f,textTransform:d,fontFamily:n,fontWeight:u,letterSpacing:c,fontSize:a,lineHeight:s}},i=new WeakMap},6748:function(e,t,n){n.d(t,{Pj:function(){return l},ap:function(){return i}});var r=n(1013);let o={shift:0,bounds:[0]},i=(e,t)=>d("size",e,t),l=(e,t)=>d("space",e,t),a={},s={},u={},c={},d=(e,t,n=o)=>{let i=(0,r.getTokens)({prefixed:!0})[e];if(!(e in a)){u[e]=[],a[e]=[],c[e]=[],s[e]=[];let t=Object.keys(i).map(e=>i[e]).sort((e,t)=>e.val-t.val);for(let n of t)u[e].push(n.key),a[e].push(n);for(let n of t.filter(e=>!e.key.endsWith(".5")))c[e].push(n.key),s[e].push(n)}let l="string"==typeof t,d=(n.excludeHalfSteps?l?c:s:l?u:a)[e],f=n.bounds?.[0]??0,p=n.bounds?.[1]??d.length-1,h=d.indexOf(t),m=n.shift||0;m&&("$true"===t||(0,r.isVariable)(t)&&"true"===t.name)&&(m+=m>0?1:-1);let v=d[Math.min(p,Math.max(f,h+m))];return("string"==typeof v?i[v]:v)||i.$true}},1676:function(e,t,n){n.d(t,{Zw:function(){return l}}),n(1308);var r=n(2265),o=n(1013);let i=e=>{let t=(0,o.useTheme)();return(0,o.getVariable)(e||t[e]?.get("web")||t.color?.get("web"))},l=e=>{let t=i(e.color);return n=>n&&((0,r.isValidElement)(n)?(0,r.cloneElement)(n,{...e,color:t,...n.props}):(0,r.createElement)(n,e))}},1308:function(e,t,n){function r(e,t,{checkDefaultPrevented:n=!0}={}){return e&&t?r=>{if(e?.(r),!r||!(n&&"defaultPrevented"in r)||"defaultPrevented"in r&&!r.defaultPrevented)return t?.(r)}:t||e||void 0}n.d(t,{Mj:function(){return r},$e:function(){return s}});var o=n(281);let i={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0},zIndex:{zIndex:!0},color:{backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0,color:!0,textDecorationColor:!0,textShadowColor:!0,outlineColor:!0}};i.color,i.radius,i.size,i.radius,o.Dt;var l=n(2265);let a=Symbol(),s=(e,t)=>{let n=(()=>{if(e[a]){let t=(0,l.forwardRef)((t,n)=>(0,l.createElement)(e,{...t,ref:n}));for(let n in e){let r=e[n];t[n]=r&&"object"==typeof r?{...r}:r}}return e})();return Object.assign(n,t),n[a]=!0,n}},4397:function(e,t,n){n.d(t,{o:function(){return m}});var r=n(3974),o=n(5377),i=n(2281),l=n(2265),a=n(1840),s=n(2206),u=n(5275);let c=e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var(");function d(e){let{colors:t,locations:n,startPoint:r,endPoint:o,...a}=e,[{height:d,width:f},p]=l.useState({height:1,width:1}),h=l.useMemo(()=>(function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=e.map((e,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(null==e)return;if("string"==typeof e&&c(e))return e;let n=(0,s.Z)(e);if(null!=n){let e=((n>>24&255)/255*t).toFixed(2);return"rgba(".concat(n>>16&255,",").concat(n>>8&255,",").concat(255&n,",").concat(e,")")}}(e);if(t&&t[n]){let e=Math.max(0,Math.min(1,t[n]));return"".concat(r," ").concat(100*e,"%")}return r}),a=function(e,t,n,r){let o,i;let[l,a]=(o=[0,0],Array.isArray(n)&&(o=[null!=n[0]?n[0]:0,null!=n[1]?n[1]:0]),i=[0,1],Array.isArray(r)&&(i=[null!=r[0]?r[0]:0,null!=r[1]?r[1]:1]),[o,i]);return l[0]*=e,a[0]*=e,l[1]*=t,a[1]*=t,90+180*Math.atan2(a[1]-l[1],a[0]-l[0])/Math.PI}(o,i,n,r);return"linear-gradient(".concat(a,"deg, ").concat(l.join(", "),")")})(t,n,r,o,f,d),[t,n,r,o,f,d]);return(0,i.jsx)(u.Z,{...a,style:[a.style,{backgroundImage:h}],onLayout:e=>{let{width:t,height:n}=e.nativeEvent.layout;p(e=>t!==e.width||n!==e.height?{height:n,width:t}:e),a.onLayout&&a.onLayout(e)}})}class f extends l.Component{render(){let{colors:e,locations:t,start:n,end:r,...o}=this.props,l=t;return t&&e.length!==t.length&&(console.warn("LinearGradient colors and locations props should be arrays of the same length"),l=t.slice(0,e.length)),(0,i.jsx)(d,{...o,colors:a.Z.select({web:e,default:e.map(s.Z)}),locations:l,startPoint:p(n),endPoint:p(r)})}}function p(e){if(e){if(Array.isArray(e)&&2!==e.length){console.warn("start and end props for LinearGradient must be of the format [x,y] or {x, y}");return}return Array.isArray(e)?e:[e.x,e.y]}}let h=(0,r.styled)(o.FA,{name:"LinearGradient",overflow:"hidden",position:"relative"}),m=h.styleable((e,t)=>{let n=(0,r.useProps)(e),{start:o,end:l,colors:a,locations:s,children:u,...c}=n,d=(0,r.useTheme)(),p=n.colors?.map(e=>d[e]?.get("web")??e)||[];return(0,i.jsxs)(h,{ref:t,...c,children:[(0,i.jsx)(f,{start:o,end:l,colors:p,locations:s,style:v}),u]})}),v={position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}},663:function(e,t,n){n.d(t,{Ex:function(){return w}});var r=n(3974),o=n(301),i=n(6748),l=n(1308),a=n(1092),s=n(2265),u=n(2281),c=n(357);let d="Progress",[f,p]=(0,o.b)(d),[h,m]=f(d),v="ProgressIndicator",g=(0,r.styled)(a.K,{name:v,variants:{unstyled:{false:{height:"100%",width:"100%",backgrounded:!0}}},defaultVariants:{unstyled:"1"===c.env.TAMAGUI_HEADLESS}}),b=g.styleable(function(e,t){let{__scopeProgress:n,...r}=e,o=m(v,n),i=o.max-(o.value??0),l=-(0===o.width?300:o.width)*(i/100);return(0,u.jsx)(g,{"data-state":S(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,x:l,width:o.width,...!e.unstyled&&{animateOnly:["transform"],opacity:0===o.width?0:1},...r,ref:t})});function y(e,t){return`${Math.round(e/t*100)}%`}function S(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function E(e){return"number"==typeof e}let R=(0,r.styled)(a.K,{name:"Progress",variants:{unstyled:{false:{borderRadius:1e5,overflow:"hidden",backgrounded:!0}},size:{"...size":e=>{let t=Math.round(.25*(0,r.getVariableValue)((0,i.ap)(e)));return{height:t,minWidth:20*(0,r.getVariableValue)(t),width:"100%"}}}},defaultVariants:{unstyled:"1"===c.env.TAMAGUI_HEADLESS}}),w=(0,l.$e)(R.styleable(function(e,t){let{__scopeProgress:n,value:r,max:o,getValueLabel:i=y,size:l="$true",...a}=e,c=E(o)&&!Number.isNaN(o)&&o>0?o:100,d=E(r)&&!Number.isNaN(r)&&r<=c&&r>=0?r:null,f=E(d)?i(d,c):void 0,[p,m]=s.useState(0);return(0,u.jsx)(h,{scope:n,value:d,max:c,width:p,children:(0,u.jsx)(R,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":E(d)?d:void 0,"aria-valuetext":f,role:"progressbar","data-state":S(d,c),"data-value":d??void 0,"data-max":c,...!0!==a.unstyled&&{size:l},...a,onLayout:e=>{m(e.nativeEvent.layout.width),a.onLayout?.(e)},ref:t})})}),{Indicator:b})},9298:function(e,t,n){let r,o;n.d(t,{Ph:function(){return rv}});var i=n(3370),l=n(9046),a=n(281),s=n(3974),u=n(6748),c=n(1308),d=n(3924),f=n(8970),p=n(1676),h=n(1092),m=n(5377),v=n(2026),g=n(2875),b=n(1013),y=n(2281),S=n(357);let E=(0,b.styled)(h.K,{name:"ListItem",tag:"li",variants:{unstyled:{false:{size:"$true",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",width:"100%",borderColor:"$borderColor",maxWidth:"100%",overflow:"hidden",flexDirection:"row",backgroundColor:"$background"}},size:{"...size":(e,{tokens:t})=>({minHeight:t.size[e],paddingHorizontal:t.space[e],paddingVertical:(0,u.Pj)(t.space[e],{shift:-4})})},active:{true:{hoverStyle:{backgroundColor:"$background"}}},disabled:{true:{opacity:.5,pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===S.env.TAMAGUI_HEADLESS}}),R=(0,b.styled)(v.J,{name:"ListItemText",variants:{unstyled:{false:{color:"$color",size:"$true",flexGrow:1,flexShrink:1,ellipse:!0,cursor:"default"}}},defaultVariants:{unstyled:"1"===S.env.TAMAGUI_HEADLESS}}),w=(0,b.styled)(R,{name:"ListItemSubtitle",variants:{unstyled:{false:{opacity:.6,maxWidth:"100%",color:"$color"}},size:{"...size":(e,t)=>{let n=(0,u.ap)(e,{shift:-1,excludeHalfSteps:!0});return(0,f.H)(n.key,t)}}},defaultVariants:{unstyled:"1"===S.env.TAMAGUI_HEADLESS}}),x=(0,b.styled)(R,{name:"ListItemTitle"}),T=(e,{Text:t=R,Subtitle:n=w,Title:r=x}={Text:R,Subtitle:w,Title:x})=>{let o=(0,b.useProps)(e),{children:i,icon:l,iconAfter:a,noTextWrap:s,theme:u,space:c,spaceFlex:f,scaleIcon:h=1,scaleSpace:v=1,unstyled:S=!1,subTitle:E,title:T,color:C,fontWeight:O,fontSize:k,fontFamily:P,letterSpacing:_,textAlign:A,ellipse:N,...I}=o,D=o.size||"$true",M=(0,d.yv)(D)*h,[L,j]=[l,a].map((0,p.Zw)({size:M,color:C})),H=(0,b.getVariableValue)((0,b.getTokens)().space[o.space]??M)*v,B=(0,g.k)(t,{color:C,fontWeight:O,fontSize:k,fontFamily:P,letterSpacing:_,textAlign:A,ellipse:N,children:i});return{props:{...I,children:(0,y.jsxs)(y.Fragment,{children:[L?(0,y.jsxs)(y.Fragment,{children:[L,(0,y.jsx)(b.Spacer,{size:H})]}):null,T||E?(0,y.jsxs)(m.FA,{flex:1,children:["all"===s?T:(0,y.jsx)(r,{size:D,children:T}),E?(0,y.jsx)(y.Fragment,{children:"string"==typeof E&&"all"!==s?(0,y.jsx)(n,{unstyled:S,size:D,children:E}):E}):null,B]}):B,j?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(b.Spacer,{size:H}),j]}):null]})}}},C=E.styleable(function(e,t){let{props:n}=T(e);return(0,y.jsx)(E,{ref:t,...n})}),O=(0,c.$e)(C,{Text:R,Subtitle:w});var k=n(4624),P=n(6505),_=n(2265),A=n.t(_,2),N=n(7657);let I=({children:e,onOpenChange:t,...n})=>{let r=(0,s.useEvent)(t),o=(0,_.useMemo)(()=>({open:n.open,hidden:n.hidden,disableDrag:n.disableDrag,onOpenChange:r}),[r,n.open,n.hidden,n.disableDrag]);return(0,y.jsx)(N.W.Provider,{value:o,children:e})};var D=n(8220),M=n(1217),L=n(3277);let j={leading:!1},H="Select",B="SelectViewport";var z=n(301);let[W,V]=(0,z.b)(H),[F,$]=W(H),[Z,U]=(0,z.b)(H),[G,Y]=W(H),K=({__scopeSelect:e,context:t,itemContext:n,children:r})=>(0,y.jsx)(F,{isInSheet:!0,scope:e,...t,children:(0,y.jsx)(G,{scope:e,...n,children:r})});function X(e){return Q(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function J(e){var t;return null==(t=(Q(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Q(e){return e instanceof Node||e instanceof q(e).Node}function ee(e){return e instanceof Element||e instanceof q(e).Element}function et(e){return e instanceof HTMLElement||e instanceof q(e).HTMLElement}function en(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof q(e).ShadowRoot)}function er(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function eo(e){let t=ei(),n=ea(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 ei(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function el(e){return["html","body","#document"].includes(X(e))}function ea(e){return q(e).getComputedStyle(e)}function es(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eu(e){if("html"===X(e))return e;let t=e.assignedSlot||e.parentNode||en(e)&&e.host||J(e);return en(t)?t.host:t}function ec(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eu(t);return el(n)?t.ownerDocument?t.ownerDocument.body:t.body:et(n)&&er(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=q(o);return i?t.concat(l,l.visualViewport||[],er(o)?o:[],l.frameElement&&n?ec(l.frameElement):[]):t.concat(o,ec(o,[],n))}function ed(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ef(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&en(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ep(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function eh(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function em(e){return 0===e.mozInputSource&&!!e.isTrusted||(eb()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function ev(e){return!eh().includes("jsdom/")&&(!eb()&&0===e.width&&0===e.height||eb()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function eg(){return/apple/i.test(navigator.vendor)}function eb(){let e=/android/i;return e.test(ep())||e.test(eh())}function ey(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function eS(e){return(null==e?void 0:e.ownerDocument)||document}function eE(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function eR(e){return"composedPath"in e?e.composedPath()[0]:e.target}function ew(e){return et(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function ex(e){e.preventDefault(),e.stopPropagation()}function eT(e){return!!e&&"combobox"===e.getAttribute("role")&&ew(e)}let eC=Math.min,eO=Math.max,ek=Math.round,eP=Math.floor,e_=e=>({x:e,y:e});function eA(e,t){return"function"==typeof e?e(t):e}function eN(e){return e.split("-")[0]}function eI(e){return e.split("-")[1]}function eD(e){return["top","bottom"].includes(eN(e))?"y":"x"}function eM(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function eL(e,t,n){let r,{reference:o,floating:i}=e,l=eD(t),a="x"===eD(t)?"y":"x",s="y"===a?"height":"width",u=eN(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(eI(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}let ej=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=eL(u,r,s),f=r,p={},h=0;for(let n=0;n{try{return e.matches(t)}catch(e){return!1}})}function eK(e){return eU(J(e)).left+es(e).scrollLeft}function eX(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=q(e),r=J(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=ei();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=J(e),n=es(e),r=e.ownerDocument.body,o=eO(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=eO(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eK(e),a=-n.scrollTop;return"rtl"===ea(r).direction&&(l+=eO(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(J(e));else if(ee(t))r=function(e,t){let n=eU(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=et(e)?eF(e):e_(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=eZ(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return eM(r)}function eq(e,t){return et(e)&&"fixed"!==ea(e).position?t?t(e):e.offsetParent:null}function eJ(e,t){let n=q(e);if(!et(e)||eY(e))return n;let r=eq(e,t);for(;r&&["table","td","th"].includes(X(r))&&"static"===ea(r).position;)r=eq(r,t);return r&&("html"===X(r)||"body"===X(r)&&"static"===ea(r).position&&!eo(r))?n:r||function(e){let t=eu(e);for(;et(t)&&!el(t);){if(eo(t))return t;t=eu(t)}return null}(e)||n}let eQ=async function(e){let t=this.getOffsetParent||eJ,n=this.getDimensions;return{reference:function(e,t,n){let r=et(t),o=J(t),i="fixed"===n,l=eU(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=e_(0);if(r||!r&&!i){if(("body"!==X(t)||er(o))&&(a=es(t)),r){let e=eU(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eK(o))}return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},e0={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=J(r),a=!!t&&eY(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},u=e_(1),c=e_(0),d=et(r);if((d||!d&&!i)&&(("body"!==X(r)||er(l))&&(s=es(r)),et(r))){let e=eU(r);u=eF(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:J,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=ec(e,[],!1).filter(e=>ee(e)&&"body"!==X(e)),o=null,i="fixed"===ea(e).position,l=i?eu(e):e;for(;ee(l)&&!el(l);){let t=ea(l),n=eo(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||er(l)&&!n&&function e(t,n){let r=eu(t);return!(r===n||!ee(r)||el(r))&&("fixed"===ea(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=eu(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eX(t,n,o);return e.top=eO(r.top,e.top),e.right=eC(r.right,e.right),e.bottom=eC(r.bottom,e.bottom),e.left=eO(r.left,e.left),e},eX(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eJ,getElementRects:eQ,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eW(e);return{width:t,height:n}},getScale:eF,isElement:ee,isRTL:function(e){return"rtl"===ea(e).direction}};function e1(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eV(e),d=i||l?[...c?ec(c):[],...ec(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=c&&s?function(e,t){let n,r=null,o=J(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;let p=eP(c),h=eP(o.clientWidth-(u+d)),m={rootMargin:-p+"px "+-h+"px "+-eP(o.clientHeight-(c+f))+"px "+-eP(u)+"px",threshold:eO(0,eC(1,s))||1},v=!0;function g(e){let t=e[0].intersectionRatio;if(t!==s){if(!v)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},100)}v=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),h.observe(t));let m=u?eU(e):null;return u&&function t(){let r=eU(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}}let e2=(e,t,n)=>{let r=new Map,o={platform:e0,...n},i={...o.platform,_c:r};return ej(e,t,{...o,platform:i})};var e5=n(4887),e3="undefined"!=typeof document?_.useLayoutEffect:_.useEffect;function e4(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!e4(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!e4(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e7(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e6(e,t){let n=e7(e);return Math.round(t*n)/n}function e8(e){let t=_.useRef(e);return e3(()=>{t.current=e}),t}var e9='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',te="undefined"==typeof Element,tt=te?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tn=!te&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},tr=function e(t,n){void 0===n&&(n=!0);var r,o=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},to=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},ti=function(e,t,n){if(tr(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(e9));return t&&tt.call(e,e9)&&r.unshift(e),r=r.filter(n)},tl=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var l=i.shift();if(!tr(l,!1)){if("SLOT"===l.tagName){var a=l.assignedElements(),s=e(a.length?a:l.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:l,candidates:s})}else{tt.call(l,e9)&&r.filter(l)&&(n||!t.includes(l))&&o.push(l);var u=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),c=!tr(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(u&&c){var d=e(!0===u?l.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:l,candidates:d})}else i.unshift.apply(i,l.children)}}}return o},ta=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ts=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||to(e))&&!ta(e)?0:e.tabIndex},tu=function(e,t){var n=ts(e);return n<0&&t&&!ta(e)?0:n},tc=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},td=function(e){return"INPUT"===e.tagName},tf=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(tt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return tm(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=tn(e);if(l&&!l.shadowRoot&&!0===r(l))return tm(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(th(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},tg=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;nts(t))&&(r=e,!((o=t).disabled||tr(o)||td(o)&&"hidden"===o.type||tv(o,r)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(e){return"SUMMARY"===e.tagName})||tg(o)))},ty=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},tS=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,l=i?t.scopeParent:t,a=tu(l,i),s=i?e(t.candidates):l;0===a?i?n.push.apply(n,s):n.push(l):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:s})}),r.sort(tc).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},tE=function(e,t){return tS((t=t||{}).getShadowRoot?tl([e],t.includeContainer,{filter:tb.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ty}):ti(e,t.includeContainer,tb.bind(null,t)))};let tR=A["useInsertionEffect".toString()]||(e=>e());function tw(e){let t=_.useRef(()=>{});return tR(()=>{t.current=e}),_.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r=e.current.length}function t_(e,t){return tN(e,{disabledIndices:t})}function tA(e,t){return tN(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function tN(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t,l=e.current,a=o?e=>o.includes(e):e=>{let t=l[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")},s=n;do s+=r?-i:i;while(s>=0&&s<=l.length-1&&a(s));return s}let tI=0;function tD(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(tI);let i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():tI=requestAnimationFrame(i)}var tM="undefined"!=typeof document?_.useLayoutEffect:_.useEffect;function tL(){return(tL=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+tH++,tz=A["useId".toString()]||function(){let[e,t]=_.useState(()=>tj?tB():void 0);return tM(()=>{null==e&&t(tB())},[]),_.useEffect(()=>{tj||(tj=!0)},[]),e},tW=_.createContext(null),tV=_.createContext(null),tF=()=>{var e;return(null==(e=_.useContext(tW))?void 0:e.id)||null},t$=()=>_.useContext(tV);function tZ(e){return"data-floating-ui-"+e}function tU(e){let t=(0,_.useRef)(e);return tM(()=>{t.current=e}),t}function tG(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let tY=new WeakMap,tK=new WeakSet,tX={},tq=0,tJ=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,tQ=e=>e&&(e.host||tQ(e.parentNode)),t0=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=tQ(t);return e.contains(n)?n:null}).filter(e=>null!=e);function t1(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);let r=eS(e[0]).body;return function(e,t,n,r){let o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=t0(t,e),a=new Set,s=new Set(l),u=[];tX[o]||(tX[o]=new WeakMap);let c=tX[o];return l.forEach(function e(t){!(!t||a.has(t))&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||s.has(t)||Array.prototype.forEach.call(t.children,t=>{if(a.has(t))e(t);else{let e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(tY.get(t)||0)+1,l=(c.get(t)||0)+1;tY.set(t,r),c.set(t,l),u.push(t),1===r&&n&&tK.add(t),1===l&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}})}(t),a.clear(),tq++,()=>{u.forEach(e=>{let t=(tY.get(e)||0)-1,n=(c.get(e)||0)-1;tY.set(e,t),c.set(e,n),t||(!tK.has(e)&&i&&e.removeAttribute(i),tK.delete(e)),n||e.removeAttribute(o)}),--tq||(tY=new WeakMap,tY=new WeakMap,tK=new WeakSet,tX={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}let t2=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function t5(e,t){let n=tE(e,t2());"prev"===t&&n.reverse();let r=n.indexOf(ed(eS(e)));return n.slice(r+1)[0]}function t3(){return t5(document.body,"next")}function t4(){return t5(document.body,"prev")}function t7(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!ef(n,r)}let t6={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function t8(e){"Tab"===e.key&&(e.target,clearTimeout(r))}let t9=_.forwardRef(function(e,t){let[n,r]=_.useState();tM(()=>(eg()&&r("button"),document.addEventListener("keydown",t8),()=>{document.removeEventListener("keydown",t8)}),[]);let o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[tZ("focus-guard")]:"",style:t6};return _.createElement("span",tL({},e,o))}),ne=_.createContext(null),nt=tZ("portal");function nn(e){let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=function(e){let{id:t,root:n}=void 0===e?{}:e,[r,o]=_.useState(null),i=tz(),l=nr(),a=_.useRef(null);return tM(()=>()=>{null==r||r.remove(),queueMicrotask(()=>{a.current=null})},[r]),tM(()=>{if(a.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=i,n.setAttribute(nt,""),e.appendChild(n),a.current=n,o(n)},[t,i]),tM(()=>{if(a.current)return;let e=n||(null==l?void 0:l.portalNode);e&&!ee(e)&&(e=e.current),e=e||document.body;let r=null;t&&((r=document.createElement("div")).id=t,e.appendChild(r));let s=document.createElement("div");s.id=i,s.setAttribute(nt,""),(e=r||e).appendChild(s),a.current=s,o(s)},[t,n,i,l]),r}({id:n,root:r}),[l,a]=_.useState(null),s=_.useRef(null),u=_.useRef(null),c=_.useRef(null),d=_.useRef(null),f=!!l&&!l.modal&&l.open&&o&&!!(r||i);return _.useEffect(()=>{if(i&&o&&(null==l||!l.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&t7(e)&&("focusin"===e.type?function(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}:function(e){tE(e,t2()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(i)}},[i,o,null==l?void 0:l.modal]),_.createElement(ne.Provider,{value:_.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&_.createElement(t9,{"data-type":"outside",ref:s,onFocus:e=>{if(t7(e,i)){var t;null==(t=c.current)||t.focus()}else{let e=t4()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),f&&i&&_.createElement("span",{"aria-owns":i.id,style:t6}),i&&(0,e5.createPortal)(t,i),f&&i&&_.createElement(t9,{"data-type":"outside",ref:u,onFocus:e=>{if(t7(e,i)){var t;null==(t=d.current)||t.focus()}else{let t=t3()||(null==l?void 0:l.refs.domReference.current);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent))}}}))}let nr=()=>_.useContext(ne),no=[];function ni(e){no=no.filter(e=>e.isConnected),e&&"body"!==X(e)&&(no.push(e),no.length>20&&(no=no.slice(-20)))}function nl(){return no.slice().reverse().find(e=>e.isConnected)}let na=_.forwardRef(function(e,t){return _.createElement("button",tL({},e,{type:"button",ref:t,tabIndex:-1,style:t6}))});function ns(e){let{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:l=0,returnFocus:a=!0,modal:s=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:c=!0}=e,{open:d,refs:f,nodeId:p,onOpenChange:h,events:m,dataRef:v,elements:{domReference:g,floating:b}}=t,y="number"==typeof l&&l<0,S=eT(g)&&y,E=!tJ()||i,R=tU(o),w=tU(l),x=tU(a),T=t$(),C=nr(),O=_.useRef(null),k=_.useRef(null),P=_.useRef(!1),A=_.useRef(!1),N=null!=C,I=_.useCallback(function(e){return void 0===e&&(e=b),e?tE(e,t2()):[]},[b]),D=_.useCallback(e=>{let t=I(e);return R.current.map(e=>g&&"reference"===e?g:b&&"floating"===e?b:t).filter(Boolean).flat()},[g,b,R,I]);function M(e){return!r&&u&&s?_.createElement(na,{ref:"start"===e?O:k,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}_.useEffect(()=>{if(r||!s)return;function e(e){if("Tab"===e.key){ef(b,ed(eS(b)))&&0===I().length&&!S&&ex(e);let t=D(),n=eR(e);"reference"===R.current[0]&&n===g&&(ex(e),e.shiftKey?tD(t[t.length-1]):tD(t[1])),"floating"===R.current[1]&&n===b&&e.shiftKey&&(ex(e),tD(t[0]))}}let t=eS(b);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,g,b,s,R,S,I,D]),_.useEffect(()=>{if(!r&&c&&b&&et(g))return g.addEventListener("focusout",t),g.addEventListener("pointerdown",e),s||b.addEventListener("focusout",t),()=>{g.removeEventListener("focusout",t),g.removeEventListener("pointerdown",e),s||b.removeEventListener("focusout",t)};function e(){A.current=!0,setTimeout(()=>{A.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!(ef(g,t)||ef(b,t)||ef(t,b)||ef(null==C?void 0:C.portalNode,t)||null!=t&&t.hasAttribute(tZ("focus-guard"))||T&&(tG(T.nodesRef.current,p).find(e=>{var n,r;return ef(null==(n=e.context)?void 0:n.elements.floating,t)||ef(null==(r=e.context)?void 0:r.elements.domReference,t)})||(function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r})(T.nodesRef.current,p).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));t&&n&&!A.current&&t!==nl()&&(P.current=!0,h(!1,e))})}},[r,g,b,s,p,T,C,h,c]),_.useEffect(()=>{var e;if(r)return;let t=Array.from((null==C||null==(e=C.portalNode)?void 0:e.querySelectorAll("["+tZ("portal")+"]"))||[]);if(b){let e=[b,...t,O.current,k.current,R.current.includes("reference")||S?g:null].filter(e=>null!=e),n=s||S?t1(e,E,!E):t1(e);return()=>{n()}}},[r,g,b,s,R,C,S,E]),tM(()=>{if(r||!b)return;let e=ed(eS(b));queueMicrotask(()=>{let t=D(b),n=w.current,r=("number"==typeof n?t[n]:n.current)||b,o=ef(b,e);y||o||!d||tD(r,{preventScroll:r===b})})},[r,d,b,y,D,w]),tM(()=>{if(r||!b)return;let e=!1,t=eS(b),n=ed(t),o=v.current;function i(t){let{reason:n,event:r,nested:o}=t;"escape-key"===n&&f.domReference.current&&ni(f.domReference.current),"hover"===n&&"mouseleave"===r.type&&(P.current=!0),"outside-press"===n&&(o?(P.current=!1,e=!0):P.current=!(em(r)||ev(r)))}return ni(n),m.on("openchange",i),()=>{m.off("openchange",i);let n=ed(t),r=ef(b,n)||T&&tG(T.nodesRef.current,p).some(e=>{var t;return ef(null==(t=e.context)?void 0:t.elements.floating,n)});(r||o.openEvent&&["click","mousedown"].includes(o.openEvent.type))&&f.domReference.current&&ni(f.domReference.current);let l=nl();x.current&&!P.current&&et(l)&&(l===n||n===t.body||r)&&tD(l,{cancelPrevious:!1,preventScroll:e})}},[r,b,x,v,f,m,T,p]),tM(()=>{if(!r&&C)return C.setFocusManagerState({modal:s,closeOnFocusOut:c,open:d,onOpenChange:h,refs:f}),()=>{C.setFocusManagerState(null)}},[r,C,s,d,h,f,c]),tM(()=>{if(r||!b||"function"!=typeof MutationObserver||y)return;let e=()=>{let e=b.getAttribute("tabindex");R.current.includes("floating")||ed(eS(b))!==f.domReference.current&&0===I().length?"0"!==e&&b.setAttribute("tabindex","0"):"-1"!==e&&b.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(b,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,b,f,R,I,y]);let L=!r&&E&&(N||s);return _.createElement(_.Fragment,null,L&&_.createElement(t9,{"data-type":"inside",ref:null==C?void 0:C.beforeInsideRef,onFocus:e=>{if(s){let e=D();tD("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=C&&C.preserveTabOrder&&C.portalNode){if(P.current=!1,t7(e,C.portalNode)){let e=t3()||g;null==e||e.focus()}else{var t;null==(t=C.beforeOutsideRef.current)||t.focus()}}}}),!S&&M("start"),n,M("end"),L&&_.createElement(t9,{"data-type":"inside",ref:null==C?void 0:C.afterInsideRef,onFocus:e=>{if(s)tD(D()[0]);else if(null!=C&&C.preserveTabOrder&&C.portalNode){if(c&&(P.current=!0),t7(e,C.portalNode)){let e=t4()||g;null==e||e.focus()}else{var t;null==(t=C.afterOutsideRef.current)||t.focus()}}}}))}let nu=new Set,nc=_.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e,o=tz();return tM(()=>{if(!n)return;nu.add(o);let e=/iP(hone|ad|od)|iOS/.test(ep()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",i=window.innerWidth-document.documentElement.clientWidth,l=t.left?parseFloat(t.left):window.pageXOffset,a=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",i&&(t[r]=i+"px"),e){var s,u;let e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(a-Math.floor((null==(u=window.visualViewport)?void 0:u.offsetTop)||0))+"px",left:-(l-Math.floor(e))+"px",right:"0"})}return()=>{nu.delete(o),0===nu.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(l,a)))}},[o,n]),_.createElement("div",tL({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function nd(e){return et(e.target)&&"BUTTON"===e.target.tagName}let nf={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},np={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},nh=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function nm(e){var t;void 0===e&&(e={});let{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,l]=_.useState(null),a=(null==(t=e.elements)?void 0:t.reference)||i,s=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:u}=e,[c,d]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=_.useState(r);e4(f,r)||p(r);let[h,m]=_.useState(null),[v,g]=_.useState(null),b=_.useCallback(e=>{e!==R.current&&(R.current=e,m(e))},[]),y=_.useCallback(e=>{e!==w.current&&(w.current=e,g(e))},[]),S=i||h,E=l||v,R=_.useRef(null),w=_.useRef(null),x=_.useRef(c),T=null!=s,C=e8(s),O=e8(o),k=_.useCallback(()=>{if(!R.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),e2(R.current,w.current,e).then(e=>{let t={...e,isPositioned:!0};P.current&&!e4(x.current,t)&&(x.current=t,e5.flushSync(()=>{d(t)}))})},[f,t,n,O]);e3(()=>{!1===u&&x.current.isPositioned&&(x.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let P=_.useRef(!1);e3(()=>(P.current=!0,()=>{P.current=!1}),[]),e3(()=>{if(S&&(R.current=S),E&&(w.current=E),S&&E){if(C.current)return C.current(S,E,k);k()}},[S,E,k,C,T]);let A=_.useMemo(()=>({reference:R,floating:w,setReference:b,setFloating:y}),[b,y]),N=_.useMemo(()=>({reference:S,floating:E}),[S,E]),I=_.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=e6(N.floating,c.x),r=e6(N.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...e7(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,N.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:k,refs:A,elements:N,floatingStyles:I}),[c,k,A,N,I])}(e),u=t$(),c=null!=tF(),d=tw((e,t,n)=>{e&&(p.current.openEvent=t),h.emit("openchange",{open:e,event:t,reason:n,nested:c}),null==r||r(e,t,n)}),f=_.useRef(null),p=_.useRef({}),h=_.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}})())[0],m=tz(),v=_.useCallback(e=>{let t=ee(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s.refs.setReference(t)},[s.refs]),g=_.useCallback(e=>{(ee(e)||null===e)&&(f.current=e,l(e)),(ee(s.refs.reference.current)||null===s.refs.reference.current||null!==e&&!ee(e))&&s.refs.setReference(e)},[s.refs]),b=_.useMemo(()=>({...s.refs,setReference:g,setPositionReference:v,domReference:f}),[s.refs,g,v]),y=_.useMemo(()=>({...s.elements,domReference:a}),[s.elements,a]),S=_.useMemo(()=>({...s,refs:b,elements:y,dataRef:p,nodeId:o,floatingId:m,events:h,open:n,onOpenChange:d}),[s,o,m,h,n,d,b,y]);return tM(()=>{let e=null==u?void 0:u.nodesRef.current.find(e=>e.id===o);e&&(e.context=S)}),_.useMemo(()=>({...s,context:S,refs:b,elements:y}),[s,b,y,S])}let nv="active",ng="selected";function nb(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[nv]:t,[ng]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[nv,ng].includes(n))){if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;ie(...o)).find(e=>void 0!==e)}}}else e[n]=i}}),e),{})}}let ny=!1;function nS(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function nE(e,t){return nS(t,e===tx||e===tT,e===tC||e===tO)}function nR(e,t,n){return nS(t,e===tT,n?e===tC:e===tO)||"Enter"===e||" "===e||""===e}function nw(e,t,n){return nS(t,n?e===tO:e===tC,e===tx)}let nx=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function nT(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let nC=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:l=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:u,...c}=e,{rects:d,elements:{floating:f}}=t,p=n.current[l];if(!p)return{};let h={...t,...await ez(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-i).fn(t)},m=(null==u?void 0:u.current)||f,v=await eH(nT(h,m.scrollHeight),c),g=await eH(h,{...c,elementContext:"reference"}),b=Math.max(0,v.top),y=h.y+b,S=Math.max(0,m.scrollHeight-b-Math.max(0,v.bottom));return m.style.maxHeight=S+"px",m.scrollTop=b,o&&(m.offsetHeight=-s||g.bottom>=-s?(0,e5.flushSync)(()=>o(!0)):(0,e5.flushSync)(()=>o(!1))),r&&(r.current=await eH(nT({...h,y:y},m.offsetHeight),c)),{y:y}}});var nO=n(9087);let nk="focusScope.autoFocusOnMount",nP="focusScope.autoFocusOnUnmount",n_={bubbles:!1,cancelable:!0},nA=_.forwardRef(function(e,t){let n=function(e,t){let{loop:n=!1,enabled:r=!0,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,forceUnmount:s,children:u,...c}=e,[d,f]=_.useState(null),p=(0,nO.z)(i),h=(0,nO.z)(a),m=_.useRef(null),v=(0,l.ex)(t,e=>f(e)),g=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(!r||!o)return;let e=new AbortController;function t(t){if(g.paused||!d)return;let n=t.target;d.contains(n)?(n?.addEventListener("blur",i,{signal:e.signal}),m.current=n):nD(m.current,{select:!0})}function n(t){e.abort(),!(g.paused||!d)&&(d.contains(t.relatedTarget)||nD(m.current,{select:!0}))}function i(){m.current=d}return document.addEventListener("focusin",t),document.addEventListener("focusout",n),()=>{e.abort(),document.removeEventListener("focusin",t),document.removeEventListener("focusout",n)}},[o,s,d,g.paused]),_.useEffect(()=>{if(!r||!d||s)return;nM.add(g);let e=document.activeElement;if(!d.contains(e)){let t=new CustomEvent(nk,n_);d.addEventListener(nk,p),d.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(nD(r,{select:t}),document.activeElement!==n)return}(nN(d).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&nD(d))}return()=>{d.removeEventListener(nk,p);let t=new CustomEvent(nP,n_);d.addEventListener(nP,h),d.dispatchEvent(t),t.defaultPrevented||nD(e??document.body,{select:!0}),d.removeEventListener(nP,h),nM.remove(g)}},[r,d,s,p,h,g]);let b=_.useCallback(e=>{if(!o||!n||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=nN(e);return[nI(t,e),nI(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&nD(i,{select:!0})):(e.preventDefault(),n&&nD(o,{select:!0})):r===t&&e.preventDefault()}},[n,o,g.paused]);return{tabIndex:-1,...c,ref:v,onKeyDown:b}}(e,t);return"function"==typeof e.children?(0,y.jsx)(y.Fragment,{children:e.children(n)}):_.cloneElement(_.Children.only(e.children),n)});function nN(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let 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 nI(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function nD(e,{select:t=!1}={}){if(e?.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let nM=(o=[],{add(e){let t=o[0];e!==t&&t?.pause(),(o=nL(o,e)).unshift(e)},remove(e){o=nL(o,e),o[0]?.resume()}});function nL(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}let nj=e=>{let t=(0,s.useMedia)();return!!e&&(!0===e||!!e&&t[e])},nH=e=>{let t=nj(e.sheetBreakpoint);return!1!==e.open&&t},nB="SelectContent",nz=e=>{var t;let{__scopeSelect:n,children:r,open:o=!1,selectedIndexRef:i,listContentRef:l}=e,u=$("SelectSheetImpl",n),c=Y("SelectSheetImpl",n),{setActiveIndex:d,selectedIndex:f,activeIndex:p,forceUpdate:h}=u,{setOpen:m,setSelectedIndex:v}=c,[g,b]=_.useState(0),S=(0,s.useIsTouchDevice)(),E=_.useRef([]),R=_.useRef(null),w=_.useRef(null),x=_.useRef(null),T=_.useRef(!1),C=_.useRef(!0),O=_.useRef(),k=_.useRef({isMouseOutside:!1}),[P,A]=_.useState(!1),[N,I]=_.useState(!1),[D,M]=_.useState(0),[L,j]=_.useState(!1),H=_.useRef({});(0,a.LI)(()=>{queueMicrotask(()=>{o||(b(0),I(!1),d(null),A(!1))})},[o,d]),a.$L&&a.C5&&(0,a.LI)(()=>{if(!o)return;let e=e=>{k.current.isMouseOutside&&m(!1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[o]);let{x:B,y:z,strategy:W,context:V,refs:Z,update:U}=nm({open:o,onOpenChange:m,placement:"bottom-start",whileElementsMounted:e1,middleware:[{name:"size",options:t={apply({rects:{reference:{width:e}}}){Object.assign(H.current,{minWidth:e+8}),Z.floating.current&&Object.assign(Z.floating.current.style,H.current)}},async fn(e){let n,r;let{placement:o,rects:i,platform:l,elements:a}=e,{apply:s=()=>{},...u}=eA(t,e),c=await eH(e,u),d=eN(o),f=eI(o),p="y"===eD(o),{width:h,height:m}=i.floating;"top"===d||"bottom"===d?(n=d,r=f===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,n="end"===f?"top":"bottom");let v=m-c[n],g=h-c[r],b=!e.middlewareData.shift,y=v,S=g;if(p){let e=h-c.left-c.right;S=f||b?eC(g,e):e}else{let e=m-c.top-c.bottom;y=f||b?eC(v,e):e}if(b&&!f){let e=eO(c.left,0),t=eO(c.right,0),n=eO(c.top,0),r=eO(c.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:eO(c.left,c.right)):y=m-2*(0!==n||0!==r?n+r:eO(c.top,c.bottom))}await s({...e,availableWidth:S,availableHeight:y});let E=await l.getDimensions(a.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}},nC({listRef:E,overflowRef:R,index:f,offset:D,onFallbackChange:I,padding:10,minItemsVisible:S?10:4,referenceOverflowThreshold:20}),ez({crossAxis:-5})]}),K=Z.floating,X=o&&g>8,q=o&&K.current&&g(window.addEventListener("resize",U),o&&U(),()=>window.removeEventListener("resize",U)),[U,o]);let J=(0,s.useEvent)(e=>(o?d:v)(e)),Q=[function(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:l=!0,event:a="click",toggle:s=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,d=_.useRef(),f=_.useRef(!1);return _.useMemo(()=>l?{reference:{onPointerDown(e){d.current=e.pointerType},onMouseDown(e){0!==e.button||ey(d.current,!0)&&u||"click"===a||(n&&s&&(!o.current.openEvent||"mousedown"===o.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click")))},onClick(e){if("mousedown"===a&&d.current){d.current=void 0;return}ey(d.current,!0)&&u||(n&&s&&(!o.current.openEvent||"click"===o.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){d.current=void 0,e.defaultPrevented||!c||nd(e)||(" "!==e.key||ew(i)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&(n&&s?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!c||nd(e)||ew(i))&&" "===e.key&&f.current&&(f.current=!1,n&&s?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}}:{},[l,o,a,u,c,i,s,n,r])}(V,{event:"mousedown",keyboardHandlers:!1}),function(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,nodeId:o,elements:{reference:i,domReference:l,floating:a},dataRef:s}=e,{enabled:u=!0,escapeKey:c=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:v,capture:g}=t,b=t$(),y=tw("function"==typeof d?d:()=>!1),S="function"==typeof d?y:d,E=_.useRef(!1),R=_.useRef(!1),{escapeKey:w,outsidePress:x}=nh(v),{escapeKey:T,outsidePress:C}=nh(g),O=tw(e=>{if(!n||!u||!c||"Escape"!==e.key)return;let t=b?tG(b.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),k=tw(e=>{var t;let n=()=>{var t;O(e),null==(t=eR(e))||t.removeEventListener("keydown",n)};null==(t=eR(e))||t.addEventListener("keydown",n)}),P=tw(e=>{let t=E.current;E.current=!1;let n=R.current;if(R.current=!1,"click"===f&&n||t||"function"==typeof S&&!S(e))return;let i=eR(e),s="["+tZ("inert")+"]",u=eS(a).querySelectorAll(s),c=ee(i)?i:null;for(;c&&!el(c);){let e=eu(c);if(el(e)||!ee(e))break;c=e}if(u.length&&ee(i)&&!i.matches("html,body")&&!ef(i,a)&&Array.from(u).every(e=>!ef(c,e)))return;if(et(i)&&a){let t=i.clientWidth>0&&i.scrollWidth>i.clientWidth,n=i.clientHeight>0&&i.scrollHeight>i.clientHeight,r=n&&e.offsetX>i.clientWidth;if(n&&"rtl"===ea(i).direction&&(r=e.offsetX<=i.offsetWidth-i.clientWidth),r||t&&e.offsetY>i.clientHeight)return}let d=b&&tG(b.nodesRef.current,o).some(t=>{var n;return eE(e,null==(n=t.context)?void 0:n.elements.floating)});if(eE(e,a)||eE(e,l)||d)return;let p=b?tG(b.nodesRef.current,o):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),A=tw(e=>{var t;let n=()=>{var t;P(e),null==(t=eR(e))||t.removeEventListener(f,n)};null==(t=eR(e))||t.addEventListener(f,n)});return _.useEffect(()=>{if(!n||!u)return;function e(e){r(!1,e,"ancestor-scroll")}s.current.__escapeKeyBubbles=w,s.current.__outsidePressBubbles=x;let t=eS(a);c&&t.addEventListener("keydown",T?k:O,T),S&&t.addEventListener(f,C?A:P,C);let o=[];return m&&(ee(l)&&(o=ec(l)),ee(a)&&(o=o.concat(ec(a))),!ee(i)&&i&&i.contextElement&&(o=o.concat(ec(i.contextElement)))),(o=o.filter(e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})).forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),()=>{c&&t.removeEventListener("keydown",T?k:O,T),S&&t.removeEventListener(f,C?A:P,C),o.forEach(t=>{t.removeEventListener("scroll",e)})}},[s,a,l,i,c,S,f,n,r,m,u,w,x,O,T,k,P,C,A]),_.useEffect(()=>{E.current=!1},[S,f]),_.useMemo(()=>u?{reference:{onKeyDown:O,[nf[h]]:e=>{p&&r(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:O,onMouseDown(){R.current=!0},onMouseUp(){R.current=!0},[np[f]]:()=>{E.current=!0}}}:{},[u,p,f,h,r,O])}(V,{outsidePress:!1}),function(e,t){var n;void 0===t&&(t={});let{open:r,floatingId:o}=e,{enabled:i=!0,role:l="dialog"}=t,a=null!=(n=nx.get(l))?n:l,s=tz(),u=null!=tF();return _.useMemo(()=>{if(!i)return{};let e={id:o,...a&&{role:a}};return"tooltip"===a||"label"===l?{reference:{["aria-"+("label"===l?"labelledby":"describedby")]:r?o:void 0},floating:e}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":r?o:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:s},..."menu"===a&&u&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===a&&{"aria-labelledby":s}},item(e){let{active:t,selected:n}=e,r={role:"option",...t&&{id:o+"-option"}};switch(l){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}},[i,l,a,r,o,s,u])}(V,{role:"listbox"}),function(e,t){let{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:a}=t,s=tw(a),u=_.useRef(!1),c=_.useRef(null),d=_.useRef(null);return _.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,l=t.scrollHeight-t.clientHeight,a=n<0?-1:1,u=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,e5.flushSync)(()=>{s(e=>e+Math[u](n,l*a))})):/firefox/i.test(eh())&&(t.scrollTop+=n))}let t=(null==l?void 0:l.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=i.current&&(d.current={...i.current})}),()=>{c.current=null,d.current=null,t.removeEventListener("wheel",e)}},[o,n,r.floating,i,l,s]),_.useMemo(()=>o?{floating:{onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==l?void 0:l.current)||r.floating;if(i.current&&e&&u.current){if(null!==c.current){let t=e.scrollTop-c.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&(0,e5.flushSync)(()=>s(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}}:{},[o,i,r.floating,l,s])}(V,{enabled:!N&&(q||X),onChange:M,overflowRef:R,scrollRef:Z.floating}),function(e,t){let{open:n,onOpenChange:r,refs:o,elements:{domReference:i,floating:l}}=e,{listRef:a,activeIndex:s,onNavigate:u=()=>{},enabled:c=!0,selectedIndex:d=null,allowEscape:f=!1,loop:p=!1,nested:h=!1,rtl:m=!1,virtual:v=!1,focusItemOnOpen:g="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:y=!0,disabledIndices:S,orientation:E="vertical",cols:R=1,scrollItemIntoView:w=!0,virtualItemRef:x,itemSizes:T,dense:C=!1}=t,O=tF(),k=t$(),P=tw(u),A=_.useRef(g),N=_.useRef(null!=d?d:-1),I=_.useRef(null),D=_.useRef(!0),M=_.useRef(P),L=_.useRef(!!l),j=_.useRef(!1),H=_.useRef(!1),B=tU(S),z=tU(n),W=tU(w),[V,F]=_.useState(),[$,Z]=_.useState(),U=tw(function(e,t,n){void 0===n&&(n=!1);let r=e.current[t.current];r&&(v?(F(r.id),null==k||k.events.emit("virtualfocus",r),x&&(x.current=r)):tD(r,{preventScroll:!0,sync:!!(ep().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&eg())&&(ny||j.current)}),requestAnimationFrame(()=>{let e=W.current;e&&r&&(n||!D.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))}))});tM(()=>{document.createElement("div").focus({get preventScroll(){return ny=!0,!1}})},[]),tM(()=>{c&&(n&&l?A.current&&null!=d&&(H.current=!0,N.current=d,P(d)):L.current&&(N.current=-1,M.current(null)))},[c,n,l,d,P]),tM(()=>{if(c&&n&&l){if(null==s){if(j.current=!1,null==d&&(L.current&&(N.current=-1,U(a,N)),!L.current&&A.current&&(null!=I.current||!0===A.current&&null==I.current))){let e=0,t=()=>{null==a.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(N.current=null==I.current||nR(I.current,E,m)||h?t_(a,B.current):tA(a,B.current),I.current=null,P(N.current))};t()}}else tP(a,s)||(N.current=s,U(a,N,H.current),H.current=!1)}},[c,n,l,s,d,h,a,E,m,P,U,B]),tM(()=>{var e;if(!c||l||!k||v||!L.current)return;let t=k.nodesRef.current,n=null==(e=t.find(e=>e.id===O))||null==(e=e.context)?void 0:e.elements.floating,r=ed(eS(l)),o=t.some(e=>e.context&&ef(e.context.elements.floating,r));n&&!o&&D.current&&n.focus({preventScroll:!0})},[c,l,k,O,v]),tM(()=>{if(c&&k&&v&&!O)return k.events.on("virtualfocus",e),()=>{k.events.off("virtualfocus",e)};function e(e){Z(e.id),x&&(x.current=e)}},[c,k,v,O,x]),tM(()=>{M.current=P,L.current=!!l}),tM(()=>{n||(I.current=null)},[n]);let G=null!=s,Y=_.useMemo(()=>{function e(e){if(!n)return;let t=a.current.indexOf(e);-1!==t&&P(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...b&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;D.current&&"touch"!==t&&(N.current=-1,U(a,N),P(null),v||tD(o.floating.current,{preventScroll:!0}))}}}},[n,o,U,b,a,P,v]);return _.useMemo(()=>{if(!c)return{};let e=B.current;function t(t){if(D.current=!1,j.current=!0,!z.current&&t.currentTarget===o.floating.current)return;if(h&&nw(t.key,E,m)){ex(t),r(!1,t.nativeEvent,"list-navigation"),et(i)&&!v&&i.focus();return}let l=N.current,s=t_(a,e),u=tA(a,e);if("Home"===t.key&&(ex(t),N.current=s,P(N.current)),"End"===t.key&&(ex(t),N.current=u,P(N.current)),R>1){var c;let n=T||Array.from({length:a.current.length},()=>({width:1,height:1})),r=function(e,t,n){let r=[],o=0;return e.forEach((e,i)=>{let{width:l,height:a}=e,s=!1;for(n&&(o=0);!s;){let e=[];for(let n=0;nnull==r[e])?(e.forEach(e=>{r[e]=i}),s=!0):o++}}),[...r]}(n,R,C),o=r.findIndex(t=>null!=t&&!(null!=e&&e.includes(t))),i=r.reduce((t,n,r)=>null==n||null!=e&&e.includes(n)?t:r,-1);if(N.current=r[function(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:l,minIndex:a,maxIndex:s,prevIndex:u,stopEvent:c=!1}=t,d=u;if(n.key===tx){if(c&&ex(n),-1===u)d=s;else if(d=tN(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:l}),o&&(u-ie?n:n-i}tP(e,d)&&(d=u)}if(n.key===tT&&(c&&ex(n),-1===u?d=a:(d=tN(e,{startingIndex:u,amount:i,disabledIndices:l}),o&&u+i>s&&(d=tN(e,{startingIndex:u%i-i,amount:i,disabledIndices:l}))),tP(e,d)&&(d=u)),"both"===r){let t=eP(u/i);n.key===tO&&(c&&ex(n),u%i!=i-1?(d=tN(e,{startingIndex:u,disabledIndices:l}),o&&tk(d,i,t)&&(d=tN(e,{startingIndex:u-u%i-1,disabledIndices:l}))):o&&(d=tN(e,{startingIndex:u-u%i-1,disabledIndices:l})),tk(d,i,t)&&(d=u)),n.key===tC&&(c&&ex(n),u%i!=0?(d=tN(e,{startingIndex:u,disabledIndices:l,decrement:!0}),o&&tk(d,i,t)&&(d=tN(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:l}))):o&&(d=tN(e,{startingIndex:u+(i-u%i),decrement:!0,disabledIndices:l})),tk(d,i,t)&&(d=u));let r=eP(s/i)===t;tP(e,d)&&(d=o&&r?n.key===tC?s:tN(e,{startingIndex:u-u%i-1,disabledIndices:l}):u)}return d}({current:r.map(e=>null!=e?a.current[e]:null)},{event:t,orientation:E,loop:p,cols:R,disabledIndices:(c=[...e||[],void 0],r.flatMap((e,t)=>c.includes(e)?[t]:[])),minIndex:o,maxIndex:i,prevIndex:function(e,t,n,r,o){if(-1===e)return -1;let i=n.indexOf(e);switch(o){case"tl":return i;case"tr":return i+t[e].width-1;case"bl":return i+(t[e].height-1)*r;case"br":return n.lastIndexOf(e)}}(N.current,n,r,R,t.key===tT?"bl":t.key===tO?"tr":"tl"),stopEvent:!0})],P(N.current),"both"===E)return}if(nE(t.key,E)){if(ex(t),n&&!v&&ed(t.currentTarget.ownerDocument)===t.currentTarget){N.current=nR(t.key,E,m)?s:u,P(N.current);return}nR(t.key,E,m)?p?N.current=l>=u?f&&l!==a.current.length?-1:s:tN(a,{startingIndex:l,disabledIndices:e}):N.current=Math.min(u,tN(a,{startingIndex:l,disabledIndices:e})):p?N.current=l<=s?f&&-1!==l?a.current.length:u:tN(a,{startingIndex:l,decrement:!0,disabledIndices:e}):N.current=Math.max(s,tN(a,{startingIndex:l,decrement:!0,disabledIndices:e})),tP(a,N.current)?P(null):P(N.current)}}function l(e){"auto"===g&&em(e.nativeEvent)&&(A.current=!0)}let s=v&&n&&G&&{"aria-activedescendant":$||V},u=a.current.find(e=>(null==e?void 0:e.id)===V);return{reference:{...s,onKeyDown(o){var i,l,s,c,f,p;D.current=!1;let g=0===o.key.indexOf("Arrow"),b=(i=o.key,nS(E,m?i===tC:i===tO,i===tT)),S=nw(o.key,E,m),R=nE(o.key,E),w=(h?b:R)||"Enter"===o.key||""===o.key.trim();if(v&&n){let e,n;let r=null==k?void 0:k.nodesRef.current.find(e=>null==e.parentId),i=k&&r?(l=k.nodesRef.current,s=r.id,n=-1,!function t(r,o){o>n&&(e=r,n=o),tG(l,r).forEach(e=>{t(e.id,o+1)})}(s,0),l.find(t=>t.id===e)):null;if(g&&i&&x){let e=new KeyboardEvent("keydown",{key:o.key,bubbles:!0});if(b||S){let t=(null==(c=i.context)?void 0:c.elements.domReference)===o.currentTarget,n=S&&!t?null==(f=i.context)?void 0:f.elements.domReference:b?u:null;n&&(ex(o),n.dispatchEvent(e),Z(void 0))}if(R&&i.context&&i.context.open&&i.parentId&&o.currentTarget!==i.context.elements.domReference){ex(o),null==(p=i.context.elements.domReference)||p.dispatchEvent(e);return}}return t(o)}if(n||y||!g){if(w&&(I.current=h&&R?null:o.key),h){b&&(ex(o),n?(N.current=t_(a,e),P(N.current)):r(!0,o.nativeEvent,"list-navigation"));return}R&&(null!=d&&(N.current=d),ex(o),!n&&y?r(!0,o.nativeEvent,"list-navigation"):t(o),n&&P(N.current))}},onFocus(){n&&P(null)},onPointerDown:function(e){A.current=g,"auto"===g&&ev(e.nativeEvent)&&(A.current=!0)},onMouseDown:l,onClick:l},floating:{"aria-orientation":"both"===E?void 0:E,...!eT(i)&&s,onKeyDown:t,onPointerMove(){D.current=!0}},item:Y}},[i,o,V,$,B,z,a,c,E,m,v,n,G,h,d,y,f,R,p,g,P,r,Y,k,x,T,C])}(V,{listRef:E,activeIndex:p||0,selectedIndex:f,onNavigate:d}),function(e,t){var n;let{open:r,dataRef:o}=e,{listRef:i,activeIndex:l,onMatch:a,onTypingChange:s,enabled:u=!0,findMatch:c=null,resetMs:d=750,ignoreKeys:f=[],selectedIndex:p=null}=t,h=_.useRef(),m=_.useRef(""),v=_.useRef(null!=(n=null!=p?p:l)?n:-1),g=_.useRef(null),b=tw(a),y=tw(s),S=tU(c),E=tU(f);return tM(()=>{r&&(clearTimeout(h.current),g.current=null,m.current="")},[r]),tM(()=>{if(r&&""===m.current){var e;v.current=null!=(e=null!=p?p:l)?e:-1}},[r,p,l]),_.useMemo(()=>{if(!u)return{};function e(e){e?o.current.typing||(o.current.typing=e,y(e)):o.current.typing&&(o.current.typing=e,y(e))}function t(e,t,n){let r=S.current?S.current(t,n):t.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))===0);return r?e.indexOf(r):-1}function n(n){let o=i.current;if(m.current.length>0&&" "!==m.current[0]&&(-1===t(o,o,m.current)?e(!1):" "===n.key&&ex(n)),null==o||E.current.includes(n.key)||1!==n.key.length||n.ctrlKey||n.metaKey||n.altKey)return;r&&" "!==n.key&&(ex(n),e(!0)),o.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&m.current===n.key&&(m.current="",v.current=g.current),m.current+=n.key,clearTimeout(h.current),h.current=setTimeout(()=>{m.current="",v.current=g.current,e(!1)},d);let l=v.current,a=t(o,[...o.slice((l||0)+1),...o.slice(0,(l||0)+1)],m.current);-1!==a?(b(a),g.current=a):" "!==n.key&&(m.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}},[u,r,o,i,d,E,S,b,y])}(V,{listRef:l,onMatch:J,selectedIndex:f,activeIndex:p})],en=function(e){void 0===e&&(e=[]);let t=e,n=_.useCallback(t=>nb(t,e,"reference"),t),r=_.useCallback(t=>nb(t,e,"floating"),t),o=_.useCallback(t=>nb(t,e,"item"),e.map(e=>null==e?void 0:e.item));return _.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}(_.useMemo(()=>Q,Q)),er=_.useMemo(()=>({...en,getReferenceProps:()=>en.getReferenceProps({ref:Z.reference,className:"SelectTrigger",onKeyDown(e){"Enter"!==e.key&&"Space"!==e.code&&(" "!==e.key||V.dataRef.current.typing)||(e.preventDefault(),m(!0))}}),getFloatingProps:e=>en.getFloatingProps({ref:Z.floating,className:"Select",...e,style:{position:W,top:z??"",left:B??"",outline:0,scrollbarWidth:"none",...H.current,...e?.style},onPointerEnter(){A(!1),k.current.isMouseOutside=!1},onPointerLeave(){k.current.isMouseOutside=!0},onPointerMove(){k.current.isMouseOutside=!1,A(!1)},onKeyDown(){A(!0)},onContextMenu(e){e.preventDefault()},onScroll(e){(0,e5.flushSync)(()=>{b(e.currentTarget.scrollTop)})}})}),[Z.reference.current,B,z,Z.floating.current,en]);return(0,a.LI)(()=>{if(o)return O.current=setTimeout(()=>{T.current=!0},300),()=>{clearTimeout(O.current)};T.current=!1,C.current=!0,M(0),I(!1),j(!1)},[o]),(0,a.LI)(()=>{!o&&k.current.isMouseOutside&&(k.current.isMouseOutside=!1)},[o]),(0,a.LI)(()=>{function e(e){let t=e.target;Z.floating.current?.contains(t)||w.current?.contains(t)||x.current?.contains(t)||(m(!1),A(!1))}if(o)return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[o,Z,m]),_.useEffect(()=>{o&&P&&null!=p&&E.current[p]?.scrollIntoView({block:"nearest"}),b(Z.floating.current?.scrollTop??0)},[o,Z,P,p]),_.useEffect(()=>{o&&N&&null!=f&&E.current[f]?.scrollIntoView({block:"nearest"})},[o,N,f]),(0,a.LI)(()=>{Z.floating.current&&N&&(Z.floating.current.style.maxHeight="")},[Z,N]),(0,y.jsx)(F,{scope:n,...u,setScrollTop:b,setInnerOffset:M,fallback:N,floatingContext:V,activeIndex:p,canScrollDown:!!q,canScrollUp:!!X,controlledScrolling:P,blockSelection:L,upArrowRef:w,downArrowRef:x,update:U,children:(0,y.jsx)(G,{scope:n,...c,allowMouseUpRef:C,allowSelectRef:T,dataRef:V.dataRef,interactions:er,listRef:E,selectTimeoutRef:O,children:r})})},nW="SelectItem",[nV,nF]=W(nW),n$=E.styleable(function(e,t){let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,index:s,...u}=e,{props:c}=T({...!e.unstyled&&{ellipse:!0},...u}),{setSelectedIndex:d,listRef:f,setOpen:p,onChange:h,activeIndexSubscribe:m,valueSubscribe:v,allowMouseUpRef:g,allowSelectRef:b,setValueAtIndex:S,selectTimeoutRef:R,dataRef:w,interactions:x,shouldRenderWebNative:C,size:O,onActiveChange:k,initialValue:P}=Y(nW,n),[A,N]=_.useState(P===r);_.useEffect(()=>m(e=>{s===e&&(k(r,s),f?.current[s]?.focus())}),[s]),_.useEffect(()=>v(e=>{N(e===r)}),[r]);let I=_.useId(),D=(0,l.ex)(t,e=>{a.$L&&e instanceof HTMLElement&&f&&(f.current[s]=e)});function M(){d(s),h(r),p(!1)}(0,a.LI)(()=>{S(s,r)},[s,S,r]);let L=_.useMemo(()=>x?x.getItemProps({onTouchMove(){b.current=!0,g.current=!1},onTouchEnd(){b.current=!1,g.current=!0},onKeyDown(e){"Enter"!==e.key&&(" "!==e.key||w?.current.typing)?b.current=!0:(e.preventDefault(),M())},onClick(){b.current&&M()},onMouseUp(){g.current&&(b.current&&M(),clearTimeout(R.current),R.current=setTimeout(()=>{b.current=!0}))}}):{onPress:M},[M]);return(0,y.jsx)(nV,{scope:n,value:r,textId:I||"",isSelected:A,children:C?(0,y.jsx)("option",{value:r,children:e.children}):(0,y.jsx)(E,{tag:"div",componentName:nW,ref:D,"aria-labelledby":I,"aria-selected":A,"data-state":A?"active":"inactive","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...!e.unstyled&&{backgrounded:!0,pressTheme:!0,hoverTheme:!0,focusTheme:!0,cursor:"default",size:O,outlineOffset:-.5,focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:1,outlineStyle:"solid"}},...c,...L})})},{disableTheme:!0});var nZ=n(357);let nU="SelectItemText",nG=(0,s.styled)(v.J,{name:nU,variants:{unstyled:{false:{userSelect:"none",color:"$color",ellipse:!0}}},defaultVariants:{unstyled:"1"===nZ.env.TAMAGUI_HEADLESS}}),nY=nG.styleable(function(e,t){let{__scopeSelect:n,className:r,...o}=e,i=$(nU,n),a=Y(nU,n),s=_.useRef(null),u=(0,l.ex)(t,s),c=nF(nU,n),d=_.useRef();return d.current=(0,y.jsx)(nG,{className:r,size:a.size,id:c.textId,...o,ref:u}),_.useEffect(()=>{a.initialValue!==c.value||i.selectedIndex||i.setSelectedItem(d.current)},[]),_.useEffect(()=>a.valueSubscribe(e=>{e===c.value&&i.setSelectedItem(d.current)}),[c.value]),a.shouldRenderWebNative?(0,y.jsx)(y.Fragment,{children:e.children}):(0,y.jsx)(y.Fragment,{children:d.current})}),nK="SelectScrollUpButton",nX=_.forwardRef((e,t)=>(0,y.jsx)(nQ,{componentName:nK,...e,dir:"up",ref:t}));nX.displayName=nK;let nq="SelectScrollDownButton",nJ=_.forwardRef((e,t)=>(0,y.jsx)(nQ,{componentName:nq,...e,dir:"down",ref:t}));nJ.displayName=nq;let nQ=_.memo(_.forwardRef((e,t)=>{let{__scopeSelect:n,dir:r,componentName:o,...i}=e,{forceUpdate:a,open:s,fallback:u,setScrollTop:c,setInnerOffset:d,...f}=$(o,n),p=f.floatingContext?.refs.floating,h=_.useRef("idle"),v=f["down"===r?"canScrollDown":"canScrollUp"],g=_.useRef(),{x:b,y:S,refs:E,strategy:R}=nm({open:s&&v,strategy:"fixed",elements:{reference:p?.current},placement:"up"===r?"top":"bottom",middleware:[ez(({rects:e})=>-e.floating.height)],whileElementsMounted:(...e)=>e1(...e,{animationFrame:!0})}),w=(0,l.ex)(t,E.setFloating);if(!v)return null;let x=e=>{p&&(u?p.current&&(p.current.scrollTop-=e,(0,e5.flushSync)(()=>c(p.current?.scrollTop??0))):(0,e5.flushSync)(()=>d(t=>t-e)))};return(0,y.jsx)(m.FA,{ref:w,componentName:o,"aria-hidden":!0,...i,zIndex:1e3,position:R,left:b||0,top:S||0,width:`calc(${(p?.current?.offsetWidth??0)-2}px)`,onPointerEnter:()=>{h.current="active";let e=Date.now();cancelAnimationFrame(g.current),g.current=requestAnimationFrame(function t(){let n=p?.current;if(n){let o=Date.now(),i=o-e;e=o;let l=i/2,a="up"===r?n.scrollTop:n.scrollHeight-n.clientHeight-n.scrollTop,s="up"===r?n.scrollTop-l>0:n.scrollTop+l{h.current="idle",cancelAnimationFrame(g.current)}})})),n0="SelectTrigger",n1=!s.isWeb||!s.isClient||window.matchMedia("(pointer:coarse)").matches,n2=_.forwardRef(function(e,t){let{__scopeSelect:n,disabled:r=!1,unstyled:o=!1,...i}=e,a=$(n0,n),s=Y(n0,n),u=(0,l.ex)(t,a.floatingContext?.refs.setReference);return s.shouldRenderWebNative?null:(0,y.jsx)(O,{componentName:n0,unstyled:o,tag:"button",id:s.id,...!o&&{backgrounded:!0,radiused:!0,hoverTheme:!0,pressTheme:!0,focusable:!0,focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"},borderWidth:1,size:s.size},"aria-expanded":a.open,"aria-autocomplete":"none",dir:a.dir,disabled:r,"data-disabled":r?"":void 0,...i,ref:u,...s.interactions?{...s.interactions.getReferenceProps(),...n1?{onPress(){s.setOpen(!a.open)}}:{onMouseDown(){a.floatingContext?.update(),s.setOpen(!a.open)}}}:{onPress(){s.setOpen(!a.open)}}})});var n5=n(9085),n3=n(357);let n4=(0,s.styled)(h.K,{name:B,variants:{unstyled:{false:{size:"$2",backgroundColor:"$background",elevate:!0,bordered:!0,userSelect:"none",outlineWidth:0}},size:{"...size":(e,{tokens:t})=>({borderRadius:t.radius[e]??e})}},defaultVariants:{unstyled:"1"===n3.env.TAMAGUI_HEADLESS}}),n7=n4.styleable(function(e,t){let{__scopeSelect:n,children:r,disableScroll:o,...i}=e,s=$(B,n),u=Y(B,n),c=nj(s.sheetBreakpoint);if((0,a.LI)(()=>{s.update&&s.update()},[c]),u.shouldRenderWebNative)return(0,y.jsx)(y.Fragment,{children:r});if(c||!a.$L)return(0,y.jsx)(k.b5,{hostName:`${s.scopeKey}SheetContents`,children:(0,y.jsx)(K,{__scopeSelect:n,itemContext:u,context:s,children:r})});if(!u.interactions)return null;let{style:d,className:f,onScroll:p,...h}=u.interactions.getFloatingProps(),m=(0,l.FE)(t,s.floatingContext?.refs.setFloating);return(0,y.jsxs)(y.Fragment,{children:[!o&&!e.unstyled&&(0,y.jsx)("style",{dangerouslySetInnerHTML:{__html:n6}}),(0,y.jsx)(n5.M,{children:s.open?(0,y.jsx)(ns,{context:s.floatingContext,modal:!1,children:(0,y.jsx)(n4,{size:u.size,role:"presentation",...i,...d,...h,...!e.unstyled&&{overflowY:o?void 0:d.overflow??"auto"},ref:m,children:r},"select-viewport")}):null}),!s.open&&(0,y.jsx)("div",{style:{display:"none"},children:e.children})]})}),n6=` +.is_SelectViewport { + scrollbar-width: none; + -webkit-overflow-scrolling: touch; + overscroll-behavior: contain; +} + +.is_SelectViewport::-webkit-scrollbar{ + display:none +} +`,n8="SelectValue",n9=(0,s.styled)(v.J,{name:n8,userSelect:"none"}),re=n9.styleable(function({__scopeSelect:e,children:t,placeholder:n,...r},o){let i=$(n8,e),a=Y(n8,e),s=(0,l.ex)(o,i.onValueNodeChange),u=t??i.selectedItem,c=null==i.value||""===i.value?n??u:u;return(0,y.jsx)(n9,{...!r.unstyled&&{size:a.size,ellipse:!0,pointerEvents:"none"},ref:s,...r,children:function e(t){return _.Children.map(t,t=>{if(t){if(t.type?.staticConfig?.componentName===nU)return t.props.children;if(t.props?.children)return e(t.props.children)}return t})}(c)})}),rt=(0,s.styled)(m.sL,{name:"SelectIcon","aria-hidden":!0,children:(0,y.jsx)(M.n,{children:"▼"})}),rn="SelectItemIndicator",rr=(0,s.styled)(m.sL,{name:nU}),ro=_.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=Y(rn,n),i=nF(rn,n);return o.shouldRenderWebNative?null:i.isSelected?(0,y.jsx)(rr,{"aria-hidden":!0,...r,ref:t}):null});ro.displayName=rn;let ri="SelectGroup",[rl,ra]=W(ri),rs=(0,s.styled)(m.FA,{name:ri,width:"100%"}),ru=(0,s.styled)(v.J,{tag:"select",backgroundColor:"$background",borderColor:"$borderColor",hoverStyle:{backgroundColor:"$backgroundHover"}}),rc=(0,s.styled)(h.K,{name:"NativeSelect",bordered:!0,userSelect:"none",outlineWidth:0,paddingRight:10,variants:{size:{"...size":(e,t)=>{let{tokens:n}=t,r=(0,s.getVariableValue)(n.space[e]);return{borderRadius:n.radius[e]??e,minHeight:n.size[e],paddingRight:r+20,paddingLeft:r,paddingVertical:(0,u.Pj)(e,{shift:-3})}}}},defaultVariants:{size:"$2"}}),rd=_.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=_.useId(),i=$(ri,n),l=Y(ri,n),a=l.size??"$true",s=_.useRef(null),u=l.shouldRenderWebNative?(0,y.jsx)(rc,{asChild:!0,size:a,value:i.value,id:l.id,children:(0,y.jsx)(ru,{onChange:e=>{l.onChange(e.currentTarget.value)},size:a,ref:s,style:{color:"var(--color)",appearance:"none"},children:e.children})}):(0,y.jsx)(rs,{role:"group","aria-labelledby":o,...r,ref:t});return(0,y.jsx)(rl,{scope:n,id:o||"",children:u})});rd.displayName=ri;let rf="SelectLabel",rp=_.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=Y(rf,n),i=ra(rf,n);return o.shouldRenderWebNative?null:(0,y.jsx)(O,{tag:"div",componentName:rf,fontWeight:"800",id:i.id,size:o.size,...r,ref:t})});rp.displayName=rf,(0,s.styled)(P.Z,{name:"SelectSeparator"});let rh=e=>{let t=$("SelectSheetController",e.__scopeSelect),n=nH(t),r=nj(t.sheetBreakpoint),o=(0,s.useGet)(n);return(0,y.jsx)(I,{onOpenChange:t=>{o()&&e.onOpenChange(t)},open:t.open,hidden:!1===r,children:e.children})},rm=e=>(0,y.jsx)(y.Fragment,{children:e.children}),rv=(0,c.$e)(e=>{let{__scopeSelect:t,native:n,children:r,open:o,defaultOpen:l,onOpenChange:u,value:c,defaultValue:d,onValueChange:f,disablePreventBodyScroll:p,size:h="$true",onActiveChange:m,dir:v,id:g}=e,b=_.useId(),S=t?Object.keys(t)[0]??b:b,{when:E,AdaptProvider:R}=(0,i.pV)({Contents:_.useCallback(()=>(0,y.jsx)(k.$2,{name:`${S}SheetContents`}),[S])}),w=nj(E)||!a.$L?rm:nz,x=_.useReducer(()=>({}),{})[1],[T,C]=_.useState(null),[O,P]=(0,L.T)({prop:o,defaultProp:l||!1,onChange:u}),[A,N]=(0,L.T)({prop:c,defaultProp:d||"",onChange:f,transition:!0});_.useEffect(()=>{O&&M(A)},[O]),_.useEffect(()=>{M(A)},[A]);let[I,D]=_.useState(0),[M,H]=rg(),[B,z]=rg(),W=_.useRef(null),V=_.useRef(null),$=_.useRef([]),[Z,U]=_.useState(0),[Y,K]=_.useState(null);(0,a.LI)(()=>{W.current=Z,V.current=I});let X=a.$L&&(!0===n||"web"===n||Array.isArray(n)&&n.includes("web")),q=function(e,t,n=j,r=[e]){let o=(0,_.useRef)(null);return(0,_.useEffect)(()=>()=>{o.current?.cancel()},[]),(0,_.useMemo)(()=>(o.current=function(e,t,n){let r,o=!1;function i(){o=!1;let i=arguments;n&&!r&&e.apply(this,i),clearTimeout(r),r=setTimeout(()=>{r=null,n||o||e.apply(this,i),o=!1},t)}return i.cancel=()=>{o=!0},i}(e,1,n.leading),o.current),[n.leading,...r])}(e=>{D(t=>t!==e?("number"==typeof e&&B(e),e):t)},0,{},[]);return(0,y.jsx)(R,{children:(0,y.jsx)(G,{scope:t,initialValue:_.useMemo(()=>A,[O]),size:h,activeIndexSubscribe:z,valueSubscribe:H,setOpen:P,id:g,onChange:_.useCallback(e=>{N(e),M(e)},[]),onActiveChange:(0,s.useEvent)((...e)=>{m?.(...e)}),setSelectedIndex:U,setValueAtIndex:_.useCallback((e,t)=>{$.current[e]=t},[]),shouldRenderWebNative:X,children:(0,y.jsx)(F,{scope:t,disablePreventBodyScroll:p,dir:v,blockSelection:!1,fallback:!1,selectedItem:T,setSelectedItem:C,forceUpdate:x,valueNode:Y,onValueNodeChange:K,scopeKey:S,sheetBreakpoint:E,activeIndex:I,selectedIndex:Z,setActiveIndex:q,value:A,open:O,native:n,children:(0,y.jsx)(rh,{onOpenChange:P,__scopeSelect:t,children:X?r:(0,y.jsx)(w,{activeIndexRef:V,listContentRef:$,selectedIndexRef:W,...e,open:O,value:A,children:r})})})})})},{Adapt:i.Tr,Content:({children:e,__scopeSelect:t,zIndex:n=1e3,...r})=>{let o=$(nB,t),i=Y(nB,t),l=(0,s.useThemeName)(),a=nH(o),u=(0,y.jsx)(s.Theme,{forceClassName:!0,name:l,children:e}),c=(0,s.useIsTouchDevice)(),d=(0,_.useMemo)(()=>({zIndex:n,pointerEvents:o.open?"auto":"none"}),[o.open]);return i.shouldRenderWebNative?(0,y.jsx)(y.Fragment,{children:e}):a?o.open?(0,y.jsx)(y.Fragment,{children:u}):null:(0,y.jsx)(nn,{children:(0,y.jsx)(nc,{style:d,lockScroll:!o.disablePreventBodyScroll&&!!o.open&&!c,children:(0,y.jsx)(nA,{loop:!0,enabled:!!o.open,trapped:!0,...r,children:u})})})},Group:rd,Icon:rt,Item:n$,ItemIndicator:ro,ItemText:nY,Label:rp,ScrollDownButton:nJ,ScrollUpButton:nX,Trigger:n2,Value:re,Viewport:n7,Sheet:D.yo.Controlled});function rg(){let e=_.useRef();return e.current||(e.current=new Set),[t=>{e.current.forEach(e=>e(t))},_.useCallback(t=>(e.current.add(t),()=>{e.current.delete(t)}),[])]}rv.displayName=H},6505:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(281),o=n(3974);let i=(0,o.styled)(o.Stack,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:r.$L?"initial":"auto",maxHeight:r.$L?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}})},8220:function(e,t,n){n.d(t,{yo:function(){return tE}});var r,o,i,l,a,s,u,c=n(3974),d=n(5377),f=n(1092);let p="Sheet",h="SheetHandle",m="SheetOverlay",v=c.isClient?document.createElement("style"):null;v&&"u">typeof document.head&&document.head.appendChild(v);var g=n(9046),b=n(281),y=n(1308),S=n(2265),E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var w="right-scroll-bar-position",x="width-before-scroll-bar",T=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),i=[],l=!1,a={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,l);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){l=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=E({async:!0,ssr:!1},r),a),C=function(){},O=S.forwardRef(function(e,t){var n,r,o,i=S.useRef(null),l=S.useState({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:C}),a=l[0],s=l[1],u=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,w=R(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=(n=[i,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(o=(0,S.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,o.facade),O=E(E({},w),a);return S.createElement(S.Fragment,null,p&&S.createElement(m,{sideCar:T,removeScrollBar:f,shards:h,noIsolation:v,inert:g,setCallbacks:s,allowPinchZoom:!!b,lockRef:i}),u?S.cloneElement(S.Children.only(c),E(E({},O),{ref:x})):S.createElement(void 0===y?"div":y,E({},O,{className:d,ref:x}),c))});O.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},O.classNames={fullWidth:x,zeroRight:w};var k=function(e){var t=e.sideCar,n=R(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return S.createElement(r,E({},n))};k.isSideCarExport=!0;var P=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_=function(){var e=P();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},A=function(){var e=_();return function(t){return e(t.styles,t.dynamic),null}},N={left:0,top:0,right:0,gap:0},I=function(e){return parseInt(e||"",10)||0},D=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[I(n),I(r),I(o)]},M=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return N;var t=D(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])}},L=A(),j="data-scroll-locked",H=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(j,"] {\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(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(w," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(x," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(w," .").concat(w," {\n right: 0 ").concat(r,";\n }\n \n .").concat(x," .").concat(x," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(j,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},B=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=S.useMemo(function(){return M(o)},[o]);return S.useEffect(function(){return document.body.setAttribute(j,""),function(){document.body.removeAttribute(j)}},[]),S.createElement(L,{styles:H(i,!t,o,n?"":"!important")})},z=!1;if("undefined"!=typeof window)try{var W=Object.defineProperty({},"passive",{get:function(){return z=!0,!0}});window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch(e){z=!1}var V=!!z&&{passive:!1},F=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},$=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Z(e,n)){var r=U(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Z=function(e,t){return"v"===e?F(t,"overflowY"):F(t,"overflowX")},U=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},G=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,p=0;do{var h=U(e,s),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&Z(e,s)&&(f+=v,p+=m),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&0===f||!o&&a>f)?c=!0:!d&&(o&&0===p||!o&&-a>p)&&(c=!0),c},Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},K=function(e){return[e.deltaX,e.deltaY]},X=function(e){return e&&"current"in e?e.current:e},q=0,J=[],Q=(s=function(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(q++)[0],i=S.useState(function(){return A()})[0],l=S.useRef(e);S.useEffect(function(){l.current=e},[e]),S.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;oMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=$(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=$(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return G(p,t,e,"h"===p?s:u,!0)},[]),s=S.useCallback(function(e){if(J.length&&J[J.length-1]===i){var n="deltaY"in e?K(e):Y(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(X).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=S.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=S.useCallback(function(e){n.current=Y(e),r.current=void 0},[]),d=S.useCallback(function(t){u(t.type,K(t),t.target,a(t,e.lockRef.current))},[]),f=S.useCallback(function(t){u(t.type,Y(t),t.target,a(t,e.lockRef.current))},[]);S.useEffect(function(){return J.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,V),document.addEventListener("touchmove",s,V),document.addEventListener("touchstart",c,V),function(){J=J.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,V),document.removeEventListener("touchmove",s,V),document.removeEventListener("touchstart",c,V)}},[]);var p=e.removeScrollBar,h=e.inert;return S.createElement(S.Fragment,null,h?S.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?S.createElement(B,{gapMode:"margin"}):null)},T.useMedium(s),k),ee=S.forwardRef(function(e,t){return S.createElement(O,E({},e,{ref:t,sideCar:Q}))});ee.classNames=O.classNames;var et=n(2281);let en=(0,S.memo)(e=>e.children?(0,et.jsx)(ee,{...e}):null);ee.classNames;var er=n(6616),eo=n(1840);let[ei,el]=(0,n(301).b)(p),[ea,es]=ei(p,{});var eu=n(3370),ec=n(9085),ed=n(4624),ef=n(3013),ep=()=>{ef.Z.blurTextInput(ef.Z.currentlyFocusedField())},eh={addListener:()=>({remove:()=>{}}),dismiss(){ep()},removeAllListeners(){},removeListener(){}};let em=()=>{let[e,t]=(0,S.useState)(!1);return(0,S.useEffect)(()=>{let e=eh.addListener("keyboardDidShow",()=>{t(!0)}),n=eh.addListener("keyboardDidHide",()=>{t(!1)});return()=>{n.remove(),e.remove()}},[]),e};var ev=n(7445),eg=n.n(ev),eb=n(7998);class ey{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>(0,eb.Z)((0,eb.Z)({},t),{},{tasks:t.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(eg()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1}),n=this._queueStack[t-1];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}class eS{constructor(){this._registry={}}addListener(e,t,n){var r,o,i=(null==(o=(r=this._registry)[e])&&(o=new Set,r[e]=o),o),l={context:n,listener:t,remove(){i.delete(l)}};return i.add(l),l}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};eR&&window.cancelIdleCallback;var ex=new eS,eT={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise(n=>{eI(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),eP.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{eP.cancelTasks(t)}}},createInteractionHandle(){eI();var e=++eA;return eO.add(e),e},clearInteractionHandle(e){eg()(!!e,"Must provide a handle to clear."),eI(),eO.delete(e),ek.add(e)},addListener:ex.addListener.bind(ex),setDeadline(e){eN=e}},eC=new Set,eO=new Set,ek=new Set,eP=new ey({onMoreTasks:eI}),e_=0,eA=0,eN=-1;function eI(){e_||(e_=eN>0?setTimeout(eD):ew(eD))}function eD(){e_=0;var e=eC.size;eO.forEach(e=>eC.add(e)),ek.forEach(e=>eC.delete(e));var t=eC.size;if(0!==e&&0===t?ex.emit(eT.Events.interactionComplete):0===e&&0!==t&&ex.emit(eT.Events.interactionStart),0===t){for(var n=Date.now();eP.hasTasksToProcess();)if(eP.processNext(),eN>0&&Date.now()-n>=eN){eI();break}}eO.clear(),ek.clear()}var eM={centroidDimension:function(e,t,n,r){var o=e.touchBank,i=0,l=0,a=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==a)a.touchActive&&a.currentTimeStamp>t&&(i+=r&&n?a.currentPageX:r&&!n?a.currentPageY:!r&&n?a.previousPageX:a.previousPageY,l=1);else for(var s=0;s=t&&(i+=r&&n?u.currentPageX:r&&!n?u.currentPageY:!r&&n?u.previousPageX:u.previousPageY,l++)}return l>0?i/l:eM.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return eM.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return eM.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return eM.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return eM.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return eM.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return eM.centroidDimension(e,0,!1,!0)},noCentroid:-1},eL=eM.currentCentroidXOfTouchesChangedAfter,ej=eM.currentCentroidYOfTouchesChangedAfter,eH=eM.previousCentroidXOfTouchesChangedAfter,eB=eM.previousCentroidYOfTouchesChangedAfter,ez=eM.currentCentroidX,eW=eM.currentCentroidY,eV={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=eL(t,e._accountsForMovesUpTo),e.moveY=ej(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=eH(t,n),o=eL(t,n),i=eB(t,n),l=ej(t,n),a=e.dx+(o-r),s=e.dy+(l-i),u=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(a-e.dx)/u,e.vy=(s-e.dy)/u,e.dx=a,e.dy=s,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&eV._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(eV._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:r=>(t.handle||(t.handle=eT.createInteractionHandle()),t.timeout&&clearTimeout(t.timeout),t.shouldCancelClick=!0,n.x0=ez(r.touchHistory),n.y0=eW(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)),onResponderReject(r){eF(t,e.onPanResponderReject,r,n)},onResponderRelease(r){eF(t,e.onPanResponderRelease,r,n),e$(t),eV._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(eV._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var o=r.touchHistory;n.numberActiveTouches=o.numberActiveTouches,eF(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){eF(t,e.onPanResponderTerminate,r,n),e$(t),eV._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function eF(e,t,n,r){e.handle&&(eT.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function e$(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}var eZ={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},eU={},eG=eE.Z;function eY(){if(eE.Z){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var o=n.document.documentElement;e=o.clientHeight,t=o.clientWidth}eZ.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},eZ.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function eK(){eY(),Array.isArray(eU.change)&&eU.change.forEach(e=>e(eZ))}class eX{static get(e){return eG&&(eG=!1,eY()),eg()(eZ[e],"No dimension set for key "+e),eZ[e]}static set(e){e&&(eE.Z?eg()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(eZ.screen=e.screen),null!=e.window&&(eZ.window=e.window)))}static addEventListener(e,t){return eU[e]=eU[e]||[],eU[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(eU[e])&&(eU[e]=eU[e].filter(e=>e!==t))}}eE.Z&&(window.visualViewport?window.visualViewport.addEventListener("resize",eK,!1):window.addEventListener("resize",eK,!1));var eq=n(5275);let eJ=(0,S.createContext)({zIndex:1e5}),eQ=(0,S.createContext)(null);function e0(e,t,n=25){return e{let{isHidden:t,controller:n}=(0,e2.$)(),[r,o]=(0,e1.T)({prop:n?.open??e.open,defaultProp:e.defaultOpen??!1,onChange:t=>{n?.onOpenChange?.(t),e.onOpenChange?.(t)},strategy:"most-recent-wins",transition:!0});return{open:r,setOpen:o,isHidden:t,controller:n}};var e3=n(3020);let e4=(0,c.themeable)((0,S.forwardRef)(function(e,t){let n=(0,S.useContext)(eJ),{animation:r,animationConfig:o,modal:i=!1,zIndex:l=n.zIndex+1,moveOnKeyboardChange:a=!1,unmountChildrenWhenHidden:s=!1,portalProps:u,containerComponent:d=S.Fragment}=e,f=em(),p=e5(e),[h,m]=(0,S.useState)(null),y=function(e,t,n={}){let r=S.useRef(null),o=S.useRef(null),[i,l]=(0,S.useState)(0),[a,s]=(0,S.useState)(0),u=e.snapPointsMode??"percent",d=e.snapPoints??("percent"===u?[80]:"constant"===u?[256]:["fit"]),f="fit"===d[0],p=(0,S.useMemo)(()=>e.dismissOnSnapToBottom?[...d,0]:d,[JSON.stringify(d),e.dismissOnSnapToBottom]),[h,m]=(0,e1.T)({prop:e.position,defaultProp:e.defaultPosition||(t.open?0:-1),onChange:e.onPositionChange,strategy:"most-recent-wins",transition:!0}),v=!1===t.open?-1:h,{open:g}=t,b=(0,S.useCallback)(n=>{e.dismissOnSnapToBottom&&n===p.length-1?t.setOpen(!1):m(n)},[e.dismissOnSnapToBottom,p.length,m,t.setOpen]);g&&e.dismissOnSnapToBottom&&v===p.length-1&&m(0);let y=g&&v<0;(0,S.useEffect)(()=>{y&&b(0)},[b,y]);let{animationDriver:E}=(0,c.useConfiguration)();if(!E)throw Error("Must set animations in tamagui.config.ts");let R=(0,e3.h)(()=>({enabled:!1,y:0,paneY:0,paneMinY:0,scrollStartY:-1,drag:()=>{},release:()=>{},scrollLock:!1})),w=e.forceRemoveScrollEnabled??(g&&e.modal),x=p[0];return{screenSize:"percent"===u?i/(("number"==typeof x?x:100)/100):a,maxSnapPoint:x,removeScrollEnabled:w,scrollBridge:R,modal:!!e.modal,open:t.open,setOpen:t.setOpen,hidden:!!t.isHidden,contentRef:o,handleRef:r,frameSize:i,setFrameSize:l,dismissOnOverlayPress:e.dismissOnOverlayPress??!0,dismissOnSnapToBottom:e.dismissOnSnapToBottom??!1,onOverlayComponent:n.onOverlayComponent,scope:e.__scopeSheet,hasFit:f,position:v,snapPoints:p,snapPointsMode:u,setMaxContentSize:s,setPosition:b,setPositionImmediate:m,onlyShowFrame:!1}}(e,p,{onOverlayComponent:m}),{frameSize:E,setFrameSize:R,snapPoints:w,snapPointsMode:x,hasFit:T,position:C,setPosition:O,scrollBridge:k,screenSize:P,setMaxContentSize:_,maxSnapPoint:A}=y,{open:N,controller:I,isHidden:D}=p,M=(0,S.useRef)(null),L=(0,g.ex)(t,M),j=(()=>{let[e,t]=r?Array.isArray(r)?r:[r]:[];return o??(e?{...(0,c.getConfig)().animations.animations[e],...t}:null)})(),[H,B]=(0,S.useState)(!1),z=!b.$L&&i&&H,W=(0,S.useContext)(eQ),V=(0,S.useCallback)(e=>{B(e)},[]),F=(0,S.useMemo)(()=>w.map(e=>(function(e,t,n,r){if(!n||!r)return 0;if("mixed"===e){if("number"==typeof t)return n-Math.min(n,Math.max(0,t));if("fit"===t)return n-Math.min(n,r);if(t.endsWith("%")){let e=Math.min(100,Math.max(0,Number(t.slice(0,-1))))/100;return Number.isNaN(e)?(console.warn("Invalid snapPoint percentage string"),0):Math.round(n-e*n)}return console.warn("Invalid snapPoint unknown value"),0}if("fit"===e)return 0===t?n:n-Math.min(n,r);if("constant"===e&&"number"==typeof t)return n-Math.min(n,Math.max(0,t));let o=Math.min(100,Math.max(0,Number(t)))/100;return Number.isNaN(o)?(console.warn("Invalid snapPoint percentage"),0):Math.round(n-o*n)})(x,e,P,E)),[P,E,w,x]),{animationDriver:$}=(0,c.useConfiguration)(),{useAnimatedNumber:Z,useAnimatedNumberStyle:U,useAnimatedNumberReaction:G}=$,Y=$.View??c.Stack;(0,b.LI)(()=>{if(W&&N)return W(!0),()=>{W(!1)}},[W,N]);let K=(0,S.useMemo)(()=>({zIndex:l}),[l]),X=Z(10000.1),q=(0,S.useRef)(10000.1);function J(){X.stop(),k.onFinishAnimate&&(k.onFinishAnimate(),k.onFinishAnimate=void 0)}G({value:X,hostRef:M},(0,S.useCallback)(e=>{q.current=e,k.paneY=e},[$]));let Q=10000.1===q.current,ee=(0,c.useEvent)(e=>{if(0===E)return;let t=D||-1===e?P:F[e];if(q.current!==t){if(q.current=t,J(),Q||D){if(X.setValue(P,{type:"timing",duration:0}),D)return;t=F[e],q.current=t}X.setValue(t,{type:"spring",...j})}});(0,b.LI)(()=>{P&&Q&&X.setValue(P,{type:"timing",duration:0})},[Q,P]),(0,b.LI)(()=>{E&&P&&!D&&(!Q||N)&&ee(C)},[D,E,P,N,C]);let en=e.disableDrag??I?.disableDrag,er=(0,c.useThemeName)(),[eo,ei]=(0,S.useState)(!1),el=(0,S.useMemo)(()=>{if(en||!E||H)return;let e=F[0];k.paneMinY=e;let t=q.current;function n(e){ei(e),v&&(e?v.innerText=":root * { user-select: none !important; -webkit-user-select: none !important; }":v.innerText="")}let r=({vy:e,dragAt:r})=>{l=!1,n(!1);let o=r+t+E*e*.2,i=0,a=1/0;for(let e=0;et?o-t:t-o;n{r({vy:t.vy,dragAt:t.dy})},i=()=>{n(!0),J(),t=q.current},l=!1;return k.drag=n=>{l||(l=!0,i());let r=n+t;X.setValue(e0(r,e),{type:"direct"})},k.release=r,eV.create({onMoveShouldSetPanResponder:(e,{dy:t})=>{if(e.target===y.handleRef.current)return!0;let n=0!==k.y,r=k.paneY-5<=k.paneMinY;return!n&&(!r||!!n||!(t<0)||!!b.$L)&&Math.abs(t)>5},onPanResponderGrant:i,onPanResponderMove:(n,{dy:r})=>{let o=e0(r+t,e);X.setValue(o,{type:"direct"})},onPanResponderEnd:o,onPanResponderTerminate:o,onPanResponderRelease:o})},[en,H,ee,E,F,O]),es=(0,S.useCallback)(e=>{let t=Math.min(e.nativeEvent?.layout.height,eX.get("window").height);t&&R(t)},[f]),ef=(0,S.useCallback)(e=>{let t=Math.min(e.nativeEvent?.layout.height,eX.get("window").height);t&&_(t)},[f]),ep=U(X,e=>({transform:[{translateY:0===E?10000.1:e}]})),ev=(0,S.useRef)(null);(0,S.useEffect)(()=>{if(b.$L||!a)return;let e=eh.addListener("keyboardDidShow",e=>{null===ev.current&&(ev.current=X.getValue(),X.setValue(Math.max(X.getValue()-e.endCoordinates.height,0)))}),t=eh.addListener("keyboardDidHide",()=>{null!==ev.current&&(X.setValue(ev.current),ev.current=null)});return()=>{t.remove(),e.remove()}},[a]);let[eg,eb]=(0,S.useState)(N?1:0);N&&0===eg&&eb(1),(0,S.useEffect)(()=>{if(!N){let e=setTimeout(()=>{eb(0)},400);return()=>{clearTimeout(e)}}},[N]);let ey=T?void 0:"percent"===x?`${A}${b.$L?"dvh":"%"}`:A,eS=(0,et.jsx)(eJ.Provider,{value:K,children:(0,et.jsxs)(ea,{...y,children:[(0,et.jsx)(ec.M,{enterExitVariant:"open",children:z||!N?null:h}),"percent"!==x&&(0,et.jsx)(eq.Z,{style:{opacity:0,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"},pointerEvents:"none",onLayout:ef}),(0,et.jsx)(Y,{ref:L,...el?.panHandlers,onLayout:es,pointerEvents:N&&!z?"auto":"none",...!eo&&{animation:r},disableClassName:!0,style:[{position:"absolute",zIndex:l,width:"100%",height:ey,minHeight:ey,opacity:eg},ep],children:e.children})]})}),eE=(0,S.useContext)(eu.fG);if(i){let e=(0,et.jsx)(ed.h_,{zIndex:l,...u,children:!!(eg||!s)&&(0,et.jsx)(d,{children:(0,et.jsx)(c.Theme,{forceClassName:!0,name:er,children:(0,et.jsx)(eu.fG.Provider,{value:eE,children:eS})})})});return b.$L?e:(0,et.jsx)(eQ.Provider,{value:V,children:e})}return eS}));var e7=n(1013);function e6(){return(e6=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n=e.onScroll,r=e.onTouchMove,o=e.onWheel,i=e.scrollEnabled,l=void 0===i||i,a=e.scrollEventThrottle,s=void 0===a?0:a,u=e.showsHorizontalScrollIndicator,c=e.showsVerticalScrollIndicator,d=e.style,f=(0,e8.Z)(e,tn),p=S.useRef({isScrolling:!1,scrollLastTick:0}),h=S.useRef(null),m=S.useRef(null);function v(e){return t=>{l&&e&&e(t)}}function g(e){p.current.scrollLastTick=Date.now(),n&&n(tr(e))}return S.createElement(eq.Z,e6({},f,{onScroll:function(e){if(e.stopPropagation(),e.target===m.current){var t,r;(e.persist(),null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{p.current.isScrolling=!1,n&&n(tr(e))},100),p.current.isScrolling)?(t=p.current.scrollLastTick,r=Date.now()-t,s>0&&r>=s&&g(e)):(p.current.isScrolling=!0,g(e))}},onTouchMove:v(r),onWheel:v(o),ref:(0,tt.Z)(m,t),style:[d,!l&&ti.scrollDisabled,(!1===u||!1===c)&&ti.hideScrollbar]}))}),ti=te.Z.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}}),tl=n(2319),ta=n(9895),ts=n.n(ta),tu=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],tc={};class td extends S.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=ef.Z.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),ef.Z.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||tc;e=r.x,t=r.y,n=r.animated}var o=this.getScrollableNode(),i=e||0,l=t||0;null!=o&&("function"==typeof o.scroll?o.scroll({top:l,left:i,behavior:n?"smooth":"auto"}):(o.scrollLeft=i,o.scrollTop=l))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==eo.Z.OS&&eg()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,tl.Z.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var o=eX.get("window").height;this.keyboardWillOpenTo&&(o=this.keyboardWillOpenTo.endCoordinates.screenY);var i=t-o+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(i=Math.max(0,i)),this.scrollResponderScrollTo({x:0,y:i,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||tc;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),o=n?r.scrollWidth:0,i=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:o,y:i,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&ep(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,e9.Z)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){ts()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,r=e.onContentSizeChange,o=e.refreshControl,i=e.stickyHeaderIndices,l=e.pagingEnabled,a=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),s=(0,e8.Z)(e,tu),u={};r&&(u={onLayout:this._handleContentOnLayout});var c=!n&&Array.isArray(i),d=c||l?S.Children.map(this.props.children,(e,t)=>{var n=c&&i.indexOf(t)>-1;return null!=e&&(n||l)?S.createElement(eq.Z,{style:[n&&tp.stickyHeader,l&&tp.pagingEnabledChild]},e):e}):this.props.children,f=S.createElement(eq.Z,e6({},u,{children:d,collapsable:!1,ref:this._setInnerViewRef,style:[n&&tp.contentContainerHorizontal,a&&tp.contentContainerCenterContent,t]})),p=n?tp.baseHorizontal:tp.baseVertical,h=n?tp.pagingEnabledHorizontal:tp.pagingEnabledVertical,m=(0,eb.Z)((0,eb.Z)({},s),{},{style:[p,l&&h,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject});eg()(void 0!==to,"ScrollViewClass must not be undefined");var v=S.createElement(to,e6({},m,{ref:this._setScrollNodeRef}),f);return o?S.cloneElement(o,{style:m.style},v):v}}var tf={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},tp=te.Z.create({baseVertical:(0,eb.Z)((0,eb.Z)({},tf),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,eb.Z)((0,eb.Z)({},tf),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),th=S.forwardRef((e,t)=>S.createElement(td,e6({},e,{forwardedRef:t})));th.displayName="ScrollView";let tm=(0,e7.styled)(th,{name:"ScrollView",scrollEnabled:!0,variants:{fullscreen:{true:d.Xu}}},{accept:{contentContainerStyle:"style"}}),tv=(0,S.forwardRef)(({__scopeSheet:e,children:t,onScroll:n,...r},o)=>{let{scrollBridge:i}=es("SheetScrollView",e),l=(0,S.useRef)(null),a=(0,S.useRef)({lastPageY:0,dragAt:0,dys:[],isScrolling:!1,isDragging:!1});return(0,et.jsx)(tm,{ref:(0,g.FE)(l,o),flex:1,scrollEventThrottle:8,onScroll:e=>{let{y:t}=e.nativeEvent.contentOffset;i.y=t,t>0&&(i.scrollStartY=-1),n?.(e)},onStartShouldSetResponder:()=>(i.scrollStartY=-1,a.current.isDragging=!0,!0),onMoveShouldSetResponder:()=>!1,onResponderRelease:()=>{if(!a.current.isDragging)return;a.current.isDragging=!1,i.scrollStartY=-1,a.current.isScrolling=!1;let e=0;if(a.current.dys.length){let t=a.current.dys.slice(-10);e=(t.length?t.reduce((e,t)=>e+t,0):0)/t.length*.04}a.current.dys=[],i.release({dragAt:a.current.dragAt,vy:e})},className:"_ovs-contain",...r,children:(0,S.useMemo)(()=>t,[t])})}),tg=({snapPoints:e,position:t,screenSize:n,frameSize:r,snapPointsMode:o})=>{if("fit"===o)return 0;if("constant"===o)return Number(e[0])-Number(e[t]??0);if("percent"===o)return(Number(e[0])/100-Number(e[t]??0)/100)*n;let i=e[0];if("fit"===i)return 0;let l="string"==typeof i?Number(i.slice(0,-1))/100*n:i,a=e[t]??0,s=l-("string"==typeof a?Number(a.slice(0,-1))/100*n:a);return Number.isNaN(s)?0:s};var tb=n(357);let ty=(0,c.styled)(d.sL,{name:h,variants:{open:{true:{pointerEvents:"auto"},false:{opacity:0,pointerEvents:"none"}},unstyled:{false:{height:10,borderRadius:100,backgroundColor:"$background",zIndex:10,marginHorizontal:"35%",marginBottom:"$2",opacity:.5,hoverStyle:{opacity:.7}}}},defaultVariants:{unstyled:"1"===tb.env.TAMAGUI_HEADLESS}}),tS=(0,c.styled)(f.K,{name:m,variants:{open:{true:{opacity:1,pointerEvents:"auto"},false:{opacity:0,pointerEvents:"none"}},unstyled:{false:{fullscreen:!0,position:"absolute",backgrounded:!0,zIndex:99999,pointerEvents:"auto"}}},defaultVariants:{unstyled:"1"===tb.env.TAMAGUI_HEADLESS}}),tE=function({Handle:e,Frame:t,Overlay:n}){let r=e.styleable(({__scopeSheet:t,...n},r)=>{let o=es(h,t),i=(0,g.ex)(o.handleRef,r);return o.onlyShowFrame?null:(0,et.jsx)(e,{ref:i,onPress:()=>{let e=o.snapPoints.length+(o.dismissOnSnapToBottom?-1:0),t=(o.position+1)%e;o.setPosition(t)},open:o.open,...n})}),o=n.extractable((0,S.memo)(e=>{let{__scopeSheet:t,...r}=e,o=es(m,t),i=(0,S.useMemo)(()=>(0,et.jsx)(n,{...r,onPress:(0,y.Mj)(r.onPress,o.dismissOnOverlayPress?()=>{o.setOpen(!1)}:void 0)}),[r.onPress,o.dismissOnOverlayPress]);return(0,b.LI)(()=>{o.onOverlayComponent?.(i)},[i]),o.onlyShowFrame,null})),i=t.extractable((0,S.forwardRef)(({__scopeSheet:e,adjustPaddingForOffscreenContent:n,disableHideBottomOverflow:r,children:o,...i},l)=>{let a=es(p,e),{hasFit:s,removeScrollEnabled:u,frameSize:d,contentRef:f}=a,h=(0,g.ex)(l,f),m=tg(a),v=(0,S.useMemo)(()=>(0,et.jsxs)(t,{ref:h,flex:s?0:1,height:s?void 0:d,...i,children:[o,n&&(0,et.jsx)(c.Stack,{"data-sheet-offscreen-pad":!0,height:m,width:"100%"})]}),[i,d,m,n,s]);return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(en,{forwardProps:!0,enabled:u,allowPinchZoom:!0,shards:[f],removeScrollBar:!1,children:v}),!r&&(0,et.jsx)(t,{...i,componentName:"SheetCover",children:null,position:"absolute",bottom:"-100%",zIndex:-1,height:a.frameSize,left:0,right:0,borderWidth:0,borderRadius:0,shadowOpacity:0})]})})),l=(0,S.forwardRef)(function(e,t){let n=(0,er.S)(),{isShowingNonSheet:r}=(0,e2.$)();return e.native&&eo.Z.OS,r||!n?null:(0,et.jsx)(e4,{ref:t,...e})}),a={Frame:i,Overlay:o,Handle:r,ScrollView:tv},s=(0,y.$e)(l,a);return(0,y.$e)(l,{...a,Controlled:s})}({Frame:(0,c.styled)(d.FA,{name:p,variants:{unstyled:{false:{flex:1,backgroundColor:"$background",borderTopLeftRadius:"$true",borderTopRightRadius:"$true",width:"100%",maxHeight:"100%",overflow:"hidden"}}},defaultVariants:{unstyled:"1"===tb.env.TAMAGUI_HEADLESS}}),Handle:ty,Overlay:tS})},7657:function(e,t,n){n.d(t,{$:function(){return o},W:function(){return i}});var r=n(2265);let o=()=>{let e=(0,r.useContext)(i),t=e?.hidden,n=t&&e?.open;return{controller:e,isHidden:t,isShowingNonSheet:n,disableDrag:e?.disableDrag}},i=(0,r.createContext)(null)},1092:function(e,t,n){n.d(t,{K:function(){return u}});var r=n(3974),o=n(5377),i=n(8587);let l={borderRadius:1e5,padding:0},a={backgroundColor:"transparent",borderColor:"transparent",shadowColor:"transparent",hoverStyle:{borderColor:"transparent"}},s={backgrounded:{true:{backgroundColor:"$background"}},radiused:{true:(e,t)=>{let{tokens:n,props:r}=t;return{borderRadius:n.radius[r.size]||n.radius.$true}}},hoverTheme:{true:{hoverStyle:{backgroundColor:"$backgroundHover",borderColor:"$borderColorHover"}},false:{}},pressTheme:{true:{cursor:"pointer",pressStyle:{backgroundColor:"$backgroundPress",borderColor:"$borderColorPress"}},false:{}},focusTheme:{true:{focusStyle:{backgroundColor:"$backgroundFocus",borderColor:"$borderColorFocus"}},false:{}},circular:{true:(e,{props:t,tokens:n})=>{if(!("size"in t))return l;let r="number"==typeof t.size?t.size:n.size[t.size];return{...l,width:r,height:r,maxWidth:r,maxHeight:r,minWidth:r,minHeight:r}}},padded:{true:(e,t)=>{let{tokens:n,props:r}=t;return{padding:n.space[r.size]||n.space.$true}}},elevate:{true:(e,t)=>(0,i.y)(t.props.size,t)},bordered:(e,{props:t})=>({borderWidth:"number"==typeof e?e:1,borderColor:"$borderColor",...t.hoverTheme&&{hoverStyle:{borderColor:"$borderColorHover"}},...t.pressTheme&&{pressStyle:{borderColor:"$borderColorPress"}},...t.focusTheme&&{focusStyle:{borderColor:"$borderColorFocus"}}}),transparent:{true:{backgroundColor:"transparent"}},chromeless:{true:a,all:{...a,hoverStyle:a,pressStyle:a,focusStyle:a}}},u=(0,r.styled)(o.FA,{variants:s})},391:function(e,t,n){n.d(t,{H1:function(){return l}});var r=n(1013),o=n(1217);let i=(0,r.styled)(o.n,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),l=(0,r.styled)(i,{name:"H1",tag:"h1",size:"$10"});(0,r.styled)(i,{name:"H2",tag:"h2",size:"$9"}),(0,r.styled)(i,{name:"H3",tag:"h3",size:"$8"}),(0,r.styled)(i,{name:"H4",tag:"h4",size:"$7"}),(0,r.styled)(i,{name:"H5",tag:"h5",size:"$6"}),(0,r.styled)(i,{name:"H6",tag:"h6",size:"$5"})},1217:function(e,t,n){n.d(t,{n:function(){return i}});var r=n(1013),o=n(2026);let i=(0,r.styled)(o.J,{name:"Paragraph",tag:"p",userSelect:"auto",color:"$color",size:"$true",whiteSpace:"normal"})},2026:function(e,t,n){n.d(t,{J:function(){return l}});var r=n(8970),o=n(1013),i=n(357);let l=(0,o.styled)(o.Text,{name:"SizableText",fontFamily:"$body",variants:{unstyled:{false:{size:"$true",color:"$color"}},size:r.H},defaultVariants:{unstyled:"1"===i.env.TAMAGUI_HEADLESS}});l.staticConfig.variants.fontFamily={"...":(e,t)=>{let n=t.props.size||"$true";return(0,r.H)(n,t)}}},2875:function(e,t,n){n.d(t,{k:function(){return i}});var r=n(2265),o=n(2281);function i(e,t,n){let{children:i,textProps:l,size:a,noTextWrap:s,color:u,fontFamily:c,fontSize:d,fontWeight:f,letterSpacing:p,textAlign:h,fontStyle:m,maxFontSizeMultiplier:v}=t;if(s||!i)return[i];let g={...n};return u&&(g.color=u),c&&(g.fontFamily=c),d&&(g.fontSize=d),f&&(g.fontWeight=f),p&&(g.letterSpacing=p),h&&(g.textAlign=h),a&&(g.size=a),m&&(g.fontStyle=m),v&&(g.maxFontSizeMultiplier=v),r.Children.toArray(i).map((t,n)=>"string"==typeof t?(0,o.jsx)(e,{...g,...l,children:t},n):t)}},3020:function(e,t,n){n.d(t,{h:function(){return o}});var r=n(2265);function o(e){if(typeof document>"u")return(0,r.useMemo)(()=>e(),[]);let t=(0,r.useRef)();return t.current||(t.current={v:e()}),t.current.v}},3277:function(e,t,n){n.d(t,{T:function(){return l}});var r=n(9087),o=n(2265);let i=e=>e();function l({prop:e,defaultProp:t,onChange:n,strategy:l="prop-wins",preventUpdate:s,transition:u}){let[c,d]=(0,o.useState)(e??t),f=(0,o.useRef)(c),p="prop-wins"===l&&void 0!==e,h=p?e:c,m=(0,r.z)(n||a),v=u?o.startTransition:i;return(0,o.useEffect)(()=>{void 0!==e&&(f.current=e,v(()=>{d(e)}))},[e]),(0,o.useEffect)(()=>{p||c!==f.current&&(f.current=c,m(c))},[m,c,p]),[h,(0,r.z)(e=>{s||(p?m("function"==typeof e?e(f.current):e):v(()=>{d(e)}))})]}let a=()=>{}},9175:function(e,t,n){n.d(t,{K:function(){return B}});var r=n(281),o=n(3974),i=n(8306),l=n(8970),a=n(6748);let s=(e="$true",t)=>{let{props:n}=t,r=(0,i.f)(e,t),s=(0,l.H)(e,t),u=n.rows??n.numberOfLines,c="number"==typeof u?u*(0,o.getVariableValue)(s.lineHeight):"auto",d=(0,a.Pj)(e,{shift:-2,bounds:[2]}),f=(0,a.Pj)(e,{shift:-1,bounds:[2]});return{...r,...s,paddingVertical:d,paddingHorizontal:f,height:c}};var u=n(9046),c=n(1013),d=n(2265);let f=(e,t)=>()=>{};var p=n(2281),h=n(4679),m=n(7792),v=n(9115),g=n(9647),b=n(1435),y=n(542),S=n(5158),E=n(4834),R=n(3201),w=n(1410),x=n(3013),T=n(131),C=(e,t)=>{var n=e.selectionEnd,r=e.selectionStart,o=t.start,i=t.end;return o!==r||i!==n},O=(e,t)=>{if(C(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(e){}}},k=Object.assign({},m.lG,m.LO,m._T,m.YB,m.Uy,m.hJ,m.E5,m.vr,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),P=e=>(0,v.Z)(e,k),_=null,A=d.forwardRef((e,t)=>{var n,r,o=e.autoCapitalize,i=e.autoComplete,l=e.autoCompleteType,a=e.autoCorrect,s=void 0===a||a,u=e.blurOnSubmit,c=e.caretHidden,f=e.clearTextOnFocus,p=e.dir,m=e.editable,v=e.enterKeyHint,w=e.inputMode,C=e.keyboardType,k=e.multiline,A=void 0!==k&&k,I=e.numberOfLines,D=e.onBlur,M=e.onChange,L=e.onChangeText,j=e.onContentSizeChange,H=e.onFocus,B=e.onKeyPress,z=e.onLayout,W=e.onMoveShouldSetResponder,V=e.onMoveShouldSetResponderCapture,F=e.onResponderEnd,$=e.onResponderGrant,Z=e.onResponderMove,U=e.onResponderReject,G=e.onResponderRelease,Y=e.onResponderStart,K=e.onResponderTerminate,X=e.onResponderTerminationRequest,q=e.onScrollShouldSetResponder,J=e.onScrollShouldSetResponderCapture,Q=e.onSelectionChange,ee=e.onSelectionChangeShouldSetResponder,et=e.onSelectionChangeShouldSetResponderCapture,en=e.onStartShouldSetResponder,er=e.onStartShouldSetResponderCapture,eo=e.onSubmitEditing,ei=e.placeholderTextColor,el=e.readOnly,ea=e.returnKeyType,es=e.rows,eu=e.secureTextEntry,ec=void 0!==eu&&eu,ed=e.selection,ef=e.selectTextOnFocus,ep=e.spellCheck;if(null!=w)r=w,n="email"===w?"email":"tel"===w?"tel":"search"===w?"search":"url"===w?"url":"text";else if(null!=C)switch((0,T.O)("keyboardType","keyboardType is deprecated. Use inputMode."),C){case"email-address":n="email";break;case"number-pad":case"numeric":r="numeric";break;case"decimal-pad":r="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}ec&&(n="password");var eh=d.useRef({height:null,width:null}),em=d.useRef(null),ev=d.useRef(null),eg=d.useRef(!1);d.useEffect(()=>{em.current&&ev.current&&O(em.current,ev.current),eg.current=ec},[ec]);var eb=d.useCallback(e=>{if(A&&j&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;(t!==eh.current.height||n!==eh.current.width)&&(eh.current.height=t,eh.current.width=n,j({nativeEvent:{contentSize:{height:eh.current.height,width:eh.current.width}}}))}},[A,j]),ey=d.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&x.Z.currentlyFocusedField()===e},eb(e))},[eb]);(0,b.Z)(()=>{var e=em.current;null!=e&&null!=ed&&O(e,ed),document.activeElement===e&&(x.Z._currentlyFocusedNode=e)},[em,ed]),(0,g.Z)(em,z),(0,E.Z)(em,{onMoveShouldSetResponder:W,onMoveShouldSetResponderCapture:V,onResponderEnd:F,onResponderGrant:$,onResponderMove:Z,onResponderReject:U,onResponderRelease:G,onResponderStart:Y,onResponderTerminate:K,onResponderTerminationRequest:X,onScrollShouldSetResponder:q,onScrollShouldSetResponderCapture:J,onSelectionChangeShouldSetResponder:ee,onSelectionChangeShouldSetResponderCapture:et,onStartShouldSetResponder:en,onStartShouldSetResponderCapture:er});var eS=(0,R.PE)().direction,eE=P(e);eE.autoCapitalize=void 0===o?"sentences":o,eE.autoComplete=i||l||"on",eE.autoCorrect=s?"on":"off",eE.dir=void 0!==p?p:"auto",null!=ea&&(0,T.O)("returnKeyType","returnKeyType is deprecated. Use enterKeyHint."),eE.enterKeyHint=v||ea,eE.inputMode=r,eE.onBlur=function(e){x.Z._currentlyFocusedNode=null,D&&(e.nativeEvent.text=e.target.value,D(e))},eE.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,eb(t),M&&M(e),L&&L(n)},eE.onFocus=function(e){var t=e.target;H&&(e.nativeEvent.text=t.value,H(e)),null!=t&&(x.Z._currentlyFocusedNode=t,f&&(t.value=""),ef&&(null!=_&&clearTimeout(_),_=setTimeout(()=>{null!=t&&t.select()},0)))},eE.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=!A,r=e.nativeEvent,o=r.isComposing||229===r.keyCode;B&&B(e),"Enter"!==e.key||e.shiftKey||o||e.isDefaultPrevented()||((u||!A)&&eo&&(e.preventDefault(),r.text=e.target.value,eo(e)),(null==u?n:u)&&null!=t&&setTimeout(()=>t.blur(),0))},eE.onSelect=function(e){try{var t=e.target,n=t.selectionStart,r=t.selectionEnd,o={start:n,end:r};Q&&(e.nativeEvent.selection=o,e.nativeEvent.text=e.target.value,Q(e)),eg.current===ec&&(ev.current=o)}catch(e){}},null!=m&&(0,T.O)("editable","editable is deprecated. Use readOnly."),eE.readOnly=!0===(void 0!==el&&el)||!1===m,null!=I&&(0,T.O)("numberOfLines","TextInput numberOfLines is deprecated. Use rows."),eE.rows=A?null!=es?es:I:1,eE.spellCheck=null!=ep?ep:s,eE.style=[{"--placeholderTextColor":ei},N.textinput$raw,N.placeholder,e.style,c&&N.caretHidden],eE.type=A?void 0:n;var eR=(0,S.Z)(eE),ew=(0,y.Z)(em,eR,ey,t);eE.ref=ew;var ex=null!=e.lang?(0,R.w1)(e.lang):null,eT=e.dir||ex;return(0,h.Z)(A?"textarea":"input",eE,{writingDirection:eT||eS})});A.displayName="TextInput",A.State=x.Z;var N=w.Z.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}}),I=n(357);let D={size:"$true",fontFamily:"$body",borderWidth:1,outlineWidth:0,color:"$color",...r.$L?{tabIndex:0}:{focusable:!0},borderColor:"$borderColor",backgroundColor:"$background",minWidth:0,hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:2,outlineStyle:"solid"}},M=(0,o.styled)(A,{name:"Input",variants:{unstyled:{false:D},size:{"...size":(e="$true",t)=>{if(t.props.multiline||t.props.numberOfLines>1)return s(e,t);let n=(0,i.f)(e,t),r=(0,a.Pj)(e,{shift:-1,bounds:[2]}),u=(0,l.H)(e,t);return!o.isWeb&&u&&delete u.lineHeight,{...u,...n,paddingHorizontal:r}}},disabled:{true:{}}},defaultVariants:{unstyled:"1"===I.env.TAMAGUI_HEADLESS}},{isInput:!0,accept:{placeholderTextColor:"color",selectionColor:"color"}});function L(e,t){let n=(0,o.useTheme)(),{onChangeText:r,ref:i}=function({isInput:e,props:t,ref:n}){let{id:r,onChangeText:o,value:i,defaultValue:l}=t,a=(0,d.useRef)(i||l||""),s=(0,d.useRef)(),p=(0,d.useCallback)(t=>{r&&t&&(s.current?.(),s.current=f(r,{focus:t.focus,...e&&{focusAndSelect(){t.focus(),t.setSelection&&"string"==typeof a.current&&t.setSelection(0,a.current.length)}}}))},[e,r]),h=(0,u.FE)(n,p);return(0,d.useEffect)(()=>()=>{s.current?.()},[]),{ref:h,onChangeText:(0,c.useEvent)(e=>{a.current=e,o?.(e)})}}({props:e,ref:t,isInput:!0}),l=e.placeholderTextColor,a=n[l]?.get()??l??n.placeholderColor?.get();return{ref:i,readOnly:e.disabled,...e,placeholderTextColor:a,onChangeText:r}}M.styleable((e,t)=>{let n=(0,d.useRef)(null),r=L(e,(0,o.useComposedRefs)(t,n));return(0,p.jsx)(M,{...r})});var j=n(357);let H=(0,o.styled)(M,{name:"TextArea",multiline:!0,whiteSpace:"pre-wrap",variants:{unstyled:{false:{height:"auto",...D}},size:{"...size":s}},defaultVariants:{unstyled:"1"===j.env.TAMAGUI_HEADLESS}}),B=H.styleable((e,t)=>{let n=(0,d.useRef)(null),i=L(e,(0,o.useComposedRefs)(t,n)),l={[r.$L?"rows":"numberOfLines"]:e.unstyled?void 0:4};return(0,p.jsx)(H,{...l,...i})})}}]); \ No newline at end of file